Skip to content

Commit 987a5de

Browse files
Merge pull request #810 from Devsh-Graphics-Programming/bad_capability_bitcast
Stop bitcast emitting the BDA capability if bitcasting between SPIR-V builtin types
2 parents 4b1926b + 619915a commit 987a5de

File tree

1 file changed

+1
-2
lines changed
  • include/nbl/builtin/hlsl/spirv_intrinsics

1 file changed

+1
-2
lines changed

include/nbl/builtin/hlsl/spirv_intrinsics/core.hlsl

+1-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ void memoryBarrier(uint32_t memoryScope, uint32_t memorySemantics);
200200

201201
// Add specializations if you need to emit a `ext_capability` (this means that the instruction needs to forward through an `impl::` struct and so on)
202202
template<typename T, typename U>
203-
[[vk::ext_capability(spv::CapabilityPhysicalStorageBufferAddresses)]]
204203
[[vk::ext_instruction(spv::OpBitcast)]]
205204
enable_if_t<is_spirv_type_v<T> && is_spirv_type_v<U>, T> bitcast(U);
206205

@@ -252,4 +251,4 @@ Matrix transpose(NBL_CONST_REF_ARG(Matrix) mat);
252251
}
253252
}
254253

255-
#endif
254+
#endif

0 commit comments

Comments
 (0)