@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.js
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
|
'use strict';
|
@@ -237,6 +237,149 @@ var ShaderLibraryEmpty = /** @class */ (function () {
|
|
237
237
|
return ShaderLibraryEmpty;
|
238
238
|
}());
|
239
239
|
|
240
|
+
var RendererInternal = /** @class */ (function () {
|
241
|
+
function RendererInternal() {
|
242
|
+
}
|
243
|
+
return RendererInternal;
|
244
|
+
}());
|
245
|
+
|
246
|
+
var DataBlockInternal = /** @class */ (function () {
|
247
|
+
function DataBlockInternal(options) {
|
248
|
+
}
|
249
|
+
return DataBlockInternal;
|
250
|
+
}());
|
251
|
+
|
252
|
+
/**
|
253
|
+
* geometry中的数据都以buffer形式保存
|
254
|
+
*/
|
255
|
+
var GeometryInternal = /** @class */ (function () {
|
256
|
+
function GeometryInternal(options) {
|
257
|
+
}
|
258
|
+
return GeometryInternal;
|
259
|
+
}());
|
260
|
+
|
261
|
+
var GPUBufferOptionsMemoryShared = 1 << 1;
|
262
|
+
/**
|
263
|
+
* 内存写入GPU的具体时机由框架自行决定,只要保证在渲染前输入GPU即可
|
264
|
+
*/
|
265
|
+
var GPUBufferInternal = /** @class */ (function () {
|
266
|
+
function GPUBufferInternal(options) {
|
267
|
+
}
|
268
|
+
return GPUBufferInternal;
|
269
|
+
}());
|
270
|
+
|
271
|
+
var ImageBitmapInternal = /** @class */ (function () {
|
272
|
+
function ImageBitmapInternal() {
|
273
|
+
}
|
274
|
+
return ImageBitmapInternal;
|
275
|
+
}());
|
276
|
+
|
277
|
+
var MaterialInternal = /** @class */ (function () {
|
278
|
+
function MaterialInternal(options) {
|
279
|
+
}
|
280
|
+
return MaterialInternal;
|
281
|
+
}());
|
282
|
+
|
283
|
+
var MeshInternal = /** @class */ (function () {
|
284
|
+
function MeshInternal(options) {
|
285
|
+
}
|
286
|
+
return MeshInternal;
|
287
|
+
}());
|
288
|
+
|
289
|
+
var RenderFrameInternal$1 = /** @class */ (function () {
|
290
|
+
function RenderFrameInternal(options) {
|
291
|
+
}
|
292
|
+
return RenderFrameInternal;
|
293
|
+
}());
|
294
|
+
|
295
|
+
var RenderPassInternal = /** @class */ (function () {
|
296
|
+
function RenderPassInternal(options) {
|
297
|
+
}
|
298
|
+
return RenderPassInternal;
|
299
|
+
}());
|
300
|
+
|
301
|
+
/**
|
302
|
+
* 客户端创建对象,iOS和android
|
303
|
+
*/
|
304
|
+
var ResourcePlatform;
|
305
|
+
(function (ResourcePlatform) {
|
306
|
+
ResourcePlatform[ResourcePlatform["iOS"] = 1] = "iOS";
|
307
|
+
ResourcePlatform[ResourcePlatform["android"] = 2] = "android";
|
308
|
+
})(ResourcePlatform || (ResourcePlatform = {}));
|
309
|
+
|
310
|
+
var ShaderLibraryInternal = /** @class */ (function () {
|
311
|
+
function ShaderLibraryInternal() {
|
312
|
+
}
|
313
|
+
return ShaderLibraryInternal;
|
314
|
+
}());
|
315
|
+
|
316
|
+
//todo cube supports
|
317
|
+
var TextureInternal = /** @class */ (function () {
|
318
|
+
function TextureInternal(options) {
|
319
|
+
}
|
320
|
+
return TextureInternal;
|
321
|
+
}());
|
322
|
+
|
323
|
+
var COMPRESSED_TEXTURE_NONE = 0;
|
324
|
+
var COMPRESSED_TEXTURE_PVRTC = 1;
|
325
|
+
var COMPRESSED_TEXTURE_ASTC = 2;
|
326
|
+
var GPUCapabilityEmpty = /** @class */ (function () {
|
327
|
+
function GPUCapabilityEmpty() {
|
328
|
+
this.level = 0;
|
329
|
+
this.capability = {
|
330
|
+
maxSample: 0,
|
331
|
+
floatTexture: 0,
|
332
|
+
halfFloatTexture: 0,
|
333
|
+
maxVertexUniforms: 0,
|
334
|
+
maxVertexTextures: 0,
|
335
|
+
maxFragmentUniforms: 0,
|
336
|
+
maxFragmentTextures: 0,
|
337
|
+
maxTextureSize: 0,
|
338
|
+
maxShaderTexCount: 0,
|
339
|
+
maxTextureAnisotropy: 0,
|
340
|
+
compressedTexture: 0,
|
341
|
+
shaderTextureLod: false,
|
342
|
+
};
|
343
|
+
this.type = 'none';
|
344
|
+
}
|
345
|
+
GPUCapabilityEmpty.prototype.setup = function (gl) {
|
346
|
+
};
|
347
|
+
return GPUCapabilityEmpty;
|
348
|
+
}());
|
349
|
+
|
350
|
+
var index = /*#__PURE__*/Object.freeze({
|
351
|
+
__proto__: null,
|
352
|
+
RendererInternal: RendererInternal,
|
353
|
+
DataBlockInternal: DataBlockInternal,
|
354
|
+
GeometryInternal: GeometryInternal,
|
355
|
+
GPUBufferOptionsMemoryShared: GPUBufferOptionsMemoryShared,
|
356
|
+
GPUBufferInternal: GPUBufferInternal,
|
357
|
+
ImageBitmapInternal: ImageBitmapInternal,
|
358
|
+
MaterialInternal: MaterialInternal,
|
359
|
+
MeshInternal: MeshInternal,
|
360
|
+
RenderFrameInternal: RenderFrameInternal$1,
|
361
|
+
RenderPassInternal: RenderPassInternal,
|
362
|
+
get ResourcePlatform () { return ResourcePlatform; },
|
363
|
+
ShaderLibraryInternal: ShaderLibraryInternal,
|
364
|
+
TextureInternal: TextureInternal,
|
365
|
+
get DestroyOptions () { return exports.DestroyOptions; },
|
366
|
+
COMPRESSED_TEXTURE_NONE: COMPRESSED_TEXTURE_NONE,
|
367
|
+
COMPRESSED_TEXTURE_PVRTC: COMPRESSED_TEXTURE_PVRTC,
|
368
|
+
COMPRESSED_TEXTURE_ASTC: COMPRESSED_TEXTURE_ASTC,
|
369
|
+
GPUCapabilityEmpty: GPUCapabilityEmpty,
|
370
|
+
get TextureSourceType () { return exports.TextureSourceType; },
|
371
|
+
get RenderPassDestroyAttachmentType () { return exports.RenderPassDestroyAttachmentType; },
|
372
|
+
RenderPassPriorityPrepare: RenderPassPriorityPrepare,
|
373
|
+
RenderPassPriorityNormal: RenderPassPriorityNormal,
|
374
|
+
RenderPassPriorityPostprocess: RenderPassPriorityPostprocess,
|
375
|
+
get TextureLoadAction () { return exports.TextureLoadAction; },
|
376
|
+
get TextureStoreAction () { return exports.TextureStoreAction; },
|
377
|
+
get RenderPassAttachmentStorageType () { return exports.RenderPassAttachmentStorageType; },
|
378
|
+
get RenderPassMeshOrder () { return exports.RenderPassMeshOrder; },
|
379
|
+
get ShaderCompileResultStatus () { return exports.ShaderCompileResultStatus; },
|
380
|
+
ShaderLibraryEmpty: ShaderLibraryEmpty
|
381
|
+
});
|
382
|
+
|
240
383
|
function isFunc(val) {
|
241
384
|
return typeof val === 'function';
|
242
385
|
}
|
@@ -649,32 +792,6 @@ var MarsRenderFrame = /** @class */ (function () {
|
|
649
792
|
return MarsRenderFrame;
|
650
793
|
}());
|
651
794
|
|
652
|
-
var COMPRESSED_TEXTURE_PVRTC = 1;
|
653
|
-
var COMPRESSED_TEXTURE_ASTC = 2;
|
654
|
-
var GPUCapabilityEmpty = /** @class */ (function () {
|
655
|
-
function GPUCapabilityEmpty() {
|
656
|
-
this.level = 0;
|
657
|
-
this.capability = {
|
658
|
-
maxSample: 0,
|
659
|
-
floatTexture: 0,
|
660
|
-
halfFloatTexture: 0,
|
661
|
-
maxVertexUniforms: 0,
|
662
|
-
maxVertexTextures: 0,
|
663
|
-
maxFragmentUniforms: 0,
|
664
|
-
maxFragmentTextures: 0,
|
665
|
-
maxTextureSize: 0,
|
666
|
-
maxShaderTexCount: 0,
|
667
|
-
maxTextureAnisotropy: 0,
|
668
|
-
compressedTexture: 0,
|
669
|
-
shaderTextureLod: false,
|
670
|
-
};
|
671
|
-
this.type = 'none';
|
672
|
-
}
|
673
|
-
GPUCapabilityEmpty.prototype.setup = function (gl) {
|
674
|
-
};
|
675
|
-
return GPUCapabilityEmpty;
|
676
|
-
}());
|
677
|
-
|
678
795
|
var GLGPUBuffer = /** @class */ (function () {
|
679
796
|
function GLGPUBuffer(options, renderer) {
|
680
797
|
this._isDestroyed = false;
|
@@ -3061,15 +3178,6 @@ var CanvasEmpty = /** @class */ (function () {
|
|
3061
3178
|
return CanvasEmpty;
|
3062
3179
|
}());
|
3063
3180
|
|
3064
|
-
/**
|
3065
|
-
* 客户端创建对象,iOS和android
|
3066
|
-
*/
|
3067
|
-
var ResourcePlatform;
|
3068
|
-
(function (ResourcePlatform) {
|
3069
|
-
ResourcePlatform[ResourcePlatform["iOS"] = 1] = "iOS";
|
3070
|
-
ResourcePlatform[ResourcePlatform["android"] = 2] = "android";
|
3071
|
-
})(ResourcePlatform || (ResourcePlatform = {}));
|
3072
|
-
|
3073
3181
|
var GLRenderBuffer = /** @class */ (function () {
|
3074
3182
|
function GLRenderBuffer(renderer, options) {
|
3075
3183
|
var _a;
|
@@ -5730,8 +5838,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5730
5838
|
return MarsSharedGeometry;
|
5731
5839
|
}(MarsGeometry));
|
5732
5840
|
|
5733
|
-
consoleLog('version: ' + "0.1.60-beta.
|
5734
|
-
consoleLog('Update : xxx');
|
5841
|
+
consoleLog('version: ' + "0.1.60-beta.5");
|
5735
5842
|
|
5736
5843
|
exports.Geometry = MarsGeometry;
|
5737
5844
|
exports.InstancedMesh = MarsInstancedMesh;
|
@@ -5752,4 +5859,5 @@ exports.constants = constants;
|
|
5752
5859
|
exports.getDefaultGPUCapability = getDefaultGPUCapability;
|
5753
5860
|
exports.getDefaultTextureFactory = getDefaultTextureFactory;
|
5754
5861
|
exports.setDefaultTextureFactory = setDefaultTextureFactory;
|
5862
|
+
exports.types = index;
|
5755
5863
|
//# sourceMappingURL=index.js.map
|