From 0df5f9a4699775cb5f8696280a542ab8b4f7648f Mon Sep 17 00:00:00 2001 From: xazhang Date: Wed, 4 Oct 2023 10:09:57 -0400 Subject: [PATCH] fix clang-format-diff --- lgc/include/lgc/state/ResourceUsage.h | 46 +++++++++++++-------------- lgc/interface/lgc/BuiltInDefs.h | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lgc/include/lgc/state/ResourceUsage.h b/lgc/include/lgc/state/ResourceUsage.h index d26f6744da..d04d190678 100644 --- a/lgc/include/lgc/state/ResourceUsage.h +++ b/lgc/include/lgc/state/ResourceUsage.h @@ -201,16 +201,16 @@ 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 @@ -218,25 +218,25 @@ struct ResourceUsage { 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 diff --git a/lgc/interface/lgc/BuiltInDefs.h b/lgc/interface/lgc/BuiltInDefs.h index c9afac034d..5857aab2a4 100644 --- a/lgc/interface/lgc/BuiltInDefs.h +++ b/lgc/interface/lgc/BuiltInDefs.h @@ -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