From f5fffa90e936ab462b3842f9b2cfa996ae870fe4 Mon Sep 17 00:00:00 2001 From: Dietrich Geisler Date: Fri, 18 Dec 2020 10:10:10 -0700 Subject: Heterogeneous Flag Error Visibility (#1642) * PR to fix issue #1638. This change introduces a diagnostic sink to the emitModule function, and updates all associated calls to that function. Additionally, this commit updates the heterogeneous hello world example to not need the entry and stage flags for simplicity. * Updated emit-cpp per suggested changes Co-authored-by: Tim Foley --- examples/heterogeneous-hello-world/shader.slang | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/heterogeneous-hello-world/shader.slang b/examples/heterogeneous-hello-world/shader.slang index ec3831788..47c883b39 100644 --- a/examples/heterogeneous-hello-world/shader.slang +++ b/examples/heterogeneous-hello-world/shader.slang @@ -3,6 +3,7 @@ //TEST_INPUT:ubuffer(random(float, 4096, -1.0, 1.0), stride=4):name=ioBuffer RWStructuredBuffer convertBuffer(Ptr x); +[shader("compute")] [numthreads(4, 1, 1)] void computeMain(uniform RWStructuredBuffer ioBuffer, uint3 dispatchThreadID : SV_DispatchThreadID) { -- cgit v1.2.3