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
b022602d
Verified
Commit
b022602d
authored
2 years ago
by
Tobias Frisch
Browse files
Options
Downloads
Patches
Plain Diff
Add support for shader termination via discard
Signed-off-by:
Tobias Frisch
<
tfrisch@uni-koblenz.de
>
parent
796b521d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/vkcv/FeatureManager.hpp
+10
-0
10 additions, 0 deletions
include/vkcv/FeatureManager.hpp
src/vkcv/FeatureManager.cpp
+9
-0
9 additions, 0 deletions
src/vkcv/FeatureManager.cpp
with
19 additions
and
0 deletions
include/vkcv/FeatureManager.hpp
+
10
−
0
View file @
b022602d
...
...
@@ -354,6 +354,16 @@ namespace vkcv {
*/
[[
nodiscard
]]
bool
checkSupport
(
const
vk
::
PhysicalDeviceIndexTypeUint8FeaturesEXT
&
features
,
bool
required
)
const
;
/**
* @brief Checks support of the @p vk::PhysicalDeviceShaderTerminateInvocationFeatures.
*
* @param[in] features The features
* @param[in] required True, if the @p features are required, else false
* @return @p True, if the @p features are supported, else @p false
*/
[[
nodiscard
]]
bool
checkSupport
(
const
vk
::
PhysicalDeviceShaderTerminateInvocationFeatures
&
features
,
bool
required
)
const
;
/**
* @brief Searches for a base structure of a given structure type.
...
...
This diff is collapsed.
Click to expand it.
src/vkcv/FeatureManager.cpp
+
9
−
0
View file @
b022602d
...
...
@@ -504,6 +504,15 @@ namespace vkcv {
return
true
;
}
bool
FeatureManager
::
checkSupport
(
const
vk
::
PhysicalDeviceShaderTerminateInvocationFeatures
&
features
,
bool
required
)
const
{
vkcv_check_init_features2
(
vk
::
PhysicalDeviceShaderTerminateInvocationFeatures
);
vkcv_check_feature
(
shaderTerminateInvocation
);
return
true
;
}
vk
::
BaseOutStructure
*
FeatureManager
::
findFeatureStructure
(
vk
::
StructureType
type
)
const
{
for
(
auto
&
base
:
m_featuresExtensions
)
{
...
...
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