Mercurial > games > semicongine
comparison tests/test_vulkan_wrapper.nim @ 837:0d46e6638bd6
fix: all tests
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 26 Nov 2023 19:53:00 +0700 |
parents | 388c4b35a6e3 |
children | eaf084ba80e5 |
comparison
equal
deleted
inserted
replaced
836:3a61608f5206 | 837:0d46e6638bd6 |
---|---|
21 R, R, W, R, R, | 21 R, R, W, R, R, |
22 R, R, R, R, R, | 22 R, R, R, R, R, |
23 ]), sampler: sampler)]) | 23 ]), sampler: sampler)]) |
24 }.toTable | 24 }.toTable |
25 ) | 25 ) |
26 mat2 = SINGLE_TEXTURE_MATERIAL.initMaterialData( | 26 Mat2Type = MaterialType( |
27 name: "single texture material 2", | |
28 meshAttributes: { | |
29 "position": Vec3F32, | |
30 "uv": Vec2F32, | |
31 }.toTable, | |
32 attributes: {"baseTexture": TextureType}.toTable | |
33 ) | |
34 mat2 = Mat2Type.initMaterialData( | |
27 name="mat2", | 35 name="mat2", |
28 attributes={ | 36 attributes={ |
29 "baseTexture": initDataList(@[Texture(image: Image(width: 5, height: 5, imagedata: @[ | 37 "baseTexture": initDataList(@[Texture(image: Image(width: 5, height: 5, imagedata: @[ |
30 R, W, R, W, R, | 38 R, W, R, W, R, |
31 W, R, W, R, W, | 39 W, R, W, R, W, |
197 fragmentCode="color = outcolor;", | 205 fragmentCode="color = outcolor;", |
198 ) | 206 ) |
199 engine.initRenderer({ | 207 engine.initRenderer({ |
200 SINGLE_TEXTURE_MATERIAL: shaderConfiguration1, | 208 SINGLE_TEXTURE_MATERIAL: shaderConfiguration1, |
201 SINGLE_TEXTURE_MATERIAL: shaderConfiguration1, | 209 SINGLE_TEXTURE_MATERIAL: shaderConfiguration1, |
210 Mat2Type: shaderConfiguration1, | |
202 SINGLE_COLOR_MATERIAL: shaderConfiguration2, | 211 SINGLE_COLOR_MATERIAL: shaderConfiguration2, |
203 }) | 212 }) |
204 | 213 |
205 # INIT SCENES | 214 # INIT SCENES |
206 var scenes = [ | 215 var scenes = [ |