VisualEffectVertex.hlsl 504 B

123456789101112131415161718
  1. // Wrapper vertex invocations for VFX. Necesarry to work around various null input geometry issues for vertex input layout on DX12 and Vulkan.
  2. #if NULL_GEOMETRY_INPUT
  3. PackedVaryings VertVFX(uint vertexID : VERTEXID_SEMANTIC, uint instanceID : INSTANCEID_SEMANTIC)
  4. {
  5. Attributes input;
  6. ZERO_INITIALIZE(Attributes, input);
  7. input.vertexID = vertexID;
  8. input.instanceID = instanceID;
  9. return vert(input);
  10. }
  11. #else
  12. PackedVaryings VertVFX(Attributes input)
  13. {
  14. return vert(input);
  15. }
  16. #endif