feat: decompile shader hlsl and a pre-build batch script to generate the headers with bytecode

This commit is contained in:
3UR
2026-03-03 10:31:52 +10:00
parent 9e7c956244
commit ca6c22edf2
8 changed files with 433 additions and 42 deletions
@@ -0,0 +1,21 @@
cbuffer cbuff : register(b4)
{
float4 clear_colour;
};
SamplerState screen_sampler_s : register(s0);
Texture2D<float4> screen_texture : register(t0);
float4 PS_ScreenSpace(float4 v0 : SV_POSITION, float2 v1 : TEXCOORD0) : SV_TARGET
{
float4 o0;
o0.xyzw = screen_texture.Sample(screen_sampler_s, v1.xy).xyzw;
return o0;
}
float4 PS_ScreenClear(float4 v0 : SV_POSITION) : SV_TARGET
{
float4 o0;
o0.xyzw = clear_colour.xyzw;
return o0;
}