UNPKG

wonder.js

Version:
42 lines (38 loc) 2.8 kB
'use strict'; var BufferService$Wonderjs = require("../../../../../primitive/buffer/BufferService.js"); var IndexComponentService$Wonderjs = require("../../../../../primitive/component/IndexComponentService.js"); var IndexSourceTextureMainService$Wonderjs = require("../IndexSourceTextureMainService.js"); var BufferArrayBufferViewSourceTextureMainService$Wonderjs = require("./BufferArrayBufferViewSourceTextureMainService.js"); var RecordArrayBufferViewSourceTextureMainService$Wonderjs = require("./RecordArrayBufferViewSourceTextureMainService.js"); function create(state) { var arrayBufferViewSourceTextureRecord = RecordArrayBufferViewSourceTextureMainService$Wonderjs.getRecord(state); var match = IndexComponentService$Wonderjs.generateIndex(arrayBufferViewSourceTextureRecord[/* index */0], arrayBufferViewSourceTextureRecord[/* disposedIndexArray */13]); var index = IndexSourceTextureMainService$Wonderjs.generateArrayBufferViewSourceTextureIndex(match[0], state); state[/* arrayBufferViewSourceTextureRecord */19] = /* record */[ /* index */match[1], /* wrapSs */arrayBufferViewSourceTextureRecord[/* wrapSs */1], /* wrapTs */arrayBufferViewSourceTextureRecord[/* wrapTs */2], /* magFilters */arrayBufferViewSourceTextureRecord[/* magFilters */3], /* minFilters */arrayBufferViewSourceTextureRecord[/* minFilters */4], /* formats */arrayBufferViewSourceTextureRecord[/* formats */5], /* types */arrayBufferViewSourceTextureRecord[/* types */6], /* isNeedUpdates */arrayBufferViewSourceTextureRecord[/* isNeedUpdates */7], /* flipYs */arrayBufferViewSourceTextureRecord[/* flipYs */8], /* widths */arrayBufferViewSourceTextureRecord[/* widths */9], /* heights */arrayBufferViewSourceTextureRecord[/* heights */10], /* sourceMap */arrayBufferViewSourceTextureRecord[/* sourceMap */11], /* glTextureMap */arrayBufferViewSourceTextureRecord[/* glTextureMap */12], /* disposedIndexArray */arrayBufferViewSourceTextureRecord[/* disposedIndexArray */13], /* needAddedSourceArray */arrayBufferViewSourceTextureRecord[/* needAddedSourceArray */14], /* needInitedTextureIndexArray */arrayBufferViewSourceTextureRecord[/* needInitedTextureIndexArray */15], /* needDisposedTextureIndexArray */arrayBufferViewSourceTextureRecord[/* needDisposedTextureIndexArray */16], /* nameMap */arrayBufferViewSourceTextureRecord[/* nameMap */17], /* materialsMap */arrayBufferViewSourceTextureRecord[/* materialsMap */18] ]; return BufferService$Wonderjs.checkNotExceedMaxCount(BufferArrayBufferViewSourceTextureMainService$Wonderjs.getMaxArrayBufferViewSourceTextureIndex(state), /* tuple */[ state, index ]); } exports.create = create; /* BufferService-Wonderjs Not a pure module */