tests: Pass HLSL source to the draw_quad() function.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2022-01-26 19:40:31 -06:00
committed by Alexandre Julliard
parent 33c845ece5
commit 3994cec7b1
3 changed files with 15 additions and 16 deletions

View File

@@ -66,7 +66,7 @@ struct shader_context
{
const struct shader_runner_ops *ops;
ID3D10Blob *ps_code;
char *ps_source;
enum shader_model minimum_shader_model;
uint32_t *uniforms;
@@ -81,7 +81,6 @@ struct shader_context
struct shader_runner_ops
{
ID3D10Blob *(*compile_shader)(struct shader_context *context, const char *source, enum shader_model minimum_shader_model);
struct texture *(*create_texture)(struct shader_context *context, const struct texture_params *params);
void (*destroy_texture)(struct shader_context *context, struct texture *texture);
void (*draw_quad)(struct shader_context *context);