diff semiconginev2/gltf.nim @ 1252:01e9f41d35b1

add:support for push constants
author sam <sam@basx.dev>
date Fri, 26 Jul 2024 23:04:01 +0700
parents 3f98ad20a9d3
children c4f98eb4bb05
line wrap: on
line diff
--- a/semiconginev2/gltf.nim	Fri Jul 26 20:34:02 2024 +0700
+++ b/semiconginev2/gltf.nim	Fri Jul 26 23:04:01 2024 +0700
@@ -145,7 +145,7 @@
   assert imageType == "image/png", "glTF loader currently only supports PNG"
 
   let bufferView = root["bufferViews"][root["images"][imageIndex]["bufferView"].getInt()]
-  result = LoadImage[BGRA](getBufferViewData(bufferView, mainBuffer))
+  result = LoadImageData[BGRA](getBufferViewData(bufferView, mainBuffer))
 
   if textureNode.hasKey("sampler"):
     let sampler = root["samplers"][textureNode["sampler"].getInt()]