Struct CommandBuffer
- Namespace
- SharpVulkan
- Assembly
- Lime.dll
public struct CommandBuffer : IEquatable<CommandBuffer>
- Implements
- Inherited Members
Fields
Null
public static readonly CommandBuffer Null
Field Value
Methods
Begin(ref CommandBufferBeginInfo)
public void Begin(ref CommandBufferBeginInfo beginInfo)
Parameters
beginInfo
CommandBufferBeginInfo
BeginQuery(QueryPool, uint, QueryControlFlags)
public void BeginQuery(QueryPool queryPool, uint query, QueryControlFlags flags)
Parameters
queryPool
QueryPoolquery
uintflags
QueryControlFlags
BeginRenderPass(ref RenderPassBeginInfo, SubpassContents)
public void BeginRenderPass(ref RenderPassBeginInfo renderPassBegin, SubpassContents contents)
Parameters
renderPassBegin
RenderPassBeginInfocontents
SubpassContents
BindDescriptorSets(PipelineBindPoint, PipelineLayout, uint, uint, DescriptorSet*, uint, uint*)
public void BindDescriptorSets(PipelineBindPoint pipelineBindPoint, PipelineLayout layout, uint firstSet, uint descriptorSetCount, DescriptorSet* descriptorSets, uint dynamicOffsetCount, uint* dynamicOffsets)
Parameters
pipelineBindPoint
PipelineBindPointlayout
PipelineLayoutfirstSet
uintdescriptorSetCount
uintdescriptorSets
DescriptorSet*dynamicOffsetCount
uintdynamicOffsets
uint*
BindIndexBuffer(Buffer, ulong, IndexType)
public void BindIndexBuffer(Buffer buffer, ulong offset, IndexType indexType)
Parameters
BindPipeline(PipelineBindPoint, Pipeline)
public void BindPipeline(PipelineBindPoint pipelineBindPoint, Pipeline pipeline)
Parameters
pipelineBindPoint
PipelineBindPointpipeline
Pipeline
BindVertexBuffers(uint, uint, Buffer*, ulong*)
public void BindVertexBuffers(uint firstBinding, uint bindingCount, Buffer* buffers, ulong* offsets)
Parameters
BlitImage(Image, ImageLayout, Image, ImageLayout, uint, ImageBlit*, Filter)
public void BlitImage(Image sourceImage, ImageLayout sourceImageLayout, Image destinationImage, ImageLayout destinationImageLayout, uint regionCount, ImageBlit* regions, Filter filter)
Parameters
sourceImage
ImagesourceImageLayout
ImageLayoutdestinationImage
ImagedestinationImageLayout
ImageLayoutregionCount
uintregions
ImageBlit*filter
Filter
ClearAttachments(uint, ref ClearAttachment, uint, ClearRect*)
public void ClearAttachments(uint attachmentCount, ref ClearAttachment attachments, uint rectCount, ClearRect* rects)
Parameters
attachmentCount
uintattachments
ClearAttachmentrectCount
uintrects
ClearRect*
ClearColorImage(Image, ImageLayout, ClearColorValue, uint, ImageSubresourceRange*)
public void ClearColorImage(Image image, ImageLayout imageLayout, ClearColorValue color, uint rangeCount, ImageSubresourceRange* ranges)
Parameters
image
ImageimageLayout
ImageLayoutcolor
ClearColorValuerangeCount
uintranges
ImageSubresourceRange*
ClearDepthStencilImage(Image, ImageLayout, ClearDepthStencilValue, uint, ImageSubresourceRange*)
public void ClearDepthStencilImage(Image image, ImageLayout imageLayout, ClearDepthStencilValue depthStencil, uint rangeCount, ImageSubresourceRange* ranges)
Parameters
image
ImageimageLayout
ImageLayoutdepthStencil
ClearDepthStencilValuerangeCount
uintranges
ImageSubresourceRange*
CopyBuffer(Buffer, Buffer, uint, BufferCopy*)
public void CopyBuffer(Buffer sourceBuffer, Buffer destinationBuffer, uint regionCount, BufferCopy* regions)
Parameters
sourceBuffer
BufferdestinationBuffer
BufferregionCount
uintregions
BufferCopy*
CopyBufferToImage(Buffer, Image, ImageLayout, uint, BufferImageCopy*)
public void CopyBufferToImage(Buffer sourceBuffer, Image destinationImage, ImageLayout destinationImageLayout, uint regionCount, BufferImageCopy* regions)
Parameters
sourceBuffer
BufferdestinationImage
ImagedestinationImageLayout
ImageLayoutregionCount
uintregions
BufferImageCopy*
CopyImage(Image, ImageLayout, Image, ImageLayout, uint, ImageCopy*)
public void CopyImage(Image sourceImage, ImageLayout sourceImageLayout, Image destinationImage, ImageLayout destinationImageLayout, uint regionCount, ImageCopy* regions)
Parameters
sourceImage
ImagesourceImageLayout
ImageLayoutdestinationImage
ImagedestinationImageLayout
ImageLayoutregionCount
uintregions
ImageCopy*
CopyImageToBuffer(Image, ImageLayout, Buffer, uint, BufferImageCopy*)
public void CopyImageToBuffer(Image sourceImage, ImageLayout sourceImageLayout, Buffer destinationBuffer, uint regionCount, BufferImageCopy* regions)
Parameters
sourceImage
ImagesourceImageLayout
ImageLayoutdestinationBuffer
BufferregionCount
uintregions
BufferImageCopy*
CopyQueryPoolResults(QueryPool, uint, uint, Buffer, ulong, ulong, QueryResultFlags)
public void CopyQueryPoolResults(QueryPool queryPool, uint firstQuery, uint queryCount, Buffer destinationBuffer, ulong destinationOffset, ulong stride, QueryResultFlags flags)
Parameters
queryPool
QueryPoolfirstQuery
uintqueryCount
uintdestinationBuffer
BufferdestinationOffset
ulongstride
ulongflags
QueryResultFlags
DebugMarkerBegin(ref DebugMarkerMarkerInfo)
public void DebugMarkerBegin(ref DebugMarkerMarkerInfo markerInfo)
Parameters
markerInfo
DebugMarkerMarkerInfo
DebugMarkerEnd()
public void DebugMarkerEnd()
DebugMarkerInsert(ref DebugMarkerMarkerInfo)
public void DebugMarkerInsert(ref DebugMarkerMarkerInfo markerInfo)
Parameters
markerInfo
DebugMarkerMarkerInfo
Dispatch(uint, uint, uint)
public void Dispatch(uint x, uint y, uint z)
Parameters
DispatchIndirect(Buffer, ulong)
public void DispatchIndirect(Buffer buffer, ulong offset)
Parameters
Draw(uint, uint, uint, uint)
public void Draw(uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance)
Parameters
DrawIndexed(uint, uint, uint, int, uint)
public void DrawIndexed(uint indexCount, uint instanceCount, uint firstIndex, int vertexOffset, uint firstInstance)
Parameters
DrawIndexedIndirect(Buffer, ulong, uint, uint)
public void DrawIndexedIndirect(Buffer buffer, ulong offset, uint drawCount, uint stride)
Parameters
DrawIndexedIndirectCount(Buffer, ulong, Buffer, ulong, uint, uint)
public void DrawIndexedIndirectCount(Buffer buffer, ulong offset, Buffer countBuffer, ulong countBufferOffset, uint maxDrawCount, uint stride)
Parameters
DrawIndirect(Buffer, ulong, uint, uint)
public void DrawIndirect(Buffer buffer, ulong offset, uint drawCount, uint stride)
Parameters
DrawIndirectCount(Buffer, ulong, Buffer, ulong, uint, uint)
public void DrawIndirectCount(Buffer buffer, ulong offset, Buffer countBuffer, ulong countBufferOffset, uint maxDrawCount, uint stride)
Parameters
End()
public void End()
EndQuery(QueryPool, uint)
public void EndQuery(QueryPool queryPool, uint query)
Parameters
EndRenderPass()
public void EndRenderPass()
Equals(CommandBuffer)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CommandBuffer other)
Parameters
other
CommandBufferAn object to compare with this object.
Returns
ExecuteCommands(uint, CommandBuffer*)
public void ExecuteCommands(uint commandBufferCount, CommandBuffer* commandBuffers)
Parameters
commandBufferCount
uintcommandBuffers
CommandBuffer*
FillBuffer(Buffer, ulong, ulong, uint)
public void FillBuffer(Buffer destinationBuffer, ulong destinationOffset, ulong size, uint data)
Parameters
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.
NextSubpass(SubpassContents)
public void NextSubpass(SubpassContents contents)
Parameters
contents
SubpassContents
PipelineBarrier(PipelineStageFlags, PipelineStageFlags, DependencyFlags, uint, MemoryBarrier*, uint, BufferMemoryBarrier*, uint, ImageMemoryBarrier*)
public void PipelineBarrier(PipelineStageFlags sourceStageMask, PipelineStageFlags destinationStageMask, DependencyFlags dependencyFlags, uint memoryBarrierCount, MemoryBarrier* memoryBarriers, uint bufferMemoryBarrierCount, BufferMemoryBarrier* bufferMemoryBarriers, uint imageMemoryBarrierCount, ImageMemoryBarrier* imageMemoryBarriers)
Parameters
sourceStageMask
PipelineStageFlagsdestinationStageMask
PipelineStageFlagsdependencyFlags
DependencyFlagsmemoryBarrierCount
uintmemoryBarriers
MemoryBarrier*bufferMemoryBarrierCount
uintbufferMemoryBarriers
BufferMemoryBarrier*imageMemoryBarrierCount
uintimageMemoryBarriers
ImageMemoryBarrier*
ProcessCommands(ref CommandProcessCommandsInfo)
public void ProcessCommands(ref CommandProcessCommandsInfo processCommandsInfo)
Parameters
processCommandsInfo
CommandProcessCommandsInfo
PushConstants(PipelineLayout, ShaderStageFlags, uint, uint, nint)
public void PushConstants(PipelineLayout layout, ShaderStageFlags stageFlags, uint offset, uint size, nint values)
Parameters
layout
PipelineLayoutstageFlags
ShaderStageFlagsoffset
uintsize
uintvalues
nint
ReserveSpaceForCommands(ref CommandReserveSpaceForCommandsInfo)
public void ReserveSpaceForCommands(ref CommandReserveSpaceForCommandsInfo reserveSpaceInfo)
Parameters
reserveSpaceInfo
CommandReserveSpaceForCommandsInfo
Reset(CommandBufferResetFlags)
public void Reset(CommandBufferResetFlags flags)
Parameters
flags
CommandBufferResetFlags
ResetEvent(Event, PipelineStageFlags)
public void ResetEvent(Event @event, PipelineStageFlags stageMask)
Parameters
event
EventstageMask
PipelineStageFlags
ResetQueryPool(QueryPool, uint, uint)
public void ResetQueryPool(QueryPool queryPool, uint firstQuery, uint queryCount)
Parameters
ResolveImage(Image, ImageLayout, Image, ImageLayout, uint, ImageResolve*)
public void ResolveImage(Image sourceImage, ImageLayout sourceImageLayout, Image destinationImage, ImageLayout destinationImageLayout, uint regionCount, ImageResolve* regions)
Parameters
sourceImage
ImagesourceImageLayout
ImageLayoutdestinationImage
ImagedestinationImageLayout
ImageLayoutregionCount
uintregions
ImageResolve*
SetBlendConstants(float)
public void SetBlendConstants(float blendConstants)
Parameters
blendConstants
float
SetDepthBias(float, float, float)
public void SetDepthBias(float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor)
Parameters
SetDepthBounds(float, float)
public void SetDepthBounds(float minDepthBounds, float maxDepthBounds)
Parameters
SetEvent(Event, PipelineStageFlags)
public void SetEvent(Event @event, PipelineStageFlags stageMask)
Parameters
event
EventstageMask
PipelineStageFlags
SetLineWidth(float)
public void SetLineWidth(float lineWidth)
Parameters
lineWidth
float
SetScissor(uint, uint, Rect2D*)
public void SetScissor(uint firstScissor, uint scissorCount, Rect2D* scissors)
Parameters
SetStencilCompareMask(StencilFaceFlags, uint)
public void SetStencilCompareMask(StencilFaceFlags faceMask, uint compareMask)
Parameters
faceMask
StencilFaceFlagscompareMask
uint
SetStencilReference(StencilFaceFlags, uint)
public void SetStencilReference(StencilFaceFlags faceMask, uint reference)
Parameters
faceMask
StencilFaceFlagsreference
uint
SetStencilWriteMask(StencilFaceFlags, uint)
public void SetStencilWriteMask(StencilFaceFlags faceMask, uint writeMask)
Parameters
faceMask
StencilFaceFlagswriteMask
uint
SetViewport(uint, uint, Viewport*)
public void SetViewport(uint firstViewport, uint viewportCount, Viewport* viewports)
Parameters
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
UpdateBuffer(Buffer, ulong, ulong, nint)
public void UpdateBuffer(Buffer destinationBuffer, ulong destinationOffset, ulong dataSize, nint data)
Parameters
WaitEvents(uint, Event, PipelineStageFlags, PipelineStageFlags, uint, MemoryBarrier*, uint, BufferMemoryBarrier*, uint, ImageMemoryBarrier*)
public void WaitEvents(uint eventCount, Event events, PipelineStageFlags sourceStageMask, PipelineStageFlags destinationStageMask, uint memoryBarrierCount, MemoryBarrier* memoryBarriers, uint bufferMemoryBarrierCount, BufferMemoryBarrier* bufferMemoryBarriers, uint imageMemoryBarrierCount, ImageMemoryBarrier* imageMemoryBarriers)
Parameters
eventCount
uintevents
EventsourceStageMask
PipelineStageFlagsdestinationStageMask
PipelineStageFlagsmemoryBarrierCount
uintmemoryBarriers
MemoryBarrier*bufferMemoryBarrierCount
uintbufferMemoryBarriers
BufferMemoryBarrier*imageMemoryBarrierCount
uintimageMemoryBarriers
ImageMemoryBarrier*
WriteTimestamp(PipelineStageFlags, QueryPool, uint)
public void WriteTimestamp(PipelineStageFlags pipelineStage, QueryPool queryPool, uint query)
Parameters
pipelineStage
PipelineStageFlagsqueryPool
QueryPoolquery
uint
Operators
operator ==(CommandBuffer, CommandBuffer)
public static bool operator ==(CommandBuffer left, CommandBuffer right)
Parameters
left
CommandBufferright
CommandBuffer
Returns
operator !=(CommandBuffer, CommandBuffer)
public static bool operator !=(CommandBuffer left, CommandBuffer right)
Parameters
left
CommandBufferright
CommandBuffer