diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureManager.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureManager.cs index 85b2f843..8710954a 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureManager.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureManager.cs @@ -13,8 +13,10 @@ namespace ComputeSharp.D2D1.Interop; /// /// /// -/// The built-in ID2D1Effect -/// implementation provided by uses resource texture manager objects to handle resource textures. +/// The built-in ID2D1EffectImpl +/// implementation provided by (which makes it possible to register and create +/// ID2D1Effect +/// instances that can be used to run D2D1 pixel shaders) uses resource texture manager objects to handle resource textures. /// /// /// These managers are COM objects implementing the following interface: @@ -43,12 +45,14 @@ namespace ComputeSharp.D2D1.Interop; /// These can be used to create resource textures, pass them to effects, and also share resources among different effects. /// /// -/// For details of how these work, Initialize maps to ID2D1EffectContext::CreateResourceTexture, whereas -/// Update maps to ID2D1ResourceTexture::Update. The same behavior and parameters as those methods is used. +/// For details of how these work, Initialize maps to +/// ID2D1EffectContext::CreateResourceTexture, +/// whereas Update maps to ID2D1ResourceTexture::Update. +/// The same behavior and parameters as those methods is used. /// /// /// This interface is implemented by ComputeSharp.D2D1, and it can be used through the APIs in . -/// That is, is first use to create an ID2D1ResourceTextureManager instance. Then, +/// That is, is first used to create an ID2D1ResourceTextureManager instance. Then, /// can be used to initialize the resource texture held by the manager. The manager can also be assigned to an effect at any time, /// using the available property indices from . To update texture data after its initial /// creation, can be used. @@ -56,7 +60,7 @@ namespace ComputeSharp.D2D1.Interop; /// /// An RCW (runtime callable wrapper, see ), /// is also available for all of these APIs, implemented by the same . In this case, the constructor can -/// be used to create and initialize an instance (equivalent to calling and , and then +/// be used to create and initialize an instance (equivalent to calling and ), and then /// is available for texture data updates. /// The instance implements , which can be used in advanced scenarios to retrieve the underlying COM object. /// @@ -66,7 +70,7 @@ namespace ComputeSharp.D2D1.Interop; /// the creation of the actual resource texture until it's possible for it to do so, at which point it will also free the buffer. /// /// -/// If implementing a custom resource manager was needed, in order for external implementations to be accepted by the effect objects +/// If implementing a custom resource manager is needed, in order for external implementations to be accepted by the effect objects /// created by , the ID2D1ResourceTextureManagerInternal interface also needs to be implemented: /// /// [uuid(5CBB1024-8EA1-4689-81BF-8AD190B5EF5D)] @@ -81,13 +85,13 @@ namespace ComputeSharp.D2D1.Interop; /// /// /// -/// Note that due to the fact ID2D1EffectContext and ID2D1ResourceTexture are not thread safe, they are only -/// safe to use without additional synchronization when Initialize and GetResourceTexture are called. -/// This happens from the internal ID2D1EffectImpl object, which is invoked by D2D, which will handle taking the -/// necessary lock before invoking these APIs. Due to the fact the context has to be stored internally, custom implementations -/// have to make sure to retrieve the right ID2D1Multithread instance from the input context and use that to synchronize -/// all accesses to those two objects from all APIs (including those exposed by ID2D1ResourceTextureManager). The -/// built-in implementation of these two interfaces provided by takes care of all this. +/// Note that due to the fact ID2D1EffectContext +/// and ID2D1ResourceTexture are not thread safe, +/// they are only safe to use without additional synchronization when Initialize and GetResourceTexture are called. This happens from the internal +/// ID2D1EffectImpl object, which is invoked by D2D, which will handle +/// taking the necessary lock before invoking these APIs. Due to the fact the context has to be stored internally, custom implementations have to make sure to retrieve the +/// right ID2D1Multithread instance from the effect context and use that to synchronize all accesses to those two objects from all APIs (including those exposed by +/// ID2D1ResourceTextureManager). The built-in implementation of these two interfaces provided by takes care of all this. /// /// /// The dimensions parameter in ID2D1ResourceTextureManager::Initialize is optional, and can be passed by an ID2D1Effect