We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264e25f commit 2ee6687Copy full SHA for 2ee6687
examples/Gpu/ArrayToBuffer.hpp
@@ -32,9 +32,11 @@ struct ArrayToBuffer
32
UInt8,
33
};
34
35
+ using input_value_type = float;
36
+
37
struct
38
{
- halp::val_port<"Input", std::vector<float>> main;
39
+ halp::val_port<"Input", std::vector<input_value_type>> main;
40
halp::enum_t<Type, "Type"> type;
41
} inputs;
42
@@ -46,7 +48,7 @@ struct ArrayToBuffer
46
48
template <typename T>
47
49
void process()
50
- if constexpr(std::is_same_v<T, decltype(inputs.main.value)::value_type>)
51
+ if constexpr(std::is_same_v<T, input_value_type>)
52
53
// Direct reuse of the buffer
54
outputs.main.buffer.raw_data = (unsigned char*)inputs.main.value.data();
0 commit comments