From 10fd9f288fc125a7fd25fea708a65c75b5e6df7f Mon Sep 17 00:00:00 2001 From: Simon Kallweit Date: Mon, 2 Sep 2024 00:13:38 +0200 Subject: [PATCH] fix macos --- include/slang-rhi.h | 1 + src/metal/metal-sampler.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/slang-rhi.h b/include/slang-rhi.h index 43f7c4ba..6a0f0ba6 100644 --- a/include/slang-rhi.h +++ b/include/slang-rhi.h @@ -558,6 +558,7 @@ enum class NativeHandleType MTLComputePipelineState = 0x00040006, MTLRenderPipelineState = 0x00040007, MTLSharedEvent = 0x00040008, + MTLSamplerState = 0x00040009, CUdevice = 0x00050001, CUdeviceptr = 0x00050002, diff --git a/src/metal/metal-sampler.cpp b/src/metal/metal-sampler.cpp index 06392a12..193a607f 100644 --- a/src/metal/metal-sampler.cpp +++ b/src/metal/metal-sampler.cpp @@ -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; }