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 CommandEncoderprivate final GpuDeviceUsageValidator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValidationCommandEncoder(CommandEncoder realCommandEncoder, GpuDeviceUsageValidator validator) -
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 clearColor) voidclearDepthTexture(GpuTexture depthTexture, double clearDepth) voidclearStencilTexture(GpuTexture stencilTexture, int clearValue) voidcopyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel) voidcopyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel, int x, int y, int width, int height) voidcopyTextureToTexture(GpuTexture srcTexture, GpuTexture dstTexture, int mipLevel, int srcX, int srcY, int dstX, int dstY, int width, int height) voidcopyToBuffer(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) voidpresentTexture(GpuTextureView textureView) protected ValidationRenderPasswrapRenderPass(RenderPass renderPass, GpuDeviceUsageValidator validator) voidwriteToBuffer(GpuBufferSlice bufferSlice, ByteBuffer data) voidwriteToTexture(GpuTexture texture, NativeImage image) voidwriteToTexture(GpuTexture texture, NativeImage image, int mipLevel, int layer, int dstX, int dstY, int width, int height, int srcX, int srcY) voidwriteToTexture(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
protected 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:
createRenderPassin interfaceCommandEncoder
-
createRenderPass
public RenderPass createRenderPass(Supplier<String> label, GpuTextureView colorTextureView, OptionalInt clearColor, @Nullable @Nullable GpuTextureView depthTextureView, OptionalDouble clearDepth) - Specified by:
createRenderPassin interfaceCommandEncoder
-
clearColorTexture
- Specified by:
clearColorTexturein interfaceCommandEncoder
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth) - Specified by:
clearColorAndDepthTexturesin interfaceCommandEncoder
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorTexture, int clearColor, GpuTexture depthTexture, double clearDepth, int scissorX, int scissorY, int scissorWidth, int scissorHeight) - Specified by:
clearColorAndDepthTexturesin interfaceCommandEncoder
-
clearDepthTexture
- Specified by:
clearDepthTexturein interfaceCommandEncoder
-
clearStencilTexture
- Specified by:
clearStencilTexturein interfaceCommandEncoder
-
writeToBuffer
- Specified by:
writeToBufferin interfaceCommandEncoder
-
mapBuffer
- Specified by:
mapBufferin interfaceCommandEncoder
-
mapBuffer
- Specified by:
mapBufferin interfaceCommandEncoder
-
copyToBuffer
- Specified by:
copyToBufferin interfaceCommandEncoder
-
writeToTexture
- Specified by:
writeToTexturein 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:
writeToTexturein 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:
writeToTexturein interfaceCommandEncoder
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture texture, GpuBuffer buffer, int bufferOffset, Runnable callback, int mipLevel) - Specified by:
copyTextureToBufferin 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:
copyTextureToBufferin 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:
copyTextureToTexturein interfaceCommandEncoder
-
presentTexture
- Specified by:
presentTexturein interfaceCommandEncoder
-
createFence
- Specified by:
createFencein interfaceCommandEncoder
-