@luma.gl/webgl
Advanced tools
Comparing version 9.1.0-alpha.14 to 9.1.0-alpha.15
@@ -1,3 +0,3 @@ | ||
import type { FramebufferProps, TextureFormat } from '@luma.gl/core'; | ||
import { Framebuffer, Texture } from '@luma.gl/core'; | ||
import type { FramebufferProps } from '@luma.gl/core'; | ||
import { Framebuffer } from '@luma.gl/core'; | ||
import { GL } from '@luma.gl/constants'; | ||
@@ -20,3 +20,2 @@ import { WebGLDevice } from "../webgl-device.js"; | ||
/** In WebGL we must use renderbuffers for depth/stencil attachments (unless we have extensions) */ | ||
protected createDepthStencilTexture(format: TextureFormat): Texture; | ||
/** | ||
@@ -23,0 +22,0 @@ * @param attachment |
@@ -6,3 +6,2 @@ // luma.gl | ||
import { GL } from '@luma.gl/constants'; | ||
import { WEBGLTexture } from "./webgl-texture.js"; | ||
import { getDepthStencilAttachmentWebGL } from "../converters/texture-formats.js"; | ||
@@ -68,12 +67,12 @@ /** luma.gl Framebuffer, WebGL implementation */ | ||
/** In WebGL we must use renderbuffers for depth/stencil attachments (unless we have extensions) */ | ||
createDepthStencilTexture(format) { | ||
// return new WEBGLRenderbuffer(this.device, { | ||
return new WEBGLTexture(this.device, { | ||
id: `${this.id}-depth-stencil`, | ||
format, | ||
width: this.width, | ||
height: this.height, | ||
mipmaps: false | ||
}); | ||
} | ||
// protected override createDepthStencilTexture(format: TextureFormat): Texture { | ||
// // return new WEBGLRenderbuffer(this.device, { | ||
// return new WEBGLTexture(this.device, { | ||
// id: `${this.id}-depth-stencil`, | ||
// format, | ||
// width: this.width, | ||
// height: this.height, | ||
// mipmaps: false | ||
// }); | ||
// } | ||
/** | ||
@@ -80,0 +79,0 @@ * @param attachment |
{ | ||
"name": "@luma.gl/webgl", | ||
"version": "9.1.0-alpha.14", | ||
"version": "9.1.0-alpha.15", | ||
"description": "WebGL2 adapter for the luma.gl core API", | ||
@@ -43,10 +43,10 @@ "type": "module", | ||
"peerDependencies": { | ||
"@luma.gl/core": "9.1.0-alpha.10" | ||
"@luma.gl/core": "9.1.0-alpha.14" | ||
}, | ||
"dependencies": { | ||
"@luma.gl/constants": "9.1.0-alpha.14", | ||
"@luma.gl/constants": "9.1.0-alpha.15", | ||
"@math.gl/types": "4.1.0-alpha.3", | ||
"@probe.gl/env": "^4.0.8" | ||
}, | ||
"gitHead": "e6e014efa323dbcd7d3774e982e442b1bf2c93be" | ||
"gitHead": "41af576ca655cb749a5567cf903f9e9242793c77" | ||
} |
@@ -5,4 +5,4 @@ // luma.gl | ||
import type {FramebufferProps, TextureFormat} from '@luma.gl/core'; | ||
import {Framebuffer, Texture} from '@luma.gl/core'; | ||
import type {FramebufferProps} from '@luma.gl/core'; | ||
import {Framebuffer} from '@luma.gl/core'; | ||
import {GL} from '@luma.gl/constants'; | ||
@@ -95,12 +95,12 @@ import {WebGLDevice} from '../webgl-device'; | ||
/** In WebGL we must use renderbuffers for depth/stencil attachments (unless we have extensions) */ | ||
protected override createDepthStencilTexture(format: TextureFormat): Texture { | ||
// return new WEBGLRenderbuffer(this.device, { | ||
return new WEBGLTexture(this.device, { | ||
id: `${this.id}-depth-stencil`, | ||
format, | ||
width: this.width, | ||
height: this.height, | ||
mipmaps: false | ||
}); | ||
} | ||
// protected override createDepthStencilTexture(format: TextureFormat): Texture { | ||
// // return new WEBGLRenderbuffer(this.device, { | ||
// return new WEBGLTexture(this.device, { | ||
// id: `${this.id}-depth-stencil`, | ||
// format, | ||
// width: this.width, | ||
// height: this.height, | ||
// mipmaps: false | ||
// }); | ||
// } | ||
@@ -107,0 +107,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1873961
+ Added@luma.gl/constants@9.1.0-alpha.15(transitive)
+ Added@luma.gl/core@9.1.0-alpha.14(transitive)
- Removed@luma.gl/constants@9.1.0-alpha.14(transitive)
- Removed@luma.gl/core@9.1.0-alpha.10(transitive)
- Removed@math.gl/types@4.1.0(transitive)