Record Class RenderCommand.Clear
java.lang.Object
java.lang.Record
dev.engine.graphics.command.RenderCommand.Clear
- All Implemented Interfaces:
RenderCommand
- Enclosing interface:
RenderCommand
public static record RenderCommand.Clear(float r, float g, float b, float a)
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
ConstructorsConstructorDescriptionClear(float r, float g, float b, float a) Creates an instance of aClearrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloata()Returns the value of thearecord component.floatb()Returns the value of thebrecord component.final booleanIndicates whether some other object is "equal to" this one.floatg()Returns the value of thegrecord component.final inthashCode()Returns a hash code value for this object.floatr()Returns the value of therrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Clear
public Clear(float r, float g, float b, float a) Creates an instance of aClearrecord class.- Parameters:
r- the value for therrecord componentg- the value for thegrecord componentb- the value for thebrecord componenta- the value for thearecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
r
public float r()Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
g
public float g()Returns the value of thegrecord component.- Returns:
- the value of the
grecord component
-
b
public float b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
a
public float a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-