Skip to content

Commit f1a3ee5

Browse files
committed
Fix
1 parent 8a8f958 commit f1a3ee5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

05_StreamingAndBufferDeviceAddressApp/app_resources/shader.comp.hlsl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#include "common.hlsl"
22

3-
// just a small test
4-
#include "nbl/builtin/hlsl/jit/device_capabilities.hlsl"
5-
63
[[vk::push_constant]] PushConstantData pushConstants;
74

85
// does absolutely nothing, a later example will show how it gets used
9-
template<typename capability_traits=nbl::hlsl::jit::device_capabilities_traits>
6+
template<typename capability_traits=DeviceConfigCaps>
107
void dummyTraitTest() {}
118

129
[numthreads(WorkgroupSize,1,1)]

05_StreamingAndBufferDeviceAddressApp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ class StreamingAndBufferDeviceAddressApp final : public application_templates::M
9696
{
9797
IAssetLoader::SAssetLoadParams lp = {};
9898
lp.logger = m_logger.get();
99-
lp.workingDirectory = ""; // virtual root
99+
lp.workingDirectory = "app_resources"; // virtual root
100100

101-
auto key = "app_resources/" + nbl::this_example::builtin::build::get_spirv_key<"shader">(m_device.get());
101+
auto key = nbl::this_example::builtin::build::get_spirv_key<"shader">(m_device.get());
102102
auto assetBundle = m_assetMgr->getAsset(key.data(), lp);
103103
const auto assets = assetBundle.getContents();
104104
if (assets.empty())

0 commit comments

Comments
 (0)