Allow Image
to be created without data
#17746
Labels
A-Rendering
Drawing game state to the screen
C-Feature
A new feature, making something new possible
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
What problem does this solve or what need does it fill?
Currently, the
RenderAsset
implementation forGpuImage
unconditionally 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?
ShaderStorageBufffer
already has a similar solution where different constructors are provided with/without data. Do the same forImage
and determine whether we need to create a texture with data based on the presence of data inImage
.The text was updated successfully, but these errors were encountered: