Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DirectX] DXIL container shader flags are incorrect when using native low precision #138997

Copy link
Copy link
@bogner

Description

@bogner
Issue body actions

If we build any shader with clang-dxc -enable-16bit-types, we fail the validator.

Given x.hlsl:

RWBuffer<half> Out : register(u0);
[numthreads(1,1,1)] void main() {
  Out[0] = 0;
}

We see:

$ clang-dxc -enable-16bit-types -T cs_6_4 -Fo x.o x.hlsl
error: Container part 'Feature Info' does not match expected for module.
Validation failed.

clang-dxc: error: dxv command failed with exit code 1 (use -v to see invocation)

This looks like a problem with NativeLowPrecision vs UseNativeLowPrecision in DXContainerConstants.def

Metadata

Metadata

Assignees

Type

Projects

Status

Closed
Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.