public static void Invalidate(Device device, MappedMemoryRange ranges) { VkMappedMemoryRange rangeNative = Marshal(ranges); unsafe { InvalidateInternal(device, 1, &rangeNative); } }
public static void Flush(Device device, MappedMemoryRange ranges) { VkMappedMemoryRange rangeNative = Marshal(ranges); unsafe { FlushInternal(device, 1, &rangeNative); } }
public void Invalidate(MappedMemoryRange ranges) { ranges.memory = this; VkMappedMemoryRange rangeNative = Marshal(ranges); unsafe { InvalidateInternal(Device, 1, &rangeNative); } }
public void Flush(MappedMemoryRange ranges) { ranges.memory = this; VkMappedMemoryRange rangeNative = Marshal(ranges); unsafe { FlushInternal(Device, 1, &rangeNative); } }
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); }