@predy-js/render-interface 0.1.60-beta.5 → 0.1.60

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 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
5
+ * Version: v0.1.60
6
6
  */
7
7
 
8
8
  'use strict';
@@ -237,149 +237,6 @@ 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
-
383
240
  function isFunc(val) {
384
241
  return typeof val === 'function';
385
242
  }
@@ -792,6 +649,32 @@ var MarsRenderFrame = /** @class */ (function () {
792
649
  return MarsRenderFrame;
793
650
  }());
794
651
 
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
+
795
678
  var GLGPUBuffer = /** @class */ (function () {
796
679
  function GLGPUBuffer(options, renderer) {
797
680
  this._isDestroyed = false;
@@ -3178,6 +3061,15 @@ var CanvasEmpty = /** @class */ (function () {
3178
3061
  return CanvasEmpty;
3179
3062
  }());
3180
3063
 
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
+
3181
3073
  var GLRenderBuffer = /** @class */ (function () {
3182
3074
  function GLRenderBuffer(renderer, options) {
3183
3075
  var _a;
@@ -5838,7 +5730,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5838
5730
  return MarsSharedGeometry;
5839
5731
  }(MarsGeometry));
5840
5732
 
5841
- consoleLog('version: ' + "0.1.60-beta.5");
5733
+ consoleLog('version: ' + "0.1.60");
5842
5734
 
5843
5735
  exports.Geometry = MarsGeometry;
5844
5736
  exports.InstancedMesh = MarsInstancedMesh;
@@ -5859,5 +5751,4 @@ exports.constants = constants;
5859
5751
  exports.getDefaultGPUCapability = getDefaultGPUCapability;
5860
5752
  exports.getDefaultTextureFactory = getDefaultTextureFactory;
5861
5753
  exports.setDefaultTextureFactory = setDefaultTextureFactory;
5862
- exports.types = index;
5863
5754
  //# sourceMappingURL=index.js.map