Skip to content

Fix slang-compilation by avoiding SV_VertexID in one pixel-stage#1544

Open
fabian-lunarg wants to merge 1 commit into
KhronosGroup:mainfrom
fabian-lunarg:fix_slang_shader_sdk_1_4_350
Open

Fix slang-compilation by avoiding SV_VertexID in one pixel-stage#1544
fabian-lunarg wants to merge 1 commit into
KhronosGroup:mainfrom
fabian-lunarg:fix_slang_shader_sdk_1_4_350

Conversation

@fabian-lunarg
Copy link
Copy Markdown

  • surfaces with 1.4.350.0/x86_64/bin/slangc (2026.8)
  • trivially fixed by removing the unused uint vertexIndex: SV_VertexID
error[E30702]: system value semantic 'SV_VertexID' cannot be used as input in 'pixel' shader stage
  -->.../Vulkan-Samples/shaders/fragment_shader_barycentric/slang/object.frag.slang:27:126
   |
27 | float4 main(VSOutput input, float3 baryCoords: SV_Barycentrics, noperspective float3 baryCoordsAffine: SV_Barycentrics, uint vertexIndex: SV_VertexID, uniform int type)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 26, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants