Allow users to provide image dimensions type/layers count in ImageLoaderSettings
#17145
Labels
A-Assets
Load files from disk to use for things like images, models, and sounds
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
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
What problem does this solve or what need does it fill?
Makes the usage of stacked 2D array (and similar) textures much much easier and less error prone.
What solution would you like?
Adding enum specifying texture type during asset loading to
ImageLoaderSettings
:So it can be used after:
What alternative(s) have you considered?
The only alternative so far is to track when the image was loaded and call
reinterpret_stacked_2d_as_array
manually. But this requires a lot of boiler plate code and feels like a workaround. Also if there is any delay in callingreinterpret_stacked_2d_as_array
, program will crash because shader expects 2d-array texture, but receives 2d texture.The text was updated successfully, but these errors were encountered: