yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
1// d3d12-sampler.cpp 2#include "d3d12-sampler.h" 3 4namespace gfx 5{ 6namespace d3d12 7{ 8 9using namespace Slang ; 10 11SamplerStateImpl ::~SamplerStateImpl () 12{ 13m_allocator -> free (m_descriptor ); 14} 15 16Result SamplerStateImpl ::getNativeHandle (InteropHandle * outHandle ) 17{ 18outHandle -> api = InteropHandleAPI ::D3D12CpuDescriptorHandle ; 19outHandle -> handleValue = m_descriptor .cpuHandle .ptr ; 20return SLANG_OK ; 21} 22 23}// namespace d3d12 24}// namespace gfx