Files
rk35xx-android14/external/deqp-deps/glslang/Test/hlsl.structarray.flatten.geom
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

24 lines
472 B
GLSL

struct VertexData {
float4 position : POSITION;
float4 color : COLOR0;
float2 uv : TEXCOORD0;
};
struct PS_IN {
float4 position : SV_POSITION;
float4 color : COLOR0;
float2 uv : TEXCOORD0;
};
[maxvertexcount(4)]
void main(line VertexData vin[2], inout TriangleStream<PS_IN> outStream)
{
PS_IN vout;
vout.color = vin[1].color;
vout.uv = vin[1].uv;
vout.position = vin[1].position;
outStream.Append(vout);
}