Skip to main content
it's "input layout" not "polygon layout"
Source Link
Nathan Reed
  • 33.7k
  • 3
  • 93
  • 116

What is the polygonLayout How do you create an input layout for UINT4passing a uint4 to a vertex shader in DXD3D10?

I am trying to pass in a UINT4uint4 into the shader but my polygoninput layout keeps failing when trying to load the shader.

shader.fx

uint4  values : UINT4_0;  // VertexInput

PolygonInput layout

{ "UINT4", 0, DXGI_FORMAT_R32G32B32A32_UINT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }

Does that seem right?

I am a bit confused why there is an error here.

What is the polygonLayout for UINT4 in DX?

I am trying to pass in a UINT4 into the shader but my polygon layout keeps failing when trying to load the shader.

shader.fx

uint4  values : UINT4_0;  // VertexInput

Polygon layout

{ "UINT4", 0, DXGI_FORMAT_R32G32B32A32_UINT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }

Does that seem right?

I am a bit confused why there is an error here.

How do you create an input layout for passing a uint4 to a vertex shader in D3D10?

I am trying to pass in a uint4 into the shader but my input layout keeps failing when trying to load the shader.

shader.fx

uint4  values : UINT4_0;  // VertexInput

Input layout

{ "UINT4", 0, DXGI_FORMAT_R32G32B32A32_UINT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }

Does that seem right?

I am a bit confused why there is an error here.

Post Undeleted by bluejamesbond
Post Deleted by bluejamesbond
Source Link

What is the polygonLayout for UINT4 in DX?

I am trying to pass in a UINT4 into the shader but my polygon layout keeps failing when trying to load the shader.

shader.fx

uint4  values : UINT4_0;  // VertexInput

Polygon layout

{ "UINT4", 0, DXGI_FORMAT_R32G32B32A32_UINT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }

Does that seem right?

I am a bit confused why there is an error here.