文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetClosestHitShaderRayPayloadSize(RayTracingShader)

Returns the ray payload size of a user-defined closest hit shader from within a RayTracingShader.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static int GetClosestHitShaderRayPayloadSize(RayTracingShader s)

Parameters

Returns

Type

Description

intThe ray payload size in bytes.