https://github.com/shader-slang/slang
Tip revision: 15335549340c54fd7b89b28104ddc907e9c64638 authored by jsmall-nvidia on 12 December 2019, 19:53:44 UTC
Use DownstreamCompiler for all downstream compilers (#1152)
Use DownstreamCompiler for all downstream compilers (#1152)
Tip revision: 1533554
hull-shader-invalid-domain.slang.disabled
//TEST:SIMPLE:
// `HullShader` without `Domain` attribute
pipeline P
{
world CoarseVertex;
world ControlPoint;
world CornerPoint;
world TessPatch;
world FineVertex;
require @FineVertex vec4 RS_Position;
require @ControlPoint vec2 tessLevelInner;
require @ControlPoint vec4 tessLevelOuter;
// implicit import operator CoarseVertex->CornerPoint
extern @CornerPoint CoarseVertex[] CoarseVertex_ControlPoint;
[PerCornerIterator]
extern @CornerPoint int HS_CornerID;
extern @ControlPoint CoarseVertex[] CoarseVertex_ControlPoint;
extern @TessPatch CoarseVertex[] CoarseVertex_ControlPoint;
[InvocationId]
extern @ControlPoint int invocationId;
extern @FineVertex ControlPoint[] ControlPoint_tes;
extern @FineVertex Patch<TessPatch> perPatch_tes;
extern @FineVertex Patch<CornerPoint[3]> perCorner_tes;
[TessCoord]
extern @FineVertex vec3 tessCoord;
stage hs : HullShader
{
PatchWorld: TessPatch;
ControlPointWorld: ControlPoint;
CornerPointWorld: CornerPoint;
InputControlPointCount: 3;
ControlPointCount: 1;
Domain: pentagons;
TessLevelOuter: tessLevelOuter;
TessLevelInner: tessLevelInner;
Partitioning: integer;
OutputTopology: triangle_ccw;
}
}
shader S
targets P
{
@FineVertex float4 RS_Position = float4(0.0);
@ControlPoint float2 tessLevelInner = float2(2.0);
@ControlPoint float4 tessLevelOuter = float4(2.0);
}