Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VisualEffectVertex.hlsl 826B

1234567891011121314151617181920212223242526272829
  1. // Wrapper vertex invocations for VFX. Necessary to work around various null input geometry issues for vertex input layout on DX12 and Vulkan.
  2. void VertVFX(
  3. #if NULL_GEOMETRY_INPUT
  4. uint vertexID : VERTEXID_SEMANTIC
  5. , uint instanceID : INSTANCEID_SEMANTIC
  6. #else
  7. Attributes input
  8. #endif
  9. #if (SHADERPASS == SHADERPASS_MOTION_VECTORS)
  10. , out PackedMotionVectorPassVaryings packedMvOutput
  11. #endif
  12. , out PackedVaryings packedOutput
  13. )
  14. {
  15. #if NULL_GEOMETRY_INPUT
  16. Attributes input;
  17. ZERO_INITIALIZE(Attributes, input);
  18. input.vertexID = vertexID;
  19. input.instanceID = instanceID;
  20. #endif
  21. #if (SHADERPASS != SHADERPASS_MOTION_VECTORS)
  22. packedOutput = vert(input);
  23. #else
  24. MotionVectorPassAttributes dummy = (MotionVectorPassAttributes)0;
  25. vert(input, dummy, packedMvOutput, packedOutput);
  26. #endif
  27. }