gl-texture2d
Advanced tools
Comparing version 0.0.3 to 0.1.0
{ | ||
"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
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
17041
5
302
+ Addedcwise@0.3.4(transitive)
+ Addedcwise-compiler@0.0.0(transitive)
+ Addedcwise-parser@0.0.1(transitive)
+ Addediota-array@1.0.0(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedndarray@1.0.19(transitive)
+ Addedndarray-ops@1.1.1(transitive)
+ Addeduniq@0.0.2(transitive)
- Removedcwise@0.1.2(transitive)
- Removedfalafel@0.1.6(transitive)
- Removedndarray@0.2.4(transitive)
- Removedndarray-ops@0.1.3(transitive)
Updatedcwise@~0.3.2
Updatedndarray@~1.0.0
Updatedndarray-ops@~1.1.0