Class CommandEncoder
java.lang.Object
com.mojang.blaze3d.systems.CommandEncoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandEncoderBackendprivate final GpuDeviceBackendprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) voidclearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int regionX, int regionY, int regionWidth, int regionHeight) voidclearColorTexture(GpuTexture colorTexture, int clearColor) voidclearDepthTexture(GpuTexture depthTexture, double clearDepth) voidclearStencilTexture(GpuTexture texture, int value) voidcopyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel) voidcopyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel, int x, int y, int width, int height) voidcopyTextureToTexture(GpuTexture source, GpuTexture destination, int mipLevel, int destX, int destY, int sourceX, int sourceY, int width, int height) voidcopyToBuffer(GpuBufferSlice source, GpuBufferSlice target) createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor) createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor, @Nullable GpuTextureView depthTexture, OptionalDouble clearDepth) mapBuffer(GpuBufferSlice slice, boolean read, boolean write) voidpresentTexture(GpuTextureView textureView) voidtimerQueryEnd(GpuQuery query) private voidverifyColorTexture(GpuTexture colorTexture) private voidverifyDepthTexture(GpuTexture depthTexture) private voidverifyRegion(GpuTexture colorTexture, int regionX, int regionY, int regionWidth, int regionHeight) private voidverifyStencilTexture(GpuTexture stencilTexture) voidwriteToBuffer(GpuBufferSlice destination, ByteBuffer data) voidwriteToTexture(GpuTexture destination, NativeImage source) voidwriteToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY) voidwriteToTexture(GpuTexture destination, ByteBuffer source, NativeImage.Format format, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
device
-
backend
-
-
Constructor Details
-
CommandEncoder
-
-
Method Details
-
createRenderPass
public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor) -
createRenderPass
public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTexture, OptionalInt clearColor, @Nullable GpuTextureView depthTexture, OptionalDouble clearDepth) -
clearColorTexture
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) -
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int regionX, int regionY, int regionWidth, int regionHeight) -
clearDepthTexture
-
clearStencilTexture
-
writeToBuffer
-
mapBuffer
-
mapBuffer
-
copyToBuffer
-
writeToTexture
-
writeToTexture
public void writeToTexture(GpuTexture destination, NativeImage source, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height, int sourceX, int sourceY) -
writeToTexture
public void writeToTexture(GpuTexture destination, ByteBuffer source, NativeImage.Format format, int mipLevel, int depthOrLayer, int destX, int destY, int width, int height) -
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel) -
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture source, GpuBuffer destination, long offset, Runnable callback, int mipLevel, int x, int y, int width, int height) -
copyTextureToTexture
public void copyTextureToTexture(GpuTexture source, GpuTexture destination, int mipLevel, int destX, int destY, int sourceX, int sourceY, int width, int height) -
presentTexture
-
createFence
-
timerQueryBegin
-
timerQueryEnd
-
verifyColorTexture
-
verifyDepthTexture
-
verifyStencilTexture
-
verifyRegion
private void verifyRegion(GpuTexture colorTexture, int regionX, int regionY, int regionWidth, int regionHeight)
-