mirror of
https://github.com/mpv-player/mpv
synced 2025-02-09 16:37:24 +00:00
vo_gpu: vulkan: omit needless #define
This commit is contained in:
parent
97b1482d53
commit
019d594d0b
@ -777,11 +777,6 @@ static void gl_sc_generate(struct gl_shader_cache *sc,
|
||||
ADD(header, "#define texture texture2D\n");
|
||||
}
|
||||
|
||||
if (sc->ra->glsl_vulkan && type == RA_RENDERPASS_TYPE_COMPUTE) {
|
||||
ADD(header, "#define gl_GlobalInvocationIndex "
|
||||
"(gl_WorkGroupID * gl_WorkGroupSize + gl_LocalInvocationID)\n");
|
||||
}
|
||||
|
||||
// Additional helpers.
|
||||
ADD(header, "#define LUT_POS(x, lut_size)"
|
||||
" mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))\n");
|
||||
|
Loading…
Reference in New Issue
Block a user