Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] [SPIR-V] Support float16 texture types #7026

Closed
godlikepanos opened this issue Dec 4, 2024 · 2 comments
Closed

[Feature Request] [SPIR-V] Support float16 texture types #7026

godlikepanos opened this issue Dec 4, 2024 · 2 comments
Labels
enhancement Feature suggestion

Comments

@godlikepanos
Copy link
Contributor

Hi. Is there a chance we could get float16 texture support?

When compiling this:

Texture2D<float16_t4> tex;

float4 imageMain(float4 svPosition : SV_Position) : SV_Target0
{
    return tex[svPosition.xy];
}

with -enable-16bit-types DXC returns the following error: error: 16-bit texture types not yet supported with -spirv

@godlikepanos godlikepanos added enhancement Feature suggestion needs-triage Awaiting triage labels Dec 4, 2024
@damyanp damyanp moved this to For Google in HLSL Triage Dec 17, 2024
@Keenuts
Copy link
Collaborator

Keenuts commented Jan 2, 2025

Hi!

Sadly, Vulkan doesn't support sampling textures with a float16.
See:

Allowing this now would cause issues down the line if Vulkan starts allowing 16-bit float textures.

@Keenuts Keenuts closed this as completed Jan 2, 2025
@github-project-automation github-project-automation bot moved this from For Google to Triaged in HLSL Triage Jan 2, 2025
@Keenuts Keenuts removed the needs-triage Awaiting triage label Jan 2, 2025
@godlikepanos
Copy link
Contributor Author

ooops. Weird SPIR-V omission. Thanks for looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature suggestion
Projects
Status: Triaged
Development

No branches or pull requests

2 participants