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
47ffd7ae
Commit
47ffd7ae
authored
Dec 14, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make some data const.
parent
c9842d2c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
11 deletions
+11
-11
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+2
-2
baseshader.c
dlls/wined3d/baseshader.c
+1
-1
drawprim.c
dlls/wined3d/drawprim.c
+1
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+2
-2
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
47ffd7ae
...
...
@@ -187,7 +187,7 @@ void shader_generate_arb_declarations(
max_constantsF
,
max_constantsF
-
1
);
}
static
const
char
*
shift_tab
[]
=
{
static
const
char
*
const
shift_tab
[]
=
{
"dummy"
,
/* 0 (none) */
"coefmul.x"
,
/* 1 (x2) */
"coefmul.y"
,
/* 2 (x4) */
...
...
@@ -361,7 +361,7 @@ static void vshader_program_add_param(SHADER_OPCODE_ARG *arg, const DWORD param,
IWineD3DVertexShaderImpl
*
This
=
(
IWineD3DVertexShaderImpl
*
)
arg
->
shader
;
/* oPos, oFog and oPts in D3D */
static
const
char
*
hwrastout_reg_names
[]
=
{
"TMP_OUT"
,
"TMP_FOG"
,
"result.pointsize"
};
static
const
char
*
const
hwrastout_reg_names
[]
=
{
"TMP_OUT"
,
"TMP_FOG"
,
"result.pointsize"
};
DWORD
reg
=
param
&
WINED3DSP_REGNUM_MASK
;
DWORD
regtype
=
shader_get_regtype
(
param
);
...
...
dlls/wined3d/baseshader.c
View file @
47ffd7ae
...
...
@@ -502,7 +502,7 @@ void shader_dump_param(
int
input
)
{
IWineD3DBaseShaderImpl
*
This
=
(
IWineD3DBaseShaderImpl
*
)
iface
;
static
const
char
*
rastout_reg_names
[]
=
{
"oPos"
,
"oFog"
,
"oPts"
};
static
const
char
*
const
rastout_reg_names
[]
=
{
"oPos"
,
"oFog"
,
"oPts"
};
char
swizzle_reg_chars
[
4
];
DWORD
reg
=
param
&
WINED3DSP_REGNUM_MASK
;
...
...
dlls/wined3d/drawprim.c
View file @
47ffd7ae
...
...
@@ -149,7 +149,7 @@ static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) {
}
static
GLfloat
invymat
[
16
]
=
{
static
const
GLfloat
invymat
[
16
]
=
{
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
-
1
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
...
...
dlls/wined3d/glsl_shader.c
View file @
47ffd7ae
...
...
@@ -481,7 +481,7 @@ static void shader_glsl_add_param(
char
*
out_str
);
/** Used for opcode modifiers - They multiply the result by the specified amount */
static
const
char
*
shift_glsl_tab
[]
=
{
static
const
char
*
const
shift_glsl_tab
[]
=
{
""
,
/* 0 (none) */
"2.0 * "
,
/* 1 (x2) */
"4.0 * "
,
/* 2 (x4) */
...
...
@@ -596,7 +596,7 @@ static void shader_glsl_get_register_name(
SHADER_OPCODE_ARG
*
arg
)
{
/* oPos, oFog and oPts in D3D */
const
char
*
hwrastout_reg_names
[]
=
{
"gl_Position"
,
"gl_FogFragCoord"
,
"gl_PointSize"
};
static
const
char
*
const
hwrastout_reg_names
[]
=
{
"gl_Position"
,
"gl_FogFragCoord"
,
"gl_PointSize"
};
DWORD
reg
=
param
&
WINED3DSP_REGNUM_MASK
;
DWORD
regtype
=
shader_get_regtype
(
param
);
...
...
dlls/wined3d/swapchain.c
View file @
47ffd7ae
...
...
@@ -564,7 +564,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_GetGammaRamp(IWineD3DSwapChain *ifac
}
IWineD3DSwapChainVtbl
IWineD3DSwapChain_Vtbl
=
const
IWineD3DSwapChainVtbl
IWineD3DSwapChain_Vtbl
=
{
/* IUnknown */
IWineD3DSwapChainImpl_QueryInterface
,
...
...
dlls/wined3d/vertexdeclaration.c
View file @
47ffd7ae
...
...
@@ -61,7 +61,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_decl);
/** Vertex Shader Declaration 8 data types tokens */
#define MAX_VSHADER_DECL_TYPES 8
static
CONST
char
*
VertexDecl8_DataTypes
[]
=
{
static
const
char
*
const
VertexDecl8_DataTypes
[]
=
{
"D3DVSDT_FLOAT1"
,
"D3DVSDT_FLOAT2"
,
"D3DVSDT_FLOAT3"
,
...
...
@@ -73,7 +73,7 @@ static CONST char* VertexDecl8_DataTypes[] = {
NULL
};
static
CONST
char
*
VertexDecl8_Registers
[]
=
{
static
const
char
*
const
VertexDecl8_Registers
[]
=
{
"D3DVSDE_POSITION"
,
"D3DVSDE_BLENDWEIGHT"
,
"D3DVSDE_BLENDINDICES"
,
...
...
dlls/wined3d/wined3d_private.h
View file @
47ffd7ae
...
...
@@ -1242,7 +1242,7 @@ typedef struct WineQueryOcclusionData {
typedef
struct
IWineD3DSwapChainImpl
{
/*IUnknown part*/
IWineD3DSwapChainVtbl
*
lpVtbl
;
const
IWineD3DSwapChainVtbl
*
lpVtbl
;
LONG
ref
;
/* Note: Ref counting not required */
IUnknown
*
parent
;
...
...
@@ -1271,7 +1271,7 @@ typedef struct IWineD3DSwapChainImpl
Drawable
drawable
;
}
IWineD3DSwapChainImpl
;
extern
IWineD3DSwapChainVtbl
IWineD3DSwapChain_Vtbl
;
extern
const
IWineD3DSwapChainVtbl
IWineD3DSwapChain_Vtbl
;
/*****************************************************************************
* Utility function prototypes
...
...
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