vkd3d-shader: Use uint32 for immediate constants
DWORD and uint32_t are different types on Windows. Fixes warnings. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
77679e8b32
commit
19c910904b
|
@ -42,7 +42,7 @@ static void vkd3d_shader_dump_blob(const char *path, const char *prefix, const v
|
|||
|
||||
void vkd3d_shader_dump_shader(enum vkd3d_shader_type type, const struct vkd3d_shader_code *shader)
|
||||
{
|
||||
static int shader_id = 0;
|
||||
static LONG shader_id = 0;
|
||||
static bool enabled = true;
|
||||
const char *path;
|
||||
|
||||
|
@ -61,7 +61,7 @@ void vkd3d_shader_dump_shader(enum vkd3d_shader_type type, const struct vkd3d_sh
|
|||
|
||||
void vkd3d_shader_dump_spirv_shader(enum vkd3d_shader_type type, const struct vkd3d_shader_code *shader)
|
||||
{
|
||||
static int shader_id = 0;
|
||||
static LONG shader_id = 0;
|
||||
static bool enabled = true;
|
||||
const char *path;
|
||||
|
||||
|
|
|
@ -559,7 +559,7 @@ struct vkd3d_shader_version
|
|||
struct vkd3d_shader_immediate_constant_buffer
|
||||
{
|
||||
unsigned int vec4_count;
|
||||
DWORD data[MAX_IMMEDIATE_CONSTANT_BUFFER_SIZE];
|
||||
uint32_t data[MAX_IMMEDIATE_CONSTANT_BUFFER_SIZE];
|
||||
};
|
||||
|
||||
struct vkd3d_shader_indexable_temp
|
||||
|
@ -585,7 +585,7 @@ struct vkd3d_shader_register
|
|||
enum vkd3d_immconst_type immconst_type;
|
||||
union
|
||||
{
|
||||
DWORD immconst_uint[VKD3D_VEC4_SIZE];
|
||||
uint32_t immconst_uint[VKD3D_VEC4_SIZE];
|
||||
float immconst_float[VKD3D_VEC4_SIZE];
|
||||
unsigned fp_body_idx;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue