Beispiel #1
0
        public unsafe SparseImageMemoryRequirements[] GetSparseMemoryRequirements(Image image)
        {
            uint count = 0;
            GetImageSparseMemoryRequirements(image, ref count, null);

            var result = new SparseImageMemoryRequirements[count];
            if (count > 0)
            {
                fixed (SparseImageMemoryRequirements* resultPointer = &result[0])
                    GetImageSparseMemoryRequirements(image, ref count, resultPointer);
            }

            return result;
        }
Beispiel #2
0
        public unsafe SparseImageMemoryRequirements[] GetSparseMemoryRequirements(Image image)
        {
            uint count = 0;

            GetImageSparseMemoryRequirements(image, ref count, null);

            var result = new SparseImageMemoryRequirements[count];

            if (count > 0)
            {
                fixed(SparseImageMemoryRequirements *resultPointer = &result[0])
                GetImageSparseMemoryRequirements(image, ref count, resultPointer);
            }

            return(result);
        }
Beispiel #3
0
 internal unsafe void GetImageSparseMemoryRequirements(Image image, ref uint sparseMemoryRequirementCount, SparseImageMemoryRequirements* sparseMemoryRequirements)
 {
     fixed (uint* __sparseMemoryRequirementCount__ = &sparseMemoryRequirementCount)
     {
         vkGetImageSparseMemoryRequirements(this, image, __sparseMemoryRequirementCount__, sparseMemoryRequirements);
     }
 }
Beispiel #4
0
 internal static unsafe extern void vkGetImageSparseMemoryRequirements(Device device, Image image, uint* sparseMemoryRequirementCount, SparseImageMemoryRequirements* sparseMemoryRequirements);