1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +01:00

[dxvk] Increase workgroup size for buffer clear shaders

This commit is contained in:
Philip Rebohle 2018-04-11 23:12:55 +02:00
parent 2f7dcd2caf
commit cce578d67a
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#version 450
layout(
local_size_x = 64,
local_size_x = 128,
local_size_y = 1,
local_size_z = 1) in;
@ -16,11 +16,11 @@ uniform u_info_t {
} u_info;
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID.x);
int thread_id = int(gl_GlobalInvocationID.x);
if (thread_id.x < u_info.dst_extent.x) {
if (thread_id < u_info.dst_extent.x) {
imageStore(dst,
u_info.dst_offset.x + thread_id.x,
u_info.dst_offset.x + thread_id,
u_info.clear_value);
}
}

View File

@ -1,7 +1,7 @@
#version 450
layout(
local_size_x = 64,
local_size_x = 128,
local_size_y = 1,
local_size_z = 1) in;
@ -16,11 +16,11 @@ uniform u_info_t {
} u_info;
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID.x);
int thread_id = int(gl_GlobalInvocationID.x);
if (thread_id.x < u_info.dst_extent.x) {
if (thread_id < u_info.dst_extent.x) {
imageStore(dst,
u_info.dst_offset.x + thread_id.x,
u_info.dst_offset.x + thread_id,
u_info.clear_value);
}
}