Skip to content

Commit

Permalink
Clarify generator macros
Browse files Browse the repository at this point in the history
This changelist clarifies the parenthesis guards of the TEXTURE_NAME and SAMPLER_NAME macros.
  • Loading branch information
jstone-lucasfilm committed Mar 16, 2023
1 parent bd32c94 commit 5a215fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaterialXGenMsl/MslShaderGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include <MaterialXGenShader/HwShaderGenerator.h>

#define TEXTURE_NAME(t) (t + "_tex")
#define SAMPLER_NAME(t) (t + "_sampler")
#define TEXTURE_NAME(t) ((t) + "_tex")
#define SAMPLER_NAME(t) ((t) + "_sampler")

MATERIALX_NAMESPACE_BEGIN

Expand Down

0 comments on commit 5a215fb

Please sign in to comment.