diff --git a/src/writer/hlsl/generator_impl.cc b/src/writer/hlsl/generator_impl.cc index a64758588f..b4445da631 100644 --- a/src/writer/hlsl/generator_impl.cc +++ b/src/writer/hlsl/generator_impl.cc @@ -1941,7 +1941,7 @@ std::string GeneratorImpl::builtin_to_attribute(ast::Builtin builtin) const { case ast::Builtin::kInstanceIndex: return "SV_InstanceID"; case ast::Builtin::kFrontFacing: - return "SV_IsFrontFacing"; + return "SV_IsFrontFace"; case ast::Builtin::kFragCoord: return "SV_Position"; case ast::Builtin::kFragDepth: diff --git a/src/writer/hlsl/generator_impl_test.cc b/src/writer/hlsl/generator_impl_test.cc index 908c49f139..d37ff5395a 100644 --- a/src/writer/hlsl/generator_impl_test.cc +++ b/src/writer/hlsl/generator_impl_test.cc @@ -75,7 +75,7 @@ INSTANTIATE_TEST_SUITE_P( HlslBuiltinData{ast::Builtin::kPosition, "SV_Position"}, HlslBuiltinData{ast::Builtin::kVertexIndex, "SV_VertexID"}, HlslBuiltinData{ast::Builtin::kInstanceIndex, "SV_InstanceID"}, - HlslBuiltinData{ast::Builtin::kFrontFacing, "SV_IsFrontFacing"}, + HlslBuiltinData{ast::Builtin::kFrontFacing, "SV_IsFrontFace"}, HlslBuiltinData{ast::Builtin::kFragCoord, "SV_Position"}, HlslBuiltinData{ast::Builtin::kFragDepth, "SV_Depth"}, HlslBuiltinData{ast::Builtin::kLocalInvocationId, "SV_GroupThreadID"},