Skip to content

Commit

Permalink
fix clang-format-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
xazhangAMD committed Oct 4, 2023
1 parent d403700 commit 0df5f9a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions lgc/include/lgc/state/ResourceUsage.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,42 +201,42 @@ struct ResourceUsage {
// Tessellation control shader
struct {
// Input
unsigned pointSizeIn : 1; // Whether gl_in[].gl_PointSize is used
unsigned positionIn : 1; // Whether gl_in[].gl_Position is used
unsigned clipDistanceIn : 4; // Array size of gl_in[].gl_ClipDistance[] (0 means unused)
unsigned cullDistanceIn : 4; // Array size of gl_in[].gl_CullDistance[] (0 means unused)
unsigned patchVertices : 1; // Whether gl_PatchVerticesIn is used
unsigned primitiveId : 1; // Whether gl_PrimitiveID is used
unsigned invocationId : 1; // Whether gl_InvocationID is used
unsigned viewIndex : 1; // Whether gl_ViewIndex is used
unsigned viewportIndexIn : 1;// Whether DX SV_ViewportArrayIndex is used
unsigned layerIn : 1; // Whether DX SV_RenderTargetArrayIndex is used
unsigned pointSizeIn : 1; // Whether gl_in[].gl_PointSize is used
unsigned positionIn : 1; // Whether gl_in[].gl_Position is used
unsigned clipDistanceIn : 4; // Array size of gl_in[].gl_ClipDistance[] (0 means unused)
unsigned cullDistanceIn : 4; // Array size of gl_in[].gl_CullDistance[] (0 means unused)
unsigned patchVertices : 1; // Whether gl_PatchVerticesIn is used
unsigned primitiveId : 1; // Whether gl_PrimitiveID is used
unsigned invocationId : 1; // Whether gl_InvocationID is used
unsigned viewIndex : 1; // Whether gl_ViewIndex is used
unsigned viewportIndexIn : 1; // Whether DX SV_ViewportArrayIndex is used
unsigned layerIn : 1; // Whether DX SV_RenderTargetArrayIndex is used
// Output
unsigned pointSize : 1; // Whether gl_out[].gl_PointSize is used
unsigned position : 1; // Whether gl_out[].gl_Position is used
unsigned clipDistance : 4; // Array size of gl_out[].gl_ClipDistance[] (0 means unused)
unsigned cullDistance : 4; // Array size of gl_out[].gl_CullDistance[] (0 means unused)
unsigned tessLevelOuter : 1; // Whether gl_TessLevelOuter[] is used
unsigned tessLevelInner : 1; // Whether gl_TessLevelInner[] is used
unsigned viewportIndex : 1; // Whether DX SV_ViewportArrayIndex is used
unsigned viewportIndex : 1; // Whether DX SV_ViewportArrayIndex is used
unsigned layer; // Whether DX SV_RenderTargetArrayIndex is used
} tcs;

// Tessellation evaluation shader
struct {
// Input
unsigned pointSizeIn : 1; // Whether gl_in[].gl_PointSize is used
unsigned positionIn : 1; // Whether gl_in[].gl_Position is used
unsigned clipDistanceIn : 4; // Array size of gl_in[].gl_ClipDistance[] (0 means unused)
unsigned cullDistanceIn : 4; // Array size of gl_in[].gl_CullDistance[] (0 means unused)
unsigned patchVertices : 1; // Whether gl_PatchVerticesIn is used
unsigned primitiveId : 1; // Whether gl_PrimitiveID is used
unsigned tessCoord : 1; // Whether gl_TessCoord is used
unsigned tessLevelOuter : 1; // Whether gl_TessLevelOuter[] is used
unsigned tessLevelInner : 1; // Whether gl_TessLevelInner[] is used
unsigned viewIndex : 1; // Whether gl_ViewIndex is used
unsigned viewportIndexIn : 1;// Whether DX SV_ViewportArrayIndex is used
unsigned layerIn : 1; // Whether DX SV_RenderTargetArrayIndex is used
unsigned pointSizeIn : 1; // Whether gl_in[].gl_PointSize is used
unsigned positionIn : 1; // Whether gl_in[].gl_Position is used
unsigned clipDistanceIn : 4; // Array size of gl_in[].gl_ClipDistance[] (0 means unused)
unsigned cullDistanceIn : 4; // Array size of gl_in[].gl_CullDistance[] (0 means unused)
unsigned patchVertices : 1; // Whether gl_PatchVerticesIn is used
unsigned primitiveId : 1; // Whether gl_PrimitiveID is used
unsigned tessCoord : 1; // Whether gl_TessCoord is used
unsigned tessLevelOuter : 1; // Whether gl_TessLevelOuter[] is used
unsigned tessLevelInner : 1; // Whether gl_TessLevelInner[] is used
unsigned viewIndex : 1; // Whether gl_ViewIndex is used
unsigned viewportIndexIn : 1; // Whether DX SV_ViewportArrayIndex is used
unsigned layerIn : 1; // Whether DX SV_RenderTargetArrayIndex is used
// Output
unsigned pointSize : 1; // Whether gl_PointSize is used
unsigned position : 1; // Whether gl_Position is used
Expand Down
2 changes: 1 addition & 1 deletion lgc/interface/lgc/BuiltInDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ BUILTIN(GlobalInvocationId, 28, N, TMC, v3i32) // Invocation ID within
BUILTIN(HelperInvocation, 23, N, P, i1) // Helper invocation flag
BUILTIN(InstanceIndex, 43, N, V, i32) // Instance index
BUILTIN(InvocationId, 8, N, HG, i32) // Invocation ID
BUILTIN(Layer, 9, MVHDG, HDGP, i32) // Layer of multi-layer framebuffer attachment
BUILTIN(Layer, 9, MVHDG, HDGP, i32) // Layer of multi-layer framebuffer attachment
BUILTIN(LocalInvocationId, 27, N, TMC, v3i32) // Invocation location within local workgroup
BUILTIN(LocalInvocationIndex, 29, N, TMC, i32) // Linearized LocalInvocationId
BUILTIN(NumSubgroups, 38, N, TMC, i32) // Number of subgroups in the local workgroup
Expand Down

0 comments on commit 0df5f9a

Please sign in to comment.