Class UsdShadeShader
Inheritance
UsdShadeShader
Namespace: pxr
Syntax
public class UsdShadeShader : UsdTyped, IDisposable
Constructors
UsdShadeShader()
Declaration
UsdShadeShader(UsdPrim)
Declaration
public UsdShadeShader(UsdPrim prim)
Parameters
UsdShadeShader(UsdSchemaBase)
Declaration
public UsdShadeShader(UsdSchemaBase schemaObj)
Parameters
UsdShadeShader(UsdShadeConnectableAPI)
Declaration
public UsdShadeShader(UsdShadeConnectableAPI connectable)
Parameters
Methods
Declaration
public void ClearSdrMetadata()
Declaration
public void ClearSdrMetadataByKey(TfToken key)
Parameters
ConnectableAPI()
Declaration
public UsdShadeConnectableAPI ConnectableAPI()
Returns
CreateIdAttr()
Declaration
public UsdAttribute CreateIdAttr()
Returns
CreateIdAttr(VtValue)
Declaration
public UsdAttribute CreateIdAttr(VtValue defaultValue)
Parameters
Type |
Name |
Description |
VtValue |
defaultValue |
|
Returns
CreateIdAttr(VtValue, Boolean)
Declaration
public UsdAttribute CreateIdAttr(VtValue defaultValue, bool writeSparsely)
Parameters
Returns
CreateImplementationSourceAttr()
Declaration
public UsdAttribute CreateImplementationSourceAttr()
Returns
CreateImplementationSourceAttr(VtValue)
Declaration
public UsdAttribute CreateImplementationSourceAttr(VtValue defaultValue)
Parameters
Type |
Name |
Description |
VtValue |
defaultValue |
|
Returns
CreateImplementationSourceAttr(VtValue, Boolean)
Declaration
public UsdAttribute CreateImplementationSourceAttr(VtValue defaultValue, bool writeSparsely)
Parameters
Returns
Declaration
public UsdShadeInput CreateInput(TfToken name, SdfValueTypeName typeName)
Parameters
Returns
CreateOutput(TfToken, SdfValueTypeName)
Declaration
public UsdShadeOutput CreateOutput(TfToken name, SdfValueTypeName typeName)
Parameters
Returns
Define(UsdStageWeakPtr, SdfPath)
Declaration
public static UsdShadeShader Define(UsdStageWeakPtr stage, SdfPath path)
Parameters
Returns
Dispose()
Declaration
public override void Dispose()
Overrides
Finalize()
Declaration
protected void Finalize()
Get(UsdStageWeakPtr, SdfPath)
Declaration
public static UsdShadeShader Get(UsdStageWeakPtr stage, SdfPath path)
Parameters
Returns
GetIdAttr()
Declaration
public UsdAttribute GetIdAttr()
Returns
GetImplementationSource()
Declaration
public TfToken GetImplementationSource()
Returns
GetImplementationSourceAttr()
Declaration
public UsdAttribute GetImplementationSourceAttr()
Returns
Declaration
public UsdShadeInput GetInput(TfToken name)
Parameters
Returns
Declaration
public UsdShadeInputVector GetInputs()
Returns
GetOutput(TfToken)
Declaration
public UsdShadeOutput GetOutput(TfToken name)
Parameters
Returns
GetOutputs()
Declaration
public UsdShadeOutputVector GetOutputs()
Returns
GetSchemaAttributeNames()
Declaration
public static TfTokenVector GetSchemaAttributeNames()
Returns
GetSchemaAttributeNames(Boolean)
Declaration
public static TfTokenVector GetSchemaAttributeNames(bool includeInherited)
Parameters
Type |
Name |
Description |
Boolean |
includeInherited |
|
Returns
Declaration
public SWIGTYPE_p_std__unordered_mapT_TfToken_std__string_TfToken__HashFunctor_t GetSdrMetadata()
Returns
Declaration
public string GetSdrMetadataByKey(TfToken key)
Parameters
Returns
GetShaderId(TfToken)
Declaration
public bool GetShaderId(TfToken id)
Parameters
Returns
GetShaderNodeForSourceType(TfToken)
Declaration
public SdrShaderNode GetShaderNodeForSourceType(TfToken sourceType)
Parameters
Type |
Name |
Description |
TfToken |
sourceType |
|
Returns
GetSourceAsset(SdfAssetPath)
Declaration
public bool GetSourceAsset(SdfAssetPath sourceAsset)
Parameters
Returns
GetSourceAsset(SdfAssetPath, TfToken)
Declaration
public bool GetSourceAsset(SdfAssetPath sourceAsset, TfToken sourceType)
Parameters
Returns
GetSourceAssetSubIdentifier(TfToken)
Declaration
public bool GetSourceAssetSubIdentifier(TfToken subIdentifier)
Parameters
Type |
Name |
Description |
TfToken |
subIdentifier |
|
Returns
GetSourceAssetSubIdentifier(TfToken, TfToken)
Declaration
public bool GetSourceAssetSubIdentifier(TfToken subIdentifier, TfToken sourceType)
Parameters
Returns
GetSourceCode(out String)
Declaration
public bool GetSourceCode(out string sourceCode)
Parameters
Type |
Name |
Description |
String |
sourceCode |
|
Returns
GetSourceCode(out String, TfToken)
Declaration
public bool GetSourceCode(out string sourceCode, TfToken sourceType)
Parameters
Returns
Declaration
public bool HasSdrMetadata()
Returns
Declaration
public bool HasSdrMetadataByKey(TfToken key)
Parameters
Returns
Declaration
public void SetSdrMetadata(SWIGTYPE_p_std__unordered_mapT_TfToken_std__string_TfToken__HashFunctor_t sdrMetadata)
Parameters
Declaration
public void SetSdrMetadataByKey(TfToken key, string value)
Parameters
SetShaderId(TfToken)
Declaration
public bool SetShaderId(TfToken id)
Parameters
Returns
SetSourceAsset(SdfAssetPath)
Declaration
public bool SetSourceAsset(SdfAssetPath sourceAsset)
Parameters
Returns
SetSourceAsset(SdfAssetPath, TfToken)
Declaration
public bool SetSourceAsset(SdfAssetPath sourceAsset, TfToken sourceType)
Parameters
Returns
SetSourceAssetSubIdentifier(TfToken)
Declaration
public bool SetSourceAssetSubIdentifier(TfToken subIdentifier)
Parameters
Type |
Name |
Description |
TfToken |
subIdentifier |
|
Returns
SetSourceAssetSubIdentifier(TfToken, TfToken)
Declaration
public bool SetSourceAssetSubIdentifier(TfToken subIdentifier, TfToken sourceType)
Parameters
Returns
SetSourceCode(String)
Declaration
public bool SetSourceCode(string sourceCode)
Parameters
Type |
Name |
Description |
String |
sourceCode |
|
Returns
SetSourceCode(String, TfToken)
Declaration
public bool SetSourceCode(string sourceCode, TfToken sourceType)
Parameters
Returns
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.