Fix: Metal: Broken tests because of partial renaming

This commit is contained in:
Clément Foucault
2025-04-17 01:03:46 +02:00
parent c17d6d1893
commit 9d2c09ee2a
2 changed files with 4 additions and 2 deletions

View File

@@ -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")

View File

@@ -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);
}