public UsdShadeShader ComputeVolumeSource(TfToken renderContext, TfToken sourceName, SWIGTYPE_p_UsdShadeAttributeType sourceType)
        {
            UsdShadeShader ret = new UsdShadeShader(UsdCsPINVOKE.UsdShadeMaterial_ComputeVolumeSource__SWIG_0(swigCPtr, TfToken.getCPtr(renderContext), TfToken.getCPtr(sourceName), SWIGTYPE_p_UsdShadeAttributeType.getCPtr(sourceType)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#2
0
        public UsdAttribute GetValueProducingAttribute(SWIGTYPE_p_UsdShadeAttributeType attrType)
        {
            UsdAttribute ret = new UsdAttribute(UsdCsPINVOKE.UsdShadeInput_GetValueProducingAttribute(swigCPtr, SWIGTYPE_p_UsdShadeAttributeType.getCPtr(attrType)), true);

            return(ret);
        }
        public UsdShadeShader ComputeOutputSource(TfToken outputName, TfToken sourceName, SWIGTYPE_p_UsdShadeAttributeType sourceType)
        {
            UsdShadeShader ret = new UsdShadeShader(UsdCsPINVOKE.UsdShadeNodeGraph_ComputeOutputSource(swigCPtr, TfToken.getCPtr(outputName), TfToken.getCPtr(sourceName), SWIGTYPE_p_UsdShadeAttributeType.getCPtr(sourceType)), true);

            if (UsdCsPINVOKE.SWIGPendingException.Pending)
            {
                throw UsdCsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }