Skip to content

Commit fff2061

Browse files
Steven WhiteSteven White
authored andcommitted
Merged PR 20557: new APIs
new APIs
1 parent 9b5e6ca commit fff2061

4 files changed

Lines changed: 94 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
-api-id: T:Windows.UI.Composition.CompositionTexture
3+
-api-type: winrt class
4+
---
5+
6+
# Windows.UI.Composition.CompositionTexture
7+
8+
<!--
9+
public class CompositionTexture : Windows.UI.Composition.CompositionObject, Windows.UI.Composition.ICompositionSurface
10+
-->
11+
12+
## -description
13+
14+
Represents a raw Direct3D texture that can be bound to a DComp visual as content. The object can be used anywhere that a generic composition surface can be used in those APIs today&mdash;for example, as the content of a visual or a surface brush. The object exposes an available fence, which can be used to synchronize application rendering and composition work. Can also accept various attributes, such as an alpha mode, source rect, and color space, to more precisely define the content being displayed.
15+
16+
The composition textures API supports Direct3D 11 only.
17+
18+
## -remarks
19+
20+
## -see-also
21+
22+
## -examples
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
-api-id: P:Windows.UI.Composition.CompositionTexture.AlphaMode
3+
-api-type: winrt property
4+
---
5+
6+
# Windows.UI.Composition.CompositionTexture.AlphaMode
7+
8+
<!--
9+
public Windows.Graphics.DirectX.DirectXAlphaMode AlphaMode { get; set; }
10+
-->
11+
12+
## -description
13+
14+
TBD
15+
16+
## -property-value
17+
18+
TBD
19+
20+
## -remarks
21+
22+
## -see-also
23+
24+
## -examples
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
-api-id: P:Windows.UI.Composition.CompositionTexture.ColorSpace
3+
-api-type: winrt property
4+
---
5+
6+
# Windows.UI.Composition.CompositionTexture.ColorSpace
7+
8+
<!--
9+
public Windows.Graphics.DirectX.DirectXColorSpace ColorSpace { get; set; }
10+
-->
11+
12+
## -description
13+
14+
TBD
15+
16+
## -property-value
17+
18+
TBD
19+
20+
## -remarks
21+
22+
## -see-also
23+
24+
## -examples
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
-api-id: P:Windows.UI.Composition.CompositionTexture.SourceRect
3+
-api-type: winrt property
4+
---
5+
6+
# Windows.UI.Composition.CompositionTexture.SourceRect
7+
8+
<!--
9+
public Windows.Graphics.RectInt32 SourceRect { get; set; }
10+
-->
11+
12+
## -description
13+
14+
Gets and sets the portion of an overall Direct3D texture that the composition texture represents (and samples from). This allows you to have multiple composition textures referencing the same Direct3D texture.
15+
16+
## -property-value
17+
18+
The region of a Direct3D texture that the composition texture represents.
19+
20+
## -remarks
21+
22+
## -see-also
23+
24+
## -examples

0 commit comments

Comments
 (0)