diff semicongine/vulkan/shader.nim @ 1139:114f395b9144

did: finish refactoring and updated all tests accordingly
author sam <sam@basx.dev>
date Sat, 08 Jun 2024 14:58:25 +0700
parents 02e1d2658ff5
children
line wrap: on
line diff
--- a/semicongine/vulkan/shader.nim	Tue Jun 04 22:08:48 2024 +0700
+++ b/semicongine/vulkan/shader.nim	Sat Jun 08 14:58:25 2024 +0700
@@ -151,7 +151,7 @@
   device: Device,
   shaderConfiguration: ShaderConfiguration,
 ): (ShaderModule, ShaderModule) =
-  assert device.vk.valid
+  assert device.vk.Valid
   assert len(shaderConfiguration.vertexBinary) > 0
   assert len(shaderConfiguration.fragmentBinary) > 0
 
@@ -219,7 +219,7 @@
   )
 
 proc Destroy*(shader: var ShaderModule) =
-  assert shader.device.vk.valid
-  assert shader.vk.valid
+  assert shader.device.vk.Valid
+  assert shader.vk.Valid
   shader.device.vk.vkDestroyShaderModule(shader.vk, nil)
-  shader.vk.reset
+  shader.vk.Reset