assume constant dimensions for created textures, shaves a lot of time in uploading
This commit is contained in:
@ -11,7 +11,8 @@ typedef enum TextureFilter {
|
||||
TEXTURE_FILTER_LINEAR,
|
||||
} TextureFilter;
|
||||
|
||||
GPUTexture create_gpu_texture(TextureFilter filter, bool generate_mipmaps);
|
||||
/* allocate a texture storage with constant parameters */
|
||||
GPUTexture create_gpu_texture(TextureFilter filter, bool generate_mipmaps, int channels, int width, int height);
|
||||
|
||||
void delete_gpu_texture(GPUTexture texture);
|
||||
|
||||
|
Reference in New Issue
Block a user