MCPcopy Create free account
hub / github.com/microsoft/SandDance / checkFloat32ColorAttachment

Function checkFloat32ColorAttachment

docs/app/js/sanddance-app.js:64006–64021  ·  view source on GitHub ↗
(gl)

Source from the content-addressed store, hash-verified

64004 GLSL_TEXTURE_LOD: "GLSL_TEXTURE_LOD"
64005};
64006function checkFloat32ColorAttachment(gl) {
64007 var testTexture = new (0, _texture2DDefault.default)(gl, {
64008 format: 6408,
64009 type: 5126,
64010 dataFormat: 6408
64011 });
64012 var testFb = new (0, _framebufferDefault.default)(gl, {
64013 id: "test-framebuffer",
64014 check: false,
64015 attachments: (0, _definePropertyDefault.default)({}, 36064, testTexture)
64016 });
64017 var status = testFb.getStatus();
64018 testTexture["delete"]();
64019 testFb["delete"]();
64020 return status === 36053;
64021}
64022exports.default = (_FEATURES$WEBGL2$FEAT = {}, (0, _definePropertyDefault.default)(_FEATURES$WEBGL2$FEAT, FEATURES.WEBGL2, [
64023 false,
64024 true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected