Mercurial > games > semicongine
comparison tests/test_vulkan_wrapper.nim @ 795:4a15d94d9418
fix: remaining tests and an issue with updating uniforms
| author | Sam <sam@basx.dev> |
|---|---|
| date | Mon, 04 Sep 2023 00:48:00 +0700 |
| parents | d65b62812d34 |
| children | b83b3a1ccb05 |
comparison
equal
deleted
inserted
replaced
| 794:59c54c4486c4 | 795:4a15d94d9418 |
|---|---|
| 167 intermediates=[ | 167 intermediates=[ |
| 168 attr[Vec4f]("outcolor"), | 168 attr[Vec4f]("outcolor"), |
| 169 ], | 169 ], |
| 170 outputs=[attr[Vec4f]("color")], | 170 outputs=[attr[Vec4f]("color")], |
| 171 samplers=[ | 171 samplers=[ |
| 172 attr[Sampler2DType]("my_little_texture") | 172 attr[Texture]("my_little_texture") |
| 173 ], | 173 ], |
| 174 vertexCode="""gl_Position = vec4(position, 1.0) * transform; outcolor = color;""", | 174 vertexCode="""gl_Position = vec4(position, 1.0) * transform; outcolor = color;""", |
| 175 fragmentCode="color = texture(my_little_texture, outcolor.xy) * 0.5 + outcolor * 0.5;", | 175 fragmentCode="color = texture(my_little_texture, outcolor.xy) * 0.5 + outcolor * 0.5;", |
| 176 ) | 176 ) |
| 177 shaderConfiguration2 = createShaderConfiguration( | 177 shaderConfiguration2 = createShaderConfiguration( |
