Package com.mojang.blaze3d.systems
Interface CommandEncoder
- All Known Implementing Classes:
GlCommandEncoder,ValidationCommandEncoder
public interface CommandEncoder
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) voidclearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int scissorX, int scissorY, int scissorWidth, int scissorHeight) voidclearColorTexture(GpuTexture texture, int color) voidclearDepthTexture(GpuTexture depthTexture, double clearDepth) voidclearStencilTexture(GpuTexture texture, int value) voidcopyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int offset, Runnable task, int mipLevel) voidcopyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int offset, Runnable task, int mipLevel, int x, int y, int width, int height) voidcopyTextureToTexture(GpuTexture source, GpuTexture destination, int mipLevel, int x, int y, int sourceX, int sourceY, int width, int height) voidcopyToBuffer(GpuBufferSlice source, GpuBufferSlice target) createRenderPass(Supplier<String> debugGroup, GpuTextureView colorTexture, OptionalInt clearColor) createRenderPass(Supplier<String> debugGroup, GpuTextureView colorTexture, OptionalInt clearColor, GpuTextureView depthTexture, OptionalDouble clearDepth) mapBuffer(GpuBufferSlice slice, boolean read, boolean write) voidpresentTexture(GpuTextureView texture) voidwriteToBuffer(GpuBufferSlice slice, ByteBuffer buffer) voidwriteToTexture(GpuTexture texture, NativeImage image) voidwriteToTexture(GpuTexture texture, NativeImage image, int mipLevel, int depthOrLayer, int x, int y, int width, int height, int sourceX, int sourceY) voidwriteToTexture(GpuTexture texture, ByteBuffer buffer, NativeImage.Format format, int mipLevel, int depthOrLayer, int x, int y, int width, int height)
-
Method Details
-
createRenderPass
RenderPass createRenderPass(Supplier<String> debugGroup, GpuTextureView colorTexture, OptionalInt clearColor) -
createRenderPass
RenderPass createRenderPass(Supplier<String> debugGroup, GpuTextureView colorTexture, OptionalInt clearColor, @Nullable GpuTextureView depthTexture, OptionalDouble clearDepth) -
clearColorTexture
-
clearColorAndDepthTextures
void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) -
clearColorAndDepthTextures
void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int scissorX, int scissorY, int scissorWidth, int scissorHeight) -
clearDepthTexture
-
clearStencilTexture
-
writeToBuffer
-
mapBuffer
-
mapBuffer
-
copyToBuffer
-
writeToTexture
-
writeToTexture
void writeToTexture(GpuTexture texture, NativeImage image, int mipLevel, int depthOrLayer, int x, int y, int width, int height, int sourceX, int sourceY) -
writeToTexture
void writeToTexture(GpuTexture texture, ByteBuffer buffer, NativeImage.Format format, int mipLevel, int depthOrLayer, int x, int y, int width, int height) -
copyTextureToBuffer
void copyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int offset, Runnable task, int mipLevel) -
copyTextureToBuffer
void copyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int offset, Runnable task, int mipLevel, int x, int y, int width, int height) -
copyTextureToTexture
void copyTextureToTexture(GpuTexture source, GpuTexture destination, int mipLevel, int x, int y, int sourceX, int sourceY, int width, int height) -
presentTexture
-
createFence
GpuFence createFence()
-