Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shader-db
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mesa
shader-db
Commits
d4b7e65a
Commit
d4b7e65a
authored
Nov 08, 2015
by
Ilia Mirkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run: work with tessellation shaders
Reviewed-by:
Matt Turner
<
mattst88@gmail.com
>
parent
772565ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
run.c
run.c
+10
-0
No files found.
run.c
View file @
d4b7e65a
...
...
@@ -80,6 +80,8 @@ get_shaders(const struct context_info *core, const struct context_info *compat,
static
const
char
*
gs
=
"geometry shader]
\n
"
;
static
const
char
*
fs
=
"fragment "
;
static
const
char
*
vs
=
"vertex "
;
static
const
char
*
tcs
=
"tessellation control shader]
\n
"
;
static
const
char
*
tes
=
"tessellation evaluation shader]
\n
"
;
static
const
char
*
shder
=
"shader]
\n
"
;
static
const
char
*
program
=
"program]
\n
"
;
static
const
char
*
test
=
"test]
\n
"
;
...
...
@@ -169,6 +171,14 @@ get_shaders(const struct context_info *core, const struct context_info *compat,
text
+=
strlen
(
gs
);
shader
[
i
].
type
=
GL_GEOMETRY_SHADER
;
shader
[
i
].
text
=
text
;
}
else
if
(
memcmp
(
text
,
tcs
,
strlen
(
tcs
))
==
0
)
{
text
+=
strlen
(
tcs
);
shader
[
i
].
type
=
GL_TESS_CONTROL_SHADER
;
shader
[
i
].
text
=
text
;
}
else
if
(
memcmp
(
text
,
tes
,
strlen
(
tes
))
==
0
)
{
text
+=
strlen
(
tes
);
shader
[
i
].
type
=
GL_TESS_EVALUATION_SHADER
;
shader
[
i
].
text
=
text
;
}
else
if
(
memcmp
(
text
,
test
,
strlen
(
test
))
==
0
)
{
shader
[
i
-
1
].
length
=
save_text
+
1
-
shader
[
i
-
1
].
text
;
goto
out
;
...
...
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