@@ -43,8 +43,10 @@ enum class TestEnum : uint32_t {
43
43
X (RtComponentPropertyType::Uint32, 1 , inputUint32, " Input Uint32" , " test for Uint32" ) \
44
44
X (RtComponentPropertyType::Uint64, 1 , inputUint64, " Input Uint64" , " test for Uint64" ) \
45
45
X (RtComponentPropertyType::Prim, 101 , inputPrim, " Input Prim" , " test for Prim" ) \
46
+ X (RtComponentPropertyType::String, std::string(" test_string" ), inputString, " Input String" , " test for String" ) \
47
+ X (RtComponentPropertyType::AssetPath, std::string(" /path/to/asset.usd" ), inputAssetPath, " Input AssetPath" , " test for AssetPath" ) \
46
48
X (RtComponentPropertyType::Uint32, 1 , inputUint32Enum, " Input Enum" , " test for Uint32 as enum" , \
47
- property.enumValues = { {" One" , {TestEnum::One, " The first case" }}, {" Two" , {TestEnum::Two, " The second case" }} }) \
49
+ property.enumValues = { {" One" , {TestEnum::One, " The first case" }}, {" Two" , {TestEnum::Two, " The second case" }} })
48
50
49
51
#define LIST_STATES (X ) \
50
52
X (RtComponentPropertyType::Bool, false , stateBool, " " , " test for Bool" ) \
@@ -57,6 +59,8 @@ enum class TestEnum : uint32_t {
57
59
X (RtComponentPropertyType::Uint32, 2 , stateUint32, " " , " test for Uint32" ) \
58
60
X (RtComponentPropertyType::Uint64, 2 , stateUint64, " " , " test for Uint64" ) \
59
61
X (RtComponentPropertyType::Prim, 102 , statePrim, " " , " test for Prim" ) \
62
+ X (RtComponentPropertyType::String, std::string(" state_string" ), stateString, " " , " test for String" ) \
63
+ X (RtComponentPropertyType::AssetPath, std::string(" /path/to/state/asset.usd" ), stateAssetPath, " " , " test for AssetPath" ) \
60
64
X (RtComponentPropertyType::Uint32, 2 , stateUint32Enum, " " , " test for Uint32 as enum" , \
61
65
property.enumValues = { {" One" , {TestEnum::One, " The first case" }}, {" Two" , {TestEnum::Two, " The second case" }} })
62
66
@@ -71,6 +75,8 @@ enum class TestEnum : uint32_t {
71
75
X (RtComponentPropertyType::Uint32, 3 , outputUint32, " Output Uint32" , " test for Uint32" ) \
72
76
X (RtComponentPropertyType::Uint64, 3 , outputUint64, " Output Uint64" , " test for Uint64" ) \
73
77
X (RtComponentPropertyType::Prim, 103 , outputPrim, " Output Prim" , " test for Prim" ) \
78
+ X (RtComponentPropertyType::String, std::string(" output_string" ), outputString, " Output String" , " test for String" ) \
79
+ X (RtComponentPropertyType::AssetPath, std::string(" /path/to/output/asset.usd" ), outputAssetPath, " Output AssetPath" , " test for AssetPath" ) \
74
80
X (RtComponentPropertyType::Uint32, 3 , outputUint32Enum, " Output Enum" , " test for Uint32 as enum" , \
75
81
property.enumValues = { {" One" , {TestEnum::One, " The first case" }}, {" Two" , {TestEnum::Two, " The second case" }} })
76
82
@@ -100,6 +106,8 @@ void TestComponent::updateRange(const Rc<DxvkContext>& context, const size_t sta
100
106
m_stateUint32[i] = m_inputUint32[i];
101
107
m_stateUint64[i] = m_inputUint64[i];
102
108
m_statePrim[i] = m_inputPrim[i];
109
+ m_stateString[i] = m_inputString[i];
110
+ m_stateAssetPath[i] = m_inputAssetPath[i];
103
111
m_stateUint32Enum[i] = m_inputUint32Enum[i];
104
112
}
105
113
m_outputBool[i] = m_stateBool[i];
@@ -112,6 +120,8 @@ void TestComponent::updateRange(const Rc<DxvkContext>& context, const size_t sta
112
120
m_outputUint32[i] = m_stateUint32[i];
113
121
m_outputUint64[i] = m_stateUint64[i];
114
122
m_outputPrim[i] = m_statePrim[i];
123
+ m_outputString[i] = m_stateString[i];
124
+ m_outputAssetPath[i] = m_stateAssetPath[i];
115
125
m_outputUint32Enum[i] = m_stateUint32Enum[i];
116
126
}
117
127
}
0 commit comments