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
allocateInfo
CommandBufferAllocateInfocommandBuffers
CommandBuffer*
AllocateDescriptorSets(ref DescriptorSetAllocateInfo, DescriptorSet*)
public void AllocateDescriptorSets(ref DescriptorSetAllocateInfo allocateInfo, DescriptorSet* descriptorSets)
Parameters
allocateInfo
DescriptorSetAllocateInfodescriptorSets
DescriptorSet*
AllocateMemory(ref MemoryAllocateInfo, AllocationCallbacks*)
public DeviceMemory AllocateMemory(ref MemoryAllocateInfo allocateInfo, AllocationCallbacks* allocator = null)
Parameters
allocateInfo
MemoryAllocateInfoallocator
AllocationCallbacks*
Returns
BindBufferMemory(Buffer, DeviceMemory, ulong)
public void BindBufferMemory(Buffer buffer, DeviceMemory memory, ulong memoryOffset)
Parameters
buffer
Buffermemory
DeviceMemorymemoryOffset
ulong
BindImageMemory(Image, DeviceMemory, ulong)
public void BindImageMemory(Image image, DeviceMemory memory, ulong memoryOffset)
Parameters
image
Imagememory
DeviceMemorymemoryOffset
ulong
CreateBuffer(ref BufferCreateInfo, AllocationCallbacks*)
public Buffer CreateBuffer(ref BufferCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
BufferCreateInfoallocator
AllocationCallbacks*
Returns
CreateBufferView(ref BufferViewCreateInfo, AllocationCallbacks*)
public BufferView CreateBufferView(ref BufferViewCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
BufferViewCreateInfoallocator
AllocationCallbacks*
Returns
CreateCommandPool(ref CommandPoolCreateInfo, AllocationCallbacks*)
public CommandPool CreateCommandPool(ref CommandPoolCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
CommandPoolCreateInfoallocator
AllocationCallbacks*
Returns
CreateComputePipelines(PipelineCache, uint, ComputePipelineCreateInfo*, AllocationCallbacks*)
public Pipeline CreateComputePipelines(PipelineCache pipelineCache, uint createInfoCount, ComputePipelineCreateInfo* createInfos, AllocationCallbacks* allocator = null)
Parameters
pipelineCache
PipelineCachecreateInfoCount
uintcreateInfos
ComputePipelineCreateInfo*allocator
AllocationCallbacks*
Returns
CreateDescriptorPool(ref DescriptorPoolCreateInfo, AllocationCallbacks*)
public DescriptorPool CreateDescriptorPool(ref DescriptorPoolCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
DescriptorPoolCreateInfoallocator
AllocationCallbacks*
Returns
CreateDescriptorSetLayout(ref DescriptorSetLayoutCreateInfo, AllocationCallbacks*)
public DescriptorSetLayout CreateDescriptorSetLayout(ref DescriptorSetLayoutCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
DescriptorSetLayoutCreateInfoallocator
AllocationCallbacks*
Returns
CreateEvent(ref EventCreateInfo, AllocationCallbacks*)
public Event CreateEvent(ref EventCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
EventCreateInfoallocator
AllocationCallbacks*
Returns
CreateFence(ref FenceCreateInfo, AllocationCallbacks*)
public Fence CreateFence(ref FenceCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
FenceCreateInfoallocator
AllocationCallbacks*
Returns
CreateFramebuffer(ref FramebufferCreateInfo, AllocationCallbacks*)
public Framebuffer CreateFramebuffer(ref FramebufferCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
FramebufferCreateInfoallocator
AllocationCallbacks*
Returns
CreateGraphicsPipelines(PipelineCache, uint, GraphicsPipelineCreateInfo*, AllocationCallbacks*)
public Pipeline CreateGraphicsPipelines(PipelineCache pipelineCache, uint createInfoCount, GraphicsPipelineCreateInfo* createInfos, AllocationCallbacks* allocator = null)
Parameters
pipelineCache
PipelineCachecreateInfoCount
uintcreateInfos
GraphicsPipelineCreateInfo*allocator
AllocationCallbacks*
Returns
CreateImage(ref ImageCreateInfo, AllocationCallbacks*)
public Image CreateImage(ref ImageCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
ImageCreateInfoallocator
AllocationCallbacks*
Returns
CreateImageView(ref ImageViewCreateInfo, AllocationCallbacks*)
public ImageView CreateImageView(ref ImageViewCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
ImageViewCreateInfoallocator
AllocationCallbacks*
Returns
CreateIndirectCommandsLayout(ref IndirectCommandsLayoutCreateInfo, AllocationCallbacks*)
public IndirectCommandsLayout CreateIndirectCommandsLayout(ref IndirectCommandsLayoutCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
IndirectCommandsLayoutCreateInfoallocator
AllocationCallbacks*
Returns
CreateObjectTable(ref ObjectTableCreateInfo, AllocationCallbacks*)
public ObjectTable CreateObjectTable(ref ObjectTableCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
ObjectTableCreateInfoallocator
AllocationCallbacks*
Returns
CreatePipelineCache(ref PipelineCacheCreateInfo, AllocationCallbacks*)
public PipelineCache CreatePipelineCache(ref PipelineCacheCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
PipelineCacheCreateInfoallocator
AllocationCallbacks*
Returns
CreatePipelineLayout(ref PipelineLayoutCreateInfo, AllocationCallbacks*)
public PipelineLayout CreatePipelineLayout(ref PipelineLayoutCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
PipelineLayoutCreateInfoallocator
AllocationCallbacks*
Returns
CreateQueryPool(ref QueryPoolCreateInfo, AllocationCallbacks*)
public QueryPool CreateQueryPool(ref QueryPoolCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
QueryPoolCreateInfoallocator
AllocationCallbacks*
Returns
CreateRenderPass(ref RenderPassCreateInfo, AllocationCallbacks*)
public RenderPass CreateRenderPass(ref RenderPassCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
RenderPassCreateInfoallocator
AllocationCallbacks*
Returns
CreateSampler(ref SamplerCreateInfo, AllocationCallbacks*)
public Sampler CreateSampler(ref SamplerCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
SamplerCreateInfoallocator
AllocationCallbacks*
Returns
CreateSemaphore(ref SemaphoreCreateInfo, AllocationCallbacks*)
public Semaphore CreateSemaphore(ref SemaphoreCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
SemaphoreCreateInfoallocator
AllocationCallbacks*
Returns
CreateShaderModule(ref ShaderModuleCreateInfo, AllocationCallbacks*)
public ShaderModule CreateShaderModule(ref ShaderModuleCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
ShaderModuleCreateInfoallocator
AllocationCallbacks*
Returns
CreateSharedSwapchains(SwapchainCreateInfo[], AllocationCallbacks)
public Swapchain[] CreateSharedSwapchains(SwapchainCreateInfo[] createInfos, AllocationCallbacks allocator)
Parameters
createInfos
SwapchainCreateInfo[]allocator
AllocationCallbacks
Returns
CreateSwapchain(ref SwapchainCreateInfo, AllocationCallbacks*)
public Swapchain CreateSwapchain(ref SwapchainCreateInfo createInfo, AllocationCallbacks* allocator = null)
Parameters
createInfo
SwapchainCreateInfoallocator
AllocationCallbacks*
Returns
DebugMarkerSetObjectName(ref DebugMarkerObjectNameInfo)
public void DebugMarkerSetObjectName(ref DebugMarkerObjectNameInfo nameInfo)
Parameters
nameInfo
DebugMarkerObjectNameInfo
DebugMarkerSetObjectTag(ref DebugMarkerObjectTagInfo)
public void DebugMarkerSetObjectTag(ref DebugMarkerObjectTagInfo tagInfo)
Parameters
tagInfo
DebugMarkerObjectTagInfo
Destroy(AllocationCallbacks*)
public void Destroy(AllocationCallbacks* allocator = null)
Parameters
allocator
AllocationCallbacks*
DestroyBuffer(Buffer, AllocationCallbacks*)
public void DestroyBuffer(Buffer buffer, AllocationCallbacks* allocator = null)
Parameters
buffer
Bufferallocator
AllocationCallbacks*
DestroyBufferView(BufferView, AllocationCallbacks*)
public void DestroyBufferView(BufferView bufferView, AllocationCallbacks* allocator = null)
Parameters
bufferView
BufferViewallocator
AllocationCallbacks*
DestroyCommandPool(CommandPool, AllocationCallbacks*)
public void DestroyCommandPool(CommandPool commandPool, AllocationCallbacks* allocator = null)
Parameters
commandPool
CommandPoolallocator
AllocationCallbacks*
DestroyDescriptorPool(DescriptorPool, AllocationCallbacks*)
public void DestroyDescriptorPool(DescriptorPool descriptorPool, AllocationCallbacks* allocator = null)
Parameters
descriptorPool
DescriptorPoolallocator
AllocationCallbacks*
DestroyDescriptorSetLayout(DescriptorSetLayout, AllocationCallbacks*)
public void DestroyDescriptorSetLayout(DescriptorSetLayout descriptorSetLayout, AllocationCallbacks* allocator = null)
Parameters
descriptorSetLayout
DescriptorSetLayoutallocator
AllocationCallbacks*
DestroyEvent(Event, AllocationCallbacks*)
public void DestroyEvent(Event @event, AllocationCallbacks* allocator = null)
Parameters
event
Eventallocator
AllocationCallbacks*
DestroyFence(Fence, AllocationCallbacks*)
public void DestroyFence(Fence fence, AllocationCallbacks* allocator = null)
Parameters
fence
Fenceallocator
AllocationCallbacks*
DestroyFramebuffer(Framebuffer, AllocationCallbacks*)
public void DestroyFramebuffer(Framebuffer framebuffer, AllocationCallbacks* allocator = null)
Parameters
framebuffer
Framebufferallocator
AllocationCallbacks*
DestroyImage(Image, AllocationCallbacks*)
public void DestroyImage(Image image, AllocationCallbacks* allocator = null)
Parameters
image
Imageallocator
AllocationCallbacks*
DestroyImageView(ImageView, AllocationCallbacks*)
public void DestroyImageView(ImageView imageView, AllocationCallbacks* allocator = null)
Parameters
imageView
ImageViewallocator
AllocationCallbacks*
DestroyIndirectCommandsLayout(IndirectCommandsLayout, AllocationCallbacks*)
public void DestroyIndirectCommandsLayout(IndirectCommandsLayout indirectCommandsLayout, AllocationCallbacks* allocator = null)
Parameters
indirectCommandsLayout
IndirectCommandsLayoutallocator
AllocationCallbacks*
DestroyObjectTable(ObjectTable, AllocationCallbacks*)
public void DestroyObjectTable(ObjectTable objectTable, AllocationCallbacks* allocator = null)
Parameters
objectTable
ObjectTableallocator
AllocationCallbacks*
DestroyPipeline(Pipeline, AllocationCallbacks*)
public void DestroyPipeline(Pipeline pipeline, AllocationCallbacks* allocator = null)
Parameters
pipeline
Pipelineallocator
AllocationCallbacks*
DestroyPipelineCache(PipelineCache, AllocationCallbacks*)
public void DestroyPipelineCache(PipelineCache pipelineCache, AllocationCallbacks* allocator = null)
Parameters
pipelineCache
PipelineCacheallocator
AllocationCallbacks*
DestroyPipelineLayout(PipelineLayout, AllocationCallbacks*)
public void DestroyPipelineLayout(PipelineLayout pipelineLayout, AllocationCallbacks* allocator = null)
Parameters
pipelineLayout
PipelineLayoutallocator
AllocationCallbacks*
DestroyQueryPool(QueryPool, AllocationCallbacks*)
public void DestroyQueryPool(QueryPool queryPool, AllocationCallbacks* allocator = null)
Parameters
queryPool
QueryPoolallocator
AllocationCallbacks*
DestroyRenderPass(RenderPass, AllocationCallbacks*)
public void DestroyRenderPass(RenderPass renderPass, AllocationCallbacks* allocator = null)
Parameters
renderPass
RenderPassallocator
AllocationCallbacks*
DestroySampler(Sampler, AllocationCallbacks*)
public void DestroySampler(Sampler sampler, AllocationCallbacks* allocator = null)
Parameters
sampler
Samplerallocator
AllocationCallbacks*
DestroySemaphore(Semaphore, AllocationCallbacks*)
public void DestroySemaphore(Semaphore semaphore, AllocationCallbacks* allocator = null)
Parameters
semaphore
Semaphoreallocator
AllocationCallbacks*
DestroyShaderModule(ShaderModule, AllocationCallbacks*)
public void DestroyShaderModule(ShaderModule shaderModule, AllocationCallbacks* allocator = null)
Parameters
shaderModule
ShaderModuleallocator
AllocationCallbacks*
DestroySwapchain(Swapchain, AllocationCallbacks*)
public void DestroySwapchain(Swapchain swapchain, AllocationCallbacks* allocator = null)
Parameters
swapchain
Swapchainallocator
AllocationCallbacks*
DisplayPowerControl(Display, ref DisplayPowerInfo)
public void DisplayPowerControl(Display display, ref DisplayPowerInfo displayPowerInfo)
Parameters
display
DisplaydisplayPowerInfo
DisplayPowerInfo
Equals(Device)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Device other)
Parameters
other
DeviceAn object to compare with this object.
Returns
FlushMappedMemoryRanges(uint, MappedMemoryRange*)
public void FlushMappedMemoryRanges(uint memoryRangeCount, MappedMemoryRange* memoryRanges)
Parameters
memoryRangeCount
uintmemoryRanges
MappedMemoryRange*
FreeCommandBuffers(CommandPool, uint, CommandBuffer*)
public void FreeCommandBuffers(CommandPool commandPool, uint commandBufferCount, CommandBuffer* commandBuffers)
Parameters
commandPool
CommandPoolcommandBufferCount
uintcommandBuffers
CommandBuffer*
FreeDescriptorSets(DescriptorPool, uint, DescriptorSet*)
public void FreeDescriptorSets(DescriptorPool descriptorPool, uint descriptorSetCount, DescriptorSet* descriptorSets)
Parameters
descriptorPool
DescriptorPooldescriptorSetCount
uintdescriptorSets
DescriptorSet*
FreeMemory(DeviceMemory, AllocationCallbacks*)
public void FreeMemory(DeviceMemory memory, AllocationCallbacks* allocator = null)
Parameters
memory
DeviceMemoryallocator
AllocationCallbacks*
GetBufferMemoryRequirements(Buffer, out MemoryRequirements)
public void GetBufferMemoryRequirements(Buffer buffer, out MemoryRequirements memoryRequirements)
Parameters
buffer
BuffermemoryRequirements
MemoryRequirements
GetEventStatus(Event)
public Result GetEventStatus(Event @event)
Parameters
event
Event
Returns
GetFenceStatus(Fence)
public Result GetFenceStatus(Fence fence)
Parameters
fence
Fence
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
image
ImagememoryRequirements
MemoryRequirements
GetImageSubresourceLayout(Image, ImageSubresource, out SubresourceLayout)
public void GetImageSubresourceLayout(Image image, ImageSubresource subresource, out SubresourceLayout layout)
Parameters
image
Imagesubresource
ImageSubresourcelayout
SubresourceLayout
GetMemoryCommitment(DeviceMemory)
public ulong GetMemoryCommitment(DeviceMemory memory)
Parameters
memory
DeviceMemory
Returns
GetMemoryWin32Handle(DeviceMemory, uint)
public int GetMemoryWin32Handle(DeviceMemory memory, uint handleType)
Parameters
memory
DeviceMemoryhandleType
uint
Returns
GetPipelineCacheData(PipelineCache)
public byte[] GetPipelineCacheData(PipelineCache pipelineCache)
Parameters
pipelineCache
PipelineCache
Returns
- byte[]
GetPipelineCacheData(PipelineCache, ref PointerSize, nint)
public void GetPipelineCacheData(PipelineCache pipelineCache, ref PointerSize dataSize, nint data)
Parameters
pipelineCache
PipelineCachedataSize
PointerSizedata
nint
GetProcAddress(byte*)
public nint GetProcAddress(byte* name)
Parameters
name
byte*
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
queryPool
QueryPoolfirstQuery
uintqueryCount
uintdataSize
PointerSizedata
nintstride
ulongflags
QueryResultFlags
GetQueue(uint, uint)
public Queue GetQueue(uint queueFamilyIndex, uint queueIndex)
Parameters
Returns
GetRenderAreaGranularity(RenderPass)
public Extent2D GetRenderAreaGranularity(RenderPass renderPass)
Parameters
renderPass
RenderPass
Returns
GetSparseMemoryRequirements(Image)
public SparseImageMemoryRequirements[] GetSparseMemoryRequirements(Image image)
Parameters
image
Image
Returns
GetSwapchainCounter(Swapchain, SurfaceCounterFlags)
public ulong GetSwapchainCounter(Swapchain swapchain, SurfaceCounterFlags counter)
Parameters
swapchain
Swapchaincounter
SurfaceCounterFlags
Returns
GetSwapchainImages(Swapchain)
public Image[] GetSwapchainImages(Swapchain swapchain)
Parameters
swapchain
Swapchain
Returns
- Image[]
InvalidateMappedMemoryRanges(uint, MappedMemoryRange*)
public void InvalidateMappedMemoryRanges(uint memoryRangeCount, MappedMemoryRange* memoryRanges)
Parameters
memoryRangeCount
uintmemoryRanges
MappedMemoryRange*
MapMemory(DeviceMemory, ulong, ulong, MemoryMapFlags)
public nint MapMemory(DeviceMemory memory, ulong offset, ulong size, MemoryMapFlags flags)
Parameters
memory
DeviceMemoryoffset
ulongsize
ulongflags
MemoryMapFlags
Returns
MergePipelineCaches(PipelineCache, uint, PipelineCache)
public void MergePipelineCaches(PipelineCache destinationCache, uint sourceCacheCount, PipelineCache srcCaches)
Parameters
destinationCache
PipelineCachesourceCacheCount
uintsrcCaches
PipelineCache
RegisterDisplayEvent(Display, ref DisplayEventInfo, AllocationCallbacks*)
public Fence RegisterDisplayEvent(Display display, ref DisplayEventInfo displayEventInfo, AllocationCallbacks* allocator = null)
Parameters
display
DisplaydisplayEventInfo
DisplayEventInfoallocator
AllocationCallbacks*
Returns
RegisterEvent(ref DeviceEventInfo, AllocationCallbacks*)
public Fence RegisterEvent(ref DeviceEventInfo deviceEventInfo, AllocationCallbacks* allocator = null)
Parameters
deviceEventInfo
DeviceEventInfoallocator
AllocationCallbacks*
Returns
RegisterObjects(ObjectTable, uint, nint, uint)
public void RegisterObjects(ObjectTable objectTable, uint objectCount, nint objectTableEntries, uint objectIndices)
Parameters
objectTable
ObjectTableobjectCount
uintobjectTableEntries
nintobjectIndices
uint
ResetCommandPool(CommandPool, CommandPoolResetFlags)
public void ResetCommandPool(CommandPool commandPool, CommandPoolResetFlags flags)
Parameters
commandPool
CommandPoolflags
CommandPoolResetFlags
ResetDescriptorPool(DescriptorPool, DescriptorPoolResetFlags)
public void ResetDescriptorPool(DescriptorPool descriptorPool, DescriptorPoolResetFlags flags)
Parameters
descriptorPool
DescriptorPoolflags
DescriptorPoolResetFlags
ResetEvent(Event)
public void ResetEvent(Event @event)
Parameters
event
Event
ResetFences(uint, Fence*)
public void ResetFences(uint fenceCount, Fence* fences)
Parameters
SetEvent(Event)
public void SetEvent(Event @event)
Parameters
event
Event
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
commandPool
CommandPoolflags
CommandPoolTrimFlags
UnmapMemory(DeviceMemory)
public void UnmapMemory(DeviceMemory memory)
Parameters
memory
DeviceMemory
UnregisterObjects(ObjectTable, uint, ObjectEntryType, uint)
public void UnregisterObjects(ObjectTable objectTable, uint objectCount, ObjectEntryType objectEntryTypes, uint objectIndices)
Parameters
objectTable
ObjectTableobjectCount
uintobjectEntryTypes
ObjectEntryTypeobjectIndices
uint
UpdateDescriptorSets(uint, WriteDescriptorSet*, uint, CopyDescriptorSet*)
public void UpdateDescriptorSets(uint descriptorWriteCount, WriteDescriptorSet* descriptorWrites, uint descriptorCopyCount, CopyDescriptorSet* descriptorCopies)
Parameters
descriptorWriteCount
uintdescriptorWrites
WriteDescriptorSet*descriptorCopyCount
uintdescriptorCopies
CopyDescriptorSet*
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)