@@ -16,7 +16,7 @@ using PtrAccessor = BdaAccessor < uint32_t >;
1616
1717[[vk::push_constant]] AutoexposurePushData pushData;
1818
19- groupshared float32_t sdata[WorkgroupSize ];
19+ groupshared float32_t sdata[WORKGROUP_SIZE ];
2020struct SharedAccessor
2121{
2222 using type = float32_t;
@@ -49,10 +49,10 @@ struct TexAccessor
4949
5050uint32_t3 glsl::gl_WorkGroupSize ()
5151{
52- return uint32_t3 (DeviceSubgroupSize, DeviceSubgroupSize , 1 );
52+ return uint32_t3 (SUBGROUP_SIZE, SUBGROUP_SIZE , 1 );
5353}
5454
55- [numthreads (DeviceSubgroupSize, DeviceSubgroupSize , 1 )]
55+ [numthreads (SUBGROUP_SIZE, SUBGROUP_SIZE , 1 )]
5656[shader ("compute" )]
5757void main (uint32_t3 ID : SV_GroupThreadID , uint32_t3 GroupID : SV_GroupID )
5858{
@@ -62,7 +62,7 @@ void main(uint32_t3 ID : SV_GroupThreadID, uint32_t3 GroupID : SV_GroupID)
6262 SharedAccessor sdata;
6363 TexAccessor tex;
6464
65- using LumaMeter = luma_meter::geom_meter< WorkgroupSize , PtrAccessor, SharedAccessor, TexAccessor>;
65+ using LumaMeter = luma_meter::geom_meter< WORKGROUP_SIZE, SUBGROUP_SIZE , PtrAccessor, SharedAccessor, TexAccessor>;
6666 LumaMeter meter = LumaMeter::create (pushData.lumaMin, pushData.lumaMax, pushData.sampleCount, pushData.rcpFirstPassWGCount);
6767
6868 uint32_t texWidth, texHeight;
0 commit comments