What is the sampler
object in MSL from the language perspective?
sampler s(coord::pixel, address::clamp_to_zero, filter::linear);
I don't know C++ good enough to parse what is going on here. If I understand correctly sampler
is a struct-type. But I only worked with C-structs and the syntax above is completely alien to me. Is this some kind of well-known pattern in C++? Some newer C++ feature? How is it called?
I only know pure C struct initialization syntax like so:
MY_TYPE a = { .stuff = 0.456, .flag = true, .value = 123 };