Transcoder
Converts vertex attribute data into tightly packed floats: useful for 3-component formats not every backend supports (the Vulkan minspec includes float3 but not short3).
val transcode = Transcoder(Transcoder.Config(ComponentType.BYTE, normalized = true, componentCount = 3))
transcode(output, input, count)Content copied to clipboard
Signed normalized data follows Vulkan and OpenGL ES 3.0+: a byte of -127 maps exactly to -1.