summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArielG-NV <159081215+ArielG-NV@users.noreply.github.com>2024-09-04 19:57:06 -0400
committerGitHub <noreply@github.com>2024-09-04 19:57:06 -0400
commitdc3f2d65848837afaf528beefc305534a29540c8 (patch)
tree8fefbf991f7ff1b33a13cfaddbecc1df38d07ea8 /tests
parent599dae52e85d2a86bf3cae1ebd0883fedf44a76e (diff)
Fix resource specialization with `-embed-dxil` (#4990)
* Fix resource specialization with `-embed-dxil` fixes: #4989 Changes: 1. Before handing off to DCE an `oldFunc` which should be removed, clean up any leftover `IRKeepAliveDecoration` (else DCE won't remove our `oldFunc`s)
Diffstat (limited to 'tests')
-rw-r--r--tests/library/precompiled-module-library-resource.slang5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/library/precompiled-module-library-resource.slang b/tests/library/precompiled-module-library-resource.slang
index 79c3daaa1..3eeab39d8 100644
--- a/tests/library/precompiled-module-library-resource.slang
+++ b/tests/library/precompiled-module-library-resource.slang
@@ -9,6 +9,11 @@ module "precompiled-module-library-resource";
public struct ResourceStruct {
public StructuredBuffer<int> buffer;
+
+ __init(StructuredBuffer<int> bufferIn)
+ {
+ buffer = bufferIn;
+ }
};
public int resource_in_parameter(StructuredBuffer<int> buffer)