Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-texture2d

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-texture2d - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

10

package.json
{
"name": "gl-texture2d",
"version": "0.0.3",
"version": "0.1.0",
"description": "WebGL texture wrapper",

@@ -32,11 +32,11 @@ "main": "texture.js",

"gl-shader": "0.0.0",
"lena": "~0.1.2"
"lena": "~1.0.0"
},
"dependencies": {
"webglew": "0.0.0",
"ndarray": "~0.2.4",
"ndarray": "~1.0.0",
"typedarray-pool": "~0.1.1",
"ndarray-ops": "~0.1.3",
"cwise": "~0.1.2"
"ndarray-ops": "~1.1.0",
"cwise": "~0.3.2"
}
}

@@ -126,3 +126,3 @@ "use strict"

function texSubImageArray(gl, x_off, y_off, mip_level, cformat, ctype, array) {
var dtype = ndarray.dtype(array)
var dtype = array.dtype || ndarray.dtype(array)
var shape = array.shape

@@ -236,3 +236,3 @@ var packed = isPacked(array)

function createTextureArray(gl, array) {
var dtype = ndarray.dtype(array)
var dtype = array.dtype || ndarray.dtype(array)
var shape = array.shape

@@ -284,3 +284,3 @@ var packed = isPacked(array)

buf_store = pool.malloc(sz, dtype)
var buf_array = ndarray.ctor(buf_store, array.shape, stride, 0)
var buf_array = ndarray(buf_store, array.shape, stride, 0)
if((dtype === "float32" || dtype === "float64") && type === gl.UNSIGNED_BYTE) {

@@ -287,0 +287,0 @@ convertFloatToUint8(buf_array, array)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc