I’m trying to send an array of positions (and other info) to a usf pixel shader.
I know I can send float, FMatrix, FVector stuff to the shader via the following macros:
uniform buffer may can help you,but i also don’t konw how to send uniform buffer corectly.this is my questionhttps://answers.unrealengine.com/questions/783475/%E5%A6%82%E4%BD%95%E7%BB%99shader%E4%B8%8A%E4%BC%A0uniformbuffer.html
AOS seems still not available for uniform buffer, I tried to create a SHADER_PARAMETER_STRUCT and reference it in a GLOBAL_SHADER_PARAMETER_STRUCT, but got crash on CreateHLSLUniformBufferStructMembersDeclaration