Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
40c72008
There was an error fetching the commit references. Please try again later.
Commit
40c72008
authored
10 years ago
by
Tony Wasserka
Browse files
Options
Downloads
Patches
Plain Diff
Pica/VertexShader: Coding style fixes.
parent
323a56f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/video_core/vertex_shader.cpp
+8
-16
8 additions, 16 deletions
src/video_core/vertex_shader.cpp
with
8 additions
and
16 deletions
src/video_core/vertex_shader.cpp
+
8
−
16
View file @
40c72008
...
...
@@ -39,38 +39,31 @@ static struct {
static
std
::
array
<
u32
,
1024
>
shader_memory
;
static
std
::
array
<
u32
,
1024
>
swizzle_data
;
void
SubmitShaderMemoryChange
(
u32
addr
,
u32
value
)
{
void
SubmitShaderMemoryChange
(
u32
addr
,
u32
value
)
{
shader_memory
[
addr
]
=
value
;
}
void
SubmitSwizzleDataChange
(
u32
addr
,
u32
value
)
{
void
SubmitSwizzleDataChange
(
u32
addr
,
u32
value
)
{
swizzle_data
[
addr
]
=
value
;
}
Math
::
Vec4
<
float24
>&
GetFloatUniform
(
u32
index
)
{
Math
::
Vec4
<
float24
>&
GetFloatUniform
(
u32
index
)
{
return
shader_uniforms
.
f
[
index
];
}
bool
&
GetBoolUniform
(
u32
index
)
{
bool
&
GetBoolUniform
(
u32
index
)
{
return
shader_uniforms
.
b
[
index
];
}
Math
::
Vec4
<
u8
>&
GetIntUniform
(
u32
index
)
{
Math
::
Vec4
<
u8
>&
GetIntUniform
(
u32
index
)
{
return
shader_uniforms
.
i
[
index
];
}
const
std
::
array
<
u32
,
1024
>&
GetShaderBinary
()
{
const
std
::
array
<
u32
,
1024
>&
GetShaderBinary
()
{
return
shader_memory
;
}
const
std
::
array
<
u32
,
1024
>&
GetSwizzlePatterns
()
{
const
std
::
array
<
u32
,
1024
>&
GetSwizzlePatterns
()
{
return
swizzle_data
;
}
...
...
@@ -444,8 +437,7 @@ static void ProcessShaderCode(VertexShaderState& state) {
}
}
OutputVertex
RunShader
(
const
InputVertex
&
input
,
int
num_attributes
)
{
OutputVertex
RunShader
(
const
InputVertex
&
input
,
int
num_attributes
)
{
VertexShaderState
state
;
const
u32
*
main
=
&
shader_memory
[
registers
.
vs_main_offset
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment