From d4316c88457a32f1169b2d7d82053ccbc05fa7ed Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 14 May 2021 17:50:00 -0400 Subject: FXC as DownstreamCompiler (#1844) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP Fxc as downstream compiler. * First pass FXC downstream compiler working. * GCC compile fix. * Fix FXC parsing issue. * Special case filesystem access. * Use StringUtil getSlice. * Fix isses with not emitting source for FXC. * Small fixes for DXBC handling. --- tests/cross-compile/fxc-error.hlsl.expected | 2 +- tests/hlsl-intrinsic/texture/gather-texture2darray.slang.hlsl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/cross-compile/fxc-error.hlsl.expected b/tests/cross-compile/fxc-error.hlsl.expected index b3fa55696..98385feff 100644 --- a/tests/cross-compile/fxc-error.hlsl.expected +++ b/tests/cross-compile/fxc-error.hlsl.expected @@ -1,6 +1,6 @@ result code = -1 standard error = { -fxc: tests/cross-compile/fxc-error.hlsl(8,2-14): error X3004: undeclared identifier 'gOutputBuffer' +fxc 47.0: tests/cross-compile/fxc-error.hlsl(8): error X3004: undeclared identifier 'gOutputBuffer' } standard output = { } diff --git a/tests/hlsl-intrinsic/texture/gather-texture2darray.slang.hlsl b/tests/hlsl-intrinsic/texture/gather-texture2darray.slang.hlsl index de07f93ca..3865c45b6 100644 --- a/tests/hlsl-intrinsic/texture/gather-texture2darray.slang.hlsl +++ b/tests/hlsl-intrinsic/texture/gather-texture2darray.slang.hlsl @@ -6,7 +6,8 @@ Texture2DArray t_0; SamplerState s_0; RWBuffer b_0; -[shader("compute")] +// Attribute not understood by fxc +//[shader("compute")] [numthreads(32, 1, 1)] void main(uint3 tid : SV_DISPATCHTHREADID) { -- cgit v1.2.3