Mercurial > games > semicongine
comparison tests/test_vulkan_wrapper.nim @ 334:2533f524bdb6
fix: remaining tests and an issue with updating uniforms
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 04 Sep 2023 00:48:00 +0700 |
parents | 05fb85ba97dd |
children | b83b3a1ccb05 |
comparison
equal
deleted
inserted
replaced
333:27aaf43e18b4 | 334:2533f524bdb6 |
---|---|
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( |