@carbonenginejs/runtime 0.1.0-alpha.6 → 0.1.0-alpha.7
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.
Potentially problematic release.
This version of @carbonenginejs/runtime might be problematic. Click here for more details.
- package/dist/global/consts/effectPaths.js +4 -1
- package/dist/global/consts/effectPaths.js.map +1 -1
- package/dist/global/consts/index.js +1 -1
- package/dist/global/index.js +1 -1
- package/dist/index.js +3 -3
- package/dist/resource/format/carbonEffect/carbonEffectBackendBlock.js +19 -2
- package/dist/resource/format/carbonEffect/carbonEffectBackendBlock.js.map +1 -1
- package/dist/resource/format/index.js +1 -1
- package/dist/resource/formats/hlsl/core/carbonTypedViews.js +121 -65
- package/dist/resource/formats/hlsl/core/carbonTypedViews.js.map +1 -1
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js +10 -7
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js.map +1 -1
- package/dist/resource/formats/webgpu/core/effectBackendBodySet.js +3 -1
- package/dist/resource/formats/webgpu/core/effectBackendBodySet.js.map +1 -1
- package/dist/resource/formats/webgpu/core/packageEffect.js +5 -0
- package/dist/resource/formats/webgpu/core/packageEffect.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/emitWgsl.js +20 -0
- package/dist/resource/formats/webgpu/core/wgsl/emitWgsl.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/emulatedAddressing.js +93 -4
- package/dist/resource/formats/webgpu/core/wgsl/emulatedAddressing.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/lowerBindingLayout.js +74 -64
- package/dist/resource/formats/webgpu/core/wgsl/lowerBindingLayout.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/lowerFragmentProgram.js +16 -7
- package/dist/resource/formats/webgpu/core/wgsl/lowerFragmentProgram.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/wgslTypedViews.js +69 -27
- package/dist/resource/formats/webgpu/core/wgsl/wgslTypedViews.js.map +1 -1
- package/dist/resource/geometry/registerGeometryResources.js +10 -1
- package/dist/resource/geometry/registerGeometryResources.js.map +1 -1
- package/dist/sof/EveSOFDNA.js +4 -2
- package/dist/sof/EveSOFDNA.js.map +1 -1
- package/dist/sof/EveSOFDataMgr.js +83 -69
- package/dist/sof/EveSOFDataMgr.js.map +1 -1
- package/dist/trinity/core/Tr2Denoiser.js +6 -1
- package/dist/trinity/core/Tr2Denoiser.js.map +1 -1
- package/dist/trinity/core/Tr2ShadowMap.js +7 -2
- package/dist/trinity/core/Tr2ShadowMap.js.map +1 -1
- package/dist/trinity/core/context/Tr2RenderContext.js +43 -0
- package/dist/trinity/core/context/Tr2RenderContext.js.map +1 -1
- package/dist/trinity/core/device/Tr2GpuStructuredBuffer.js +134 -0
- package/dist/trinity/core/device/Tr2GpuStructuredBuffer.js.map +1 -0
- package/dist/trinity/core/index.js +1 -0
- package/dist/trinity/core/index.js.map +1 -1
- package/dist/trinity/core/lighting/Tr2LightManager.js +410 -124
- package/dist/trinity/core/lighting/Tr2LightManager.js.map +1 -1
- package/dist/trinity/eve/effect/lensflare/EveLensflare.js +303 -312
- package/dist/trinity/eve/effect/lensflare/EveLensflare.js.map +1 -1
- package/dist/trinity/eve/effect/lensflare/EveOccluder.js +117 -0
- package/dist/trinity/eve/effect/lensflare/EveOccluder.js.map +1 -0
- package/dist/trinity/eve/index.js +1 -0
- package/dist/trinity/eve/index.js.map +1 -1
- package/dist/trinity/eve/scene/EveSpaceScene.js +286 -6
- package/dist/trinity/eve/scene/EveSpaceScene.js.map +1 -1
- package/dist/trinity/eve/scene/EveSpaceSceneRenderDriver.js +212 -32
- package/dist/trinity/eve/scene/EveSpaceSceneRenderDriver.js.map +1 -1
- package/dist/trinity/generated/eve/effect/index.js +0 -1
- package/dist/trinity/generated/eve/effect/index.js.map +1 -1
- package/dist/trinity/generated/eve/index.js +0 -1
- package/dist/trinity/generated/eve/index.js.map +1 -1
- package/dist/trinity/generated/index.js +0 -2
- package/dist/trinity/generated/index.js.map +1 -1
- package/dist/trinity/generated/trinityCore/index.js +0 -1
- package/dist/trinity/generated/trinityCore/index.js.map +1 -1
- package/dist/trinity/index.js +2 -2
- package/dist/trinity/postProcess/Tr2PostProcessRenderer.js +4 -1
- package/dist/trinity/postProcess/Tr2PostProcessRenderer.js.map +1 -1
- package/dist/trinity/postProcess/Tr2SSAO.js +282 -21
- package/dist/trinity/postProcess/Tr2SSAO.js.map +1 -1
- package/dist/trinity/shader/parameter/Tr2RuntimeTextureParameter.js +71 -53
- package/dist/trinity/shader/parameter/Tr2RuntimeTextureParameter.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuRenderContextAL.js +81 -18
- package/dist/trinityal/webgpu/CjsWebgpuRenderContextAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuResourceSetAL.js +46 -4
- package/dist/trinityal/webgpu/CjsWebgpuResourceSetAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuShaderAL.js +32 -1
- package/dist/trinityal/webgpu/CjsWebgpuShaderAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuShaderProgramAL.js +27 -0
- package/dist/trinityal/webgpu/CjsWebgpuShaderProgramAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuTextureAL.js +29 -4
- package/dist/trinityal/webgpu/CjsWebgpuTextureAL.js.map +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuPsoDescription.js +32 -2
- package/dist/trinityal/webgpu/core/CjsWebgpuPsoDescription.js.map +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuUtils.js +57 -5
- package/dist/trinityal/webgpu/core/CjsWebgpuUtils.js.map +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuWorkQueue.js +111 -5
- package/dist/trinityal/webgpu/core/CjsWebgpuWorkQueue.js.map +1 -1
- package/docs/trinity/reference/classes/generated.md +20 -20
- package/docs/trinity/reference/classes/post-process.md +1 -1
- package/package.json +1 -1
- package/dist/trinity/generated/eve/effect/EveOccluder.js +0 -38
- package/dist/trinity/generated/eve/effect/EveOccluder.js.map +0 -1
- package/dist/trinity/generated/trinityCore/Tr2GpuStructuredBuffer.js +0 -48
- package/dist/trinity/generated/trinityCore/Tr2GpuStructuredBuffer.js.map +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { identity as _identity, applyDecs2311 as _applyDecs2311 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import { edit, type, carbon, impl } from '#schema';
|
|
3
|
+
import { CjsModel } from '#model';
|
|
4
|
+
import { Tr2GpuUsage, Tr2CpuUsage } from '#consts/render-context';
|
|
5
|
+
import { ALResult, Tr2BufferDescriptionAL } from '#trinityal';
|
|
6
|
+
|
|
7
|
+
let _initProto, _initClass, _init_creationFlags, _init_extra_creationFlags, _init_count, _init_extra_count, _init_stride, _init_extra_stride;
|
|
8
|
+
|
|
9
|
+
/** Describes the element count, stride, and creation flags of a GPU structured buffer. */
|
|
10
|
+
let _Tr2GpuStructuredBuff;
|
|
11
|
+
new class extends _identity {
|
|
12
|
+
static [class Tr2GpuStructuredBuffer extends CjsModel {
|
|
13
|
+
static {
|
|
14
|
+
({
|
|
15
|
+
e: [_init_creationFlags, _init_extra_creationFlags, _init_count, _init_extra_count, _init_stride, _init_extra_stride, _initProto],
|
|
16
|
+
c: [_Tr2GpuStructuredBuff, _initClass]
|
|
17
|
+
} = _applyDecs2311(this, [type.define({
|
|
18
|
+
className: "Tr2GpuStructuredBuffer",
|
|
19
|
+
family: "trinityCore",
|
|
20
|
+
purpose: "Describes the element count, stride, and creation flags of a GPU structured buffer."
|
|
21
|
+
})], [[[edit, edit.notify, edit, edit.readwrite, edit, edit.persist, type, type.uint32], 16, "creationFlags"], [[edit, edit.notify, edit, edit.readwrite, edit, edit.persist, type, type.uint32], 16, "count"], [[edit, edit.notify, edit, edit.readwrite, edit, edit.persist, type, type.uint32], 16, "stride"], [[carbon, carbon.method, impl, impl.adapted], 18, "Create"], [[carbon, carbon.method, impl, impl.adapted], 18, "CreateBuffer"], [[carbon, carbon.method, impl, impl.implemented], 18, "SetName"], [[carbon, carbon.method, impl, impl.implemented], 18, "GetGpuBuffer"], [[carbon, carbon.method, impl, impl.implemented], 18, "IsValid"], [[carbon, carbon.method, impl, impl.implemented], 18, "GetCount"], [[carbon, carbon.method, impl, impl.notImplemented], 18, "__init__"], [[carbon, carbon.method, impl, impl.notImplemented], 18, "DebugGetData"]], 0, void 0, CjsModel));
|
|
22
|
+
}
|
|
23
|
+
/** Carbon's CreationFlag (Tr2GpuStructuredBuffer.h:30-36). */
|
|
24
|
+
|
|
25
|
+
/** m_creationFlags (CreationFlags) [READWRITE, PERSIST, NOTIFY] */
|
|
26
|
+
creationFlags = (_initProto(this), _init_creationFlags(this, 0));
|
|
27
|
+
|
|
28
|
+
/** m_count (uint32_t) [READWRITE, PERSIST, NOTIFY] */
|
|
29
|
+
count = (_init_extra_creationFlags(this), _init_count(this, 0));
|
|
30
|
+
|
|
31
|
+
/** m_stride (uint32_t) [READWRITE, PERSIST, NOTIFY] */
|
|
32
|
+
stride = (_init_extra_count(this), _init_stride(this, 0));
|
|
33
|
+
|
|
34
|
+
/** m_name - debug label; not Blue-exposed. */
|
|
35
|
+
_name = (_init_extra_stride(this), "");
|
|
36
|
+
|
|
37
|
+
/** m_buffer: the AL buffer, null until CreateBuffer succeeds. */
|
|
38
|
+
_buffer = null;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Carbon Create (cpp:78-84): records count, stride and flags, then builds
|
|
42
|
+
* the AL buffer.
|
|
43
|
+
*
|
|
44
|
+
* The render context is an ADDED argument, as on Tr2GpuBuffer.Create:
|
|
45
|
+
* Carbon's CreateBuffer reaches the main-thread context through
|
|
46
|
+
* USE_MAIN_THREAD_RENDER_CONTEXT, and callers here hold their context.
|
|
47
|
+
*
|
|
48
|
+
* @param {number} count Element count.
|
|
49
|
+
* @param {number} stride Bytes per element.
|
|
50
|
+
* @param {number} creationFlags `Tr2GpuStructuredBuffer.CreationFlag` bits.
|
|
51
|
+
* @param {Tr2RenderContext} renderContext The context to create on.
|
|
52
|
+
* @returns {number} An `ALResult`.
|
|
53
|
+
*/
|
|
54
|
+
Create(count, stride, creationFlags, renderContext) {
|
|
55
|
+
this.count = count;
|
|
56
|
+
this.stride = stride;
|
|
57
|
+
this.creationFlags = creationFlags;
|
|
58
|
+
return this.CreateBuffer(renderContext);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Carbon CreateBuffer (cpp:118-149): SHADER_RESOURCE always, plus
|
|
63
|
+
* UNORDERED_ACCESS when GPU-writable; CPU READ, or WRITE_OFTEN when
|
|
64
|
+
* CPU-writable. A zero count or stride refuses and keeps the current
|
|
65
|
+
* buffer; a failed create leaves none.
|
|
66
|
+
*
|
|
67
|
+
* @param {Tr2RenderContext} renderContext The context to create on.
|
|
68
|
+
* @returns {number} An `ALResult`.
|
|
69
|
+
*/
|
|
70
|
+
CreateBuffer(renderContext) {
|
|
71
|
+
if (!this.count || !this.stride) return ALResult.E_INVALIDARG;
|
|
72
|
+
this._buffer = null;
|
|
73
|
+
const {
|
|
74
|
+
CPU_WRITABLE,
|
|
75
|
+
GPU_WRITABLE
|
|
76
|
+
} = _Tr2GpuStructuredBuff.CreationFlag;
|
|
77
|
+
let gpuUsage = Tr2GpuUsage.SHADER_RESOURCE;
|
|
78
|
+
let cpuUsage = Tr2CpuUsage.READ;
|
|
79
|
+
if (this.creationFlags & GPU_WRITABLE) gpuUsage |= Tr2GpuUsage.UNORDERED_ACCESS;else if (this.creationFlags & CPU_WRITABLE) cpuUsage = Tr2CpuUsage.WRITE_OFTEN;
|
|
80
|
+
const buffer = renderContext.CreateBuffer(Tr2BufferDescriptionAL.FromStride(this.stride, this.count, gpuUsage, cpuUsage), null);
|
|
81
|
+
if (!buffer) return ALResult.E_FAIL;
|
|
82
|
+
if (this._name) buffer.SetName(this._name);
|
|
83
|
+
this._buffer = buffer;
|
|
84
|
+
return ALResult.S_OK;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Carbon SetName (cpp:151-158): labels the buffer now and on every re-create. */
|
|
88
|
+
SetName(name) {
|
|
89
|
+
this._name = String(name ?? "");
|
|
90
|
+
if (this._buffer) this._buffer.SetName(this._name);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Carbon GetGpuBuffer (cpp:94-97), the ITr2GpuBuffer face a GPUBUFFER
|
|
95
|
+
* variable binds through; null until created.
|
|
96
|
+
*
|
|
97
|
+
* @param {number} [_index] Unused, as in Carbon.
|
|
98
|
+
* @returns {object|null} The AL buffer.
|
|
99
|
+
*/
|
|
100
|
+
GetGpuBuffer(_index = 0) {
|
|
101
|
+
return this._buffer;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Carbon IsValid (cpp:106-109). */
|
|
105
|
+
IsValid() {
|
|
106
|
+
return this._buffer !== null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Carbon GetCount (cpp:173-175): the created buffer's element count, 0 without one. */
|
|
110
|
+
GetCount() {
|
|
111
|
+
return this._buffer ? this._buffer.GetDesc().count : 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Carbon method __init__ -> py__init__ (MAP_METHOD_AND_WRAP_OPTIONAL_ARGS). */
|
|
115
|
+
__init__(...args) {
|
|
116
|
+
throw new Error("Tr2GpuStructuredBuffer.__init__ is not implemented in CarbonEngineJS.");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** Carbon method DebugGetData -> PyGetData (MAP_METHOD). */
|
|
120
|
+
DebugGetData(...args) {
|
|
121
|
+
throw new Error("Tr2GpuStructuredBuffer.DebugGetData is not implemented in CarbonEngineJS.");
|
|
122
|
+
}
|
|
123
|
+
}];
|
|
124
|
+
CreationFlag = Object.freeze({
|
|
125
|
+
CPU_WRITABLE: 1,
|
|
126
|
+
GPU_WRITABLE: 2
|
|
127
|
+
});
|
|
128
|
+
constructor() {
|
|
129
|
+
super(_Tr2GpuStructuredBuff), _initClass();
|
|
130
|
+
}
|
|
131
|
+
}();
|
|
132
|
+
|
|
133
|
+
export { _Tr2GpuStructuredBuff as Tr2GpuStructuredBuffer };
|
|
134
|
+
//# sourceMappingURL=Tr2GpuStructuredBuffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tr2GpuStructuredBuffer.js","sources":["../../../../../src/trinity/core/device/Tr2GpuStructuredBuffer.js"],"sourcesContent":["// Source: trinity/trinity/Tr2GpuStructuredBuffer.h\n// Source: trinity/trinity/Tr2GpuStructuredBuffer.cpp\n// Hand-maintained from Carbon source; promoted from generated/trinityCore.\nimport { carbon, impl, edit, type } from \"#schema\";\nimport { CjsModel } from \"#model\";\nimport { Tr2CpuUsage, Tr2GpuUsage } from \"#consts/render-context\";\nimport { ALResult, Tr2BufferDescriptionAL } from \"#trinityal\";\n\n/** Describes the element count, stride, and creation flags of a GPU structured buffer. */\n@type.define({ className: \"Tr2GpuStructuredBuffer\", family: \"trinityCore\", purpose: \"Describes the element count, stride, and creation flags of a GPU structured buffer.\" })\nexport class Tr2GpuStructuredBuffer extends CjsModel\n{\n\n /** Carbon's CreationFlag (Tr2GpuStructuredBuffer.h:30-36). */\n static CreationFlag = Object.freeze({ CPU_WRITABLE: 1, GPU_WRITABLE: 2 });\n\n /** m_creationFlags (CreationFlags) [READWRITE, PERSIST, NOTIFY] */\n @edit.notify\n @edit.readwrite\n @edit.persist\n @type.uint32\n creationFlags = 0;\n\n /** m_count (uint32_t) [READWRITE, PERSIST, NOTIFY] */\n @edit.notify\n @edit.readwrite\n @edit.persist\n @type.uint32\n count = 0;\n\n /** m_stride (uint32_t) [READWRITE, PERSIST, NOTIFY] */\n @edit.notify\n @edit.readwrite\n @edit.persist\n @type.uint32\n stride = 0;\n\n /** m_name - debug label; not Blue-exposed. */\n _name = \"\";\n\n /** m_buffer: the AL buffer, null until CreateBuffer succeeds. */\n _buffer = null;\n\n /**\n * Carbon Create (cpp:78-84): records count, stride and flags, then builds\n * the AL buffer.\n *\n * The render context is an ADDED argument, as on Tr2GpuBuffer.Create:\n * Carbon's CreateBuffer reaches the main-thread context through\n * USE_MAIN_THREAD_RENDER_CONTEXT, and callers here hold their context.\n *\n * @param {number} count Element count.\n * @param {number} stride Bytes per element.\n * @param {number} creationFlags `Tr2GpuStructuredBuffer.CreationFlag` bits.\n * @param {Tr2RenderContext} renderContext The context to create on.\n * @returns {number} An `ALResult`.\n */\n @carbon.method\n @impl.adapted\n Create(count, stride, creationFlags, renderContext)\n {\n this.count = count;\n this.stride = stride;\n this.creationFlags = creationFlags;\n return this.CreateBuffer(renderContext);\n }\n\n /**\n * Carbon CreateBuffer (cpp:118-149): SHADER_RESOURCE always, plus\n * UNORDERED_ACCESS when GPU-writable; CPU READ, or WRITE_OFTEN when\n * CPU-writable. A zero count or stride refuses and keeps the current\n * buffer; a failed create leaves none.\n *\n * @param {Tr2RenderContext} renderContext The context to create on.\n * @returns {number} An `ALResult`.\n */\n @carbon.method\n @impl.adapted\n CreateBuffer(renderContext)\n {\n if (!this.count || !this.stride) return ALResult.E_INVALIDARG;\n this._buffer = null;\n\n const { CPU_WRITABLE, GPU_WRITABLE } = Tr2GpuStructuredBuffer.CreationFlag;\n let gpuUsage = Tr2GpuUsage.SHADER_RESOURCE;\n let cpuUsage = Tr2CpuUsage.READ;\n if (this.creationFlags & GPU_WRITABLE) gpuUsage |= Tr2GpuUsage.UNORDERED_ACCESS;\n else if (this.creationFlags & CPU_WRITABLE) cpuUsage = Tr2CpuUsage.WRITE_OFTEN;\n\n const buffer = renderContext.CreateBuffer(Tr2BufferDescriptionAL.FromStride(this.stride, this.count, gpuUsage, cpuUsage), null);\n if (!buffer) return ALResult.E_FAIL;\n if (this._name) buffer.SetName(this._name);\n this._buffer = buffer;\n return ALResult.S_OK;\n }\n\n /** Carbon SetName (cpp:151-158): labels the buffer now and on every re-create. */\n @carbon.method\n @impl.implemented\n SetName(name)\n {\n this._name = String(name ?? \"\");\n if (this._buffer) this._buffer.SetName(this._name);\n }\n\n /**\n * Carbon GetGpuBuffer (cpp:94-97), the ITr2GpuBuffer face a GPUBUFFER\n * variable binds through; null until created.\n *\n * @param {number} [_index] Unused, as in Carbon.\n * @returns {object|null} The AL buffer.\n */\n @carbon.method\n @impl.implemented\n GetGpuBuffer(_index = 0)\n {\n return this._buffer;\n }\n\n /** Carbon IsValid (cpp:106-109). */\n @carbon.method\n @impl.implemented\n IsValid()\n {\n return this._buffer !== null;\n }\n\n /** Carbon GetCount (cpp:173-175): the created buffer's element count, 0 without one. */\n @carbon.method\n @impl.implemented\n GetCount()\n {\n return this._buffer ? this._buffer.GetDesc().count : 0;\n }\n\n /** Carbon method __init__ -> py__init__ (MAP_METHOD_AND_WRAP_OPTIONAL_ARGS). */\n @carbon.method\n @impl.notImplemented\n __init__(...args)\n {\n throw new Error(\"Tr2GpuStructuredBuffer.__init__ is not implemented in CarbonEngineJS.\");\n }\n\n /** Carbon method DebugGetData -> PyGetData (MAP_METHOD). */\n @carbon.method\n @impl.notImplemented\n DebugGetData(...args)\n {\n throw new Error(\"Tr2GpuStructuredBuffer.DebugGetData is not implemented in CarbonEngineJS.\");\n }\n\n}\n"],"names":["_Tr2GpuStructuredBuff","_identity","Tr2GpuStructuredBuffer","CjsModel","e","_init_creationFlags","_init_extra_creationFlags","_init_count","_init_extra_count","_init_stride","_init_extra_stride","_initProto","c","_initClass","_applyDecs","type","define","className","family","purpose","edit","notify","readwrite","persist","uint32","carbon","method","impl","adapted","implemented","notImplemented","creationFlags","count","stride","_name","_buffer","Create","renderContext","CreateBuffer","ALResult","E_INVALIDARG","CPU_WRITABLE","GPU_WRITABLE","CreationFlag","gpuUsage","Tr2GpuUsage","SHADER_RESOURCE","cpuUsage","Tr2CpuUsage","READ","UNORDERED_ACCESS","WRITE_OFTEN","buffer","Tr2BufferDescriptionAL","FromStride","E_FAIL","SetName","S_OK","name","String","GetGpuBuffer","_index","IsValid","GetCount","GetDesc","__init__","args","Error","DebugGetData","Object","freeze","constructor"],"mappings":";;;;;;;;AAQA;AAAA,IAAAA;AAAA,IAAA,cAAAC,SAAA,CAAA;AAAA,EAAA,QACA,MAAAC,sBAAA,SAC4CC,QAAQ,CACpD;AAAA,IAAA;AAAA,MAAA,CAAA;AAAAC,QAAAA,CAAA,EAAA,CAAAC,mBAAA,EAAAC,yBAAA,EAAAC,WAAA,EAAAC,iBAAA,EAAAC,YAAA,EAAAC,kBAAA,EAAAC,UAAA,CAAA;QAAAC,CAAA,EAAA,CAAAZ,qBAAA,EAAAa,UAAA;AAAA,OAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,QAAAA,SAAS,EAAE,wBAAwB;AAAEC,QAAAA,MAAM,EAAE,aAAa;AAAEC,QAAAA,OAAO,EAAE;AAAsF,OAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAQzKC,IAAI,EAAJA,IAAI,CAACC,MAAM,EACXD,IAAI,EAAJA,IAAI,CAACE,SAAS,EACdF,IAAI,EAAJA,IAAI,CAACG,OAAO,EACZR,IAAI,EAAJA,IAAI,CAACS,MAAM,CAAA,EAAA,EAAA,EAAA,eAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACC,MAAM,EACXD,IAAI,EAAJA,IAAI,CAACE,SAAS,EACdF,IAAI,EAAJA,IAAI,CAACG,OAAO,EACZR,IAAI,EAAJA,IAAI,CAACS,MAAM,mBAIXJ,IAAI,EAAJA,IAAI,CAACC,MAAM,EACXD,IAAI,EAAJA,IAAI,CAACE,SAAS,EACdF,IAAI,EAAJA,IAAI,CAACG,OAAO,EACZR,IAAI,EAAJA,IAAI,CAACS,MAAM,CAAA,EAAA,EAAA,EAAA,QAAA,CAAA,EAAA,CAAA,CAuBXC,MAAM,EAANA,MAAM,CAACC,MAAM,EACbC,IAAI,EAAJA,IAAI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il } from './device/Tr2DepthStencil.js';
|
|
53
53
|
export { Tr2RenderTarget } from './device/Tr2RenderTarget.js';
|
|
54
54
|
export { Tr2GpuBuffer } from './device/Tr2GpuBuffer.js';
|
|
55
|
+
export { Tr2GpuStructuredBuffer } from './device/Tr2GpuStructuredBuffer.js';
|
|
55
56
|
export { Tr2RingBufferOffsets } from './device/Tr2RingBuffer/Tr2RingBufferOffsets.js';
|
|
56
57
|
export { Tr2RingBuffer } from './device/Tr2RingBuffer/Tr2RingBuffer.js';
|
|
57
58
|
export { Tr2RuntimeGpuBuffer } from './device/Tr2RuntimeGpuBuffer.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|