Beispiel #1
0
        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);
Beispiel #3
0
 internal static unsafe extern Result vkCreateSampler(Device device, SamplerCreateInfo *CreateInfo, AllocationCallbacks *Allocator, out IntPtr pSampler);
Beispiel #4
0
 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);