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
4aaa2734
Commit
4aaa2734
authored
3 years ago
by
Trevor Hollmann
Browse files
Options
Downloads
Patches
Plain Diff
[
#79
] Fix documenting comment of materialHasTexture.
parent
9178ba70
No related branches found
No related tags found
1 merge request
!69
Resolve "Rework Asset Loader API"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/asset_loader/include/vkcv/asset/asset_loader.hpp
+8
-2
8 additions, 2 deletions
modules/asset_loader/include/vkcv/asset/asset_loader.hpp
with
8 additions
and
2 deletions
modules/asset_loader/include/vkcv/asset/asset_loader.hpp
+
8
−
2
View file @
4aaa2734
...
@@ -158,10 +158,16 @@ enum class PBRTextureTarget {
...
@@ -158,10 +158,16 @@ enum class PBRTextureTarget {
* contact with bit-level operations. */
* contact with bit-level operations. */
#define bitflag(ENUM) (0x1u << ((unsigned)(ENUM)))
#define bitflag(ENUM) (0x1u << ((unsigned)(ENUM)))
/** To signal that a certain texture target is active in a Material struct, its
/**
* To signal that a certain texture target is active in a Material struct, its
* bit is set in the textureMask. You can use this function to check that:
* bit is set in the textureMask. You can use this function to check that:
* Material mat = ...;
* Material mat = ...;
* if (materialHasTexture(&mat, baseColor)) {...} */
* if (materialHasTexture(&mat, baseColor)) {...}
* @param m The material to query
* @param t The target to query for
* @return Boolean to signal whether the texture target is active in the
* material.
*/
bool
materialHasTexture
(
const
Material
*
const
m
,
const
PBRTextureTarget
t
);
bool
materialHasTexture
(
const
Material
*
const
m
,
const
PBRTextureTarget
t
);
/** With these enums, 0 is reserved to signal uninitialized or invalid data. */
/** With these enums, 0 is reserved to signal uninitialized or invalid data. */
...
...
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