Class ValidationCommandEncoder
java.lang.Object
net.neoforged.neoforge.client.blaze3d.validation.ValidationCommandEncoder
- All Implemented Interfaces:
CommandEncoder
Validation wrapper around CommandEncoder
This is used to wrap the RenderPass
This is used to wrap the RenderPass
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandEncoder
private final GpuDeviceUsageValidator
-
Constructor Summary
ConstructorsConstructorDescriptionValidationCommandEncoder
(CommandEncoder realCommandEncoder, GpuDeviceUsageValidator validator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearColorAndDepthTextures
(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) void
clearColorAndDepthTextures
(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int scissorX, int scissorY, int scissorWidth, int scissorHeight) void
clearColorTexture
(GpuTexture texture, int clearColor) void
clearDepthTexture
(GpuTexture depthTexture, double clearDepth) void
clearStencilTexture
(GpuTexture stencilTexture, int clearValue) void
copyTextureToBuffer
(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel) void
copyTextureToBuffer
(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel, int x, int y, int width, int height) void
copyTextureToTexture
(GpuTexture srcTexture, GpuTexture dstTexture, int mipLevel, int srcX, int srcY, int dstX, int dstY, int width, int height) void
copyToBuffer
(GpuBufferSlice src, GpuBufferSlice dst) createRenderPass
(Supplier<String> label, GpuTextureView colorTextureView, OptionalInt clearColor) createRenderPass
(Supplier<String> label, GpuTextureView colorTextureView, OptionalInt clearColor, @Nullable GpuTextureView depthTextureView, OptionalDouble clearDepth) mapBuffer
(GpuBufferSlice bufferSlice, boolean read, boolean write) void
presentTexture
(GpuTextureView texture) protected ValidationRenderPass
wrapRenderPass
(RenderPass renderPass, GpuDeviceUsageValidator validator) void
writeToBuffer
(GpuBufferSlice bufferSlice, ByteBuffer data) void
writeToTexture
(GpuTexture texture, NativeImage image) void
writeToTexture
(GpuTexture texture, NativeImage image, int mipLevel, int layer, int dstX, int dstY, int width, int height, int srcX, int srcY) void
writeToTexture
(GpuTexture texture, IntBuffer imageData, NativeImage.Format imageFormat, int mipLevel, int layer, int x, int y, int width, int height)
-
Field Details
-
realCommandEncoder
-
validator
-
-
Constructor Details
-
ValidationCommandEncoder
ValidationCommandEncoder(CommandEncoder realCommandEncoder, GpuDeviceUsageValidator validator)
-
-
Method Details
-
wrapRenderPass
protected ValidationRenderPass wrapRenderPass(RenderPass renderPass, GpuDeviceUsageValidator validator) -
createRenderPass
public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTextureView, OptionalInt clearColor) - Specified by:
createRenderPass
in interfaceCommandEncoder
-
createRenderPass
public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTextureView, OptionalInt clearColor, @Nullable @Nullable GpuTextureView depthTextureView, OptionalDouble clearDepth) - Specified by:
createRenderPass
in interfaceCommandEncoder
-
clearColorTexture
- Specified by:
clearColorTexture
in interfaceCommandEncoder
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) - Specified by:
clearColorAndDepthTextures
in interfaceCommandEncoder
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int scissorX, int scissorY, int scissorWidth, int scissorHeight) - Specified by:
clearColorAndDepthTextures
in interfaceCommandEncoder
-
clearDepthTexture
- Specified by:
clearDepthTexture
in interfaceCommandEncoder
-
clearStencilTexture
- Specified by:
clearStencilTexture
in interfaceCommandEncoder
-
writeToBuffer
- Specified by:
writeToBuffer
in interfaceCommandEncoder
-
mapBuffer
- Specified by:
mapBuffer
in interfaceCommandEncoder
-
mapBuffer
- Specified by:
mapBuffer
in interfaceCommandEncoder
-
copyToBuffer
- Specified by:
copyToBuffer
in interfaceCommandEncoder
-
writeToTexture
- Specified by:
writeToTexture
in interfaceCommandEncoder
-
writeToTexture
public void writeToTexture(GpuTexture texture, NativeImage image, int mipLevel, int layer, int dstX, int dstY, int width, int height, int srcX, int srcY) - Specified by:
writeToTexture
in interfaceCommandEncoder
-
writeToTexture
public void writeToTexture(GpuTexture texture, IntBuffer imageData, NativeImage.Format imageFormat, int mipLevel, int layer, int x, int y, int width, int height) - Specified by:
writeToTexture
in interfaceCommandEncoder
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel) - Specified by:
copyTextureToBuffer
in interfaceCommandEncoder
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel, int x, int y, int width, int height) - Specified by:
copyTextureToBuffer
in interfaceCommandEncoder
-
copyTextureToTexture
public void copyTextureToTexture(GpuTexture srcTexture, GpuTexture dstTexture, int mipLevel, int srcX, int srcY, int dstX, int dstY, int width, int height) - Specified by:
copyTextureToTexture
in interfaceCommandEncoder
-
presentTexture
- Specified by:
presentTexture
in interfaceCommandEncoder
-
createFence
- Specified by:
createFence
in interfaceCommandEncoder
-