Package icyllis.arc3d.engine
Class OpsRenderPass
java.lang.Object
icyllis.arc3d.engine.OpsRenderPass
- Direct Known Subclasses:
GLOpsRenderPass
Deprecated.
The
OpsRenderPass
is a series of commands (draws, clears, and discards), which all target the
same render target. Ops
execute into a OpsRenderPass
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
Deprecated.final void
bindBuffers
(@RawPtr Buffer indexBuffer, int indexType, @RawPtr Buffer vertexBuffer, int vertexStreamOffset, @RawPtr Buffer instanceBuffer, int instanceStreamOffset) Deprecated.Binds geometric (input) buffers to current command buffer.void
bindPipeline
(GraphicsPipelineDesc_Old graphicsPipelineDesc, GraphicsPipeline pipeline, Rect2fc drawBounds) Deprecated.Updates the internal pipeline state for drawing.final void
bindTexture
(@RawPtr ImageViewProxy geomTexture) Deprecated.Single texture version ofbindTextures(ImageViewProxy[])
.final void
bindTextures
(@RawPtr ImageViewProxy[] geomTextures) Deprecated.Binds textures for the geometry processor.void
clearColor
(int left, int top, int right, int bottom, float red, float green, float blue, float alpha) Deprecated.Clear the owned render target.void
clearStencil
(int left, int top, int right, int bottom, boolean insideMask) Deprecated.Same asclearColor(int, int, int, int, float, float, float, float)
but modifies the stencil.final void
draw
(int vertexCount, int baseVertex) Deprecated.Records a non-indexed draw to current command buffer.final void
drawIndexed
(int indexCount, int baseIndex, int baseVertex) Deprecated.Records an indexed draw to current command buffer.final void
drawIndexedInstanced
(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) Deprecated.Records an indexed draw to current command buffer.final void
drawInstanced
(int instanceCount, int baseInstance, int vertexCount, int baseVertex) Deprecated.Records a non-indexed draw to current command buffer.void
end()
Deprecated.protected abstract Device
Deprecated.protected abstract void
onBindBuffers
(@SharedPtr Buffer indexBuffer, int indexType, @SharedPtr Buffer vertexBuffer, int vertexStreamOffset, @SharedPtr Buffer instanceBuffer, int instanceStreamOffset) Deprecated.protected abstract boolean
onBindPipeline
(GraphicsPipelineDesc_Old graphicsPipelineDesc, GraphicsPipeline pipeline, Rect2fc drawBounds) Deprecated.protected abstract void
onDraw
(int vertexCount, int baseVertex) Deprecated.protected abstract void
onDrawIndexed
(int indexCount, int baseIndex, int baseVertex) Deprecated.protected abstract void
onDrawIndexedInstanced
(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) Deprecated.protected abstract void
onDrawInstanced
(int instanceCount, int baseInstance, int vertexCount, int baseVertex) Deprecated.protected void
set
(GpuRenderTarget renderTarget, int origin) Deprecated.
-
Field Details
-
mRenderTarget
Deprecated. -
mSurfaceOrigin
protected int mSurfaceOriginDeprecated.
-
-
Constructor Details
-
OpsRenderPass
public OpsRenderPass()Deprecated. -
OpsRenderPass
Deprecated.
-
-
Method Details
-
begin
public void begin()Deprecated. -
end
public void end()Deprecated. -
clearColor
public void clearColor(int left, int top, int right, int bottom, float red, float green, float blue, float alpha) Deprecated.Clear the owned render target. Clears the full target if 'scissor' is disabled, otherwise it is restricted to 'scissor'. -
clearStencil
public void clearStencil(int left, int top, int right, int bottom, boolean insideMask) Deprecated.Same asclearColor(int, int, int, int, float, float, float, float)
but modifies the stencil. -
bindPipeline
public void bindPipeline(GraphicsPipelineDesc_Old graphicsPipelineDesc, GraphicsPipeline pipeline, Rect2fc drawBounds) Deprecated.Updates the internal pipeline state for drawing. Enters an internal "bad" state if the pipeline could not be set.- Parameters:
graphicsPipelineDesc
- the pipeline info used to update uniformspipeline
- the pipeline state objectdrawBounds
- the sub-area of render target for subsequent draw calls
-
bindTexture
Deprecated.Single texture version ofbindTextures(ImageViewProxy[])
.- Parameters:
geomTexture
- the raw ptr to textures at binding 0
-
bindTextures
Deprecated.Binds textures for the geometry processor. Texture bindings are dynamic state and therefore not set duringbindPipeline(icyllis.arc3d.engine.trash.GraphicsPipelineDesc_Old, icyllis.arc3d.engine.GraphicsPipeline, icyllis.arc3d.core.Rect2fc)
. If the current program uses textures, then the client must call this method before drawing. The geometry processor textures may also be updated between draws by calling this method again with a different array for textures.Note that this method is only used for GP using texture. If GP does not use texture but FP does, they will be automatically set during
bindPipeline(icyllis.arc3d.engine.trash.GraphicsPipelineDesc_Old, icyllis.arc3d.engine.GraphicsPipeline, icyllis.arc3d.core.Rect2fc)
, and this is a no-op. Otherwise, this method must be called if the GP uses textures.- Parameters:
geomTextures
- the raw ptr to textures starting from binding 0
-
bindBuffers
public final void bindBuffers(@RawPtr @RawPtr Buffer indexBuffer, int indexType, @RawPtr @RawPtr Buffer vertexBuffer, int vertexStreamOffset, @RawPtr @RawPtr Buffer instanceBuffer, int instanceStreamOffset) Deprecated.Binds geometric (input) buffers to current command buffer.- Parameters:
indexBuffer
- raw ptr to the index buffer if using indexed rendering, or nullptrindexType
- index type, seeEngine.IndexType
vertexBuffer
- raw ptr to the vertex buffer, can be nullptrvertexStreamOffset
- byte offset to first vertex of vertex streaminstanceBuffer
- raw ptr to the instance buffer if using instanced rendering, or nullptrinstanceStreamOffset
- byte offset to first instance of instance stream
-
draw
public final void draw(int vertexCount, int baseVertex) Deprecated.Records a non-indexed draw to current command buffer.- Parameters:
vertexCount
- the number of vertices to drawbaseVertex
- the index of the first vertex to draw
-
drawIndexed
public final void drawIndexed(int indexCount, int baseIndex, int baseVertex) Deprecated.Records an indexed draw to current command buffer.- Parameters:
indexCount
- the number of vertices to drawbaseIndex
- the base index within the index bufferbaseVertex
- the value added to the vertex index before indexing into the vertex buffer
-
drawInstanced
public final void drawInstanced(int instanceCount, int baseInstance, int vertexCount, int baseVertex) Deprecated.Records a non-indexed draw to current command buffer.- Parameters:
instanceCount
- the number of instances to drawbaseInstance
- the instance ID of the first instance to drawvertexCount
- the number of vertices to drawbaseVertex
- the index of the first vertex to draw
-
drawIndexedInstanced
public final void drawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) Deprecated.Records an indexed draw to current command buffer.- Parameters:
indexCount
- the number of vertices to drawbaseIndex
- the base index within the index bufferinstanceCount
- the number of instances to drawbaseInstance
- the instance ID of the first instance to drawbaseVertex
- the value added to the vertex index before indexing into the vertex buffer
-
set
Deprecated. -
getDevice
Deprecated. -
onBindPipeline
protected abstract boolean onBindPipeline(GraphicsPipelineDesc_Old graphicsPipelineDesc, GraphicsPipeline pipeline, Rect2fc drawBounds) Deprecated. -
onBindBuffers
protected abstract void onBindBuffers(@SharedPtr @SharedPtr Buffer indexBuffer, int indexType, @SharedPtr @SharedPtr Buffer vertexBuffer, int vertexStreamOffset, @SharedPtr @SharedPtr Buffer instanceBuffer, int instanceStreamOffset) Deprecated. -
onDraw
protected abstract void onDraw(int vertexCount, int baseVertex) Deprecated. -
onDrawIndexed
protected abstract void onDrawIndexed(int indexCount, int baseIndex, int baseVertex) Deprecated. -
onDrawInstanced
protected abstract void onDrawInstanced(int instanceCount, int baseInstance, int vertexCount, int baseVertex) Deprecated. -
onDrawIndexedInstanced
protected abstract void onDrawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) Deprecated.
-