Skip to content

Commit

Permalink
fix macos
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Sep 1, 2024
1 parent 63ee51f commit 10fd9f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/slang-rhi.h
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ enum class NativeHandleType
MTLComputePipelineState = 0x00040006,
MTLRenderPipelineState = 0x00040007,
MTLSharedEvent = 0x00040008,
MTLSamplerState = 0x00040009,

CUdevice = 0x00050001,
CUdeviceptr = 0x00050002,
Expand Down
2 changes: 1 addition & 1 deletion src/metal/metal-sampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Result SamplerImpl::init(DeviceImpl* device, const SamplerDesc& desc)

Result SamplerImpl::getNativeHandle(NativeHandle* outHandle)
{
outHandle->type = NativeHandleType::MTL_SamplerState;
outHandle->type = NativeHandleType::MTLSamplerState;
outHandle->value = (uint64_t)(m_samplerState.get());
return SLANG_OK;
}
Expand Down

0 comments on commit 10fd9f2

Please sign in to comment.