From c701ec00ccce6dfa8094d6550ce2db929fc8cefe Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 1 Jul 2025 19:09:29 -0700 Subject: Defer immutable buffer loads when emitting spirv. (#7579) * Defer immutable buffer loads when emitting spirv. * Fix. * Fix. * Fix. * Fix tests. * Fix test. --- source/slang/slang-check-impl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-check-impl.h') diff --git a/source/slang/slang-check-impl.h b/source/slang/slang-check-impl.h index e73f65d75..7ddec20fb 100644 --- a/source/slang/slang-check-impl.h +++ b/source/slang/slang-check-impl.h @@ -3145,6 +3145,8 @@ bool isUnsizedArrayType(Type* type); bool isInterfaceType(Type* type); +bool isImmutableBufferType(Type* type); + // Check if `type` is nullable. An `Optional` will occupy the same space as `T`, if `T` // is nullable. bool isNullableType(Type* type); -- cgit v1.2.3