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
bddc4d3f
Commit
bddc4d3f
authored
Jul 09, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reuse the shader buffer between shaders.
parent
def8d4f4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
baseshader.c
dlls/wined3d/baseshader.c
+7
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+0
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/baseshader.c
View file @
bddc4d3f
...
...
@@ -138,15 +138,20 @@ const struct wined3d_shader_frontend *shader_select_frontend(DWORD version_token
}
}
void
shader_buffer_
init
(
struct
SHADER_BUFFER
*
buffer
)
void
shader_buffer_
clear
(
struct
SHADER_BUFFER
*
buffer
)
{
buffer
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
SHADER_PGMSIZE
);
buffer
->
buffer
[
0
]
=
'\0'
;
buffer
->
bsize
=
0
;
buffer
->
lineNo
=
0
;
buffer
->
newline
=
TRUE
;
}
void
shader_buffer_init
(
struct
SHADER_BUFFER
*
buffer
)
{
buffer
->
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
SHADER_PGMSIZE
);
shader_buffer_clear
(
buffer
);
}
void
shader_buffer_free
(
struct
SHADER_BUFFER
*
buffer
)
{
HeapFree
(
GetProcessHeap
(),
0
,
buffer
->
buffer
);
...
...
dlls/wined3d/glsl_shader.c
View file @
bddc4d3f
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
bddc4d3f
...
...
@@ -2601,6 +2601,7 @@ typedef struct IWineD3DBaseShaderImpl {
IWineD3DBaseShaderClass
baseShader
;
}
IWineD3DBaseShaderImpl
;
void
shader_buffer_clear
(
struct
SHADER_BUFFER
*
buffer
);
void
shader_buffer_init
(
struct
SHADER_BUFFER
*
buffer
);
void
shader_buffer_free
(
struct
SHADER_BUFFER
*
buffer
);
void
shader_cleanup
(
IWineD3DBaseShader
*
iface
);
...
...
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