mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-29 19:01:31 +11:00
fix(crt-royale): Ensures output location is defined for Metal support
* error after SPIRV-Cross is that output locations are not defined
This commit is contained in:
parent
a5ffea7278
commit
c915193e82
|
@ -119,7 +119,7 @@ void main()
|
||||||
// resize is used instead of tex2Dblur3x3_resize (which samples between
|
// resize is used instead of tex2Dblur3x3_resize (which samples between
|
||||||
// texels even for upsizing).
|
// texels even for upsizing).
|
||||||
const float2 dxdy_min_scale = ORIG_LINEARIZEDvideo_size/IN.output_size;
|
const float2 dxdy_min_scale = ORIG_LINEARIZEDvideo_size/IN.output_size;
|
||||||
const float2 texture_size_inv = float2(1.0)/ORIG_LINEARIZEDtexture_size;
|
texture_size_inv = float2(1.0)/ORIG_LINEARIZEDtexture_size;
|
||||||
if(bloom_approx_filter > 1.5) // 4x4 true Gaussian resize
|
if(bloom_approx_filter > 1.5) // 4x4 true Gaussian resize
|
||||||
{
|
{
|
||||||
// For upsizing, we'll snap to texels and sample the nearest 4.
|
// For upsizing, we'll snap to texels and sample the nearest 4.
|
||||||
|
|
|
@ -117,7 +117,7 @@ void main()
|
||||||
// and the number of tiles that will fit in the FBO.
|
// and the number of tiles that will fit in the FBO.
|
||||||
const float2 output_tiles_this_pass = IN.output_size / mask_resize_tile_size;
|
const float2 output_tiles_this_pass = IN.output_size / mask_resize_tile_size;
|
||||||
const float2 output_video_uv = tex_uv * IN.texture_size / IN.video_size;
|
const float2 output_video_uv = tex_uv * IN.texture_size / IN.video_size;
|
||||||
const float2 tile_uv_wrap = output_video_uv * output_tiles_this_pass;
|
tile_uv_wrap = output_video_uv * output_tiles_this_pass;
|
||||||
|
|
||||||
// Get the texel size of an input tile and related values:
|
// Get the texel size of an input tile and related values:
|
||||||
const float2 input_tile_size = float2(min(
|
const float2 input_tile_size = float2(min(
|
||||||
|
|
Loading…
Reference in a new issue