llvm / llvm/llvm-project

[HLSL] Reject initializers on cbuffer fields

Open
#200,021 0 comments 0 reactions 0 assignees View on GitHub
HLSL
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Initializers on cbuffer fields were a feature supported by FXC to populate reflection data, but have never been supported by DXC. Because they do not actually initialize values, TC57 has proposed making initializers on cbuffer fields illegal in [[0004] - 202x removals](https://github.com/hlsl-tc57/tc57/blob/main/proposals/0004-202x-removals.md).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.