Fix: Metal: Broken tests because of partial renaming
This commit is contained in:
@@ -6,9 +6,11 @@
|
||||
* \ingroup gpu
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "gpu_shader_create_info.hh"
|
||||
|
||||
GPU_SHADER_INTERFACE_INFO(fullscreen_blit_iface).smooth(Type::float4_t, "uvcoordsvar");
|
||||
GPU_SHADER_INTERFACE_INFO(fullscreen_blit_iface).smooth(Type::float2_t, "screen_uv");
|
||||
|
||||
GPU_SHADER_CREATE_INFO(fullscreen_blit)
|
||||
.vertex_in(0, Type::float2_t, "pos")
|
||||
|
||||
@@ -9,5 +9,5 @@ void main()
|
||||
* Next we scale to NDC range [-1,1]. */
|
||||
gl_Position = float4((((pos * size + dst_offset) / fullscreen) * 2.0f - 1.0f), 1.0f, 1.0f);
|
||||
float2 uvoff = (src_offset / fullscreen);
|
||||
uvcoordsvar = float4(pos + uvoff, 0.0f, 0.0f);
|
||||
screen_uv = float2(pos + uvoff);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user