gl-to-dtype:将 gl 类型转换为 dtype 字符串

时间:2021-06-03 22:58:50
【文件属性】:
文件名称:gl-to-dtype:将 gl 类型转换为 dtype 字符串
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-03 22:58:50
JavaScript gl-to-dtype 将 WebGL 常量转换为字符串。 var asDtype = require ( 'gl-to-dtype' ) var dtype = require ( 'dtype' ) var glType = gl . FLOAT var type = asDtype ( glType ) var array = new ( dtype ( type ) ) ( 16 ) 转换以下内容: gl . FLOAT - > 'float32' gl . UNSIGNED_INT - > 'uint32' gl . INT - > 'int32' gl . UNSIGNED_SHORT - > 'uint16' gl . SHORT - > 'int16' gl . UNSIGNED_BYTE - >
【文件预览】:
gl-to-dtype-master
----.gitignore(56B)
----package.json(832B)
----LICENSE.md(1KB)
----index.js(632B)
----test.js(762B)
----README.md(1KB)
----.npmignore(96B)

网友评论