File tree Expand file tree Collapse file tree 6 files changed +8
-19
lines changed Expand file tree Collapse file tree 6 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @orillusion/core" ,
3
- "version" : " 0.8.4 " ,
3
+ "version" : " 0.8.5-dev.1 " ,
4
4
"author" : " Orillusion" ,
5
5
"description" : " Orillusion WebGPU Engine" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change @@ -262,15 +262,15 @@ export class GeometryVertexBuffer {
262
262
263
263
}
264
264
265
- public destroy ( force ?: boolean ) {
265
+ public destroy ( ) {
266
266
this . vertexCount = null ;
267
267
this . geometryType = null ;
268
268
this . _vertexBufferLayouts = null ;
269
269
this . _attributeSlotLayouts = null ;
270
270
this . _attributeLocation = null ;
271
271
272
272
if ( this . vertexGPUBuffer )
273
- this . vertexGPUBuffer . destroy ( force ) ;
273
+ this . vertexGPUBuffer . destroy ( ) ;
274
274
this . vertexGPUBuffer = null ;
275
275
}
276
276
}
Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ export class GPUBufferBase {
463
463
}
464
464
}
465
465
466
- public destroy ( force ?: boolean ) {
466
+ public destroy ( ) {
467
467
if ( this . memoryNodes ) {
468
468
this . memoryNodes . forEach ( ( v ) => {
469
469
v . destroy ( ) ;
Original file line number Diff line number Diff line change @@ -955,17 +955,6 @@ export class RenderShaderPass extends ShaderPassBase {
955
955
texture . destroy ( force ) ;
956
956
} else {
957
957
texture . destroy ( false ) ;
958
- let table = Reference . getInstance ( ) . getReference ( texture ) ;
959
- if ( table ) {
960
- let list = [ ] ;
961
- table . forEach ( ( v , k ) => {
962
- if ( `name` in v ) {
963
- list . push ( v [ `name` ] ) ;
964
- } else {
965
- list . push ( `NaN` ) ;
966
- }
967
- } ) ;
968
- }
969
958
}
970
959
}
971
960
}
@@ -981,7 +970,7 @@ export class RenderShaderPass extends ShaderPassBase {
981
970
this . _destFS = null ;
982
971
this . _vsShaderModule = null ;
983
972
this . _fsShaderModule = null ;
984
- this . materialDataUniformBuffer . destroy ( force ) ; ;
973
+ this . materialDataUniformBuffer . destroy ( ) ; ;
985
974
this . materialDataUniformBuffer = null ;
986
975
}
987
976
Original file line number Diff line number Diff line change @@ -233,8 +233,8 @@ export class Shader {
233
233
}
234
234
}
235
235
236
- public destroy ( ) {
237
- this . getDefaultColorShader ( ) . destroy ( ) ;
236
+ public destroy ( force ?: boolean ) {
237
+ this . getDefaultColorShader ( ) . destroy ( force ) ;
238
238
}
239
239
240
240
public clone ( ) {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export class Material {
191
191
destroy ( force : boolean ) {
192
192
this . name = null ;
193
193
this . instanceID = null ;
194
- this . _shader . destroy ( ) ;
194
+ this . _shader . destroy ( force ) ;
195
195
this . _shader = null ;
196
196
}
197
197
You can’t perform that action at this time.
0 commit comments