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

Cubemap Coordinate Intrinsics #366

Open
magcius opened this issue Jan 15, 2025 · 0 comments
Open

Cubemap Coordinate Intrinsics #366

magcius opened this issue Jan 15, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@magcius
Copy link

magcius commented Jan 15, 2025

Is your feature request related to a problem? Please describe.
AMD has hardware instructions for calculating cubemap coordinates: v_cubeid_f32, v_cubema_f32, v_cubesc_f32, v_cubetc_f32 to calculate the cubemap face ID, major axis, and S/T texture coordinates of the minor axis. These are accessible through the SPIR-V and GLSL extensions AMD_gcn_shader.

Describe the solution you'd like
It would be nice if HLSL had intrinsics for these, both for performance reasons on AMD devices, but also so that people don't need to keep writing or copy/pasting the same fallback code.

Describe alternatives you've considered
A standard header or library for this would be OK too.

@magcius magcius added enhancement New feature or request needs-triage labels Jan 15, 2025
@damyanp damyanp added this to the Shader Model Backlog milestone Jan 22, 2025
@damyanp damyanp moved this to Triaged in HLSL Triage Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Triaged
Development

No branches or pull requests

2 participants