Skip to content
Snippets Groups Projects
Commit 4aaa2734 authored by Trevor Hollmann's avatar Trevor Hollmann
Browse files

[#79] Fix documenting comment of materialHasTexture.

parent 9178ba70
No related branches found
No related tags found
1 merge request!69Resolve "Rework Asset Loader API"
...@@ -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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment