Record Class RenderCommand.BindImage
java.lang.Object
java.lang.Record
dev.engine.graphics.command.RenderCommand.BindImage
- All Implemented Interfaces:
RenderCommand
- Enclosing interface:
RenderCommand
public static record RenderCommand.BindImage(int unit, Handle<TextureResource> texture, int mipLevel, boolean read, boolean write)
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
ConstructorsConstructorDescriptionBindImage(int unit, Handle<TextureResource> texture, int mipLevel, boolean read, boolean write) Creates an instance of aBindImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmipLevel()Returns the value of themipLevelrecord component.booleanread()Returns the value of thereadrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.intunit()Returns the value of theunitrecord component.booleanwrite()Returns the value of thewriterecord component.
-
Constructor Details
-
BindImage
public BindImage(int unit, Handle<TextureResource> texture, int mipLevel, boolean read, boolean write) Creates an instance of aBindImagerecord class.- Parameters:
unit- the value for theunitrecord componenttexture- the value for thetexturerecord componentmipLevel- the value for themipLevelrecord componentread- the value for thereadrecord componentwrite- the value for thewriterecord 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. -
unit
public int unit()Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
mipLevel
public int mipLevel()Returns the value of themipLevelrecord component.- Returns:
- the value of the
mipLevelrecord component
-
read
public boolean read()Returns the value of thereadrecord component.- Returns:
- the value of the
readrecord component
-
write
public boolean write()Returns the value of thewriterecord component.- Returns:
- the value of the
writerecord component
-