Skip to content

Feature Request: Load image directly into SDL GPU texture #546

Open
@jsoulier

Description

@jsoulier

Hey there,

Since SDL_ttf has support for the GPU API, does it make sense to add some convenience functions here for loading an image into a GPU texture?

To start, something like...

extern SDL_DECLSPEC SDL_GPUTexture * SDLCALL IMG_LoadGPUTexture(SDL_GPUDevice *device, const char *path);

Basically just the same API as:

extern SDL_DECLSPEC SDL_Texture * SDLCALL IMG_LoadTexture(SDL_Renderer *renderer, const char *file);

Internally it could just acquire it's own command buffer and copy pass. Maybe could also make a common assumption about texture format.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions