public void SetResource(int resourceIndex, EffectResourceType type, Direct3D11.UnorderedAccessView view, int uavInitialCount) { resources[resourceIndex] = view; unsafe { UAVCounts[resourceIndex] = uavInitialCount; Pointers[resourceIndex] = GetNativePointer(resourceIndex, type, view); } }
/// <summary> /// Sets a shader resource for the associated parameter. /// </summary> /// <param name="resourceView">The resource.</param> /// <param name="initialUAVCount">The initial count for the UAV (-1) to keep it</param> public void SetResource(Direct3D11.UnorderedAccessView resourceView, int initialUAVCount) { resourceLinker.SetResource(offset, ResourceType, resourceView, initialUAVCount); }