Repository navigation
Replies: 1 comment
|
Actually i found how to to it basically just with Texture. I was a bit confused with the documentation found here https://luma.gl/docs/api-reference/core/resources/texture/ that let me think to use the commandEncoder to send my buffer to a texture. But it's not the right way to do it. device.createTexture({
sampler: {
addressModeU: 'clamp-to-edge',
addressModeV: 'clamp-to-edge',
minFilter: "nearest",
magFilter: "nearest"
},
format: 'r16uint',
height: 256,
width: 256,
data: uint16Array
})The minFilter and magFilter attributes are really important here otherwise i got a black screen. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It would be really great to add support for other kind of basic color texture. I have multiple usecases where i receive data in 16 bytes format and I didn't find a way to create a r16uint texture because as soon as i use the commandEncoder to call copyBufferToTexture i get a Not Implemented error. Is there any hope that you could add support for this feature ?
Thank you guys.
All reactions