Struct Device
- Namespace
- SharpVulkan
- Assembly
- Lime.dll
public struct Device : IEquatable<Device>
- Implements
- Inherited Members
Fields
Null
public static readonly Device Null
Field Value
Methods
AcquireNextImage(Swapchain, ulong, Semaphore, Fence)
public uint AcquireNextImage(Swapchain swapchain, ulong timeout, Semaphore semaphore, Fence fence)
Parameters
Returns
AllocateCommandBuffers(ref CommandBufferAllocateInfo, CommandBuffer*)
public void AllocateCommandBuffers(ref CommandBufferAllocateInfo allocateInfo, CommandBuffer* commandBuffers)
Parameters
allocateInfoCommandBufferAllocateInfocommandBuffersCommandBuffer*
AllocateDescriptorSets(ref DescriptorSetAllocateInfo, DescriptorSet*)
public void AllocateDescriptorSets(ref DescriptorSetAllocateInfo allocateInfo, DescriptorSet* descriptorSets)
Parameters
allocateInfoDescriptorSetAllocateInfodescriptorSetsDescriptorSet*
AllocateMemory(ref MemoryAllocateInfo, AllocationCallbacks*)
public DeviceMemory AllocateMemory(ref MemoryAllocateInfo allocateInfo, AllocationCallbacks* allocator = null)
Parameters
allocateInfoMemoryAllocateInfoallocatorAllocationCallbacks*
Returns
BindBufferMemory(Buffer, DeviceMemory, ulong)
public void BindBufferMemory(Buffer buffer, DeviceMemory memory, ulong memoryOffset)
Parameters
bufferBuffermemoryDeviceMemorymemoryOffsetulong
BindImageMemory(Image, DeviceMemory, ulong)
public void BindImageMemory(Image image, DeviceMemory memory, ulong memoryOffset)
Parameters
imageImagememoryDeviceMemorymemoryOffsetulong
CreateBuffer(ref BufferCreateInfo, AllocationCallbacks*)
public Buffer CreateBuffer(ref BufferCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoBufferCreateInfoallocatorAllocationCallbacks*
Returns
CreateBufferView(ref BufferViewCreateInfo, AllocationCallbacks*)
public BufferView CreateBufferView(ref BufferViewCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoBufferViewCreateInfoallocatorAllocationCallbacks*
Returns
CreateCommandPool(ref CommandPoolCreateInfo, AllocationCallbacks*)
public CommandPool CreateCommandPool(ref CommandPoolCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoCommandPoolCreateInfoallocatorAllocationCallbacks*
Returns
CreateComputePipelines(PipelineCache, uint, ComputePipelineCreateInfo*, AllocationCallbacks*)
public Pipeline CreateComputePipelines(PipelineCache pipelineCache, uint createInfoCount, ComputePipelineCreateInfo* createInfos, AllocationCallbacks* allocator = null)
Parameters
pipelineCachePipelineCachecreateInfoCountuintcreateInfosComputePipelineCreateInfo*allocatorAllocationCallbacks*
Returns
CreateDescriptorPool(ref DescriptorPoolCreateInfo, AllocationCallbacks*)
public DescriptorPool CreateDescriptorPool(ref DescriptorPoolCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoDescriptorPoolCreateInfoallocatorAllocationCallbacks*
Returns
CreateDescriptorSetLayout(ref DescriptorSetLayoutCreateInfo, AllocationCallbacks*)
public DescriptorSetLayout CreateDescriptorSetLayout(ref DescriptorSetLayoutCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoDescriptorSetLayoutCreateInfoallocatorAllocationCallbacks*
Returns
CreateEvent(ref EventCreateInfo, AllocationCallbacks*)
public Event CreateEvent(ref EventCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoEventCreateInfoallocatorAllocationCallbacks*
Returns
CreateFence(ref FenceCreateInfo, AllocationCallbacks*)
public Fence CreateFence(ref FenceCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoFenceCreateInfoallocatorAllocationCallbacks*
Returns
CreateFramebuffer(ref FramebufferCreateInfo, AllocationCallbacks*)
public Framebuffer CreateFramebuffer(ref FramebufferCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoFramebufferCreateInfoallocatorAllocationCallbacks*
Returns
CreateGraphicsPipelines(PipelineCache, uint, GraphicsPipelineCreateInfo*, AllocationCallbacks*)
public Pipeline CreateGraphicsPipelines(PipelineCache pipelineCache, uint createInfoCount, GraphicsPipelineCreateInfo* createInfos, AllocationCallbacks* allocator = null)
Parameters
pipelineCachePipelineCachecreateInfoCountuintcreateInfosGraphicsPipelineCreateInfo*allocatorAllocationCallbacks*
Returns
CreateImage(ref ImageCreateInfo, AllocationCallbacks*)
public Image CreateImage(ref ImageCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoImageCreateInfoallocatorAllocationCallbacks*
Returns
CreateImageView(ref ImageViewCreateInfo, AllocationCallbacks*)
public ImageView CreateImageView(ref ImageViewCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoImageViewCreateInfoallocatorAllocationCallbacks*
Returns
CreateIndirectCommandsLayout(ref IndirectCommandsLayoutCreateInfo, AllocationCallbacks*)
public IndirectCommandsLayout CreateIndirectCommandsLayout(ref IndirectCommandsLayoutCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoIndirectCommandsLayoutCreateInfoallocatorAllocationCallbacks*
Returns
CreateObjectTable(ref ObjectTableCreateInfo, AllocationCallbacks*)
public ObjectTable CreateObjectTable(ref ObjectTableCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoObjectTableCreateInfoallocatorAllocationCallbacks*
Returns
CreatePipelineCache(ref PipelineCacheCreateInfo, AllocationCallbacks*)
public PipelineCache CreatePipelineCache(ref PipelineCacheCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoPipelineCacheCreateInfoallocatorAllocationCallbacks*
Returns
CreatePipelineLayout(ref PipelineLayoutCreateInfo, AllocationCallbacks*)
public PipelineLayout CreatePipelineLayout(ref PipelineLayoutCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoPipelineLayoutCreateInfoallocatorAllocationCallbacks*
Returns
CreateQueryPool(ref QueryPoolCreateInfo, AllocationCallbacks*)
public QueryPool CreateQueryPool(ref QueryPoolCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoQueryPoolCreateInfoallocatorAllocationCallbacks*
Returns
CreateRenderPass(ref RenderPassCreateInfo, AllocationCallbacks*)
public RenderPass CreateRenderPass(ref RenderPassCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoRenderPassCreateInfoallocatorAllocationCallbacks*
Returns
CreateSampler(ref SamplerCreateInfo, AllocationCallbacks*)
public Sampler CreateSampler(ref SamplerCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoSamplerCreateInfoallocatorAllocationCallbacks*
Returns
CreateSemaphore(ref SemaphoreCreateInfo, AllocationCallbacks*)
public Semaphore CreateSemaphore(ref SemaphoreCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoSemaphoreCreateInfoallocatorAllocationCallbacks*
Returns
CreateShaderModule(ref ShaderModuleCreateInfo, AllocationCallbacks*)
public ShaderModule CreateShaderModule(ref ShaderModuleCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoShaderModuleCreateInfoallocatorAllocationCallbacks*
Returns
CreateSharedSwapchains(SwapchainCreateInfo[], AllocationCallbacks)
public Swapchain[] CreateSharedSwapchains(SwapchainCreateInfo[] createInfos, AllocationCallbacks allocator)
Parameters
createInfosSwapchainCreateInfo[]allocatorAllocationCallbacks
Returns
CreateSwapchain(ref SwapchainCreateInfo, AllocationCallbacks*)
public Swapchain CreateSwapchain(ref SwapchainCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfoSwapchainCreateInfoallocatorAllocationCallbacks*
Returns
DebugMarkerSetObjectName(ref DebugMarkerObjectNameInfo)
public void DebugMarkerSetObjectName(ref DebugMarkerObjectNameInfo nameInfo)
Parameters
nameInfoDebugMarkerObjectNameInfo
DebugMarkerSetObjectTag(ref DebugMarkerObjectTagInfo)
public void DebugMarkerSetObjectTag(ref DebugMarkerObjectTagInfo tagInfo)
Parameters
tagInfoDebugMarkerObjectTagInfo
Destroy(AllocationCallbacks*)
public void Destroy(AllocationCallbacks* allocator = null)
Parameters
allocatorAllocationCallbacks*
DestroyBuffer(Buffer, AllocationCallbacks*)
public void DestroyBuffer(Buffer buffer, AllocationCallbacks* allocator = null)
Parameters
bufferBufferallocatorAllocationCallbacks*
DestroyBufferView(BufferView, AllocationCallbacks*)
public void DestroyBufferView(BufferView bufferView, AllocationCallbacks* allocator = null)
Parameters
bufferViewBufferViewallocatorAllocationCallbacks*
DestroyCommandPool(CommandPool, AllocationCallbacks*)
public void DestroyCommandPool(CommandPool commandPool, AllocationCallbacks* allocator = null)
Parameters
commandPoolCommandPoolallocatorAllocationCallbacks*
DestroyDescriptorPool(DescriptorPool, AllocationCallbacks*)
public void DestroyDescriptorPool(DescriptorPool descriptorPool, AllocationCallbacks* allocator = null)
Parameters
descriptorPoolDescriptorPoolallocatorAllocationCallbacks*
DestroyDescriptorSetLayout(DescriptorSetLayout, AllocationCallbacks*)
public void DestroyDescriptorSetLayout(DescriptorSetLayout descriptorSetLayout, AllocationCallbacks* allocator = null)
Parameters
descriptorSetLayoutDescriptorSetLayoutallocatorAllocationCallbacks*
DestroyEvent(Event, AllocationCallbacks*)
public void DestroyEvent(Event @event, AllocationCallbacks* allocator = null)
Parameters
eventEventallocatorAllocationCallbacks*
DestroyFence(Fence, AllocationCallbacks*)
public void DestroyFence(Fence fence, AllocationCallbacks* allocator = null)
Parameters
fenceFenceallocatorAllocationCallbacks*
DestroyFramebuffer(Framebuffer, AllocationCallbacks*)
public void DestroyFramebuffer(Framebuffer framebuffer, AllocationCallbacks* allocator = null)
Parameters
framebufferFramebufferallocatorAllocationCallbacks*
DestroyImage(Image, AllocationCallbacks*)
public void DestroyImage(Image image, AllocationCallbacks* allocator = null)
Parameters
imageImageallocatorAllocationCallbacks*
DestroyImageView(ImageView, AllocationCallbacks*)
public void DestroyImageView(ImageView imageView, AllocationCallbacks* allocator = null)
Parameters
imageViewImageViewallocatorAllocationCallbacks*
DestroyIndirectCommandsLayout(IndirectCommandsLayout, AllocationCallbacks*)
public void DestroyIndirectCommandsLayout(IndirectCommandsLayout indirectCommandsLayout, AllocationCallbacks* allocator = null)
Parameters
indirectCommandsLayoutIndirectCommandsLayoutallocatorAllocationCallbacks*
DestroyObjectTable(ObjectTable, AllocationCallbacks*)
public void DestroyObjectTable(ObjectTable objectTable, AllocationCallbacks* allocator = null)
Parameters
objectTableObjectTableallocatorAllocationCallbacks*
DestroyPipeline(Pipeline, AllocationCallbacks*)
public void DestroyPipeline(Pipeline pipeline, AllocationCallbacks* allocator = null)
Parameters
pipelinePipelineallocatorAllocationCallbacks*
DestroyPipelineCache(PipelineCache, AllocationCallbacks*)
public void DestroyPipelineCache(PipelineCache pipelineCache, AllocationCallbacks* allocator = null)
Parameters
pipelineCachePipelineCacheallocatorAllocationCallbacks*
DestroyPipelineLayout(PipelineLayout, AllocationCallbacks*)
public void DestroyPipelineLayout(PipelineLayout pipelineLayout, AllocationCallbacks* allocator = null)
Parameters
pipelineLayoutPipelineLayoutallocatorAllocationCallbacks*
DestroyQueryPool(QueryPool, AllocationCallbacks*)
public void DestroyQueryPool(QueryPool queryPool, AllocationCallbacks* allocator = null)
Parameters
queryPoolQueryPoolallocatorAllocationCallbacks*
DestroyRenderPass(RenderPass, AllocationCallbacks*)
public void DestroyRenderPass(RenderPass renderPass, AllocationCallbacks* allocator = null)
Parameters
renderPassRenderPassallocatorAllocationCallbacks*
DestroySampler(Sampler, AllocationCallbacks*)
public void DestroySampler(Sampler sampler, AllocationCallbacks* allocator = null)
Parameters
samplerSamplerallocatorAllocationCallbacks*
DestroySemaphore(Semaphore, AllocationCallbacks*)
public void DestroySemaphore(Semaphore semaphore, AllocationCallbacks* allocator = null)
Parameters
semaphoreSemaphoreallocatorAllocationCallbacks*
DestroyShaderModule(ShaderModule, AllocationCallbacks*)
public void DestroyShaderModule(ShaderModule shaderModule, AllocationCallbacks* allocator = null)
Parameters
shaderModuleShaderModuleallocatorAllocationCallbacks*
DestroySwapchain(Swapchain, AllocationCallbacks*)
public void DestroySwapchain(Swapchain swapchain, AllocationCallbacks* allocator = null)
Parameters
swapchainSwapchainallocatorAllocationCallbacks*
DisplayPowerControl(Display, ref DisplayPowerInfo)
public void DisplayPowerControl(Display display, ref DisplayPowerInfo displayPowerInfo)
Parameters
displayDisplaydisplayPowerInfoDisplayPowerInfo
Equals(Device)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Device other)
Parameters
otherDeviceAn object to compare with this object.
Returns
FlushMappedMemoryRanges(uint, MappedMemoryRange*)
public void FlushMappedMemoryRanges(uint memoryRangeCount, MappedMemoryRange* memoryRanges)
Parameters
memoryRangeCountuintmemoryRangesMappedMemoryRange*
FreeCommandBuffers(CommandPool, uint, CommandBuffer*)
public void FreeCommandBuffers(CommandPool commandPool, uint commandBufferCount, CommandBuffer* commandBuffers)
Parameters
commandPoolCommandPoolcommandBufferCountuintcommandBuffersCommandBuffer*
FreeDescriptorSets(DescriptorPool, uint, DescriptorSet*)
public void FreeDescriptorSets(DescriptorPool descriptorPool, uint descriptorSetCount, DescriptorSet* descriptorSets)
Parameters
descriptorPoolDescriptorPooldescriptorSetCountuintdescriptorSetsDescriptorSet*
FreeMemory(DeviceMemory, AllocationCallbacks*)
public void FreeMemory(DeviceMemory memory, AllocationCallbacks* allocator = null)
Parameters
memoryDeviceMemoryallocatorAllocationCallbacks*
GetBufferMemoryRequirements(Buffer, out MemoryRequirements)
public void GetBufferMemoryRequirements(Buffer buffer, out MemoryRequirements memoryRequirements)
Parameters
bufferBuffermemoryRequirementsMemoryRequirements
GetEventStatus(Event)
public Result GetEventStatus(Event @event)
Parameters
eventEvent
Returns
GetFenceStatus(Fence)
public Result GetFenceStatus(Fence fence)
Parameters
fenceFence
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
GetImageMemoryRequirements(Image, out MemoryRequirements)
public void GetImageMemoryRequirements(Image image, out MemoryRequirements memoryRequirements)
Parameters
imageImagememoryRequirementsMemoryRequirements
GetImageSubresourceLayout(Image, ImageSubresource, out SubresourceLayout)
public void GetImageSubresourceLayout(Image image, ImageSubresource subresource, out SubresourceLayout layout)
Parameters
imageImagesubresourceImageSubresourcelayoutSubresourceLayout
GetMemoryCommitment(DeviceMemory)
public ulong GetMemoryCommitment(DeviceMemory memory)
Parameters
memoryDeviceMemory
Returns
GetMemoryWin32Handle(DeviceMemory, uint)
public int GetMemoryWin32Handle(DeviceMemory memory, uint handleType)
Parameters
memoryDeviceMemoryhandleTypeuint
Returns
GetPipelineCacheData(PipelineCache)
public byte[] GetPipelineCacheData(PipelineCache pipelineCache)
Parameters
pipelineCachePipelineCache
Returns
- byte[]
GetPipelineCacheData(PipelineCache, ref PointerSize, nint)
public void GetPipelineCacheData(PipelineCache pipelineCache, ref PointerSize dataSize, nint data)
Parameters
pipelineCachePipelineCachedataSizePointerSizedatanint
GetProcAddress(byte*)
public nint GetProcAddress(byte* name)
Parameters
namebyte*
Returns
GetQueryPoolResults(QueryPool, uint, uint, PointerSize, nint, ulong, QueryResultFlags)
public void GetQueryPoolResults(QueryPool queryPool, uint firstQuery, uint queryCount, PointerSize dataSize, nint data, ulong stride, QueryResultFlags flags)
Parameters
queryPoolQueryPoolfirstQueryuintqueryCountuintdataSizePointerSizedatanintstrideulongflagsQueryResultFlags
GetQueue(uint, uint)
public Queue GetQueue(uint queueFamilyIndex, uint queueIndex)
Parameters
Returns
GetRenderAreaGranularity(RenderPass)
public Extent2D GetRenderAreaGranularity(RenderPass renderPass)
Parameters
renderPassRenderPass
Returns
GetSparseMemoryRequirements(Image)
public SparseImageMemoryRequirements[] GetSparseMemoryRequirements(Image image)
Parameters
imageImage
Returns
GetSwapchainCounter(Swapchain, SurfaceCounterFlags)
public ulong GetSwapchainCounter(Swapchain swapchain, SurfaceCounterFlags counter)
Parameters
swapchainSwapchaincounterSurfaceCounterFlags
Returns
GetSwapchainImages(Swapchain)
public Image[] GetSwapchainImages(Swapchain swapchain)
Parameters
swapchainSwapchain
Returns
- Image[]
InvalidateMappedMemoryRanges(uint, MappedMemoryRange*)
public void InvalidateMappedMemoryRanges(uint memoryRangeCount, MappedMemoryRange* memoryRanges)
Parameters
memoryRangeCountuintmemoryRangesMappedMemoryRange*
MapMemory(DeviceMemory, ulong, ulong, MemoryMapFlags)
public nint MapMemory(DeviceMemory memory, ulong offset, ulong size, MemoryMapFlags flags)
Parameters
memoryDeviceMemoryoffsetulongsizeulongflagsMemoryMapFlags
Returns
MergePipelineCaches(PipelineCache, uint, PipelineCache)
public void MergePipelineCaches(PipelineCache destinationCache, uint sourceCacheCount, PipelineCache srcCaches)
Parameters
destinationCachePipelineCachesourceCacheCountuintsrcCachesPipelineCache
RegisterDisplayEvent(Display, ref DisplayEventInfo, AllocationCallbacks*)
public Fence RegisterDisplayEvent(Display display, ref DisplayEventInfo displayEventInfo, AllocationCallbacks* allocator = null)
Parameters
displayDisplaydisplayEventInfoDisplayEventInfoallocatorAllocationCallbacks*
Returns
RegisterEvent(ref DeviceEventInfo, AllocationCallbacks*)
public Fence RegisterEvent(ref DeviceEventInfo deviceEventInfo, AllocationCallbacks* allocator = null)
Parameters
deviceEventInfoDeviceEventInfoallocatorAllocationCallbacks*
Returns
RegisterObjects(ObjectTable, uint, nint, uint)
public void RegisterObjects(ObjectTable objectTable, uint objectCount, nint objectTableEntries, uint objectIndices)
Parameters
objectTableObjectTableobjectCountuintobjectTableEntriesnintobjectIndicesuint
ResetCommandPool(CommandPool, CommandPoolResetFlags)
public void ResetCommandPool(CommandPool commandPool, CommandPoolResetFlags flags)
Parameters
commandPoolCommandPoolflagsCommandPoolResetFlags
ResetDescriptorPool(DescriptorPool, DescriptorPoolResetFlags)
public void ResetDescriptorPool(DescriptorPool descriptorPool, DescriptorPoolResetFlags flags)
Parameters
descriptorPoolDescriptorPoolflagsDescriptorPoolResetFlags
ResetEvent(Event)
public void ResetEvent(Event @event)
Parameters
eventEvent
ResetFences(uint, Fence*)
public void ResetFences(uint fenceCount, Fence* fences)
Parameters
SetEvent(Event)
public void SetEvent(Event @event)
Parameters
eventEvent
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TrimCommandPool(CommandPool, CommandPoolTrimFlags)
public void TrimCommandPool(CommandPool commandPool, CommandPoolTrimFlags flags)
Parameters
commandPoolCommandPoolflagsCommandPoolTrimFlags
UnmapMemory(DeviceMemory)
public void UnmapMemory(DeviceMemory memory)
Parameters
memoryDeviceMemory
UnregisterObjects(ObjectTable, uint, ObjectEntryType, uint)
public void UnregisterObjects(ObjectTable objectTable, uint objectCount, ObjectEntryType objectEntryTypes, uint objectIndices)
Parameters
objectTableObjectTableobjectCountuintobjectEntryTypesObjectEntryTypeobjectIndicesuint
UpdateDescriptorSets(uint, WriteDescriptorSet*, uint, CopyDescriptorSet*)
public void UpdateDescriptorSets(uint descriptorWriteCount, WriteDescriptorSet* descriptorWrites, uint descriptorCopyCount, CopyDescriptorSet* descriptorCopies)
Parameters
descriptorWriteCountuintdescriptorWritesWriteDescriptorSet*descriptorCopyCountuintdescriptorCopiesCopyDescriptorSet*
WaitForFences(uint, Fence*, RawBool, ulong)
public void WaitForFences(uint fenceCount, Fence* fences, RawBool waitAll, ulong timeout)
Parameters
WaitIdle()
public void WaitIdle()
Operators
operator ==(Device, Device)
public static bool operator ==(Device left, Device right)
Parameters
Returns
operator !=(Device, Device)
public static bool operator !=(Device left, Device right)