PreviewPass.hlsl 534 B

1234567891011121314151617
  1. PackedVaryings vert(Attributes input)
  2. {
  3. Varyings output = (Varyings)0;
  4. output = BuildVaryings(input);
  5. PackedVaryings packedOutput = PackVaryings(output);
  6. return packedOutput;
  7. }
  8. half4 frag(PackedVaryings packedInput) : SV_TARGET
  9. {
  10. Varyings unpacked = UnpackVaryings(packedInput);
  11. SurfaceDescriptionInputs surfaceDescriptionInputs = BuildSurfaceDescriptionInputs(unpacked);
  12. SurfaceDescription surfaceDescription = SurfaceDescriptionFunction(surfaceDescriptionInputs);
  13. return surfaceDescription.Out;
  14. }