Run format_all.sh.
This commit is contained in:
parent
ad2b7c05e7
commit
7bb749142c
@ -2982,7 +2982,8 @@ string CompilerGLSL::to_function_name(uint32_t, const SPIRType &imgtype, bool is
|
|||||||
{
|
{
|
||||||
auto *constant_lod = maybe_get<SPIRConstant>(lod);
|
auto *constant_lod = maybe_get<SPIRConstant>(lod);
|
||||||
if (!constant_lod || constant_lod->scalar_f32() != 0.0f)
|
if (!constant_lod || constant_lod->scalar_f32() != 0.0f)
|
||||||
SPIRV_CROSS_THROW("textureLod on sampler2DArraySahdow is not constant 0.0. This cannot be expressed in GLSL.");
|
SPIRV_CROSS_THROW(
|
||||||
|
"textureLod on sampler2DArraySahdow is not constant 0.0. This cannot be expressed in GLSL.");
|
||||||
workaround_lod_array_shadow_as_grad = true;
|
workaround_lod_array_shadow_as_grad = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3052,7 +3053,8 @@ string CompilerGLSL::to_function_args(uint32_t img, const SPIRType &imgtype, boo
|
|||||||
{
|
{
|
||||||
auto *constant_lod = maybe_get<SPIRConstant>(lod);
|
auto *constant_lod = maybe_get<SPIRConstant>(lod);
|
||||||
if (!constant_lod || constant_lod->scalar_f32() != 0.0f)
|
if (!constant_lod || constant_lod->scalar_f32() != 0.0f)
|
||||||
SPIRV_CROSS_THROW("textureLod on sampler2DArraySahdow is not constant 0.0. This cannot be expressed in GLSL.");
|
SPIRV_CROSS_THROW(
|
||||||
|
"textureLod on sampler2DArraySahdow is not constant 0.0. This cannot be expressed in GLSL.");
|
||||||
workaround_lod_array_shadow_as_grad = true;
|
workaround_lod_array_shadow_as_grad = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user