Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public static extern unsafe Result vkCreateSampler(IntPtr device, SamplerCreateInfo *pCreateInfo, AllocationCallbacks *pAllocator, ulong *pSampler);
Ejemplo n.º 3
0
 internal static unsafe extern Result vkCreateSampler(Device device, SamplerCreateInfo *CreateInfo, AllocationCallbacks *Allocator, out IntPtr pSampler);
Ejemplo n.º 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);