From 2bf87743ffe73f041036ae62c8bf53f09215ca53 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 14 Jul 2017 10:44:42 -0700 Subject: Don't assign a `binding` to a `push_constant` buffer Fixes #12 - This was a latent issue, but the previous commit brought it to the front. - As indicated in #12, I don't allocate a descriptor-table slot to the block - Instead I allocate a `PushConstantBuffer` - Unlike what #12 asks for, I don't use a different resource type for the contents of the block - Pretty much all the logic is easiest if these continue to be just plain `Uniform` data --- source/slang/diagnostics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/diagnostics.h') diff --git a/source/slang/diagnostics.h b/source/slang/diagnostics.h index 6957fc763..988cb742b 100644 --- a/source/slang/diagnostics.h +++ b/source/slang/diagnostics.h @@ -206,7 +206,7 @@ namespace Slang #define SLANG_UNIMPLEMENTED(sink, pos, what) \ (sink)->diagnose(Slang::CodePosition(__LINE__, 0, 0, __FILE__), Slang::Diagnostics::unimplemented, what) -#define SLANG_UNREACHABLE(msg) do { assert(!"ureachable code:" msg); exit(1); } while(0) +#define SLANG_UNREACHABLE(msg) do { assert(!"ureachable code:" msg); throw 0; } while(0) #else #define SLANG_INTERNAL_ERROR(sink, pos) \ (sink)->diagnose(pos, Slang::Diagnostics::internalCompilerError) -- cgit v1.2.3