コード例 #1
0
 internal unsafe static void AllocateLuts(ref AtmosphereLuts luts)
 {
     if (luts.TransmittanceLut == RwTexId.NULL)
     {
         luts.TransmittanceLut = MyRwTextures.CreateUav2D(256, 64, SharpDX.DXGI.Format.R16G16B16A16_Float);
         luts.InscatterLut     = MyRwTextures.CreateUav3D(32, 128, 32 * 8, SharpDX.DXGI.Format.R16G16B16A16_Float);
     }
 }