Skip to content

Allow Image to be created without data #17746

@tychedelia

Description

@tychedelia

What problem does this solve or what need does it fill?

Currently, the RenderAsset implementation for GpuImage unconditionally calls create_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 for Image and determine whether we need to create a texture with data based on the presence of data in Image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions