mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-23 19:55:05 +00:00
3226b0835c
These HLSL types are guaranteed to have at least the given number of bits, but may have more. min{16,10}float is mapped to EbtFloat at medium precision -> SPIRV RelaxedPrecision min{16,12}int and min16uint are mapped to mediump -> SPIR-V RelaxedPrecision
50 lines
832 B
GLSL
50 lines
832 B
GLSL
struct PS_OUTPUT
|
|
{
|
|
float4 Color : SV_Target0;
|
|
};
|
|
|
|
uniform min16float b1a, b1b;
|
|
|
|
PS_OUTPUT main()
|
|
{
|
|
min16float mf16;
|
|
min16float1 mf16_1;
|
|
min16float2 mf16_2;
|
|
min16float3 mf16_3;
|
|
min16float4 mf16_4;
|
|
|
|
min10float mf10;
|
|
min10float1 mf10_1;
|
|
min10float2 mf10_2;
|
|
min10float3 mf10_3;
|
|
min10float4 mf12_4;
|
|
|
|
min16int mi16;
|
|
min16int1 mi16_1;
|
|
min16int2 mi16_2;
|
|
min16int3 mi16_3;
|
|
min16int4 mi16_4;
|
|
|
|
min12int mi12;
|
|
min12int1 mi12_1;
|
|
min12int2 mi12_2;
|
|
min12int3 mi12_3;
|
|
min12int4 mi12_4;
|
|
|
|
min16uint mu16;
|
|
min16uint1 mu16_1;
|
|
min16uint2 mu16_2;
|
|
min16uint3 mu16_3;
|
|
min16uint4 mu16_4;
|
|
|
|
mf16_2 + mf16;
|
|
mf10_2 + mf10;
|
|
mi16_2 + mi16;
|
|
mi12_2 + mi12;
|
|
mu16_2 + mu16;
|
|
|
|
PS_OUTPUT psout;
|
|
psout.Color = 0;
|
|
return psout;
|
|
}
|