@predy-js/render-interface 0.1.60-beta.4 → 0.1.60-beta.5
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/dist/index.js +146 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -39
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/statistic.js +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/native/MaterialInternal.d.ts +2 -8
- package/dist/types/native/RenderFrameInternal.d.ts +2 -6
- package/dist/types/native/RendererInternal.d.ts +0 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Name: @predy-js/render-interface
|
3
3
|
* Description: undefined
|
4
4
|
* Author: undefined
|
5
|
-
* Version: v0.1.60-beta.
|
5
|
+
* Version: v0.1.60-beta.5
|
6
6
|
*/
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -233,6 +233,149 @@ var ShaderLibraryEmpty = /** @class */ (function () {
|
|
233
233
|
return ShaderLibraryEmpty;
|
234
234
|
}());
|
235
235
|
|
236
|
+
var RendererInternal = /** @class */ (function () {
|
237
|
+
function RendererInternal() {
|
238
|
+
}
|
239
|
+
return RendererInternal;
|
240
|
+
}());
|
241
|
+
|
242
|
+
var DataBlockInternal = /** @class */ (function () {
|
243
|
+
function DataBlockInternal(options) {
|
244
|
+
}
|
245
|
+
return DataBlockInternal;
|
246
|
+
}());
|
247
|
+
|
248
|
+
/**
|
249
|
+
* geometry中的数据都以buffer形式保存
|
250
|
+
*/
|
251
|
+
var GeometryInternal = /** @class */ (function () {
|
252
|
+
function GeometryInternal(options) {
|
253
|
+
}
|
254
|
+
return GeometryInternal;
|
255
|
+
}());
|
256
|
+
|
257
|
+
var GPUBufferOptionsMemoryShared = 1 << 1;
|
258
|
+
/**
|
259
|
+
* 内存写入GPU的具体时机由框架自行决定,只要保证在渲染前输入GPU即可
|
260
|
+
*/
|
261
|
+
var GPUBufferInternal = /** @class */ (function () {
|
262
|
+
function GPUBufferInternal(options) {
|
263
|
+
}
|
264
|
+
return GPUBufferInternal;
|
265
|
+
}());
|
266
|
+
|
267
|
+
var ImageBitmapInternal = /** @class */ (function () {
|
268
|
+
function ImageBitmapInternal() {
|
269
|
+
}
|
270
|
+
return ImageBitmapInternal;
|
271
|
+
}());
|
272
|
+
|
273
|
+
var MaterialInternal = /** @class */ (function () {
|
274
|
+
function MaterialInternal(options) {
|
275
|
+
}
|
276
|
+
return MaterialInternal;
|
277
|
+
}());
|
278
|
+
|
279
|
+
var MeshInternal = /** @class */ (function () {
|
280
|
+
function MeshInternal(options) {
|
281
|
+
}
|
282
|
+
return MeshInternal;
|
283
|
+
}());
|
284
|
+
|
285
|
+
var RenderFrameInternal$1 = /** @class */ (function () {
|
286
|
+
function RenderFrameInternal(options) {
|
287
|
+
}
|
288
|
+
return RenderFrameInternal;
|
289
|
+
}());
|
290
|
+
|
291
|
+
var RenderPassInternal = /** @class */ (function () {
|
292
|
+
function RenderPassInternal(options) {
|
293
|
+
}
|
294
|
+
return RenderPassInternal;
|
295
|
+
}());
|
296
|
+
|
297
|
+
/**
|
298
|
+
* 客户端创建对象,iOS和android
|
299
|
+
*/
|
300
|
+
var ResourcePlatform;
|
301
|
+
(function (ResourcePlatform) {
|
302
|
+
ResourcePlatform[ResourcePlatform["iOS"] = 1] = "iOS";
|
303
|
+
ResourcePlatform[ResourcePlatform["android"] = 2] = "android";
|
304
|
+
})(ResourcePlatform || (ResourcePlatform = {}));
|
305
|
+
|
306
|
+
var ShaderLibraryInternal = /** @class */ (function () {
|
307
|
+
function ShaderLibraryInternal() {
|
308
|
+
}
|
309
|
+
return ShaderLibraryInternal;
|
310
|
+
}());
|
311
|
+
|
312
|
+
//todo cube supports
|
313
|
+
var TextureInternal = /** @class */ (function () {
|
314
|
+
function TextureInternal(options) {
|
315
|
+
}
|
316
|
+
return TextureInternal;
|
317
|
+
}());
|
318
|
+
|
319
|
+
var COMPRESSED_TEXTURE_NONE = 0;
|
320
|
+
var COMPRESSED_TEXTURE_PVRTC = 1;
|
321
|
+
var COMPRESSED_TEXTURE_ASTC = 2;
|
322
|
+
var GPUCapabilityEmpty = /** @class */ (function () {
|
323
|
+
function GPUCapabilityEmpty() {
|
324
|
+
this.level = 0;
|
325
|
+
this.capability = {
|
326
|
+
maxSample: 0,
|
327
|
+
floatTexture: 0,
|
328
|
+
halfFloatTexture: 0,
|
329
|
+
maxVertexUniforms: 0,
|
330
|
+
maxVertexTextures: 0,
|
331
|
+
maxFragmentUniforms: 0,
|
332
|
+
maxFragmentTextures: 0,
|
333
|
+
maxTextureSize: 0,
|
334
|
+
maxShaderTexCount: 0,
|
335
|
+
maxTextureAnisotropy: 0,
|
336
|
+
compressedTexture: 0,
|
337
|
+
shaderTextureLod: false,
|
338
|
+
};
|
339
|
+
this.type = 'none';
|
340
|
+
}
|
341
|
+
GPUCapabilityEmpty.prototype.setup = function (gl) {
|
342
|
+
};
|
343
|
+
return GPUCapabilityEmpty;
|
344
|
+
}());
|
345
|
+
|
346
|
+
var index = /*#__PURE__*/Object.freeze({
|
347
|
+
__proto__: null,
|
348
|
+
RendererInternal: RendererInternal,
|
349
|
+
DataBlockInternal: DataBlockInternal,
|
350
|
+
GeometryInternal: GeometryInternal,
|
351
|
+
GPUBufferOptionsMemoryShared: GPUBufferOptionsMemoryShared,
|
352
|
+
GPUBufferInternal: GPUBufferInternal,
|
353
|
+
ImageBitmapInternal: ImageBitmapInternal,
|
354
|
+
MaterialInternal: MaterialInternal,
|
355
|
+
MeshInternal: MeshInternal,
|
356
|
+
RenderFrameInternal: RenderFrameInternal$1,
|
357
|
+
RenderPassInternal: RenderPassInternal,
|
358
|
+
get ResourcePlatform () { return ResourcePlatform; },
|
359
|
+
ShaderLibraryInternal: ShaderLibraryInternal,
|
360
|
+
TextureInternal: TextureInternal,
|
361
|
+
get DestroyOptions () { return DestroyOptions; },
|
362
|
+
COMPRESSED_TEXTURE_NONE: COMPRESSED_TEXTURE_NONE,
|
363
|
+
COMPRESSED_TEXTURE_PVRTC: COMPRESSED_TEXTURE_PVRTC,
|
364
|
+
COMPRESSED_TEXTURE_ASTC: COMPRESSED_TEXTURE_ASTC,
|
365
|
+
GPUCapabilityEmpty: GPUCapabilityEmpty,
|
366
|
+
get TextureSourceType () { return TextureSourceType; },
|
367
|
+
get RenderPassDestroyAttachmentType () { return RenderPassDestroyAttachmentType; },
|
368
|
+
RenderPassPriorityPrepare: RenderPassPriorityPrepare,
|
369
|
+
RenderPassPriorityNormal: RenderPassPriorityNormal,
|
370
|
+
RenderPassPriorityPostprocess: RenderPassPriorityPostprocess,
|
371
|
+
get TextureLoadAction () { return TextureLoadAction; },
|
372
|
+
get TextureStoreAction () { return TextureStoreAction; },
|
373
|
+
get RenderPassAttachmentStorageType () { return RenderPassAttachmentStorageType; },
|
374
|
+
get RenderPassMeshOrder () { return RenderPassMeshOrder; },
|
375
|
+
get ShaderCompileResultStatus () { return ShaderCompileResultStatus; },
|
376
|
+
ShaderLibraryEmpty: ShaderLibraryEmpty
|
377
|
+
});
|
378
|
+
|
236
379
|
function isFunc(val) {
|
237
380
|
return typeof val === 'function';
|
238
381
|
}
|
@@ -645,32 +788,6 @@ var MarsRenderFrame = /** @class */ (function () {
|
|
645
788
|
return MarsRenderFrame;
|
646
789
|
}());
|
647
790
|
|
648
|
-
var COMPRESSED_TEXTURE_PVRTC = 1;
|
649
|
-
var COMPRESSED_TEXTURE_ASTC = 2;
|
650
|
-
var GPUCapabilityEmpty = /** @class */ (function () {
|
651
|
-
function GPUCapabilityEmpty() {
|
652
|
-
this.level = 0;
|
653
|
-
this.capability = {
|
654
|
-
maxSample: 0,
|
655
|
-
floatTexture: 0,
|
656
|
-
halfFloatTexture: 0,
|
657
|
-
maxVertexUniforms: 0,
|
658
|
-
maxVertexTextures: 0,
|
659
|
-
maxFragmentUniforms: 0,
|
660
|
-
maxFragmentTextures: 0,
|
661
|
-
maxTextureSize: 0,
|
662
|
-
maxShaderTexCount: 0,
|
663
|
-
maxTextureAnisotropy: 0,
|
664
|
-
compressedTexture: 0,
|
665
|
-
shaderTextureLod: false,
|
666
|
-
};
|
667
|
-
this.type = 'none';
|
668
|
-
}
|
669
|
-
GPUCapabilityEmpty.prototype.setup = function (gl) {
|
670
|
-
};
|
671
|
-
return GPUCapabilityEmpty;
|
672
|
-
}());
|
673
|
-
|
674
791
|
var GLGPUBuffer = /** @class */ (function () {
|
675
792
|
function GLGPUBuffer(options, renderer) {
|
676
793
|
this._isDestroyed = false;
|
@@ -3057,15 +3174,6 @@ var CanvasEmpty = /** @class */ (function () {
|
|
3057
3174
|
return CanvasEmpty;
|
3058
3175
|
}());
|
3059
3176
|
|
3060
|
-
/**
|
3061
|
-
* 客户端创建对象,iOS和android
|
3062
|
-
*/
|
3063
|
-
var ResourcePlatform;
|
3064
|
-
(function (ResourcePlatform) {
|
3065
|
-
ResourcePlatform[ResourcePlatform["iOS"] = 1] = "iOS";
|
3066
|
-
ResourcePlatform[ResourcePlatform["android"] = 2] = "android";
|
3067
|
-
})(ResourcePlatform || (ResourcePlatform = {}));
|
3068
|
-
|
3069
3177
|
var GLRenderBuffer = /** @class */ (function () {
|
3070
3178
|
function GLRenderBuffer(renderer, options) {
|
3071
3179
|
var _a;
|
@@ -5726,8 +5834,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5726
5834
|
return MarsSharedGeometry;
|
5727
5835
|
}(MarsGeometry));
|
5728
5836
|
|
5729
|
-
consoleLog('version: ' + "0.1.60-beta.
|
5730
|
-
consoleLog('Update : xxx');
|
5837
|
+
consoleLog('version: ' + "0.1.60-beta.5");
|
5731
5838
|
|
5732
|
-
export { DestroyOptions, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
|
5839
|
+
export { DestroyOptions, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory, index as types };
|
5733
5840
|
//# sourceMappingURL=index.mjs.map
|