Skip to content

Commit

Permalink
test-server should use d3d12core.dll from bin directory (#6095)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwak-work authored Jan 18, 2025
1 parent 955c10b commit 87a0816
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tests/expected-failure-github.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ tests/bugs/buffer-swizzle-store.slang.3 syn (wgpu)
tests/compute/interface-shader-param-in-struct.slang.4 syn (wgpu)
tests/compute/interface-shader-param.slang.5 syn (wgpu)
tests/language-feature/shader-params/interface-shader-param-ordinary.slang.4 syn (wgpu)
gfx-unit-test-tool/RayTracingTestAD3D12.internal
gfx-unit-test-tool/RayTracingTestBD3D12.internal
10 changes: 5 additions & 5 deletions tests/hlsl-intrinsic/texture/partial-resident-texture.slang
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ RWByteAddressBuffer iBuf;
//TEST_INPUT: Sampler:name samplerState
SamplerState samplerState;

__generic<T : __BuiltinArithmeticType, let N:int>
bool TEST_texture(
Texture2D<vector<T,N>> t2D,
Texture2DMS<vector<T,N>> t2DMS)
bool TEST_texture<T>(
Texture2D<T> t2D,
Texture2DMS<T> t2DMS)
where T : ITexelElement, IArithmetic
{
typealias TN = vector<T,N>;
typealias TN = T;
constexpr const int2 offset = int2(0, 0);
uint status;
float clamp = 0;
Expand Down
14 changes: 14 additions & 0 deletions tools/test-server/test-server-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
#include <stdlib.h>
#include <string.h>

#if defined(_WIN32)
// https://devblogs.microsoft.com/directx/gettingstarted-dx12agility/#2.-set-agility-sdk-parameters

extern "C"
{
__declspec(dllexport) extern const uint32_t D3D12SDKVersion = 711;
}

extern "C"
{
__declspec(dllexport) extern const char* D3D12SDKPath = u8".\\D3D12\\";
}
#endif

namespace TestServer
{
using namespace Slang;
Expand Down

0 comments on commit 87a0816

Please sign in to comment.