Package com.mojang.blaze3d.opengl
Class GlCommandEncoder
java.lang.Object
com.mojang.blaze3d.opengl.GlCommandEncoder
- All Implemented Interfaces:
CommandEncoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlDeviceprivate final intprivate booleanprivate RenderPipelineprivate GlProgramprivate static final org.slf4j.Loggerprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidapplyPipelineState(RenderPipeline pPipeline) voidclearColorAndDepthTextures(GpuTexture p_410863_, int p_410603_, GpuTexture p_409616_, double p_410193_) voidclearColorTexture(GpuTexture p_410228_, int p_410646_) voidclearDepthTexture(GpuTexture p_410548_, double p_410067_) voidclearStencilTexture(GpuTexture texture, int value) voidcopyTextureToBuffer(GpuTexture p_410088_, GpuBuffer p_409674_, int p_410546_, Runnable p_410567_, int p_410125_) voidcopyTextureToBuffer(GpuTexture p_410781_, GpuBuffer p_410413_, int p_410080_, Runnable p_410081_, int p_410819_, int p_409841_, int p_409880_, int p_409853_, int p_410558_) voidcopyTextureToTexture(GpuTexture p_410700_, GpuTexture p_410735_, int p_410458_, int p_409803_, int p_410236_, int p_410552_, int p_410677_, int p_409870_, int p_409949_) createRenderPass(GpuTexture p_410119_, OptionalInt p_410192_) createRenderPass(GpuTexture p_410864_, OptionalInt p_410460_, GpuTexture p_410445_, OptionalDouble p_409874_) private voiddrawFromBuffers(GlRenderPass pRenderPass, int pFirstIndex, int pIndexCount, VertexFormat.IndexType pIndexType, GlRenderPipeline pPipeline) protected voidexecuteDraw(GlRenderPass pRenderPass, int pFirstIndex, int pIndexCount, VertexFormat.IndexType pIndexType) protected voidexecuteDrawMultiple(GlRenderPass pRenderPass, Collection<RenderPass.Draw> pDraws, GpuBuffer pBuffer, VertexFormat.IndexType pIndexType) voidprotected GlDevicevoidpresentTexture(GpuTexture p_410222_) readBuffer(GpuBuffer p_409899_) readBuffer(GpuBuffer p_409613_, int p_410634_, int p_410639_) private booleantrySetup(GlRenderPass pRenderPass) voidwriteToBuffer(GpuBuffer p_409838_, ByteBuffer p_410689_, int p_409997_) voidwriteToTexture(GpuTexture p_409824_, NativeImage p_410255_) voidwriteToTexture(GpuTexture p_409608_, NativeImage p_410355_, int p_410252_, int p_410814_, int p_410606_, int p_410618_, int p_410484_, int p_410120_, int p_410042_) voidwriteToTexture(GpuTexture p_410473_, IntBuffer p_410298_, NativeImage.Format p_409943_, int p_410132_, int p_409948_, int p_410810_, int p_409825_, int p_410770_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
device
-
readFbo
private final int readFbo -
drawFbo
private final int drawFbo -
lastPipeline
-
inRenderPass
private boolean inRenderPass -
lastProgram
-
-
Constructor Details
-
GlCommandEncoder
-
-
Method Details
-
createRenderPass
- Specified by:
createRenderPassin interfaceCommandEncoder
-
createRenderPass
public RenderPass createRenderPass(GpuTexture p_410864_, OptionalInt p_410460_, @Nullable GpuTexture p_410445_, OptionalDouble p_409874_) - Specified by:
createRenderPassin interfaceCommandEncoder
-
clearColorTexture
- Specified by:
clearColorTexturein interfaceCommandEncoder
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture p_410863_, int p_410603_, GpuTexture p_409616_, double p_410193_) - Specified by:
clearColorAndDepthTexturesin interfaceCommandEncoder
-
clearDepthTexture
- Specified by:
clearDepthTexturein interfaceCommandEncoder
-
clearStencilTexture
- Specified by:
clearStencilTexturein interfaceCommandEncoder
-
writeToBuffer
- Specified by:
writeToBufferin interfaceCommandEncoder
-
readBuffer
- Specified by:
readBufferin interfaceCommandEncoder
-
readBuffer
- Specified by:
readBufferin interfaceCommandEncoder
-
writeToTexture
- Specified by:
writeToTexturein interfaceCommandEncoder
-
writeToTexture
public void writeToTexture(GpuTexture p_409608_, NativeImage p_410355_, int p_410252_, int p_410814_, int p_410606_, int p_410618_, int p_410484_, int p_410120_, int p_410042_) - Specified by:
writeToTexturein interfaceCommandEncoder
-
writeToTexture
public void writeToTexture(GpuTexture p_410473_, IntBuffer p_410298_, NativeImage.Format p_409943_, int p_410132_, int p_409948_, int p_410810_, int p_409825_, int p_410770_) - Specified by:
writeToTexturein interfaceCommandEncoder
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture p_410088_, GpuBuffer p_409674_, int p_410546_, Runnable p_410567_, int p_410125_) - Specified by:
copyTextureToBufferin interfaceCommandEncoder
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture p_410781_, GpuBuffer p_410413_, int p_410080_, Runnable p_410081_, int p_410819_, int p_409841_, int p_409880_, int p_409853_, int p_410558_) - Specified by:
copyTextureToBufferin interfaceCommandEncoder
-
copyTextureToTexture
public void copyTextureToTexture(GpuTexture p_410700_, GpuTexture p_410735_, int p_410458_, int p_409803_, int p_410236_, int p_410552_, int p_410677_, int p_409870_, int p_409949_) - Specified by:
copyTextureToTexturein interfaceCommandEncoder
-
presentTexture
- Specified by:
presentTexturein interfaceCommandEncoder
-
executeDrawMultiple
protected void executeDrawMultiple(GlRenderPass pRenderPass, Collection<RenderPass.Draw> pDraws, @Nullable GpuBuffer pBuffer, @Nullable VertexFormat.IndexType pIndexType) -
executeDraw
protected void executeDraw(GlRenderPass pRenderPass, int pFirstIndex, int pIndexCount, @Nullable VertexFormat.IndexType pIndexType) -
drawFromBuffers
private void drawFromBuffers(GlRenderPass pRenderPass, int pFirstIndex, int pIndexCount, @Nullable VertexFormat.IndexType pIndexType, GlRenderPipeline pPipeline) -
trySetup
-
applyPipelineState
-
finishRenderPass
public void finishRenderPass() -
getDevice
-