"Primitive" in .USF shader?

For example, in MaterialTemplate.usf:
Primitive.WorldToLocal

I guess it means FPrimitiveUniformShaderParameters? But where is the “Primitive” defined?

Thanks!

It comes from here:

IMPLEMENT_UNIFORM_BUFFER_STRUCT(FPrimitiveUniformShaderParameters,TEXT(“Primitive”));

Basically, when a shader references a uniform buffer by it’s shader name (‘.Primitive’ in the above), the engine will automatically find the matching uniform buffer, generate hlsl to represent it, and include this at the top of the usf file. The programmer still needs to set that uniform buffer,

SetUniformBufferParameter(RHICmdList, ShaderRHI,GetUniformBufferParameter(),BatchElement.PrimitiveUniformBuffer);

Where can i get more information about conversation between engine and shader?