MCPcopy
hub / github.com/CesiumGS/cesium / createTexture

Function createTexture

packages/engine/Source/Scene/BatchTexture.js:436–450  ·  view source on GitHub ↗
(batchTexture, context, bytes)

Source from the content-addressed store, hash-verified

434};
435
436function createTexture(batchTexture, context, bytes) {
437 const dimensions = batchTexture._textureDimensions;
438 return new Texture({
439 context: context,
440 pixelFormat: PixelFormat.RGBA,
441 pixelDatatype: PixelDatatype.UNSIGNED_BYTE,
442 source: {
443 width: dimensions.x,
444 height: dimensions.y,
445 arrayBufferView: bytes,
446 },
447 flipY: false,
448 sampler: Sampler.NEAREST,
449 });
450}
451
452function createPickTexture(batchTexture, context) {
453 const featuresLength = batchTexture._featuresLength;

Callers 2

createPickTextureFunction · 0.70
BatchTexture.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…