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

error X3000: unrecognized identifier 'type_6' with DX12 Backend #1628

Closed
MrMarnic opened this issue Dec 26, 2021 · 0 comments · Fixed by #1629
Closed

error X3000: unrecognized identifier 'type_6' with DX12 Backend #1628

MrMarnic opened this issue Dec 26, 2021 · 0 comments · Fixed by #1629
Assignees
Labels
area: back-end Outputs of shader conversion kind: bug Something isn't working lang: HLSL High-Level Shading Language

Comments

@MrMarnic
Copy link

MrMarnic commented Dec 26, 2021

Description
I have a shader that I will post below that works flawlessly on the VULKAN backend but doesn't work on the DX12 backend. The strang thing is that the exact same shader code has worked in previous wgpu versions (0.9) (on the DX12 backend)

Repro steps
Vertex Shader:

#version 450

layout(location=0) in vec3 a_position;

layout(set=1, binding=0) // 1.
uniform Uniforms {
    mat4 projection; // 2.
};
layout(set=1, binding=1) // 1.
uniform Uniforms2 {
    mat4 view; // 2.
};
layout(set=2, binding=0) // 1.
uniform Uniforms3 {
    mat4[2] transform; // 2.
};

void main() {
    gl_Position = projection * view * transform[gl_VertexIndex] * vec4(a_position, 1.0);
}

This is a line shader and the mat4[2] is used to move the two points the line starts and ends.

Expected vs observed behavior
It should draw a line like it does on VULKAN vs it crashes with this error message: error X3000: unrecognized identifier 'type_6'

Extra materials
Longer error:
https://pastebin.com/Grmeb9Td

Platform
OS: Windows 10
wgpu-version: 0.12
AdapterInfo { name: "NVIDIA GeForce GTX 1080 Ti", vendor: 4318, device: 6918, device_type: DiscreteGpu, backend: Dx12 }

@kvark kvark transferred this issue from gfx-rs/wgpu Dec 27, 2021
@kvark kvark added area: back-end Outputs of shader conversion kind: bug Something isn't working lang: HLSL High-Level Shading Language labels Dec 27, 2021
@kvark kvark self-assigned this Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: back-end Outputs of shader conversion kind: bug Something isn't working lang: HLSL High-Level Shading Language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants