示例#1
0
 public static void SetReferenceSize(
     int width,
     int height,
     MSAASamples msaaSamples
     )
 {
     s_DefaultInstance.SetReferenceSize(
         width,
         height,
         msaaSamples
         );
 }
示例#2
0
 /// <summary>
 /// Sets the reference rendering size for subsequent rendering for the default RTHandle System
 /// </summary>
 /// <param name="width">Reference rendering width for subsequent rendering.</param>
 /// <param name="height">Reference rendering height for subsequent rendering.</param>
 public static void SetReferenceSize(int width, int height)
 {
     s_DefaultInstance.SetReferenceSize(width, height);
 }
 /// <summary>
 /// Swap buffers Set the reference size for this RT Handle System (<see cref="RTHandleSystem.SetReferenceSize(int, int, bool)"/>)
 /// </summary>
 /// <param name="width">The width of the RTs of this buffer.</param>
 /// <param name="height">The height of the RTs of this buffer.</param>
 public void SwapAndSetReferenceSize(int width, int height)
 {
     Swap();
     m_RTHandleSystem.SetReferenceSize(width, height);
 }
 /// <summary>
 /// Swap buffers Set the reference size for this RT Handle System (<see cref="RTHandleSystem.SetReferenceSize(int, int, bool, MSAASamples)"/>)
 /// </summary>
 /// <param name="width">The width of the RTs of this buffer.</param>
 /// <param name="height">The height of the RTs of this buffer.</param>
 /// <param name="msaaSamples">Number of MSAA samples for this buffer.</param>
 public void SwapAndSetReferenceSize(int width, int height, MSAASamples msaaSamples)
 {
     Swap();
     m_RTHandleSystem.SetReferenceSize(width, height, msaaSamples);
 }