From cfd0de5c418f21f5f02874ff0f500b5a79ff60f9 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 26 Mar 2022 01:39:53 +0900 Subject: [PATCH] internal/shaderir: make outputs for unexpected operators consistent --- internal/shaderir/glsl/type.go | 2 +- internal/shaderir/hlsl/type.go | 2 +- internal/shaderir/msl/type.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/shaderir/glsl/type.go b/internal/shaderir/glsl/type.go index 2888a9768..387e82705 100644 --- a/internal/shaderir/glsl/type.go +++ b/internal/shaderir/glsl/type.go @@ -61,7 +61,7 @@ func opString(op shaderir.Op) string { case shaderir.OrOr: return "||" } - return fmt.Sprintf("!(unexpected operator: %d)", op) + return fmt.Sprintf("?(unexpected operator: %d)", op) } func typeString(t *shaderir.Type) (string, string) { diff --git a/internal/shaderir/hlsl/type.go b/internal/shaderir/hlsl/type.go index 10ae3792a..d69391d16 100644 --- a/internal/shaderir/hlsl/type.go +++ b/internal/shaderir/hlsl/type.go @@ -61,7 +61,7 @@ func opString(op shaderir.Op) string { case shaderir.OrOr: return "||" } - return fmt.Sprintf("!(unexpected operator: %d)", op) + return fmt.Sprintf("?(unexpected operator: %d)", op) } func typeString(t *shaderir.Type) (string, string) { diff --git a/internal/shaderir/msl/type.go b/internal/shaderir/msl/type.go index 319b72b96..884be16c2 100644 --- a/internal/shaderir/msl/type.go +++ b/internal/shaderir/msl/type.go @@ -61,7 +61,7 @@ func opString(op shaderir.Op) string { case shaderir.OrOr: return "||" } - return fmt.Sprintf("!(unexpected operator: %d)", op) + return fmt.Sprintf("?(unexpected operator: %d)", op) } func typeString(t *shaderir.Type, packed bool, ref bool) string {