yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Ellie Hermaszewskaformatf65d756bf

master
443 B24 linesraw
1// d3d12-sampler.cpp
2#include "d3d12-sampler.h"
3
4namespace gfx
5{
6namespace d3d12
7{
8
9using namespace Slang;
10
11SamplerStateImpl::~SamplerStateImpl()
12{
13    m_allocator->free(m_descriptor);
14}
15
16Result SamplerStateImpl::getNativeHandle(InteropHandle* outHandle)
17{
18    outHandle->api = InteropHandleAPI::D3D12CpuDescriptorHandle;
19    outHandle->handleValue = m_descriptor.cpuHandle.ptr;
20    return SLANG_OK;
21}
22
23} // namespace d3d12
24} // namespace gfx