Record Class RenderCommand.DrawIndirect
java.lang.Object
java.lang.Record
dev.engine.graphics.command.RenderCommand.DrawIndirect
- All Implemented Interfaces:
RenderCommand
- Enclosing interface:
RenderCommand
public static record RenderCommand.DrawIndirect(Handle<BufferResource> buffer, long offset, int drawCount, int stride)
extends Record
implements RenderCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface RenderCommand
RenderCommand.BindComputePipeline, RenderCommand.BindDefaultRenderTarget, RenderCommand.BindImage, RenderCommand.BindIndexBuffer, RenderCommand.BindPipeline, RenderCommand.BindRenderTarget, RenderCommand.BindSampler, RenderCommand.BindStorageBuffer, RenderCommand.BindTexture, RenderCommand.BindUniformBuffer, RenderCommand.BindVertexBuffer, RenderCommand.BlitTexture, RenderCommand.Clear, RenderCommand.CopyBuffer, RenderCommand.CopyTexture, RenderCommand.Dispatch, RenderCommand.Draw, RenderCommand.DrawIndexed, RenderCommand.DrawIndexedIndirect, RenderCommand.DrawIndexedInstanced, RenderCommand.DrawIndirect, RenderCommand.DrawInstanced, RenderCommand.MemoryBarrier, RenderCommand.PushConstants, RenderCommand.Scissor, RenderCommand.SetRenderState, RenderCommand.Viewport -
Constructor Summary
ConstructorsConstructorDescriptionDrawIndirect(Handle<BufferResource> buffer, long offset, int drawCount, int stride) Creates an instance of aDrawIndirectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuffer()Returns the value of thebufferrecord component.intReturns the value of thedrawCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longoffset()Returns the value of theoffsetrecord component.intstride()Returns the value of thestriderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DrawIndirect
Creates an instance of aDrawIndirectrecord class.- Parameters:
buffer- the value for thebufferrecord componentoffset- the value for theoffsetrecord componentdrawCount- the value for thedrawCountrecord componentstride- the value for thestriderecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
buffer
Returns the value of thebufferrecord component.- Returns:
- the value of the
bufferrecord component
-
offset
public long offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
drawCount
public int drawCount()Returns the value of thedrawCountrecord component.- Returns:
- the value of the
drawCountrecord component
-
stride
public int stride()Returns the value of thestriderecord component.- Returns:
- the value of the
striderecord component
-