Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
04632c06
Commit
04632c06
authored
Nov 01, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler_43/tests: Make some variables unsigned.
parent
d3dd1864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
hlsl.c
dlls/d3dcompiler_43/tests/hlsl.c
+5
-6
No files found.
dlls/d3dcompiler_43/tests/hlsl.c
View file @
04632c06
...
@@ -31,9 +31,7 @@ struct vertex
...
@@ -31,9 +31,7 @@ struct vertex
/* Tells compute_shader_probe* which pixels should be what colors */
/* Tells compute_shader_probe* which pixels should be what colors */
struct
hlsl_probe_info
struct
hlsl_probe_info
{
{
/* The x and y coordinate of the point to check.
unsigned
int
x
,
y
;
When x < 0, this is the last probe */
int
x
,
y
;
/* The expected values in this region */
/* The expected values in this region */
D3DXCOLOR
c
;
D3DXCOLOR
c
;
/* The max error for any value */
/* The max error for any value */
...
@@ -215,7 +213,7 @@ static void draw_quad_with_shader9(IDirect3DDevice9 *device, IDirect3DVertexBuff
...
@@ -215,7 +213,7 @@ static void draw_quad_with_shader9(IDirect3DDevice9 *device, IDirect3DVertexBuff
}
}
static
void
setup_device9
(
IDirect3DDevice9
*
device
,
IDirect3DSurface9
**
render_target
,
static
void
setup_device9
(
IDirect3DDevice9
*
device
,
IDirect3DSurface9
**
render_target
,
IDirect3DSurface9
**
readback
,
D3DFORMAT
format
,
int
width
,
int
height
,
IDirect3DSurface9
**
readback
,
D3DFORMAT
format
,
unsigned
int
width
,
unsigned
int
height
,
IDirect3DVertexShader9
*
vshader
,
IDirect3DPixelShader9
*
pshader
)
IDirect3DVertexShader9
*
vshader
,
IDirect3DPixelShader9
*
pshader
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -248,7 +246,8 @@ static int colors_match(D3DXCOLOR a, D3DXCOLOR b, float epsilon)
...
@@ -248,7 +246,8 @@ static int colors_match(D3DXCOLOR a, D3DXCOLOR b, float epsilon)
to see if they are as expected. */
to see if they are as expected. */
static
void
compute_shader_probe9
(
IDirect3DDevice9
*
device
,
IDirect3DVertexShader9
*
vshader
,
static
void
compute_shader_probe9
(
IDirect3DDevice9
*
device
,
IDirect3DVertexShader9
*
vshader
,
IDirect3DPixelShader9
*
pshader
,
IDirect3DVertexBuffer9
*
quad_geometry
,
IDirect3DPixelShader9
*
pshader
,
IDirect3DVertexBuffer9
*
quad_geometry
,
const
struct
hlsl_probe_info
*
probes
,
int
count
,
int
width
,
int
height
,
int
line_number
)
const
struct
hlsl_probe_info
*
probes
,
unsigned
int
count
,
unsigned
int
width
,
unsigned
int
height
,
unsigned
int
line_number
)
{
{
IDirect3DSurface9
*
render_target
;
IDirect3DSurface9
*
render_target
;
IDirect3DSurface9
*
readback
;
IDirect3DSurface9
*
readback
;
...
@@ -256,7 +255,7 @@ static void compute_shader_probe9(IDirect3DDevice9 *device, IDirect3DVertexShade
...
@@ -256,7 +255,7 @@ static void compute_shader_probe9(IDirect3DDevice9 *device, IDirect3DVertexShade
HRESULT
hr
;
HRESULT
hr
;
D3DLOCKED_RECT
lr
;
D3DLOCKED_RECT
lr
;
D3DXCOLOR
*
pbits_data
;
D3DXCOLOR
*
pbits_data
;
int
i
;
unsigned
int
i
;
setup_device9
(
device
,
&
render_target
,
&
readback
,
D3DFMT_A32B32G32R32F
,
setup_device9
(
device
,
&
render_target
,
&
readback
,
D3DFMT_A32B32G32R32F
,
width
,
height
,
vshader
,
pshader
);
width
,
height
,
vshader
,
pshader
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment