comparison tests/test_materials.nim @ 384:eaf084ba80e5

fix: cleanup when multiple textures use same vulkan image
author Sam <sam@basx.dev>
date Sun, 03 Dec 2023 00:05:38 +0700
parents fa38cd28f041
children ffc265916415
comparison
equal deleted inserted replaced
383:8e926856a9ce 384:eaf084ba80e5
14 RT, RT, RT, RT, RT, RT, RT, 14 RT, RT, RT, RT, RT, RT, RT,
15 ]) 15 ])
16 swiss = loadImage("flag.png") 16 swiss = loadImage("flag.png")
17 doubleTextureMaterial = MaterialType( 17 doubleTextureMaterial = MaterialType(
18 name:"Double texture", 18 name:"Double texture",
19 meshAttributes: { 19 vertexAttributes: {
20 "position": Vec3F32, 20 "position": Vec3F32,
21 "uv": Vec2F32, 21 "uv": Vec2F32,
22 }.toTable, 22 }.toTable,
23 attributes: {"tex1": TextureType, "tex2": TextureType}.toTable 23 attributes: {"tex1": TextureType, "tex2": TextureType}.toTable
24 ) 24 )