Exemplo n.º 1
0
        public void SetSlienceCount(DeviceResources deviceResources, int count)
        {
            int slience1 = (count + sliencesPerBuffer - 1) / sliencesPerBuffer;

            while (constantBuffers.Count < slience1)
            {
                SBuffer buffer1 = new SBuffer();
                deviceResources.InitializeSBuffer(buffer1, bufferSize);
                constantBuffers.Add(buffer1);
            }
        }
Exemplo n.º 2
0
 public void Reload(DeviceResources deviceResources)
 {
     deviceResources.InitializeSBuffer(CameraDataBuffer, c_presentDataSize);
     deviceResources.InitializeCBuffer(LightCameraDataBuffer, c_lightCameraDataSize);
 }