Skip to content

Texture Component Swizzling #1028

Closed as not planned
Closed as not planned
@ghost

Description

Is there a way currently (or planned in the future) to perform texture component swizzling?

I'm referring to something like:
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkComponentMapping.html

This will be useful for textures with only alpha channels (and similar use cases).
Seems like otherwise we have to use TextureFormat::R* variants and swizzle them to alpha channel in every shader, which does not seem ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiIssues related to API surfacehelp requiredWe need community help to make this happen.type: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions