Skip to content

Commit 9100527

Browse files
committed
Tonemap: use pointers
1 parent ce2ac09 commit 9100527

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/engine/renderer-vulkan/GraphicsEngine/Tonemap.glsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4343
layout ( local_size_x = 8, local_size_y = 8, local_size_z = 1 ) in;
4444

4545
layout ( scalar, push_constant ) uniform Push {
46-
CoreDataBuffer coreData;
46+
CoreData* coreData;
4747
} push;
4848

4949
void main() {
5050
const uint globalGroupID = GLOBAL_GROUP_ID;
5151
const uint globalInvocationID = GLOBAL_INVOCATION_ID;
5252

53-
if ( gl_GlobalInvocationID.x >= push.coreData.coreData[0].width || gl_GlobalInvocationID.y >= push.coreData.coreData[0].height ) {
53+
if ( gl_GlobalInvocationID.x >= coreData[0].width || gl_GlobalInvocationID.y >= coreData[0].height ) {
5454
return;
5555
}
5656

57-
imageStore( images[push.coreData.coreData[0].currentSwapChainImage], ivec2( gl_GlobalInvocationID.xy ), vec4( 0, 1, 0, 1 ) );
57+
imageStore( images[coreData[0].currentSwapChainImage], ivec2( gl_GlobalInvocationID.xy ), vec4( 0, 1, 0, 1 ) );
5858
}

0 commit comments

Comments
 (0)