Commit 11da9eed by John Kessenich

HLSL: Fix #1445: distance() works on scalars.

parent 56b33196
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -42,6 +42,7 @@ float PixelShaderFunctionS(float inF0, float inF1, float inF2, uint inU0, int in
float r021 = ddy_coarse(inF0);
float r022 = ddy_fine(inF0);
float r023 = degrees(inF0);
float r024 = distance(inF0, inF1);
// EvaluateAttributeAtCentroid(inF0);
// EvaluateAttributeAtSample(inF0, 0);
// TODO: EvaluateAttributeSnapped(inF0, int2(1,2));
......
......@@ -605,7 +605,7 @@ void TBuiltInParseablesHlsl::initialize(int /*version*/, EProfile /*profile*/, c
{ "determinant", "S", "F", "M", "F", EShLangAll, false },
{ "DeviceMemoryBarrier", nullptr, nullptr, "-", "-", EShLangPSCS, false },
{ "DeviceMemoryBarrierWithGroupSync", nullptr, nullptr, "-", "-", EShLangCS, false },
{ "distance", "S", "F", "V,", "F,", EShLangAll, false },
{ "distance", "S", "F", "SV,", "F,", EShLangAll, false },
{ "dot", "S", nullptr, "SV,", "FI,", EShLangAll, false },
{ "dst", nullptr, nullptr, "V4,", "F,", EShLangAll, false },
// { "errorf", "-", "-", "", "", EShLangAll, false }, TODO: varargs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment