Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
704482d6
Commit
704482d6
authored
3 years ago
by
Sebastian Gaida
Browse files
Options
Downloads
Patches
Plain Diff
[
#87
] add dummy output in vertex shader
parent
3d918289
No related branches found
No related tags found
1 merge request
!74
Resolve "Mesh Shader Implementation"
Pipeline
#26375
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/mesh_shader/resources/shaders/shader.vert
+2
-0
2 additions, 0 deletions
projects/mesh_shader/resources/shaders/shader.vert
with
2 additions
and
0 deletions
projects/mesh_shader/resources/shaders/shader.vert
+
2
−
0
View file @
704482d6
...
@@ -5,6 +5,7 @@ layout(location = 0) in vec3 inPosition;
...
@@ -5,6 +5,7 @@ layout(location = 0) in vec3 inPosition;
layout
(
location
=
1
)
in
vec3
inNormal
;
layout
(
location
=
1
)
in
vec3
inNormal
;
layout
(
location
=
0
)
out
vec3
passNormal
;
layout
(
location
=
0
)
out
vec3
passNormal
;
layout
(
location
=
1
)
out
uint
dummyOutput
;
layout
(
push_constant
)
uniform
constants
{
layout
(
push_constant
)
uniform
constants
{
mat4
mvp
;
mat4
mvp
;
...
@@ -12,5 +13,6 @@ layout( push_constant ) uniform constants{
...
@@ -12,5 +13,6 @@ layout( push_constant ) uniform constants{
void
main
()
{
void
main
()
{
gl_Position
=
mvp
*
vec4
(
inPosition
,
1
.
0
);
gl_Position
=
mvp
*
vec4
(
inPosition
,
1
.
0
);
dummyOutput
=
0
;
passNormal
=
inNormal
;
passNormal
=
inNormal
;
}
}
\ No newline at end of file
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