【发布时间】:2020-07-21 10:11:22
【问题描述】:
错误 X8000:验证错误:声明的输出顶点数 (348) 乘以声明的输出数据的标量组件总数 (4) 等于 1392。此值不能大于 1024。
当我在 DirectX 的 HLSL 文件中编码我的 3D 圆柱体时出现上述错误
【问题讨论】:
-
能否请您添加着色器的代码? stackoverflow.com/help/minimal-reproducible-example
-
#define SEGMENTS 10 cbuffer MatrixBuffer { matrix worldMatrix; matrix viewMatrix; matrix projectionMatrix; }; struct GeometryInputType { float4 position : POSITION; float2 tex:TEXCOORD0; float3 normal:NORMAL; }; struct PixelInputType { float4 position : SV_POSITION; float2 tex:TEXCOORD0; float3 normal:NORMAL; }; struct coords { float x,y,z; }; [maxvertexcount(6 * SEGMENTS+(2*(3* (SEGMENTS-2))))]
标签: visual-c++ directx-11 hlsl geometry-shader