Skip to content

Commit 11f3317

Browse files
authored
Make RTTI objects __constant__ in CUDA (shader-slang#1573)
Co-authored-by: Yong He <yhe@nvidia.com>
1 parent 66ab6f4 commit 11f3317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/slang-emit-cuda.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ String CUDASourceEmitter::generateEntryPointNameImpl(IREntryPointDecoration* ent
333333

334334
void CUDASourceEmitter::emitGlobalRTTISymbolPrefix()
335335
{
336-
m_writer->emit("__device__ ");
336+
m_writer->emit("__constant__ ");
337337
}
338338

339339
void CUDASourceEmitter::emitCall(const HLSLIntrinsic* specOp, IRInst* inst, const IRUse* operands, int numOperands, const EmitOpInfo& inOuterPrec)

0 commit comments

Comments
 (0)