Class TracingWgpuBindings
java.lang.Object
dev.engine.graphics.webgpu.TracingWgpuBindings
- All Implemented Interfaces:
WgpuBindings
Logging decorator for
WgpuBindings. Wraps any implementation and
traces every WebGPU API call at TRACE level, making it easy to compare
the engine's call sequence against working examples.
Usage:
var bindings = new TracingWgpuBindings(new JWebGpuBindings());
var device = new WgpuRenderDevice(window, bindings);
-
Nested Class Summary
Nested classes/interfaces inherited from interface WgpuBindings
WgpuBindings.BindGroupEntry, WgpuBindings.BindGroupLayoutEntry, WgpuBindings.BindingResourceType, WgpuBindings.BindingType, WgpuBindings.ColorAttachment, WgpuBindings.DepthStencilAttachment, WgpuBindings.DeviceLimits, WgpuBindings.RenderPassDescriptor, WgpuBindings.RenderPipelineDescriptor, WgpuBindings.StencilFaceState, WgpuBindings.VertexAttributeDesc, WgpuBindings.VertexBufferLayoutDesc -
Field Summary
Fields inherited from interface WgpuBindings
ADDRESS_MODE_CLAMP_TO_EDGE, ADDRESS_MODE_MIRROR_REPEAT, ADDRESS_MODE_REPEAT, BLEND_FACTOR_DST, BLEND_FACTOR_DST_ALPHA, BLEND_FACTOR_ONE, BLEND_FACTOR_ONE_MINUS_DST, BLEND_FACTOR_ONE_MINUS_DST_ALPHA, BLEND_FACTOR_ONE_MINUS_SRC, BLEND_FACTOR_ONE_MINUS_SRC_ALPHA, BLEND_FACTOR_SRC, BLEND_FACTOR_SRC_ALPHA, BLEND_FACTOR_ZERO, BLEND_OP_ADD, BLEND_OP_MAX, BLEND_OP_MIN, BLEND_OP_REVERSE_SUBTRACT, BLEND_OP_SUBTRACT, BUFFER_USAGE_COPY_DST, BUFFER_USAGE_COPY_SRC, BUFFER_USAGE_INDEX, BUFFER_USAGE_MAP_READ, BUFFER_USAGE_STORAGE, BUFFER_USAGE_UNIFORM, BUFFER_USAGE_VERTEX, COLOR_WRITE_MASK_ALL, COMPARE_ALWAYS, COMPARE_EQUAL, COMPARE_GREATER, COMPARE_GREATER_EQUAL, COMPARE_LESS, COMPARE_LESS_EQUAL, COMPARE_NEVER, COMPARE_NOT_EQUAL, CULL_MODE_BACK, CULL_MODE_FRONT, CULL_MODE_NONE, FILTER_MODE_LINEAR, FILTER_MODE_NEAREST, FRONT_FACE_CCW, FRONT_FACE_CW, INDEX_FORMAT_UINT32, MIPMAP_FILTER_MODE_LINEAR, MIPMAP_FILTER_MODE_NEAREST, OPTIONAL_BOOL_FALSE, OPTIONAL_BOOL_TRUE, PRESENT_MODE_FIFO, PRESENT_MODE_IMMEDIATE, PRESENT_MODE_MAILBOX, PRIMITIVE_TOPOLOGY_TRIANGLE_LIST, SHADER_STAGE_FRAGMENT, SHADER_STAGE_VERTEX, STENCIL_OP_DECREMENT_CLAMP, STENCIL_OP_DECREMENT_WRAP, STENCIL_OP_INCREMENT_CLAMP, STENCIL_OP_INCREMENT_WRAP, STENCIL_OP_INVERT, STENCIL_OP_KEEP, STENCIL_OP_REPLACE, STENCIL_OP_ZERO, TEXTURE_DIMENSION_2D, TEXTURE_DIMENSION_3D, TEXTURE_FORMAT_BGRA8_UNORM, TEXTURE_FORMAT_DEPTH24_PLUS, TEXTURE_FORMAT_DEPTH24_PLUS_STENCIL8, TEXTURE_FORMAT_DEPTH32_FLOAT, TEXTURE_FORMAT_R16_FLOAT, TEXTURE_FORMAT_R32_FLOAT, TEXTURE_FORMAT_R32_SINT, TEXTURE_FORMAT_R32_UINT, TEXTURE_FORMAT_R8_UNORM, TEXTURE_FORMAT_RG16_FLOAT, TEXTURE_FORMAT_RG32_FLOAT, TEXTURE_FORMAT_RGBA16_FLOAT, TEXTURE_FORMAT_RGBA32_FLOAT, TEXTURE_FORMAT_RGBA8_UNORM, TEXTURE_USAGE_COPY_DST, TEXTURE_USAGE_COPY_SRC, TEXTURE_USAGE_RENDER_ATTACHMENT, TEXTURE_USAGE_TEXTURE_BINDING, TEXTURE_VIEW_DIMENSION_2D, TEXTURE_VIEW_DIMENSION_2D_ARRAY, TEXTURE_VIEW_DIMENSION_3D, TEXTURE_VIEW_DIMENSION_CUBE, VERTEX_FORMAT_FLOAT32, VERTEX_FORMAT_FLOAT32X2, VERTEX_FORMAT_FLOAT32X3, VERTEX_FORMAT_FLOAT32X4, VERTEX_FORMAT_UNORM8X4, VERTEX_STEP_MODE_VERTEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadapterRelease(long adapter) Releases the adapter.longadapterRequestDevice(long instance, long adapter) Requests a device from the adapter (synchronous).voidbindGroupLayoutRelease(long layout) Releases a bind group layout.voidbindGroupRelease(long bindGroup) Releases a bind group.voidbufferGetConstMappedRange(long buffer, int offset, int size, ByteBuffer dest) Gets the mapped range of a buffer into the provided direct ByteBuffer.voidbufferMapReadSync(long instance, long buffer, int size, int maxPolls) Maps a buffer for reading (synchronous, polls instance events).voidbufferRelease(long buffer) Releases a buffer.voidbufferUnmap(long buffer) Unmaps a previously mapped buffer.voidcommandBufferRelease(long commandBuffer) Releases a command buffer.longcommandEncoderBeginRenderPass(long encoder, WgpuBindings.RenderPassDescriptor desc) Begins a render pass on the command encoder.voidcommandEncoderCopyBufferToBuffer(long encoder, long src, int srcOffset, long dst, int dstOffset, int size) Copies data between buffers.voidcommandEncoderCopyTextureToBuffer(long encoder, long texture, long buffer, int width, int height, int bytesPerRow, int rowsPerImage) Copies a texture to a buffer.longcommandEncoderFinish(long encoder) Finishes the command encoder, producing a command buffer.voidcommandEncoderRelease(long encoder) Releases a command encoder.longconfigureSurface(long instance, long device, WindowHandle window) Configures a presentation surface for the given window.longCreates a WebGPU instance.longdeviceCreateBindGroup(long device, long layout, WgpuBindings.BindGroupEntry[] entries) Creates a bind group.longdeviceCreateBindGroupLayout(long device, WgpuBindings.BindGroupLayoutEntry[] entries) Creates a bind group layout with the given entries.longdeviceCreateBuffer(long device, long size, int usage) Creates a GPU buffer.longdeviceCreateCommandEncoder(long device) Creates a command encoder.longdeviceCreatePipelineLayout(long device, long[] bindGroupLayouts) Creates a pipeline layout from bind group layouts.longdeviceCreateRenderPipeline(long device, WgpuBindings.RenderPipelineDescriptor desc) Creates a render pipeline.longdeviceCreateSampler(long device, int addressU, int addressV, int addressW, int magFilter, int minFilter, int mipmapFilter, float lodMinClamp, float lodMaxClamp, int compare, float maxAnisotropy) Creates a sampler.longdeviceCreateShaderModule(long device, String wgsl) Creates a shader module from WGSL source.longdeviceCreateTexture(long device, int width, int height, int depthOrLayers, int format, int dimension, int usage) Creates a texture.deviceGetLimits(long device) Queries device limits.longdeviceGetQueue(long device) Gets the device's queue.voiddeviceRelease(long device) Releases the device.longgetSurfaceTextureView(long surface) Gets the current surface texture view for rendering.booleanReturns true if a presentation surface is available.booleanInitializes the WebGPU loader/library.voidinstanceProcessEvents(long instance) Processes pending events on the instance.voidinstanceRelease(long instance) Releases the instance.longinstanceRequestAdapter(long instance) Requests an adapter from the instance (synchronous).booleanReturns true if the native WebGPU library is available.voidpipelineLayoutRelease(long layout) Releases a pipeline layout.voidqueueSubmit(long queue, long commandBuffer) Submits a command buffer to the queue.voidqueueWriteBuffer(long queue, long buffer, int offset, ByteBuffer data, int size) Writes data to a buffer via the queue.voidqueueWriteTexture(long queue, long texture, int width, int height, int depthOrLayers, int bytesPerRow, ByteBuffer data) Writes pixel data to a texture via the queue.voidreleaseSurfaceTextureView(long textureView) Releases a surface texture view obtained from getSurfaceTextureView.voidrenderPassDraw(long renderPass, int vertexCount, int instanceCount, int firstVertex, int firstInstance) Draws primitives.voidrenderPassDrawIndexed(long renderPass, int indexCount, int instanceCount, int firstIndex, int baseVertex, int firstInstance) Draws indexed primitives.voidrenderPassEnd(long renderPass) Ends the render pass.voidrenderPassRelease(long renderPass) Releases the render pass encoder.voidrenderPassSetBindGroup(long renderPass, int groupIndex, long bindGroup) Sets the bind group on the render pass.voidrenderPassSetIndexBuffer(long renderPass, long buffer, int indexFormat, int offset, int size) Sets the index buffer on the render pass.voidrenderPassSetPipeline(long renderPass, long pipeline) Sets the pipeline on the render pass.voidrenderPassSetScissorRect(long renderPass, int x, int y, int width, int height) Sets the scissor rect on the render pass.voidrenderPassSetStencilReference(long renderPass, int ref) Sets the stencil reference on the render pass.voidrenderPassSetVertexBuffer(long renderPass, int slot, long buffer, int offset, int size) Sets a vertex buffer on the render pass.voidrenderPassSetViewport(long renderPass, float x, float y, float w, float h, float minDepth, float maxDepth) Sets the viewport on the render pass.voidrenderPipelineRelease(long pipeline) Releases a render pipeline.voidsamplerRelease(long sampler) Releases a sampler.voidsetPresentMode(int mode) Sets the present mode for surface configuration.booleanshaderModuleIsValid(long shaderModule) Returns true if the shader module handle is valid.voidshaderModuleRelease(long shaderModule) Releases a shader module.intReturns the texture format used by the presentation surface.voidsurfacePresent(long surface) Presents the current surface texture to the screen.longtextureCreateView(long texture, int format, int viewDimension, int arrayLayerCount) Creates a texture view.voidtextureRelease(long texture) Releases a texture.voidtextureViewRelease(long textureView) Releases a texture view.
-
Constructor Details
-
TracingWgpuBindings
-
-
Method Details
-
initialize
public boolean initialize()Description copied from interface:WgpuBindingsInitializes the WebGPU loader/library. Returns true if successful.- Specified by:
initializein interfaceWgpuBindings
-
isAvailable
public boolean isAvailable()Description copied from interface:WgpuBindingsReturns true if the native WebGPU library is available.- Specified by:
isAvailablein interfaceWgpuBindings
-
configureSurface
Description copied from interface:WgpuBindingsConfigures a presentation surface for the given window. Desktop: creates a wgpu surface using WindowHandle.surfaceInfo(). Web: configures the canvas context. Returns a surface/context handle, or 0 if not supported (headless).- Specified by:
configureSurfacein interfaceWgpuBindings
-
getSurfaceTextureView
public long getSurfaceTextureView(long surface) Description copied from interface:WgpuBindingsGets the current surface texture view for rendering. Returns 0 if no surface is configured (offscreen/headless).- Specified by:
getSurfaceTextureViewin interfaceWgpuBindings
-
releaseSurfaceTextureView
public void releaseSurfaceTextureView(long textureView) Description copied from interface:WgpuBindingsReleases a surface texture view obtained from getSurfaceTextureView.- Specified by:
releaseSurfaceTextureViewin interfaceWgpuBindings
-
surfacePresent
public void surfacePresent(long surface) Description copied from interface:WgpuBindingsPresents the current surface texture to the screen. Desktop: calls wgpuSurfacePresent. Web: no-op (browser presents after submit).- Specified by:
surfacePresentin interfaceWgpuBindings
-
surfaceFormat
public int surfaceFormat()Description copied from interface:WgpuBindingsReturns the texture format used by the presentation surface. Defaults to BGRA8 (desktop wgpu-native). Web browsers may use RGBA8.- Specified by:
surfaceFormatin interfaceWgpuBindings
-
hasSurface
public boolean hasSurface()Description copied from interface:WgpuBindingsReturns true if a presentation surface is available.- Specified by:
hasSurfacein interfaceWgpuBindings
-
setPresentMode
public void setPresentMode(int mode) Description copied from interface:WgpuBindingsSets the present mode for surface configuration. Must be called before configureSurface.- Specified by:
setPresentModein interfaceWgpuBindings
-
createInstance
public long createInstance()Description copied from interface:WgpuBindingsCreates a WebGPU instance.- Specified by:
createInstancein interfaceWgpuBindings
-
instanceProcessEvents
public void instanceProcessEvents(long instance) Description copied from interface:WgpuBindingsProcesses pending events on the instance.- Specified by:
instanceProcessEventsin interfaceWgpuBindings
-
instanceRelease
public void instanceRelease(long instance) Description copied from interface:WgpuBindingsReleases the instance.- Specified by:
instanceReleasein interfaceWgpuBindings
-
instanceRequestAdapter
public long instanceRequestAdapter(long instance) Description copied from interface:WgpuBindingsRequests an adapter from the instance (synchronous). Returns the adapter handle, or 0 on failure.- Specified by:
instanceRequestAdapterin interfaceWgpuBindings
-
adapterRelease
public void adapterRelease(long adapter) Description copied from interface:WgpuBindingsReleases the adapter.- Specified by:
adapterReleasein interfaceWgpuBindings
-
adapterRequestDevice
public long adapterRequestDevice(long instance, long adapter) Description copied from interface:WgpuBindingsRequests a device from the adapter (synchronous). Requires the instance handle for event processing. Returns the device handle, or 0 on failure.- Specified by:
adapterRequestDevicein interfaceWgpuBindings
-
deviceGetQueue
public long deviceGetQueue(long device) Description copied from interface:WgpuBindingsGets the device's queue.- Specified by:
deviceGetQueuein interfaceWgpuBindings
-
deviceRelease
public void deviceRelease(long device) Description copied from interface:WgpuBindingsReleases the device.- Specified by:
deviceReleasein interfaceWgpuBindings
-
deviceGetLimits
Description copied from interface:WgpuBindingsQueries device limits. Returns null if not supported.- Specified by:
deviceGetLimitsin interfaceWgpuBindings
-
deviceCreateBuffer
public long deviceCreateBuffer(long device, long size, int usage) Description copied from interface:WgpuBindingsCreates a GPU buffer.- Specified by:
deviceCreateBufferin interfaceWgpuBindings- Parameters:
device- the device handlesize- buffer size in bytesusage- combined WebGPU buffer usage flags- Returns:
- buffer handle
-
bufferRelease
public void bufferRelease(long buffer) Description copied from interface:WgpuBindingsReleases a buffer.- Specified by:
bufferReleasein interfaceWgpuBindings
-
queueWriteBuffer
Description copied from interface:WgpuBindingsWrites data to a buffer via the queue.- Specified by:
queueWriteBufferin interfaceWgpuBindings- Parameters:
queue- the queue handlebuffer- the destination buffer handleoffset- byte offset into the bufferdata- direct ByteBuffer with data to writesize- number of bytes to write
-
bufferMapReadSync
public void bufferMapReadSync(long instance, long buffer, int size, int maxPolls) Description copied from interface:WgpuBindingsMaps a buffer for reading (synchronous, polls instance events).- Specified by:
bufferMapReadSyncin interfaceWgpuBindings- Parameters:
instance- the instance handle (for event polling)buffer- the buffer handlesize- number of bytes to mapmaxPolls- maximum number of event poll iterations
-
bufferGetConstMappedRange
Description copied from interface:WgpuBindingsGets the mapped range of a buffer into the provided direct ByteBuffer.- Specified by:
bufferGetConstMappedRangein interfaceWgpuBindings
-
bufferUnmap
public void bufferUnmap(long buffer) Description copied from interface:WgpuBindingsUnmaps a previously mapped buffer.- Specified by:
bufferUnmapin interfaceWgpuBindings
-
deviceCreateTexture
public long deviceCreateTexture(long device, int width, int height, int depthOrLayers, int format, int dimension, int usage) Description copied from interface:WgpuBindingsCreates a texture.- Specified by:
deviceCreateTexturein interfaceWgpuBindings- Parameters:
device- the device handlewidth- texture widthheight- texture heightdepthOrLayers- depth (for 3D) or array layersformat- WebGPU texture format ordinal (from)invalid reference
WgpuTextureFormatdimension- 0 = 2D, 1 = 3Dusage- combined WebGPU texture usage flags- Returns:
- texture handle
-
textureCreateView
public long textureCreateView(long texture, int format, int viewDimension, int arrayLayerCount) Description copied from interface:WgpuBindingsCreates a texture view.- Specified by:
textureCreateViewin interfaceWgpuBindings- Parameters:
texture- the texture handleformat- WebGPU texture format ordinalviewDimension- view dimension ordinal (from)invalid reference
WgpuTextureViewDimensionarrayLayerCount- number of array layers- Returns:
- texture view handle
-
textureRelease
public void textureRelease(long texture) Description copied from interface:WgpuBindingsReleases a texture.- Specified by:
textureReleasein interfaceWgpuBindings
-
textureViewRelease
public void textureViewRelease(long textureView) Description copied from interface:WgpuBindingsReleases a texture view.- Specified by:
textureViewReleasein interfaceWgpuBindings
-
queueWriteTexture
public void queueWriteTexture(long queue, long texture, int width, int height, int depthOrLayers, int bytesPerRow, ByteBuffer data) Description copied from interface:WgpuBindingsWrites pixel data to a texture via the queue.- Specified by:
queueWriteTexturein interfaceWgpuBindings- Parameters:
queue- the queue handletexture- the destination texture handlewidth- write region widthheight- write region heightdepthOrLayers- write region depth/layersbytesPerRow- bytes per row in the source datadata- direct ByteBuffer with pixel data
-
deviceCreateSampler
public long deviceCreateSampler(long device, int addressU, int addressV, int addressW, int magFilter, int minFilter, int mipmapFilter, float lodMinClamp, float lodMaxClamp, int compare, float maxAnisotropy) Description copied from interface:WgpuBindingsCreates a sampler.- Specified by:
deviceCreateSamplerin interfaceWgpuBindings- Parameters:
device- the device handleaddressU- address mode U ordinal (from)invalid reference
WgpuAddressModeaddressV- address mode V ordinaladdressW- address mode W ordinalmagFilter- mag filter ordinal (from)invalid reference
WgpuFilterModeminFilter- min filter ordinalmipmapFilter- mipmap filter ordinal (from)invalid reference
WgpuMipmapFilterMode- Returns:
- sampler handle
-
samplerRelease
public void samplerRelease(long sampler) Description copied from interface:WgpuBindingsReleases a sampler.- Specified by:
samplerReleasein interfaceWgpuBindings
-
deviceCreateShaderModule
Description copied from interface:WgpuBindingsCreates a shader module from WGSL source.- Specified by:
deviceCreateShaderModulein interfaceWgpuBindings- Parameters:
device- the device handlewgsl- WGSL shader source code- Returns:
- shader module handle, or 0 if creation failed
-
shaderModuleIsValid
public boolean shaderModuleIsValid(long shaderModule) Description copied from interface:WgpuBindingsReturns true if the shader module handle is valid.- Specified by:
shaderModuleIsValidin interfaceWgpuBindings
-
shaderModuleRelease
public void shaderModuleRelease(long shaderModule) Description copied from interface:WgpuBindingsReleases a shader module.- Specified by:
shaderModuleReleasein interfaceWgpuBindings
-
deviceCreateBindGroupLayout
Description copied from interface:WgpuBindingsCreates a bind group layout with the given entries.- Specified by:
deviceCreateBindGroupLayoutin interfaceWgpuBindings- Parameters:
device- the device handleentries- array ofWgpuBindings.BindGroupLayoutEntrydescriptors- Returns:
- bind group layout handle
-
bindGroupLayoutRelease
public void bindGroupLayoutRelease(long layout) Description copied from interface:WgpuBindingsReleases a bind group layout.- Specified by:
bindGroupLayoutReleasein interfaceWgpuBindings
-
deviceCreatePipelineLayout
public long deviceCreatePipelineLayout(long device, long[] bindGroupLayouts) Description copied from interface:WgpuBindingsCreates a pipeline layout from bind group layouts.- Specified by:
deviceCreatePipelineLayoutin interfaceWgpuBindings- Parameters:
device- the device handlebindGroupLayouts- array of bind group layout handles- Returns:
- pipeline layout handle
-
pipelineLayoutRelease
public void pipelineLayoutRelease(long layout) Description copied from interface:WgpuBindingsReleases a pipeline layout.- Specified by:
pipelineLayoutReleasein interfaceWgpuBindings
-
deviceCreateRenderPipeline
Description copied from interface:WgpuBindingsCreates a render pipeline.- Specified by:
deviceCreateRenderPipelinein interfaceWgpuBindings- Parameters:
device- the device handledesc- the pipeline descriptor- Returns:
- render pipeline handle
-
renderPipelineRelease
public void renderPipelineRelease(long pipeline) Description copied from interface:WgpuBindingsReleases a render pipeline.- Specified by:
renderPipelineReleasein interfaceWgpuBindings
-
deviceCreateBindGroup
Description copied from interface:WgpuBindingsCreates a bind group.- Specified by:
deviceCreateBindGroupin interfaceWgpuBindings- Parameters:
device- the device handlelayout- the bind group layout handleentries- array of bind group entry descriptors- Returns:
- bind group handle
-
bindGroupRelease
public void bindGroupRelease(long bindGroup) Description copied from interface:WgpuBindingsReleases a bind group.- Specified by:
bindGroupReleasein interfaceWgpuBindings
-
deviceCreateCommandEncoder
public long deviceCreateCommandEncoder(long device) Description copied from interface:WgpuBindingsCreates a command encoder.- Specified by:
deviceCreateCommandEncoderin interfaceWgpuBindings
-
commandEncoderBeginRenderPass
Description copied from interface:WgpuBindingsBegins a render pass on the command encoder.- Specified by:
commandEncoderBeginRenderPassin interfaceWgpuBindings- Parameters:
encoder- the command encoder handledesc- the render pass descriptor- Returns:
- render pass encoder handle
-
commandEncoderCopyBufferToBuffer
public void commandEncoderCopyBufferToBuffer(long encoder, long src, int srcOffset, long dst, int dstOffset, int size) Description copied from interface:WgpuBindingsCopies data between buffers.- Specified by:
commandEncoderCopyBufferToBufferin interfaceWgpuBindings
-
commandEncoderCopyTextureToBuffer
public void commandEncoderCopyTextureToBuffer(long encoder, long texture, long buffer, int width, int height, int bytesPerRow, int rowsPerImage) Description copied from interface:WgpuBindingsCopies a texture to a buffer.- Specified by:
commandEncoderCopyTextureToBufferin interfaceWgpuBindings
-
commandEncoderFinish
public long commandEncoderFinish(long encoder) Description copied from interface:WgpuBindingsFinishes the command encoder, producing a command buffer.- Specified by:
commandEncoderFinishin interfaceWgpuBindings- Parameters:
encoder- the command encoder handle- Returns:
- command buffer handle
-
commandEncoderRelease
public void commandEncoderRelease(long encoder) Description copied from interface:WgpuBindingsReleases a command encoder.- Specified by:
commandEncoderReleasein interfaceWgpuBindings
-
commandBufferRelease
public void commandBufferRelease(long commandBuffer) Description copied from interface:WgpuBindingsReleases a command buffer.- Specified by:
commandBufferReleasein interfaceWgpuBindings
-
queueSubmit
public void queueSubmit(long queue, long commandBuffer) Description copied from interface:WgpuBindingsSubmits a command buffer to the queue.- Specified by:
queueSubmitin interfaceWgpuBindings
-
renderPassEnd
public void renderPassEnd(long renderPass) Description copied from interface:WgpuBindingsEnds the render pass.- Specified by:
renderPassEndin interfaceWgpuBindings
-
renderPassRelease
public void renderPassRelease(long renderPass) Description copied from interface:WgpuBindingsReleases the render pass encoder.- Specified by:
renderPassReleasein interfaceWgpuBindings
-
renderPassSetPipeline
public void renderPassSetPipeline(long renderPass, long pipeline) Description copied from interface:WgpuBindingsSets the pipeline on the render pass.- Specified by:
renderPassSetPipelinein interfaceWgpuBindings
-
renderPassSetVertexBuffer
public void renderPassSetVertexBuffer(long renderPass, int slot, long buffer, int offset, int size) Description copied from interface:WgpuBindingsSets a vertex buffer on the render pass.- Specified by:
renderPassSetVertexBufferin interfaceWgpuBindings
-
renderPassSetIndexBuffer
public void renderPassSetIndexBuffer(long renderPass, long buffer, int indexFormat, int offset, int size) Description copied from interface:WgpuBindingsSets the index buffer on the render pass.- Specified by:
renderPassSetIndexBufferin interfaceWgpuBindings
-
renderPassSetBindGroup
public void renderPassSetBindGroup(long renderPass, int groupIndex, long bindGroup) Description copied from interface:WgpuBindingsSets the bind group on the render pass.- Specified by:
renderPassSetBindGroupin interfaceWgpuBindings
-
renderPassSetViewport
public void renderPassSetViewport(long renderPass, float x, float y, float w, float h, float minDepth, float maxDepth) Description copied from interface:WgpuBindingsSets the viewport on the render pass.- Specified by:
renderPassSetViewportin interfaceWgpuBindings
-
renderPassSetScissorRect
public void renderPassSetScissorRect(long renderPass, int x, int y, int width, int height) Description copied from interface:WgpuBindingsSets the scissor rect on the render pass.- Specified by:
renderPassSetScissorRectin interfaceWgpuBindings
-
renderPassSetStencilReference
public void renderPassSetStencilReference(long renderPass, int ref) Description copied from interface:WgpuBindingsSets the stencil reference on the render pass.- Specified by:
renderPassSetStencilReferencein interfaceWgpuBindings
-
renderPassDraw
public void renderPassDraw(long renderPass, int vertexCount, int instanceCount, int firstVertex, int firstInstance) Description copied from interface:WgpuBindingsDraws primitives.- Specified by:
renderPassDrawin interfaceWgpuBindings
-
renderPassDrawIndexed
public void renderPassDrawIndexed(long renderPass, int indexCount, int instanceCount, int firstIndex, int baseVertex, int firstInstance) Description copied from interface:WgpuBindingsDraws indexed primitives.- Specified by:
renderPassDrawIndexedin interfaceWgpuBindings
-