internal Sampler(Device parent, SamplerCreateInfo *createInfo, ref AllocationCallbacks?allocator) { Parent = parent; Allocator = allocator; createInfo->Prepare(); long handle; Result result = vkCreateSampler(Parent, createInfo, NativeAllocator, &handle); VulkanException.ThrowForInvalidResult(result); Handle = handle; }
public static extern unsafe Result vkCreateSampler(IntPtr device, SamplerCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, ulong *pSampler);
internal static unsafe extern Result vkCreateSampler(Device device, SamplerCreateInfo *CreateInfo, AllocationCallbacks *Allocator, out IntPtr pSampler);
internal static unsafe extern Result vkCreateSampler(IntPtr device, SamplerCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, UInt64 *pSampler);
internal static unsafe extern Result vkCreateSampler(IntPtr device, SamplerCreateInfo *CreateInfo, IntPtr Allocator, UInt64 *Sampler);