@footgun/cobalt 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.6.3
2
+ * add labels to all renderpass nodes
3
+ :
1
4
  # 0.6.2
2
5
  * use preferred canvas format in more places
3
6
 
package/bundle.js CHANGED
@@ -7797,6 +7797,7 @@ function init2(cobalt, node) {
7797
7797
  }
7798
7798
  function draw2(cobalt, node, commandEncoder) {
7799
7799
  const passEncoder = commandEncoder.beginRenderPass({
7800
+ label: "scene-composite",
7800
7801
  colorAttachments: [
7801
7802
  {
7802
7803
  view: node.refs.combined.data.view,
@@ -8133,6 +8134,7 @@ function draw3(cobalt, node, commandEncoder) {
8133
8134
  device.queue.writeBuffer(node.data.spriteBuffer, 0, node.data.spriteData.buffer, 0, writeLength);
8134
8135
  }
8135
8136
  const renderpass = commandEncoder.beginRenderPass({
8137
+ label: "sprite",
8136
8138
  colorAttachments: [
8137
8139
  // color
8138
8140
  {
@@ -8292,6 +8294,7 @@ function draw4(cobalt, nodeData, commandEncoder) {
8292
8294
  const { device } = cobalt;
8293
8295
  const loadOp = nodeData.options.loadOp || "load";
8294
8296
  const renderpass = commandEncoder.beginRenderPass({
8297
+ label: "tile",
8295
8298
  colorAttachments: [
8296
8299
  {
8297
8300
  view: nodeData.refs.hdr.data.view,
@@ -12283,6 +12286,7 @@ function draw5(cobalt, node, commandEncoder) {
12283
12286
  node.data.trianglesBuffer.update();
12284
12287
  node.data.displacementTexture.update(commandEncoder);
12285
12288
  const renderpass = commandEncoder.beginRenderPass({
12289
+ label: "displacement",
12286
12290
  colorAttachments: [
12287
12291
  {
12288
12292
  view: node.refs.out,
@@ -12528,6 +12532,7 @@ function draw6(cobalt, node, commandEncoder) {
12528
12532
  device.queue.writeBuffer(node.data.spriteBuffer, 0, node.data.spriteData.buffer, 0, writeLength);
12529
12533
  }
12530
12534
  const renderpass = commandEncoder.beginRenderPass({
12535
+ label: "overlay",
12531
12536
  colorAttachments: [
12532
12537
  // color
12533
12538
  {
@@ -12700,6 +12705,7 @@ async function init7(cobalt, node) {
12700
12705
  function draw7(cobalt, node, commandEncoder) {
12701
12706
  const { device } = cobalt;
12702
12707
  const renderpass = commandEncoder.beginRenderPass({
12708
+ label: "fb-blit",
12703
12709
  colorAttachments: [
12704
12710
  {
12705
12711
  view: node.refs.out,
@@ -13190,6 +13196,7 @@ function draw8(cobalt, node, commandEncoder) {
13190
13196
  }
13191
13197
  const loadOp = node.options.loadOp || "load";
13192
13198
  const renderpass = commandEncoder.beginRenderPass({
13199
+ label: "primitives",
13193
13200
  colorAttachments: [
13194
13201
  // color
13195
13202
  {
@@ -14175,6 +14182,7 @@ function draw9(cobalt, node, commandEncoder) {
14175
14182
  node.data.lightsTextureNeedsUpdate = false;
14176
14183
  }
14177
14184
  const renderpass = commandEncoder.beginRenderPass({
14185
+ label: "light",
14178
14186
  colorAttachments: [
14179
14187
  {
14180
14188
  view: node.refs.out.data.view,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@footgun/cobalt",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "main": "bundle.js",
6
6
  "description": "A 2D WebGpu renderer",
@@ -132,6 +132,7 @@ function draw(cobalt, node, commandEncoder) {
132
132
  node.data.displacementTexture.update(commandEncoder);
133
133
 
134
134
  const renderpass = commandEncoder.beginRenderPass({
135
+ label: 'displacement',
135
136
  colorAttachments: [
136
137
  {
137
138
  view: node.refs.out,
@@ -122,6 +122,7 @@ function draw (cobalt, node, commandEncoder) {
122
122
  const { device } = cobalt
123
123
 
124
124
  const renderpass = commandEncoder.beginRenderPass({
125
+ label: 'fb-blit',
125
126
  colorAttachments: [
126
127
  {
127
128
  view: node.refs.out,
@@ -118,6 +118,7 @@ function draw(cobalt, node, commandEncoder) {
118
118
  }
119
119
 
120
120
  const renderpass = commandEncoder.beginRenderPass({
121
+ label: 'light',
121
122
  colorAttachments: [
122
123
  {
123
124
  view: node.refs.out.data.view,
@@ -232,6 +232,7 @@ function draw (cobalt, node, commandEncoder) {
232
232
 
233
233
 
234
234
  const renderpass = commandEncoder.beginRenderPass({
235
+ label: 'overlay',
235
236
  colorAttachments: [
236
237
  // color
237
238
  {
@@ -210,6 +210,7 @@ function draw (cobalt, node, commandEncoder) {
210
210
  const loadOp = node.options.loadOp || 'load'
211
211
 
212
212
  const renderpass = commandEncoder.beginRenderPass({
213
+ label: 'primitives',
213
214
  colorAttachments: [
214
215
  // color
215
216
  {
@@ -117,6 +117,7 @@ function init (cobalt, node) {
117
117
  function draw (cobalt, node, commandEncoder) {
118
118
 
119
119
  const passEncoder = commandEncoder.beginRenderPass({
120
+ label: 'scene-composite',
120
121
  colorAttachments: [
121
122
  {
122
123
  view: node.refs.combined.data.view, //getCurrentTextureView(cobalt)
@@ -166,6 +166,7 @@ function draw (cobalt, node, commandEncoder) {
166
166
  }
167
167
 
168
168
  const renderpass = commandEncoder.beginRenderPass({
169
+ label: 'sprite',
169
170
  colorAttachments: [
170
171
  // color
171
172
  {
package/src/tile/tile.js CHANGED
@@ -139,6 +139,7 @@ function draw (cobalt, nodeData, commandEncoder) {
139
139
  const loadOp = nodeData.options.loadOp || 'load'
140
140
 
141
141
  const renderpass = commandEncoder.beginRenderPass({
142
+ label: 'tile',
142
143
  colorAttachments: [
143
144
  {
144
145
  view: nodeData.refs.hdr.data.view,