mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxvk] Increase workgroup size for buffer clear shaders
This commit is contained in:
parent
2f7dcd2caf
commit
cce578d67a
@ -1,7 +1,7 @@
|
|||||||
#version 450
|
#version 450
|
||||||
|
|
||||||
layout(
|
layout(
|
||||||
local_size_x = 64,
|
local_size_x = 128,
|
||||||
local_size_y = 1,
|
local_size_y = 1,
|
||||||
local_size_z = 1) in;
|
local_size_z = 1) in;
|
||||||
|
|
||||||
@ -16,11 +16,11 @@ uniform u_info_t {
|
|||||||
} u_info;
|
} u_info;
|
||||||
|
|
||||||
void main() {
|
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,
|
imageStore(dst,
|
||||||
u_info.dst_offset.x + thread_id.x,
|
u_info.dst_offset.x + thread_id,
|
||||||
u_info.clear_value);
|
u_info.clear_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
#version 450
|
#version 450
|
||||||
|
|
||||||
layout(
|
layout(
|
||||||
local_size_x = 64,
|
local_size_x = 128,
|
||||||
local_size_y = 1,
|
local_size_y = 1,
|
||||||
local_size_z = 1) in;
|
local_size_z = 1) in;
|
||||||
|
|
||||||
@ -16,11 +16,11 @@ uniform u_info_t {
|
|||||||
} u_info;
|
} u_info;
|
||||||
|
|
||||||
void main() {
|
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,
|
imageStore(dst,
|
||||||
u_info.dst_offset.x + thread_id.x,
|
u_info.dst_offset.x + thread_id,
|
||||||
u_info.clear_value);
|
u_info.clear_value);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user