24 #ifndef USDRI_GENERATED_MATERIALAPI_H
25 #define USDRI_GENERATED_MATERIALAPI_H
172 static const TfType &_GetStaticTfType();
174 static bool _IsTypedSchema();
178 const TfType &_GetTfType()
const override;
341 bool computeTransitiveConsumers=
false)
const;
347 bool ignoreBaseMaterial)
const;
std::unordered_map< UsdShadeInput, std::vector< UsdShadeInput >, UsdShadeInput::Hash > InterfaceInputConsumersMap
USDRI_API UsdShadeShader GetDisplacement(bool ignoreBaseMaterial=false) const
USDRI_API UsdSchemaKind _GetSchemaKind() const override
USDRI_API UsdAttribute GetVolumeAttr() const
GLsizei const GLchar *const * string
GLsizei const GLchar *const * path
USDRI_API UsdShadeShader GetSurface(bool ignoreBaseMaterial=false) const
UsdRiMaterialAPI(const UsdPrim &prim=UsdPrim())
static const UsdSchemaKind schemaKind
USDRI_API UsdAttribute GetSurfaceAttr() const
virtual USDRI_API ~UsdRiMaterialAPI()
Destructor.
static USDRI_API bool CanApply(const UsdPrim &prim, std::string *whyNot=nullptr)
USDRI_API bool SetDisplacementSource(const SdfPath &displacementPath) const
USDRI_API UsdAttribute CreateSurfaceAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
USDRI_API UsdAttribute CreateVolumeAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
USDRI_API UsdShadeShader GetVolume(bool ignoreBaseMaterial=false) const
static USDRI_API UsdRiMaterialAPI Get(const UsdStagePtr &stage, const SdfPath &path)
static USDRI_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
std::vector< TfToken > TfTokenVector
Convenience types.
USDRI_API UsdAttribute GetDisplacementAttr() const
UsdRiMaterialAPI(const UsdSchemaBase &schemaObj)
USDRI_API UsdShadeOutput GetDisplacementOutput() const
Returns the "displacement" output associated with the material.
USDRI_API UsdShadeOutput GetSurfaceOutput() const
Returns the "surface" output associated with the material.
USDRI_API UsdShadeOutput GetVolumeOutput() const
Returns the "volume" output associated with the material.
UsdRiMaterialAPI(const UsdShadeMaterial &material)
A constructor for creating a MaterialAPI object from a material prim.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USDRI_API UsdAttribute CreateDisplacementAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
#define PXR_NAMESPACE_CLOSE_SCOPE
static USDRI_API UsdRiMaterialAPI Apply(const UsdPrim &prim)
USDRI_API UsdShadeNodeGraph::InterfaceInputConsumersMap ComputeInterfaceInputConsumersMap(bool computeTransitiveConsumers=false) const
USDRI_API bool SetVolumeSource(const SdfPath &volumePath) const
UsdPrim GetPrim() const
Return this schema object's held prim.
USDRI_API bool SetSurfaceSource(const SdfPath &surfacePath) const