-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Allow Image to be created without data #17746
Copy link
Copy link
Closed
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixes
Metadata
Metadata
Assignees
Labels
A-RenderingDrawing game state to the screenDrawing game state to the screenC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesA "normal" level of difficulty; suitable for simple features or challenging fixes
What problem does this solve or what need does it fill?
Currently, the
RenderAssetimplementation forGpuImageunconditionally callscreate_texture_with_data.This is unhelpful for creating textures that are intended to be filled in on the GPU, for example during a compute pass that runs prior to rendering.What solution would you like?
ShaderStorageBuffferalready has a similar solution where different constructors are provided with/without data. Do the same forImageand determine whether we need to create a texture with data based on the presence of data inImage.