Constructor
new WebGPULogger(device)
Initializes the logger
Parameters:
| Name | Type | Description |
|---|---|---|
device |
The webgpu device |
- Source:
Classes
Methods
createLogShader(shader, bindGroupLayoutEntries)
Get the log shader
Parameters:
| Name | Type | Description |
|---|---|---|
shader |
The current shader to log | |
bindGroupLayoutEntries |
The binding group layout entries |
- Source:
Returns:
The debuggable shader
(async) getLog()
Get the WebGPU log
- Source:
Returns:
The log
setBindGroupEntries(bindGroupEntries)
Set the bind group entries
Parameters:
| Name | Type | Description |
|---|---|---|
bindGroupEntries |
The bind group entries |
- Source:
setBindGroupLayoutEntries(bindGroupLayoutEntries)
Set the bind group layout entries
Parameters:
| Name | Type | Description |
|---|---|---|
bindGroupLayoutEntries |
The bind group layout entries |
- Source:
setCommandEncoder(commandEncoder)
Set command encoder
Parameters:
| Name | Type | Description |
|---|---|---|
commandEncoder |
- Source: