From 11111e5733b189127dc2c4934d67693b9bc6e764 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 6 Dec 2023 12:05:07 -0800 Subject: Support visibility control and default to `internal`. (#3380) * Support visibility control and default to `internal`. * Fix wip. * Fixes. * Fix. * Fix test. * Add legacy language detection and compatibility for existing code. * Add doc. --------- Co-authored-by: Yong He --- tests/reflection/reflect-imported-code.slang | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/reflection/reflect-imported-code.slang') diff --git a/tests/reflection/reflect-imported-code.slang b/tests/reflection/reflect-imported-code.slang index 20beb94b8..4600a371c 100644 --- a/tests/reflection/reflect-imported-code.slang +++ b/tests/reflection/reflect-imported-code.slang @@ -2,13 +2,13 @@ // Imported code used by `reflect-imported-code.hlsl` -float4 use(float4 val) { return val; }; -float4 use(Texture2D t, SamplerState s) { return t.Sample(s, 0.0); } +public float4 use(float4 val) { return val; }; +public float4 use(Texture2D t, SamplerState s) { return t.Sample(s, 0.0); } -Texture2D t_i; -SamplerState s_i; +public Texture2D t_i; +public SamplerState s_i; -cbuffer C_i +public cbuffer C_i { - float c_i; + public float c_i; } -- cgit v1.2.3