Пример #1
0
        public void EndRecording()
        {
            Assert.Always(Recording, "CommandList is was not in recording state!");
            EndRecordingImpl();
            Recording = false;

            //ActiveAllocator.OnEndRecording();
            ActiveAllocator.RemoveRef();
        }
Пример #2
0
        public void StartRecording()
        {
            Assert.Always(!Recording, "CommandList is already in recording state!");

            Recording = true;

            ActiveAllocator = Desc.AllocationPolicy.GetCurrentAllocator();
            Assert.Debug(ActiveAllocator.Desc.Type == Desc.Type, "Allocator type needs to match command list type!");
            ActiveAllocator.AddRef();
            ActiveAllocator.ResetResourceUse();

            // Reset redundancy check state.
            descriptorHeapColor        = null;
            slotsColor                 = null;
            descriptorHeapDepthStencil = null;
            slotDepthStencil           = UInt32.MaxValue;

            StartRecordingImpl();
        }