microsoft / microsoft/DirectXShaderCompiler

[Feature Request] firstbitlow for uint64_t

Open
#8,536 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs-triage
Dominant language
C++
Stars
3.7k
Forks
900
Avg merge
2d 11h
Merged PRs (30d)
44

Description

When compiling shaders with SPIRV mode I get this error:

error: firstbitlow is currently limited to 32-bit width components when targeting SPIR-V

When compiling with HLSL, this is supported. I would like this to be supported in SPIRV mode if possible.

Best regards,
Janos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file, test, or entry point. Start by reproducing the uint64_t firstbitlow diagnostic when targeting SPIR-V, then trace the compiler path that enforces the 32-bit limitation. Done means uint64_t firstbitlow compiles in SPIR-V with behavior supported by the existing HLSL path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.