Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d3dd1864
Commit
d3dd1864
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 probe info const.
parent
e35b6aa1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
hlsl.c
dlls/d3dcompiler_43/tests/hlsl.c
+7
-7
No files found.
dlls/d3dcompiler_43/tests/hlsl.c
View file @
d3dd1864
...
...
@@ -248,7 +248,7 @@ static int colors_match(D3DXCOLOR a, D3DXCOLOR b, float epsilon)
to see if they are as expected. */
static
void
compute_shader_probe9
(
IDirect3DDevice9
*
device
,
IDirect3DVertexShader9
*
vshader
,
IDirect3DPixelShader9
*
pshader
,
IDirect3DVertexBuffer9
*
quad_geometry
,
struct
hlsl_probe_info
*
probes
,
int
count
,
int
width
,
int
height
,
int
line_number
)
const
struct
hlsl_probe_info
*
probes
,
int
count
,
int
width
,
int
height
,
int
line_number
)
{
IDirect3DSurface9
*
render_target
;
IDirect3DSurface9
*
readback
;
...
...
@@ -296,7 +296,7 @@ static void compute_shader_probe9(IDirect3DDevice9 *device, IDirect3DVertexShade
static
void
test_swizzle
(
IDirect3DDevice9
*
device
,
IDirect3DVertexBuffer9
*
quad_geometry
,
IDirect3DVertexShader9
*
vshader_passthru
)
{
static
struct
hlsl_probe_info
swizzle_test_probes
[]
=
static
const
struct
hlsl_probe_info
swizzle_test_probes
[]
=
{
{
0
,
0
,
{
0
.
0101
f
,
0
.
0303
f
,
0
.
0202
f
,
0
.
0404
f
},
0
.
0001
f
,
"swizzle_test failed"
}
};
...
...
@@ -333,7 +333,7 @@ static void test_math(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *quad_geo
/* Tests order of operations */
static
const
float
u
=
2
.
5
f
,
v
=
0
.
3
f
,
w
=
0
.
2
f
,
x
=
0
.
7
f
,
y
=
0
.
1
f
,
z
=
1
.
5
f
;
static
struct
hlsl_probe_info
order_of_operations_probes
[]
=
static
const
struct
hlsl_probe_info
order_of_operations_probes
[]
=
{
{
0
,
0
,
{
-
12
.
4300
f
,
9
.
8333
f
,
1
.
6000
f
,
34
.
9999
f
},
0
.
0001
f
,
"order of operations test failed"
}
...
...
@@ -373,7 +373,7 @@ static void test_math(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *quad_geo
static
void
test_conditionals
(
IDirect3DDevice9
*
device
,
IDirect3DVertexBuffer9
*
quad_geometry
,
IDirect3DVertexShader9
*
vshader_passthru
)
{
static
struct
hlsl_probe_info
if_greater_probes
[]
=
static
const
struct
hlsl_probe_info
if_greater_probes
[]
=
{
{
0
,
0
,
{
0
.
9
f
,
0
.
8
f
,
0
.
7
f
,
0
.
6
f
},
0
.
0001
f
,
"if greater test failed"
},
{
5
,
0
,
{
0
.
9
f
,
0
.
8
f
,
0
.
7
f
,
0
.
6
f
},
0
.
0001
f
,
"if greater test failed"
},
...
...
@@ -392,7 +392,7 @@ static void test_conditionals(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *
return float4(0.9, 0.8, 0.7, 0.6); \
}"
;
static
struct
hlsl_probe_info
ternary_operator_probes
[]
=
static
const
struct
hlsl_probe_info
ternary_operator_probes
[]
=
{
{
0
,
0
,
{
0
.
50
f
,
0
.
25
f
,
0
.
50
f
,
0
.
75
f
},
0
.
00001
f
,
"ternary operator test failed"
},
{
1
,
0
,
{
0
.
50
f
,
0
.
25
f
,
0
.
50
f
,
0
.
75
f
},
0
.
00001
f
,
"ternary operator test failed"
},
...
...
@@ -437,7 +437,7 @@ static void test_conditionals(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *
static
void
test_float_vectors
(
IDirect3DDevice9
*
device
,
IDirect3DVertexBuffer9
*
quad_geometry
,
IDirect3DVertexShader9
*
vshader_passthru
)
{
static
struct
hlsl_probe_info
vec4_indexing_test1_probes
[]
=
static
const
struct
hlsl_probe_info
vec4_indexing_test1_probes
[]
=
{
{
0
,
0
,
{
0
.
020
f
,
0
.
245
f
,
0
.
351
f
,
1
.
000
f
},
0
.
0001
f
,
"vec4 indexing test 1 failed"
}
};
...
...
@@ -453,7 +453,7 @@ static void test_float_vectors(IDirect3DDevice9 *device, IDirect3DVertexBuffer9
return color; \
}"
;
static
struct
hlsl_probe_info
vec4_indexing_test2_probes
[]
=
static
const
struct
hlsl_probe_info
vec4_indexing_test2_probes
[]
=
{
{
0
,
0
,
{
0
.
5
f
,
0
.
3
f
,
0
.
8
f
,
0
.
2
f
},
0
.
0001
f
,
"vec4 indexing test 2 failed"
}
};
...
...
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