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

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

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

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

            unsafe
            {
                FlushInternal(Device, 1, &rangeNative);
            }
        }
예제 #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);
        }