But I’m getting a shader compile error saying SomeParams is undefined. I’ve looked at existing examples of use of BEGIN_GLOBAL_SHADER_PARAMETER_STRUCT, and I don’t see any definitions in shaders, so I assume it’s generated by the compiler, but it’s not working for me. Am I missing something here?
When creating a BEGIN_GLOBAL_SHADER_PARAMETER_STRUCT you need to use the uniform macro SHADER_PARAMETER_RDG_UNIFORM_BUFFER, on your FParameters you are using SHADER_PARAMETER_STRUCT_REF which is incorrect,
And finally one thing, it took me a while to figure out was the fact that you have to include #include “/Engine/Private/Common.ush” on your .usf, with that you should be able to access the struct.