Record Class RenderCommand.CopyTexture
java.lang.Object
java.lang.Record
dev.engine.graphics.command.RenderCommand.CopyTexture
- All Implemented Interfaces:
RenderCommand
- Enclosing interface:
RenderCommand
public static record RenderCommand.CopyTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX, int srcY, int dstX, int dstY, int width, int height, int srcMipLevel, int dstMipLevel)
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
ConstructorsConstructorDescriptionCopyTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX, int srcY, int dstX, int dstY, int width, int height, int srcMipLevel, int dstMipLevel) Creates an instance of aCopyTexturerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondst()Returns the value of thedstrecord component.intReturns the value of thedstMipLevelrecord component.intdstX()Returns the value of thedstXrecord component.intdstY()Returns the value of thedstYrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.src()Returns the value of thesrcrecord component.intReturns the value of thesrcMipLevelrecord component.intsrcX()Returns the value of thesrcXrecord component.intsrcY()Returns the value of thesrcYrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
CopyTexture
public CopyTexture(Handle<TextureResource> src, Handle<TextureResource> dst, int srcX, int srcY, int dstX, int dstY, int width, int height, int srcMipLevel, int dstMipLevel) Creates an instance of aCopyTexturerecord class.- Parameters:
src- the value for thesrcrecord componentdst- the value for thedstrecord componentsrcX- the value for thesrcXrecord componentsrcY- the value for thesrcYrecord componentdstX- the value for thedstXrecord componentdstY- the value for thedstYrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentsrcMipLevel- the value for thesrcMipLevelrecord componentdstMipLevel- the value for thedstMipLevelrecord 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. -
src
Returns the value of thesrcrecord component.- Returns:
- the value of the
srcrecord component
-
dst
Returns the value of thedstrecord component.- Returns:
- the value of the
dstrecord component
-
srcX
public int srcX()Returns the value of thesrcXrecord component.- Returns:
- the value of the
srcXrecord component
-
srcY
public int srcY()Returns the value of thesrcYrecord component.- Returns:
- the value of the
srcYrecord component
-
dstX
public int dstX()Returns the value of thedstXrecord component.- Returns:
- the value of the
dstXrecord component
-
dstY
public int dstY()Returns the value of thedstYrecord component.- Returns:
- the value of the
dstYrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
srcMipLevel
public int srcMipLevel()Returns the value of thesrcMipLevelrecord component.- Returns:
- the value of the
srcMipLevelrecord component
-
dstMipLevel
public int dstMipLevel()Returns the value of thedstMipLevelrecord component.- Returns:
- the value of the
dstMipLevelrecord component
-