Example #1
0
        public static void Invalidate(Device device, MappedMemoryRange ranges)
        {
            VkMappedMemoryRange rangeNative = Marshal(ranges);

            unsafe
            {
                InvalidateInternal(device, 1, &rangeNative);
            }
        }
Example #2
0
        public static void Flush(Device device, MappedMemoryRange ranges)
        {
            VkMappedMemoryRange rangeNative = Marshal(ranges);

            unsafe
            {
                FlushInternal(device, 1, &rangeNative);
            }
        }
Example #3
0
        public void Invalidate(MappedMemoryRange ranges)
        {
            ranges.memory = this;
            VkMappedMemoryRange rangeNative = Marshal(ranges);

            unsafe
            {
                InvalidateInternal(Device, 1, &rangeNative);
            }
        }
Example #4
0
        public void Flush(MappedMemoryRange ranges)
        {
            ranges.memory = this;
            VkMappedMemoryRange rangeNative = Marshal(ranges);

            unsafe
            {
                FlushInternal(Device, 1, &rangeNative);
            }
        }
Example #5
0
        static VkMappedMemoryRange Marshal(MappedMemoryRange range)
        {
            var result = new VkMappedMemoryRange();

            result.sType  = VkStructureType.MappedMemoryRange;
            result.memory = range.memory.Native;
            result.offset = range.offset;
            result.size   = range.size;

            return(result);
        }