diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..eba1110 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto \ No newline at end of file diff --git a/.vs/FirstProject/v14/.suo b/.vs/FirstProject/v14/.suo new file mode 100644 index 0000000..1759b34 Binary files /dev/null and b/.vs/FirstProject/v14/.suo differ diff --git a/FirstProject.sln b/FirstProject.sln new file mode 100644 index 0000000..b877ba4 --- /dev/null +++ b/FirstProject.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25123.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FirstProject", "FirstProject\FirstProject.csproj", "{68749A24-AEB6-4D9C-B924-B36286B0BBF1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {68749A24-AEB6-4D9C-B924-B36286B0BBF1}.Debug|x86.ActiveCfg = Debug|x86 + {68749A24-AEB6-4D9C-B924-B36286B0BBF1}.Debug|x86.Build.0 = Debug|x86 + {68749A24-AEB6-4D9C-B924-B36286B0BBF1}.Release|x86.ActiveCfg = Release|x86 + {68749A24-AEB6-4D9C-B924-B36286B0BBF1}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/FirstProject/Content/Arial.spritefont b/FirstProject/Content/Arial.spritefont new file mode 100644 index 0000000..bd33ecf --- /dev/null +++ b/FirstProject/Content/Arial.spritefont @@ -0,0 +1,60 @@ + + + + + + + Arial + + + 12 + + + 0 + + + true + + + + + + + + + + + + ~ + + + + diff --git a/FirstProject/Content/Content.mgcb b/FirstProject/Content/Content.mgcb new file mode 100644 index 0000000..66999e3 --- /dev/null +++ b/FirstProject/Content/Content.mgcb @@ -0,0 +1,106 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin/$(Platform) +/intermediateDir:obj/$(Platform) +/platform:Windows +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + +#begin Arial.spritefont +/importer:FontDescriptionImporter +/processor:FontDescriptionProcessor +/processorParam:PremultiplyAlpha=True +/processorParam:TextureFormat=Compressed +/build:Arial.spritefont + +#begin bullet.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:bullet.png + +#begin EntToStart.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:EntToStart.png + +#begin Green_laser.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:Green_laser.png + +#begin rock_large.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:rock_large.png + +#begin ship.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:ship.png + +#begin spacebg.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:spacebg.png + +#begin GameOver.png +/importer:TextureImporter +/processor:TextureProcessor +/processorParam:ColorKeyColor=255,0,255,255 +/processorParam:ColorKeyEnabled=True +/processorParam:GenerateMipmaps=False +/processorParam:PremultiplyAlpha=True +/processorParam:ResizeToPowerOfTwo=False +/processorParam:MakeSquare=False +/processorParam:TextureFormat=Color +/build:GameOver.png + diff --git a/FirstProject/Content/EntToStart.png b/FirstProject/Content/EntToStart.png new file mode 100644 index 0000000..4c1a50f Binary files /dev/null and b/FirstProject/Content/EntToStart.png differ diff --git a/FirstProject/Content/GameOver.png b/FirstProject/Content/GameOver.png new file mode 100644 index 0000000..e58097e Binary files /dev/null and b/FirstProject/Content/GameOver.png differ diff --git a/FirstProject/Content/Green_laser.png b/FirstProject/Content/Green_laser.png new file mode 100644 index 0000000..1e0fb23 Binary files /dev/null and b/FirstProject/Content/Green_laser.png differ diff --git a/FirstProject/Content/bin/Windows/Arial.xnb b/FirstProject/Content/bin/Windows/Arial.xnb new file mode 100644 index 0000000..6e4cf2c Binary files /dev/null and b/FirstProject/Content/bin/Windows/Arial.xnb differ diff --git a/FirstProject/Content/bin/Windows/EntToStart.xnb b/FirstProject/Content/bin/Windows/EntToStart.xnb new file mode 100644 index 0000000..38e4007 Binary files /dev/null and b/FirstProject/Content/bin/Windows/EntToStart.xnb differ diff --git a/FirstProject/Content/bin/Windows/GameOver.xnb b/FirstProject/Content/bin/Windows/GameOver.xnb new file mode 100644 index 0000000..3614a38 Binary files /dev/null and b/FirstProject/Content/bin/Windows/GameOver.xnb differ diff --git a/FirstProject/Content/bin/Windows/Green_laser.xnb b/FirstProject/Content/bin/Windows/Green_laser.xnb new file mode 100644 index 0000000..6b2aea7 Binary files /dev/null and b/FirstProject/Content/bin/Windows/Green_laser.xnb differ diff --git a/FirstProject/Content/bin/Windows/bullet.xnb b/FirstProject/Content/bin/Windows/bullet.xnb new file mode 100644 index 0000000..cbca121 Binary files /dev/null and b/FirstProject/Content/bin/Windows/bullet.xnb differ diff --git a/FirstProject/Content/bin/Windows/rock_large.xnb b/FirstProject/Content/bin/Windows/rock_large.xnb new file mode 100644 index 0000000..318190d Binary files /dev/null and b/FirstProject/Content/bin/Windows/rock_large.xnb differ diff --git a/FirstProject/Content/bin/Windows/ship.xnb b/FirstProject/Content/bin/Windows/ship.xnb new file mode 100644 index 0000000..667f922 Binary files /dev/null and b/FirstProject/Content/bin/Windows/ship.xnb differ diff --git a/FirstProject/Content/bin/Windows/spacebg.xnb b/FirstProject/Content/bin/Windows/spacebg.xnb new file mode 100644 index 0000000..d8daa04 Binary files /dev/null and b/FirstProject/Content/bin/Windows/spacebg.xnb differ diff --git a/FirstProject/Content/bullet.png b/FirstProject/Content/bullet.png new file mode 100644 index 0000000..bc9be97 Binary files /dev/null and b/FirstProject/Content/bullet.png differ diff --git a/FirstProject/Content/obj/Windows/.mgcontent b/FirstProject/Content/obj/Windows/.mgcontent new file mode 100644 index 0000000..33d38e9 --- /dev/null +++ b/FirstProject/Content/obj/Windows/.mgcontent @@ -0,0 +1,16 @@ + + + Reach + Windows + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/Arial.spritefont + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bullet.png + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/EntToStart.png + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/Green_laser.png + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/rock_large.png + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/ship.png + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/spacebg.png + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/GameOver.png + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/Arial.mgcontent b/FirstProject/Content/obj/Windows/Arial.mgcontent new file mode 100644 index 0000000..6c65948 --- /dev/null +++ b/FirstProject/Content/obj/Windows/Arial.mgcontent @@ -0,0 +1,18 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/Arial.spritefont + 2017-08-16T18:26:22+09:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/Arial.xnb + 2017-11-15T18:49:42.8784008+10:30 + FontDescriptionImporter + 2016-03-30T17:06:08+10:30 + FontDescriptionProcessor + 2016-03-30T17:06:08+10:30 + + TextureFormat + Compressed + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/EntToStart.mgcontent b/FirstProject/Content/obj/Windows/EntToStart.mgcontent new file mode 100644 index 0000000..fbf1589 --- /dev/null +++ b/FirstProject/Content/obj/Windows/EntToStart.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/EntToStart.png + 2017-08-16T18:35:04+09:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/EntToStart.xnb + 2017-11-15T18:49:42.954402+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/GameOver.mgcontent b/FirstProject/Content/obj/Windows/GameOver.mgcontent new file mode 100644 index 0000000..1613355 --- /dev/null +++ b/FirstProject/Content/obj/Windows/GameOver.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/GameOver.png + 2017-08-16T18:31:20+09:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/GameOver.xnb + 2017-11-15T18:49:43.2104016+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/Green_laser.mgcontent b/FirstProject/Content/obj/Windows/Green_laser.mgcontent new file mode 100644 index 0000000..ad032ba --- /dev/null +++ b/FirstProject/Content/obj/Windows/Green_laser.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/Green_laser.png + 2017-08-02T16:49:16+09:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/Green_laser.xnb + 2017-11-15T18:49:42.9843987+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/bullet.mgcontent b/FirstProject/Content/obj/Windows/bullet.mgcontent new file mode 100644 index 0000000..01c1550 --- /dev/null +++ b/FirstProject/Content/obj/Windows/bullet.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bullet.png + 2016-03-17T14:20:24+10:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/bullet.xnb + 2017-11-15T18:49:42.9044009+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/rock_large.mgcontent b/FirstProject/Content/obj/Windows/rock_large.mgcontent new file mode 100644 index 0000000..8144309 --- /dev/null +++ b/FirstProject/Content/obj/Windows/rock_large.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/rock_large.png + 2016-03-17T14:20:24+10:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/rock_large.xnb + 2017-11-15T18:49:42.9984004+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/ship.mgcontent b/FirstProject/Content/obj/Windows/ship.mgcontent new file mode 100644 index 0000000..b7de585 --- /dev/null +++ b/FirstProject/Content/obj/Windows/ship.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/ship.png + 2017-07-31T17:08:06+09:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/ship.xnb + 2017-11-15T18:49:43.0113964+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/obj/Windows/spacebg.mgcontent b/FirstProject/Content/obj/Windows/spacebg.mgcontent new file mode 100644 index 0000000..b9ccd87 --- /dev/null +++ b/FirstProject/Content/obj/Windows/spacebg.mgcontent @@ -0,0 +1,42 @@ + + + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/spacebg.png + 2017-08-02T16:05:54+09:30 + L:/001 Game Programming Basics in CSharp/001 Intro To Game Programming/2017-08-16 FirstProject Recovery/FirstProject/FirstProject/Content/bin/Windows/spacebg.xnb + 2017-11-15T18:49:43.1554049+10:30 + TextureImporter + 2016-03-30T17:06:08+10:30 + TextureProcessor + 2016-03-30T17:06:08+10:30 + + ColorKeyColor + 255,0,255,255 + + + ColorKeyEnabled + True + + + GenerateMipmaps + False + + + PremultiplyAlpha + True + + + ResizeToPowerOfTwo + False + + + MakeSquare + False + + + TextureFormat + Color + + + + + \ No newline at end of file diff --git a/FirstProject/Content/rock_large.png b/FirstProject/Content/rock_large.png new file mode 100644 index 0000000..dec8a0c Binary files /dev/null and b/FirstProject/Content/rock_large.png differ diff --git a/FirstProject/Content/ship.png b/FirstProject/Content/ship.png new file mode 100644 index 0000000..5377e65 Binary files /dev/null and b/FirstProject/Content/ship.png differ diff --git a/FirstProject/Content/spacebg.png b/FirstProject/Content/spacebg.png new file mode 100644 index 0000000..508abb8 Binary files /dev/null and b/FirstProject/Content/spacebg.png differ diff --git a/FirstProject/FirstProject.csproj b/FirstProject/FirstProject.csproj new file mode 100644 index 0000000..bc35962 --- /dev/null +++ b/FirstProject/FirstProject.csproj @@ -0,0 +1,71 @@ + + + + + Debug + x86 + 8.0.30703 + 2.0 + {68749A24-AEB6-4D9C-B924-B36286B0BBF1} + WinExe + Properties + FirstProject + FirstProject + 512 + Windows + v4.5 + + + x86 + true + full + false + bin\$(MonoGamePlatform)\$(Platform)\$(Configuration)\ + DEBUG;TRACE;WINDOWS + prompt + 4 + + + x86 + pdbonly + true + bin\$(MonoGamePlatform)\$(Platform)\$(Configuration)\ + TRACE;WINDOWS + prompt + 4 + + + Icon.ico + + + app.manifest + + + + + + + + + $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\Windows\MonoGame.Framework.dll + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/FirstProject/Game1.cs b/FirstProject/Game1.cs new file mode 100644 index 0000000..133bbc0 --- /dev/null +++ b/FirstProject/Game1.cs @@ -0,0 +1,626 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; +using System; +using System.Collections; + +namespace FirstProject +{ + /// + /// This is the main type for your game. + /// + public class Game1 : Game + { + int currentFPS = 0; + float fpsTimer = 0; + int fpsCounter = 0; + + GraphicsDeviceManager graphics; + SpriteBatch spriteBatch; + + // define constant values for the game states + const int STATE_RESTART = 0; + const int STATE_SPLASH = 1; + const int STATE_GAME = 2; + const int STATE_GAMEOVER = 3; + + int gameState = STATE_SPLASH; + + //OnScreen + SpriteFont arialFont; + Texture2D shipTexture; + Texture2D asteroidTexture; + Texture2D spaceBG; + Texture2D bulletTexture; + Texture2D startGamePrompt; + Texture2D gameOverPrompt; + + //Player + float playerSpeed = 150; + float playerRotateSpeed = 5; + float playerSlowdown = 0.9999f; + Vector2 playerPosition = new Vector2(0, 0); + Vector2 playerOffset = new Vector2(0, 0); + bool playerAlive = false; + + + float playerAngle = 0; + Vector2 playerVelocity = new Vector2(0,0); + + //Bullet + float bulletSpeed = 600; + //OC- Vector2 bulletPosition = new Vector2(0, 0); + //OC- Vector2 bulletVelocity = new Vector2(0, 0); + ArrayList bulletPositions = new ArrayList(); + ArrayList bulletVelocities = new ArrayList(); + int maxBullets = 1; + float bulletReload = 0.1f; + //OC- bool bulletAlive = false; + + //Enemy + float asteroidSpeed = 90; + Vector2 asteroidOffset = new Vector2(); + ArrayList asteroidPositions = new ArrayList(); + ArrayList asteroidVelocities = new ArrayList(); + ArrayList asteroidSpeeds = new ArrayList(); + //OC- bool asteroidAlive = false; + + //Timer + float timer = 0; + + public Game1() + { + graphics = new GraphicsDeviceManager(this); + Content.RootDirectory = "Content"; + + this.IsFixedTimeStep = false; + this.graphics.SynchronizeWithVerticalRetrace = false; + + //These lines define the Window or "BackBuffer" size + graphics.PreferredBackBufferWidth = 1152; + graphics.PreferredBackBufferHeight = 648; + graphics.ApplyChanges(); + } + + /// + /// Allows the game to perform any initialization it needs to before starting to run. + /// This is where it can query for any required services and load any non-graphic + /// related content. Calling base.Initialize will enumerate through any components + /// and initialize them as well. + /// + /// + private void UpdateSplashState(float deltaTime) + { + if (Keyboard.GetState().IsKeyDown(Keys.Enter) == true) + { + gameState = STATE_GAME; + } + } + + private void DrawSplashState(SpriteBatch spriteBatch) + { + spriteBatch.Draw(startGamePrompt, + new Vector2(300, 150), Color.White); + } + protected override void Initialize() + { + // TODO: Add your initialization logic here + playerPosition = new Vector2( + graphics.GraphicsDevice.Viewport.Width / 1.2f, + graphics.GraphicsDevice.Viewport.Height / 1.2f); + + //OLDCODE This used to set the asteroid as "Alive" in the game + //OC- asteroidPosition = new Vector2(0, 0); + //OC- asteroidAlive = true; + // + // We now set this in the ArrayLists in the LoadContent function + + playerAlive = true; + + //gameState = STATE_GAME; + base.Initialize(); + } + + /// + /// LoadContent will be called once per game and is the place to load + /// all of your content. + /// + protected override void LoadContent() + { + // Create a new SpriteBatch, which can be used to draw textures. + spriteBatch = new SpriteBatch(GraphicsDevice); + + // TODO: use this.Content to load your game content here + arialFont = Content.Load("Arial"); + shipTexture = Content.Load("ship"); + spaceBG = Content.Load("spacebg"); + asteroidTexture = Content.Load("rock_large"); + bulletTexture = Content.Load("bullet"); + startGamePrompt = Content.Load("EntToStart"); + gameOverPrompt = Content.Load("GameOver"); + + // find the width and height of the shop so we can calculate the offset + // (so that when we draw the ship, the player position refers to the + // center of the ship) + playerOffset = new Vector2(shipTexture.Width / 2, shipTexture.Height / 2); + + //FINSH FINDING SCREEN CENTRE + //screenCenter = new Vector2(Viewport) + // + //startGameOffset = new Vector2(startGamePrompt.Width / 2, startGamePrompt.Height / 2); + // + //gameOverOffset = new Vector2(gameOverPrompt.Width / 2, gameOverPrompt.Height / 2); + + asteroidOffset = new Vector2(asteroidTexture.Width / 2, + asteroidTexture.Height / 2); + + Random random = new Random(); + for (int i = 0; i < 10; i++) // create some asteroids + { + Vector2 randDirection = new Vector2( + random.Next(-100, 100), random.Next(-100, 100)); + randDirection.Normalize(); + + Vector2 asteroidPosition = + randDirection * GraphicsDevice.Viewport.Height; + asteroidPositions.Add(asteroidPosition); + + asteroidSpeeds.Add((float)random.Next(10, 200)); + + Vector2 velocity = playerPosition - asteroidPosition; + velocity.Normalize(); + velocity *= ((float)(asteroidSpeeds[i])); + + asteroidVelocities.Add(velocity); + } + } + + /// + /// UnloadContent will be called once per game and is the place to unload + /// game-specific content. + /// + protected override void UnloadContent() + { + // TODO: Unload any non ContentManager content here + } + private void UpdatePlayer(float deltaTime) + { + float currentSpeed = 0; + + if (Keyboard.GetState().IsKeyDown(Keys.Up) == true) + { + currentSpeed = playerSpeed * deltaTime; + } + else + { + playerVelocity = playerVelocity * playerSlowdown; + } + if (Keyboard.GetState().IsKeyDown(Keys.Down) == true) + { + currentSpeed = -playerSpeed * deltaTime; + } + + if (Keyboard.GetState().IsKeyDown(Keys.Left) == true) + { + playerAngle -= playerRotateSpeed * deltaTime; + } + if (Keyboard.GetState().IsKeyDown(Keys.Right) == true) + { + playerAngle += playerRotateSpeed * deltaTime; + } + if (Keyboard.GetState().IsKeyDown(Keys.D) == true) + { + //STRAFE FUNCTION + //RADIANS CALCULATE ANGLE RELATIVE TO PLAYER CENTRE + float s = (float)Math.Sin(playerAngle + 1.5708); + float c = (float)Math.Cos(playerAngle + 1.5708); + float xSpeed = 0; + float ySpeed = playerSpeed * deltaTime; + playerPosition.X += (xSpeed * c) - (ySpeed * s); + playerPosition.Y += (xSpeed * s) + (ySpeed * c); + } + if (Keyboard.GetState().IsKeyDown(Keys.A) == true) + { + //STRAFE FUNCTION + //RADIANS CALCULATE ANGLE RELATIVE TO PLAYER CENTRE + float s = (float)Math.Sin(playerAngle + -1.5708); + float c = (float)Math.Cos(playerAngle + -1.5708); + float xSpeed = 0; + float ySpeed = playerSpeed * deltaTime; + playerPosition.X += (xSpeed * c) - (ySpeed * s); + playerPosition.Y += (xSpeed * s) + (ySpeed * c); + } + + // figure out the x and y movement based on the current rotation + // (so that if the ship is moving forward, then it will move + // forward according to its rotation. Without this, the ship + // would just move up the screen when we pressed 'up', + // regardless of which way it was rotated) + // for an explanation of this formula, see + // http://en.wikipedia.org/wiki/Rotation_matrix + // calculate sin and cos for the player's current rotation + Vector2 playerDirection = new Vector2(-(float)Math.Sin(playerAngle), + (float)Math.Cos(playerAngle)); + playerDirection.Normalize(); + + //Update Timer + timer += deltaTime; + + //Shoot a bullet + if (Keyboard.GetState().IsKeyDown(Keys.Space) == true && bulletPositions.Count < maxBullets && timer > bulletReload) + { + // int num = 10; + // for (int i = 0; i < num; i++) + // { + bulletPositions.Add(playerPosition); + bulletVelocities.Add(playerDirection * bulletSpeed); + // } + //OC- bulletPosition = playerPosition; + //OC- bulletVelocity = playerDirection * bulletSpeed; + //OC- bulletAlive = true; + } + + // the Vector2 class also has a normalize function + Vector2 direction = new Vector2(40, 30); + direction.Normalize(); + + playerVelocity += playerDirection * currentSpeed * deltaTime; + playerPosition += playerVelocity; + + + + //Screen Wrap + if (playerPosition.X < 0)// Left + { + // Move to Right + playerPosition.X = graphics.GraphicsDevice.Viewport.Width; + } + if (playerPosition.X > graphics.GraphicsDevice.Viewport.Width)// Right + { + // Move to Left + playerPosition.X = 0; + } + if (playerPosition.Y < 0)// Top + { + // Move to Bottom + playerPosition.Y = graphics.GraphicsDevice.Viewport.Height; + } + if (playerPosition.Y > graphics.GraphicsDevice.Viewport.Height)// Bottom + { + // Move to Top + playerPosition.Y = 0; + } + + } + //Bullet Scripts + private void UpdateBullets(float deltaTime) + { + for (int i = 0; i < bulletPositions.Count; i++) + { + bulletPositions[i] = (Vector2)bulletPositions[i] + ((Vector2)bulletVelocities[i] * deltaTime); + + if (((Vector2)bulletPositions[i]).X < 0 || + ((Vector2)bulletPositions[i]).X > graphics.GraphicsDevice.Viewport.Width || + ((Vector2)bulletPositions[i]).Y < 0 || + ((Vector2)bulletPositions[i]).Y > graphics.GraphicsDevice.Viewport.Height) + { + //OC- bulletAlive = false; + bulletPositions.RemoveAt(i); + bulletVelocities.RemoveAt(i); + + } + } + } + //Collision Scripts - Circle Collision + private bool IsColliding(Vector2 position1, float radius1, Vector2 position2, float + radius2) + { + Vector2 distance = position2 - position1; + + if (distance.Length() < radius1 + radius2) + { + // the distance between these two circles is less + // than their radii, so they must be colliding + return true; + } + // else, the two circles are not colliding + return false; + } + + //Collision Scripts - Rectangle Collision + private bool IsColliding(Rectangle rect1, Rectangle rect2) + { + if (rect1.X + rect1.Width < rect2.X || + rect1.X > rect2.X + rect2.Width || + rect1.Y + rect1.Height < rect2.Y || + rect1.Y > rect2.Y + rect2.Height) + + { + // these two rectangles are not colliding + return false; + } + // else, the two AABB rectangles overlap, therefore collision... + return true; + } + + //Asteroid Scripts + private void UpdateAsteroids(float deltaTime) + { + for (int asteroidIdx = 0; asteroidIdx < asteroidPositions.Count; asteroidIdx++) + { + // the one thing we have to be aware of here is that the Vector2 + // (position) is stored in the ArrayList as an object so we can't + // modify any of its variables. We need to get a copy of the Vector2, + // modify the copy, then overwrite the Vector2 in the ArrayList with + // the updated copy. (Same goes for the velocity) + Vector2 position = (Vector2)asteroidPositions[asteroidIdx]; + Vector2 velocity = (Vector2)asteroidVelocities[asteroidIdx]; + + + + //Screen Wrap + if (position.X < 0 && velocity.X < 0)// Left + { + // Move to Right + position.X = graphics.GraphicsDevice.Viewport.Width; + } + if (position.X > graphics.GraphicsDevice.Viewport.Width && velocity.X > 0)// Right + { + // Move to Left + position.X = 0; + } + if (position.Y < 0 && velocity.Y < 0)// Top + { + // Move to Bottom + position.Y = graphics.GraphicsDevice.Viewport.Height; + } + if (position.Y > graphics.GraphicsDevice.Viewport.Height && velocity.X > 0)// Bottom + { + // Move to Top + position.Y = 0; + } + + position += velocity * deltaTime; + asteroidPositions[asteroidIdx] = position; + //// if the asteroid goes off the screen, reverse the velocity(does this make it bounce off the "walls" ?) + //if (position.X < 0 && velocity.X < 0 || + // position.X > graphics.GraphicsDevice.Viewport.Width && velocity.X > 0) + //{ + // velocity.Y = -velocity.Y; + // asteroidVelocities[asteroidIdx] = velocity; + //} + //if (position.Y < 0 && velocity.Y < 0 || + // position.Y > graphics.GraphicsDevice.Viewport.Height && velocity.Y > 0) + //{ + // velocity.X = -velocity.X; + // asteroidVelocities[asteroidIdx] = velocity; + //} + + + + } + + //OC- Vector2 direction = playerPosition - asteroidPosition; + //OC- direction.Normalize(); + // + //OC- Vector2 asteroidVelocity = direction * asteroidSpeed * deltaTime; + // + //OC- asteroidPosition += asteroidVelocity; + } + /// + /// Allows the game to run logic such as updating the world, + /// checking for collisions, gathering input, and playing audio. + /// + /// Provides a snapshot of timing values. + protected override void Update(GameTime gameTime) + { + if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) + Exit(); + + // TODO: Add your update logic here + float deltaTime = (float)gameTime.ElapsedGameTime.TotalSeconds; + + switch (gameState) + { + case STATE_SPLASH: + UpdateSplashState(deltaTime); + break; + case STATE_GAME: + UpdateGameState(deltaTime); + break; + case STATE_GAMEOVER: + UpdateGameOverState(deltaTime); + break; + } + base.Update(gameTime); + + + + + + + } + + /// + /// This is called when the game should draw itself. + /// + /// Provides a snapshot of timing values. + + + private void UpdateGameState(float deltaTime) + { + + + // calculate the current FPS (frames per second) + // This is debug code, you can remove it from your final game + //fpsTimer += deltaTime; + //if (fpsTimer > 1.0f) + //{ + // fpsTimer = 0f; + // currentFPS = fpsCounter; + // fpsCounter = 0; + //} + //fpsCounter++; + + //int counter = 0; + //for (int i = 0; i < 0; i++) + //{ + // counter += i; + //} + + UpdatePlayer(deltaTime); + UpdateAsteroids(deltaTime); + UpdateBullets(deltaTime); + + + Rectangle playerRect = new Rectangle( + (int)(playerPosition.X - playerOffset.X), + (int)(playerPosition.Y - playerOffset.Y), + shipTexture.Bounds.Width, shipTexture.Bounds.Height); + // check for collisions + + for (int asteroidIdx = 0; asteroidIdx < asteroidPositions.Count; asteroidIdx++) + { + + + Vector2 position = (Vector2)asteroidPositions[asteroidIdx]; + Rectangle asteroid = new Rectangle( + (int)(position.X - asteroidOffset.X), + (int)(position.Y - asteroidOffset.Y), + asteroidTexture.Width, asteroidTexture.Height); + + if (IsColliding(playerRect, asteroid) == true) + { + // player and asteroid are colliding, destroy both + playerAlive = false; + asteroidPositions.RemoveAt(asteroidIdx); + asteroidVelocities.RemoveAt(asteroidIdx); + gameState = STATE_GAMEOVER; + + } + + for (int bulletIdx = 0; bulletIdx < bulletPositions.Count; bulletIdx++) + { + Rectangle bulletRect = new Rectangle((int)((Vector2)bulletPositions[bulletIdx]).X, + (int)((Vector2)bulletPositions[bulletIdx]).Y, + bulletTexture.Bounds.Width, + bulletTexture.Bounds.Height); + + + if (IsColliding(bulletRect, asteroid) == true) + { + // bullet and asteroid are colliding, destroy both + //OC- bulletAlive = false; //bullets are now in their own array list (bulletIdx) + asteroidPositions.RemoveAt(asteroidIdx); + asteroidVelocities.RemoveAt(asteroidIdx); + + bulletPositions.RemoveAt(bulletIdx); + bulletVelocities.RemoveAt(bulletIdx); + // once we hit the first thing and kill the bullet, there's no + // point in checking the rest of the ArrayList + break; + } + + } + if (asteroidPositions.Count == 0) + { + //no more asteroids, end the 'game' + gameState = STATE_GAMEOVER; + } + } + } + + private void DrawGameState(SpriteBatch spriteBatch) + { + + if (playerAlive == true) + { + spriteBatch.Draw(shipTexture, playerPosition, + null, null, playerOffset, playerAngle, null, Color.White); + } + + //OC- if (asteroidAlive == true) { + //OC- spriteBatch.Draw(asteroidTexture, asteroidPosition, + //OC- null, null, asteroidOffset, 0, null, Color.White); + for (int asteroidIdx = 0; asteroidIdx < asteroidPositions.Count; asteroidIdx++) + { + Vector2 position = (Vector2)asteroidPositions[asteroidIdx]; + spriteBatch.Draw(asteroidTexture, position, null, null, + asteroidOffset, 0, null, Color.White); + } + + + //OC- spriteBatch.Draw(asteroidTexture, asteroidPosition, + //OC- null, null, asteroidOffset, 0, null, Color.White); + + spriteBatch.DrawString(arialFont, currentFPS.ToString(), + new Vector2(20, 20), Color.Yellow); + + spriteBatch.End(); + + //base.Draw(gameTime); + } + + private void UpdateGameOverState(float deltaTime) + { + if (Keyboard.GetState().IsKeyDown(Keys.Enter) == true) + { + gameState = STATE_SPLASH; + } + } + + private void DrawGameOverState(SpriteBatch spriteBatch) + { + spriteBatch.Draw(gameOverPrompt, + new Vector2(300, 150), Color.White); + } + //protected override void Draw(GameTime gameTime) + + protected override void Draw(GameTime gameTime) + { + + GraphicsDevice.Clear(Color.CornflowerBlue); + + // TODO: Add your drawing code here + spriteBatch.Begin(); + spriteBatch.Draw(spaceBG, new Vector2(0, 0), Color.White); + for (int i = 0; i < bulletPositions.Count; i++) + { + spriteBatch.Draw(bulletTexture, (Vector2)bulletPositions[i], + null, null, null, 0, null, Color.White); + } + + //OLDCODE + //OC- spriteBatch.DrawString(arialFont, "This is totally a program!!", + //OC- new Vector2(10,50), Color.White); + + //OLDCODE + //OC- spriteBatch.Draw(shipTexture, new Vector2(100, 100), Color.White); + //OC- spriteBatch.Draw(shipTexture, playerPosition - playerOffset, Color.White); + //OC- spriteBatch.Draw(shipTexture, playerPosition, + //OC- null, null, playerOffset, playerAngle, null, Color.White); + + switch (gameState) + { + case STATE_SPLASH: + DrawSplashState(spriteBatch); + break; + case STATE_GAME: + DrawGameState(spriteBatch); + break; + case STATE_GAMEOVER: + DrawGameOverState(spriteBatch); + break; + } + spriteBatch.End(); + base.Draw(gameTime); + } + + + + + + + + } +} diff --git a/FirstProject/Icon.ico b/FirstProject/Icon.ico new file mode 100644 index 0000000..7d9dec1 Binary files /dev/null and b/FirstProject/Icon.ico differ diff --git a/FirstProject/Program.cs b/FirstProject/Program.cs new file mode 100644 index 0000000..f068202 --- /dev/null +++ b/FirstProject/Program.cs @@ -0,0 +1,22 @@ +using System; + +namespace FirstProject +{ +#if WINDOWS || LINUX + /// + /// The main class. + /// + public static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + using (var game = new Game1()) + game.Run(); + } + } +#endif +} diff --git a/FirstProject/Properties/AssemblyInfo.cs b/FirstProject/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..15c1026 --- /dev/null +++ b/FirstProject/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("FirstProject")] +[assembly: AssemblyProduct("FirstProject")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyCompany("The Academy Of Interactive Entertainment")] +[assembly: AssemblyCopyright("Copyright © The Academy Of Interactive Entertainment 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("fb1f9859-0a46-4481-8590-3f46178038c5")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/FirstProject/app.manifest b/FirstProject/app.manifest new file mode 100644 index 0000000..0777327 --- /dev/null +++ b/FirstProject/app.manifest @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true/pm + + + + diff --git a/FirstProject/bin/Windows/x86/Debug/Content/Arial.xnb b/FirstProject/bin/Windows/x86/Debug/Content/Arial.xnb new file mode 100644 index 0000000..6e4cf2c Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/Arial.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/EntToStart.xnb b/FirstProject/bin/Windows/x86/Debug/Content/EntToStart.xnb new file mode 100644 index 0000000..38e4007 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/EntToStart.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/GameOver.xnb b/FirstProject/bin/Windows/x86/Debug/Content/GameOver.xnb new file mode 100644 index 0000000..3614a38 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/GameOver.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/Green_laser.xnb b/FirstProject/bin/Windows/x86/Debug/Content/Green_laser.xnb new file mode 100644 index 0000000..6b2aea7 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/Green_laser.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/bullet.xnb b/FirstProject/bin/Windows/x86/Debug/Content/bullet.xnb new file mode 100644 index 0000000..cbca121 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/bullet.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/rock_large.xnb b/FirstProject/bin/Windows/x86/Debug/Content/rock_large.xnb new file mode 100644 index 0000000..318190d Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/rock_large.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/ship.xnb b/FirstProject/bin/Windows/x86/Debug/Content/ship.xnb new file mode 100644 index 0000000..667f922 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/ship.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/Content/spacebg.xnb b/FirstProject/bin/Windows/x86/Debug/Content/spacebg.xnb new file mode 100644 index 0000000..d8daa04 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/Content/spacebg.xnb differ diff --git a/FirstProject/bin/Windows/x86/Debug/FirstProject.exe b/FirstProject/bin/Windows/x86/Debug/FirstProject.exe new file mode 100644 index 0000000..cef9415 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/FirstProject.exe differ diff --git a/FirstProject/bin/Windows/x86/Debug/FirstProject.pdb b/FirstProject/bin/Windows/x86/Debug/FirstProject.pdb new file mode 100644 index 0000000..fc87963 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/FirstProject.pdb differ diff --git a/FirstProject/bin/Windows/x86/Debug/FirstProject.vshost.exe b/FirstProject/bin/Windows/x86/Debug/FirstProject.vshost.exe new file mode 100644 index 0000000..681ab77 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/FirstProject.vshost.exe differ diff --git a/FirstProject/bin/Windows/x86/Debug/FirstProject.vshost.exe.manifest b/FirstProject/bin/Windows/x86/Debug/FirstProject.vshost.exe.manifest new file mode 100644 index 0000000..0777327 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/FirstProject.vshost.exe.manifest @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true/pm + + + + diff --git a/FirstProject/bin/Windows/x86/Debug/MonoGame.Framework.dll b/FirstProject/bin/Windows/x86/Debug/MonoGame.Framework.dll new file mode 100644 index 0000000..db0cc30 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/MonoGame.Framework.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/MonoGame.Framework.xml b/FirstProject/bin/Windows/x86/Debug/MonoGame.Framework.xml new file mode 100644 index 0000000..40116a5 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/MonoGame.Framework.xml @@ -0,0 +1,16310 @@ + + + + MonoGame.Framework + + + + + Create a bounding box from the given list of points. + + The list of Vector3 instances defining the point cloud to bound + A bounding box that encapsulates the given point cloud. + Thrown if the given list has no points. + + + + Defines a viewing frustum for intersection operations. + + + + + The number of planes in the frustum. + + + + + The number of corner points in the frustum. + + + + + Constructs the frustum by extracting the view planes from a matrix. + + Combined matrix which usually is (View * Projection). + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified . + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified as an output parameter. + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified . + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified . + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified as an output parameter. + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified . + + + + Containment test between this and specified . + + A for testing. + Result of testing for containment between this and specified as an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Returns a copy of internal corners array. + + The array of corners. + + + + Returns a copy of internal corners array. + + The array which values will be replaced to corner values of this instance. It must have size of . + + + + Gets the hash code of this . + + Hash code of this . + + + + Gets whether or not a specified intersects with this . + + A for intersection test. + true if specified intersects with this ; false otherwise. + + + + Gets whether or not a specified intersects with this . + + A for intersection test. + true if specified intersects with this ; false otherwise as an output parameter. + + + + Gets whether or not a specified intersects with this . + + An other for intersection test. + true if other intersects with this ; false otherwise. + + + + Gets whether or not a specified intersects with this . + + A for intersection test. + true if specified intersects with this ; false otherwise. + + + + Gets whether or not a specified intersects with this . + + A for intersection test. + true if specified intersects with this ; false otherwise as an output parameter. + + + + Gets type of intersection between specified and this . + + A for intersection test. + A plane intersection type. + + + + Gets type of intersection between specified and this . + + A for intersection test. + A plane intersection type as an output parameter. + + + + Gets the distance of intersection of and this or null if no intersection happens. + + A for intersection test. + Distance at which ray intersects with this or null if no intersection happens. + + + + Gets the distance of intersection of and this or null if no intersection happens. + + A for intersection test. + Distance at which ray intersects with this or null if no intersection happens as an output parameter. + + + + Returns a representation of this in the format: + {Near:[nearPlane] Far:[farPlane] Left:[leftPlane] Right:[rightPlane] Top:[topPlane] Bottom:[bottomPlane]} + + representation of this . + + + + Gets or sets the of the frustum. + + + + + Gets the near plane of the frustum. + + + + + Gets the far plane of the frustum. + + + + + Gets the left plane of the frustum. + + + + + Gets the right plane of the frustum. + + + + + Gets the top plane of the frustum. + + + + + Gets the bottom plane of the frustum. + + + + + Describes a sphere in 3D-space for bounding operations. + + + + + The sphere center. + + + + + The sphere radius. + + + + + Constructs a bounding sphere with the specified center and radius. + + The sphere center. + The sphere radius. + + + + Test if a bounding box is fully inside, outside, or just intersecting the sphere. + + The box for testing. + The containment type. + + + + Test if a bounding box is fully inside, outside, or just intersecting the sphere. + + The box for testing. + The containment type as an output parameter. + + + + Test if a frustum is fully inside, outside, or just intersecting the sphere. + + The frustum for testing. + The containment type. + + + + Test if a frustum is fully inside, outside, or just intersecting the sphere. + + The frustum for testing. + The containment type as an output parameter. + + + + Test if a sphere is fully inside, outside, or just intersecting the sphere. + + The other sphere for testing. + The containment type. + + + + Test if a sphere is fully inside, outside, or just intersecting the sphere. + + The other sphere for testing. + The containment type as an output parameter. + + + + Test if a point is fully inside, outside, or just intersecting the sphere. + + The vector in 3D-space for testing. + The containment type. + + + + Test if a point is fully inside, outside, or just intersecting the sphere. + + The vector in 3D-space for testing. + The containment type as an output parameter. + + + + Creates the smallest that can contain a specified . + + The box to create the sphere from. + The new . + + + + Creates the smallest that can contain a specified . + + The box to create the sphere from. + The new as an output parameter. + + + + Creates the smallest that can contain a specified . + + The frustum to create the sphere from. + The new . + + + + Creates the smallest that can contain a specified list of points in 3D-space. + + List of point to create the sphere from. + The new . + + + + Creates the smallest that can contain two spheres. + + First sphere. + Second sphere. + The new . + + + + Creates the smallest that can contain two spheres. + + First sphere. + Second sphere. + The new as an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Gets whether or not a specified intersects with this sphere. + + The box for testing. + true if intersects with this sphere; false otherwise. + + + + Gets whether or not a specified intersects with this sphere. + + The box for testing. + true if intersects with this sphere; false otherwise. As an output parameter. + + + + Gets whether or not the other intersects with this sphere. + + The other sphere for testing. + true if other intersects with this sphere; false otherwise. + + + + Gets whether or not the other intersects with this sphere. + + The other sphere for testing. + true if other intersects with this sphere; false otherwise. As an output parameter. + + + + Gets whether or not a specified intersects with this sphere. + + The plane for testing. + Type of intersection. + + + + Gets whether or not a specified intersects with this sphere. + + The plane for testing. + Type of intersection as an output parameter. + + + + Gets whether or not a specified intersects with this sphere. + + The ray for testing. + Distance of ray intersection or null if there is no intersection. + + + + Gets whether or not a specified intersects with this sphere. + + The ray for testing. + Distance of ray intersection or null if there is no intersection as an output parameter. + + + + Returns a representation of this in the format: + {Center:[] Radius:[]} + + A representation of this . + + + + Creates a new that contains a transformation of translation and scale from this sphere by the specified . + + The transformation . + Transformed . + + + + Creates a new that contains a transformation of translation and scale from this sphere by the specified . + + The transformation . + Transformed as an output parameter. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Describes a 32-bit packed color. + + + + + Constructs an RGBA color from the XYZW unit length components of a vector. + + A representing color. + + + + Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque. + + A representing color. + + + + Constructs an RGBA color from a and an alpha value. + + A for RGB values of new instance. + The alpha component value from 0 to 255. + + + + Constructs an RGBA color from color and alpha value. + + A for RGB values of new instance. + Alpha component value from 0.0f to 1.0f. + + + + Constructs an RGBA color from scalars which representing red, green and blue values. Alpha value will be opaque. + + Red component value from 0.0f to 1.0f. + Green component value from 0.0f to 1.0f. + Blue component value from 0.0f to 1.0f. + + + + Constructs an RGBA color from scalars which representing red, green and blue values. Alpha value will be opaque. + + Red component value from 0 to 255. + Green component value from 0 to 255. + Blue component value from 0 to 255. + + + + Constructs an RGBA color from scalars which representing red, green, blue and alpha values. + + Red component value from 0 to 255. + Green component value from 0 to 255. + Blue component value from 0 to 255. + Alpha component value from 0 to 255. + + + + Constructs an RGBA color from scalars which representing red, green, blue and alpha values. + + Red component value from 0.0f to 1.0f. + Green component value from 0.0f to 1.0f. + Blue component value from 0.0f to 1.0f. + Alpha component value from 0.0f to 1.0f. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Compares whether current instance is equal to specified object. + + The to compare. + true if the instances are equal; false otherwise. + + + + Performs linear interpolation of . + + Source . + Destination . + Interpolation factor. + Interpolated . + + + + Performs linear interpolation of using on MathHelper. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + Source . + Destination . + Interpolation factor. + Interpolated . + + + + Multiply by value. + + Source . + Multiplicator. + Multiplication result. + + + + Multiply by value. + + Source . + Multiplicator. + Multiplication result. + + + + Gets a representation for this object. + + A representation for this object. + + + + Gets a representation for this object. + + A representation for this object. + + + + Returns a representation of this in the format: + {R:[red] G:[green] B:[blue] A:[alpha]} + + representation of this . + + + + Translate a non-premultipled alpha to a that contains premultiplied alpha. + + A representing color. + A which contains premultiplied alpha data. + + + + Translate a non-premultipled alpha to a that contains premultiplied alpha. + + Red component value. + Green component value. + Blue component value. + Alpha component value. + A which contains premultiplied alpha data. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets or sets the blue component. + + + + + Gets or sets the green component. + + + + + Gets or sets the red component. + + + + + Gets or sets the alpha component. + + + + + TransparentBlack color (R:0,G:0,B:0,A:0). + + + + + Transparent color (R:0,G:0,B:0,A:0). + + + + + AliceBlue color (R:240,G:248,B:255,A:255). + + + + + AntiqueWhite color (R:250,G:235,B:215,A:255). + + + + + Aqua color (R:0,G:255,B:255,A:255). + + + + + Aquamarine color (R:127,G:255,B:212,A:255). + + + + + Azure color (R:240,G:255,B:255,A:255). + + + + + Beige color (R:245,G:245,B:220,A:255). + + + + + Bisque color (R:255,G:228,B:196,A:255). + + + + + Black color (R:0,G:0,B:0,A:255). + + + + + BlanchedAlmond color (R:255,G:235,B:205,A:255). + + + + + Blue color (R:0,G:0,B:255,A:255). + + + + + BlueViolet color (R:138,G:43,B:226,A:255). + + + + + Brown color (R:165,G:42,B:42,A:255). + + + + + BurlyWood color (R:222,G:184,B:135,A:255). + + + + + CadetBlue color (R:95,G:158,B:160,A:255). + + + + + Chartreuse color (R:127,G:255,B:0,A:255). + + + + + Chocolate color (R:210,G:105,B:30,A:255). + + + + + Coral color (R:255,G:127,B:80,A:255). + + + + + CornflowerBlue color (R:100,G:149,B:237,A:255). + + + + + Cornsilk color (R:255,G:248,B:220,A:255). + + + + + Crimson color (R:220,G:20,B:60,A:255). + + + + + Cyan color (R:0,G:255,B:255,A:255). + + + + + DarkBlue color (R:0,G:0,B:139,A:255). + + + + + DarkCyan color (R:0,G:139,B:139,A:255). + + + + + DarkGoldenrod color (R:184,G:134,B:11,A:255). + + + + + DarkGray color (R:169,G:169,B:169,A:255). + + + + + DarkGreen color (R:0,G:100,B:0,A:255). + + + + + DarkKhaki color (R:189,G:183,B:107,A:255). + + + + + DarkMagenta color (R:139,G:0,B:139,A:255). + + + + + DarkOliveGreen color (R:85,G:107,B:47,A:255). + + + + + DarkOrange color (R:255,G:140,B:0,A:255). + + + + + DarkOrchid color (R:153,G:50,B:204,A:255). + + + + + DarkRed color (R:139,G:0,B:0,A:255). + + + + + DarkSalmon color (R:233,G:150,B:122,A:255). + + + + + DarkSeaGreen color (R:143,G:188,B:139,A:255). + + + + + DarkSlateBlue color (R:72,G:61,B:139,A:255). + + + + + DarkSlateGray color (R:47,G:79,B:79,A:255). + + + + + DarkTurquoise color (R:0,G:206,B:209,A:255). + + + + + DarkViolet color (R:148,G:0,B:211,A:255). + + + + + DeepPink color (R:255,G:20,B:147,A:255). + + + + + DeepSkyBlue color (R:0,G:191,B:255,A:255). + + + + + DimGray color (R:105,G:105,B:105,A:255). + + + + + DodgerBlue color (R:30,G:144,B:255,A:255). + + + + + Firebrick color (R:178,G:34,B:34,A:255). + + + + + FloralWhite color (R:255,G:250,B:240,A:255). + + + + + ForestGreen color (R:34,G:139,B:34,A:255). + + + + + Fuchsia color (R:255,G:0,B:255,A:255). + + + + + Gainsboro color (R:220,G:220,B:220,A:255). + + + + + GhostWhite color (R:248,G:248,B:255,A:255). + + + + + Gold color (R:255,G:215,B:0,A:255). + + + + + Goldenrod color (R:218,G:165,B:32,A:255). + + + + + Gray color (R:128,G:128,B:128,A:255). + + + + + Green color (R:0,G:128,B:0,A:255). + + + + + GreenYellow color (R:173,G:255,B:47,A:255). + + + + + Honeydew color (R:240,G:255,B:240,A:255). + + + + + HotPink color (R:255,G:105,B:180,A:255). + + + + + IndianRed color (R:205,G:92,B:92,A:255). + + + + + Indigo color (R:75,G:0,B:130,A:255). + + + + + Ivory color (R:255,G:255,B:240,A:255). + + + + + Khaki color (R:240,G:230,B:140,A:255). + + + + + Lavender color (R:230,G:230,B:250,A:255). + + + + + LavenderBlush color (R:255,G:240,B:245,A:255). + + + + + LawnGreen color (R:124,G:252,B:0,A:255). + + + + + LemonChiffon color (R:255,G:250,B:205,A:255). + + + + + LightBlue color (R:173,G:216,B:230,A:255). + + + + + LightCoral color (R:240,G:128,B:128,A:255). + + + + + LightCyan color (R:224,G:255,B:255,A:255). + + + + + LightGoldenrodYellow color (R:250,G:250,B:210,A:255). + + + + + LightGray color (R:211,G:211,B:211,A:255). + + + + + LightGreen color (R:144,G:238,B:144,A:255). + + + + + LightPink color (R:255,G:182,B:193,A:255). + + + + + LightSalmon color (R:255,G:160,B:122,A:255). + + + + + LightSeaGreen color (R:32,G:178,B:170,A:255). + + + + + LightSkyBlue color (R:135,G:206,B:250,A:255). + + + + + LightSlateGray color (R:119,G:136,B:153,A:255). + + + + + LightSteelBlue color (R:176,G:196,B:222,A:255). + + + + + LightYellow color (R:255,G:255,B:224,A:255). + + + + + Lime color (R:0,G:255,B:0,A:255). + + + + + LimeGreen color (R:50,G:205,B:50,A:255). + + + + + Linen color (R:250,G:240,B:230,A:255). + + + + + Magenta color (R:255,G:0,B:255,A:255). + + + + + Maroon color (R:128,G:0,B:0,A:255). + + + + + MediumAquamarine color (R:102,G:205,B:170,A:255). + + + + + MediumBlue color (R:0,G:0,B:205,A:255). + + + + + MediumOrchid color (R:186,G:85,B:211,A:255). + + + + + MediumPurple color (R:147,G:112,B:219,A:255). + + + + + MediumSeaGreen color (R:60,G:179,B:113,A:255). + + + + + MediumSlateBlue color (R:123,G:104,B:238,A:255). + + + + + MediumSpringGreen color (R:0,G:250,B:154,A:255). + + + + + MediumTurquoise color (R:72,G:209,B:204,A:255). + + + + + MediumVioletRed color (R:199,G:21,B:133,A:255). + + + + + MidnightBlue color (R:25,G:25,B:112,A:255). + + + + + MintCream color (R:245,G:255,B:250,A:255). + + + + + MistyRose color (R:255,G:228,B:225,A:255). + + + + + Moccasin color (R:255,G:228,B:181,A:255). + + + + + MonoGame orange theme color (R:231,G:60,B:0,A:255). + + + + + NavajoWhite color (R:255,G:222,B:173,A:255). + + + + + Navy color (R:0,G:0,B:128,A:255). + + + + + OldLace color (R:253,G:245,B:230,A:255). + + + + + Olive color (R:128,G:128,B:0,A:255). + + + + + OliveDrab color (R:107,G:142,B:35,A:255). + + + + + Orange color (R:255,G:165,B:0,A:255). + + + + + OrangeRed color (R:255,G:69,B:0,A:255). + + + + + Orchid color (R:218,G:112,B:214,A:255). + + + + + PaleGoldenrod color (R:238,G:232,B:170,A:255). + + + + + PaleGreen color (R:152,G:251,B:152,A:255). + + + + + PaleTurquoise color (R:175,G:238,B:238,A:255). + + + + + PaleVioletRed color (R:219,G:112,B:147,A:255). + + + + + PapayaWhip color (R:255,G:239,B:213,A:255). + + + + + PeachPuff color (R:255,G:218,B:185,A:255). + + + + + Peru color (R:205,G:133,B:63,A:255). + + + + + Pink color (R:255,G:192,B:203,A:255). + + + + + Plum color (R:221,G:160,B:221,A:255). + + + + + PowderBlue color (R:176,G:224,B:230,A:255). + + + + + Purple color (R:128,G:0,B:128,A:255). + + + + + Red color (R:255,G:0,B:0,A:255). + + + + + RosyBrown color (R:188,G:143,B:143,A:255). + + + + + RoyalBlue color (R:65,G:105,B:225,A:255). + + + + + SaddleBrown color (R:139,G:69,B:19,A:255). + + + + + Salmon color (R:250,G:128,B:114,A:255). + + + + + SandyBrown color (R:244,G:164,B:96,A:255). + + + + + SeaGreen color (R:46,G:139,B:87,A:255). + + + + + SeaShell color (R:255,G:245,B:238,A:255). + + + + + Sienna color (R:160,G:82,B:45,A:255). + + + + + Silver color (R:192,G:192,B:192,A:255). + + + + + SkyBlue color (R:135,G:206,B:235,A:255). + + + + + SlateBlue color (R:106,G:90,B:205,A:255). + + + + + SlateGray color (R:112,G:128,B:144,A:255). + + + + + Snow color (R:255,G:250,B:250,A:255). + + + + + SpringGreen color (R:0,G:255,B:127,A:255). + + + + + SteelBlue color (R:70,G:130,B:180,A:255). + + + + + Tan color (R:210,G:180,B:140,A:255). + + + + + Teal color (R:0,G:128,B:128,A:255). + + + + + Thistle color (R:216,G:191,B:216,A:255). + + + + + Tomato color (R:255,G:99,B:71,A:255). + + + + + Turquoise color (R:64,G:224,B:208,A:255). + + + + + Violet color (R:238,G:130,B:238,A:255). + + + + + Wheat color (R:245,G:222,B:179,A:255). + + + + + White color (R:255,G:255,B:255,A:255). + + + + + WhiteSmoke color (R:245,G:245,B:245,A:255). + + + + + Yellow color (R:255,G:255,B:0,A:255). + + + + + YellowGreen color (R:154,G:205,B:50,A:255). + + + + + Gets or sets packed value of this . + + + + + Defines how the bounding volumes intersects or contain one another. + + + + + Indicates that there is no overlap between two bounding volumes. + + + + + Indicates that one bounding volume completely contains another volume. + + + + + Indicates that bounding volumes partially overlap one another. + + + + + Defines the continuity of keys on a . + + + + + Interpolation can be used between this key and the next. + + + + + Interpolation cannot be used. A position between the two points returns this point. + + + + + Contains a collection of points in 2D space and provides methods for evaluating features of the curve they define. + + + + + Constructs a curve. + + + + + Creates a copy of this curve. + + A copy of this curve. + + + + Evaluate the value at a position of this . + + The position on this . + Value at the position on this . + + + + Computes tangents for all keys in the collection. + + The tangent type for both in and out. + + + + Computes tangents for all keys in the collection. + + The tangent in-type. for more details. + The tangent out-type. for more details. + + + + Computes tangent for the specific key in the collection. + + The index of a key in the collection. + The tangent type for both in and out. + + + + Computes tangent for the specific key in the collection. + + The index of key in the collection. + The tangent in-type. for more details. + The tangent out-type. for more details. + + + + Returns true if this curve is constant (has zero or one points); false otherwise. + + + + + The collection of curve keys. + + + + + Defines how to handle weighting values that are greater than the last control point in the curve. + + + + + Defines how to handle weighting values that are less than the first control point in the curve. + + + + + The collection of the elements and a part of the class. + + + + + Creates a new instance of class. + + + + + Adds a key to this collection. + + New key for the collection. + Throws if is null. + The new key would be added respectively to a position of that key and the position of other keys. + + + + Removes all keys from this collection. + + + + + Creates a copy of this collection. + + A copy of this collection. + + + + Determines whether this collection contains a specific key. + + The key to locate in this collection. + true if the key is found; false otherwise. + + + + Copies the keys of this collection to an array, starting at the array index provided. + + Destination array where elements will be copied. + The zero-based index in the array to start copying from. + + + + Returns an enumerator that iterates through the collection. + + An enumerator for the . + + + + Finds element in the collection and returns its index. + + Element for the search. + Index of the element; or -1 if item is not found. + + + + Removes element at the specified index. + + The index which element will be removed. + + + + Removes specific element. + + The element + true if item is successfully removed; false otherwise. This method also returns false if item was not found. + + + + Indexer. + + The index of key in this collection. + at position. + + + + Returns the count of keys in this collection. + + + + + Returns false because it is not a read-only collection. + + + + + Key point on the . + + + + + Creates a new instance of class with position: 0 and value: 0. + + + + + Creates a new instance of class. + + Position on the curve. + Value of the control point. + + + + Creates a new instance of class. + + Position on the curve. + Value of the control point. + Tangent approaching point from the previous point on the curve. + Tangent leaving point toward next point on the curve. + + + + Creates a new instance of class. + + Position on the curve. + Value of the control point. + Tangent approaching point from the previous point on the curve. + Tangent leaving point toward next point on the curve. + Indicates whether the curve is discrete or continuous. + + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Creates a copy of this key. + + A copy of this key. + + + + Gets or sets the indicator whether the segment between this point and the next point on the curve is discrete or continuous. + + + + + Gets a position of the key on the curve. + + + + + Gets or sets a tangent when approaching this point from the previous point on the curve. + + + + + Gets or sets a tangent when leaving this point to the next point on the curve. + + + + + Gets a value of this point. + + + + + Defines how the value is determined for position before first point or after the end point on the . + + + + + The value of will be evaluated as first point for positions before the beginning and end point for positions after the end. + + + + + The positions will wrap around from the end to beginning of the for determined the value. + + + + + The positions will wrap around from the end to beginning of the . + The value will be offset by the difference between the values of first and end multiplied by the wrap amount. + If the position is before the beginning of the the difference will be subtracted from its value; otherwise the difference will be added. + + + + + The value at the end of the act as an offset from the same side of the toward the opposite side. + + + + + The linear interpolation will be performed for determined the value. + + + + + Defines the different tangent types to be calculated for points in a . + + + + + The tangent which always has a value equal to zero. + + + + + The tangent which contains a difference between current tangent value and the tangent value from the previous . + + + + + The smoouth tangent which contains the inflection between and by taking into account the values of both neighbors of the . + + + + + Defines the orientation of the display. + + + + + The default orientation. + + + + + The display is rotated counterclockwise into a landscape orientation. Width is greater than height. + + + + + The display is rotated clockwise into a landscape orientation. Width is greater than height. + + + + + The display is rotated as portrait, where height is greater than width. + + + + + The display is rotated as inverted portrait, where height is greater than width. + + + + + Unknown display orientation. + + + + + Shuts down the component. + + + + + Shuts down the component. + + + + + Removes every from this . + Triggers once for each removed. + + + + + Event that is triggered when a is added + to this . + + + + + Event that is triggered when a is removed + from this . + + + + + The maximum amount of time we will frameskip over and only perform Update calls with no Draw calls. + MonoGame extension. + + + + + The SortingFilteringCollection class provides efficient, reusable + sorting and filtering based on a configurable sort comparer, filter + predicate, and associate change events. + + + + + Raises the AsyncRunLoopEnded event. This method must be called by + derived classes when the asynchronous run loop they start has + stopped running. + + + + + Gives derived classes an opportunity to do work before any + components are initialized. Note that the base implementation sets + IsActive to true, so derived classes should either call the base + implementation or set IsActive to true by their own means. + + + + + Gives derived classes an opportunity to do work just before the + run loop is begun. Implementations may also return false to prevent + the run loop from starting. + + + + + + When implemented in a derived, ends the active run loop. + + + + + When implemented in a derived, starts the run loop and blocks + until it has ended. + + + + + When implemented in a derived, starts the run loop and returns + immediately. + + + + + Gives derived classes an opportunity to do work just before Update + is called for all IUpdatable components. Returning false from this + method will result in this round of Update calls being skipped. + + + + + + + Gives derived classes an opportunity to do work just before Draw + is called for all IDrawable components. Returning false from this + method will result in this round of Draw calls being skipped. + + + + + + + When implemented in a derived class, causes the game to enter + full-screen mode. + + + + + When implemented in a derived class, causes the game to exit + full-screen mode. + + + + + Gives derived classes an opportunity to modify + Game.TargetElapsedTime before it is set. + + The proposed new value of TargetElapsedTime. + The new value of TargetElapsedTime that will be set. + + + + Starts a device transition (windowed to full screen or vice versa). + + + Specifies whether the device will be in full-screen mode upon completion of the change. + + + + + Completes a device transition. + + + Screen device name. + + + The new width of the game's client window. + + + The new height of the game's client window. + + + + + Gives derived classes an opportunity to take action after + Game.TargetElapsedTime has been set. + + + + + MSDN: Use this method if your game is recovering from a slow-running state, and ElapsedGameTime is too large to be useful. + Frame timing is generally handled by the Game class, but some platforms still handle it elsewhere. Once all platforms + rely on the Game class's functionality, this method and any overrides should be removed. + + + + + Performs application-defined tasks associated with freeing, + releasing, or resetting unmanaged resources. + + + + + Log the specified Message. + + + + + + + + When implemented in a derived class, reports the default + GameRunBehavior for this platform. + + + + + Gets the Game instance that owns this GamePlatform instance. + + + + + Defines how should be runned. + + + + + The game loop will be runned asynchronous. + + + + + The game loop will be runned synchronous. + + + + + Gets or sets a bool that enables usage of Alt+F4 for window closing on desktop platforms. Value is true by default. + + + + + The location of this window on the desktop, eg: global coordinate space + which stretches across all screens. + + + + + Gets or sets the title of the game window. + + + For Windows 8 and Windows 10 UWP this has no effect. For these platforms the title should be + set by using the DisplayName property found in the app manifest file. + + + + + Determines whether the border of the window is visible. Currently only supported on the WinDX and WinGL/Linux platforms. + + + Thrown when trying to use this property on a platform other than the WinDX and WinGL/Linux platforms. + + + + + Use this event to retrieve text for objects like textbox's. + This event is not raised by noncharacter keys. + This event also supports key repeat. + For more information this event is based off: + http://msdn.microsoft.com/en-AU/library/system.windows.forms.control.keypress.aspx + + + This event is only supported on the Windows DirectX, Windows OpenGL and Linux platforms. + + + + + Contains commonly used precalculated values and mathematical operations. + + + + + Represents the mathematical constant e(2.71828175). + + + + + Represents the log base ten of e(0.4342945). + + + + + Represents the log base two of e(1.442695). + + + + + Represents the value of pi(3.14159274). + + + + + Represents the value of pi divided by two(1.57079637). + + + + + Represents the value of pi divided by four(0.7853982). + + + + + Represents the value of pi times two(6.28318548). + + + + + Returns the Cartesian coordinate for one axis of a point that is defined by a given triangle and two normalized barycentric (areal) coordinates. + + The coordinate on one axis of vertex 1 of the defining triangle. + The coordinate on the same axis of vertex 2 of the defining triangle. + The coordinate on the same axis of vertex 3 of the defining triangle. + The normalized barycentric (areal) coordinate b2, equal to the weighting factor for vertex 2, the coordinate of which is specified in value2. + The normalized barycentric (areal) coordinate b3, equal to the weighting factor for vertex 3, the coordinate of which is specified in value3. + Cartesian coordinate of the specified point with respect to the axis being used. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + A position that is the result of the Catmull-Rom interpolation. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. If value is less than min, min will be returned. + The maximum value. If value is greater than max, max will be returned. + The clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. If value is less than min, min will be returned. + The maximum value. If value is greater than max, max will be returned. + The clamped value. + + + + Calculates the absolute value of the difference of two values. + + Source value. + Source value. + Distance between the two values. + + + + Performs a Hermite spline interpolation. + + Source position. + Source tangent. + Source position. + Source tangent. + Weighting factor. + The result of the Hermite spline interpolation. + + + + Linearly interpolates between two values. + + Source value. + Destination value. + Value between 0 and 1 indicating the weight of value2. + Interpolated value. + This method performs the linear interpolation based on the following formula: + value1 + (value2 - value1) * amount. + Passing amount a value of 0 will cause value1 to be returned, a value of 1 will cause value2 to be returned. + See for a less efficient version with more precision around edge cases. + + + + + Linearly interpolates between two values. + This method is a less efficient, more precise version of . + See remarks for more info. + + Source value. + Destination value. + Value between 0 and 1 indicating the weight of value2. + Interpolated value. + This method performs the linear interpolation based on the following formula: + ((1 - amount) * value1) + (value2 * amount). + Passing amount a value of 0 will cause value1 to be returned, a value of 1 will cause value2 to be returned. + This method does not have the floating point precision issue that has. + i.e. If there is a big gap between value1 and value2 in magnitude (e.g. value1=10000000000000000, value2=1), + right at the edge of the interpolation range (amount=1), will return 0 (whereas it should return 1). + This also holds for value1=10^17, value2=10; value1=10^18,value2=10^2... so on. + For an in depth explanation of the issue, see below references: + Relevant Wikipedia Article: https://en.wikipedia.org/wiki/Linear_interpolation#Programming_language_support + Relevant StackOverflow Answer: http://stackoverflow.com/questions/4353525/floating-point-linear-interpolation#answer-23716956 + + + + + Returns the greater of two values. + + Source value. + Source value. + The greater value. + + + + Returns the greater of two values. + + Source value. + Source value. + The greater value. + + + + Returns the lesser of two values. + + Source value. + Source value. + The lesser value. + + + + Returns the lesser of two values. + + Source value. + Source value. + The lesser value. + + + + Interpolates between two values using a cubic equation. + + Source value. + Source value. + Weighting value. + Interpolated value. + + + + Converts radians to degrees. + + The angle in radians. + The angle in degrees. + + This method uses double precission internally, + though it returns single float + Factor = 180 / pi + + + + + Converts degrees to radians. + + The angle in degrees. + The angle in radians. + + This method uses double precission internally, + though it returns single float + Factor = pi / 180 + + + + + Reduces a given angle to a value between π and -π. + + The angle to reduce, in radians. + The new angle, in radians. + + + + Determines if value is powered by two. + + A value. + true if value is powered by two; otherwise false. + + + + Represents the right-handed 4x4 floating point matrix, which can store translation, scale and rotation information. + + + + + Constructs a matrix. + + A first row and first column value. + A first row and second column value. + A first row and third column value. + A first row and fourth column value. + A second row and first column value. + A second row and second column value. + A second row and third column value. + A second row and fourth column value. + A third row and first column value. + A third row and second column value. + A third row and third column value. + A third row and fourth column value. + A fourth row and first column value. + A fourth row and second column value. + A fourth row and third column value. + A fourth row and fourth column value. + + + + Constructs a matrix. + + A first row of the created matrix. + A second row of the created matrix. + A third row of the created matrix. + A fourth row of the created matrix. + + + + A first row and first column value. + + + + + A first row and second column value. + + + + + A first row and third column value. + + + + + A first row and fourth column value. + + + + + A second row and first column value. + + + + + A second row and second column value. + + + + + A second row and third column value. + + + + + A second row and fourth column value. + + + + + A third row and first column value. + + + + + A third row and second column value. + + + + + A third row and third column value. + + + + + A third row and fourth column value. + + + + + A fourth row and first column value. + + + + + A fourth row and second column value. + + + + + A fourth row and third column value. + + + + + A fourth row and fourth column value. + + + + + Creates a new which contains sum of two matrixes. + + The first matrix to add. + The second matrix to add. + The result of the matrix addition. + + + + Creates a new which contains sum of two matrixes. + + The first matrix to add. + The second matrix to add. + The result of the matrix addition as an output parameter. + + + + Creates a new for spherical billboarding that rotates around specified object position. + + Position of billboard object. It will rotate around that vector. + The camera position. + The camera up vector. + Optional camera forward vector. + The for spherical billboarding. + + + + Creates a new for spherical billboarding that rotates around specified object position. + + Position of billboard object. It will rotate around that vector. + The camera position. + The camera up vector. + Optional camera forward vector. + The for spherical billboarding as an output parameter. + + + + Creates a new for cylindrical billboarding that rotates around specified axis. + + Object position the billboard will rotate around. + Camera position. + Axis of billboard for rotation. + Optional camera forward vector. + Optional object forward vector. + The for cylindrical billboarding. + + + + Creates a new for cylindrical billboarding that rotates around specified axis. + + Object position the billboard will rotate around. + Camera position. + Axis of billboard for rotation. + Optional camera forward vector. + Optional object forward vector. + The for cylindrical billboarding as an output parameter. + + + + Creates a new which contains the rotation moment around specified axis. + + The axis of rotation. + The angle of rotation in radians. + The rotation . + + + + Creates a new which contains the rotation moment around specified axis. + + The axis of rotation. + The angle of rotation in radians. + The rotation as an output parameter. + + + + Creates a new rotation from a . + + of rotation moment. + The rotation . + + + + Creates a new rotation from a . + + of rotation moment. + The rotation as an output parameter. + + + + Creates a new rotation from the specified yaw, pitch and roll values. + + The yaw rotation value in radians. + The pitch rotation value in radians. + The roll rotation value in radians. + The rotation . + For more information about yaw, pitch and roll visit http://en.wikipedia.org/wiki/Euler_angles. + + + + + Creates a new rotation from the specified yaw, pitch and roll values. + + The yaw rotation value in radians. + The pitch rotation value in radians. + The roll rotation value in radians. + The rotation as an output parameter. + For more information about yaw, pitch and roll visit http://en.wikipedia.org/wiki/Euler_angles. + + + + + Creates a new viewing . + + Position of the camera. + Lookup vector of the camera. + The direction of the upper edge of the camera. + The viewing . + + + + Creates a new viewing . + + Position of the camera. + Lookup vector of the camera. + The direction of the upper edge of the camera. + The viewing as an output parameter. + + + + Creates a new projection for orthographic view. + + Width of the viewing volume. + Height of the viewing volume. + Depth of the near plane. + Depth of the far plane. + The new projection for orthographic view. + + + + Creates a new projection for orthographic view. + + Width of the viewing volume. + Height of the viewing volume. + Depth of the near plane. + Depth of the far plane. + The new projection for orthographic view as an output parameter. + + + + Creates a new projection for customized orthographic view. + + Lower x-value at the near plane. + Upper x-value at the near plane. + Lower y-coordinate at the near plane. + Upper y-value at the near plane. + Depth of the near plane. + Depth of the far plane. + The new projection for customized orthographic view. + + + + Creates a new projection for customized orthographic view. + + The viewing volume. + Depth of the near plane. + Depth of the far plane. + The new projection for customized orthographic view. + + + + Creates a new projection for customized orthographic view. + + Lower x-value at the near plane. + Upper x-value at the near plane. + Lower y-coordinate at the near plane. + Upper y-value at the near plane. + Depth of the near plane. + Depth of the far plane. + The new projection for customized orthographic view as an output parameter. + + + + Creates a new projection for perspective view. + + Width of the viewing volume. + Height of the viewing volume. + Distance to the near plane. + Distance to the far plane. + The new projection for perspective view. + + + + Creates a new projection for perspective view. + + Width of the viewing volume. + Height of the viewing volume. + Distance to the near plane. + Distance to the far plane. + The new projection for perspective view as an output parameter. + + + + Creates a new projection for perspective view with field of view. + + Field of view in the y direction in radians. + Width divided by height of the viewing volume. + Distance to the near plane. + Distance to the far plane. + The new projection for perspective view with FOV. + + + + Creates a new projection for perspective view with field of view. + + Field of view in the y direction in radians. + Width divided by height of the viewing volume. + Distance of the near plane. + Distance of the far plane. + The new projection for perspective view with FOV as an output parameter. + + + + Creates a new projection for customized perspective view. + + Lower x-value at the near plane. + Upper x-value at the near plane. + Lower y-coordinate at the near plane. + Upper y-value at the near plane. + Distance to the near plane. + Distance to the far plane. + The new for customized perspective view. + + + + Creates a new projection for customized perspective view. + + The viewing volume. + Distance to the near plane. + Distance to the far plane. + The new for customized perspective view. + + + + Creates a new projection for customized perspective view. + + Lower x-value at the near plane. + Upper x-value at the near plane. + Lower y-coordinate at the near plane. + Upper y-value at the near plane. + Distance to the near plane. + Distance to the far plane. + The new for customized perspective view as an output parameter. + + + + Creates a new rotation around X axis. + + Angle in radians. + The rotation around X axis. + + + + Creates a new rotation around X axis. + + Angle in radians. + The rotation around X axis as an output parameter. + + + + Creates a new rotation around Y axis. + + Angle in radians. + The rotation around Y axis. + + + + Creates a new rotation around Y axis. + + Angle in radians. + The rotation around Y axis as an output parameter. + + + + Creates a new rotation around Z axis. + + Angle in radians. + The rotation around Z axis. + + + + Creates a new rotation around Z axis. + + Angle in radians. + The rotation around Z axis as an output parameter. + + + + Creates a new scaling . + + Scale value for all three axises. + The scaling . + + + + Creates a new scaling . + + Scale value for all three axises. + The scaling as an output parameter. + + + + Creates a new scaling . + + Scale value for X axis. + Scale value for Y axis. + Scale value for Z axis. + The scaling . + + + + Creates a new scaling . + + Scale value for X axis. + Scale value for Y axis. + Scale value for Z axis. + The scaling as an output parameter. + + + + Creates a new scaling . + + representing x,y and z scale values. + The scaling . + + + + Creates a new scaling . + + representing x,y and z scale values. + The scaling as an output parameter. + + + + Creates a new that flattens geometry into a specified as if casting a shadow from a specified light source. + + A vector specifying the direction from which the light that will cast the shadow is coming. + The plane onto which the new matrix should flatten geometry so as to cast a shadow. + A that can be used to flatten geometry onto the specified plane from the specified direction. + + + + Creates a new that flattens geometry into a specified as if casting a shadow from a specified light source. + + A vector specifying the direction from which the light that will cast the shadow is coming. + The plane onto which the new matrix should flatten geometry so as to cast a shadow. + A that can be used to flatten geometry onto the specified plane from the specified direction as an output parameter. + + + + Creates a new translation . + + X coordinate of translation. + Y coordinate of translation. + Z coordinate of translation. + The translation . + + + + Creates a new translation . + + X,Y and Z coordinates of translation. + The translation as an output parameter. + + + + Creates a new translation . + + X,Y and Z coordinates of translation. + The translation . + + + + Creates a new translation . + + X coordinate of translation. + Y coordinate of translation. + Z coordinate of translation. + The translation as an output parameter. + + + + Creates a new reflection . + + The plane that used for reflection calculation. + The reflection . + + + + Creates a new reflection . + + The plane that used for reflection calculation. + The reflection as an output parameter. + + + + Creates a new world . + + The position vector. + The forward direction vector. + The upward direction vector. Usually . + The world . + + + + Creates a new world . + + The position vector. + The forward direction vector. + The upward direction vector. Usually . + The world as an output parameter. + + + + Decomposes this matrix to translation, rotation and scale elements. Returns true if matrix can be decomposed; false otherwise. + + Scale vector as an output parameter. + Rotation quaternion as an output parameter. + Translation vector as an output parameter. + true if matrix can be decomposed; false otherwise. + + + + Returns a determinant of this . + + Determinant of this + See more about determinant here - http://en.wikipedia.org/wiki/Determinant. + + + + + Divides the elements of a by the elements of another matrix. + + Source . + Divisor . + The result of dividing the matrix. + + + + Divides the elements of a by the elements of another matrix. + + Source . + Divisor . + The result of dividing the matrix as an output parameter. + + + + Divides the elements of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a matrix by a scalar. + + + + Divides the elements of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a matrix by a scalar as an output parameter. + + + + Compares whether current instance is equal to specified without any tolerance. + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified without any tolerance. + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Creates a new which contains inversion of the specified matrix. + + Source . + The inverted matrix. + + + + Creates a new which contains inversion of the specified matrix. + + Source . + The inverted matrix as output parameter. + + + + Creates a new that contains linear interpolation of the values in specified matrixes. + + The first . + The second . + Weighting value(between 0.0 and 1.0). + >The result of linear interpolation of the specified matrixes. + + + + Creates a new that contains linear interpolation of the values in specified matrixes. + + The first . + The second . + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified matrixes as an output parameter. + + + + Creates a new that contains a multiplication of two matrix. + + Source . + Source . + Result of the matrix multiplication. + + + + Creates a new that contains a multiplication of two matrix. + + Source . + Source . + Result of the matrix multiplication as an output parameter. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + Result of the matrix multiplication with a scalar. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + Result of the matrix multiplication with a scalar as an output parameter. + + + + Copy the values of specified to the float array. + + The source . + The array which matrix values will be stored. + + Required for OpenGL 2.0 projection matrix stuff. + + + + + Returns a matrix with the all values negated. + + Source . + Result of the matrix negation. + + + + Returns a matrix with the all values negated. + + Source . + Result of the matrix negation as an output parameter. + + + + Adds two matrixes. + + Source on the left of the add sign. + Source on the right of the add sign. + Sum of the matrixes. + + + + Divides the elements of a by the elements of another . + + Source on the left of the div sign. + Divisor on the right of the div sign. + The result of dividing the matrixes. + + + + Divides the elements of a by a scalar. + + Source on the left of the div sign. + Divisor scalar on the right of the div sign. + The result of dividing a matrix by a scalar. + + + + Compares whether two instances are equal without any tolerance. + + Source on the left of the equal sign. + Source on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal without any tolerance. + + Source on the left of the not equal sign. + Source on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Multiplies two matrixes. + + Source on the left of the mul sign. + Source on the right of the mul sign. + Result of the matrix multiplication. + + Using matrix multiplication algorithm - see http://en.wikipedia.org/wiki/Matrix_multiplication. + + + + + Multiplies the elements of matrix by a scalar. + + Source on the left of the mul sign. + Scalar value on the right of the mul sign. + Result of the matrix multiplication with a scalar. + + + + Subtracts the values of one from another . + + Source on the left of the sub sign. + Source on the right of the sub sign. + Result of the matrix subtraction. + + + + Inverts values in the specified . + + Source on the right of the sub sign. + Result of the inversion. + + + + Creates a new that contains subtraction of one matrix from another. + + The first . + The second . + The result of the matrix subtraction. + + + + Creates a new that contains subtraction of one matrix from another. + + The first . + The second . + The result of the matrix subtraction as an output parameter. + + + + Returns a representation of this in the format: + {M11:[] M12:[] M13:[] M14:[]} + {M21:[] M12:[] M13:[] M14:[]} + {M31:[] M32:[] M33:[] M34:[]} + {M41:[] M42:[] M43:[] M44:[]} + + A representation of this . + + + + Swap the matrix rows and columns. + + The matrix for transposing operation. + The new which contains the transposing result. + + + + Swap the matrix rows and columns. + + The matrix for transposing operation. + The new which contains the transposing result as an output parameter. + + + + Helper method for using the Laplace expansion theorem using two rows expansions to calculate major and + minor determinants of a 4x4 matrix. This method is used for inverting a matrix. + + + + + The backward vector formed from the third row M31, M32, M33 elements. + + + + + The down vector formed from the second row -M21, -M22, -M23 elements. + + + + + The forward vector formed from the third row -M31, -M32, -M33 elements. + + + + + Returns the identity matrix. + + + + + The left vector formed from the first row -M11, -M12, -M13 elements. + + + + + The right vector formed from the first row M11, M12, M13 elements. + + + + + Rotation stored in this matrix. + + + + + Position stored in this matrix. + + + + + Scale stored in this matrix. + + + + + The upper vector formed from the second row M21, M22, M23 elements. + + + + + Provides functionality to handle input from keyboards, mice, gamepads, etc. + + + + + Support for playing sound effects and XACT audio. + + + + + The runtime support for loading content pipeline content. + + + + + Returns a value indicating what side (positive/negative) of a plane a point is + + The point to check with + The plane to check against + Greater than zero if on the positive side, less than zero if on the negative size, 0 otherwise + + + + Returns the perpendicular distance from a point to a plane + + The point to check + The place to check + The perpendicular distance from the point to the plane + + + + Transforms a normalized plane by a matrix. + + The normalized plane to transform. + The transformation matrix. + The transformed plane. + + + + Transforms a normalized plane by a matrix. + + The normalized plane to transform. + The transformation matrix. + The transformed plane. + + + + Transforms a normalized plane by a quaternion rotation. + + The normalized plane to transform. + The quaternion rotation. + The transformed plane. + + + + Transforms a normalized plane by a quaternion rotation. + + The normalized plane to transform. + The quaternion rotation. + The transformed plane. + + + + Defines the intersection between a and a bounding volume. + + + + + There is no intersection, the bounding volume is in the negative half space of the plane. + + + + + There is no intersection, the bounding volume is in the positive half space of the plane. + + + + + The plane is intersected. + + + + + Defines the index of player for various MonoGame components. + + + + + The first player index. + + + + + The second player index. + + + + + The third player index. + + + + + The fourth player index. + + + + + Describes a 2D-point. + + + + + The x coordinate of this . + + + + + The y coordinate of this . + + + + + Constructs a point with X and Y from two values. + + The x coordinate in 2d-space. + The y coordinate in 2d-space. + + + + Constructs a point with X and Y set to the same value. + + The x and y coordinates in 2d-space. + + + + Adds two points. + + Source on the left of the add sign. + Source on the right of the add sign. + Sum of the points. + + + + Subtracts a from a . + + Source on the left of the sub sign. + Source on the right of the sub sign. + Result of the subtraction. + + + + Multiplies the components of two points by each other. + + Source on the left of the mul sign. + Source on the right of the mul sign. + Result of the multiplication. + + + + Divides the components of a by the components of another . + + Source on the left of the div sign. + Divisor on the right of the div sign. + The result of dividing the points. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Returns a representation of this in the format: + {X:[] Y:[]} + + representation of this . + + + + Gets a representation for this object. + + A representation for this object. + + + + Returns a with coordinates 0, 0. + + + + + The arguments to the event. + + + + + Create a new instance of the event. + + The default settings to be used in device creation. + + + + The default settings that will be used in device creation. + + + + + An efficient mathematical representation for three dimensional rotations. + + + + + The x coordinate of this . + + + + + The y coordinate of this . + + + + + The z coordinate of this . + + + + + The rotation component of this . + + + + + Constructs a quaternion with X, Y, Z and W from four values. + + The x coordinate in 3d-space. + The y coordinate in 3d-space. + The z coordinate in 3d-space. + The rotation component. + + + + Constructs a quaternion with X, Y, Z from and rotation component from a scalar. + + The x, y, z coordinates in 3d-space. + The rotation component. + + + + Constructs a quaternion from . + + The x, y, z coordinates in 3d-space and the rotation component. + + + + Creates a new that contains the sum of two quaternions. + + Source . + Source . + The result of the quaternion addition. + + + + Creates a new that contains the sum of two quaternions. + + Source . + Source . + The result of the quaternion addition as an output parameter. + + + + Creates a new that contains concatenation between two quaternion. + + The first to concatenate. + The second to concatenate. + The result of rotation of followed by rotation. + + + + Creates a new that contains concatenation between two quaternion. + + The first to concatenate. + The second to concatenate. + The result of rotation of followed by rotation as an output parameter. + + + + Transforms this quaternion into its conjugated version. + + + + + Creates a new that contains conjugated version of the specified quaternion. + + The quaternion which values will be used to create the conjugated version. + The conjugate version of the specified quaternion. + + + + Creates a new that contains conjugated version of the specified quaternion. + + The quaternion which values will be used to create the conjugated version. + The conjugated version of the specified quaternion as an output parameter. + + + + Creates a new from the specified axis and angle. + + The axis of rotation. + The angle in radians. + The new quaternion builded from axis and angle. + + + + Creates a new from the specified axis and angle. + + The axis of rotation. + The angle in radians. + The new quaternion builded from axis and angle as an output parameter. + + + + Creates a new from the specified . + + The rotation matrix. + A quaternion composed from the rotation part of the matrix. + + + + Creates a new from the specified . + + The rotation matrix. + A quaternion composed from the rotation part of the matrix as an output parameter. + + + + Creates a new from the specified yaw, pitch and roll angles. + + Yaw around the y axis in radians. + Pitch around the x axis in radians. + Roll around the z axis in radians. + A new quaternion from the concatenated yaw, pitch, and roll angles. + + + + Creates a new from the specified yaw, pitch and roll angles. + + Yaw around the y axis in radians. + Pitch around the x axis in radians. + Roll around the z axis in radians. + A new quaternion from the concatenated yaw, pitch, and roll angles as an output parameter. + + + + Divides a by the other . + + Source . + Divisor . + The result of dividing the quaternions. + + + + Divides a by the other . + + Source . + Divisor . + The result of dividing the quaternions as an output parameter. + + + + Returns a dot product of two quaternions. + + The first quaternion. + The second quaternion. + The dot product of two quaternions. + + + + Returns a dot product of two quaternions. + + The first quaternion. + The second quaternion. + The dot product of two quaternions as an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Returns the inverse quaternion which represents the opposite rotation. + + Source . + The inverse quaternion. + + + + Returns the inverse quaternion which represents the opposite rotation. + + Source . + The inverse quaternion as an output parameter. + + + + Returns the magnitude of the quaternion components. + + The magnitude of the quaternion components. + + + + Returns the squared magnitude of the quaternion components. + + The squared magnitude of the quaternion components. + + + + Performs a linear blend between two quaternions. + + Source . + Source . + The blend amount where 0 returns and 1 . + The result of linear blending between two quaternions. + + + + Performs a linear blend between two quaternions. + + Source . + Source . + The blend amount where 0 returns and 1 . + The result of linear blending between two quaternions as an output parameter. + + + + Performs a spherical linear blend between two quaternions. + + Source . + Source . + The blend amount where 0 returns and 1 . + The result of spherical linear blending between two quaternions. + + + + Performs a spherical linear blend between two quaternions. + + Source . + Source . + The blend amount where 0 returns and 1 . + The result of spherical linear blending between two quaternions as an output parameter. + + + + Creates a new that contains subtraction of one from another. + + Source . + Source . + The result of the quaternion subtraction. + + + + Creates a new that contains subtraction of one from another. + + Source . + Source . + The result of the quaternion subtraction as an output parameter. + + + + Creates a new that contains a multiplication of two quaternions. + + Source . + Source . + The result of the quaternion multiplication. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the quaternion multiplication with a scalar. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the quaternion multiplication with a scalar as an output parameter. + + + + Creates a new that contains a multiplication of two quaternions. + + Source . + Source . + The result of the quaternion multiplication as an output parameter. + + + + Flips the sign of the all the quaternion components. + + Source . + The result of the quaternion negation. + + + + Flips the sign of the all the quaternion components. + + Source . + The result of the quaternion negation as an output parameter. + + + + Scales the quaternion magnitude to unit length. + + + + + Scales the quaternion magnitude to unit length. + + Source . + The unit length quaternion. + + + + Scales the quaternion magnitude to unit length. + + Source . + The unit length quaternion an output parameter. + + + + Returns a representation of this in the format: + {X:[] Y:[] Z:[] W:[]} + + A representation of this . + + + + Gets a representation for this object. + + A representation for this object. + + + + Adds two quaternions. + + Source on the left of the add sign. + Source on the right of the add sign. + Sum of the vectors. + + + + Divides a by the other . + + Source on the left of the div sign. + Divisor on the right of the div sign. + The result of dividing the quaternions. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Multiplies two quaternions. + + Source on the left of the mul sign. + Source on the right of the mul sign. + Result of the quaternions multiplication. + + + + Multiplies the components of quaternion by a scalar. + + Source on the left of the mul sign. + Scalar value on the right of the mul sign. + Result of the quaternion multiplication with a scalar. + + + + Subtracts a from a . + + Source on the left of the sub sign. + Source on the right of the sub sign. + Result of the quaternion subtraction. + + + + Flips the sign of the all the quaternion components. + + Source on the right of the sub sign. + The result of the quaternion negation. + + + + Returns a quaternion representing no rotation. + + + + + Describes a 2D-rectangle. + + + + + The x coordinate of the top-left corner of this . + + + + + The y coordinate of the top-left corner of this . + + + + + The width of this . + + + + + The height of this . + + + + + Creates a new instance of struct, with the specified + position, width, and height. + + The x coordinate of the top-left corner of the created . + The y coordinate of the top-left corner of the created . + The width of the created . + The height of the created . + + + + Creates a new instance of struct, with the specified + location and size. + + The x and y coordinates of the top-left corner of the created . + The width and height of the created . + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Gets whether or not the provided coordinates lie within the bounds of this . + + The x coordinate of the point to check for containment. + The y coordinate of the point to check for containment. + true if the provided coordinates lie inside this ; false otherwise. + + + + Gets whether or not the provided coordinates lie within the bounds of this . + + The x coordinate of the point to check for containment. + The y coordinate of the point to check for containment. + true if the provided coordinates lie inside this ; false otherwise. + + + + Gets whether or not the provided lies within the bounds of this . + + The coordinates to check for inclusion in this . + true if the provided lies inside this ; false otherwise. + + + + Gets whether or not the provided lies within the bounds of this . + + The coordinates to check for inclusion in this . + true if the provided lies inside this ; false otherwise. As an output parameter. + + + + Gets whether or not the provided lies within the bounds of this . + + The coordinates to check for inclusion in this . + true if the provided lies inside this ; false otherwise. + + + + Gets whether or not the provided lies within the bounds of this . + + The coordinates to check for inclusion in this . + true if the provided lies inside this ; false otherwise. As an output parameter. + + + + Gets whether or not the provided lies within the bounds of this . + + The to check for inclusion in this . + true if the provided 's bounds lie entirely inside this ; false otherwise. + + + + Gets whether or not the provided lies within the bounds of this . + + The to check for inclusion in this . + true if the provided 's bounds lie entirely inside this ; false otherwise. As an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Adjusts the edges of this by specified horizontal and vertical amounts. + + Value to adjust the left and right edges. + Value to adjust the top and bottom edges. + + + + Adjusts the edges of this by specified horizontal and vertical amounts. + + Value to adjust the left and right edges. + Value to adjust the top and bottom edges. + + + + Gets whether or not the other intersects with this rectangle. + + The other rectangle for testing. + true if other intersects with this rectangle; false otherwise. + + + + Gets whether or not the other intersects with this rectangle. + + The other rectangle for testing. + true if other intersects with this rectangle; false otherwise. As an output parameter. + + + + Creates a new that contains overlapping region of two other rectangles. + + The first . + The second . + Overlapping region of the two rectangles. + + + + Creates a new that contains overlapping region of two other rectangles. + + The first . + The second . + Overlapping region of the two rectangles as an output parameter. + + + + Changes the of this . + + The x coordinate to add to this . + The y coordinate to add to this . + + + + Changes the of this . + + The x coordinate to add to this . + The y coordinate to add to this . + + + + Changes the of this . + + The x and y components to add to this . + + + + Changes the of this . + + The x and y components to add to this . + + + + Returns a representation of this in the format: + {X:[] Y:[] Width:[] Height:[]} + + representation of this . + + + + Creates a new that completely contains two other rectangles. + + The first . + The second . + The union of the two rectangles. + + + + Creates a new that completely contains two other rectangles. + + The first . + The second . + The union of the two rectangles as an output parameter. + + + + Returns a with X=0, Y=0, Width=0, Height=0. + + + + + Returns the x coordinate of the left edge of this . + + + + + Returns the x coordinate of the right edge of this . + + + + + Returns the y coordinate of the top edge of this . + + + + + Returns the y coordinate of the bottom edge of this . + + + + + Whether or not this has a and + of 0, and a of (0, 0). + + + + + The top-left coordinates of this . + + + + + The width-height coordinates of this . + + + + + A located in the center of this . + + + If or is an odd number, + the center point will be rounded down. + + + + + This class is used for the game window's TextInput event as EventArgs. + + + + + Returns an open stream to an exsiting file in the title storage area. + + The filepath relative to the title storage area. + A open stream or null if the file is not found. + + + + Describes a 2D-vector. + + + + + The x coordinate of this . + + + + + The y coordinate of this . + + + + + Constructs a 2d vector with X and Y from two values. + + The x coordinate in 2d-space. + The y coordinate in 2d-space. + + + + Constructs a 2d vector with X and Y set to the same value. + + The x and y coordinates in 2d-space. + + + + Inverts values in the specified . + + Source on the right of the sub sign. + Result of the inversion. + + + + Adds two vectors. + + Source on the left of the add sign. + Source on the right of the add sign. + Sum of the vectors. + + + + Subtracts a from a . + + Source on the left of the sub sign. + Source on the right of the sub sign. + Result of the vector subtraction. + + + + Multiplies the components of two vectors by each other. + + Source on the left of the mul sign. + Source on the right of the mul sign. + Result of the vector multiplication. + + + + Multiplies the components of vector by a scalar. + + Source on the left of the mul sign. + Scalar value on the right of the mul sign. + Result of the vector multiplication with a scalar. + + + + Multiplies the components of vector by a scalar. + + Scalar value on the left of the mul sign. + Source on the right of the mul sign. + Result of the vector multiplication with a scalar. + + + + Divides the components of a by the components of another . + + Source on the left of the div sign. + Divisor on the right of the div sign. + The result of dividing the vectors. + + + + Divides the components of a by a scalar. + + Source on the left of the div sign. + Divisor scalar on the right of the div sign. + The result of dividing a vector by a scalar. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Performs vector addition on and . + + The first vector to add. + The second vector to add. + The result of the vector addition. + + + + Performs vector addition on and + , storing the result of the + addition in . + + The first vector to add. + The second vector to add. + The result of the vector addition. + + + + Creates a new that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle. + + The first vector of 2d-triangle. + The second vector of 2d-triangle. + The third vector of 2d-triangle. + Barycentric scalar b2 which represents a weighting factor towards second vector of 2d-triangle. + Barycentric scalar b3 which represents a weighting factor towards third vector of 2d-triangle. + The cartesian translation of barycentric coordinates. + + + + Creates a new that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle. + + The first vector of 2d-triangle. + The second vector of 2d-triangle. + The third vector of 2d-triangle. + Barycentric scalar b2 which represents a weighting factor towards second vector of 2d-triangle. + Barycentric scalar b3 which represents a weighting factor towards third vector of 2d-triangle. + The cartesian translation of barycentric coordinates as an output parameter. + + + + Creates a new that contains CatmullRom interpolation of the specified vectors. + + The first vector in interpolation. + The second vector in interpolation. + The third vector in interpolation. + The fourth vector in interpolation. + Weighting factor. + The result of CatmullRom interpolation. + + + + Creates a new that contains CatmullRom interpolation of the specified vectors. + + The first vector in interpolation. + The second vector in interpolation. + The third vector in interpolation. + The fourth vector in interpolation. + Weighting factor. + The result of CatmullRom interpolation as an output parameter. + + + + Clamps the specified value within a range. + + The value to clamp. + The min value. + The max value. + The clamped value. + + + + Clamps the specified value within a range. + + The value to clamp. + The min value. + The max value. + The clamped value as an output parameter. + + + + Returns the distance between two vectors. + + The first vector. + The second vector. + The distance between two vectors. + + + + Returns the distance between two vectors. + + The first vector. + The second vector. + The distance between two vectors as an output parameter. + + + + Returns the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between two vectors. + + + + Returns the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between two vectors as an output parameter. + + + + Divides the components of a by the components of another . + + Source . + Divisor . + The result of dividing the vectors. + + + + Divides the components of a by the components of another . + + Source . + Divisor . + The result of dividing the vectors as an output parameter. + + + + Divides the components of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a vector by a scalar. + + + + Divides the components of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a vector by a scalar as an output parameter. + + + + Returns a dot product of two vectors. + + The first vector. + The second vector. + The dot product of two vectors. + + + + Returns a dot product of two vectors. + + The first vector. + The second vector. + The dot product of two vectors as an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Creates a new that contains hermite spline interpolation. + + The first position vector. + The first tangent vector. + The second position vector. + The second tangent vector. + Weighting factor. + The hermite spline interpolation vector. + + + + Creates a new that contains hermite spline interpolation. + + The first position vector. + The first tangent vector. + The second position vector. + The second tangent vector. + Weighting factor. + The hermite spline interpolation vector as an output parameter. + + + + Returns the length of this . + + The length of this . + + + + Returns the squared length of this . + + The squared length of this . + + + + Creates a new that contains linear interpolation of the specified vectors. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors. + + + + Creates a new that contains linear interpolation of the specified vectors. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains linear interpolation of the specified vectors. + Uses on MathHelper for the interpolation. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors. + + + + Creates a new that contains linear interpolation of the specified vectors. + Uses on MathHelper for the interpolation. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains a maximal values from the two vectors. + + The first vector. + The second vector. + The with maximal values from the two vectors. + + + + Creates a new that contains a maximal values from the two vectors. + + The first vector. + The second vector. + The with maximal values from the two vectors as an output parameter. + + + + Creates a new that contains a minimal values from the two vectors. + + The first vector. + The second vector. + The with minimal values from the two vectors. + + + + Creates a new that contains a minimal values from the two vectors. + + The first vector. + The second vector. + The with minimal values from the two vectors as an output parameter. + + + + Creates a new that contains a multiplication of two vectors. + + Source . + Source . + The result of the vector multiplication. + + + + Creates a new that contains a multiplication of two vectors. + + Source . + Source . + The result of the vector multiplication as an output parameter. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the vector multiplication with a scalar. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the multiplication with a scalar as an output parameter. + + + + Creates a new that contains the specified vector inversion. + + Source . + The result of the vector inversion. + + + + Creates a new that contains the specified vector inversion. + + Source . + The result of the vector inversion as an output parameter. + + + + Turns this to a unit vector with the same direction. + + + + + Creates a new that contains a normalized values from another vector. + + Source . + Unit vector. + + + + Creates a new that contains a normalized values from another vector. + + Source . + Unit vector as an output parameter. + + + + Creates a new that contains reflect vector of the given vector and normal. + + Source . + Reflection normal. + Reflected vector. + + + + Creates a new that contains reflect vector of the given vector and normal. + + Source . + Reflection normal. + Reflected vector as an output parameter. + + + + Creates a new that contains cubic interpolation of the specified vectors. + + Source . + Source . + Weighting value. + Cubic interpolation of the specified vectors. + + + + Creates a new that contains cubic interpolation of the specified vectors. + + Source . + Source . + Weighting value. + Cubic interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains subtraction of on from a another. + + Source . + Source . + The result of the vector subtraction. + + + + Creates a new that contains subtraction of on from a another. + + Source . + Source . + The result of the vector subtraction as an output parameter. + + + + Returns a representation of this in the format: + {X:[] Y:[]} + + A representation of this . + + + + Gets a representation for this object. + + A representation for this object. + + + + Creates a new that contains a transformation of 2d-vector by the specified . + + Source . + The transformation . + Transformed . + + + + Creates a new that contains a transformation of 2d-vector by the specified . + + Source . + The transformation . + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 2d-vector by the specified , representing the rotation. + + Source . + The which contains rotation transformation. + Transformed . + + + + Creates a new that contains a transformation of 2d-vector by the specified , representing the rotation. + + Source . + The which contains rotation transformation. + Transformed as an output parameter. + + + + Apply transformation on vectors within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The transformation . + Destination array. + The starting index in the destination array, where the first should be written. + The number of vectors to be transformed. + + + + Apply transformation on vectors within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The which contains rotation transformation. + Destination array. + The starting index in the destination array, where the first should be written. + The number of vectors to be transformed. + + + + Apply transformation on all vectors within array of by the specified and places the results in an another array. + + Source array. + The transformation . + Destination array. + + + + Apply transformation on all vectors within array of by the specified and places the results in an another array. + + Source array. + The which contains rotation transformation. + Destination array. + + + + Creates a new that contains a transformation of the specified normal by the specified . + + Source which represents a normal vector. + The transformation . + Transformed normal. + + + + Creates a new that contains a transformation of the specified normal by the specified . + + Source which represents a normal vector. + The transformation . + Transformed normal as an output parameter. + + + + Apply transformation on normals within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The transformation . + Destination array. + The starting index in the destination array, where the first should be written. + The number of normals to be transformed. + + + + Apply transformation on all normals within array of by the specified and places the results in an another array. + + Source array. + The transformation . + Destination array. + + + + Returns a with components 0, 0. + + + + + Returns a with components 1, 1. + + + + + Returns a with components 1, 0. + + + + + Returns a with components 0, 1. + + + + + Describes a 3D-vector. + + + + + The x coordinate of this . + + + + + The y coordinate of this . + + + + + The z coordinate of this . + + + + + Constructs a 3d vector with X, Y and Z from three values. + + The x coordinate in 3d-space. + The y coordinate in 3d-space. + The z coordinate in 3d-space. + + + + Constructs a 3d vector with X, Y and Z set to the same value. + + The x, y and z coordinates in 3d-space. + + + + Constructs a 3d vector with X, Y from and Z from a scalar. + + The x and y coordinates in 3d-space. + The z coordinate in 3d-space. + + + + Performs vector addition on and . + + The first vector to add. + The second vector to add. + The result of the vector addition. + + + + Performs vector addition on and + , storing the result of the + addition in . + + The first vector to add. + The second vector to add. + The result of the vector addition. + + + + Creates a new that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 3d-triangle. + + The first vector of 3d-triangle. + The second vector of 3d-triangle. + The third vector of 3d-triangle. + Barycentric scalar b2 which represents a weighting factor towards second vector of 3d-triangle. + Barycentric scalar b3 which represents a weighting factor towards third vector of 3d-triangle. + The cartesian translation of barycentric coordinates. + + + + Creates a new that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 3d-triangle. + + The first vector of 3d-triangle. + The second vector of 3d-triangle. + The third vector of 3d-triangle. + Barycentric scalar b2 which represents a weighting factor towards second vector of 3d-triangle. + Barycentric scalar b3 which represents a weighting factor towards third vector of 3d-triangle. + The cartesian translation of barycentric coordinates as an output parameter. + + + + Creates a new that contains CatmullRom interpolation of the specified vectors. + + The first vector in interpolation. + The second vector in interpolation. + The third vector in interpolation. + The fourth vector in interpolation. + Weighting factor. + The result of CatmullRom interpolation. + + + + Creates a new that contains CatmullRom interpolation of the specified vectors. + + The first vector in interpolation. + The second vector in interpolation. + The third vector in interpolation. + The fourth vector in interpolation. + Weighting factor. + The result of CatmullRom interpolation as an output parameter. + + + + Clamps the specified value within a range. + + The value to clamp. + The min value. + The max value. + The clamped value. + + + + Clamps the specified value within a range. + + The value to clamp. + The min value. + The max value. + The clamped value as an output parameter. + + + + Computes the cross product of two vectors. + + The first vector. + The second vector. + The cross product of two vectors. + + + + Computes the cross product of two vectors. + + The first vector. + The second vector. + The cross product of two vectors as an output parameter. + + + + Returns the distance between two vectors. + + The first vector. + The second vector. + The distance between two vectors. + + + + Returns the distance between two vectors. + + The first vector. + The second vector. + The distance between two vectors as an output parameter. + + + + Returns the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between two vectors. + + + + Returns the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between two vectors as an output parameter. + + + + Divides the components of a by the components of another . + + Source . + Divisor . + The result of dividing the vectors. + + + + Divides the components of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a vector by a scalar. + + + + Divides the components of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a vector by a scalar as an output parameter. + + + + Divides the components of a by the components of another . + + Source . + Divisor . + The result of dividing the vectors as an output parameter. + + + + Returns a dot product of two vectors. + + The first vector. + The second vector. + The dot product of two vectors. + + + + Returns a dot product of two vectors. + + The first vector. + The second vector. + The dot product of two vectors as an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Creates a new that contains hermite spline interpolation. + + The first position vector. + The first tangent vector. + The second position vector. + The second tangent vector. + Weighting factor. + The hermite spline interpolation vector. + + + + Creates a new that contains hermite spline interpolation. + + The first position vector. + The first tangent vector. + The second position vector. + The second tangent vector. + Weighting factor. + The hermite spline interpolation vector as an output parameter. + + + + Returns the length of this . + + The length of this . + + + + Returns the squared length of this . + + The squared length of this . + + + + Creates a new that contains linear interpolation of the specified vectors. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors. + + + + Creates a new that contains linear interpolation of the specified vectors. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains linear interpolation of the specified vectors. + Uses on MathHelper for the interpolation. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors. + + + + Creates a new that contains linear interpolation of the specified vectors. + Uses on MathHelper for the interpolation. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains a maximal values from the two vectors. + + The first vector. + The second vector. + The with maximal values from the two vectors. + + + + Creates a new that contains a maximal values from the two vectors. + + The first vector. + The second vector. + The with maximal values from the two vectors as an output parameter. + + + + Creates a new that contains a minimal values from the two vectors. + + The first vector. + The second vector. + The with minimal values from the two vectors. + + + + Creates a new that contains a minimal values from the two vectors. + + The first vector. + The second vector. + The with minimal values from the two vectors as an output parameter. + + + + Creates a new that contains a multiplication of two vectors. + + Source . + Source . + The result of the vector multiplication. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the vector multiplication with a scalar. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the multiplication with a scalar as an output parameter. + + + + Creates a new that contains a multiplication of two vectors. + + Source . + Source . + The result of the vector multiplication as an output parameter. + + + + Creates a new that contains the specified vector inversion. + + Source . + The result of the vector inversion. + + + + Creates a new that contains the specified vector inversion. + + Source . + The result of the vector inversion as an output parameter. + + + + Turns this to a unit vector with the same direction. + + + + + Creates a new that contains a normalized values from another vector. + + Source . + Unit vector. + + + + Creates a new that contains a normalized values from another vector. + + Source . + Unit vector as an output parameter. + + + + Creates a new that contains reflect vector of the given vector and normal. + + Source . + Reflection normal. + Reflected vector. + + + + Creates a new that contains reflect vector of the given vector and normal. + + Source . + Reflection normal. + Reflected vector as an output parameter. + + + + Creates a new that contains cubic interpolation of the specified vectors. + + Source . + Source . + Weighting value. + Cubic interpolation of the specified vectors. + + + + Creates a new that contains cubic interpolation of the specified vectors. + + Source . + Source . + Weighting value. + Cubic interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains subtraction of on from a another. + + Source . + Source . + The result of the vector subtraction. + + + + Creates a new that contains subtraction of on from a another. + + Source . + Source . + The result of the vector subtraction as an output parameter. + + + + Returns a representation of this in the format: + {X:[] Y:[] Z:[]} + + A representation of this . + + + + Creates a new that contains a transformation of 3d-vector by the specified . + + Source . + The transformation . + Transformed . + + + + Creates a new that contains a transformation of 3d-vector by the specified . + + Source . + The transformation . + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 3d-vector by the specified , representing the rotation. + + Source . + The which contains rotation transformation. + Transformed . + + + + Creates a new that contains a transformation of 3d-vector by the specified , representing the rotation. + + Source . + The which contains rotation transformation. + Transformed as an output parameter. + + + + Apply transformation on vectors within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The transformation . + Destination array. + The starting index in the destination array, where the first should be written. + The number of vectors to be transformed. + + + + Apply transformation on vectors within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The which contains rotation transformation. + Destination array. + The starting index in the destination array, where the first should be written. + The number of vectors to be transformed. + + + + Apply transformation on all vectors within array of by the specified and places the results in an another array. + + Source array. + The transformation . + Destination array. + + + + Apply transformation on all vectors within array of by the specified and places the results in an another array. + + Source array. + The which contains rotation transformation. + Destination array. + + + + Creates a new that contains a transformation of the specified normal by the specified . + + Source which represents a normal vector. + The transformation . + Transformed normal. + + + + Creates a new that contains a transformation of the specified normal by the specified . + + Source which represents a normal vector. + The transformation . + Transformed normal as an output parameter. + + + + Apply transformation on normals within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The transformation . + Destination array. + The starting index in the destination array, where the first should be written. + The number of normals to be transformed. + + + + Apply transformation on all normals within array of by the specified and places the results in an another array. + + Source array. + The transformation . + Destination array. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Adds two vectors. + + Source on the left of the add sign. + Source on the right of the add sign. + Sum of the vectors. + + + + Inverts values in the specified . + + Source on the right of the sub sign. + Result of the inversion. + + + + Subtracts a from a . + + Source on the left of the sub sign. + Source on the right of the sub sign. + Result of the vector subtraction. + + + + Multiplies the components of two vectors by each other. + + Source on the left of the mul sign. + Source on the right of the mul sign. + Result of the vector multiplication. + + + + Multiplies the components of vector by a scalar. + + Source on the left of the mul sign. + Scalar value on the right of the mul sign. + Result of the vector multiplication with a scalar. + + + + Multiplies the components of vector by a scalar. + + Scalar value on the left of the mul sign. + Source on the right of the mul sign. + Result of the vector multiplication with a scalar. + + + + Divides the components of a by the components of another . + + Source on the left of the div sign. + Divisor on the right of the div sign. + The result of dividing the vectors. + + + + Divides the components of a by a scalar. + + Source on the left of the div sign. + Divisor scalar on the right of the div sign. + The result of dividing a vector by a scalar. + + + + Returns a with components 0, 0, 0. + + + + + Returns a with components 1, 1, 1. + + + + + Returns a with components 1, 0, 0. + + + + + Returns a with components 0, 1, 0. + + + + + Returns a with components 0, 0, 1. + + + + + Returns a with components 0, 1, 0. + + + + + Returns a with components 0, -1, 0. + + + + + Returns a with components 1, 0, 0. + + + + + Returns a with components -1, 0, 0. + + + + + Returns a with components 0, 0, -1. + + + + + Returns a with components 0, 0, 1. + + + + + Describes a 4D-vector. + + + + + The x coordinate of this . + + + + + The y coordinate of this . + + + + + The z coordinate of this . + + + + + The w coordinate of this . + + + + + Constructs a 3d vector with X, Y, Z and W from four values. + + The x coordinate in 4d-space. + The y coordinate in 4d-space. + The z coordinate in 4d-space. + The w coordinate in 4d-space. + + + + Constructs a 3d vector with X and Z from and Z and W from the scalars. + + The x and y coordinates in 4d-space. + The z coordinate in 4d-space. + The w coordinate in 4d-space. + + + + Constructs a 3d vector with X, Y, Z from and W from a scalar. + + The x, y and z coordinates in 4d-space. + The w coordinate in 4d-space. + + + + Constructs a 4d vector with X, Y, Z and W set to the same value. + + The x, y, z and w coordinates in 4d-space. + + + + Performs vector addition on and . + + The first vector to add. + The second vector to add. + The result of the vector addition. + + + + Performs vector addition on and + , storing the result of the + addition in . + + The first vector to add. + The second vector to add. + The result of the vector addition. + + + + Creates a new that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle. + + The first vector of 4d-triangle. + The second vector of 4d-triangle. + The third vector of 4d-triangle. + Barycentric scalar b2 which represents a weighting factor towards second vector of 4d-triangle. + Barycentric scalar b3 which represents a weighting factor towards third vector of 4d-triangle. + The cartesian translation of barycentric coordinates. + + + + Creates a new that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle. + + The first vector of 4d-triangle. + The second vector of 4d-triangle. + The third vector of 4d-triangle. + Barycentric scalar b2 which represents a weighting factor towards second vector of 4d-triangle. + Barycentric scalar b3 which represents a weighting factor towards third vector of 4d-triangle. + The cartesian translation of barycentric coordinates as an output parameter. + + + + Creates a new that contains CatmullRom interpolation of the specified vectors. + + The first vector in interpolation. + The second vector in interpolation. + The third vector in interpolation. + The fourth vector in interpolation. + Weighting factor. + The result of CatmullRom interpolation. + + + + Creates a new that contains CatmullRom interpolation of the specified vectors. + + The first vector in interpolation. + The second vector in interpolation. + The third vector in interpolation. + The fourth vector in interpolation. + Weighting factor. + The result of CatmullRom interpolation as an output parameter. + + + + Clamps the specified value within a range. + + The value to clamp. + The min value. + The max value. + The clamped value. + + + + Clamps the specified value within a range. + + The value to clamp. + The min value. + The max value. + The clamped value as an output parameter. + + + + Returns the distance between two vectors. + + The first vector. + The second vector. + The distance between two vectors. + + + + Returns the distance between two vectors. + + The first vector. + The second vector. + The distance between two vectors as an output parameter. + + + + Returns the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between two vectors. + + + + Returns the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between two vectors as an output parameter. + + + + Divides the components of a by the components of another . + + Source . + Divisor . + The result of dividing the vectors. + + + + Divides the components of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a vector by a scalar. + + + + Divides the components of a by a scalar. + + Source . + Divisor scalar. + The result of dividing a vector by a scalar as an output parameter. + + + + Divides the components of a by the components of another . + + Source . + Divisor . + The result of dividing the vectors as an output parameter. + + + + Returns a dot product of two vectors. + + The first vector. + The second vector. + The dot product of two vectors. + + + + Returns a dot product of two vectors. + + The first vector. + The second vector. + The dot product of two vectors as an output parameter. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Compares whether current instance is equal to specified . + + The to compare. + true if the instances are equal; false otherwise. + + + + Gets the hash code of this . + + Hash code of this . + + + + Creates a new that contains hermite spline interpolation. + + The first position vector. + The first tangent vector. + The second position vector. + The second tangent vector. + Weighting factor. + The hermite spline interpolation vector. + + + + Creates a new that contains hermite spline interpolation. + + The first position vector. + The first tangent vector. + The second position vector. + The second tangent vector. + Weighting factor. + The hermite spline interpolation vector as an output parameter. + + + + Returns the length of this . + + The length of this . + + + + Returns the squared length of this . + + The squared length of this . + + + + Creates a new that contains linear interpolation of the specified vectors. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors. + + + + Creates a new that contains linear interpolation of the specified vectors. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains linear interpolation of the specified vectors. + Uses on MathHelper for the interpolation. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors. + + + + Creates a new that contains linear interpolation of the specified vectors. + Uses on MathHelper for the interpolation. + Less efficient but more precise compared to . + See remarks section of on MathHelper for more info. + + The first vector. + The second vector. + Weighting value(between 0.0 and 1.0). + The result of linear interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains a maximal values from the two vectors. + + The first vector. + The second vector. + The with maximal values from the two vectors. + + + + Creates a new that contains a maximal values from the two vectors. + + The first vector. + The second vector. + The with maximal values from the two vectors as an output parameter. + + + + Creates a new that contains a minimal values from the two vectors. + + The first vector. + The second vector. + The with minimal values from the two vectors. + + + + Creates a new that contains a minimal values from the two vectors. + + The first vector. + The second vector. + The with minimal values from the two vectors as an output parameter. + + + + Creates a new that contains a multiplication of two vectors. + + Source . + Source . + The result of the vector multiplication. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the vector multiplication with a scalar. + + + + Creates a new that contains a multiplication of and a scalar. + + Source . + Scalar value. + The result of the multiplication with a scalar as an output parameter. + + + + Creates a new that contains a multiplication of two vectors. + + Source . + Source . + The result of the vector multiplication as an output parameter. + + + + Creates a new that contains the specified vector inversion. + + Source . + The result of the vector inversion. + + + + Creates a new that contains the specified vector inversion. + + Source . + The result of the vector inversion as an output parameter. + + + + Turns this to a unit vector with the same direction. + + + + + Creates a new that contains a normalized values from another vector. + + Source . + Unit vector. + + + + Creates a new that contains a normalized values from another vector. + + Source . + Unit vector as an output parameter. + + + + Creates a new that contains cubic interpolation of the specified vectors. + + Source . + Source . + Weighting value. + Cubic interpolation of the specified vectors. + + + + Creates a new that contains cubic interpolation of the specified vectors. + + Source . + Source . + Weighting value. + Cubic interpolation of the specified vectors as an output parameter. + + + + Creates a new that contains subtraction of on from a another. + + Source . + Source . + The result of the vector subtraction. + + + + Creates a new that contains subtraction of on from a another. + + Source . + Source . + The result of the vector subtraction as an output parameter. + + + + Creates a new that contains a transformation of 2d-vector by the specified . + + Source . + The transformation . + Transformed . + + + + Creates a new that contains a transformation of 2d-vector by the specified . + + Source . + The which contains rotation transformation. + Transformed . + + + + Creates a new that contains a transformation of 3d-vector by the specified . + + Source . + The transformation . + Transformed . + + + + Creates a new that contains a transformation of 3d-vector by the specified . + + Source . + The which contains rotation transformation. + Transformed . + + + + Creates a new that contains a transformation of 4d-vector by the specified . + + Source . + The transformation . + Transformed . + + + + Creates a new that contains a transformation of 4d-vector by the specified . + + Source . + The which contains rotation transformation. + Transformed . + + + + Creates a new that contains a transformation of 2d-vector by the specified . + + Source . + The transformation . + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 2d-vector by the specified . + + Source . + The which contains rotation transformation. + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 3d-vector by the specified . + + Source . + The transformation . + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 3d-vector by the specified . + + Source . + The which contains rotation transformation. + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 4d-vector by the specified . + + Source . + The transformation . + Transformed as an output parameter. + + + + Creates a new that contains a transformation of 4d-vector by the specified . + + Source . + The which contains rotation transformation. + Transformed as an output parameter. + + + + Apply transformation on vectors within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The transformation . + Destination array. + The starting index in the destination array, where the first should be written. + The number of vectors to be transformed. + + + + Apply transformation on vectors within array of by the specified and places the results in an another array. + + Source array. + The starting index of transformation in the source array. + The which contains rotation transformation. + Destination array. + The starting index in the destination array, where the first should be written. + The number of vectors to be transformed. + + + + Apply transformation on all vectors within array of by the specified and places the results in an another array. + + Source array. + The transformation . + Destination array. + + + + Apply transformation on all vectors within array of by the specified and places the results in an another array. + + Source array. + The which contains rotation transformation. + Destination array. + + + + Returns a representation of this in the format: + {X:[] Y:[] Z:[] W:[]} + + A representation of this . + + + + Inverts values in the specified . + + Source on the right of the sub sign. + Result of the inversion. + + + + Compares whether two instances are equal. + + instance on the left of the equal sign. + instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance on the left of the not equal sign. + instance on the right of the not equal sign. + true if the instances are not equal; false otherwise. + + + + Adds two vectors. + + Source on the left of the add sign. + Source on the right of the add sign. + Sum of the vectors. + + + + Subtracts a from a . + + Source on the left of the sub sign. + Source on the right of the sub sign. + Result of the vector subtraction. + + + + Multiplies the components of two vectors by each other. + + Source on the left of the mul sign. + Source on the right of the mul sign. + Result of the vector multiplication. + + + + Multiplies the components of vector by a scalar. + + Source on the left of the mul sign. + Scalar value on the right of the mul sign. + Result of the vector multiplication with a scalar. + + + + Multiplies the components of vector by a scalar. + + Scalar value on the left of the mul sign. + Source on the right of the mul sign. + Result of the vector multiplication with a scalar. + + + + Divides the components of a by the components of another . + + Source on the left of the div sign. + Divisor on the right of the div sign. + The result of dividing the vectors. + + + + Divides the components of a by a scalar. + + Source on the left of the div sign. + Divisor scalar on the right of the div sign. + The result of dividing a vector by a scalar. + + + + Returns a with components 0, 0, 0, 0. + + + + + Returns a with components 1, 1, 1, 1. + + + + + Returns a with components 1, 0, 0, 0. + + + + + Returns a with components 0, 1, 0, 0. + + + + + Returns a with components 0, 0, 1, 0. + + + + + Returns a with components 0, 0, 0, 1. + + + + + Represents how many channels are used in the audio data. + + + + Single channel. + + + Two channels. + + + + Represents a 3D audio emitter. Used to simulate 3D audio effects. + + + + Initializes a new AudioEmitter instance. + + + Gets or sets a scale applied to the Doppler effect between the AudioEmitter and an AudioListener. + + Defaults to 1.0 + A value of 1.0 leaves the Doppler effect unmodified. + + + + Gets or sets the emitter's forward vector. + + Defaults to Vector3.Forward. (new Vector3(0, 0, -1)) + Used with AudioListener.Velocity to calculate Doppler values. + The Forward and Up values must be orthonormal. + + + + Gets or sets the position of this emitter. + + + Gets or sets the emitter's Up vector. + + Defaults to Vector3.Up. (new Vector3(0, -1, 1)). + The Up and Forward vectors must be orthonormal. + + + + Gets or sets the emitter's velocity vector. + + Defaults to Vector3.Zero. + This value is only used when calculating Doppler values. + + + + + Represents a 3D audio listener. Used when simulating 3D Audio. + + + + Gets or sets the listener's forward vector. + + Defaults to Vector3.Forward. (new Vector3(0, 0, -1)) + Used with AudioListener.Velocity and AudioEmitter.Velocity to calculate Doppler values. + The Forward and Up vectors must be orthonormal. + + + + Gets or sets the listener's position. + + Defaults to Vector3.Zero. + + + + + Gets or sets the listener's up vector.. + + + Defaults to Vector3.Up (New Vector3(0, -1, 0)). + Used with AudioListener.Velocity and AudioEmitter.Velocity to calculate Doppler values. + The values of the Forward and Up vectors must be orthonormal. + + + + Gets or sets the listener's velocity vector. + + Defaults to Vector3.Zero. + Scaled by DopplerScale to calculate the Doppler effect value applied to a Cue. + This value is only used to calculate Doppler values. + + + + + The exception thrown when the system attempts to play more SoundEffectInstances than allotted. + + + Most platforms have a hard limit on how many sounds can be played simultaneously. This exception is thrown when that limit is exceeded. + + + + + The exception thrown when no audio hardware is present, or driver issues are detected. + + + + A message describing the error. + + + A message describing the error. + The exception that is the underlying cause of the current exception. If not null, the current exception is raised in a try/catch block that handled the innerException. + + + Represents a loaded sound resource. + + A SoundEffect represents the buffer used to hold audio data and metadata. SoundEffectInstances are used to play from SoundEffects. Multiple SoundEffectinstance objects can be created and played from the same SoundEffect object. + The only limit on the number of loaded SoundEffects is restricted by available memory. When a SoundEffect is disposed, all SoundEffectInstances created from it will become invalid. + SoundEffect.Play() can be used for 'fire and forget' sounds. If advanced playback controls like volume or pitch is required, use SoundEffect.CreateInstance(). + + + + Buffer containing PCM wave data. + Sample rate, in Hertz (Hz) + Number of channels (mono or stereo). + + + Buffer containing PCM wave data. + Offset, in bytes, to the starting position of the audio data. + Amount, in bytes, of audio data. + Sample rate, in Hertz (Hz) + Number of channels (mono or stereo). + The position, in samples, where the audio should begin looping. + The duration, in samples, that audio should loop over. + Use SoundEffect.GetSampleDuration() to convert time to samples. + + + + Releases unmanaged resources and performs other cleanup operations before the + is reclaimed by garbage collection. + + + + + Creates a new SoundEffectInstance for this SoundEffect. + + A new SoundEffectInstance for this SoundEffect. + Creating a SoundEffectInstance before calling SoundEffectInstance.Play() allows you to access advanced playback features, such as volume, pitch, and 3D positioning. + + + + Creates a SoundEffect object based on the specified data stream. + + Stream object containing PCM wave data. + A new SoundEffect object. + The Stream object must point to the head of a valid PCM wave file. Also, this wave file must be in the RIFF bitstream format. + + + + Gets the TimeSpan representation of a single sample. + + Size, in bytes, of audio data. + Sample rate, in Hertz (Hz). Must be between 8000 Hz and 48000 Hz + Number of channels in the audio data. + TimeSpan object that represents the calculated sample duration. + + + + Gets the size of a sample from a TimeSpan. + + TimeSpan object that contains the sample duration. + Sample rate, in Hertz (Hz), of audio data. Must be between 8,000 and 48,000 Hz. + Number of channels in the audio data. + Size of a single sample of audio data. + + + Gets an internal SoundEffectInstance and plays it. + True if a SoundEffectInstance was successfully played, false if not. + + Play returns false if more SoundEffectInstances are currently playing then the platform allows. + To loop a sound or apply 3D effects, call SoundEffect.CreateInstance() and SoundEffectInstance.Play() instead. + SoundEffectInstances used by SoundEffect.Play() are pooled internally. + + + + Gets an internal SoundEffectInstance and plays it with the specified volume, pitch, and panning. + True if a SoundEffectInstance was successfully created and played, false if not. + Volume, ranging from 0.0 (silence) to 1.0 (full volume). Volume during playback is scaled by SoundEffect.MasterVolume. + Pitch adjustment, ranging from -1.0 (down an octave) to 0.0 (no change) to 1.0 (up an octave). + Panning, ranging from -1.0 (left speaker) to 0.0 (centered), 1.0 (right speaker). + + Play returns false if more SoundEffectInstances are currently playing then the platform allows. + To apply looping or simulate 3D audio, call SoundEffect.CreateInstance() and SoundEffectInstance.Play() instead. + SoundEffectInstances used by SoundEffect.Play() are pooled internally. + + + + + Returns a sound effect instance from the pool or null if none are available. + + + + Releases the resources held by this . + + + + Releases the resources held by this . + + If set to true, Dispose was called explicitly. + If the disposing parameter is true, the Dispose method was called explicitly. This + means that managed objects referenced by this instance should be disposed or released as + required. If the disposing parameter is false, Dispose was called by the finalizer and + no managed objects should be touched because we do not know if they are still valid or + not at that time. Unmanaged resources should always be released. + + + Gets the duration of the SoundEffect. + + + Gets or sets the asset name of the SoundEffect. + + + + Gets or sets the master volume scale applied to all SoundEffectInstances. + + + Each SoundEffectInstance has its own Volume property that is independent to SoundEffect.MasterVolume. During playback SoundEffectInstance.Volume is multiplied by SoundEffect.MasterVolume. + This property is used to adjust the volume on all current and newly created SoundEffectInstances. The volume of an individual SoundEffectInstance can be adjusted on its own. + + + + + Gets or sets the scale of distance calculations. + + + DistanceScale defaults to 1.0 and must be greater than 0.0. + Higher values reduce the rate of falloff between the sound and listener. + + + + + Gets or sets the scale of Doppler calculations applied to sounds. + + + DopplerScale defaults to 1.0 and must be greater or equal to 0.0 + Affects the relative velocity of emitters and listeners. + Higher values more dramatically shift the pitch for the given relative velocity of the emitter and listener. + + + + Returns the speed of sound used when calculating the Doppler effect.. + + Defaults to 343.5. Value is measured in meters per second. + Has no effect on distance attenuation. + + + + Indicates whether the object is disposed. + + + Represents a single instance of a playing, paused, or stopped sound. + + SoundEffectInstances are created through SoundEffect.CreateInstance() and used internally by SoundEffect.Play() + + + + + Releases unmanaged resources and performs other cleanup operations before the + is reclaimed by garbage collection. + + + + Applies 3D positioning to the SoundEffectInstance using a single listener. + Data about the listener. + Data about the source of emission. + + + Applies 3D positioning to the SoundEffectInstance using multiple listeners. + Data about each listener. + Data about the source of emission. + + + Pauses playback of a SoundEffectInstance. + Paused instances can be resumed with SoundEffectInstance.Play() or SoundEffectInstance.Resume(). + + + Plays or resumes a SoundEffectInstance. + Throws an exception if more sounds are playing than the platform allows. + + + Resumes playback for a SoundEffectInstance. + Only has effect on a SoundEffectInstance in a paused state. + + + Immediately stops playing a SoundEffectInstance. + + + Stops playing a SoundEffectInstance, either immediately or as authored. + Determined whether the sound stops immediately, or after playing its release phase and/or transitions. + Stopping a sound with the immediate argument set to false will allow it to play any release phases, such as fade, before coming to a stop. + + + Releases the resources held by this . + + + + Releases the resources held by this . + + If set to true, Dispose was called explicitly. + If the disposing parameter is true, the Dispose method was called explicitly. This + means that managed objects referenced by this instance should be disposed or released as + required. If the disposing parameter is false, Dispose was called by the finalizer and + no managed objects should be touched because we do not know if they are still valid or + not at that time. Unmanaged resources should always be released. + + + Enables or Disables whether the SoundEffectInstance should repeat after playback. + This value has no effect on an already playing sound. + + + Gets or sets the pan, or speaker balance.. + Pan value ranging from -1.0 (left speaker) to 0.0 (centered), 1.0 (right speaker). Values outside of this range will throw an exception. + + + Gets or sets the pitch adjustment. + Pitch adjustment, ranging from -1.0 (down an octave) to 0.0 (no change) to 1.0 (up an octave). Values outside of this range will throw an Exception. + + + Gets or sets the volume of the SoundEffectInstance. + Volume, ranging from 0.0 (silence) to 1.0 (full volume). Volume during playback is scaled by SoundEffect.MasterVolume. + + This is the volume relative to SoundEffect.MasterVolume. Before playback, this Volume property is multiplied by SoundEffect.MasterVolume when determining the final mix volume. + + + + Gets the SoundEffectInstance's current playback state. + + + Indicates whether the object is disposed. + + + + Add the specified instance to the pool if it is a pooled instance and removes it from the + list of playing instances. + + The SoundEffectInstance + + + + Adds the SoundEffectInstance to the list of playing instances. + + The SoundEffectInstance to add to the playing list. + + + + Returns a pooled SoundEffectInstance if one is available, or allocates a new + SoundEffectInstance if the pool is empty. + + The SoundEffectInstance. + + + + Iterates the list of playing instances, returning them to the pool if they + have stopped playing. + + + + + Iterates the list of playing instances, stop them and return them to the pool if they are instances of the given SoundEffect. + + The SoundEffect + + + + Gets a value indicating whether the platform has capacity for more sounds to be played at this time. + + true if more sounds can be played; otherwise, false. + + + Described the playback state of a SoundEffectInstance. + + + The SoundEffectInstance is currently playing. + + + The SoundEffectInstance is currently paused. + + + The SoundEffectInstance is currently stopped. + + + + Provides functionality for manipulating multiple sounds at a time. + + + + + Pauses all associated sounds. + + + + + Resumes all associated paused sounds. + + + + + Stops all associated sounds. + + + + + Determines whether two AudioCategory instances are equal. + + First AudioCategory instance to compare. + Second AudioCategory instance to compare. + true if the objects are equal or false if they aren't. + + + + Determines whether two AudioCategory instances are not equal. + + First AudioCategory instance to compare. + Second AudioCategory instance to compare. + true if the objects are not equal or false if they are. + + + + Determines whether two AudioCategory instances are equal. + + AudioCategory to compare with this instance. + true if the objects are equal or false if they aren't + + + + Determines whether two AudioCategory instances are equal. + + Object to compare with this instance. + true if the objects are equal or false if they aren't. + + + + Gets the hash code for this instance. + + Hash code for this object. + + + + Returns the name of this AudioCategory + + Friendly name of the AudioCategory + + + + Gets the category's friendly name. + + + + + Class used to create and manipulate code audio objects. + + + + + Specifies the current content version. + + + + Path to a XACT settings file. + + + Path to a XACT settings file. + Determines how many milliseconds the engine will look ahead when determing when to transition to another sound. + A string that specifies the audio renderer to use. + For the best results, use a lookAheadTime of 250 milliseconds or greater. + + + Performs periodic work required by the audio engine. + Must be called at least once per frame. + + + Returns an audio category by name. + Friendly name of the category to get. + The AudioCategory with a matching name. Throws an exception if not found. + + + Gets the value of a global variable. + Friendly name of the variable. + float value of the queried variable. + A global variable has global scope. It can be accessed by all code within a project. + + + Sets the value of a global variable. + Friendly name of the variable. + Value of the global variable. + + + Controls how Cue objects should cease playback when told to stop. + + + Stop normally, playing any pending release phases or transitions. + + + Immediately stops the cue, ignoring any pending release phases or transitions. + + + Manages the playback of a sound or set of sounds. + + Cues are comprised of one or more sounds. + Cues also define specific properties such as pitch or volume. + Cues are referenced through SoundBank objects. + + + + Pauses playback. + + + Requests playback of a prepared or preparing Cue. + Calling Play when the Cue already is playing can result in an InvalidOperationException. + + + Resumes playback of a paused Cue. + + + Stops playback of a Cue. + Specifies if the sound should play any pending release phases or transitions before stopping. + + + + Sets the value of a cue-instance variable based on its friendly name. + + Friendly name of the variable to set. + Value to assign to the variable. + The friendly name is a value set from the designer. + + + Gets a cue-instance variable value based on its friendly name. + Friendly name of the variable. + Value of the variable. + + Cue-instance variables are useful when multiple instantiations of a single cue (and its associated sounds) are required (for example, a "car" cue where there may be more than one car at any given time). While a global variable allows multiple audio elements to be controlled in unison, a cue instance variable grants discrete control of each instance of a cue, even for each copy of the same cue. + The friendly name is a value set from the designer. + + + + Updates the simulated 3D Audio settings calculated between an AudioEmitter and AudioListener. + The listener to calculate. + The emitter to calculate. + + This must be called before Play(). + Calling this method automatically converts the sound to monoaural and sets the speaker mix for any sound played by this cue to a value calculated with the listener's and emitter's positions. Any stereo information in the sound will be discarded. + + + + Immediately releases any unmanaged resources used by this object. + + + Indicates whether or not the cue is currently paused. + IsPlaying and IsPaused both return true if a cue is paused while playing. + + + Indicates whether or not the cue is currently playing. + IsPlaying and IsPaused both return true if a cue is paused while playing. + + + Indicates whether or not the cue is currently stopped. + + + Gets the friendly name of the cue. + The friendly name is a value set from the designer. + + + Indicateds whether or not the object has been disposed. + + + Represents a collection of Cues. + + + AudioEngine that will be associated with this sound bank. + Path to a .xsb SoundBank file. + + + + Returns a pooled Cue object. + + Friendly name of the cue to get. + a unique Cue object from a pool. + + Cue instances are unique, even when sharing the same name. This allows multiple instances to simultaneously play. + + + + + Plays a cue. + + Name of the cue to play. + + + + Plays a cue with static 3D positional information. + + + Commonly used for short lived effects. To dynamically change the 3D + positional information on a cue over time use and . + The name of the cue to play. + The listener state. + The cue emitter state. + + + + Immediately releases any unmanaged resources used by this object. + + + + Represents a collection of wave files. + + + Instance of the AudioEngine to associate this wave bank with. + Path to the .xwb file to load. + This constructor immediately loads all wave data into memory at once. + + + Instance of the AudioEngine to associate this wave bank with. + Path to the .xwb to stream from. + DVD sector-aligned offset within the wave bank data file. + Stream packet size, in sectors, to use for each stream. The minimum value is 2. + + This constructor streams wave data as needed. + Note that packetsize is in sectors, which is 2048 bytes. + AudioEngine.Update() must be called at least once before using data from a streaming wave bank. + + + + + Set the combined volume scale from the parent objects. + + The volume scale. + + + + Set the volume for the clip. + + The volume level. + + + + Virtual property to allow a derived ContentManager to have it's assets reloaded + + + + + External reference reader, provided for compatibility with XNA Framework built content + + + + + Creates an instance of the attribute. + + + + + Returns the overriden XML element name or the default "Item". + + + + + Returns true if the default CollectionItemName value was overridden. + + + + + This is used to specify the XML element name to use for each item in a collection. + + + + + Creates an instance of the attribute. + + The XML element name to use for each item in the collection. + + + + The XML element name to use for each item in the collection. + + + + + This is used to specify the type to use when deserializing this object at runtime. + + + + + Creates an instance of the attribute. + + The name of the type to use at runtime. + + + + The name of the type to use at runtime. + + + + + This is used to specify the version when deserializing this object at runtime. + + + + + Creates an instance of the attribute. + + The version passed to the type at runtime. + + + + The version passed to the type at runtime. + + + + + Removes Version, Culture and PublicKeyToken from a type string. + + + Supports multiple generic types (e.g. Dictionary<TKey,TValue>) and nested generic types (e.g. List<List<int>>). + + + A + + + A + + + + + Adds the type creator. + + + Type string. + + + Create function. + + + + + Defines the buffers for clearing when calling operation. + + + + + Color buffer. + + + + + Depth buffer. + + + + + Stencil buffer. + + + + + Defines the color channels for render target blending operations. + + + + + No channels selected. + + + + + Red channel selected. + + + + + Green channel selected. + + + + + Blue channel selected. + + + + + Alpha channel selected. + + + + + All channels selected. + + + + + Defines the faces in a cube map for the class. + + + + + Positive X face in the cube map. + + + + + Negative X face in the cube map. + + + + + Positive Y face in the cube map. + + + + + Negative Y face in the cube map. + + + + + Positive Z face in the cube map. + + + + + Negative Z face in the cube map. + + + + + The settings used in creation of the graphics device. + See . + + + + + The graphics adapter on which the graphics device will be created. + + + This is only valid on desktop systems where multiple graphics + adapters are possible. Defaults to . + + + + + The requested graphics device feature set. + + + + + The settings that define how graphics will be presented to the display. + + + + + This method is used by MonoGame Android to adjust the game's drawn to area to fill + as much of the screen as possible whilst retaining the aspect ratio inferred from + aspectRatio = (PreferredBackBufferWidth / PreferredBackBufferHeight) + + NOTE: this is a hack that should be removed if proper back buffer to screen scaling + is implemented. To disable it's effect, in the game's constructor use: + + graphics.IsFullScreen = true; + graphics.PreferredBackBufferHeight = Window.ClientBounds.Height; + graphics.PreferredBackBufferWidth = Window.ClientBounds.Width; + + + + + + Gets or sets the boolean which defines how window switches from windowed to fullscreen state. + "Hard" mode(true) is slow to switch, but more effecient for performance, while "soft" mode(false) is vice versa. + The default value is true. Can only be changed before graphics device is created (in game's constructor). + + + + + A snapshot of rendering statistics from to be used for runtime debugging and profiling. + + + + + Returns the difference between two sets of metrics. + + Source on the left of the sub sign. + Source on the right of the sub sign. + Difference between two sets of metrics. + + + + Returns the combination of two sets of metrics. + + Source on the left of the add sign. + Source on the right of the add sign. + Combination of two sets of metrics. + + + + Number of times Clear was called. + + + + + Number of times Draw was called. + + + + + Number of times the pixel shader was changed on the GPU. + + + + + Number of rendered primitives. + + + + + Number of sprites and text characters rendered via . + + + + + Number of times a target was changed on the GPU. + + + + + Number of times a texture was changed on the GPU. + + + + + Number of times the vertex shader was changed on the GPU. + + + + + Built-in effect that supports alpha testing. + + + + + Called before the device is reset. Allows graphics resources to + invalidate their state so they can be recreated after the device reset. + Warning: This may be called after a call to Dispose() up until + the resource is garbage collected. + + + + + The method that derived classes should override to implement disposing of managed and native resources. + + True if managed objects should be disposed. + Native resources should always be released regardless of the value of the disposing parameter. + + + + Clone the source into this existing object. + + + Note this is not overloaded in derived classes on purpose. This is + only a reason this exists is for caching effects. + + The source effect to clone from. + + + + Returns a deep copy of the effect where immutable types + are shared and mutable data is duplicated. + + + See "Cloning an Effect" in MSDN: + http://msdn.microsoft.com/en-us/library/windows/desktop/ff476138(v=vs.85).aspx + + The cloned effect. + + + + The current MonoGame Effect file format versions + used to detect old packaged content. + + + We should avoid supporting old versions for very long if at all + as users should be rebuilding content when packaging their game. + + + + + The MonoGame Effect file format header identifier ("MGFX"). + + + + + The common effect fog rendering parameters. + + + + + The floating point fog color. + + + + + Used to toggle the rendering of fog. + + + + + The world space distance from the camera at which fogging is fully applied. + + + FogEnd should be greater than FogStart. If FogEnd and FogStart + are the same value everything is fully fogged. + + + + + The world space distance from the camera at which fogging begins. + + + FogStart should be less than FogEnd. If FogEnd and FogStart are the + same value everything is fully fogged. + + + + + Creates a new AlphaTestEffect with default parameter settings. + + + + + Creates a new AlphaTestEffect by cloning parameter settings from an existing instance. + + + + + Creates a clone of the current AlphaTestEffect instance. + + + + + Looks up shortcut references to our effect parameters. + + + + + Lazily computes derived parameter values immediately before applying the effect. + + + + + Gets or sets the world matrix. + + + + + Gets or sets the view matrix. + + + + + Gets or sets the projection matrix. + + + + + Gets or sets the material diffuse color (range 0 to 1). + + + + + Gets or sets the material alpha. + + + + + Gets or sets the fog enable flag. + + + + + Gets or sets the fog start distance. + + + + + Gets or sets the fog end distance. + + + + + Gets or sets the fog color. + + + + + Gets or sets the current texture. + + + + + Gets or sets whether vertex color is enabled. + + + + + Gets or sets the alpha compare function (default Greater). + + + + + Gets or sets the reference alpha value (default 0). + + + + + Built-in effect that supports optional texturing, vertex coloring, fog, and lighting. + + + + + The common effect light rendering parameters. + + + + + Initializes the lights to the standard key/fill/back lighting rig. + + + + + The floating point ambient light color. + + + + + Returns the first directional light. + + + + + Returns the second directional light. + + + + + Returns the third directional light. + + + + + Toggles the rendering of lighting. + + + + + Creates a new BasicEffect with default parameter settings. + + + + + Creates a new BasicEffect by cloning parameter settings from an existing instance. + + + + + Creates a clone of the current BasicEffect instance. + + + + + + + + Looks up shortcut references to our effect parameters. + + + + + Lazily computes derived parameter values immediately before applying the effect. + + + + + Gets or sets the world matrix. + + + + + Gets or sets the view matrix. + + + + + Gets or sets the projection matrix. + + + + + Gets or sets the material diffuse color (range 0 to 1). + + + + + Gets or sets the material emissive color (range 0 to 1). + + + + + Gets or sets the material specular color (range 0 to 1). + + + + + Gets or sets the material specular power. + + + + + Gets or sets the material alpha. + + + + + + + + Gets or sets the per-pixel lighting prefer flag. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Gets or sets whether texturing is enabled. + + + + + Gets or sets the current texture. + + + + + Gets or sets whether vertex color is enabled. + + + + + Built-in effect that supports two-layer multitexturing. + + + + + Creates a new DualTextureEffect with default parameter settings. + + + + + Creates a new DualTextureEffect by cloning parameter settings from an existing instance. + + + + + Creates a clone of the current DualTextureEffect instance. + + + + + Looks up shortcut references to our effect parameters. + + + + + Lazily computes derived parameter values immediately before applying the effect. + + + + + Gets or sets the world matrix. + + + + + Gets or sets the view matrix. + + + + + Gets or sets the projection matrix. + + + + + Gets or sets the material diffuse color (range 0 to 1). + + + + + Gets or sets the material alpha. + + + + + Gets or sets the fog enable flag. + + + + + Gets or sets the fog start distance. + + + + + Gets or sets the fog end distance. + + + + + Gets or sets the fog color. + + + + + Gets or sets the current base texture. + + + + + Gets or sets the current overlay texture. + + + + + Gets or sets whether vertex color is enabled. + + + + + Track which effect parameters need to be recomputed during the next OnApply. + + + + + Helper code shared between the various built-in effects. + + + + + Sets up the standard key/fill/back lighting rig. + + + + + Lazily recomputes the world+view+projection matrix and + fog vector based on the current effect parameter settings. + + + + + Sets a vector which can be dotted with the object space vertex position to compute fog amount. + + + + + Lazily recomputes the world inverse transpose matrix and + eye position based on the current effect parameter settings. + + + + + Sets the diffuse/emissive/alpha material color parameters. + + + + + Defines classes for effect parameters and shader constants. + + + + + Scalar class type. + + + + + Vector class type. + + + + + Matrix class type. + + + + + Class type for textures, shaders or strings. + + + + + Structure class type. + + + + + The next state key used when an effect parameter + is updated by any of the 'set' methods. + + + + + The current state key which is used to detect + if the parameter value has been changed. + + + + + Property referenced by the DebuggerDisplayAttribute. + + + + + Defines types for effect parameters and shader constants. + + + + + Pointer to void type. + + + + + Boolean type. Any non-zero will be true; false otherwise. + + + + + 32-bit integer type. + + + + + Float type. + + + + + String type. + + + + + Any texture type. + + + + + 1D-texture type. + + + + + 2D-texture type. + + + + + 3D-texture type. + + + + + Cubic texture type. + + + + + Internal helper for accessing the bytecode for stock effects. + + + + + Built-in effect that supports environment mapping. + + + + + Creates a new EnvironmentMapEffect with default parameter settings. + + + + + Creates a new EnvironmentMapEffect by cloning parameter settings from an existing instance. + + + + + Creates a clone of the current EnvironmentMapEffect instance. + + + + + Sets up the standard key/fill/back lighting rig. + + + + + Looks up shortcut references to our effect parameters. + + + + + Lazily computes derived parameter values immediately before applying the effect. + + + + + Gets or sets the world matrix. + + + + + Gets or sets the view matrix. + + + + + Gets or sets the projection matrix. + + + + + Gets or sets the material diffuse color (range 0 to 1). + + + + + Gets or sets the material emissive color (range 0 to 1). + + + + + Gets or sets the material alpha. + + + + + Gets or sets the ambient light color (range 0 to 1). + + + + + Gets the first directional light. + + + + + Gets the second directional light. + + + + + Gets the third directional light. + + + + + Gets or sets the fog enable flag. + + + + + Gets or sets the fog start distance. + + + + + Gets or sets the fog end distance. + + + + + Gets or sets the fog color. + + + + + Gets or sets the current texture. + + + + + Gets or sets the current environment map texture. + + + + + Gets or sets the amount of the environment map RGB that will be blended over + the base texture. Range 0 to 1, default 1. If set to zero, the RGB channels + of the environment map will completely ignored (but the environment map alpha + may still be visible if EnvironmentMapSpecular is greater than zero). + + + + + Gets or sets the amount of the environment map alpha channel that will + be added to the base texture. Range 0 to 1, default 0. This can be used + to implement cheap specular lighting, by encoding one or more specular + highlight patterns into the environment map alpha channel, then setting + EnvironmentMapSpecular to the desired specular light color. + + + + + Gets or sets the Fresnel factor used for the environment map blending. + Higher values make the environment map only visible around the silhouette + edges of the object, while lower values make it visible everywhere. + Setting this property to 0 disables Fresnel entirely, making the + environment map equally visible regardless of view angle. The default is + 1. Fresnel only affects the environment map RGB (the intensity of which is + controlled by EnvironmentMapAmount). The alpha contribution (controlled by + EnvironmentMapSpecular) is not affected by the Fresnel setting. + + + + + This effect requires lighting, so we explicitly implement + IEffectLights.LightingEnabled, and do not allow turning it off. + + + + + Built-in effect for rendering skinned character models. + + + + + Sets an array of skinning bone transform matrices. + + + + + Gets a copy of the current skinning bone transform matrices. + + + + + Creates a new SkinnedEffect with default parameter settings. + + + + + Creates a new SkinnedEffect by cloning parameter settings from an existing instance. + + + + + Creates a clone of the current SkinnedEffect instance. + + + + + Sets up the standard key/fill/back lighting rig. + + + + + Looks up shortcut references to our effect parameters. + + + + + Lazily computes derived parameter values immediately before applying the effect. + + + + + Gets or sets the world matrix. + + + + + Gets or sets the view matrix. + + + + + Gets or sets the projection matrix. + + + + + Gets or sets the material diffuse color (range 0 to 1). + + + + + Gets or sets the material emissive color (range 0 to 1). + + + + + Gets or sets the material specular color (range 0 to 1). + + + + + Gets or sets the material specular power. + + + + + Gets or sets the material alpha. + + + + + Gets or sets the per-pixel lighting prefer flag. + + + + + Gets or sets the ambient light color (range 0 to 1). + + + + + Gets the first directional light. + + + + + Gets the second directional light. + + + + + Gets the third directional light. + + + + + Gets or sets the fog enable flag. + + + + + Gets or sets the fog start distance. + + + + + Gets or sets the fog end distance. + + + + + Gets or sets the fog color. + + + + + Gets or sets the current texture. + + + + + Gets or sets the number of skinning weights to evaluate for each vertex (1, 2, or 4). + + + + + This effect requires lighting, so we explicitly implement + IEffectLights.LightingEnabled, and do not allow turning it off. + + + + + The default effect used by SpriteBatch. + + + + + Creates a new SpriteEffect. + + + + + Creates a new SpriteEffect by cloning parameter settings from an existing instance. + + + + + Creates a clone of the current SpriteEffect instance. + + + + + Looks up shortcut references to our effect parameters. + + + + + Lazily computes derived parameter values immediately before applying the effect. + + + + + Used to request creation of the reference graphics device, + or the default hardware accelerated device (when set to false). + + + This only works on DirectX platforms where a reference graphics + device is available and must be defined before the graphics device + is created. It defaults to false. + + + + + Used to request creation of a specific kind of driver. + + + These values only work on DirectX platforms and must be defined before the graphics device + is created. by default. + + + + + Gets a indicating whether + has a + Width:Height ratio corresponding to a widescreen . + Common widescreen modes include 16:9, 16:10 and 2:1. + + + + + Defines the driver type for graphics adapter. Usable only on DirectX platforms for now. + + + + + Hardware device been used for rendering. Maximum speed and performance. + + + + + Emulates the hardware device on CPU. Slowly, only for testing. + + + + + Useful when acceleration does not work. + + + + + Provides information about the capabilities of the + current graphics device. A very useful thread for investigating GL extenion names + http://stackoverflow.com/questions/3881197/opengl-es-2-0-extensions-on-android-devices + + + + + Whether the device fully supports non power-of-two textures, including + mip maps and wrap modes other than CLAMP_TO_EDGE + + + + + Whether the device supports anisotropic texture filtering + + + + + Gets the support for DXT1 + + + + + Gets the support for S3TC (DXT1, DXT3, DXT5) + + + + + Gets the support for PVRTC + + + + + Gets the support for ETC1 + + + + + Gets the support for ATITC + + + + + True, if sRGB is supported. On Direct3D platforms, this is always true. + On OpenGL platforms, it is true if both framebuffer sRGB + and texture sRGB are supported. + + + + + The active vertex shader. + + + + + The active pixel shader. + + + + + The cache of effects from unique byte streams. + + + + + Initializes a new instance of the class. + + The graphics adapter. + The graphics profile. + The presentation options. + + is . + + + + + Trigger the DeviceResetting event + Currently internal to allow the various platforms to send the event at the appropriate time. + + + + + Trigger the DeviceReset event to allow games to be notified of a device reset. + Currently internal to allow the various platforms to send the event at the appropriate time. + + + + + Draw geometry by indexing into the vertex buffer. + + The type of primitives in the index buffer. + Used to offset the vertex range indexed from the vertex buffer. + This is unused and remains here only for XNA API compatibility. + This is unused and remains here only for XNA API compatibility. + The index within the index buffer to start drawing from. + The number of primitives to render from the index buffer. + Note that minVertexIndex and numVertices are unused in MonoGame and will be ignored. + + + + Create graphics device specific resources. + + + + + Sends queued-up commands in the command buffer to the graphics processing unit (GPU). + + + + + The rendering information for debugging and profiling. + The metrics are reset every frame after draw within . + + + + + Returns a handle to internal device object. Valid only on DirectX platforms. + For usage, convert this to SharpDX.Direct3D11.Device. + + + + + Describes the status of the . + + + + + The device is normal. + + + + + The device has been lost. + + + + + The device has not been reset. + + + + + Defines a set of graphic capabilities. + + + + + Use a limited set of graphic features and capabilities, allowing the game to support the widest variety of devices. + + + + + Use the largest available set of graphic features and capabilities to target devices, that have more enhanced graphic capabilities. + + + + + Represents a render target. + + + + + Gets the for the specified array slice. + + The array slice. + The . + + For texture cubes: The array slice is the index of the cube map face. + + + + + Gets the . + + The . Can be . + + + + Gets the width of the render target in pixels + + The width of the render target in pixels. + + + + Gets the height of the render target in pixels + + The height of the render target in pixels. + + + + Gets the usage mode of the render target. + + The usage mode of the render target. + + + + Represents a set of bones associated with a model. + + + + + Finds a bone with a given name if it exists in the collection. + + The name of the bone to find. + The bone named boneName, if found. + true if the bone was found + + + + Returns a ModelMeshCollection.Enumerator that can iterate through a ModelMeshCollection. + + + + + + Retrieves a ModelBone from the collection, given the name of the bone. + + The name of the bone to retrieve. + + + + Provides the ability to iterate through the bones in an ModelMeshCollection. + + + + + Advances the enumerator to the next element of the ModelMeshCollection. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Gets the current element in the ModelMeshCollection. + + + + + Transform of this node from the root of the model not from the parent + + + + + A basic 3D model with per mesh parent bones. + + + + + Constructs a model. + + A valid reference to . + The collection of bones. + The collection of meshes. + + + + Draws the model meshes. + + The world transform. + The view transform. + The projection transform. + + + + Copies bone transforms relative to all parent bones of the each bone from this model to a given array. + + The array receiving the transformed bones. + + + + Copies bone transforms relative to bone from a given array to this model. + + The array of prepared bone transform data. + + + + Copies bone transforms relative to bone from this model to a given array. + + The array receiving the transformed bones. + + + + A collection of objects which describe how each mesh in the + mesh collection for this model relates to its parent mesh. + + + + + A collection of objects which compose the model. Each + in a model may be moved independently and may be composed of multiple materials + identified as objects. + + + + + Root bone for this model. + + + + + Custom attached object. + + Skinning data is example of attached object for model. + + + + + + Represents a collection of ModelMesh objects. + + + + + Finds a mesh with a given name if it exists in the collection. + + The name of the mesh to find. + The mesh named meshName, if found. + true if a mesh was found + + + + Returns a ModelMeshCollection.Enumerator that can iterate through a ModelMeshCollection. + + + + + + Retrieves a ModelMesh from the collection, given the name of the mesh. + + The name of the mesh to retrieve. + + + + Provides the ability to iterate through the bones in an ModelMeshCollection. + + + + + Advances the enumerator to the next element of the ModelMeshCollection. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Gets the current element in the ModelMeshCollection. + + + + + Initializes a new instance of the class. + + The graphics device. + + is . + + + The current graphics profile does not support occlusion queries. + + + + + Begins the occlusion query. + + + is called again before calling . + + + + + Ends the occlusion query. + + + is called before calling . + + + + + Gets a value indicating whether the occlusion query has completed. + + + if the occlusion query has completed; otherwise, + . + + + + + Gets the number of visible pixels. + + The number of visible pixels. + + The occlusion query has not yet completed. Check before reading + the result! + + + + + Packed vector type containing a single 8 bit normalized W values that is ranging from 0 to 1. + + + + + Creates a new instance of Alpha8. + + The alpha component + + + + Gets the packed vector in float format. + + The packed vector in Vector3 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Compares an object with the packed vector. + + The object to compare. + True if the object is equal to the packed vector. + + + + Compares another Alpha8 packed vector with the packed vector. + + The Alpha8 packed vector to compare. + True if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing unsigned normalized values ranging from 0 to 1. The x and z components use 5 bits, and the y component uses 6 bits. + + + + + Creates a new instance of Bgr565. + + The x component + The y component + The z component + + + + Creates a new instance of Bgr565. + + Vector containing the components for the packed vector. + + + + Gets the packed vector in Vector3 format. + + The packed vector in Vector3 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Compares an object with the packed vector. + + The object to compare. + true if the object is equal to the packed vector. + + + + Compares another Bgr565 packed vector with the packed vector. + + The Bgr565 packed vector to compare. + true if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing unsigned normalized values, ranging from 0 to 1, using 4 bits each for x, y, z, and w. + + + + + Creates a new instance of Bgra4444. + + The x component + The y component + The z component + The w component + + + + Creates a new instance of Bgra4444. + + Vector containing the components for the packed vector. + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Compares an object with the packed vector. + + The object to compare. + true if the object is equal to the packed vector. + + + + Compares another Bgra4444 packed vector with the packed vector. + + The Bgra4444 packed vector to compare. + true if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing unsigned normalized values ranging from 0 to 1. + The x , y and z components use 5 bits, and the w component uses 1 bit. + + + + + Creates a new instance of Bgra5551. + + The x component + The y component + The z component + The w component + + + + Creates a new instance of Bgra5551. + + + Vector containing the components for the packed vector. + + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Compares an object with the packed vector. + + The object to compare. + True if the object is equal to the packed vector. + + + + Compares another Bgra5551 packed vector with the packed vector. + + The Bgra5551 packed vector to compare. + True if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing four 8-bit unsigned integer values, ranging from 0 to 255. + + + + + Initializes a new instance of the Byte4 class. + + A vector containing the initial values for the components of the Byte4 structure. + + + + Initializes a new instance of the Byte4 class. + + Initial value for the x component. + Initial value for the y component. + Initial value for the z component. + Initial value for the w component. + + + + Compares the current instance of a class to another instance to determine whether they are different. + + The object to the left of the equality operator. + The object to the right of the equality operator. + true if the objects are different; false otherwise. + + + + Compares the current instance of a class to another instance to determine whether they are the same. + + The object to the left of the equality operator. + The object to the right of the equality operator. + true if the objects are the same; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object with which to make the comparison. + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object with which to make the comparison. + true if the current instance is equal to the specified object; false otherwise. + + + + Gets the hash code for the current instance. + + Hash code for the instance. + + + + Returns a string representation of the current instance. + + String that represents the object. + + + + Packs a vector into a uint. + + The vector containing the values to pack. + The ulong containing the packed values. + + + + Sets the packed representation from a Vector4. + + The vector to create the packed representation from. + + + + Expands the packed representation into a Vector4. + + The expanded vector. + + + + Directly gets or sets the packed representation of the value. + + The packed representation of the value. + + + + Packed vector type containing four 16-bit floating-point values. + + + + + Initializes a new instance of the HalfVector4 structure. + + Initial value for the x component. + Initial value for the y component. + Initial value for the z component. + Initial value for the q component. + + + + Initializes a new instance of the HalfVector4 structure. + + A vector containing the initial values for the components of the HalfVector4 structure. + + + + Sets the packed representation from a Vector4. + + The vector to create the packed representation from. + + + + Packs a vector into a ulong. + + The vector containing the values to pack. + The ulong containing the packed values. + + + + Expands the packed representation into a Vector4. + + The expanded vector. + + + + Returns a string representation of the current instance. + + String that represents the object. + + + + Gets the hash code for the current instance. + + Hash code for the instance. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object with which to make the comparison. + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object with which to make the comparison. + true if the current instance is equal to the specified object; false otherwise. + + + + Compares the current instance of a class to another instance to determine whether they are the same. + + The object to the left of the equality operator. + The object to the right of the equality operator. + true if the objects are the same; false otherwise. + + + + Compares the current instance of a class to another instance to determine whether they are different. + + The object to the left of the equality operator. + The object to the right of the equality operator. + true if the objects are different; false otherwise. + + + + Directly gets or sets the packed representation of the value. + + The packed representation of the value. + + + + Packed vector type containing two 16-bit unsigned normalized values ranging from 0 to 1. + + + + + Creates a new instance of Rg32. + + The x component + The y component + + + + Creates a new instance of Rg32. + + + Vector containing the components for the packed vector. + + + + + Gets the packed vector in Vector2 format. + + The packed vector in Vector2 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Compares an object with the packed vector. + + The object to compare. + True if the object is equal to the packed vector. + + + + Compares another Rg32 packed vector with the packed vector. + + The Rg32 packed vector to compare. + True if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing four 16-bit unsigned normalized values ranging from 0 to 1. + + + + + Creates a new instance of Rgba64. + + The x component + The y component + The z component + The w component + + + + Creates a new instance of Rgba64. + + + Vector containing the components for the packed vector. + + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Compares an object with the packed vector. + + The object to compare. + True if the object is equal to the packed vector. + + + + Compares another Rgba64 packed vector with the packed vector. + + The Rgba64 packed vector to compare. + True if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing unsigned normalized values ranging from 0 to 1. + The x, y and z components use 10 bits, and the w component uses 2 bits. + + + + + Creates a new instance of Rgba1010102. + + The x component + The y component + The z component + The w component + + + + Creates a new instance of Rgba1010102. + + + Vector containing the components for the packed vector. + + + + + Gets the packed vector in Vector4 format. + + The packed vector in Vector4 format + + + + Sets the packed vector from a Vector4. + + Vector containing the components. + + + + Compares an object with the packed vector. + + The object to compare. + True if the object is equal to the packed vector. + + + + Compares another Rgba1010102 packed vector with the packed vector. + + The Rgba1010102 packed vector to compare. + True if the packed vectors are equal. + + + + Gets a string representation of the packed vector. + + A string representation of the packed vector. + + + + Gets a hash code of the packed vector. + + The hash code for the packed vector. + + + + Gets and sets the packed value. + + + + + Packed vector type containing four 16-bit signed integer values. + + + + + Initializes a new instance of the Short4 class. + + A vector containing the initial values for the components of the Short4 structure. + + + + Initializes a new instance of the Short4 class. + + Initial value for the x component. + Initial value for the y component. + Initial value for the z component. + Initial value for the w component. + + + + Compares the current instance of a class to another instance to determine whether they are different. + + The object to the left of the equality operator. + The object to the right of the equality operator. + true if the objects are different; false otherwise. + + + + Compares the current instance of a class to another instance to determine whether they are the same. + + The object to the left of the equality operator. + The object to the right of the equality operator. + true if the objects are the same; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object with which to make the comparison. + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + The object with which to make the comparison. + true if the current instance is equal to the specified object; false otherwise. + + + + Gets the hash code for the current instance. + + Hash code for the instance. + + + + Returns a string representation of the current instance. + + String that represents the object. + + + + Packs a vector into a ulong. + + The vector containing the values to pack. + The ulong containing the packed values. + + + + Sets the packed representation from a Vector4. + + The vector to create the packed representation from. + + + + Expands the packed representation into a Vector4. + + The expanded vector. + + + + Directly gets or sets the packed representation of the value. + + The packed representation of the value. + + + + Defines how updates the game window. + + + + + Equivalent to . + + + + + The driver waits for the vertical retrace period, before updating window client area. Present operations are not affected more frequently than the screen refresh rate. + + + + + The driver waits for the vertical retrace period, before updating window client area. Present operations are not affected more frequently than every second screen refresh. + + + + + The driver updates the window client area immediately. Present operations might be affected immediately. There is no limit for framerate. + + + + + Gets the handle to a shared resource. + + + The handle of the shared resource, or if the texture was not + created as a shared resource. + + + + + Gets a unique identifier of this texture for sorting purposes. + + + For example, this value is used by when drawing with . + The value is an implementation detail and may change between application launches or MonoGame versions. + It is only guaranteed to stay consistent during application lifetime. + + + + + Creates a new texture of the given size + + + + + + + + Creates a new texture of a given size with a surface format and optional mipmaps + + + + + + + + + + Creates a new texture array of a given size with a surface format and optional mipmaps. + Throws ArgumentException if the current GraphicsDevice can't work with texture arrays + + + + + + + + + + + Creates a new texture of a given size with a surface format and optional mipmaps. + + + + + + + + + + + Changes the pixels of the texture + Throws ArgumentNullException if data is null + Throws ArgumentException if arraySlice is greater than 0, and the GraphicsDevice does not support texture arrays + + + Layer of the texture to modify + Index inside the texture array + Area to modify + New data for the texture + Start position of data + + + + + Changes the pixels of the texture + + + Layer of the texture to modify + Area to modify + New data for the texture + Start position of data + + + + + Changes the texture's pixels + + + New data for the texture + Start position of data + + + + + Changes the texture's pixels + + New data for the texture + + + + + Retrieves the contents of the texture + Throws ArgumentException if data is null, data.length is too short or + if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays + + + Layer of the texture + Index inside the texture array + Area of the texture to retrieve + Destination array for the data + Starting index of data where to write the pixel data + Number of pixels to read + + + + Retrieves the contents of the texture + Throws ArgumentException if data is null, data.length is too short or + if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays + + + Layer of the texture + Area of the texture + Destination array for the texture data + First position in data where to write the pixel data + Number of pixels to read + + + + Retrieves the contents of the texture + Throws ArgumentException if data is null, data.length is too short or + if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays + + + Destination array for the texture data + First position in data where to write the pixel data + Number of pixels to read + + + + Retrieves the contents of the texture + Throws ArgumentException if data is null, data.length is too short or + if arraySlice is greater than 0 and the GraphicsDevice doesn't support texture arrays + + + Destination array for the texture data + + + + Creates a Texture2D from a stream, supported formats bmp, gif, jpg, png, tif and dds (only for simple textures). + May work with other formats, but will not work with tga files. + + + + + + + + Converts the texture to a JPG image + + Destination for the image + + + + + + Converts the texture to a PNG image + + Destination for the image + + + + + + Gets the dimensions of the texture + + + + + Allows child class to specify the surface type, eg: a swap chain. + + + + + Gets a copy of 3D texture data, specifying a mipmap level, source box, start index, and number of elements. + + The type of the elements in the array. + Mipmap level. + Position of the left side of the box on the x-axis. + Position of the top of the box on the y-axis. + Position of the right side of the box on the x-axis. + Position of the bottom of the box on the y-axis. + Position of the front of the box on the z-axis. + Position of the back of the box on the z-axis. + Array of data. + Index of the first element to get. + Number of elements to get. + + + + Gets a copy of 3D texture data, specifying a start index and number of elements. + + The type of the elements in the array. + Array of data. + Index of the first element to get. + Number of elements to get. + + + + Gets a copy of 3D texture data. + + The type of the elements in the array. + Array of data. + + + + Represents a texture cube that can be used as a render target. + + + + + Gets a copy of cube texture data specifying a cubemap face. + + + The cube map face. + The data. + + + + Gets the width and height of the cube map face in pixels. + + The width and height of a cube map face in pixels. + + + + Initializes a new instance of the class. + + The graphics device. + The width and height of a texture cube face in pixels. + to generate a full mipmap chain; otherwise . + The preferred format of the surface. + The preferred format of the depth-stencil buffer. + + + + Initializes a new instance of the class. + + The graphics device. + The width and height of a texture cube face in pixels. + to generate a full mipmap chain; otherwise . + The preferred format of the surface. + The preferred format of the depth-stencil buffer. + The preferred number of multisample locations. + The usage mode of the render target. + + + + + + + + + + Gets the depth-stencil buffer format of this render target. + + The format of the depth-stencil buffer. + + + + Gets the number of multisample locations. + + The number of multisample locations. + + + + Gets the usage mode of this render target. + + The usage mode of the render target. + + + + + + + + + + Defines if the previous content in a render target is preserved when it set on the graphics device. + + + + + The render target content will not be preserved. + + + + + The render target content will be preserved even if it is slow or requires extra memory. + + + + + The render target content might be preserved if the platform can do so without a penalty in performance or memory usage. + + + + + The newly created resource object. + + + + + The name of the destroyed resource. + + + + + The resource manager tag of the destroyed resource. + + + + + Mark all the sampler slots as dirty. + + + + + Defines how vertex or index buffer data will be flushed during a SetData operation. + + + + + The SetData can overwrite the portions of existing data. + + + + + The SetData will discard the entire buffer. A pointer to a new memory area is returned and rendering from the previous area do not stall. + + + + + The SetData operation will not overwrite existing data. This allows the driver to return immediately from a SetData operation and continue rendering. + + + + + A hash value which can be used to compare shaders. + + + + + Helper class for drawing text strings and sprites in one or more optimized batches. + + + + + Constructs a . + + The , which will be used for sprite rendering. + Thrown when is null. + + + + Begins a new sprite and text batch with the specified render state. + + The drawing order for sprite and text drawing. by default. + State of the blending. Uses if null. + State of the sampler. Uses if null. + State of the depth-stencil buffer. Uses if null. + State of the rasterization. Uses if null. + A custom to override the default sprite effect. Uses default sprite effect if null. + An optional matrix used to transform the sprite geometry. Uses if null. + Thrown if is called next time without previous . + This method uses optional parameters. + The Begin should be called before drawing commands, and you cannot call it again before subsequent . + + + + Flushes all batched text and sprites to the screen. + + This command should be called after and drawing commands. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing location on screen or null if is used. + The drawing bounds on screen or null if is used. + An optional region on the texture which will be rendered. If null - draws full texture. + An optional center of rotation. Uses if null. + An optional rotation of this sprite. 0 by default. + An optional scale vector. Uses if null. + An optional color mask. Uses if null. + The optional drawing modificators. by default. + An optional depth of the layer of this sprite. 0 by default. + Throwns if both and been used. + This overload uses optional parameters. This overload requires only one of and been used. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing location on screen. + An optional region on the texture which will be rendered. If null - draws full texture. + A color mask. + A rotation of this sprite. + Center of the rotation. 0,0 by default. + A scaling of this sprite. + Modificators for drawing. Can be combined. + A depth of the layer of this sprite. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing location on screen. + An optional region on the texture which will be rendered. If null - draws full texture. + A color mask. + A rotation of this sprite. + Center of the rotation. 0,0 by default. + A scaling of this sprite. + Modificators for drawing. Can be combined. + A depth of the layer of this sprite. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing bounds on screen. + An optional region on the texture which will be rendered. If null - draws full texture. + A color mask. + A rotation of this sprite. + Center of the rotation. 0,0 by default. + Modificators for drawing. Can be combined. + A depth of the layer of this sprite. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing location on screen. + An optional region on the texture which will be rendered. If null - draws full texture. + A color mask. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing bounds on screen. + An optional region on the texture which will be rendered. If null - draws full texture. + A color mask. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing location on screen. + A color mask. + + + + Submit a sprite for drawing in the current batch. + + A texture. + The drawing bounds on screen. + A color mask. + + + + Submit a text string of sprites for drawing in the current batch. + + A font. + The text which will be drawn. + The drawing location on screen. + A color mask. + + + + Submit a text string of sprites for drawing in the current batch. + + A font. + The text which will be drawn. + The drawing location on screen. + A color mask. + A rotation of this string. + Center of the rotation. 0,0 by default. + A scaling of this string. + Modificators for drawing. Can be combined. + A depth of the layer of this string. + + + + Submit a text string of sprites for drawing in the current batch. + + A font. + The text which will be drawn. + The drawing location on screen. + A color mask. + A rotation of this string. + Center of the rotation. 0,0 by default. + A scaling of this string. + Modificators for drawing. Can be combined. + A depth of the layer of this string. + + + + Submit a text string of sprites for drawing in the current batch. + + A font. + The text which will be drawn. + The drawing location on screen. + A color mask. + + + + Submit a text string of sprites for drawing in the current batch. + + A font. + The text which will be drawn. + The drawing location on screen. + A color mask. + A rotation of this string. + Center of the rotation. 0,0 by default. + A scaling of this string. + Modificators for drawing. Can be combined. + A depth of the layer of this string. + + + + Submit a text string of sprites for drawing in the current batch. + + A font. + The text which will be drawn. + The drawing location on screen. + A color mask. + A rotation of this string. + Center of the rotation. 0,0 by default. + A scaling of this string. + Modificators for drawing. Can be combined. + A depth of the layer of this string. + + + + Immediately releases the unmanaged resources used by this object. + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + This class handles the queueing of batch items into the GPU by creating the triangle tesselations + that are used to draw the sprite textures. This class supports int.MaxValue number of sprites to be + batched and will process them into short.MaxValue groups (strided by 6 for the number of vertices + sent to the GPU). + + + + + Initialization size for the batch item list and queue. + + + + + The maximum number of batch items that can be processed per iteration + + + + + Initialization size for the vertex array, in batch units. + + + + + The list of batch items to process. + + + + + Index pointer to the next available SpriteBatchItem in _batchItemList. + + + + + The target graphics device. + + + + + Vertex index array. The values in this array never change. + + + + + Reuse a previously allocated SpriteBatchItem from the item pool. + if there is none available grow the pool and initialize new items. + + + + + + Resize and recreate the missing indices for the index and vertex position color buffers. + + + + + + Sorts the batch items and then groups batch drawing into maximal allowed batch sets that do not + overflow the 16 bit array indices for vertices. + + The type of depth sorting desired for the rendering. + The custom effect to apply to the drawn geometry + + + + Sends the triangle list to the graphics device. Here is where the actual drawing starts. + + Start index of vertices to draw. Not used except to compute the count of vertices to draw. + End index of vertices to draw. Not used except to compute the count of vertices to draw. + The custom effect to apply to the geometry + The texture to draw. + + + + Defines sprite visual options for mirroring. + + + + + No options specified. + + + + + Render the sprite reversed along the X axis. + + + + + Render the sprite reversed along the Y axis. + + + + + Returns a copy of the dictionary containing the glyphs in this SpriteFont. + + A new Dictionary containing all of the glyphs inthis SpriteFont + Can be used to calculate character bounds when implementing custom SpriteFont rendering. + + + + Returns the size of a string when rendered in this font. + + The text to measure. + The size, in pixels, of 'text' when rendered in + this font. + + + + Returns the size of the contents of a StringBuilder when + rendered in this font. + + The text to measure. + The size, in pixels, of 'text' when rendered in + this font. + + + + Gets the texture that this SpriteFont draws from. + + Can be used to implement custom rendering of a SpriteFont + + + + Gets a collection of the characters in the font. + + + + + Gets or sets the character that will be substituted when a + given character is not included in the font. + + + + + Gets or sets the line spacing (the distance from baseline + to baseline) of the font. + + + + + Gets or sets the spacing (tracking) between characters in + the font. + + + + + Struct that defines the spacing, Kerning, and bounds of a character. + + Provides the data necessary to implement custom SpriteFont rendering. + + + + The char associated with this glyph. + + + + + Rectangle in the font texture where this letter exists. + + + + + Cropping applied to the BoundsInTexture to calculate the bounds of the actual character. + + + + + The amount of space between the left side ofthe character and its first pixel in the X dimention. + + + + + The amount of space between the right side of the character and its last pixel in the X dimention. + + + + + Width of the character before kerning is applied. + + + + + Width of the character before kerning is applied. + + + + + Defines sprite sort rendering options. + + + + + All sprites are drawing when invokes, in order of draw call sequence. Depth is ignored. + + + + + Each sprite is drawing at individual draw call, instead of . Depth is ignored. + + + + + Same as , except sprites are sorted by texture prior to drawing. Depth is ignored. + + + + + Same as , except sprites are sorted by depth in back-to-front order prior to drawing. + + + + + Same as , except sprites are sorted by depth in front-to-back order prior to drawing. + + + + + Defines a blend mode. + + + + + Each component of the color is multiplied by {1, 1, 1, 1}. + + + + + Each component of the color is multiplied by {0, 0, 0, 0}. + + + + + Each component of the color is multiplied by the source color. + {Rs, Gs, Bs, As}, where Rs, Gs, Bs, As are color source values. + + + + + Each component of the color is multiplied by the inverse of the source color. + {1 − Rs, 1 − Gs, 1 − Bs, 1 − As}, where Rs, Gs, Bs, As are color source values. + + + + + Each component of the color is multiplied by the alpha value of the source. + {As, As, As, As}, where As is the source alpha value. + + + + + Each component of the color is multiplied by the inverse of the alpha value of the source. + {1 − As, 1 − As, 1 − As, 1 − As}, where As is the source alpha value. + + + + + Each component color is multiplied by the destination color. + {Rd, Gd, Bd, Ad}, where Rd, Gd, Bd, Ad are color destination values. + + + + + Each component of the color is multiplied by the inversed destination color. + {1 − Rd, 1 − Gd, 1 − Bd, 1 − Ad}, where Rd, Gd, Bd, Ad are color destination values. + + + + + Each component of the color is multiplied by the alpha value of the destination. + {Ad, Ad, Ad, Ad}, where Ad is the destination alpha value. + + + + + Each component of the color is multiplied by the inversed alpha value of the destination. + {1 − Ad, 1 − Ad, 1 − Ad, 1 − Ad}, where Ad is the destination alpha value. + + + + + Each component of the color is multiplied by a constant in the . + + + + + Each component of the color is multiplied by a inversed constant in the . + + + + + Each component of the color is multiplied by either the alpha of the source color, or the inverse of the alpha of the source color, whichever is greater. + {f, f, f, 1}, where f = min(As, 1 − As), where As is the source alpha value. + + + + + Defines a function for color blending. + + + + + The function will adds destination to the source. (srcColor * srcBlend) + (destColor * destBlend) + + + + + The function will subtracts destination from source. (srcColor * srcBlend) − (destColor * destBlend) + + + + + The function will subtracts source from destination. (destColor * destBlend) - (srcColor * srcBlend) + + + + + The function will extracts minimum of the source and destination. min((srcColor * srcBlend),(destColor * destBlend)) + + + + + The function will extracts maximum of the source and destination. max((srcColor * srcBlend),(destColor * destBlend)) + + + + + Returns the target specific blend state. + + The 0 to 3 target blend state index. + A target blend state. + + + + Enables use of the per-target blend states. + + + + + The comparison function used for depth, stencil, and alpha tests. + + + + + Always passes the test. + + + + + Never passes the test. + + + + + Passes the test when the new pixel value is less than current pixel value. + + + + + Passes the test when the new pixel value is less than or equal to current pixel value. + + + + + Passes the test when the new pixel value is equal to current pixel value. + + + + + Passes the test when the new pixel value is greater than or equal to current pixel value. + + + + + Passes the test when the new pixel value is greater than current pixel value. + + + + + Passes the test when the new pixel value does not equal to current pixel value. + + + + + Defines a culling mode for faces in rasterization process. + + + + + Do not cull faces. + + + + + Cull faces with clockwise order. + + + + + Cull faces with counter clockwise order. + + + + + Defines formats for depth-stencil buffer. + + + + + Depth-stencil buffer will not be created. + + + + + 16-bit depth buffer. + + + + + 24-bit depth buffer. Equivalent of for DirectX platforms. + + + + + 32-bit depth-stencil buffer. Where 24-bit depth and 8-bit for stencil used. + + + + + Defines options for filling the primitive. + + + + + Draw solid faces for each primitive. + + + + + Draw lines for each primitive. + + + + + Defines stencil buffer operations. + + + + + Does not update the stencil buffer entry. + + + + + Sets the stencil buffer entry to 0. + + + + + Replaces the stencil buffer entry with a reference value. + + + + + Increments the stencil buffer entry, wrapping to 0 if the new value exceeds the maximum value. + + + + + Decrements the stencil buffer entry, wrapping to the maximum value if the new value is less than 0. + + + + + Increments the stencil buffer entry, clamping to the maximum value. + + + + + Decrements the stencil buffer entry, clamping to 0. + + + + + Inverts the bits in the stencil buffer entry. + + + + + Defines modes for addressing texels using texture coordinates that are outside of the range of 0.0 to 1.0. + + + + + Texels outside range will form the tile at every integer junction. + + + + + Texels outside range will be set to color of 0.0 or 1.0 texel. + + + + + Same as but tiles will also flipped at every integer junction. + + + + + Texels outside range will be set to the border color. + + + + + Defines filtering types for texture sampler. + + + + + Use linear filtering. + + + + + Use point filtering. + + + + + Use anisotropic filtering. + + + + + Use linear filtering to shrink or expand, and point filtering between mipmap levels (mip). + + + + + Use point filtering to shrink (minify) or expand (magnify), and linear filtering between mipmap levels. + + + + + Use linear filtering to shrink, point filtering to expand, and linear filtering between mipmap levels. + + + + + Use linear filtering to shrink, point filtering to expand, and point filtering between mipmap levels. + + + + + Use point filtering to shrink, linear filtering to expand, and linear filtering between mipmap levels. + + + + + Use point filtering to shrink, linear filtering to expand, and point filtering between mipmap levels. + + + + + Defines types of surface formats. + + + + + Unsigned 32-bit ARGB pixel format for store 8 bits per channel. + + + + + Unsigned 16-bit BGR pixel format for store 5 bits for blue, 6 bits for green, and 5 bits for red. + + + + + Unsigned 16-bit BGRA pixel format where 5 bits reserved for each color and last bit is reserved for alpha. + + + + + Unsigned 16-bit BGRA pixel format for store 4 bits per channel. + + + + + DXT1. Texture format with compression. Surface dimensions must be a multiple 4. + + + + + DXT3. Texture format with compression. Surface dimensions must be a multiple 4. + + + + + DXT5. Texture format with compression. Surface dimensions must be a multiple 4. + + + + + Signed 16-bit bump-map format for store 8 bits for u and v data. + + + + + Signed 16-bit bump-map format for store 8 bits per channel. + + + + + Unsigned 32-bit RGBA pixel format for store 10 bits for each color and 2 bits for alpha. + + + + + Unsigned 32-bit RG pixel format using 16 bits per channel. + + + + + Unsigned 64-bit RGBA pixel format using 16 bits per channel. + + + + + Unsigned A 8-bit format for store 8 bits to alpha channel. + + + + + IEEE 32-bit R float format for store 32 bits to red channel. + + + + + IEEE 64-bit RG float format for store 32 bits per channel. + + + + + IEEE 128-bit RGBA float format for store 32 bits per channel. + + + + + Float 16-bit R format for store 16 bits to red channel. + + + + + Float 32-bit RG format for store 16 bits per channel. + + + + + Float 64-bit ARGB format for store 16 bits per channel. + + + + + Float pixel format for high dynamic range data. + + + + + For compatibility with WPF D3DImage. + + + + + For compatibility with WPF D3DImage. + + + + + Unsigned 32-bit RGBA sRGB pixel format that supports 8 bits per channel. + + + + + Unsigned 32-bit sRGB pixel format that supports 8 bits per channel. 8 bits are unused. + + + + + Unsigned 32-bit sRGB pixel format that supports 8 bits per channel. + + + + + DXT1. sRGB texture format with compression. Surface dimensions must be a multiple of 4. + + + + + DXT3. sRGB texture format with compression. Surface dimensions must be a multiple of 4. + + + + + DXT5. sRGB texture format with compression. Surface dimensions must be a multiple of 4. + + + + + PowerVR texture compression format (iOS and Android). + + + + + PowerVR texture compression format (iOS and Android). + + + + + PowerVR texture compression format (iOS and Android). + + + + + PowerVR texture compression format (iOS and Android). + + + + + Ericcson Texture Compression (Android) + + + + + DXT1 version where 1-bit alpha is used. + + + + + ATC/ATITC compression (Android) + + + + + ATC/ATITC compression (Android) + + + + + A swap chain used for rendering to a secondary GameWindow. + + + This is an extension and not part of stock XNA. + It is currently implemented for Windows and DirectX only. + + + + + Displays the contents of the active back buffer to the screen. + + + + + Marks all texture slots as dirty. + + + + + A usage hint for optimizing memory placement of graphics buffers. + + + + + No special usage. + + + + + The buffer will not be readable and will be optimized for rendering and writing. + + + + + Gets the relevant IndexElementSize enum value for the given type. + + The graphics device. + The type to use for the index buffer + The IndexElementSize enum value that matches the type + + + + The GraphicsDevice is resetting, so GPU resources must be recreated. + + + + + Special offset used internally by GraphicsDevice.DrawUserXXX() methods. + + + + + The GraphicsDevice is resetting, so GPU resources must be recreated. + + + + + Sets the vertex buffer data, specifying the index at which to start copying from the source data array, + the number of elements to copy from the source data array, + and how far apart elements from the source data array should be when they are copied into the vertex buffer. + + Type of elements in the data array. + Offset in bytes from the beginning of the vertex buffer to the start of the copied data. + Data array. + Index at which to start copying from . + Must be within the array bounds. + Number of elements to copy from . + The combination of and + must be within the array bounds. + Specifies how far apart, in bytes, elements from should be when + they are copied into the vertex buffer. + In almost all cases this should be sizeof(T), to create a tightly-packed vertex buffer. + If you specify sizeof(T), elements from will be copied into the + vertex buffer with no padding between each element. + If you specify a value greater than sizeof(T), elements from will be copied + into the vertex buffer with padding between each element. + If you specify 0 for this parameter, it will be treated as if you had specified sizeof(T). + With the exception of 0, you must specify a value greater than or equal to sizeof(T). + + If T is VertexPositionTexture, but you want to set only the position component of the vertex data, + you would call this method as follows: + + Vector3[] positions = new Vector3[numVertices]; + vertexBuffer.SetData(0, positions, 0, numVertices, vertexBuffer.VertexDeclaration.VertexStride); + + + Continuing from the previous example, if you want to set only the texture coordinate component of the vertex data, + you would call this method as follows (note the use of : + + Vector2[] texCoords = new Vector2[numVertices]; + vertexBuffer.SetData(12, texCoords, 0, numVertices, vertexBuffer.VertexDeclaration.VertexStride); + + + + If you provide a byte[] in the parameter, then you should almost certainly + set to 1, to avoid leaving any padding between the byte values + when they are copied into the vertex buffer. + + + + + Sets the vertex buffer data, specifying the index at which to start copying from the source data array, + and the number of elements to copy from the source data array. This is the same as calling + with offsetInBytes equal to 0, + and vertexStride equal to sizeof(T). + + Type of elements in the data array. + Data array. + Index at which to start copying from . + Must be within the array bounds. + Number of elements to copy from . + The combination of and + must be within the array bounds. + + + + Sets the vertex buffer data. This is the same as calling + with offsetInBytes and startIndex equal to 0, elementCount equal to data.Length, + and vertexStride equal to sizeof(T). + + Type of elements in the data array. + Data array. + + + + Special offset used internally by GraphicsDevice.DrawUserXXX() methods. + + + + + Immutable version of . Can be used as a key in the + . + + + + + Stores the vertex layout (input elements) for the input assembler stage. + + + In the DirectX version the input layouts are cached in a dictionary. The + is used as the key in the dictionary and therefore needs to + implement . Two instance are + considered equal if the vertex layouts are structurally identical. + + + + + Initializes a new instance of the class. + + The maximum number of vertex buffer slots. + + + + Initializes a new instance of the class. + + The array for storing vertex declarations. + The array for storing instance frequencies. + The number of used slots. + + + + Determines whether the specified is equal to this instance. + + The object to compare with the current object. + + if the specified is equal to this instance; + otherwise, . + + + + + Determines whether the specified is equal to this + instance. + + The object to compare with the current object. + + if the specified is equal to this + instance; otherwise, . + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data + structures like a hash table. + + + + + Compares two instances to determine whether they are the + same. + + The first instance. + The second instance. + + if the and are + the same; otherwise, . + + + + + Compares two instances to determine whether they are + different. + + The first instance. + The second instance. + + if the and are + the different; otherwise, . + + + + + Gets or sets the number of used input slots. + + The number of used input slots. + + + + Initializes a new instance of the class. + + The vertex declarations per resource slot. + The instance frequencies per resource slot. + + The specified arrays are stored internally - the arrays are not copied. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data + structures like a hash table. + + + + + Defines size for index in and . + + + + + 16-bit short/ushort value been used. + + + + + 32-bit int/uint value been used. + + + + + Caches DirectX input layouts for the input assembler stage. + + + + + Initializes a new instance of the class. + + The graphics device. + The byte code of the vertex shader. + + + + Releases all resources used by an instance of the class. + + + This method calls the virtual method, passing in + , and then suppresses finalization of the instance. + + + + + Releases the unmanaged resources used by an instance of the + class and optionally releases the managed resources. + + + to release both managed and unmanaged resources; + to release only unmanaged resources. + + + + + Gets or create the DirectX input layout for the specified vertex buffers. + + The vertex buffers. + The DirectX input layout. + + + + Gets a more helpful message for the SharpDX invalid arg error. + + The input elements. + The exception message. + + + + Defines how vertex data is ordered. + + + + + Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle. Back-face culling is affected by the current winding-order render state. + + + + + Renders the vertices as a triangle strip. The back-face culling flag is flipped automatically on even-numbered triangles. + + + + + Renders the vertices as a list of isolated straight line segments; the count may be any positive integer. + + + + + Renders the vertices as a single polyline; the count may be any positive integer. + + + + + Defines how a vertex buffer is bound to the graphics device for rendering. + + + + + Creates an instance of . + + The vertex buffer to bind. + + + + Creates an instance of . + + The vertex buffer to bind. + + The index of the first vertex in the vertex buffer to use. + + + + + Creates an instance of VertexBufferBinding. + + The vertex buffer to bind. + + The index of the first vertex in the vertex buffer to use. + + + The number of instances to draw using the same per-instance data before advancing in the + buffer by one element. This value must be 0 for an element that contains per-vertex data + and greater than 0 for per-instance data. + + + is . + + + or is invalid. + + + + + Gets the vertex buffer. + + The vertex buffer. + + + + Gets the index of the first vertex in the vertex buffer to use. + + The index of the first vertex in the vertex buffer to use. + + + + Gets the number of instances to draw using the same per-instance data before advancing + in the buffer by one element. + + + The number of instances to draw using the same per-instance data before advancing in the + buffer by one element. This value must be 0 for an element that contains per-vertex + data and greater than 0 for per-instance data. + + + + + Stores the vertex buffers to be bound to the input assembler stage. + + + + + Initializes a new instance of the class. + + The maximum number of vertex buffer slots. + + + + Clears the vertex buffer slots. + + + if the input layout was changed; otherwise, + . + + + + + Binds the specified vertex buffer to the first input slot. + + The vertex buffer. + + The offset (in vertices) from the beginning of the vertex buffer to the first vertex to + use. + + + if the input layout was changed; otherwise, + . + + + + + Binds the the specified vertex buffers to the input slots. + + The vertex buffer bindings. + + if the input layout was changed; otherwise, + . + + + + + Gets vertex buffer bound to the specified input slots. + + The vertex buffer binding. + + + + Gets vertex buffers bound to the input slots. + + The vertex buffer bindings. + + + + Creates an that can be used as a key in the + . + + The . + + + + Helper class which ensures we only lookup a vertex + declaration for a particular type once. + + A vertex structure which implements IVertexType. + + + + Defines per-vertex data of a vertex buffer. + + + implements and can be used as + a key in a dictionary. Two vertex declarations are considered equal if the vertices are + structurally equivalent, i.e. the vertex elements and the vertex stride are identical. (The + properties and are + ignored in and !) + + + + + Initializes a new instance of the class. + + The vertex elements. + + is or empty. + + + + + Initializes a new instance of the class. + + The size of a vertex (including padding) in bytes. + The vertex elements. + + is or empty. + + + + + Returns the VertexDeclaration for Type. + + A value type which implements the IVertexType interface. + The VertexDeclaration. + + Prefer to use VertexDeclarationCache when the declaration lookup + can be performed with a templated type. + + + + + Gets a copy of the vertex elements. + + A copy of the vertex elements. + + + + Determines whether the specified is equal to this instance. + + The object to compare with the current object. + + if the specified is equal to this instance; + otherwise, . + + + + + Determines whether the specified is equal to this + instance. + + The object to compare with the current object. + + if the specified is equal to this + instance; otherwise, . + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data + structures like a hash table. + + + + + Compares two instances to determine whether they are the + same. + + The first instance. + The second instance. + + if the and are + the same; otherwise, . + + + + + Compares two instances to determine whether they are + different. + + The first instance. + The second instance. + + if the and are + the different; otherwise, . + + + + + Gets the internal vertex elements array. + + The internal vertex elements array. + + + + Gets the size of a vertex (including padding) in bytes. + + The size of a vertex (including padding) in bytes. + + + + Defines a single element in a vertex. + + + + + Initializes a new instance of the struct. + + The offset in bytes from the beginning of the stream to the vertex element. + The element format. + The HLSL semantic of the element in the vertex shader input-signature. + The semantic index, which is required if the semantic is used for more than one vertex element. + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data + structures like a hash table. + + + + + Returns a that represents this instance. + + A that represents this instance. + + + + Determines whether the specified is equal to this instance. + + The object to compare with the current object. + + if the specified is equal to this instance; + otherwise, . + + + + + Determines whether the specified is equal to this + instance. + + The object to compare with the current object. + + if the specified is equal to this + instance; otherwise, . + + + + + Compares two instances to determine whether they are the + same. + + The first instance. + The second instance. + + if the and are + the same; otherwise, . + + + + + Compares two instances to determine whether they are + different. + + The first instance. + The second instance. + + if the and are + the different; otherwise, . + + + + + Gets the DirectX . + + The input resource slot. + + The number of instances to draw using the same per-instance data before advancing in the + buffer by one element. This value must be 0 for an element that contains per-vertex + data. + + . + + Unknown vertex element format or usage! + + + + + Gets or sets the offset in bytes from the beginning of the stream to the vertex element. + + The offset in bytes. + + + + Gets or sets the data format. + + The data format. + + + + Gets or sets the HLSL semantic of the element in the vertex shader input. + + The HLSL semantic of the element in the vertex shader input. + + + + Gets or sets the semantic index. + + + The semantic index, which is required if the semantic is used for more than one vertex + element. + + + Usage indices in a vertex declaration usually start with 0. When multiple vertex buffers + are bound to the input assembler stage (see ), + MonoGame internally adjusts the usage indices based on the order in which the vertex + buffers are bound. + + + + + Defines vertex element formats. + + + + + Single 32-bit floating point number. + + + + + Two component 32-bit floating point number. + + + + + Three component 32-bit floating point number. + + + + + Four component 32-bit floating point number. + + + + + Four component, packed unsigned byte, mapped to 0 to 1 range. + + + + + Four component unsigned byte. + + + + + Two component signed 16-bit integer. + + + + + Four component signed 16-bit integer. + + + + + Normalized, two component signed 16-bit integer. + + + + + Normalized, four component signed 16-bit integer. + + + + + Two component 16-bit floating point number. + + + + + Four component 16-bit floating point number. + + + + + Defines usage for vertex elements. + + + + + Position data. + + + + + Color data. + + + + + Texture coordinate data or can be used for user-defined data. + + + + + Normal data. + + + + + Binormal data. + + + + + Tangent data. + + + + + Blending indices data. + + + + + Blending weight data. + + + + + Depth data. + + + + + Fog data. + + + + + Point size data. Usable for drawing point sprites. + + + + + Sampler data for specifies the displacement value to look up. + + + + + Single, positive float value, specifies a tessellation factor used in the tessellation unit to control the rate of tessellation. + + + + + Describes the view bounds for render-target surface. + + + + + Constructs a viewport from the given values. The will be 0.0 and will be 1.0. + + The x coordinate of the upper-left corner of the view bounds in pixels. + The y coordinate of the upper-left corner of the view bounds in pixels. + The width of the view bounds in pixels. + The height of the view bounds in pixels. + + + + Constructs a viewport from the given values. + + The x coordinate of the upper-left corner of the view bounds in pixels. + The y coordinate of the upper-left corner of the view bounds in pixels. + The width of the view bounds in pixels. + The height of the view bounds in pixels. + The lower limit of depth. + The upper limit of depth. + + + + Creates a new instance of struct. + + A that defines the location and size of the in a render target. + + + + Projects a from world space into screen space. + + The to project. + The projection . + The view . + The world . + + + + + Unprojects a from screen space into world space. + + The to unproject. + The projection . + The view . + The world . + + + + + Returns a representation of this in the format: + {X:[] Y:[] Width:[] Height:[] MinDepth:[] MaxDepth:[]} + + A representation of this . + + + + The height of the bounds in pixels. + + + + + The upper limit of depth of this viewport. + + + + + The lower limit of depth of this viewport. + + + + + The width of the bounds in pixels. + + + + + The y coordinate of the beginning of this viewport. + + + + + The x coordinate of the beginning of this viewport. + + + + + Gets the aspect ratio of this , which is width / height. + + + + + Gets or sets a boundary of this . + + + + + Returns the subset of the viewport that is guaranteed to be visible on a lower quality display. + + + + + Defines the buttons on gamepad. + + + + + Directional pad up. + + + + + Directional pad down. + + + + + Directional pad left. + + + + + Directional pad right. + + + + + START button. + + + + + BACK button. + + + + + Left stick button (pressing the left stick). + + + + + Right stick button (pressing the right stick). + + + + + Left bumper (shoulder) button. + + + + + Right bumper (shoulder) button. + + + + + Big button. + + + + + A button. + + + + + B button. + + + + + X button. + + + + + Y button. + + + + + Left stick is towards the left. + + + + + Right trigger. + + + + + Left trigger. + + + + + Right stick is towards up. + + + + + Right stick is towards down. + + + + + Right stick is towards the right. + + + + + Right stick is towards the left. + + + + + Left stick is towards up. + + + + + Left stick is towards down. + + + + + Left stick is towards the right. + + + + + Defines a button state for buttons of mouse, gamepad or joystick. + + + + + The button is released. + + + + + The button is pressed. + + + + + Supports querying the game controllers and setting the vibration motors. + + + + + Returns the capabilites of the connected controller. + + Player index for the controller you want to query. + The capabilites of the controller. + + + + Returns the capabilites of the connected controller. + + Index for the controller you want to query. + The capabilites of the controller. + + + + Gets the current state of a game pad controller with an independent axes dead zone. + + Player index for the controller you want to query. + The state of the controller. + + + + Gets the current state of a game pad controller with an independent axes dead zone. + + Index for the controller you want to query. + The state of the controller. + + + + Gets the current state of a game pad controller, using a specified dead zone + on analog stick positions. + + Player index for the controller you want to query. + Enumerated value that specifies what dead zone type to use. + The state of the controller. + + + + Gets the current state of a game pad controller, using a specified dead zone + on analog stick positions. + + Index for the controller you want to query. + Enumerated value that specifies what dead zone type to use. + The state of the controller. + + + + Sets the vibration motor speeds on the controller device if supported. + + Player index that identifies the controller to set. + The speed of the left motor, between 0.0 and 1.0. This motor is a low-frequency motor. + The speed of the right motor, between 0.0 and 1.0. This motor is a high-frequency motor. + Returns true if the vibration motors were set. + + + + Sets the vibration motor speeds on the controller device if supported. + + Index for the controller you want to query. + The speed of the left motor, between 0.0 and 1.0. This motor is a low-frequency motor. + The speed of the right motor, between 0.0 and 1.0. This motor is a high-frequency motor. + Returns true if the vibration motors were set. + + + + The maximum number of game pads supported on this system. Attempting to + access a gamepad index higher than this number will result in an + being thrown by the API. + + + + + Determines whether two specified instances of are equal. + + The first object to compare. + The second object to compare. + true if and are equal; otherwise, false. + + + + Determines whether two specified instances of are not equal. + + The first object to compare. + The second object to compare. + true if and are not equal; otherwise, false. + + + + Returns a value indicating whether this instance is equal to a specified object. + + An object to compare to this instance. + true if is a and has the same value as this instance; otherwise, false. + + + + Determines whether two specified instances of are equal. + + The first object to compare. + The second object to compare. + true if and are equal; otherwise, false. + + + + Determines whether two specified instances of are not equal. + + The first object to compare. + The second object to compare. + true if and are not equal; otherwise, false. + + + + Returns a value indicating whether this instance is equal to a specified object. + + An object to compare to this instance. + true if is a and has the same value as this instance; otherwise, false. + + + + The default initialized gamepad state. + + + + + Gets the button mask along with 'virtual buttons' like LeftThumbstickLeft. + + + + + Determines whether two specified instances of are equal. + + The first object to compare. + The second object to compare. + true if and are equal; otherwise, false. + + + + Determines whether two specified instances of are not equal. + + The first object to compare. + The second object to compare. + true if and are not equal; otherwise, false. + + + + Returns a value indicating whether this instance is equal to a specified object. + + An object to compare to this instance. + true if is a and has the same value as this instance; otherwise, false. + + + + Determines whether two specified instances of are equal. + + The first object to compare. + The second object to compare. + true if and are equal; otherwise, false. + + + + Determines whether two specified instances of are not equal. + + The first object to compare. + The second object to compare. + true if and are not equal; otherwise, false. + + + + Returns a value indicating whether this instance is equal to a specified object. + + An object to compare to this instance. + true if is a and has the same value as this instance; otherwise, false. + + + + Defines a type of gamepad. + + + + + Unknown. + + + + + GamePad is the XBOX controller. + + + + + GamePad is a wheel. + + + + + GamePad is an arcade stick. + + + + + GamePad is a flight stick. + + + + + GamePad is a dance pad. + + + + + GamePad is a guitar. + + + + + GamePad is an alternate guitar. + + + + + GamePad is a drum kit. + + + + + GamePad is a big button pad. + + + + + Allows interaction with joysticks. Unlike the number of Buttons/Axes/DPads is not limited. + + + + + Gets the capabilites of the joystick. + + Index of the joystick you want to access. + The capabilites of the joystick. + + + + Gets the current state of the joystick. + + Index of the joystick you want to access. + The state of the joystick. + + + + Describes joystick capabilities. + + + + + Gets a value indicating whether the joystick is connected. + + true if the joystick is connected; otherwise, false. + + + + Gets the unique identifier of the joystick. + + String representing the unique identifier of the joystick. + + + + Gets the axis count. + + The number of axes that the joystick possesses. + + + + Gets the button count. + + The number of buttons that the joystick possesses. + + + + Gets the hat count. + + The number of hats/dpads that the joystick possesses. + + + + Describes joystick hat state. + + + + + Gets if joysticks hat "down" is pressed. + + if the button is pressed otherwise, . + + + + Gets if joysticks hat "left" is pressed. + + if the button is pressed otherwise, . + + + + Gets if joysticks hat "right" is pressed. + + if the button is pressed otherwise, . + + + + Gets if joysticks hat "up" is pressed. + + if the button is pressed otherwise, . + + + + Describes current joystick state. + + + + + Gets a value indicating whether the joystick is connected. + + true if the joystick is connected; otherwise, false. + + + + Gets the joystick axis values. + + An array list of floats that indicate axis values. + + + + Gets the joystick button values. + + An array list of ButtonState that indicate button values. + + + + Gets the joystick hat values. + + An array list of that indicate hat values. + + + + Allows getting keystrokes from keyboard. + + + + + Returns the current keyboard state. + + Current keyboard state. + + + + Returns the current keyboard state for a given player. + + Player index of the keyboard. + Current keyboard state. + + + + Holds the state of keystrokes by a keyboard. + + + + + Initializes a new instance of the class. + + List of keys to be flagged as pressed on initialization. + + + + Initializes a new instance of the class. + + List of keys to be flagged as pressed on initialization. + + + + Gets whether given key is currently being pressed. + + The key to query. + true if the key is pressed; false otherwise. + + + + Gets whether given key is currently being not pressed. + + The key to query. + true if the key is not pressed; false otherwise. + + + + Returns an array of values holding keys that are currently being pressed. + + The keys that are currently being pressed. + + + + Gets the hash code for instance. + + Hash code of the object. + + + + Compares whether two instances are equal. + + instance to the left of the equality operator. + instance to the right of the equality operator. + true if the instances are equal; false otherwise. + + + + Compares whether two instances are not equal. + + instance to the left of the inequality operator. + instance to the right of the inequality operator. + true if the instances are different; false otherwise. + + + + Compares whether current instance is equal to specified object. + + The to compare. + true if the provided instance is same with current; false otherwise. + + + + Returns the state of a specified key. + + The key to query. + The state of the key. + + + + Defines the keys on a keyboard. + + + + + Reserved. + + + + + BACKSPACE key. + + + + + TAB key. + + + + + ENTER key. + + + + + CAPS LOCK key. + + + + + ESC key. + + + + + SPACEBAR key. + + + + + PAGE UP key. + + + + + PAGE DOWN key. + + + + + END key. + + + + + HOME key. + + + + + LEFT ARROW key. + + + + + UP ARROW key. + + + + + RIGHT ARROW key. + + + + + DOWN ARROW key. + + + + + SELECT key. + + + + + PRINT key. + + + + + EXECUTE key. + + + + + PRINT SCREEN key. + + + + + INS key. + + + + + DEL key. + + + + + HELP key. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + A key. + + + + + B key. + + + + + C key. + + + + + D key. + + + + + E key. + + + + + F key. + + + + + G key. + + + + + H key. + + + + + I key. + + + + + J key. + + + + + K key. + + + + + L key. + + + + + M key. + + + + + N key. + + + + + O key. + + + + + P key. + + + + + Q key. + + + + + R key. + + + + + S key. + + + + + T key. + + + + + U key. + + + + + V key. + + + + + W key. + + + + + X key. + + + + + Y key. + + + + + Z key. + + + + + Left Windows key. + + + + + Right Windows key. + + + + + Applications key. + + + + + Computer Sleep key. + + + + + Numeric keypad 0 key. + + + + + Numeric keypad 1 key. + + + + + Numeric keypad 2 key. + + + + + Numeric keypad 3 key. + + + + + Numeric keypad 4 key. + + + + + Numeric keypad 5 key. + + + + + Numeric keypad 6 key. + + + + + Numeric keypad 7 key. + + + + + Numeric keypad 8 key. + + + + + Numeric keypad 9 key. + + + + + Multiply key. + + + + + Add key. + + + + + Separator key. + + + + + Subtract key. + + + + + Decimal key. + + + + + Divide key. + + + + + F1 key. + + + + + F2 key. + + + + + F3 key. + + + + + F4 key. + + + + + F5 key. + + + + + F6 key. + + + + + F7 key. + + + + + F8 key. + + + + + F9 key. + + + + + F10 key. + + + + + F11 key. + + + + + F12 key. + + + + + F13 key. + + + + + F14 key. + + + + + F15 key. + + + + + F16 key. + + + + + F17 key. + + + + + F18 key. + + + + + F19 key. + + + + + F20 key. + + + + + F21 key. + + + + + F22 key. + + + + + F23 key. + + + + + F24 key. + + + + + NUM LOCK key. + + + + + SCROLL LOCK key. + + + + + Left SHIFT key. + + + + + Right SHIFT key. + + + + + Left CONTROL key. + + + + + Right CONTROL key. + + + + + Left ALT key. + + + + + Right ALT key. + + + + + Browser Back key. + + + + + Browser Forward key. + + + + + Browser Refresh key. + + + + + Browser Stop key. + + + + + Browser Search key. + + + + + Browser Favorites key. + + + + + Browser Start and Home key. + + + + + Volume Mute key. + + + + + Volume Down key. + + + + + Volume Up key. + + + + + Next Track key. + + + + + Previous Track key. + + + + + Stop Media key. + + + + + Play/Pause Media key. + + + + + Start Mail key. + + + + + Select Media key. + + + + + Start Application 1 key. + + + + + Start Application 2 key. + + + + + The OEM Semicolon key on a US standard keyboard. + + + + + For any country/region, the '+' key. + + + + + For any country/region, the ',' key. + + + + + For any country/region, the '-' key. + + + + + For any country/region, the '.' key. + + + + + The OEM question mark key on a US standard keyboard. + + + + + The OEM tilde key on a US standard keyboard. + + + + + The OEM open bracket key on a US standard keyboard. + + + + + The OEM pipe key on a US standard keyboard. + + + + + The OEM close bracket key on a US standard keyboard. + + + + + The OEM singled/double quote key on a US standard keyboard. + + + + + Used for miscellaneous characters; it can vary by keyboard. + + + + + The OEM angle bracket or backslash key on the RT 102 key keyboard. + + + + + IME PROCESS key. + + + + + Attn key. + + + + + CrSel key. + + + + + ExSel key. + + + + + Erase EOF key. + + + + + Play key. + + + + + Zoom key. + + + + + PA1 key. + + + + + CLEAR key. + + + + + Green ChatPad key. + + + + + Orange ChatPad key. + + + + + PAUSE key. + + + + + IME Convert key. + + + + + IME NoConvert key. + + + + + Kana key on Japanese keyboards. + + + + + Kanji key on Japanese keyboards. + + + + + OEM Auto key. + + + + + OEM Copy key. + + + + + OEM Enlarge Window key. + + + + + Identifies the state of a keyboard key. + + + + + Key is released. + + + + + Key is pressed. + + + + + Allows reading position and button click information from mouse. + + + + + This API is an extension to XNA. + Gets mouse state information that includes position and button + presses for the provided window + + Current state of the mouse. + + + + Gets mouse state information that includes position and button presses + for the primary window + + Current state of the mouse. + + + + Sets mouse cursor's relative position to game-window. + + Relative horizontal position of the cursor. + Relative vertical position of the cursor. + + + + Gets or sets the window handle for current mouse processing. + + + + + Struct representing a point. + (Suggestion : Make another class for mouse extensions) + + + + + Represents a mouse state with cursor position and button press information. + + + + + Initializes a new instance of the MouseState. + + Horizontal position of the mouse. + Vertical position of the mouse. + Mouse scroll wheel's value. + Left mouse button's state. + Middle mouse button's state. + Right mouse button's state. + XBUTTON1's state. + XBUTTON2's state. + Normally should be used to get mouse current state. The constructor is provided for simulating mouse input. + + + + Compares whether two MouseState instances are equal. + + MouseState instance on the left of the equal sign. + MouseState instance on the right of the equal sign. + true if the instances are equal; false otherwise. + + + + Compares whether two MouseState instances are not equal. + + MouseState instance on the left of the equal sign. + MouseState instance on the right of the equal sign. + true if the objects are not equal; false otherwise. + + + + Compares whether current instance is equal to specified object. + + The MouseState to compare. + + + + + Gets the hash code for MouseState instance. + + Hash code of the object. + + + + Gets horizontal position of the cursor. + + + + + Gets vertical position of the cursor. + + + + + Gets cursor position. + + + + + Gets state of the left mouse button. + + + + + Gets state of the middle mouse button. + + + + + Gets state of the right mouse button. + + + + + Returns cumulative scroll wheel value since the game start. + + + + + Gets state of the XButton1. + + + + + Gets state of the XButton2. + + + + + Represents data from a multi-touch gesture over a span of time. + + + + + Initializes a new . + + + + + + + + + + + Gets the type of the gesture. + + + + + Gets the starting time for this multi-touch gesture sample. + + + + + Gets the position of the first touch-point in the gesture sample. + + + + + Gets the position of the second touch-point in the gesture sample. + + + + + Gets the delta information for the first touch-point in the gesture sample. + + + + + Gets the delta information for the second touch-point in the gesture sample. + + + + + Enumuration of values that represent different gestures that can be processed by . + + + + + No gestures. + + + + + The user touched a single point. + + + + + States completion of a drag gesture(VerticalDrag, HorizontalDrag, or FreeDrag). + + No position or delta information is available for this sample. + + + + States that a touch was combined with a quick swipe. + + Flicks does not contain position information. The velocity of it can be read from + + + + The use touched a point and then performed a free-form drag. + + + + + The use touched a single point for approximately one second. + + As this is a single event, it will not be contionusly fired while the user is holding the touch-point. + + + + The user touched the screen and performed either left to right or right to left drag gesture. + + + + + The user either converged or diverged two touch-points on the screen which is like a two-finger drag. + + When this gesture-type is enabled and two fingers are down, it takes precedence over drag gestures. + + + + An in-progress pinch operation was completed. + + No position or delta information is available for this sample. + + + + The user tapped the device twice which is always preceded by a Tap gesture. + + If the time between two touchs are long enough, insted two seperate single Tap gestures will be generated. + + + + The user touched the screen and performed either top to bottom or bottom to top drag gesture. + + + + + Provides state information for a touch screen enabled device. + + + + + Initializes a new instance of the with a pre-determined set of touch locations. + + Array of items to initialize with. + + + + Returns specified by ID. + + + + + + + + Returns the index of the first occurrence of specified item in the collection. + + to query. + + + + + Inserts a item into the indicated position. + + The position to insert into. + The item to insert. + + + + Removes the item at specified index. + + Index of the item that will be removed from collection. + + + + Adds a to the collection. + + The item to be added. + + + + Clears all the items in collection. + + + + + Returns true if specified item exists in the collection, false otherwise./> + + The item to query for. + Returns true if queried item is found, false otherwise. + + + + Copies the collection to specified array starting from the given index. + + The array to copy items. + The starting index of the copy operation. + + + + Removes the specified item from the collection. + + The item to remove. + + + + + Returns an enumerator for the . + + Enumerable list of objects. + + + + Returns an enumerator for the . + + Enumerable list of objects. + + + + Returns an enumerator for the . + + Enumerable list of objects. + + + + States if a touch screen is available. + + + + + States if touch collection is read only. + + + + + Gets or sets the item at the specified index of the collection. + + Position of the item. + + + + + Returns the number of items that exist in the collection. + + + + + Provides the ability to iterate through the TouchLocations in an TouchCollection. + + + + + Advances the enumerator to the next element of the TouchCollection. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Gets the current element in the TouchCollection. + + + + + Attributes + + + + + True if this touch was pressed and released on the same frame. + In this case we will keep it around for the user to get by GetState that frame. + However if they do not call GetState that frame, this touch will be forgotten. + + + + + Helper for assigning an invalid touch location. + + + + + Returns a copy of the touch with the state changed to moved. + + The new touch location. + + + + Updates the touch location using the new event. + + The next event for this touch location. + + + + Holds the possible state information for a touch location.. + + + + + This touch location position is invalid. + + Typically, you will encounter this state when a new touch location attempts to get the previous state of itself. + + + + This touch location position was updated or pressed at the same position. + + + + + This touch location position is new. + + + + + This touch location position was released. + + + + + Allows retrieval of information from Touch Panel device. + + + + + Gets the current state of the touch panel. + + + + + + Returns the next available gesture on touch panel device. + + + + + + The window handle of the touch panel. Purely for Xna compatibility. + + + + + Gets or sets the display height of the touch panel. + + + + + Gets or sets the display orientation of the touch panel. + + + + + Gets or sets the display width of the touch panel. + + + + + Gets or sets enabled gestures. + + + + + Returns true if a touch gesture is available. + + + + + Allows retrieval of capabilities information from touch panel device. + + + + + Returns true if a device is available for use. + + + + + Returns the maximum number of touch locations tracked by the touch panel device. + + + + + The reserved touchId for all mouse touch points. + + + + + Maximum distance a touch location can wiggle and + not be considered to have moved. + + + + + The current touch state. + + + + + The current gesture state. + + + + + The positional scale to apply to touch input. + + + + + The current size of the display. + + + + + The next touch location identifier. + The value 1 is reserved for the mouse touch point. + + + + + The mapping between platform specific touch ids + and the touch ids we assign to touch locations. + + + + + Returns capabilities of touch panel device. + + + + + + Age all the touches, so any that were Pressed become Moved, and any that were Released are removed + + + + + Apply the given new touch to the state. If it is a Pressed it will be added as a new touch, otherwise we update the existing touch it matches + + + + + This will release all touch locations. It should only be + called on platforms where touch state is reset all at once. + + + + + Returns the next available gesture on touch panel device. + + + + + + The pinch touch locations. + + + + + If true the pinch touch locations are valid and + a pinch gesture has begun. + + + + + Used to disable emitting of tap gestures. + + + + + Used to disable emitting of hold gestures. + + + + + The current timestamp that we use for setting the timestamp of new TouchLocations + + + + + The window handle of the touch panel. Purely for Xna compatibility. + + + + + Gets or sets the display height of the touch panel. + + + + + Gets or sets the display orientation of the touch panel. + + + + + Gets or sets the display width of the touch panel. + + + + + Gets or sets enabled gestures. + + + + + Returns true if a touch gesture is available. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Returns the stream that contains the album art image data. + + + + + Returns the stream that contains the album thumbnail image data. + + + + + Returns a String representation of this Album. + + + + + Gets the hash code for this instance. + + + + + Gets the duration of the Album. + + + + + Gets the Genre of the Album. + + + + + Gets a value indicating whether the Album has associated album art. + + + + + Gets a value indicating whether the object is disposed. + + + + + Gets the name of the Album. + + + + + Gets a SongCollection that contains the songs on the album. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Gets the number of Album objects in the AlbumCollection. + + + + + Gets a value indicating whether the object is disposed. + + + + + Gets the Album at the specified index in the AlbumCollection. + + Index of the Album to get. + + + + Immediately releases the unmanaged resources used by this object. + + + + + Returns a String representation of the Artist. + + + + + Gets the hash code for this instance. + + + + + Gets the AlbumCollection for the Artist. + + + + + Gets a value indicating whether the object is disposed. + + + + + Gets the name of the Artist. + + + + + Gets the SongCollection for the Artist. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Returns a String representation of the Genre. + + + + + Gets the hash code for this instance. + + + + + Gets the AlbumCollection for the Genre. + + + + + Gets a value indicating whether the object is disposed. + + + + + Gets the name of the Genre. + + + + + Gets the SongCollection for the Genre. + + + + + Load the contents of MediaLibrary. This blocking call might take up to a few minutes depending on the platform and the size of the user's music library. + + Callback that reports back the progress of the music library loading in percents (0-100). + + + + This class provides a way for the MediaManager to be initialised exactly once, + regardless of how many different places need it, and which is called first. + + + + + Ensures that the MediaManager has been initialised. Must be called from UI thread. + + + + + Ensures that the MediaManager has been shutdown. Must be called from UI thread. + + + + + Play clears the current playback queue, and then queues up the specified song for playback. + Playback starts immediately at the beginning of the song. + + + + + Play clears the current playback queue, and then queues up the specified song for playback. + Playback starts immediately at the given position of the song. + + + + + Gets the Album on which the Song appears. + + + + + Gets the Artist of the Song. + + + + + Gets the Genre of the Song. + + + + + Type of sounds in a video + + + + + This video contains only music. + + + + + This video contains only dialog. + + + + + This video contains music and dialog. + + + + + Represents a video. + + + + + I actually think this is a file PATH... + + + + + Gets the duration of the Video. + + + + + Gets the frame rate of this video. + + + + + Gets the height of this video, in pixels. + + + + + Gets the VideoSoundtrackType for this video. + + + + + Gets the width of this video, in pixels. + + + + + Retrieves a Texture2D containing the current frame of video being played. + + The current frame of video. + Thrown if no video is set on the player + Thrown if the platform was unable to get a texture in a reasonable amount of time. Often the platform specific media code is running + in a different thread or process. Note: This may be a change from XNA behaviour + + + + Pauses the currently playing video. + + + + + Plays a Video. + + Video to play. + + + + Resumes a paused video. + + + + + Stops playing a video. + + + + + Immediately releases the unmanaged resources used by this object. + + + + + Gets a value that indicates whether the object is disposed. + + + + + Gets a value that indicates whether the player is playing video in a loop. + + + + + Gets or sets the muted setting for the video player. + + + + + Gets the play position within the currently playing video. + + + + + Gets the media playback state, MediaState. + + + + + Gets the Video that is currently playing. + + + + + Video player volume, from 0.0f (silence) to 1.0f (full volume relative to the current device volume). + + + + + Contains a logical collection of files used for user-data storage. + + MSDN documentation contains related conceptual article: http://msdn.microsoft.com/en-us/library/bb200105.aspx#ID4EDB + + + + Initializes a new instance of the class. + + The attached storage-device. + name. + The player index of the player to save the data. + + + + Creates a new directory in the storage-container. + + Relative path of the directory to be created. + + + + Creates a file in the storage-container. + + Relative path of the file to be created. + Returns for the created file. + + + + Deletes specified directory for the storage-container. + + The relative path of the directory to be deleted. + + + + Deletes a file from the storage-container. + + The relative path of the file to be deleted. + + + + Returns true if specified path exists in the storage-container, false otherwise. + + The relative path of directory to query for. + True if queried directory exists, false otherwise. + + + + Disposes un-managed objects referenced by this object. + + + + + Returns true if the specified file exists in the storage-container, false otherwise. + + The relative path of file to query for. + True if queried file exists, false otherwise. + + + + Returns list of directory names in the storage-container. + + List of directory names. + + + + Returns list of file names in the storage-container. + + List of file names. + + + + Returns list of file names with given search pattern. + + A search pattern that supports single-character ("?") and multicharacter ("*") wildcards. + List of matched file names. + + + + Opens a file contained in storage-container. + + Relative path of the file. + that specifies how the file is opened. + object for the opened file. + + + + Opens a file contained in storage-container. + + Relative path of the file. + that specifies how the file is opened. + that specifies access mode. + object for the opened file. + + + + Opens a file contained in storage-container. + + Relative path of the file. + that specifies how the file is opened. + that specifies access mode. + A bitwise combination of enumeration values that specifies access modes for other stream objects. + object for the opened file. + + + + Returns display name of the title. + + + + + Gets a bool value indicating whether the instance has been disposed. + + + + + Returns the that holds logical files for the container. + + + + + Fired when is called or object if finalized or collected by the garbage collector. + + + + + Exposes a storage device for storing user data. + + MSDN documentation contains related conceptual article: http://msdn.microsoft.com/en-us/library/bb200105.aspx + + + + Creates a new instance. + + The playerIndex of the player. + Size of the storage device. + + + + + Returns the amount of free space. + + + + + Returns true if device is connected, false otherwise. + + + + + Returns the total size of device. + + + + + Fired when a device is removed or inserted. + + + + + This is a helper class to obtain the native file system information. + + Look at the Mac implementation. + + + + Gets or sets path for root of the . + + + + + Compute a hash from a byte array. + + + Modified FNV Hash in C# + http://stackoverflow.com/a/468084 + + + + + Compute a hash from the content of a stream and restore the position. + + + Modified FNV Hash in C# + http://stackoverflow.com/a/468084 + + + + + Combines the filePath and relativeFile based on relativeFile being a file in the same location as filePath. + Relative directory operators (..) are also resolved + + "A\B\C.txt","D.txt" becomes "A\B\D.txt" + "A\B\C.txt","..\D.txt" becomes "A\D.txt" + Path to the file we are starting from + Relative location of another file to resolve the path to + + + + Returns true if the given type represents a non-object type that is not abstract. + + + + + Returns true if the get method of the given property exist and are public. + Note that we allow a getter-only property to be serialized (and deserialized), + *if* CanDeserializeIntoExistingObject is true for the property type. + + + + + Returns true if the given type can be assigned the given value + + + + + Returns true if the given type can be assigned a value with the given object type + + + + + Represents a Zlib stream for compression or decompression. + + + + + The ZlibStream is a Decorator on a . It adds ZLIB compression or decompression to any + stream. + + + Using this stream, applications can compress or decompress data via + stream Read() and Write() operations. Either compresssion or + decompression can occur through either reading or writing. The compression + format used is ZLIB, which is documented in IETF RFC 1950, "ZLIB Compressed + Data Format Specification version 3.3". This implementation of ZLIB always uses + DEFLATE as the compression method. (see IETF RFC 1951, "DEFLATE + Compressed Data Format Specification version 1.3.") + + + The ZLIB format allows for varying compression methods, window sizes, and dictionaries. + This implementation always uses the DEFLATE compression method, a preset dictionary, + and 15 window bits by default. + + + + This class is similar to DeflateStream, except that it adds the + RFC1950 header and trailer bytes to a compressed stream when compressing, or expects + the RFC1950 header and trailer bytes when decompressing. It is also similar to the + . + + + + + + + Create a ZlibStream using the specified CompressionMode. + + + + + When mode is CompressionMode.Compress, the ZlibStream + will use the default compression level. The "captive" stream will be + closed when the ZlibStream is closed. + + + + + + This example uses a ZlibStream to compress a file, and writes the + compressed data to another file. + + using (System.IO.Stream input = System.IO.File.OpenRead(fileToCompress)) + { + using (var raw = System.IO.File.Create(fileToCompress + ".zlib")) + { + using (Stream compressor = new ZlibStream(raw, CompressionMode.Compress)) + { + byte[] buffer = new byte[WORKING_BUFFER_SIZE]; + int n; + while ((n= input.Read(buffer, 0, buffer.Length)) != 0) + { + compressor.Write(buffer, 0, n); + } + } + } + } + + + Using input As Stream = File.OpenRead(fileToCompress) + Using raw As FileStream = File.Create(fileToCompress & ".zlib") + Using compressor As Stream = New ZlibStream(raw, CompressionMode.Compress) + Dim buffer As Byte() = New Byte(4096) {} + Dim n As Integer = -1 + Do While (n <> 0) + If (n > 0) Then + compressor.Write(buffer, 0, n) + End If + n = input.Read(buffer, 0, buffer.Length) + Loop + End Using + End Using + End Using + + + + The stream which will be read or written. + Indicates whether the ZlibStream will compress or decompress. + + + + Create a ZlibStream using the specified CompressionMode and + the specified CompressionLevel. + + + + + + When mode is CompressionMode.Decompress, the level parameter is ignored. + The "captive" stream will be closed when the ZlibStream is closed. + + + + + + This example uses a ZlibStream to compress data from a file, and writes the + compressed data to another file. + + + using (System.IO.Stream input = System.IO.File.OpenRead(fileToCompress)) + { + using (var raw = System.IO.File.Create(fileToCompress + ".zlib")) + { + using (Stream compressor = new ZlibStream(raw, + CompressionMode.Compress, + CompressionLevel.BestCompression)) + { + byte[] buffer = new byte[WORKING_BUFFER_SIZE]; + int n; + while ((n= input.Read(buffer, 0, buffer.Length)) != 0) + { + compressor.Write(buffer, 0, n); + } + } + } + } + + + + Using input As Stream = File.OpenRead(fileToCompress) + Using raw As FileStream = File.Create(fileToCompress & ".zlib") + Using compressor As Stream = New ZlibStream(raw, CompressionMode.Compress, CompressionLevel.BestCompression) + Dim buffer As Byte() = New Byte(4096) {} + Dim n As Integer = -1 + Do While (n <> 0) + If (n > 0) Then + compressor.Write(buffer, 0, n) + End If + n = input.Read(buffer, 0, buffer.Length) + Loop + End Using + End Using + End Using + + + + The stream to be read or written while deflating or inflating. + Indicates whether the ZlibStream will compress or decompress. + A tuning knob to trade speed for effectiveness. + + + + Create a ZlibStream using the specified CompressionMode, and + explicitly specify whether the captive stream should be left open after + Deflation or Inflation. + + + + + + When mode is CompressionMode.Compress, the ZlibStream will use + the default compression level. + + + + This constructor allows the application to request that the captive stream + remain open after the deflation or inflation occurs. By default, after + Close() is called on the stream, the captive stream is also + closed. In some cases this is not desired, for example if the stream is a + that will be re-read after + compression. Specify true for the parameter to leave the stream + open. + + + + See the other overloads of this constructor for example code. + + + + + The stream which will be read or written. This is called the + "captive" stream in other places in this documentation. + Indicates whether the ZlibStream will compress or decompress. + true if the application would like the stream to remain + open after inflation/deflation. + + + + Create a ZlibStream using the specified CompressionMode + and the specified CompressionLevel, and explicitly specify + whether the stream should be left open after Deflation or Inflation. + + + + + + This constructor allows the application to request that the captive + stream remain open after the deflation or inflation occurs. By + default, after Close() is called on the stream, the captive + stream is also closed. In some cases this is not desired, for example + if the stream is a that will be + re-read after compression. Specify true for the parameter to leave the stream open. + + + + When mode is CompressionMode.Decompress, the level parameter is + ignored. + + + + + + + This example shows how to use a ZlibStream to compress the data from a file, + and store the result into another file. The filestream remains open to allow + additional data to be written to it. + + + using (var output = System.IO.File.Create(fileToCompress + ".zlib")) + { + using (System.IO.Stream input = System.IO.File.OpenRead(fileToCompress)) + { + using (Stream compressor = new ZlibStream(output, CompressionMode.Compress, CompressionLevel.BestCompression, true)) + { + byte[] buffer = new byte[WORKING_BUFFER_SIZE]; + int n; + while ((n= input.Read(buffer, 0, buffer.Length)) != 0) + { + compressor.Write(buffer, 0, n); + } + } + } + // can write additional data to the output stream here + } + + + Using output As FileStream = File.Create(fileToCompress & ".zlib") + Using input As Stream = File.OpenRead(fileToCompress) + Using compressor As Stream = New ZlibStream(output, CompressionMode.Compress, CompressionLevel.BestCompression, True) + Dim buffer As Byte() = New Byte(4096) {} + Dim n As Integer = -1 + Do While (n <> 0) + If (n > 0) Then + compressor.Write(buffer, 0, n) + End If + n = input.Read(buffer, 0, buffer.Length) + Loop + End Using + End Using + ' can write additional data to the output stream here. + End Using + + + + The stream which will be read or written. + + Indicates whether the ZlibStream will compress or decompress. + + + true if the application would like the stream to remain open after + inflation/deflation. + + + + A tuning knob to trade speed for effectiveness. This parameter is + effective only when mode is CompressionMode.Compress. + + + + + Dispose the stream. + + + + This may or may not result in a Close() call on the captive + stream. See the constructors that have a leaveOpen parameter + for more information. + + + This method may be invoked in two distinct scenarios. If disposing + == true, the method has been called directly or indirectly by a + user's code, for example via the public Dispose() method. In this + case, both managed and unmanaged resources can be referenced and + disposed. If disposing == false, the method has been called by the + runtime from inside the object finalizer and this method should not + reference other objects; in that case only unmanaged resources must + be referenced or disposed. + + + + indicates whether the Dispose method was invoked by user code. + + + + + Flush the stream. + + + + + Read data from the stream. + + + + + + If you wish to use the ZlibStream to compress data while reading, + you can create a ZlibStream with CompressionMode.Compress, + providing an uncompressed data stream. Then call Read() on that + ZlibStream, and the data read will be compressed. If you wish to + use the ZlibStream to decompress data while reading, you can create + a ZlibStream with CompressionMode.Decompress, providing a + readable compressed data stream. Then call Read() on that + ZlibStream, and the data will be decompressed as it is read. + + + + A ZlibStream can be used for Read() or Write(), but + not both. + + + + + + The buffer into which the read data should be placed. + + + the offset within that data array to put the first byte read. + + the number of bytes to read. + + the number of bytes read + + + + Calling this method always throws a . + + + The offset to seek to.... + IF THIS METHOD ACTUALLY DID ANYTHING. + + + The reference specifying how to apply the offset.... IF + THIS METHOD ACTUALLY DID ANYTHING. + + + nothing. This method always throws. + + + + Calling this method always throws a . + + + The new value for the stream length.... IF + THIS METHOD ACTUALLY DID ANYTHING. + + + + + Write data to the stream. + + + + + + If you wish to use the ZlibStream to compress data while writing, + you can create a ZlibStream with CompressionMode.Compress, + and a writable output stream. Then call Write() on that + ZlibStream, providing uncompressed data as input. The data sent to + the output stream will be the compressed form of the data written. If you + wish to use the ZlibStream to decompress data while writing, you + can create a ZlibStream with CompressionMode.Decompress, and a + writable output stream. Then call Write() on that stream, + providing previously compressed data. The data sent to the output stream + will be the decompressed form of the data written. + + + + A ZlibStream can be used for Read() or Write(), but not both. + + + The buffer holding data to write to the stream. + the offset within that data array to find the first byte to write. + the number of bytes to write. + + + + Compress a string into a byte array using ZLIB. + + + + Uncompress it with . + + + + + + + + A string to compress. The string will first be encoded + using UTF8, then compressed. + + + The string in compressed form + + + + Compress a byte array into a new byte array using ZLIB. + + + + Uncompress it with . + + + + + + + A buffer to compress. + + + The data in compressed form + + + + Uncompress a ZLIB-compressed byte array into a single string. + + + + + + + A buffer containing ZLIB-compressed data. + + + The uncompressed string + + + + Uncompress a ZLIB-compressed byte array into a byte array. + + + + + + + A buffer containing ZLIB-compressed data. + + + The data in uncompressed form + + + + This property sets the flush behavior on the stream. + Sorry, though, not sure exactly how to describe all the various settings. + + + + + The size of the working buffer for the compression codec. + + + + + The working buffer is used for all stream operations. The default size is + 1024 bytes. The minimum size is 128 bytes. You may get better performance + with a larger buffer. Then again, you might not. You would have to test + it. + + + + Set this before the first call to Read() or Write() on the + stream. If you try to set it afterwards, it will throw. + + + + + Returns the total number of bytes input so far. + + + Returns the total number of bytes output so far. + + + + Indicates whether the stream can be read. + + + The return value depends on whether the captive stream supports reading. + + + + + Indicates whether the stream supports Seek operations. + + + Always returns false. + + + + + Indicates whether the stream can be written. + + + The return value depends on whether the captive stream supports writing. + + + + + Reading this property always throws a . + + + + + The position of the stream pointer. + + + + Setting this property always throws a . Reading will return the total bytes + written out, if used in writing, or the total bytes read in, if used in + reading. The count may refer to compressed bytes or uncompressed bytes, + depending on how you've used the stream. + + + + + A bunch of constants used in the Zlib interface. + + + + + The maximum number of window bits for the Deflate algorithm. + + + + + The default number of window bits for the Deflate algorithm. + + + + + indicates everything is A-OK + + + + + Indicates that the last operation reached the end of the stream. + + + + + The operation ended in need of a dictionary. + + + + + There was an error with the stream - not enough data, not open and readable, etc. + + + + + There was an error with the data - not enough data, bad data, etc. + + + + + There was an error with the working buffer. + + + + + The size of the working buffer used in the ZlibCodec class. Defaults to 8192 bytes. + + + + + The minimum size of the working buffer used in the ZlibCodec class. Currently it is 128 bytes. + + + + + Encoder and Decoder for ZLIB and DEFLATE (IETF RFC1950 and RFC1951). + + + + This class compresses and decompresses data according to the Deflate algorithm + and optionally, the ZLIB format, as documented in RFC 1950 - ZLIB and RFC 1951 - DEFLATE. + + + + + The buffer from which data is taken. + + + + + An index into the InputBuffer array, indicating where to start reading. + + + + + The number of bytes available in the InputBuffer, starting at NextIn. + + + Generally you should set this to InputBuffer.Length before the first Inflate() or Deflate() call. + The class will update this number as calls to Inflate/Deflate are made. + + + + + Total number of bytes read so far, through all calls to Inflate()/Deflate(). + + + + + Buffer to store output data. + + + + + An index into the OutputBuffer array, indicating where to start writing. + + + + + The number of bytes available in the OutputBuffer, starting at NextOut. + + + Generally you should set this to OutputBuffer.Length before the first Inflate() or Deflate() call. + The class will update this number as calls to Inflate/Deflate are made. + + + + + Total number of bytes written to the output so far, through all calls to Inflate()/Deflate(). + + + + + used for diagnostics, when something goes wrong! + + + + + The compression level to use in this codec. Useful only in compression mode. + + + + + The number of Window Bits to use. + + + This gauges the size of the sliding window, and hence the + compression effectiveness as well as memory consumption. It's best to just leave this + setting alone if you don't know what it is. The maximum value is 15 bits, which implies + a 32k window. + + + + + The compression strategy to use. + + + This is only effective in compression. The theory offered by ZLIB is that different + strategies could potentially produce significant differences in compression behavior + for different data sets. Unfortunately I don't have any good recommendations for how + to set it differently. When I tested changing the strategy I got minimally different + compression performance. It's best to leave this property alone if you don't have a + good feel for it. Or, you may want to produce a test harness that runs through the + different strategy options and evaluates them on different file types. If you do that, + let me know your results. + + + + + Create a ZlibCodec. + + + If you use this default constructor, you will later have to explicitly call + InitializeInflate() or InitializeDeflate() before using the ZlibCodec to compress + or decompress. + + + + + Create a ZlibCodec that either compresses or decompresses. + + + Indicates whether the codec should compress (deflate) or decompress (inflate). + + + + + Initialize the inflation state. + + + It is not necessary to call this before using the ZlibCodec to inflate data; + It is implicitly called when you call the constructor. + + Z_OK if everything goes well. + + + + Initialize the inflation state with an explicit flag to + govern the handling of RFC1950 header bytes. + + + + By default, the ZLIB header defined in RFC 1950 is expected. If + you want to read a zlib stream you should specify true for + expectRfc1950Header. If you have a deflate stream, you will want to specify + false. It is only necessary to invoke this initializer explicitly if you + want to specify false. + + + whether to expect an RFC1950 header byte + pair when reading the stream of data to be inflated. + + Z_OK if everything goes well. + + + + Initialize the ZlibCodec for inflation, with the specified number of window bits. + + The number of window bits to use. If you need to ask what that is, + then you shouldn't be calling this initializer. + Z_OK if all goes well. + + + + Initialize the inflation state with an explicit flag to govern the handling of + RFC1950 header bytes. + + + + If you want to read a zlib stream you should specify true for + expectRfc1950Header. In this case, the library will expect to find a ZLIB + header, as defined in RFC + 1950, in the compressed stream. If you will be reading a DEFLATE or + GZIP stream, which does not have such a header, you will want to specify + false. + + + whether to expect an RFC1950 header byte pair when reading + the stream of data to be inflated. + The number of window bits to use. If you need to ask what that is, + then you shouldn't be calling this initializer. + Z_OK if everything goes well. + + + + Inflate the data in the InputBuffer, placing the result in the OutputBuffer. + + + You must have set InputBuffer and OutputBuffer, NextIn and NextOut, and AvailableBytesIn and + AvailableBytesOut before calling this method. + + + + private void InflateBuffer() + { + int bufferSize = 1024; + byte[] buffer = new byte[bufferSize]; + ZlibCodec decompressor = new ZlibCodec(); + + Console.WriteLine("\n============================================"); + Console.WriteLine("Size of Buffer to Inflate: {0} bytes.", CompressedBytes.Length); + MemoryStream ms = new MemoryStream(DecompressedBytes); + + int rc = decompressor.InitializeInflate(); + + decompressor.InputBuffer = CompressedBytes; + decompressor.NextIn = 0; + decompressor.AvailableBytesIn = CompressedBytes.Length; + + decompressor.OutputBuffer = buffer; + + // pass 1: inflate + do + { + decompressor.NextOut = 0; + decompressor.AvailableBytesOut = buffer.Length; + rc = decompressor.Inflate(FlushType.None); + + if (rc != ZlibConstants.Z_OK && rc != ZlibConstants.Z_STREAM_END) + throw new Exception("inflating: " + decompressor.Message); + + ms.Write(decompressor.OutputBuffer, 0, buffer.Length - decompressor.AvailableBytesOut); + } + while (decompressor.AvailableBytesIn > 0 || decompressor.AvailableBytesOut == 0); + + // pass 2: finish and flush + do + { + decompressor.NextOut = 0; + decompressor.AvailableBytesOut = buffer.Length; + rc = decompressor.Inflate(FlushType.Finish); + + if (rc != ZlibConstants.Z_STREAM_END && rc != ZlibConstants.Z_OK) + throw new Exception("inflating: " + decompressor.Message); + + if (buffer.Length - decompressor.AvailableBytesOut > 0) + ms.Write(buffer, 0, buffer.Length - decompressor.AvailableBytesOut); + } + while (decompressor.AvailableBytesIn > 0 || decompressor.AvailableBytesOut == 0); + + decompressor.EndInflate(); + } + + + + The flush to use when inflating. + Z_OK if everything goes well. + + + + Ends an inflation session. + + + Call this after successively calling Inflate(). This will cause all buffers to be flushed. + After calling this you cannot call Inflate() without a intervening call to one of the + InitializeInflate() overloads. + + Z_OK if everything goes well. + + + + I don't know what this does! + + Z_OK if everything goes well. + + + + Initialize the ZlibCodec for deflation operation. + + + The codec will use the MAX window bits and the default level of compression. + + + + int bufferSize = 40000; + byte[] CompressedBytes = new byte[bufferSize]; + byte[] DecompressedBytes = new byte[bufferSize]; + + ZlibCodec compressor = new ZlibCodec(); + + compressor.InitializeDeflate(CompressionLevel.Default); + + compressor.InputBuffer = System.Text.ASCIIEncoding.ASCII.GetBytes(TextToCompress); + compressor.NextIn = 0; + compressor.AvailableBytesIn = compressor.InputBuffer.Length; + + compressor.OutputBuffer = CompressedBytes; + compressor.NextOut = 0; + compressor.AvailableBytesOut = CompressedBytes.Length; + + while (compressor.TotalBytesIn != TextToCompress.Length && compressor.TotalBytesOut < bufferSize) + { + compressor.Deflate(FlushType.None); + } + + while (true) + { + int rc= compressor.Deflate(FlushType.Finish); + if (rc == ZlibConstants.Z_STREAM_END) break; + } + + compressor.EndDeflate(); + + + + Z_OK if all goes well. You generally don't need to check the return code. + + + + Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel. + + + The codec will use the maximum window bits (15) and the specified + CompressionLevel. It will emit a ZLIB stream as it compresses. + + The compression level for the codec. + Z_OK if all goes well. + + + + Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, + and the explicit flag governing whether to emit an RFC1950 header byte pair. + + + The codec will use the maximum window bits (15) and the specified CompressionLevel. + If you want to generate a zlib stream, you should specify true for + wantRfc1950Header. In this case, the library will emit a ZLIB + header, as defined in RFC + 1950, in the compressed stream. + + The compression level for the codec. + whether to emit an initial RFC1950 byte pair in the compressed stream. + Z_OK if all goes well. + + + + Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, + and the specified number of window bits. + + + The codec will use the specified number of window bits and the specified CompressionLevel. + + The compression level for the codec. + the number of window bits to use. If you don't know what this means, don't use this method. + Z_OK if all goes well. + + + + Initialize the ZlibCodec for deflation operation, using the specified + CompressionLevel, the specified number of window bits, and the explicit flag + governing whether to emit an RFC1950 header byte pair. + + + The compression level for the codec. + whether to emit an initial RFC1950 byte pair in the compressed stream. + the number of window bits to use. If you don't know what this means, don't use this method. + Z_OK if all goes well. + + + + Deflate one batch of data. + + + You must have set InputBuffer and OutputBuffer before calling this method. + + + + private void DeflateBuffer(CompressionLevel level) + { + int bufferSize = 1024; + byte[] buffer = new byte[bufferSize]; + ZlibCodec compressor = new ZlibCodec(); + + Console.WriteLine("\n============================================"); + Console.WriteLine("Size of Buffer to Deflate: {0} bytes.", UncompressedBytes.Length); + MemoryStream ms = new MemoryStream(); + + int rc = compressor.InitializeDeflate(level); + + compressor.InputBuffer = UncompressedBytes; + compressor.NextIn = 0; + compressor.AvailableBytesIn = UncompressedBytes.Length; + + compressor.OutputBuffer = buffer; + + // pass 1: deflate + do + { + compressor.NextOut = 0; + compressor.AvailableBytesOut = buffer.Length; + rc = compressor.Deflate(FlushType.None); + + if (rc != ZlibConstants.Z_OK && rc != ZlibConstants.Z_STREAM_END) + throw new Exception("deflating: " + compressor.Message); + + ms.Write(compressor.OutputBuffer, 0, buffer.Length - compressor.AvailableBytesOut); + } + while (compressor.AvailableBytesIn > 0 || compressor.AvailableBytesOut == 0); + + // pass 2: finish and flush + do + { + compressor.NextOut = 0; + compressor.AvailableBytesOut = buffer.Length; + rc = compressor.Deflate(FlushType.Finish); + + if (rc != ZlibConstants.Z_STREAM_END && rc != ZlibConstants.Z_OK) + throw new Exception("deflating: " + compressor.Message); + + if (buffer.Length - compressor.AvailableBytesOut > 0) + ms.Write(buffer, 0, buffer.Length - compressor.AvailableBytesOut); + } + while (compressor.AvailableBytesIn > 0 || compressor.AvailableBytesOut == 0); + + compressor.EndDeflate(); + + ms.Seek(0, SeekOrigin.Begin); + CompressedBytes = new byte[compressor.TotalBytesOut]; + ms.Read(CompressedBytes, 0, CompressedBytes.Length); + } + + + whether to flush all data as you deflate. Generally you will want to + use Z_NO_FLUSH here, in a series of calls to Deflate(), and then call EndDeflate() to + flush everything. + + Z_OK if all goes well. + + + + End a deflation session. + + + Call this after making a series of one or more calls to Deflate(). All buffers are flushed. + + Z_OK if all goes well. + + + + Reset a codec for another deflation session. + + + Call this to reset the deflation state. For example if a thread is deflating + non-consecutive blocks, you can call Reset() after the Deflate(Sync) of the first + block and before the next Deflate(None) of the second block. + + Z_OK if all goes well. + + + + Set the CompressionStrategy and CompressionLevel for a deflation session. + + the level of compression to use. + the strategy to use for compression. + Z_OK if all goes well. + + + + Set the dictionary to be used for either Inflation or Deflation. + + The dictionary bytes to use. + Z_OK if all goes well. + + + + The Adler32 checksum on the data transferred through the codec so far. You probably don't need to look at this. + + + + + Describes how to flush the current deflate operation. + + + The different FlushType values are useful when using a Deflate in a streaming application. + + + + No flush at all. + + + Closes the current block, but doesn't flush it to + the output. Used internally only in hypothetical + scenarios. This was supposed to be removed by Zlib, but it is + still in use in some edge cases. + + + + + Use this during compression to specify that all pending output should be + flushed to the output buffer and the output should be aligned on a byte + boundary. You might use this in a streaming communication scenario, so that + the decompressor can get all input data available so far. When using this + with a ZlibCodec, AvailableBytesIn will be zero after the call if + enough output space has been provided before the call. Flushing will + degrade compression and so it should be used only when necessary. + + + + + Use this during compression to specify that all output should be flushed, as + with FlushType.Sync, but also, the compression state should be reset + so that decompression can restart from this point if previous compressed + data has been damaged or if random access is desired. Using + FlushType.Full too often can significantly degrade the compression. + + + + Signals the end of the compression/decompression stream. + + + + The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress. + + + + + None means that the data will be simply stored, with no change at all. + If you are producing ZIPs for use on Mac OSX, be aware that archives produced with CompressionLevel.None + cannot be opened with the default zip reader. Use a different CompressionLevel. + + + + + Same as None. + + + + + The fastest but least effective compression. + + + + + A synonym for BestSpeed. + + + + + A little slower, but better, than level 1. + + + + + A little slower, but better, than level 2. + + + + + A little slower, but better, than level 3. + + + + + A little slower than level 4, but with better compression. + + + + + The default compression level, with a good balance of speed and compression efficiency. + + + + + A synonym for Default. + + + + + Pretty good compression! + + + + + Better compression than Level7! + + + + + The "best" compression, where best means greatest reduction in size of the input data stream. + This is also the slowest compression. + + + + + A synonym for BestCompression. + + + + + Describes options for how the compression algorithm is executed. Different strategies + work better on different sorts of data. The strategy parameter can affect the compression + ratio and the speed of compression but not the correctness of the compresssion. + + + + + The default strategy is probably the best for normal data. + + + + + The Filtered strategy is intended to be used most effectively with data produced by a + filter or predictor. By this definition, filtered data consists mostly of small + values with a somewhat random distribution. In this case, the compression algorithm + is tuned to compress them better. The effect of Filtered is to force more Huffman + coding and less string matching; it is a half-step between Default and HuffmanOnly. + + + + + Using HuffmanOnly will force the compressor to do Huffman encoding only, with no + string matching. + + + + + An enum to specify the direction of transcoding - whether to compress or decompress. + + + + + Used to specify that the stream should compress the data. + + + + + Used to specify that the stream should decompress the data. + + + + + A general purpose exception class for exceptions in the Zlib library. + + + + + The ZlibException class captures exception information generated + by the Zlib library. + + + + + This ctor collects a message attached to the exception. + + the message for the exception. + + + + Performs an unsigned bitwise right shift with the specified number + + Number to operate on + Ammount of bits to shift + The resulting number from the shift operation + + + + Reads a number of characters from the current source TextReader and writes + the data to the target array at the specified index. + + + The source TextReader to read from + Contains the array of characteres read from the source TextReader. + The starting index of the target array. + The maximum number of characters to read from the source TextReader. + + + The number of characters read. The number will be less than or equal to + count depending on the data available in the source TextReader. Returns -1 + if the end of the stream is reached. + + + + + Computes an Adler-32 checksum. + + + The Adler checksum is similar to a CRC checksum, but faster to compute, though less + reliable. It is used in producing RFC1950 compressed streams. The Adler checksum + is a required part of the "ZLIB" standard. Applications will almost never need to + use this class directly. + + + + + + + Calculates the Adler32 checksum. + + + + This is used within ZLIB. You probably don't need to use this directly. + + + + To compute an Adler32 checksum on a byte array: + + var adler = Adler.Adler32(0, null, 0, 0); + adler = Adler.Adler32(adler, buffer, index, length); + + + + + + Map from a distance to a distance code. + + + No side effects. _dist_code[256] and _dist_code[257] are never used. + + + + + A class for compressing and decompressing GZIP streams. + + + + + The GZipStream is a Decorator on a + . It adds GZIP compression or decompression to any + stream. + + + + Like the System.IO.Compression.GZipStream in the .NET Base Class Library, the + Ionic.Zlib.GZipStream can compress while writing, or decompress while + reading, but not vice versa. The compression method used is GZIP, which is + documented in IETF RFC + 1952, "GZIP file format specification version 4.3". + + + A GZipStream can be used to decompress data (through Read()) or + to compress data (through Write()), but not both. + + + + If you wish to use the GZipStream to compress data, you must wrap it + around a write-able stream. As you call Write() on the GZipStream, the + data will be compressed into the GZIP format. If you want to decompress data, + you must wrap the GZipStream around a readable stream that contains an + IETF RFC 1952-compliant stream. The data will be decompressed as you call + Read() on the GZipStream. + + + + Though the GZIP format allows data from multiple files to be concatenated + together, this stream handles only a single segment of GZIP format, typically + representing a single file. + + + + + + + + The last modified time for the GZIP stream. + + + + GZIP allows the storage of a last modified time with each GZIP entry. + When compressing data, you can set this before the first call to + Write(). When decompressing, you can retrieve this value any time + after the first call to Read(). + + + + + Create a GZipStream using the specified CompressionMode. + + + + + When mode is CompressionMode.Compress, the GZipStream will use the + default compression level. + + + + As noted in the class documentation, the CompressionMode (Compress + or Decompress) also establishes the "direction" of the stream. A + GZipStream with CompressionMode.Compress works only through + Write(). A GZipStream with + CompressionMode.Decompress works only through Read(). + + + + + + This example shows how to use a GZipStream to compress data. + + using (System.IO.Stream input = System.IO.File.OpenRead(fileToCompress)) + { + using (var raw = System.IO.File.Create(outputFile)) + { + using (Stream compressor = new GZipStream(raw, CompressionMode.Compress)) + { + byte[] buffer = new byte[WORKING_BUFFER_SIZE]; + int n; + while ((n= input.Read(buffer, 0, buffer.Length)) != 0) + { + compressor.Write(buffer, 0, n); + } + } + } + } + + + Dim outputFile As String = (fileToCompress & ".compressed") + Using input As Stream = File.OpenRead(fileToCompress) + Using raw As FileStream = File.Create(outputFile) + Using compressor As Stream = New GZipStream(raw, CompressionMode.Compress) + Dim buffer As Byte() = New Byte(4096) {} + Dim n As Integer = -1 + Do While (n <> 0) + If (n > 0) Then + compressor.Write(buffer, 0, n) + End If + n = input.Read(buffer, 0, buffer.Length) + Loop + End Using + End Using + End Using + + + + + This example shows how to use a GZipStream to uncompress a file. + + private void GunZipFile(string filename) + { + if (!filename.EndsWith(".gz)) + throw new ArgumentException("filename"); + var DecompressedFile = filename.Substring(0,filename.Length-3); + byte[] working = new byte[WORKING_BUFFER_SIZE]; + int n= 1; + using (System.IO.Stream input = System.IO.File.OpenRead(filename)) + { + using (Stream decompressor= new Ionic.Zlib.GZipStream(input, CompressionMode.Decompress, true)) + { + using (var output = System.IO.File.Create(DecompressedFile)) + { + while (n !=0) + { + n= decompressor.Read(working, 0, working.Length); + if (n > 0) + { + output.Write(working, 0, n); + } + } + } + } + } + } + + + + Private Sub GunZipFile(ByVal filename as String) + If Not (filename.EndsWith(".gz)) Then + Throw New ArgumentException("filename") + End If + Dim DecompressedFile as String = filename.Substring(0,filename.Length-3) + Dim working(WORKING_BUFFER_SIZE) as Byte + Dim n As Integer = 1 + Using input As Stream = File.OpenRead(filename) + Using decompressor As Stream = new Ionic.Zlib.GZipStream(input, CompressionMode.Decompress, True) + Using output As Stream = File.Create(UncompressedFile) + Do + n= decompressor.Read(working, 0, working.Length) + If n > 0 Then + output.Write(working, 0, n) + End IF + Loop While (n > 0) + End Using + End Using + End Using + End Sub + + + + The stream which will be read or written. + Indicates whether the GZipStream will compress or decompress. + + + + Create a GZipStream using the specified CompressionMode and + the specified CompressionLevel. + + + + + The CompressionMode (Compress or Decompress) also establishes the + "direction" of the stream. A GZipStream with + CompressionMode.Compress works only through Write(). A + GZipStream with CompressionMode.Decompress works only + through Read(). + + + + + + + This example shows how to use a GZipStream to compress a file into a .gz file. + + + using (System.IO.Stream input = System.IO.File.OpenRead(fileToCompress)) + { + using (var raw = System.IO.File.Create(fileToCompress + ".gz")) + { + using (Stream compressor = new GZipStream(raw, + CompressionMode.Compress, + CompressionLevel.BestCompression)) + { + byte[] buffer = new byte[WORKING_BUFFER_SIZE]; + int n; + while ((n= input.Read(buffer, 0, buffer.Length)) != 0) + { + compressor.Write(buffer, 0, n); + } + } + } + } + + + + Using input As Stream = File.OpenRead(fileToCompress) + Using raw As FileStream = File.Create(fileToCompress & ".gz") + Using compressor As Stream = New GZipStream(raw, CompressionMode.Compress, CompressionLevel.BestCompression) + Dim buffer As Byte() = New Byte(4096) {} + Dim n As Integer = -1 + Do While (n <> 0) + If (n > 0) Then + compressor.Write(buffer, 0, n) + End If + n = input.Read(buffer, 0, buffer.Length) + Loop + End Using + End Using + End Using + + + The stream to be read or written while deflating or inflating. + Indicates whether the GZipStream will compress or decompress. + A tuning knob to trade speed for effectiveness. + + + + Create a GZipStream using the specified CompressionMode, and + explicitly specify whether the stream should be left open after Deflation + or Inflation. + + + + + This constructor allows the application to request that the captive stream + remain open after the deflation or inflation occurs. By default, after + Close() is called on the stream, the captive stream is also + closed. In some cases this is not desired, for example if the stream is a + memory stream that will be re-read after compressed data has been written + to it. Specify true for the parameter to leave + the stream open. + + + + The (Compress or Decompress) also + establishes the "direction" of the stream. A GZipStream with + CompressionMode.Compress works only through Write(). A GZipStream + with CompressionMode.Decompress works only through Read(). + + + + The GZipStream will use the default compression level. If you want + to specify the compression level, see . + + + + See the other overloads of this constructor for example code. + + + + + + The stream which will be read or written. This is called the "captive" + stream in other places in this documentation. + + + Indicates whether the GZipStream will compress or decompress. + + + + true if the application would like the base stream to remain open after + inflation/deflation. + + + + + Create a GZipStream using the specified CompressionMode and the + specified CompressionLevel, and explicitly specify whether the + stream should be left open after Deflation or Inflation. + + + + + + This constructor allows the application to request that the captive stream + remain open after the deflation or inflation occurs. By default, after + Close() is called on the stream, the captive stream is also + closed. In some cases this is not desired, for example if the stream is a + memory stream that will be re-read after compressed data has been written + to it. Specify true for the parameter to + leave the stream open. + + + + As noted in the class documentation, the CompressionMode (Compress + or Decompress) also establishes the "direction" of the stream. A + GZipStream with CompressionMode.Compress works only through + Write(). A GZipStream with CompressionMode.Decompress works only + through Read(). + + + + + + This example shows how to use a GZipStream to compress data. + + using (System.IO.Stream input = System.IO.File.OpenRead(fileToCompress)) + { + using (var raw = System.IO.File.Create(outputFile)) + { + using (Stream compressor = new GZipStream(raw, CompressionMode.Compress, CompressionLevel.BestCompression, true)) + { + byte[] buffer = new byte[WORKING_BUFFER_SIZE]; + int n; + while ((n= input.Read(buffer, 0, buffer.Length)) != 0) + { + compressor.Write(buffer, 0, n); + } + } + } + } + + + Dim outputFile As String = (fileToCompress & ".compressed") + Using input As Stream = File.OpenRead(fileToCompress) + Using raw As FileStream = File.Create(outputFile) + Using compressor As Stream = New GZipStream(raw, CompressionMode.Compress, CompressionLevel.BestCompression, True) + Dim buffer As Byte() = New Byte(4096) {} + Dim n As Integer = -1 + Do While (n <> 0) + If (n > 0) Then + compressor.Write(buffer, 0, n) + End If + n = input.Read(buffer, 0, buffer.Length) + Loop + End Using + End Using + End Using + + + The stream which will be read or written. + Indicates whether the GZipStream will compress or decompress. + true if the application would like the stream to remain open after inflation/deflation. + A tuning knob to trade speed for effectiveness. + + + + Dispose the stream. + + + + This may or may not result in a Close() call on the captive + stream. See the constructors that have a leaveOpen parameter + for more information. + + + This method may be invoked in two distinct scenarios. If disposing + == true, the method has been called directly or indirectly by a + user's code, for example via the internal Dispose() method. In this + case, both managed and unmanaged resources can be referenced and + disposed. If disposing == false, the method has been called by the + runtime from inside the object finalizer and this method should not + reference other objects; in that case only unmanaged resources must + be referenced or disposed. + + + + indicates whether the Dispose method was invoked by user code. + + + + + Flush the stream. + + + + + Read and decompress data from the source stream. + + + + With a GZipStream, decompression is done through reading. + + + + + byte[] working = new byte[WORKING_BUFFER_SIZE]; + using (System.IO.Stream input = System.IO.File.OpenRead(_CompressedFile)) + { + using (Stream decompressor= new Ionic.Zlib.GZipStream(input, CompressionMode.Decompress, true)) + { + using (var output = System.IO.File.Create(_DecompressedFile)) + { + int n; + while ((n= decompressor.Read(working, 0, working.Length)) !=0) + { + output.Write(working, 0, n); + } + } + } + } + + + The buffer into which the decompressed data should be placed. + the offset within that data array to put the first byte read. + the number of bytes to read. + the number of bytes actually read + + + + Calling this method always throws a . + + irrelevant; it will always throw! + irrelevant; it will always throw! + irrelevant! + + + + Calling this method always throws a . + + irrelevant; this method will always throw! + + + + Write data to the stream. + + + + + If you wish to use the GZipStream to compress data while writing, + you can create a GZipStream with CompressionMode.Compress, and a + writable output stream. Then call Write() on that GZipStream, + providing uncompressed data as input. The data sent to the output stream + will be the compressed form of the data written. + + + + A GZipStream can be used for Read() or Write(), but not + both. Writing implies compression. Reading implies decompression. + + + + The buffer holding data to write to the stream. + the offset within that data array to find the first byte to write. + the number of bytes to write. + + + + Compress a string into a byte array using GZip. + + + + Uncompress it with . + + + + + + + A string to compress. The string will first be encoded + using UTF8, then compressed. + + + The string in compressed form + + + + Compress a byte array into a new byte array using GZip. + + + + Uncompress it with . + + + + + + + A buffer to compress. + + + The data in compressed form + + + + Uncompress a GZip'ed byte array into a single string. + + + + + + + A buffer containing GZIP-compressed data. + + + The uncompressed string + + + + Uncompress a GZip'ed byte array into a byte array. + + + + + + + A buffer containing data that has been compressed with GZip. + + + The data in uncompressed form + + + + The comment on the GZIP stream. + + + + + The GZIP format allows for each file to optionally have an associated + comment stored with the file. The comment is encoded with the ISO-8859-1 + code page. To include a comment in a GZIP stream you create, set this + property before calling Write() for the first time on the + GZipStream. + + + + When using GZipStream to decompress, you can retrieve this property + after the first call to Read(). If no comment has been set in the + GZIP bytestream, the Comment property will return null + (Nothing in VB). + + + + + + The FileName for the GZIP stream. + + + + + + The GZIP format optionally allows each file to have an associated + filename. When compressing data (through Write()), set this + FileName before calling Write() the first time on the GZipStream. + The actual filename is encoded into the GZIP bytestream with the + ISO-8859-1 code page, according to RFC 1952. It is the application's + responsibility to insure that the FileName can be encoded and decoded + correctly with this code page. + + + + When decompressing (through Read()), you can retrieve this value + any time after the first Read(). In the case where there was no filename + encoded into the GZIP bytestream, the property will return null (Nothing + in VB). + + + + + + The CRC on the GZIP stream. + + + This is used for internal error checking. You probably don't need to look at this property. + + + + + This property sets the flush behavior on the stream. + + + + + The size of the working buffer for the compression codec. + + + + + The working buffer is used for all stream operations. The default size is + 1024 bytes. The minimum size is 128 bytes. You may get better performance + with a larger buffer. Then again, you might not. You would have to test + it. + + + + Set this before the first call to Read() or Write() on the + stream. If you try to set it afterwards, it will throw. + + + + + Returns the total number of bytes input so far. + + + Returns the total number of bytes output so far. + + + + Indicates whether the stream can be read. + + + The return value depends on whether the captive stream supports reading. + + + + + Indicates whether the stream supports Seek operations. + + + Always returns false. + + + + + Indicates whether the stream can be written. + + + The return value depends on whether the captive stream supports writing. + + + + + Reading this property always throws a . + + + + + The position of the stream pointer. + + + + Setting this property always throws a . Reading will return the total bytes + written out, if used in writing, or the total bytes read in, if used in + reading. The count may refer to compressed bytes or uncompressed bytes, + depending on how you've used the stream. + + + + + Computes a CRC-32. The CRC-32 algorithm is parameterized - you + can set the polynomial and enable or disable bit + reversal. This can be used for GZIP, BZip2, or ZIP. + + + This type is used internally by DotNetZip; it is generally not used + directly by applications wishing to create, read, or manipulate zip + archive files. + + + + + Returns the CRC32 for the specified stream. + + The stream over which to calculate the CRC32 + the CRC32 calculation + + + + Returns the CRC32 for the specified stream, and writes the input into the + output stream. + + The stream over which to calculate the CRC32 + The stream into which to deflate the input + the CRC32 calculation + + + + Get the CRC32 for the given (word,byte) combo. This is a + computation defined by PKzip for PKZIP 2.0 (weak) encryption. + + The word to start with. + The byte to combine it with. + The CRC-ized result. + + + + Update the value for the running CRC32 using the given block of bytes. + This is useful when using the CRC32() class in a Stream. + + block of bytes to slurp + starting point in the block + how many bytes within the block to slurp + + + + Process one byte in the CRC. + + the byte to include into the CRC . + + + + Process a run of N identical bytes into the CRC. + + + + This method serves as an optimization for updating the CRC when a + run of identical bytes is found. Rather than passing in a buffer of + length n, containing all identical bytes b, this method accepts the + byte value and the length of the (virtual) buffer - the length of + the run. + + + the byte to include into the CRC. + the number of times that byte should be repeated. + + + + Combines the given CRC32 value with the current running total. + + + This is useful when using a divide-and-conquer approach to + calculating a CRC. Multiple threads can each calculate a + CRC32 on a segment of the data, and then combine the + individual CRC32 values at the end. + + the crc value to be combined with this one + the length of data the CRC value was calculated on + + + + Create an instance of the CRC32 class using the default settings: no + bit reversal, and a polynomial of 0xEDB88320. + + + + + Create an instance of the CRC32 class, specifying whether to reverse + data bits or not. + + + specify true if the instance should reverse data bits. + + + + In the CRC-32 used by BZip2, the bits are reversed. Therefore if you + want a CRC32 with compatibility with BZip2, you should pass true + here. In the CRC-32 used by GZIP and PKZIP, the bits are not + reversed; Therefore if you want a CRC32 with compatibility with + those, you should pass false. + + + + + + Create an instance of the CRC32 class, specifying the polynomial and + whether to reverse data bits or not. + + + The polynomial to use for the CRC, expressed in the reversed (LSB) + format: the highest ordered bit in the polynomial value is the + coefficient of the 0th power; the second-highest order bit is the + coefficient of the 1 power, and so on. Expressed this way, the + polynomial for the CRC-32C used in IEEE 802.3, is 0xEDB88320. + + + specify true if the instance should reverse data bits. + + + + + In the CRC-32 used by BZip2, the bits are reversed. Therefore if you + want a CRC32 with compatibility with BZip2, you should pass true + here for the reverseBits parameter. In the CRC-32 used by + GZIP and PKZIP, the bits are not reversed; Therefore if you want a + CRC32 with compatibility with those, you should pass false for the + reverseBits parameter. + + + + + + Reset the CRC-32 class - clear the CRC "remainder register." + + + + Use this when employing a single instance of this class to compute + multiple, distinct CRCs on multiple, distinct data blocks. + + + + + + Indicates the total number of bytes applied to the CRC. + + + + + Indicates the current CRC for all blocks slurped in. + + + + + A Stream that calculates a CRC32 (a checksum) on all bytes read, + or on all bytes written. + + + + + This class can be used to verify the CRC of a ZipEntry when + reading from a stream, or to calculate a CRC when writing to a + stream. The stream should be used to either read, or write, but + not both. If you intermix reads and writes, the results are not + defined. + + + + This class is intended primarily for use internally by the + DotNetZip library. + + + + + + The default constructor. + + + + Instances returned from this constructor will leave the underlying + stream open upon Close(). The stream uses the default CRC32 + algorithm, which implies a polynomial of 0xEDB88320. + + + The underlying stream + + + + The constructor allows the caller to specify how to handle the + underlying stream at close. + + + + The stream uses the default CRC32 algorithm, which implies a + polynomial of 0xEDB88320. + + + The underlying stream + true to leave the underlying stream + open upon close of the CrcCalculatorStream; false otherwise. + + + + A constructor allowing the specification of the length of the stream + to read. + + + + The stream uses the default CRC32 algorithm, which implies a + polynomial of 0xEDB88320. + + + Instances returned from this constructor will leave the underlying + stream open upon Close(). + + + The underlying stream + The length of the stream to slurp + + + + A constructor allowing the specification of the length of the stream + to read, as well as whether to keep the underlying stream open upon + Close(). + + + + The stream uses the default CRC32 algorithm, which implies a + polynomial of 0xEDB88320. + + + The underlying stream + The length of the stream to slurp + true to leave the underlying stream + open upon close of the CrcCalculatorStream; false otherwise. + + + + A constructor allowing the specification of the length of the stream + to read, as well as whether to keep the underlying stream open upon + Close(), and the CRC32 instance to use. + + + + The stream uses the specified CRC32 instance, which allows the + application to specify how the CRC gets calculated. + + + The underlying stream + The length of the stream to slurp + true to leave the underlying stream + open upon close of the CrcCalculatorStream; false otherwise. + the CRC32 instance to use to calculate the CRC32 + + + + Read from the stream + + the buffer to read + the offset at which to start + the number of bytes to read + the number of bytes actually read + + + + Write to the stream. + + the buffer from which to write + the offset at which to start writing + the number of bytes to write + + + + Flush the stream. + + + + + Seeking is not supported on this stream. This method always throws + + + N/A + N/A + N/A + + + + This method always throws + + + N/A + + + + Gets the total number of bytes run through the CRC32 calculator. + + + + This is either the total number of bytes read, or the total number of + bytes written, depending on the direction of this stream. + + + + + Provides the current CRC for all blocks slurped in. + + + + The running total of the CRC is kept as data is written or read + through the stream. read this property after all reads or writes to + get an accurate CRC for the entire stream. + + + + + + Indicates whether the underlying stream will be left open when the + CrcCalculatorStream is Closed. + + + + Set this at any point before calling . + + + + + + Indicates whether the stream supports reading. + + + + + Indicates whether the stream supports seeking. + + + + Always returns false. + + + + + + Indicates whether the stream supports writing. + + + + + Returns the length of the underlying stream. + + + + + The getter for this property returns the total bytes read. + If you use the setter, it will throw + . + + + + + A custom encoding class that provides encoding capabilities for the + 'Western European (ISO)' encoding under Silverlight.
+ This class was generated by a tool. For more information, visit + http://www.hardcodet.net/2010/03/silverlight-text-encoding-class-generator +
+
+ + + Encodes a set of characters from the specified character array into the specified byte array. + + + The actual number of bytes written into . + + The character array containing the set of characters to encode. + The index of the first character to encode. + The number of characters to encode. + The byte array to contain the resulting sequence of bytes. + The index at which to start writing the resulting sequence of bytes. + + + + + Decodes a sequence of bytes from the specified byte array into the specified character array. + + + The actual number of characters written into . + + The byte array containing the sequence of bytes to decode. + The index of the first byte to decode. + The number of bytes to decode. + The character array to contain the resulting set of characters. + The index at which to start writing the resulting set of characters. + + + + + Calculates the number of bytes produced by encoding a set of characters + from the specified character array. + + + The number of bytes produced by encoding the specified characters. This class + alwas returns the value of . + + + + + Calculates the number of characters produced by decoding a sequence + of bytes from the specified byte array. + + + The number of characters produced by decoding the specified sequence of bytes. This class + alwas returns the value of . + + + + + Calculates the maximum number of bytes produced by encoding the specified number of characters. + + + The maximum number of bytes produced by encoding the specified number of characters. This + class alwas returns the value of . + + The number of characters to encode. + + + + + Calculates the maximum number of characters produced by decoding the specified number of bytes. + + + The maximum number of characters produced by decoding the specified number of bytes. This class + alwas returns the value of . + + The number of bytes to decode. + + + + This table contains characters in an array. The index within the + array corresponds to the encoding's mapping of bytes to characters + (e.g. if a byte value of 5 is used to encode the character 'x', this + character will be stored at the array index 5. + + + + + This dictionary is used to resolve byte values for a given character. + + + + + Gets the name registered with the + Internet Assigned Numbers Authority (IANA) for the current encoding. + + + The IANA name for the current . + + + + + A character that can be set in order to make the encoding class + more fault tolerant. If this property is set, the encoding class will + use this property instead of throwing an exception if an unsupported + byte value is being passed for decoding. + + + + + A byte value that corresponds to the . + It is used in encoding scenarios in case an unsupported character is + being passed for encoding. + + + + + Gets the number of characters that are supported by this encoding. + This property returns a maximum value of 256, as the encoding class + only supports single byte encodings (1 byte == 256 possible values). + + + + + Length of Data field + + + + + CRC of both Type and Data fields, but not Length field + + + + + Build CRC lookup table for performance (once-off) + + + + + Applies all PNG filters to the given scanline and returns the filtered scanline that is deemed + to be most compressible, using lowest total variation as proxy for compressibility. + + + + + + + + + Calculates the total variation of given byte array. Total variation is the sum of the absolute values of + neighbour differences. + + + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.DXGI.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.DXGI.dll new file mode 100644 index 0000000..b390e58 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.DXGI.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.DXGI.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.DXGI.xml new file mode 100644 index 0000000..3d7a6df --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.DXGI.xml @@ -0,0 +1,4365 @@ + + + + SharpDX.DXGI + + + + +

The interface represents a display sub-system (including one or more GPU's, DACs and video memory).

+
+ +

A display sub-system is often referred to as a video card, however, on some machines the display sub-system is part of the mother board.

To enumerate the display sub-systems, use . To get an interface to the adapter for a particular device, use . To create a software adapter, use .

Windows?Phone?8: This API is supported.

+
+ + bb174523 + IDXGIAdapter + IDXGIAdapter +
+ + +

An interface is a base interface for all DXGI objects; supports associating caller-defined (private data) with an object and retrieval of an interface to the parent object.

+
+ +

implements base class functionality for several other interfaces: , , ,

Windows?Phone?8: This API is supported.

+
+ + bb174541 + IDXGIObject + IDXGIObject +
+ + + Gets the parent of the object. + + Type of the parent object + Returns the parent object based on the GUID of the type of the parent object. + bb174542 + HRESULT IDXGIObject::GetParent([In] const GUID& riid,[Out] void** ppParent) + IDXGIObject::GetParent + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets application-defined data to the object and associates that data with a .

+
+

A that identifies the data. Use this in a call to GetPrivateData to get the data.

+

The size of the object's data.

+

A reference to the object's data.

+

Returns one of the DXGI_ERROR values.

+ +

SetPrivateData makes a copy of the specified data and stores it with the object.

Private data that SetPrivateData stores in the object occupies the same storage space as private data that is stored by associated Direct3D objects (for example, by a Microsoft Direct3D?11 device through or by a Direct3D?11 child device through ).

The debug layer reports memory leaks by outputting a list of object interface references along with their friendly names. The default friendly name is "<unnamed>". You can set the friendly name so that you can determine if the corresponding object interface reference caused the leak. To set the friendly name, use the SetPrivateData method and the well-known private data () that is in D3Dcommon.h. For example, to give pContext a friendly name of My name, use the following code:

 static const char c_szName[] = "My name";	
+            hr = pContext->SetPrivateData( , sizeof( c_szName ) - 1, c_szName );	
+            

You can use to track down memory leaks and understand performance characteristics of your applications. This information is reflected in the output of the debug layer that is related to memory leaks () and with the event tracing for Windows events that we've added to Windows?8. +

Windows?Phone?8: This API is supported.

+
+ + bb174544 + HRESULT IDXGIObject::SetPrivateData([In] const GUID& Name,[In] unsigned int DataSize,[In, Buffer] const void* pData) + IDXGIObject::SetPrivateData +
+ + +

Set an interface in the object's private data.

+
+

A identifying the interface.

+

The interface to set.

+

Returns one of the following DXGI_ERROR.

+ +

This API associates an interface reference with the object.

When the interface is set its reference count is incremented. When the data are overwritten (by calling SPD or SPDI with the same ) or the object is destroyed, ::Release() is called and the interface's reference count is decremented.

Windows?Phone?8: This API is supported.

+
+ + bb174545 + HRESULT IDXGIObject::SetPrivateDataInterface([In] const GUID& Name,[In] const IUnknown* pUnknown) + IDXGIObject::SetPrivateDataInterface +
+ + +

Get a reference to the object's data.

+
+

A identifying the data.

+

The size of the data.

+

Pointer to the data.

+

Returns one of the following DXGI_ERROR.

+ +

If the data returned is a reference to an , or one of its derivative classes, previously set by , you must call ::Release() on the reference before the reference is freed to decrement the reference count.

You can pass GUID_DeviceType in the Name parameter of GetPrivateData to retrieve the device type from the display adapter object (, , IDXGIAdapter2).

To get the type of device on which the display adapter was created

  1. Call IUnknown::QueryInterface on the or object to retrieve the object.
  2. Call GetParent on the object to retrieve the object.
  3. Call GetPrivateData on the object with GUID_DeviceType to retrieve the type of device on which the display adapter was created. pData will point to a value from the driver-type enumeration (for example, a value from ).

On Windows?7 or earlier, this type is either a value from or depending on which kind of device was created. On Windows?8, this type is always a value from . Don't use with GUID_DeviceType because the behavior when doing so is undefined.

Windows?Phone?8: This API is supported.

+
+ + bb174543 + HRESULT IDXGIObject::GetPrivateData([In] const GUID& Name,[InOut] unsigned int* pDataSize,[Out, Buffer] void* pData) + IDXGIObject::GetPrivateData +
+ + +

Gets the parent of the object.

+
+

The ID of the requested interface.

+

The address of a reference to the parent object.

+

Returns one of the DXGI_ERROR values.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174542 + HRESULT IDXGIObject::GetParent([In] const GUID& riid,[Out] void** ppParent) + IDXGIObject::GetParent +
+ + + Checks to see if a device interface for a graphics component is supported by the system. + + The GUID of the interface of the device version for which support is being checked. For example, typeof(ID3D10Device).GUID. + + true if the interface is supported; otherwise, false. + + Bb174524 + HRESULT IDXGIAdapter::CheckInterfaceSupport([In] const GUID& InterfaceName,[Out] LARGE_INTEGER* pUMDVersion) + IDXGIAdapter::CheckInterfaceSupport + + + + Checks to see if a device interface for a graphics component is supported by the system. + + the interface of the device version for which support is being checked. + + true if the interface is supported; otherwise, false. + + Bb174524 + HRESULT IDXGIAdapter::CheckInterfaceSupport([In] const GUID& InterfaceName,[Out] LARGE_INTEGER* pUMDVersion) + IDXGIAdapter::CheckInterfaceSupport + + + + Checks to see if a device interface for a graphics component is supported by the system. + + the interface of the device version for which support is being checked. + The user mode driver version of InterfaceName. This is only returned if the interface is supported. + + true if the interface is supported; otherwise, false. + + Bb174524 + HRESULT IDXGIAdapter::CheckInterfaceSupport([In] const GUID& InterfaceName,[Out] LARGE_INTEGER* pUMDVersion) + IDXGIAdapter::CheckInterfaceSupport + + + + Checks to see if a device interface for a graphics component is supported by the system. + + The GUID of the interface of the device version for which support is being checked. For example, typeof(ID3D10Device).GUID. + The user mode driver version of InterfaceName. This is only returned if the interface is supported. + + true if the interface is supported; otherwise, false. + + Bb174524 + HRESULT IDXGIAdapter::CheckInterfaceSupport([In] const GUID& InterfaceName,[Out] LARGE_INTEGER* pUMDVersion) + IDXGIAdapter::CheckInterfaceSupport + + + + Gets an adapter (video card) outputs. + + The index of the output. + + An instance of + + HRESULT IDXGIAdapter::EnumOutputs([In] unsigned int Output,[Out] IDXGIOutput** ppOutput) + + When the EnumOutputs method succeeds and fills the ppOutput parameter with the address of the reference to the output interface, EnumOutputs increments the output interface's reference count. To avoid a memory leak, when you finish using the output interface, call the Release method to decrement the reference count.EnumOutputs first returns the output on which the desktop primary is displayed. This adapter corresponds with an index of zero. EnumOutputs then returns other outputs. + + if the index is greater than the number of outputs, result code + bb174525 + HRESULT IDXGIAdapter::EnumOutputs([In] unsigned int Output,[Out] IDXGIOutput** ppOutput) + IDXGIAdapter::EnumOutputs + + + + Return the number of available outputs from this adapter. + + The number of outputs + bb174525 + HRESULT IDXGIAdapter::EnumOutputs([In] unsigned int Output,[Out] IDXGIOutput** ppOutput) + IDXGIAdapter::EnumOutputs + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Enumerate adapter (video card) outputs.

+
+

The index of the output.

+

The address of a reference to an interface at the position specified by the Output parameter.

+

A code that indicates success or failure (see DXGI_ERROR). Will return if the index is greater than the number of outputs.

+ +

Note??If you call this API in a Session 0 process, it returns .

When the EnumOutputs method succeeds and fills the ppOutput parameter with the address of the reference to the output interface, EnumOutputs increments the output interface's reference count. To avoid a memory leak, when you finish using the output interface, call the Release method to decrement the reference count.

EnumOutputs first returns the output on which the desktop primary is displayed. This output corresponds with an index of zero. EnumOutputs then returns other outputs.

Windows?Phone?8: This API is supported.

+
+ + bb174525 + HRESULT IDXGIAdapter::EnumOutputs([In] unsigned int Output,[Out] IDXGIOutput** ppOutput) + IDXGIAdapter::EnumOutputs +
+ + +

Gets a DXGI 1.0 description of an adapter (or video card).

+
+

A reference to a structure that describes the adapter. This parameter must not be null. On feature level 9 graphics hardware, GetDesc returns zeros for the PCI ID in the VendorId, DeviceId, SubSysId, and Revision members of and ?Software Adapter? for the description string in the Description member.

+

Returns if successful; otherwise returns E_INVALIDARG if the pDesc parameter is null.

+ +

Graphics apps can use the DXGI API to retrieve an accurate set of graphics memory values on systems that have Windows Display Driver Model (WDDM) drivers. The following are the critical steps involved.

  • Graphics driver model determination ? Because DXGI is only available on systems with WDDM drivers, the app must first confirm the driver model by using the following API.
     HasWDDMDriver()	
    +            { LPDIRECT3DCREATE9EX pD3D9Create9Ex = null; HMODULE             hD3D9          = null; hD3D9 = LoadLibrary( L"d3d9.dll" ); if ( null == hD3D9 ) { return false; } // /*  Try to create  interface (also known as a DX9L interface). This interface can only be created if the driver is a WDDM driver. */ // pD3D9Create9Ex = (LPDIRECT3DCREATE9EX) GetProcAddress( hD3D9, "Direct3DCreate9Ex" ); return pD3D9Create9Ex != null;	
    +            } 
  • Retrieval of graphics memory values.? After the app determines the driver model to be WDDM, the app can use the Direct3D 10 or later API and DXGI to get the amount of graphics memory. After you create a Direct3D device, use this code to obtain a structure that contains the amount of available graphics memory.
      * pDXGIDevice;	
    +            hr = g_pd3dDevice->QueryInterface(__uuidof(), (void **)&pDXGIDevice);	
    +             * pDXGIAdapter;	
    +            pDXGIDevice->GetAdapter(&pDXGIAdapter);	
    +             adapterDesc;	
    +            pDXGIAdapter->GetDesc(&adapterDesc); 

Windows?Phone?8: This API is supported.

+
+ + bb174526 + HRESULT IDXGIAdapter::GetDesc([Out] DXGI_ADAPTER_DESC* pDesc) + IDXGIAdapter::GetDesc +
+ + +

Checks whether the system supports a device interface for a graphics component.

+
+

The of the interface of the device version for which support is being checked. For example, __uuidof().

+

The user mode driver version of InterfaceName. This is returned only if the interface is supported. This parameter can be null.

+

indicates that the interface is supported, otherwise is returned (For more information, see DXGI_ERROR).

+ +

Note??You can use CheckInterfaceSupport only to check whether a Direct3D 10.x interface is supported, and only on Windows Vista SP1 and later versions of the operating system. If you try to use CheckInterfaceSupport to check whether a Direct3D 11.x and later version interface is supported, CheckInterfaceSupport returns . Therefore, do not use CheckInterfaceSupport. Instead, to verify whether the operating system supports a particular interface, try to create the interface. For example, if you call the method and it fails, the operating system does not support the interface.

Windows?Phone?8: This API is supported.

+
+ + bb174524 + HRESULT IDXGIAdapter::CheckInterfaceSupport([In] const GUID& InterfaceName,[Out] LARGE_INTEGER* pUMDVersion) + IDXGIAdapter::CheckInterfaceSupport +
+ + + Gets all outputs from this adapter. + + bb174525 + HRESULT IDXGIAdapter::EnumOutputs([In] unsigned int Output,[Out] IDXGIOutput** ppOutput) + IDXGIAdapter::EnumOutputs + + + +

Gets a DXGI 1.0 description of an adapter (or video card).

+
+ +

Graphics apps can use the DXGI API to retrieve an accurate set of graphics memory values on systems that have Windows Display Driver Model (WDDM) drivers. The following are the critical steps involved.

  • Graphics driver model determination ? Because DXGI is only available on systems with WDDM drivers, the app must first confirm the driver model by using the following API.
     HasWDDMDriver()	
    +            { LPDIRECT3DCREATE9EX pD3D9Create9Ex = null; HMODULE             hD3D9          = null; hD3D9 = LoadLibrary( L"d3d9.dll" ); if ( null == hD3D9 ) { return false; } // /*  Try to create  interface (also known as a DX9L interface). This interface can only be created if the driver is a WDDM driver. */ // pD3D9Create9Ex = (LPDIRECT3DCREATE9EX) GetProcAddress( hD3D9, "Direct3DCreate9Ex" ); return pD3D9Create9Ex != null;	
    +            } 
  • Retrieval of graphics memory values.? After the app determines the driver model to be WDDM, the app can use the Direct3D 10 or later API and DXGI to get the amount of graphics memory. After you create a Direct3D device, use this code to obtain a structure that contains the amount of available graphics memory.
      * pDXGIDevice;	
    +            hr = g_pd3dDevice->QueryInterface(__uuidof(), (void **)&pDXGIDevice);	
    +             * pDXGIAdapter;	
    +            pDXGIDevice->GetAdapter(&pDXGIAdapter);	
    +             adapterDesc;	
    +            pDXGIAdapter->GetDesc(&adapterDesc); 

Windows?Phone?8: This API is supported.

+
+ + bb174526 + GetDesc + GetDesc + HRESULT IDXGIAdapter::GetDesc([Out] DXGI_ADAPTER_DESC* pDesc) +
+ + + The assembly provides managed DXGI API. + + hh404534 + DXGI + DXGI + + + + The namespace provides a managed DXGI API. + + hh404534 + DXGI + DXGI + + + +

An interface implements a derived class for DXGI objects that produce image data.

+
+ +

The interface is designed for use by DXGI objects that need access to other DXGI objects. This interface is useful to applications that do not use Direct3D to communicate with DXGI.

The Direct3D create device functions return a Direct3D device object. This Direct3D device object implements the interface. You can query this Direct3D device object for the device's corresponding interface. To retrieve the interface of a Direct3D device, use the following code:

 * pDXGIDevice;	
+            hr = g_pd3dDevice->QueryInterface(__uuidof(), (void **)&pDXGIDevice);	
+            

Windows?Phone?8: This API is supported.

+
+ + bb174527 + IDXGIDevice + IDXGIDevice +
+ + + Gets the residency status of an array of resources. + + + The information returned by the pResidencyStatus argument array describes the residency status at the time that the QueryResourceResidency method was called. Note that the residency status will constantly change. If you call the QueryResourceResidency method during a device removed state, the pResidencyStatus argument will return the DXGI_RESIDENCY_EVICTED_TO_DISK flag. Note??This method should not be called every frame as it incurs a non-trivial amount of overhead. + + An array of interfaces. + Returns an array of flags. Each element describes the residency status for corresponding element in the ppResources argument array. + HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[None] int NumResources) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the adapter for the specified device.

+
+

The address of an interface reference to the adapter. This parameter must not be null.

+

Returns if successful; otherwise, returns one of the DXGI_ERROR that indicates failure. If the pAdapter parameter is null this method returns E_INVALIDARG.

+ +

If the GetAdapter method succeeds, the reference count on the adapter interface will be incremented. To avoid a memory leak, be sure to release the interface when you are finished using it.

Windows?Phone?8: This API is supported.

+
+ + bb174531 + HRESULT IDXGIDevice::GetAdapter([Out] IDXGIAdapter** pAdapter) + IDXGIDevice::GetAdapter +
+ + +

Returns a surface. This method is used internally and you should not call it directly in your application.

+
+

A reference to a structure that describes the surface.

+

The number of surfaces to create.

+

A DXGI_USAGE flag that specifies how the surface is expected to be used.

+

An optional reference to a structure that contains shared resource information for opening views of such resources.

+

The address of an interface reference to the first created surface.

+

Returns if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.

+ +

The CreateSurface method creates a buffer to exchange data between one or more devices. It is used internally, and you should not directly call it.

The runtime automatically creates an interface when it creates a Direct3D resource object that represents a surface. For example, the runtime creates an interface when it calls or to create a 2D texture. To retrieve the interface that represents the 2D texture surface, call ID3D11Texture2D::QueryInterface or ID3D10Texture2D::QueryInterface. In this call, you must pass the identifier of . If the 2D texture has only a single MIP-map level and does not consist of an array of textures, QueryInterface succeeds and returns a reference to the interface reference. Otherwise, QueryInterface fails and does not return the reference to . +

Windows?Phone?8: This API is supported.

+
+ + bb174530 + HRESULT IDXGIDevice::CreateSurface([In] const DXGI_SURFACE_DESC* pDesc,[In] unsigned int NumSurfaces,[In] unsigned int Usage,[In, Optional] const DXGI_SHARED_RESOURCE* pSharedResource,[Out] IDXGISurface** ppSurface) + IDXGIDevice::CreateSurface +
+ + +

Gets the residency status of an array of resources.

+
+

An array of interfaces.

+

An array of flags. Each element describes the residency status for corresponding element in the ppResources argument array.

+

The number of resources in the ppResources argument array and pResidencyStatus argument array.

+

Returns if successful; otherwise, returns , E_INVALIDARG, or E_POINTER (see WinError.h for more information).

+ +

The information returned by the pResidencyStatus argument array describes the residency status at the time that the QueryResourceResidency method was called.

Note??The residency status will constantly change.

If you call the QueryResourceResidency method during a device removed state, the pResidencyStatus argument will return the flag.

Note??This method should not be called every frame as it incurs a non-trivial amount of overhead.

Windows?Phone?8: This API is supported.

+
+ + bb174533 + HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources) + IDXGIDevice::QueryResourceResidency +
+ + +

Gets the residency status of an array of resources.

+
+

An array of interfaces.

+

An array of flags. Each element describes the residency status for corresponding element in the ppResources argument array.

+

The number of resources in the ppResources argument array and pResidencyStatus argument array.

+

Returns if successful; otherwise, returns , E_INVALIDARG, or E_POINTER (see WinError.h for more information).

+ +

The information returned by the pResidencyStatus argument array describes the residency status at the time that the QueryResourceResidency method was called.

Note??The residency status will constantly change.

If you call the QueryResourceResidency method during a device removed state, the pResidencyStatus argument will return the flag.

Note??This method should not be called every frame as it incurs a non-trivial amount of overhead.

Windows?Phone?8: This API is supported.

+
+ + bb174533 + HRESULT IDXGIDevice::QueryResourceResidency([In, Buffer] const IUnknown** ppResources,[Out, Buffer] DXGI_RESIDENCY* pResidencyStatus,[In] unsigned int NumResources) + IDXGIDevice::QueryResourceResidency +
+ + +

Sets the GPU thread priority.

+
+

A value that specifies the required GPU thread priority. This value must be between -7 and 7, inclusive, where 0 represents normal priority.

+

Return if successful; otherwise, returns E_INVALIDARG if the Priority parameter is invalid.

+ +

The values for the Priority parameter function as follows:

  • Positive values increase the likelihood that the GPU scheduler will grant GPU execution cycles to the device when rendering.
  • Negative values lessen the likelihood that the device will receive GPU execution cycles when devices compete for them.
  • The device is guaranteed to receive some GPU execution cycles at all settings.

To use the SetGPUThreadPriority method, you should have a comprehensive understanding of GPU scheduling. You should profile your application to ensure that it behaves as intended. If used inappropriately, the SetGPUThreadPriority method can impede rendering speed and result in a poor user experience.

Windows?Phone?8: This API is supported.

+
+ + bb174534 + HRESULT IDXGIDevice::SetGPUThreadPriority([In] int Priority) + IDXGIDevice::SetGPUThreadPriority +
+ + +

Gets the GPU thread priority.

+
+

A reference to a variable that receives a value that indicates the current GPU thread priority. The value will be between -7 and 7, inclusive, where 0 represents normal priority.

+

Return if successful; otherwise, returns E_POINTER if the pPriority parameter is null.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174532 + HRESULT IDXGIDevice::GetGPUThreadPriority([Out] int* pPriority) + IDXGIDevice::GetGPUThreadPriority +
+ + +

Returns the adapter for the specified device.

+
+ +

If the GetAdapter method succeeds, the reference count on the adapter interface will be incremented. To avoid a memory leak, be sure to release the interface when you are finished using it.

Windows?Phone?8: This API is supported.

+
+ + bb174531 + GetAdapter + GetAdapter + HRESULT IDXGIDevice::GetAdapter([Out] IDXGIAdapter** pAdapter) +
+ + +

Gets or sets the GPU thread priority.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + bb174532 + GetGPUThreadPriority / SetGPUThreadPriority + GetGPUThreadPriority + HRESULT IDXGIDevice::GetGPUThreadPriority([Out] int* pPriority) +
+ + +

Inherited from objects that are tied to the device so that they can retrieve a reference to it.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + bb174528 + IDXGIDeviceSubObject + IDXGIDeviceSubObject +
+ + + Retrieves the device. + + The interface that is returned can be any interface published by the device. + The associated device. + HRESULT IDXGIDeviceSubObject::GetDevice([In] GUID* riid,[Out] void** ppDevice) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the device.

+
+

The reference id for the device.

+

The address of a reference to the device.

+

A code that indicates success or failure (see DXGI_ERROR).

+ +

The type of interface that is returned can be any interface published by the device. For example, it could be an * called pDevice, and therefore the REFIID would be obtained by calling __uuidof(pDevice).

Windows?Phone?8: This API is supported.

+
+ + bb174529 + HRESULT IDXGIDeviceSubObject::GetDevice([In] const GUID& riid,[Out] void** ppDevice) + IDXGIDeviceSubObject::GetDevice +
+ + + Gets or sets the debug-name for this object. + + + The debug name. + + + + +

An interface implements methods for generating DXGI objects (which handle full screen transitions).

+
+ +

Create a factory by calling CreateDXGIFactory.

Because you can create a Direct3D device without creating a swap chain, you might need to retrieve the factory that is used to create the device in order to create a swap chain. + You can request the interface from the Direct3D device and then use the method to locate + the factory. The following code shows how.

 * pDXGIDevice;	
+            hr = g_pd3dDevice->QueryInterface(__uuidof(), (void **)&pDXGIDevice);  * pDXGIAdapter;	
+            hr = pDXGIDevice->GetParent(__uuidof(), (void **)&pDXGIAdapter);  * pIDXGIFactory;	
+            pDXGIAdapter->GetParent(__uuidof(), (void **)&pIDXGIFactory);	
+            

Windows?Phone?8: This API is supported.

+
+ + bb174535 + IDXGIFactory + IDXGIFactory +
+ + + Default Constructor for Factory + + + + + Create an adapter interface that represents a software adapter. + + + A software adapter is a DLL that implements the entirety of a device driver interface, plus emulation, if necessary, of kernel-mode graphics components for Windows. Details on implementing a software adapter can be found in the Windows Vista Driver Development Kit. This is a very complex development task, and is not recommended for general readers. Calling this method will increment the module's reference count by one. The reference count can be decremented by calling {{FreeLibrary}}. The typical calling scenario is to call {{LoadLibrary}}, pass the handle to CreateSoftwareAdapter, then immediately call {{FreeLibrary}} on the DLL and forget the DLL's {{HMODULE}}. Since the software adapter calls FreeLibrary when it is destroyed, the lifetime of the DLL will now be owned by the adapter, and the application is free of any further consideration of its lifetime. + + Handle to the software adapter's DLL. + A reference to an adapter (see ). + HRESULT IDXGIFactory::CreateSoftwareAdapter([None] void* Module,[Out] IDXGIAdapter** ppAdapter) + + + + Gets both adapters (video cards) with or without outputs. + + The index of the adapter to enumerate. + a reference to an interface at the position specified by the Adapter parameter + + When you create a factory, the factory enumerates the set of adapters that are available in the system. Therefore, if you change the adapters in a system, you must destroy and recreate the object. The number of adapters in a system changes when you add or remove a display card, or dock or undock a laptop.When the EnumAdapters method succeeds and fills the ppAdapter parameter with the address of the reference to the adapter interface, EnumAdapters increments the adapter interface's reference count. When you finish using the adapter interface, call the Release method to decrement the reference count before you destroy the reference.EnumAdapters first returns the local adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero. EnumAdapters then returns other adapters with outputs. + + HRESULT IDXGIFactory::EnumAdapters([In] unsigned int Adapter,[Out] IDXGIAdapter** ppAdapter) + + + + Return the number of available adapters from this factory. + + The number of adapters + HRESULT IDXGIFactory::EnumAdapters([In] unsigned int Adapter,[Out] IDXGIAdapter** ppAdapter) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Enumerates the adapters (video cards).

+
+

The index of the adapter to enumerate.

+

The address of a reference to an interface at the position specified by the Adapter parameter. This parameter must not be null.

+

Returns if successful; otherwise, returns if the index is greater than or equal to the number of adapters in the local system, or if ppAdapter parameter is null.

+ +

When you create a factory, the factory enumerates the set of adapters that are available in the system. Therefore, if you change the adapters in a system, you must destroy and recreate the object. The number of adapters in a system changes when you add or remove a display card, or dock or undock a laptop.

When the EnumAdapters method succeeds and fills the ppAdapter parameter with the address of the reference to the adapter interface, EnumAdapters increments the adapter interface's reference count. When you finish using the adapter interface, call the Release method to decrement the reference count before you destroy the reference.

EnumAdapters first returns the adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero. EnumAdapters next returns other adapters with outputs. EnumAdapters finally returns adapters without outputs.

Windows?Phone?8: This API is supported.

+
+ + bb174538 + HRESULT IDXGIFactory::EnumAdapters([In] unsigned int Adapter,[Out] IDXGIAdapter** ppAdapter) + IDXGIFactory::EnumAdapters +
+ + +

Allows DXGI to monitor an application's message queue for the alt-enter key sequence (which causes the application to switch from windowed to full screen or vice versa).

+
+

The handle of the window that is to be monitored. This parameter can be null; but only if the flags are also 0.

+

One or more of the following values:

  • - Prevent DXGI from monitoring an applications message queue; this makes DXGI unable to respond to mode changes.
  • - Prevent DXGI from responding to an alt-enter sequence.
  • - Prevent DXGI from responding to a print-screen key.
+

if WindowHandle is invalid, or E_OUTOFMEMORY.

+ +

Note??If you call this API in a Session 0 process, it returns .

The combination of WindowHandle and Flags informs DXGI to stop monitoring window messages for the previously-associated window.

If the application switches to full-screen mode, DXGI will choose a full-screen resolution to be the smallest supported resolution that is larger or the same size as the current back buffer size.

Applications can make some changes to make the transition from windowed to full screen more efficient. For example, on a WM_SIZE message, the application should release any outstanding swap-chain back buffers, call , then re-acquire the back buffers from the swap chain(s). This gives the swap chain(s) an opportunity to resize the back buffers, and/or recreate them to enable full-screen flipping operation. If the application does not perform this sequence, DXGI will still make the full-screen/windowed transition, but may be forced to use a stretch operation (since the back buffers may not be the correct size), which may be less efficient. Even if a stretch is not required, presentation may not be optimal because the back buffers might not be directly interchangeable with the front buffer. Thus, a call to ResizeBuffers on WM_SIZE is always recommended, since WM_SIZE is always sent during a fullscreen transition.

While windowed, the application can, if it chooses, restrict the size of its window's client area to sizes to which it is comfortable rendering. A fully flexible application would make no such restriction, but UI elements or other design considerations can, of course, make this flexibility untenable. If the application further chooses to restrict its window's client area to just those that match supported full-screen resolutions, the application can field WM_SIZING, then check against . If a matching mode is found, allow the resize. (The can be retrieved from . Absent subsequent changes to desktop topology, this will be the same output that will be chosen when alt-enter is fielded and fullscreen mode is begun for that swap chain.)

Applications that want to handle mode changes or Alt+Enter themselves should call MakeWindowAssociation with the flag after swap chain creation. The WindowHandle argument, if non-null, specifies that the application message queues will not be handled by the DXGI runtime for all swap chains of a particular target . Calling MakeWindowAssociation with the flag after swapchain creation ensures that DXGI will not interfere with application's handling of window mode changes or Alt+Enter.

+
+ + bb174540 + HRESULT IDXGIFactory::MakeWindowAssociation([In] HWND WindowHandle,[In] DXGI_MWA_FLAGS Flags) + IDXGIFactory::MakeWindowAssociation +
+ + +

Get the window through which the user controls the transition to and from full screen.

+
+

A reference to a window handle.

+ +

Note??If you call this API in a Session 0 process, it returns .

+
+ + bb174539 + HRESULT IDXGIFactory::GetWindowAssociation([Out] HWND* pWindowHandle) + IDXGIFactory::GetWindowAssociation +
+ + +

[Starting with Direct3D 11.1, we recommend not to use CreateSwapChain anymore to create a swap chain. Instead, use CreateSwapChainForHwnd, CreateSwapChainForCoreWindow, or CreateSwapChainForComposition depending on how you want to create the swap chain.]

Creates a swap chain.

+
+ No documentation. + No documentation. + No documentation. +

if pDesc or ppSwapChain is null, if you request full-screen mode and it is unavailable, or E_OUTOFMEMORY. Other error codes defined by the type of device passed in may also be returned.

+ +

Note??If you call this API in a Session 0 process, it returns .

If you attempt to create a swap chain in full-screen mode, and full-screen mode is unavailable, the swap chain will be created in windowed mode and will be returned.

If the buffer width or the buffer height is zero, the sizes will be inferred from the output window size in the swap-chain description.

Because the target output can't be chosen explicitly when the swap chain is created, we recommend not to create a full-screen swap chain. This can reduce presentation performance if the swap chain size and the output window size do not match. Here are two ways to ensure that the sizes match:

  • Create a windowed swap chain and then set it full-screen using .
  • Save a reference to the swap chain immediately after creation, and use it to get the output window size during a WM_SIZE event. Then resize the swap chain buffers (with ) during the transition from windowed to full-screen.

If the swap chain is in full-screen mode, before you release it you must use SetFullscreenState to switch it to windowed mode. For more information about releasing a swap chain, see the "Destroying a Swap Chain" section of DXGI Overview.

After the runtime renders the initial frame in full screen, the runtime might unexpectedly exit full screen during a call to . To work around this issue, we recommend that you execute the following code right after you call CreateSwapChain to create a full-screen swap chain (Windowed member of set to ). +

 // Detect if newly created full-screen swap chain isn't actually full screen.	
+            * pTarget;  bFullscreen;	
+            if (SUCCEEDED(pSwapChain->GetFullscreenState(&bFullscreen, &pTarget)))	
+            { pTarget->Release();	
+            }	
+            else bFullscreen = ;	
+            // If not full screen, enable full screen again.	
+            if (!bFullscreen)	
+            { ShowWindow(hWnd, SW_MINIMIZE); ShowWindow(hWnd, SW_RESTORE); pSwapChain->SetFullscreenState(TRUE, null);	
+            }	
+            

You can specify and values in the swap-chain description that pDesc points to. These values allow you to use features like flip-model presentation and content protection by using pre-Windows?8 APIs.

However, to use stereo presentation and to change resize behavior for the flip model, applications must use the IDXGIFactory2::CreateSwapChainForHwnd method. Otherwise, the back-buffer contents implicitly scale to fit the presentation target size; that is, you can't turn off scaling.

+
+ + bb174537 + HRESULT IDXGIFactory::CreateSwapChain([In] IUnknown* pDevice,[In] DXGI_SWAP_CHAIN_DESC* pDesc,[Out, Fast] IDXGISwapChain** ppSwapChain) + IDXGIFactory::CreateSwapChain +
+ + +

Create an adapter interface that represents a software adapter.

+
+

Handle to the software adapter's dll. HMODULE can be obtained with GetModuleHandle or LoadLibrary.

+

Address of a reference to an adapter (see ).

+ +

A software adapter is a DLL that implements the entirety of a device driver interface, plus emulation, if necessary, of kernel-mode graphics components for Windows. Details on implementing a software adapter can be found in the Windows Vista Driver Development Kit. This is a very complex development task, and is not recommended for general readers.

Calling this method will increment the module's reference count by one. The reference count can be decremented by calling FreeLibrary.

The typical calling scenario is to call LoadLibrary, pass the handle to CreateSoftwareAdapter, then immediately call FreeLibrary on the DLL and forget the DLL's HMODULE. Since the software adapter calls FreeLibrary when it is destroyed, the lifetime of the DLL will now be owned by the adapter, and the application is free of any further consideration of its lifetime.

Windows?Phone?8: This API is supported.

+
+ + bb174536 + HRESULT IDXGIFactory::CreateSoftwareAdapter([In] HINSTANCE Module,[Out] IDXGIAdapter** ppAdapter) + IDXGIFactory::CreateSoftwareAdapter +
+ + + Return an array of available from this factory. + + HRESULT IDXGIFactory::EnumAdapters([In] unsigned int Adapter,[Out] IDXGIAdapter** ppAdapter) + + + +

The interface implements methods for generating DXGI objects.

+
+ +

This interface is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

To create a factory, call the CreateDXGIFactory1 function.

Because you can create a Direct3D device without creating a swap chain, you might need to retrieve the factory that is used to create the device in order to create a swap chain. + You can request the or interface from the Direct3D device and then use the method to locate + the factory. The following code shows how.

 * pDXGIDevice;	
+            hr = g_pd3dDevice->QueryInterface(__uuidof(), (void **)&pDXGIDevice);  * pDXGIAdapter;	
+            hr = pDXGIDevice->GetParent(__uuidof(), (void **)&pDXGIAdapter);  * pIDXGIFactory;	
+            pDXGIAdapter->GetParent(__uuidof(), (void **)&pIDXGIFactory);	
+            

Windows?Phone?8: This API is supported.

+
+ + ff471335 + IDXGIFactory1 + IDXGIFactory1 +
+ + + Default Constructor for Factory1. + + + + + Gets both adapters (video cards) with or without outputs. + + The index of the adapter to enumerate. + a reference to an interface at the position specified by the Adapter parameter + + This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).When you create a factory, the factory enumerates the set of adapters that are available in the system. Therefore, if you change the adapters in a system, you must destroy and recreate the object. The number of adapters in a system changes when you add or remove a display card, or dock or undock a laptop.When the EnumAdapters1 method succeeds and fills the ppAdapter parameter with the address of the reference to the adapter interface, EnumAdapters1 increments the adapter interface's reference count. When you finish using the adapter interface, call the Release method to decrement the reference count before you destroy the reference.EnumAdapters1 first returns the local adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero. EnumAdapters1 next returns other adapters with outputs. EnumAdapters1 finally returns adapters without outputs. + + HRESULT IDXGIFactory1::EnumAdapters1([In] unsigned int Adapter,[Out] IDXGIAdapter1** ppAdapter) + + + + Return the number of available adapters from this factory. + + The number of adapters + HRESULT IDXGIFactory1::EnumAdapters1([In] unsigned int Adapter,[Out] IDXGIAdapter1** ppAdapter) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Enumerates both adapters (video cards) with or without outputs.

+
+

The index of the adapter to enumerate.

+

The address of a reference to an interface at the position specified by the Adapter parameter. This parameter must not be null.

+

Returns if successful; otherwise, returns if the index is greater than or equal to the number of adapters in the local system, or if ppAdapter parameter is null.

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

When you create a factory, the factory enumerates the set of adapters that are available in the system. Therefore, if you change the adapters in a system, you must destroy and recreate the object. The number of adapters in a system changes when you add or remove a display card, or dock or undock a laptop.

When the EnumAdapters1 method succeeds and fills the ppAdapter parameter with the address of the reference to the adapter interface, EnumAdapters1 increments the adapter interface's reference count. When you finish using the adapter interface, call the Release method to decrement the reference count before you destroy the reference.

EnumAdapters1 first returns the adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero. EnumAdapters1 next returns other adapters with outputs. EnumAdapters1 finally returns adapters without outputs.

Windows?Phone?8: This API is supported.

+
+ + ff471336 + HRESULT IDXGIFactory1::EnumAdapters1([In] unsigned int Adapter,[Out] IDXGIAdapter1** ppAdapter) + IDXGIFactory1::EnumAdapters1 +
+ + +

Informs an application of the possible need to re-enumerate adapters.

+
+

, if a new adapter is becoming available or the current adapter is going away. TRUE, no adapter changes.

IsCurrent returns to inform the calling application to re-enumerate adapters.

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Windows?Phone?8: This API is supported.

+
+ + ff471337 + BOOL IDXGIFactory1::IsCurrent() + IDXGIFactory1::IsCurrent +
+ + + Return an array of available from this factory. + + HRESULT IDXGIFactory1::EnumAdapters1([In] unsigned int Adapter,[Out] IDXGIAdapter1** ppAdapter) + + + +

Informs an application of the possible need to re-enumerate adapters.

+
+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Windows?Phone?8: This API is supported.

+
+ + ff471337 + IsCurrent + IsCurrent + BOOL IDXGIFactory1::IsCurrent() +
+ + + Helper to use with . + + + + + Calculates the size of a in bytes. Can be 0 for compressed format (as they are less than 1 byte) + + The DXGI format. + size of in bytes + + + + Calculates the size of a in bits. + + The DXGI format. + size of in bits + + + + Returns true if the is valid. + + A format to validate + True if the is valid. + + + + Returns true if the is a compressed format. + + The format to check for compressed. + True if the is a compressed format + + + + Determines whether the specified is packed. + + The DXGI Format. + true if the specified is packed; otherwise, false. + + + + Determines whether the specified is video. + + The . + true if the specified is video; otherwise, false. + + + + Determines whether the specified is a SRGB format. + + The . + true if the specified is a SRGB format; otherwise, false. + + + + Determines whether the specified is typeless. + + The . + true if the specified is typeless; otherwise, false. + + + + Computes the scanline count (number of scanlines). + + The . + The height. + The scanline count. + + + + Static initializer to speed up size calculation (not sure the JIT is enough "smart" for this kind of thing). + + + + +

Identifies the type of DXGI adapter.

+
+ +

The enumerated type is used by the Flags member of the or DXGI_ADAPTER_DESC2 structure to identify the type of DXGI adapter.

+
+ + ff471327 + DXGI_ADAPTER_FLAG + DXGI_ADAPTER_FLAG +
+ + +

Specifies no flags.

+
+ + ff471327 + DXGI_ADAPTER_FLAG_NONE + DXGI_ADAPTER_FLAG_NONE +
+ + +

Value always set to 0. This flag is reserved.

+
+ + ff471327 + DXGI_ADAPTER_FLAG_REMOTE + DXGI_ADAPTER_FLAG_REMOTE +
+ + +

Options for enumerating display modes.

+
+ +

These flag options are used in to enumerate display modes.

These flag options are also used in IDXGIOutput1::GetDisplayModeList1 to enumerate display modes.

+
+ + cc308060 + DXGI_ENUM_MODES_FLAGS + DXGI_ENUM_MODES_FLAGS +
+ + + No documentation. + + + cc308060 + DXGI_ENUM_MODES_INTERLACED + DXGI_ENUM_MODES_INTERLACED + + + + No documentation. + + + cc308060 + DXGI_ENUM_MODES_SCALING + DXGI_ENUM_MODES_SCALING + + + +

Flags that indicate how the back buffers should be rotated to fit the physical rotation of a monitor.

+
+ + bb173065 + DXGI_MODE_ROTATION + DXGI_MODE_ROTATION +
+ + +

Unspecified rotation.

+
+ + bb173065 + DXGI_MODE_ROTATION_UNSPECIFIED + DXGI_MODE_ROTATION_UNSPECIFIED +
+ + +

Specifies no rotation.

+
+ + bb173065 + DXGI_MODE_ROTATION_IDENTITY + DXGI_MODE_ROTATION_IDENTITY +
+ + +

Specifies 90 degrees of rotation.

+
+ + bb173065 + DXGI_MODE_ROTATION_ROTATE90 + DXGI_MODE_ROTATION_ROTATE90 +
+ + +

Specifies 180 degrees of rotation.

+
+ + bb173065 + DXGI_MODE_ROTATION_ROTATE180 + DXGI_MODE_ROTATION_ROTATE180 +
+ + +

Specifies 270 degrees of rotation.

+
+ + bb173065 + DXGI_MODE_ROTATION_ROTATE270 + DXGI_MODE_ROTATION_ROTATE270 +
+ + +

Flags indicating how an image is stretched to fit a given monitor's resolution.

+
+ + bb173066 + DXGI_MODE_SCALING + DXGI_MODE_SCALING +
+ + +

Unspecified scaling.

+
+ + bb173066 + DXGI_MODE_SCALING_UNSPECIFIED + DXGI_MODE_SCALING_UNSPECIFIED +
+ + +

Specifies no scaling. The image is centered on the display. This flag is typically used for a fixed-dot-pitch display (such as an LED display).

+
+ + bb173066 + DXGI_MODE_SCALING_CENTERED + DXGI_MODE_SCALING_CENTERED +
+ + +

Specifies stretched scaling.

+
+ + bb173066 + DXGI_MODE_SCALING_STRETCHED + DXGI_MODE_SCALING_STRETCHED +
+ + +

Flags indicating the method the raster uses to create an image on a surface.

+
+ + bb173067 + DXGI_MODE_SCANLINE_ORDER + DXGI_MODE_SCANLINE_ORDER +
+ + +

Scanline order is unspecified.

+
+ + bb173067 + DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED + DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED +
+ + +

The image is created from the first scanline to the last without skipping any.

+
+ + bb173067 + DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE + DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE +
+ + +

The image is created beginning with the upper field.

+
+ + bb173067 + DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST + DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST +
+ + +

The image is created beginning with the lower field.

+
+ + bb173067 + DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST + DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST +
+ + +

Status codes that can be returned by DXGI functions.

+
+ +

The value for each value is determined from this macro that is defined in DXGItype.h:

 #define _FACDXGI    0x87a	
+            #define MAKE_DXGI_STATUS(code)  MAKE_HRESULT(0, _FACDXGI, code)	
+            

For example, is defined as 0x087A0001:

 #define                     MAKE_DXGI_STATUS(1)	
+            
+
+ + cc308061 + DXGI_STATUS + DXGI_STATUS +
+ + + No documentation. + + + cc308061 + DXGI_STATUS_OCCLUDED + DXGI_STATUS_OCCLUDED + + + + No documentation. + + + cc308061 + DXGI_STATUS_CLIPPED + DXGI_STATUS_CLIPPED + + + + No documentation. + + + cc308061 + DXGI_STATUS_NO_REDIRECTION + DXGI_STATUS_NO_REDIRECTION + + + + No documentation. + + + cc308061 + DXGI_STATUS_NO_DESKTOP_ACCESS + DXGI_STATUS_NO_DESKTOP_ACCESS + + + + No documentation. + + + cc308061 + DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE + DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE + + + + No documentation. + + + cc308061 + DXGI_STATUS_MODE_CHANGED + DXGI_STATUS_MODE_CHANGED + + + + No documentation. + + + cc308061 + DXGI_STATUS_MODE_CHANGE_IN_PROGRESS + DXGI_STATUS_MODE_CHANGE_IN_PROGRESS + + + +

Resource data formats which includes fully-typed and typeless formats. There is a list of format modifiers at the bottom of the page, that more fully describes each format type.

+
+ +

A few formats have additional restrictions.

  1. A resource declared with the DXGI_FORMAT_R32G32B32 family of formats cannot be used simultaneously for vertex and texture data. That is, you may not create a buffer resource with the DXGI_FORMAT_R32G32B32 family of formats that uses any of the following bind flags: , , , or (see ).
  2. is designed specifically for text filtering, and must be used with a format-specific, configurable 8x8 filter mode. When calling an HLSL sampling function using this format, the address offset parameter must be set to (0,0).
  3. A resource using a sub-sampled format (such as DXGI_FORMAT_R8G8_B8G8) must have a size that is a multiple of 2 in the x dimension.
  4. Format is not available in Direct3D 10 and Direct3D 10.1

The following topics provide lists of the formats that particular hardware feature levels support:

  • Hardware Support for Direct3D 11.1 Formats
  • Hardware Support for Direct3D 11 Formats
  • Hardware Support for Direct3D 10.1 Formats
  • Hardware Support for Direct3D 10 Formats
  • Hardware Support for Direct3D 10Level9 Formats

For a list of the DirectXMath types that map to values, see DirectXMath Library Internals.

+
+ + bb173059 + DXGI_FORMAT + DXGI_FORMAT +
+ + +

The format is not known.

+
+ + bb173059 + DXGI_FORMAT_UNKNOWN + DXGI_FORMAT_UNKNOWN +
+ + +

A four-component, 128-bit typeless format that supports 32 bits per channel including alpha. 1

+
+ + bb173059 + DXGI_FORMAT_R32G32B32A32_TYPELESS + DXGI_FORMAT_R32G32B32A32_TYPELESS +
+ + +

A four-component, 128-bit floating-point format that supports 32 bits per channel including alpha. 1

+
+ + bb173059 + DXGI_FORMAT_R32G32B32A32_FLOAT + DXGI_FORMAT_R32G32B32A32_FLOAT +
+ + +

A four-component, 128-bit unsigned-integer format that supports 32 bits per channel including alpha. 1

+
+ + bb173059 + DXGI_FORMAT_R32G32B32A32_UINT + DXGI_FORMAT_R32G32B32A32_UINT +
+ + +

A four-component, 128-bit signed-integer format that supports 32 bits per channel including alpha. 1

+
+ + bb173059 + DXGI_FORMAT_R32G32B32A32_SINT + DXGI_FORMAT_R32G32B32A32_SINT +
+ + +

A three-component, 96-bit typeless format that supports 32 bits per color channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32B32_TYPELESS + DXGI_FORMAT_R32G32B32_TYPELESS +
+ + +

A three-component, 96-bit floating-point format that supports 32 bits per color channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32B32_FLOAT + DXGI_FORMAT_R32G32B32_FLOAT +
+ + +

A three-component, 96-bit unsigned-integer format that supports 32 bits per color channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32B32_UINT + DXGI_FORMAT_R32G32B32_UINT +
+ + +

A three-component, 96-bit signed-integer format that supports 32 bits per color channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32B32_SINT + DXGI_FORMAT_R32G32B32_SINT +
+ + +

A four-component, 64-bit typeless format that supports 16 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R16G16B16A16_TYPELESS + DXGI_FORMAT_R16G16B16A16_TYPELESS +
+ + +

A four-component, 64-bit floating-point format that supports 16 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R16G16B16A16_FLOAT + DXGI_FORMAT_R16G16B16A16_FLOAT +
+ + +

A four-component, 64-bit unsigned-normalized-integer format that supports 16 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R16G16B16A16_UNORM + DXGI_FORMAT_R16G16B16A16_UNORM +
+ + +

A four-component, 64-bit unsigned-integer format that supports 16 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R16G16B16A16_UINT + DXGI_FORMAT_R16G16B16A16_UINT +
+ + +

A four-component, 64-bit signed-normalized-integer format that supports 16 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R16G16B16A16_SNORM + DXGI_FORMAT_R16G16B16A16_SNORM +
+ + +

A four-component, 64-bit signed-integer format that supports 16 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R16G16B16A16_SINT + DXGI_FORMAT_R16G16B16A16_SINT +
+ + +

A two-component, 64-bit typeless format that supports 32 bits for the red channel and 32 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32_TYPELESS + DXGI_FORMAT_R32G32_TYPELESS +
+ + +

A two-component, 64-bit floating-point format that supports 32 bits for the red channel and 32 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32_FLOAT + DXGI_FORMAT_R32G32_FLOAT +
+ + +

A two-component, 64-bit unsigned-integer format that supports 32 bits for the red channel and 32 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32_UINT + DXGI_FORMAT_R32G32_UINT +
+ + +

A two-component, 64-bit signed-integer format that supports 32 bits for the red channel and 32 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R32G32_SINT + DXGI_FORMAT_R32G32_SINT +
+ + +

A two-component, 64-bit typeless format that supports 32 bits for the red channel, 8 bits for the green channel, and 24 bits are unused.

+
+ + bb173059 + DXGI_FORMAT_R32G8X24_TYPELESS + DXGI_FORMAT_R32G8X24_TYPELESS +
+ + +

A 32-bit floating-point component, and two unsigned-integer components (with an additional 32 bits). This format supports 32-bit depth, 8-bit stencil, and 24 bits are unused.

+
+ + bb173059 + DXGI_FORMAT_D32_FLOAT_S8X24_UINT + DXGI_FORMAT_D32_FLOAT_S8X24_UINT +
+ + +

A 32-bit floating-point component, and two typeless components (with an additional 32 bits). This format supports 32-bit red channel, 8 bits are unused, and 24 bits are unused.

+
+ + bb173059 + DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS + DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS +
+ + +

A 32-bit typeless component, and two unsigned-integer components (with an additional 32 bits). This format has 32 bits unused, 8 bits for green channel, and 24 bits are unused.

+
+ + bb173059 + DXGI_FORMAT_X32_TYPELESS_G8X24_UINT + DXGI_FORMAT_X32_TYPELESS_G8X24_UINT +
+ + +

A four-component, 32-bit typeless format that supports 10 bits for each color and 2 bits for alpha.

+
+ + bb173059 + DXGI_FORMAT_R10G10B10A2_TYPELESS + DXGI_FORMAT_R10G10B10A2_TYPELESS +
+ + +

A four-component, 32-bit unsigned-normalized-integer format that supports 10 bits for each color and 2 bits for alpha.

+
+ + bb173059 + DXGI_FORMAT_R10G10B10A2_UNORM + DXGI_FORMAT_R10G10B10A2_UNORM +
+ + +

A four-component, 32-bit unsigned-integer format that supports 10 bits for each color and 2 bits for alpha.

+
+ + bb173059 + DXGI_FORMAT_R10G10B10A2_UINT + DXGI_FORMAT_R10G10B10A2_UINT +
+ + +

Three partial-precision floating-point numbers encoded into a single 32-bit value (a variant of s10e5, which is sign bit, 10-bit mantissa, and 5-bit biased (15) exponent). There are no sign bits, and there is a 5-bit biased (15) exponent for each channel, 6-bit mantissa for R and G, and a 5-bit mantissa for B, as shown in the following illustration.

+
+ + bb173059 + DXGI_FORMAT_R11G11B10_FLOAT + DXGI_FORMAT_R11G11B10_FLOAT +
+ + +

A four-component, 32-bit typeless format that supports 8 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R8G8B8A8_TYPELESS + DXGI_FORMAT_R8G8B8A8_TYPELESS +
+ + +

A four-component, 32-bit unsigned-normalized-integer format that supports 8 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R8G8B8A8_UNORM + DXGI_FORMAT_R8G8B8A8_UNORM +
+ + +

A four-component, 32-bit unsigned-normalized integer sRGB format that supports 8 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R8G8B8A8_UNORM_SRGB + DXGI_FORMAT_R8G8B8A8_UNORM_SRGB +
+ + +

A four-component, 32-bit unsigned-integer format that supports 8 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R8G8B8A8_UINT + DXGI_FORMAT_R8G8B8A8_UINT +
+ + +

A four-component, 32-bit signed-normalized-integer format that supports 8 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R8G8B8A8_SNORM + DXGI_FORMAT_R8G8B8A8_SNORM +
+ + +

A four-component, 32-bit signed-integer format that supports 8 bits per channel including alpha.

+
+ + bb173059 + DXGI_FORMAT_R8G8B8A8_SINT + DXGI_FORMAT_R8G8B8A8_SINT +
+ + +

A two-component, 32-bit typeless format that supports 16 bits for the red channel and 16 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R16G16_TYPELESS + DXGI_FORMAT_R16G16_TYPELESS +
+ + +

A two-component, 32-bit floating-point format that supports 16 bits for the red channel and 16 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R16G16_FLOAT + DXGI_FORMAT_R16G16_FLOAT +
+ + +

A two-component, 32-bit unsigned-normalized-integer format that supports 16 bits each for the green and red channels.

+
+ + bb173059 + DXGI_FORMAT_R16G16_UNORM + DXGI_FORMAT_R16G16_UNORM +
+ + +

A two-component, 32-bit unsigned-integer format that supports 16 bits for the red channel and 16 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R16G16_UINT + DXGI_FORMAT_R16G16_UINT +
+ + +

A two-component, 32-bit signed-normalized-integer format that supports 16 bits for the red channel and 16 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R16G16_SNORM + DXGI_FORMAT_R16G16_SNORM +
+ + +

A two-component, 32-bit signed-integer format that supports 16 bits for the red channel and 16 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R16G16_SINT + DXGI_FORMAT_R16G16_SINT +
+ + +

A single-component, 32-bit typeless format that supports 32 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R32_TYPELESS + DXGI_FORMAT_R32_TYPELESS +
+ + +

A single-component, 32-bit floating-point format that supports 32 bits for depth.

+
+ + bb173059 + DXGI_FORMAT_D32_FLOAT + DXGI_FORMAT_D32_FLOAT +
+ + +

A single-component, 32-bit floating-point format that supports 32 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R32_FLOAT + DXGI_FORMAT_R32_FLOAT +
+ + +

A single-component, 32-bit unsigned-integer format that supports 32 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R32_UINT + DXGI_FORMAT_R32_UINT +
+ + +

A single-component, 32-bit signed-integer format that supports 32 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R32_SINT + DXGI_FORMAT_R32_SINT +
+ + +

A two-component, 32-bit typeless format that supports 24 bits for the red channel and 8 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R24G8_TYPELESS + DXGI_FORMAT_R24G8_TYPELESS +
+ + +

A 32-bit z-buffer format that supports 24 bits for depth and 8 bits for stencil.

+
+ + bb173059 + DXGI_FORMAT_D24_UNORM_S8_UINT + DXGI_FORMAT_D24_UNORM_S8_UINT +
+ + +

A 32-bit format, that contains a 24 bit, single-component, unsigned-normalized integer, with an additional typeless 8 bits. This format has 24 bits red channel and 8 bits unused.

+
+ + bb173059 + DXGI_FORMAT_R24_UNORM_X8_TYPELESS + DXGI_FORMAT_R24_UNORM_X8_TYPELESS +
+ + +

A 32-bit format, that contains a 24 bit, single-component, typeless format, with an additional 8 bit unsigned integer component. This format has 24 bits unused and 8 bits green channel.

+
+ + bb173059 + DXGI_FORMAT_X24_TYPELESS_G8_UINT + DXGI_FORMAT_X24_TYPELESS_G8_UINT +
+ + +

A two-component, 16-bit typeless format that supports 8 bits for the red channel and 8 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R8G8_TYPELESS + DXGI_FORMAT_R8G8_TYPELESS +
+ + +

A two-component, 16-bit unsigned-normalized-integer format that supports 8 bits for the red channel and 8 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R8G8_UNORM + DXGI_FORMAT_R8G8_UNORM +
+ + +

A two-component, 16-bit unsigned-integer format that supports 8 bits for the red channel and 8 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R8G8_UINT + DXGI_FORMAT_R8G8_UINT +
+ + +

A two-component, 16-bit signed-normalized-integer format that supports 8 bits for the red channel and 8 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R8G8_SNORM + DXGI_FORMAT_R8G8_SNORM +
+ + +

A two-component, 16-bit signed-integer format that supports 8 bits for the red channel and 8 bits for the green channel.

+
+ + bb173059 + DXGI_FORMAT_R8G8_SINT + DXGI_FORMAT_R8G8_SINT +
+ + +

A single-component, 16-bit typeless format that supports 16 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R16_TYPELESS + DXGI_FORMAT_R16_TYPELESS +
+ + +

A single-component, 16-bit floating-point format that supports 16 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R16_FLOAT + DXGI_FORMAT_R16_FLOAT +
+ + +

A single-component, 16-bit unsigned-normalized-integer format that supports 16 bits for depth.

+
+ + bb173059 + DXGI_FORMAT_D16_UNORM + DXGI_FORMAT_D16_UNORM +
+ + +

A single-component, 16-bit unsigned-normalized-integer format that supports 16 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R16_UNORM + DXGI_FORMAT_R16_UNORM +
+ + +

A single-component, 16-bit unsigned-integer format that supports 16 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R16_UINT + DXGI_FORMAT_R16_UINT +
+ + +

A single-component, 16-bit signed-normalized-integer format that supports 16 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R16_SNORM + DXGI_FORMAT_R16_SNORM +
+ + +

A single-component, 16-bit signed-integer format that supports 16 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R16_SINT + DXGI_FORMAT_R16_SINT +
+ + +

A single-component, 8-bit typeless format that supports 8 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R8_TYPELESS + DXGI_FORMAT_R8_TYPELESS +
+ + +

A single-component, 8-bit unsigned-normalized-integer format that supports 8 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R8_UNORM + DXGI_FORMAT_R8_UNORM +
+ + +

A single-component, 8-bit unsigned-integer format that supports 8 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R8_UINT + DXGI_FORMAT_R8_UINT +
+ + +

A single-component, 8-bit signed-normalized-integer format that supports 8 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R8_SNORM + DXGI_FORMAT_R8_SNORM +
+ + +

A single-component, 8-bit signed-integer format that supports 8 bits for the red channel.

+
+ + bb173059 + DXGI_FORMAT_R8_SINT + DXGI_FORMAT_R8_SINT +
+ + +

A single-component, 8-bit unsigned-normalized-integer format for alpha only.

+
+ + bb173059 + DXGI_FORMAT_A8_UNORM + DXGI_FORMAT_A8_UNORM +
+ + +

A single-component, 1-bit unsigned-normalized integer format that supports 1 bit for the red channel. 2.

+
+ + bb173059 + DXGI_FORMAT_R1_UNORM + DXGI_FORMAT_R1_UNORM +
+ + +

Three partial-precision floating-point numbers encoded into a single 32-bit value all sharing the same 5-bit exponent (variant of s10e5, which is sign bit, 10-bit mantissa, and 5-bit biased (15) exponent). There is no sign bit, and there is a shared 5-bit biased (15) exponent and a 9-bit mantissa for each channel, as shown in the following illustration. 2.

+
+ + bb173059 + DXGI_FORMAT_R9G9B9E5_SHAREDEXP + DXGI_FORMAT_R9G9B9E5_SHAREDEXP +
+ + +

A four-component, 32-bit unsigned-normalized-integer format. This packed RGB format is analogous to the UYVY format. Each 32-bit block describes a pair of pixels: (R8, G8, B8) and (R8, G8, B8) where the R8/B8 values are repeated, and the G8 values are unique to each pixel. 3

Width must be even.

+
+ + bb173059 + DXGI_FORMAT_R8G8_B8G8_UNORM + DXGI_FORMAT_R8G8_B8G8_UNORM +
+ + +

A four-component, 32-bit unsigned-normalized-integer format. This packed RGB format is analogous to the YUY2 format. Each 32-bit block describes a pair of pixels: (R8, G8, B8) and (R8, G8, B8) where the R8/B8 values are repeated, and the G8 values are unique to each pixel. 3

Width must be even.

+
+ + bb173059 + DXGI_FORMAT_G8R8_G8B8_UNORM + DXGI_FORMAT_G8R8_G8B8_UNORM +
+ + +

Four-component typeless block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC1_TYPELESS + DXGI_FORMAT_BC1_TYPELESS +
+ + +

Four-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC1_UNORM + DXGI_FORMAT_BC1_UNORM +
+ + +

Four-component block-compression format for sRGB data. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC1_UNORM_SRGB + DXGI_FORMAT_BC1_UNORM_SRGB +
+ + +

Four-component typeless block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC2_TYPELESS + DXGI_FORMAT_BC2_TYPELESS +
+ + +

Four-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC2_UNORM + DXGI_FORMAT_BC2_UNORM +
+ + +

Four-component block-compression format for sRGB data. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC2_UNORM_SRGB + DXGI_FORMAT_BC2_UNORM_SRGB +
+ + +

Four-component typeless block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC3_TYPELESS + DXGI_FORMAT_BC3_TYPELESS +
+ + +

Four-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC3_UNORM + DXGI_FORMAT_BC3_UNORM +
+ + +

Four-component block-compression format for sRGB data. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC3_UNORM_SRGB + DXGI_FORMAT_BC3_UNORM_SRGB +
+ + +

One-component typeless block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC4_TYPELESS + DXGI_FORMAT_BC4_TYPELESS +
+ + +

One-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC4_UNORM + DXGI_FORMAT_BC4_UNORM +
+ + +

One-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC4_SNORM + DXGI_FORMAT_BC4_SNORM +
+ + +

Two-component typeless block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC5_TYPELESS + DXGI_FORMAT_BC5_TYPELESS +
+ + +

Two-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC5_UNORM + DXGI_FORMAT_BC5_UNORM +
+ + +

Two-component block-compression format. For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC5_SNORM + DXGI_FORMAT_BC5_SNORM +
+ + +

A three-component, 16-bit unsigned-normalized-integer format that supports 5 bits for blue, 6 bits for green, and 5 bits for red.

Direct3D 10 through Direct3D 11:??This value is defined for DXGI. However, Direct3D 10, 10.1, or 11 devices do not support this format.

Direct3D 11.1:??This value is not supported until Windows?8.

+
+ + bb173059 + DXGI_FORMAT_B5G6R5_UNORM + DXGI_FORMAT_B5G6R5_UNORM +
+ + +

A four-component, 16-bit unsigned-normalized-integer format that supports 5 bits for each color channel and 1-bit alpha.

Direct3D 10 through Direct3D 11:??This value is defined for DXGI. However, Direct3D 10, 10.1, or 11 devices do not support this format.

Direct3D 11.1:??This value is not supported until Windows?8.

+
+ + bb173059 + DXGI_FORMAT_B5G5R5A1_UNORM + DXGI_FORMAT_B5G5R5A1_UNORM +
+ + +

A four-component, 32-bit unsigned-normalized-integer format that supports 8 bits for each color channel and 8-bit alpha.

+
+ + bb173059 + DXGI_FORMAT_B8G8R8A8_UNORM + DXGI_FORMAT_B8G8R8A8_UNORM +
+ + +

A four-component, 32-bit unsigned-normalized-integer format that supports 8 bits for each color channel and 8 bits unused.

+
+ + bb173059 + DXGI_FORMAT_B8G8R8X8_UNORM + DXGI_FORMAT_B8G8R8X8_UNORM +
+ + +

A four-component, 32-bit 2.8-biased fixed-point format that supports 10 bits for each color channel and 2-bit alpha.

+
+ + bb173059 + DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM + DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM +
+ + +

A four-component, 32-bit typeless format that supports 8 bits for each channel including alpha. 4

+
+ + bb173059 + DXGI_FORMAT_B8G8R8A8_TYPELESS + DXGI_FORMAT_B8G8R8A8_TYPELESS +
+ + +

A four-component, 32-bit unsigned-normalized standard RGB format that supports 8 bits for each channel including alpha. 4

+
+ + bb173059 + DXGI_FORMAT_B8G8R8A8_UNORM_SRGB + DXGI_FORMAT_B8G8R8A8_UNORM_SRGB +
+ + +

A four-component, 32-bit typeless format that supports 8 bits for each color channel, and 8 bits are unused. 4

+
+ + bb173059 + DXGI_FORMAT_B8G8R8X8_TYPELESS + DXGI_FORMAT_B8G8R8X8_TYPELESS +
+ + +

A four-component, 32-bit unsigned-normalized standard RGB format that supports 8 bits for each color channel, and 8 bits are unused. 4

+
+ + bb173059 + DXGI_FORMAT_B8G8R8X8_UNORM_SRGB + DXGI_FORMAT_B8G8R8X8_UNORM_SRGB +
+ + +

A typeless block-compression format. 4 For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC6H_TYPELESS + DXGI_FORMAT_BC6H_TYPELESS +
+ + +

A block-compression format. 4 For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC6H_UF16 + DXGI_FORMAT_BC6H_UF16 +
+ + +

A block-compression format. 4 For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC6H_SF16 + DXGI_FORMAT_BC6H_SF16 +
+ + +

A typeless block-compression format. 4 For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC7_TYPELESS + DXGI_FORMAT_BC7_TYPELESS +
+ + +

A block-compression format. 4 For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC7_UNORM + DXGI_FORMAT_BC7_UNORM +
+ + +

A block-compression format. 4 For information about block-compression formats, see Texture Block Compression in Direct3D 11.

+
+ + bb173059 + DXGI_FORMAT_BC7_UNORM_SRGB + DXGI_FORMAT_BC7_UNORM_SRGB +
+ + +

Identifies how to perform a present operation.

+
+ + ff557509 + DXGI_MAP_FLAGS + DXGI_MAP_FLAGS +
+ + +

Specifies whether to perform a bit-block transfer (bitblt) data to the primary surface.

Setting this member is equivalent to setting the first bit of the 32-bit Value member (0x00000001).

+
+ + ff557509 + DXGI_MAP_READ + DXGI_MAP_READ +
+ + +

Specifies whether to flip to a new surface.

Setting this member is equivalent to setting the second bit of the 32-bit Value member (0x00000002).

+
+ + ff557509 + DXGI_MAP_WRITE + DXGI_MAP_WRITE +
+ + +

Supported in Windows?8 and later versions.

Specifies that, if a stereo present operation must be reduced to mono, the present operation should show the view from the right eye.

If this member is not set, the default mono present operation shows the view from the left eye.

Setting this member is equivalent to setting the third bit of the 32-bit Value member (0x00000004).

+
+ + ff557509 + DXGI_MAP_DISCARD + DXGI_MAP_DISCARD +
+ + +

Identifies how to perform a present operation.

+
+ + ff557509 + DXGI_PRESENT_FLAGS + DXGI_PRESENT_FLAGS +
+ + +

Specifies whether to perform a bit-block transfer (bitblt) data to the primary surface.

Setting this member is equivalent to setting the first bit of the 32-bit Value member (0x00000001).

+
+ + ff557509 + DXGI_PRESENT_TEST + DXGI_PRESENT_TEST +
+ + +

Specifies whether to flip to a new surface.

Setting this member is equivalent to setting the second bit of the 32-bit Value member (0x00000002).

+
+ + ff557509 + DXGI_PRESENT_DO_NOT_SEQUENCE + DXGI_PRESENT_DO_NOT_SEQUENCE +
+ + +

Supported in Windows?8 and later versions.

Specifies that, if a stereo present operation must be reduced to mono, the present operation should show the view from the right eye.

If this member is not set, the default mono present operation shows the view from the left eye.

Setting this member is equivalent to setting the third bit of the 32-bit Value member (0x00000004).

+
+ + ff557509 + DXGI_PRESENT_RESTART + DXGI_PRESENT_RESTART +
+ + + None. + + + None + None + + + +

Flags indicating the memory location of a resource.

+
+ + bb173070 + DXGI_RESIDENCY + DXGI_RESIDENCY +
+ + +

The resource is located in video memory.

+
+ + bb173070 + DXGI_RESIDENCY_FULLY_RESIDENT + DXGI_RESIDENCY_FULLY_RESIDENT +
+ + +

At least some of the resource is located in CPU memory.

+
+ + bb173070 + DXGI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY + DXGI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY +
+ + +

At least some of the resource has been paged out to the hard drive.

+
+ + bb173070 + DXGI_RESIDENCY_EVICTED_TO_DISK + DXGI_RESIDENCY_EVICTED_TO_DISK +
+ + +

Identifies the importance of a resource?s content when you call the IDXGIDevice2::OfferResources method to offer the resource.

+
+ +

Priority determines how likely the operating system is to discard an offered resource. Resources offered with lower priority are discarded first.

+
+ + hh404509 + DXGI_RESOURCE_PRIORITY + DXGI_RESOURCE_PRIORITY +
+ + + No documentation. + + + hh404509 + DXGI_RESOURCE_PRIORITY_MINIMUM + DXGI_RESOURCE_PRIORITY_MINIMUM + + + + No documentation. + + + hh404509 + DXGI_RESOURCE_PRIORITY_LOW + DXGI_RESOURCE_PRIORITY_LOW + + + + No documentation. + + + hh404509 + DXGI_RESOURCE_PRIORITY_NORMAL + DXGI_RESOURCE_PRIORITY_NORMAL + + + + No documentation. + + + hh404509 + DXGI_RESOURCE_PRIORITY_HIGH + DXGI_RESOURCE_PRIORITY_HIGH + + + + No documentation. + + + hh404509 + DXGI_RESOURCE_PRIORITY_MAXIMUM + DXGI_RESOURCE_PRIORITY_MAXIMUM + + + +

Options for swap-chain behavior.

+
+ +

This enumeration is used by the structure and the method.

This enumeration is also used by the DXGI_SWAP_CHAIN_DESC1 structure.

You don't need to set DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY for swap chains that you create in full-screen mode with the method because those swap chains already behave as if DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY is set. That is, presented content is not accessible by remote access or through the desktop duplication APIs.

Swap chains that you create with the IDXGIFactory2::CreateSwapChainForHwnd, IDXGIFactory2::CreateSwapChainForCoreWindow, and IDXGIFactory2::CreateSwapChainForComposition methods are not protected if DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY is not set and are protected if DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY is set. When swap chains are protected, screen scraping is prevented and, in full-screen mode, presented content is not accessible through the desktop duplication APIs.

When you call to change the swap chain's back buffer, you can reset or change all flags.

+
+ + bb173076 + DXGI_SHARED_RESOURCE_FLAGS + DXGI_SHARED_RESOURCE_FLAGS +
+ + + None. + + + None + None + + + +

Options for swap-chain behavior.

+
+ +

This enumeration is used by the structure and the method.

This enumeration is also used by the DXGI_SWAP_CHAIN_DESC1 structure.

You don't need to set DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY for swap chains that you create in full-screen mode with the method because those swap chains already behave as if DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY is set. That is, presented content is not accessible by remote access or through the desktop duplication APIs.

Swap chains that you create with the IDXGIFactory2::CreateSwapChainForHwnd, IDXGIFactory2::CreateSwapChainForCoreWindow, and IDXGIFactory2::CreateSwapChainForComposition methods are not protected if DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY is not set and are protected if DXGI_SWAP_CHAIN_FLAG_DISPLAY_ONLY is set. When swap chains are protected, screen scraping is prevented and, in full-screen mode, presented content is not accessible through the desktop duplication APIs.

When you call to change the swap chain's back buffer, you can reset or change all flags.

+
+ + bb173076 + DXGI_SWAP_CHAIN_FLAG + DXGI_SWAP_CHAIN_FLAG +
+ + +

Set this flag to turn off automatic image rotation; that is, do not perform a rotation when transferring the contents of the front buffer to the monitor. Use this flag to avoid a bandwidth penalty when an application expects to handle rotation. This option is valid only during full-screen mode.

+
+ + bb173076 + DXGI_SWAP_CHAIN_FLAG_NONPREROTATED + DXGI_SWAP_CHAIN_FLAG_NONPREROTATED +
+ + +

Set this flag to enable an application to switch modes by calling . When switching from windowed to full-screen mode, the display mode (or monitor resolution) will be changed to match the dimensions of the application window.

+
+ + bb173076 + DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH + DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH +
+ + +

Set this flag to enable an application to render using GDI on a swap chain or a surface. This will allow the application to call on the 0th back buffer or a surface.

+
+ + bb173076 + DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE + DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE +
+ + + None. + + + None + None + + + +

Options for handling pixels in a display surface after calling IDXGISwapChain1::Present1.

+
+ +

This enumeration is used by the structure.

This enumeration is also used by the DXGI_SWAP_CHAIN_DESC1 structure.

To use multisampling with or DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, you must perform the multisampling in a separate render target. For example, create a multisampled texture by calling with a filled structure (BindFlags member set to and SampleDesc member with multisampling parameters). Next call to create a render-target view for the texture, and render your scene into the texture. Finally call to resolve the multisampled texture into your non-multisampled swap chain.

The primary difference between presentation models is how back-buffer contents get to the Desktop Window Manager (DWM) for composition. In the bitblt model, which is used with the and values, contents of the back buffer get copied into the redirection surface on each call to IDXGISwapChain1::Present1. In the flip model, which is used with the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value, all back buffers are shared with the DWM. Therefore, the DWM can compose straight from those back buffers without any additional copy operations. + In general, the flip model is the more efficient model. The flip model also provides more features, such as enhanced present statistics. +

When you call IDXGISwapChain1::Present1 on a flip model swap chain (DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL) with 0 specified in the SyncInterval parameter, IDXGISwapChain1::Present1's behavior is the same as the behavior of Direct3D 9Ex's with and . That is, the runtime not only presents the next frame instead of any previously queued frames, it also terminates any remaining time left on the previously queued frames.

Regardless of whether the flip model is more efficient, an application still might choose the bitblt model because the bitblt model is the only way to mix GDI and DirectX presentation. In the flip model, the application must create the swap chain with , and then must use GetDC on the back buffer explicitly. After the first successful call to IDXGISwapChain1::Present1 on a flip-model swap chain, GDI no longer works with the that is associated with that swap chain, even after the destruction of the swap chain. This restriction even extends to methods like ScrollWindowEx.

For more info about the flip-model swap chain and optimizing presentation, see Enhancing presentation with the flip model, dirty rectangles, and scrolled areas.

+
+ + bb173077 + DXGI_SWAP_EFFECT + DXGI_SWAP_EFFECT +
+ + + No documentation. + + + bb173077 + DXGI_SWAP_EFFECT_DISCARD + DXGI_SWAP_EFFECT_DISCARD + + + + No documentation. + + + bb173077 + DXGI_SWAP_EFFECT_SEQUENTIAL + DXGI_SWAP_EFFECT_SEQUENTIAL + + + +

Flags for surface and resource creation options.

+
+ +

Each flag is defined as an unsigned integer.

#define DXGI_CPU_ACCESS_NONE ( 0 ) + #define DXGI_CPU_ACCESS_DYNAMIC ( 1 ) + #define DXGI_CPU_ACCESS_READ_WRITE ( 2 ) + #define DXGI_CPU_ACCESS_SCRATCH ( 3 ) + #define DXGI_CPU_ACCESS_FIELD 15 + #define ( 1L << (0 + 4) ) + #define ( 1L << (1 + 4) ) + #define ( 1L << (2 + 4) ) + #define ( 1L << (3 + 4) ) + #define ( 1L << (4 + 4) ) + #define ( 1L << (5 + 4) ) + #define ( 1L << (6 + 4) ) + typedef UINT DXGI_USAGE;

These flag options are used in a call to the , IDXGIFactory2::CreateSwapChainForHwnd, IDXGIFactory2::CreateSwapChainForCoreWindow, or IDXGIFactory2::CreateSwapChainForComposition method to describe the surface usage and CPU access options for the back buffer of a swap chain. You can't use the , , and values as input to create a swap chain. However, DXGI can set and for some of the swap chain's back buffers on the application's behalf. You can call the method to retrieve the usage of these back buffers. + Swap chain's only support the DXGI_CPU_ACCESS_NONE value in the DXGI_CPU_ACCESS_FIELD part of DXGI_USAGE.

These flag options are also used by the method.

+
+ + bb173078 + DXGI_USAGE_ENUM + DXGI_USAGE_ENUM +
+ + + No documentation. + + + bb173078 + DXGI_USAGE_SHADER_INPUT + DXGI_USAGE_SHADER_INPUT + + + + No documentation. + + + bb173078 + DXGI_USAGE_RENDER_TARGET_OUTPUT + DXGI_USAGE_RENDER_TARGET_OUTPUT + + + + No documentation. + + + bb173078 + DXGI_USAGE_BACK_BUFFER + DXGI_USAGE_BACK_BUFFER + + + + No documentation. + + + bb173078 + DXGI_USAGE_SHARED + DXGI_USAGE_SHARED + + + + No documentation. + + + bb173078 + DXGI_USAGE_READ_ONLY + DXGI_USAGE_READ_ONLY + + + + No documentation. + + + bb173078 + DXGI_USAGE_DISCARD_ON_PRESENT + DXGI_USAGE_DISCARD_ON_PRESENT + + + + No documentation. + + + bb173078 + DXGI_USAGE_UNORDERED_ACCESS + DXGI_USAGE_UNORDERED_ACCESS + + + +

Allows DXGI to monitor an application's message queue for the alt-enter key sequence (which causes the application to switch from windowed to full screen or vice versa).

+
+ +

Note??If you call this API in a Session 0 process, it returns .

The combination of WindowHandle and Flags informs DXGI to stop monitoring window messages for the previously-associated window.

If the application switches to full-screen mode, DXGI will choose a full-screen resolution to be the smallest supported resolution that is larger or the same size as the current back buffer size.

Applications can make some changes to make the transition from windowed to full screen more efficient. For example, on a WM_SIZE message, the application should release any outstanding swap-chain back buffers, call , then re-acquire the back buffers from the swap chain(s). This gives the swap chain(s) an opportunity to resize the back buffers, and/or recreate them to enable full-screen flipping operation. If the application does not perform this sequence, DXGI will still make the full-screen/windowed transition, but may be forced to use a stretch operation (since the back buffers may not be the correct size), which may be less efficient. Even if a stretch is not required, presentation may not be optimal because the back buffers might not be directly interchangeable with the front buffer. Thus, a call to ResizeBuffers on WM_SIZE is always recommended, since WM_SIZE is always sent during a fullscreen transition.

While windowed, the application can, if it chooses, restrict the size of its window's client area to sizes to which it is comfortable rendering. A fully flexible application would make no such restriction, but UI elements or other design considerations can, of course, make this flexibility untenable. If the application further chooses to restrict its window's client area to just those that match supported full-screen resolutions, the application can field WM_SIZING, then check against . If a matching mode is found, allow the resize. (The can be retrieved from . Absent subsequent changes to desktop topology, this will be the same output that will be chosen when alt-enter is fielded and fullscreen mode is begun for that swap chain.)

Applications that want to handle mode changes or Alt+Enter themselves should call MakeWindowAssociation with the flag after swap chain creation. The WindowHandle argument, if non-null, specifies that the application message queues will not be handled by the DXGI runtime for all swap chains of a particular target . Calling MakeWindowAssociation with the flag after swapchain creation ensures that DXGI will not interfere with application's handling of window mode changes or Alt+Enter.

+
+ + bb174540 + DXGI_MWA_FLAGS + DXGI_MWA_FLAGS +
+ + +

The handle of the window that is to be monitored. This parameter can be null; but only if the flags are also 0.

+
+ + bb174540 + DXGI_MWA_NO_WINDOW_CHANGES + DXGI_MWA_NO_WINDOW_CHANGES +
+ + +

One or more of the following values: +

  • - Prevent DXGI from monitoring an applications message queue; this makes DXGI unable to respond to mode changes.
  • - Prevent DXGI from responding to an alt-enter sequence.
  • - Prevent DXGI from responding to a print-screen key.
+
+ + bb174540 + DXGI_MWA_NO_ALT_ENTER + DXGI_MWA_NO_ALT_ENTER +
+ + + No documentation. + + + bb174540 + DXGI_MWA_NO_PRINT_SCREEN + DXGI_MWA_NO_PRINT_SCREEN + + + + No documentation. + + + bb174540 + DXGI_MWA_VALID + DXGI_MWA_VALID + + + + None. + + + None + None + + + + Functions + + + + + +

Creates a DXGI 1.1 factory that you can use to generate other DXGI objects.

+
+

The globally unique identifier () of the object referenced by the ppFactory parameter.

+

Address of a reference to an object.

+

Returns if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.

+ +

Use a DXGI 1.1 factory to generate objects that enumerate adapters, create swap chains, and associate a window with the alt+enter key sequence for toggling to and from the full-screen display mode.

If the CreateDXGIFactory1 function succeeds, the reference count on the interface is incremented. To avoid a memory leak, when you finish using the interface, call the IDXGIFactory1::Release method to release the interface.

This entry point is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Note??Do not mix the use of DXGI 1.0 () and DXGI 1.1 () in an application. Use or , but not both in an application.

Note??CreateDXGIFactory1 fails if your app's DllMain function calls it. For more info about how DXGI responds from DllMain, see DXGI Responses from DLLMain.

Note??Starting with Windows?8, all DXGI factories (regardless if they were created with CreateDXGIFactory or CreateDXGIFactory1) enumerate adapters identically. The enumeration order of adapters, which you retrieve with or , is as follows:

  • Adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero.
  • Adapters with outputs.
  • Adapters without outputs.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ff471318 + HRESULT CreateDXGIFactory1([In] const GUID& riid,[Out] void** ppFactory) + CreateDXGIFactory1 +
+ + +

Creates a DXGI 1.0 factory that you can use to generate other DXGI objects.

+
+

The globally unique identifier () of the object referenced by the ppFactory parameter.

+

Address of a reference to an object.

+

Returns if successful; otherwise, returns one of the following DXGI_ERROR.

+ +

Use a DXGI factory to generate objects that enumerate adapters, create swap chains, and associate a window with the alt+enter key sequence for toggling to and from the fullscreen display mode.

If the CreateDXGIFactory function succeeds, the reference count on the interface is incremented. To avoid a memory leak, when you finish using the interface, call the IDXGIFactory::Release method to release the interface.

Note??Do not mix the use of DXGI 1.0 () and DXGI 1.1 () in an application. Use or , but not both in an application.

Note??CreateDXGIFactory fails if your app's DllMain function calls it. For more info about how DXGI responds from DllMain, see DXGI Responses from DLLMain.

Note??Starting with Windows?8, all DXGI factories (regardless if they were created with CreateDXGIFactory or CreateDXGIFactory1) enumerate adapters identically. The enumeration order of adapters, which you retrieve with or , is as follows:

  • Adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero.
  • Adapters with outputs.
  • Adapters without outputs.

The CreateDXGIFactory function does not exist for Windows Store apps. Instead, Windows Store apps use the CreateDXGIFactory1 function.

+
+ + bb204862 + HRESULT CreateDXGIFactory([In] const GUID& riid,[Out] void** ppFactory) + CreateDXGIFactory +
+ + + Functions + + + + + Constant FrameStatisticsDisjoint. + DXGI_ERROR_FRAME_STATISTICS_DISJOINT + + + Constant DeviceReset. + DXGI_ERROR_DEVICE_RESET + + + Constant DriverInternalError. + DXGI_ERROR_DRIVER_INTERNAL_ERROR + + + Constant InvalidCall. + DXGI_ERROR_INVALID_CALL + + + Constant NotFound. + DXGI_ERROR_NOT_FOUND + + + Constant WasStillDrawing. + DXGI_ERROR_WAS_STILL_DRAWING + + + Constant Unsupported. + DXGI_ERROR_UNSUPPORTED + + + Constant RemoteClientDisconnected. + DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED + + + Constant DeviceRemoved. + DXGI_ERROR_DEVICE_REMOVED + + + Constant DeviceHung. + DXGI_ERROR_DEVICE_HUNG + + + Constant RemoteOufOfMemory. + DXGI_ERROR_REMOTE_OUTOFMEMORY + + + Constant MoreData. + DXGI_ERROR_MORE_DATA + + + Constant Nonexclusive. + DXGI_ERROR_NONEXCLUSIVE + + + Constant GraphicsVidpnSourceInUse. + DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE + + + Constant NotCurrentlyAvailable. + DXGI_ERROR_NOT_CURRENTLY_AVAILABLE + + + +

The interface represents a display sub-system (including one or more GPU's, DACs and video memory).

+
+ +

This interface is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

A display sub-system is often referred to as a video card, however, on some machines the display sub-system is part of the mother board.

To enumerate the display sub-systems, use . To get an interface to the adapter for a particular device, use . To create a software adapter, use .

Windows?Phone?8: This API is supported.

+
+ + ff471329 + IDXGIAdapter1 + IDXGIAdapter1 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets a DXGI 1.1 description of an adapter (or video card).

+
+

A reference to a structure that describes the adapter. This parameter must not be null. On feature level 9 graphics hardware, GetDesc1 returns zeros for the PCI ID in the VendorId, DeviceId, SubSysId, and Revision members of and ?Software Adapter? for the description string in the Description member.

+

Returns if successful; otherwise, returns E_INVALIDARG if the pDesc parameter is null.

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Use the GetDesc1 method to get a DXGI 1.1 description of an adapter. To get a DXGI 1.0 description, use the method.

Windows?Phone?8: This API is supported.

+
+ + ff471330 + HRESULT IDXGIAdapter1::GetDesc1([Out] DXGI_ADAPTER_DESC1* pDesc) + IDXGIAdapter1::GetDesc1 +
+ + +

Gets a DXGI 1.1 description of an adapter (or video card).

+
+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Use the GetDesc1 method to get a DXGI 1.1 description of an adapter. To get a DXGI 1.0 description, use the method.

Windows?Phone?8: This API is supported.

+
+ + ff471330 + GetDesc1 + GetDesc1 + HRESULT IDXGIAdapter1::GetDesc1([Out] DXGI_ADAPTER_DESC1* pDesc) +
+ + +

An interface implements a derived class for DXGI objects that produce image data.

+
+ +

This interface is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

The interface is designed for use by DXGI objects that need access to other DXGI objects. This interface is useful to applications that do not use Direct3D to communicate with DXGI.

The Direct3D create device functions return a Direct3D device object. This Direct3D device object implements the interface. You can query this Direct3D device object for the device's corresponding interface. To retrieve the interface of a Direct3D device, use the following code:

 * pDXGIDevice;	
+            hr = g_pd3dDevice->QueryInterface(__uuidof(), (void **)&pDXGIDevice);	
+            

Windows?Phone?8: This API is supported.

+
+ + ff471331 + IDXGIDevice1 + IDXGIDevice1 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the number of frames that the system is allowed to queue for rendering.

+
+

The maximum number of back buffer frames that a driver can queue. The value defaults to 3, but can range from 1 to 16. A value of 0 will reset latency to the default. For multi-head devices, this value is specified per-head.

+

Returns if successful; otherwise, if the device was removed.

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Frame latency is the number of frames that are allowed to be stored in a queue before submission for rendering. Latency is often used to control how the CPU chooses between responding to user input and frames that are in the render queue. It is often beneficial for applications that have no user input (for example, video playback) to queue more than 3 frames of data.

Windows?Phone?8: This API is supported.

+
+ + ff471334 + HRESULT IDXGIDevice1::SetMaximumFrameLatency([In] unsigned int MaxLatency) + IDXGIDevice1::SetMaximumFrameLatency +
+ + +

Gets the number of frames that the system is allowed to queue for rendering.

+
+

This value is set to the number of frames that can be queued for render. This value defaults to 3, but can range from 1 to 16.

+

Returns if successful; otherwise, returns one of the following members of the D3DERR enumerated type:

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Frame latency is the number of frames that are allowed to be stored in a queue before submission for rendering. Latency is often used to control how the CPU chooses between responding to user input and frames that are in the render queue. It is often beneficial for applications that have no user input (for example, video playback) to queue more than 3 frames of data.

Windows?Phone?8: This API is supported.

+
+ + ff471332 + HRESULT IDXGIDevice1::GetMaximumFrameLatency([Out] unsigned int* pMaxLatency) + IDXGIDevice1::GetMaximumFrameLatency +
+ + +

Gets or sets the number of frames that the system is allowed to queue for rendering.

+
+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Frame latency is the number of frames that are allowed to be stored in a queue before submission for rendering. Latency is often used to control how the CPU chooses between responding to user input and frames that are in the render queue. It is often beneficial for applications that have no user input (for example, video playback) to queue more than 3 frames of data.

Windows?Phone?8: This API is supported.

+
+ + ff471332 + GetMaximumFrameLatency / SetMaximumFrameLatency + GetMaximumFrameLatency + HRESULT IDXGIDevice1::GetMaximumFrameLatency([Out] unsigned int* pMaxLatency) +
+ + +

Represents a keyed mutex, which allows exclusive access to a shared resource that is used by multiple devices.

+
+ +

The is required to create a resource capable of supporting the interface.

An should be retrieved for each device sharing a resource. In Direct3D 10.1, such a resource that is shared between two or more devices is created with the flag. In Direct3D 11, such a resource that is shared between two or more devices is created with the flag.

For information about creating a keyed mutex, see the method.

Windows?Phone?8: This API is supported.

+
+ + ff471338 + IDXGIKeyedMutex + IDXGIKeyedMutex +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Using a key, acquires exclusive rendering access to a shared resource.

+
+

A value that indicates which device to give access to. This method will succeed when the device that currently owns the surface calls the method using the same value. This value can be any UINT64 value.

+

The time-out interval, in milliseconds. This method will return if the interval elapses, and the keyed mutex has not been released using the specified Key. If this value is set to zero, the AcquireSync method will test to see if the keyed mutex has been released and returns immediately. If this value is set to INFINITE, the time-out interval will never elapse.

+

Return if successful.

If the owning device attempted to create another keyed mutex on the same shared resource, AcquireSync returns E_FAIL.

AcquireSync can also return the following DWORD constants. Therefore, you should explicitly check for these constants. If you only use the SUCCEEDED macro on the return value to determine if AcquireSync succeeded, you will not catch these constants.

  • WAIT_ABANDONED - The shared surface and keyed mutex are no longer in a consistent state. If AcquireSync returns this value, you should release and recreate both the keyed mutex and the shared surface.
  • WAIT_TIMEOUT - The time-out interval elapsed before the specified key was released.
+ +

The AcquireSync method creates a lock to a surface that is shared between multiple devices, allowing only one device to render to a surface at a time. This method uses a key to determine which device currently has exclusive access to the surface.

When a surface is created using the value of the enumeration, you must call the AcquireSync method before rendering to the surface. You must call the ReleaseSync method when you are done rendering to a surface.

To acquire a reference to the keyed mutex object of a shared resource, call the QueryInterface method of the resource and pass in the UUID of the interface. For more information about acquiring this reference, see the following code example.

The AcquireSync method uses the key as follows, depending on the state of the surface:

  • On initial creation, the surface is unowned and any device can call the AcquireSync method to gain access. For an unowned device, only a key of 0 will succeed. Calling the AcquireSync method for any other key will stall the calling CPU thread.
  • If the surface is owned by a device when you call the AcquireSync method, the CPU thread that called the AcquireSync method will stall until the owning device calls the ReleaseSync method using the same Key.
  • If the surface is unowned when you call the AcquireSync method (for example, the last owning device has already called the ReleaseSync method), the AcquireSync method will succeed if you specify the same key that was specified when the ReleaseSync method was last called. Calling the AcquireSync method using any other key will cause a stall.
  • When the owning device calls the ReleaseSync method with a particular key, and more than one device is waiting after calling the AcquireSync method using the same key, any one of the waiting devices could be woken up first. The order in which devices are woken up is undefined.
  • A keyed mutex does not support recursive calls to the AcquireSync method.

Windows?Phone?8: This API is supported.

+
+ + ff471339 + HRESULT IDXGIKeyedMutex::AcquireSync([In] unsigned longlong Key,[In] unsigned int dwMilliseconds) + IDXGIKeyedMutex::AcquireSync +
+ + +

Using a key, releases exclusive rendering access to a shared resource.

+
+

A value that indicates which device to give access to. This method succeeds when the device that currently owns the surface calls the ReleaseSync method using the same value. This value can be any UINT64 value.

+

Returns if successful.

If the device attempted to release a keyed mutex that is not valid or owned by the device, ReleaseSync returns E_FAIL.

+ +

The ReleaseSync method releases a lock to a surface that is shared between multiple devices. This method uses a key to determine which device currently has exclusive access to the surface.

When a surface is created using the value of the enumeration, you must call the method before rendering to the surface. You must call the ReleaseSync method when you are done rendering to a surface.

After you call the ReleaseSync method, the shared resource is unset from the rendering pipeline.

To acquire a reference to the keyed mutex object of a shared resource, call the QueryInterface method of the resource and pass in the UUID of the interface. For more information about acquiring this reference, see the following code example.

Windows?Phone?8: This API is supported.

+
+ + ff471340 + HRESULT IDXGIKeyedMutex::ReleaseSync([In] unsigned longlong Key) + IDXGIKeyedMutex::ReleaseSync +
+ + +

An interface represents an adapter output (such as a monitor).

+
+ +

To see the outputs available, use . To see the specific output that the swap chain will update, use .

Windows?Phone?8: This API is supported.

+
+ + bb174546 + IDXGIOutput + IDXGIOutput +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a description of the output.

+
+

A reference to the output description (see ).

+

Returns a code that indicates success or failure. if successful, if pDesc is passed in as null.

+ +

On a high DPI desktop, GetDesc returns the visualized screen size unless the app is marked high DPI aware. For info about writing DPI-aware Win32 apps, see High DPI.

Windows?Phone?8: This API is supported.

+
+ + bb174548 + HRESULT IDXGIOutput::GetDesc([Out] DXGI_OUTPUT_DESC* pDesc) + IDXGIOutput::GetDesc +
+ + +

[Starting with Direct3D 11.1, we recommend not to use GetDisplayModeList anymore to retrieve the matching display mode. Instead, use IDXGIOutput1::GetDisplayModeList1, which supports stereo display mode.]

Gets the display modes that match the requested format and other input options.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

Returns one of the following DXGI_ERROR. It is rare, but possible, that the display modes available can change immediately after calling this method, in which case is returned (if there is not enough room for all the display modes). If GetDisplayModeList is called from a Remote Desktop Services session (formerly Terminal Services session), is returned.

+ +

In general, when switching from windowed to full-screen mode, a swap chain automatically chooses a display mode that meets (or exceeds) the resolution, color depth and refresh rate of the swap chain. To exercise more control over the display mode, use this API to poll the set of display modes that are validated against monitor capabilities, or all modes that match the desktop (if the desktop settings are not validated against the monitor).

As shown, this API is designed to be called twice. First to get the number of modes available, and second to return a description of the modes.

 UINT num = 0;	
+             format = ;	
+            UINT flags         = ; pOutput->GetDisplayModeList( format, flags, &num, 0); ...  * pDescs = new [num];	
+            pOutput->GetDisplayModeList( format, flags, &num, pDescs); 

Windows?Phone?8: This API is supported.

+
+ + bb174549 + HRESULT IDXGIOutput::GetDisplayModeList([In] DXGI_FORMAT EnumFormat,[In] unsigned int Flags,[InOut] unsigned int* pNumModes,[Out, Buffer, Optional] DXGI_MODE_DESC* pDesc) + IDXGIOutput::GetDisplayModeList +
+ + +

[Starting with Direct3D 11.1, we recommend not to use FindClosestMatchingMode anymore to find the display mode that most closely matches the requested display mode. Instead, use IDXGIOutput1::FindClosestMatchingMode1, which supports stereo display mode.]

Finds the display mode that most closely matches the requested display mode.

+
+ No documentation. + No documentation. + No documentation. +

Returns one of the following DXGI_ERROR.

+ +

FindClosestMatchingMode behaves similarly to the IDXGIOutput1::FindClosestMatchingMode1 except FindClosestMatchingMode considers only the mono display modes. IDXGIOutput1::FindClosestMatchingMode1 considers only stereo modes if you set the Stereo member in the DXGI_MODE_DESC1 structure that pModeToMatch points to, and considers only mono modes if Stereo is not set.

IDXGIOutput1::FindClosestMatchingMode1 returns a matched display-mode set with only stereo modes or only mono modes. + FindClosestMatchingMode behaves as though you specified the input mode as mono.

Windows?Phone?8: This API is supported.

+
+ + bb174547 + HRESULT IDXGIOutput::FindClosestMatchingMode([In] const DXGI_MODE_DESC* pModeToMatch,[Out] DXGI_MODE_DESC* pClosestMatch,[In, Optional] IUnknown* pConcernedDevice) + IDXGIOutput::FindClosestMatchingMode +
+ + +

Halt a thread until the next vertical blank occurs.

+
+

Returns one of the following DXGI_ERROR.

+ +

A vertical blank occurs when the raster moves from the lower right corner to the upper left corner to begin drawing the next frame.

Windows?Phone?8: This API is supported.

+
+ + bb174559 + HRESULT IDXGIOutput::WaitForVBlank() + IDXGIOutput::WaitForVBlank +
+ + +

Takes ownership of an output.

+
+

A reference to the interface of a device (such as an ).

+

Set to TRUE to enable other threads or applications to take ownership of the device; otherwise, set to .

+

Returns one of the DXGI_ERROR values.

+ +

When you are finished with the output, call .

TakeOwnership should not be called directly by applications, since results will be unpredictable. It is called implicitly by the DXGI swap chain object during full-screen transitions, and should not be used as a substitute for swap-chain methods.

+
+ + bb174558 + HRESULT IDXGIOutput::TakeOwnership([In] IUnknown* pDevice,[In] BOOL Exclusive) + IDXGIOutput::TakeOwnership +
+ + +

Releases ownership of the output.

+
+ +

If you are not using a swap chain, get access to an output by calling and release it when you are finished by calling . An application that uses a swap chain will typically not call either of these methods.

+
+ + bb174554 + void IDXGIOutput::ReleaseOwnership() + IDXGIOutput::ReleaseOwnership +
+ + +

Gets a description of the gamma-control capabilities.

+
+

A reference to a description of the gamma-control capabilities (see ).

+

Returns one of the DXGI_ERROR values.

+ +

Note??Calling this method is only supported while in full-screen mode.

For info about using gamma correction, see Using gamma correction.

+
+ + bb174553 + HRESULT IDXGIOutput::GetGammaControlCapabilities([Out] DXGI_GAMMA_CONTROL_CAPABILITIES* pGammaCaps) + IDXGIOutput::GetGammaControlCapabilities +
+ + +

Sets the gamma controls.

+
+

A reference to a structure that describes the gamma curve to set.

+

Returns one of the DXGI_ERROR values.

+ +

Note??Calling this method is only supported while in full-screen mode.

For info about using gamma correction, see Using gamma correction.

+
+ + bb174557 + HRESULT IDXGIOutput::SetGammaControl([In] const DXGI_GAMMA_CONTROL* pArray) + IDXGIOutput::SetGammaControl +
+ + +

Gets the gamma control settings.

+
+

An array of gamma control settings (see ).

+

Returns one of the DXGI_ERROR values.

+ +

Note??Calling this method is only supported while in full-screen mode.

For info about using gamma correction, see Using gamma correction.

+
+ + bb174552 + HRESULT IDXGIOutput::GetGammaControl([Out] DXGI_GAMMA_CONTROL* pArray) + IDXGIOutput::GetGammaControl +
+ + +

Changes the display mode.

+
+

A reference to a surface (see ) used for rendering an image to the screen. The surface must have been created as a back buffer (DXGI_USAGE_BACKBUFFER).

+

Returns one of the DXGI_ERROR values.

+ +

should not be called directly by applications, since results will be unpredictable. It is called implicitly by the DXGI swap chain object during full-screen transitions, and should not be used as a substitute for swap-chain methods.

This method should only be called between and calls.

+
+ + bb174556 + HRESULT IDXGIOutput::SetDisplaySurface([In] IDXGISurface* pScanoutSurface) + IDXGIOutput::SetDisplaySurface +
+ + +

[Starting with Direct3D 11.1, we recommend not to use GetDisplaySurfaceData anymore to retrieve the current display surface. Instead, use IDXGIOutput1::GetDisplaySurfaceData1, which supports stereo display mode.]

Gets a copy of the current display surface.

+
+ No documentation. +

Returns one of the DXGI_ERROR values.

+ +

can only be called when an output is in full-screen mode. If the method succeeds, DXGI fills the destination surface.

Use to determine the size (width and height) of the output when you want to allocate space for the destination surface. This is true regardless of target monitor rotation. A destination surface created by a graphics component (such as Direct3D 10) must be created with CPU-write permission (see ). Other surfaces should be created with CPU read-write permission (see D3D10_CPU_ACCESS_READ_WRITE). This method will modify the surface data to fit the destination surface (stretch, shrink, convert format, rotate). The stretch and shrink is performed with point-sampling.

+
+ + bb174550 + HRESULT IDXGIOutput::GetDisplaySurfaceData([In] IDXGISurface* pDestination) + IDXGIOutput::GetDisplaySurfaceData +
+ + +

Gets statistics about recently rendered frames.

+
+

A reference to frame statistics (see ).

+

If this function succeeds, it returns . Otherwise, it might return .

+ +

This API is similar to .

Note??Calling this method is only supported while in full-screen mode.

+
+ + bb174551 + HRESULT IDXGIOutput::GetFrameStatistics([Out] DXGI_FRAME_STATISTICS* pStats) + IDXGIOutput::GetFrameStatistics +
+ + + Find the display mode that most closely matches the requested display mode. + + + Direct3D devices require UNORM formats. This method finds the closest matching available display mode to the mode specified in pModeToMatch. Similarly ranked fields (i.e. all specified, or all unspecified, etc) are resolved in the following order. ScanlineOrdering Scaling Format Resolution RefreshRate When determining the closest value for a particular field, previously matched fields are used to filter the display mode list choices, and other fields are ignored. For example, when matching Resolution, the display mode list will have already been filtered by a certain ScanlineOrdering, Scaling, and Format, while RefreshRate is ignored. This ordering doesn't define the absolute ordering for every usage scenario of FindClosestMatchingMode, because the application can choose some values initially, effectively changing the order that fields are chosen. Fields of the display mode are matched one at a time, generally in a specified order. If a field is unspecified, FindClosestMatchingMode gravitates toward the values for the desktop related to this output. If this output is not part of the desktop, then the default desktop output is used to find values. If an application uses a fully unspecified display mode, FindClosestMatchingMode will typically return a display mode that matches the desktop settings for this output. Unspecified fields are lower priority than specified fields and will be resolved later than specified fields. + + A reference to the Direct3D device interface. If this parameter is NULL, only modes whose format matches that of pModeToMatch will be returned; otherwise, only those formats that are supported for scan-out by the device are returned. + The desired display mode (see ). Members of DXGI_MODE_DESC can be unspecified indicating no preference for that member. A value of 0 for Width or Height indicates the value is unspecified. If either Width or Height are 0 both must be 0. A numerator and denominator of 0 in RefreshRate indicate it is unspecified. Other members of DXGI_MODE_DESC have enumeration values indicating the member is unspecified. If pConnectedDevice is NULL Format cannot be DXGI_FORMAT_UNKNOWN. + The mode that most closely matches pModeToMatch. + Returns one of the following . + HRESULT IDXGIOutput::FindClosestMatchingMode([In] const DXGI_MODE_DESC* pModeToMatch,[Out] DXGI_MODE_DESC* pClosestMatch,[In, Optional] IUnknown* pConcernedDevice) + + + + Gets the display modes that match the requested format and other input options. + + + In general, when switching from windowed to full-screen mode, a swap chain automatically chooses a display mode that meets (or exceeds) the resolution, color depth and refresh rate of the swap chain. To exercise more control over the display mode, use this API to poll the set of display modes that are validated against monitor capabilities, or all modes that match the desktop (if the desktop settings are not validated against the monitor). As shown, this API is designed to be called twice. First to get the number of modes available, and second to return a description of the modes. + UINT num = 0; + DXGI_FORMAT format = DXGI_FORMAT_R32G32B32A32_FLOAT; + UINT flags = DXGI_ENUM_MODES_INTERLACED; pOutput->GetDisplayModeList( format, flags, &num, 0); ... DXGI_MODE_DESC * pDescs = new DXGI_MODE_DESC[num]; + pOutput->GetDisplayModeList( format, flags, &num, pDescs); + + + + The color format (see ). + format for modes to include (see {{DXGI_ENUM_MODES}}). DXGI_ENUM_MODES_SCALING needs to be specified to expose the display modes that require scaling. Centered modes, requiring no scaling and corresponding directly to the display output, are enumerated by default. + Returns a list of display modes (see ); + HRESULT IDXGIOutput::GetDisplayModeList([None] DXGI_FORMAT EnumFormat,[None] int Flags,[InOut] int* pNumModes,[Out, Buffer, Optional] DXGI_MODE_DESC* pDesc) + + + +

Get a description of the output.

+
+ +

On a high DPI desktop, GetDesc returns the visualized screen size unless the app is marked high DPI aware. For info about writing DPI-aware Win32 apps, see High DPI.

Windows?Phone?8: This API is supported.

+
+ + bb174548 + GetDesc + GetDesc + HRESULT IDXGIOutput::GetDesc([Out] DXGI_OUTPUT_DESC* pDesc) +
+ + +

Gets a description of the gamma-control capabilities.

+
+ +

Note??Calling this method is only supported while in full-screen mode.

For info about using gamma correction, see Using gamma correction.

+
+ + bb174553 + GetGammaControlCapabilities + GetGammaControlCapabilities + HRESULT IDXGIOutput::GetGammaControlCapabilities([Out] DXGI_GAMMA_CONTROL_CAPABILITIES* pGammaCaps) +
+ + +

Gets or sets the gamma control settings.

+
+ +

Note??Calling this method is only supported while in full-screen mode.

For info about using gamma correction, see Using gamma correction.

+
+ + bb174552 + GetGammaControl / SetGammaControl + GetGammaControl + HRESULT IDXGIOutput::GetGammaControl([Out] DXGI_GAMMA_CONTROL* pArray) +
+ + +

Gets statistics about recently rendered frames.

+
+ +

This API is similar to .

Note??Calling this method is only supported while in full-screen mode.

+
+ + bb174551 + GetFrameStatistics + GetFrameStatistics + HRESULT IDXGIOutput::GetFrameStatistics([Out] DXGI_FRAME_STATISTICS* pStats) +
+ + +

An interface allows resource sharing and identifies the memory that a resource resides in.

+
+ +

To find out what type of memory a resource is currently located in, use . To share resources between processes, use . For information about how to share resources between multiple Windows graphics APIs, including Direct3D 11, Direct2D, Direct3D 10, and Direct3D 9Ex, see Surface Sharing Between Windows Graphics APIs.

You can retrieve the interface from any video memory resource that you create from a Direct3D 10 and later function. Any Direct3D object that supports or also supports . For example, the Direct3D 2D texture object that you create from supports . You can call QueryInterface on the 2D texture object () to retrieve the interface. For example, to retrieve the interface from the 2D texture object, use the following code.

 * pDXGIResource;	
+            hr = g_pd3dTexture2D->QueryInterface(__uuidof(), (void **)&pDXGIResource);	
+            

Windows?Phone?8: This API is supported.

+
+ + bb174560 + IDXGIResource + IDXGIResource +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

[Starting with Direct3D 11.1, we recommend not to use GetSharedHandle anymore to retrieve the handle to a shared resource. Instead, use IDXGIResource1::CreateSharedHandle to get a handle for sharing. To use IDXGIResource1::CreateSharedHandle, you must create the resource as shared and specify that it uses NT handles (that is, you set the D3D11_RESOURCE_MISC_SHARED_NTHANDLE flag). We also recommend that you create shared resources that use NT handles so you can use CloseHandle, DuplicateHandle, and so on on those shared resources.]

Gets the handle to a shared resource.

+
+ No documentation. +

Returns one of the DXGI_ERROR values.

+ +

GetSharedHandle returns a handle for the resource that you created as shared (that is, you set the with or without the flag). You can pass this handle to the method to give another device access to the shared resource. You can also marshal this handle to another process to share a resource with a device in another process. However, this handle is not an NT handle. Therefore, don't use the handle with CloseHandle, DuplicateHandle, and so on.

The creator of a shared resource must not destroy the resource until all intended entities have opened the resource. The validity of the handle is tied to the lifetime of the underlying video memory. If no resource objects exist on any devices that refer to this resource, the handle is no longer valid. To extend the lifetime of the handle and video memory, you must open the shared resource on a device.

GetSharedHandle can also return handles for resources that were passed into to open those resources.

GetSharedHandle fails if the resource to which it wants to get a handle is not shared.

Windows?Phone?8: This API is supported.

+
+ + bb174562 + HRESULT IDXGIResource::GetSharedHandle([Out] void** pSharedHandle) + IDXGIResource::GetSharedHandle +
+ + +

Get the expected resource usage.

+
+

A reference to a usage flag (see DXGI_USAGE). For Direct3D 10, a surface can be used as a shader input or a render-target output.

+

Returns one of the following DXGI_ERROR.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174563 + HRESULT IDXGIResource::GetUsage([Out] unsigned int* pUsage) + IDXGIResource::GetUsage +
+ + +

Set the priority for evicting the resource from memory.

+
+

The priority is one of the following values:

ValueMeaning
(0x28000000)

The resource is unused and can be evicted as soon as another resource requires the memory that the resource occupies.

(0x50000000)

The eviction priority of the resource is low. The placement of the resource is not critical, and minimal work is performed to find a location for the resource. For example, if a GPU can render with a vertex buffer from either local or non-local memory with little difference in performance, that vertex buffer is low priority. Other more critical resources (for example, a render target or texture) can then occupy the faster memory.

(0x78000000)

The eviction priority of the resource is normal. The placement of the resource is important, but not critical, for performance. The resource is placed in its preferred location instead of a low-priority resource.

(0xa0000000)

The eviction priority of the resource is high. The resource is placed in its preferred location instead of a low-priority or normal-priority resource.

(0xc8000000)

The resource is evicted from memory only if there is no other way of resolving the memory requirement.

?

+

Returns one of the following DXGI_ERROR.

+ +

The eviction priority is a memory-management variable that is used by DXGI for determining how to populate overcommitted memory.

You can set priority levels other than the defined values when appropriate. For example, you can set a resource with a priority level of 0x78000001 to indicate that the resource is slightly above normal.

Windows?Phone?8: This API is supported.

+
+ + bb174564 + HRESULT IDXGIResource::SetEvictionPriority([In] unsigned int EvictionPriority) + IDXGIResource::SetEvictionPriority +
+ + +

Get the eviction priority.

+
+

A reference to the eviction priority, which determines when a resource can be evicted from memory.

The following defined values are possible.

ValueMeaning
(0x28000000)

The resource is unused and can be evicted as soon as another resource requires the memory that the resource occupies.

(0x50000000)

The eviction priority of the resource is low. The placement of the resource is not critical, and minimal work is performed to find a location for the resource. For example, if a GPU can render with a vertex buffer from either local or non-local memory with little difference in performance, that vertex buffer is low priority. Other more critical resources (for example, a render target or texture) can then occupy the faster memory.

(0x78000000)

The eviction priority of the resource is normal. The placement of the resource is important, but not critical, for performance. The resource is placed in its preferred location instead of a low-priority resource.

(0xa0000000)

The eviction priority of the resource is high. The resource is placed in its preferred location instead of a low-priority or normal-priority resource.

(0xc8000000)

The resource is evicted from memory only if there is no other way of resolving the memory requirement.

?

+

Returns one of the following DXGI_ERROR.

+ +

The eviction priority is a memory-management variable that is used by DXGI to determine how to manage overcommitted memory.

Priority levels other than the defined values are used when appropriate. For example, a resource with a priority level of 0x78000001 indicates that the resource is slightly above normal.

Windows?Phone?8: This API is supported.

+
+ + bb174561 + HRESULT IDXGIResource::GetEvictionPriority([Out] unsigned int* pEvictionPriority) + IDXGIResource::GetEvictionPriority +
+ + +

[Starting with Direct3D 11.1, we recommend not to use GetSharedHandle anymore to retrieve the handle to a shared resource. Instead, use IDXGIResource1::CreateSharedHandle to get a handle for sharing. To use IDXGIResource1::CreateSharedHandle, you must create the resource as shared and specify that it uses NT handles (that is, you set the D3D11_RESOURCE_MISC_SHARED_NTHANDLE flag). We also recommend that you create shared resources that use NT handles so you can use CloseHandle, DuplicateHandle, and so on on those shared resources.]

Gets the handle to a shared resource.

+
+ +

GetSharedHandle returns a handle for the resource that you created as shared (that is, you set the with or without the flag). You can pass this handle to the method to give another device access to the shared resource. You can also marshal this handle to another process to share a resource with a device in another process. However, this handle is not an NT handle. Therefore, don't use the handle with CloseHandle, DuplicateHandle, and so on.

The creator of a shared resource must not destroy the resource until all intended entities have opened the resource. The validity of the handle is tied to the lifetime of the underlying video memory. If no resource objects exist on any devices that refer to this resource, the handle is no longer valid. To extend the lifetime of the handle and video memory, you must open the shared resource on a device.

GetSharedHandle can also return handles for resources that were passed into to open those resources.

GetSharedHandle fails if the resource to which it wants to get a handle is not shared.

Windows?Phone?8: This API is supported.

+
+ + bb174562 + GetSharedHandle + GetSharedHandle + HRESULT IDXGIResource::GetSharedHandle([Out] void** pSharedHandle) +
+ + +

Get the expected resource usage.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + bb174563 + GetUsage + GetUsage + HRESULT IDXGIResource::GetUsage([Out] unsigned int* pUsage) +
+ + +

Get or sets the eviction priority.

+
+ +

The eviction priority is a memory-management variable that is used by DXGI to determine how to manage overcommitted memory.

Priority levels other than the defined values are used when appropriate. For example, a resource with a priority level of 0x78000001 indicates that the resource is slightly above normal.

Windows?Phone?8: This API is supported.

+
+ + bb174561 + GetEvictionPriority / SetEvictionPriority + GetEvictionPriority + HRESULT IDXGIResource::GetEvictionPriority([Out] unsigned int* pEvictionPriority) +
+ + +

The interface implements methods for image-data objects.

+
+ +

An image-data object is a 2D section of memory, commonly called a surface. To get the surface from an output, call .

The runtime automatically creates an interface when it creates a Direct3D resource object that represents a surface. For example, the runtime creates an interface when you call or to create a 2D texture. To retrieve the interface that represents the 2D texture surface, call ID3D11Texture2D::QueryInterface or ID3D10Texture2D::QueryInterface. In this call, you must pass the identifier of . If the 2D texture has only a single MIP-map level and does not consist of an array of textures, QueryInterface succeeds and returns a reference to the interface reference. Otherwise, QueryInterface fails and does not return the reference to .

Windows?Phone?8: This API is supported.

+
+ + bb174565 + IDXGISurface + IDXGISurface +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a description of the surface.

+
+

A reference to the surface description (see ).

+

Returns if successful; otherwise, returns one of the error codes that are described in the DXGI_ERROR topic.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174566 + HRESULT IDXGISurface::GetDesc([Out] DXGI_SURFACE_DESC* pDesc) + IDXGISurface::GetDesc +
+ + +

Get a reference to the data contained in the surface, and deny GPU access to the surface.

+
+

A reference to the surface data (see ).

+

CPU read-write flags. These flags can be combined with a logical OR.

  • - Allow CPU read access.
  • - Allow CPU write access.
  • - Discard the previous contents of a resource when it is mapped.
+

Returns if successful; otherwise, returns one of the error codes that are described in the DXGI_ERROR topic.

+ +

Use to access a surface from the CPU. To release a mapped surface (and allow GPU access) call .

Windows?Phone?8: This API is supported.

+
+ + bb174567 + HRESULT IDXGISurface::Map([Out] DXGI_MAPPED_RECT* pLockedRect,[In] unsigned int MapFlags) + IDXGISurface::Map +
+ + +

Invalidate the reference to the surface retrieved by and re-enable GPU access to the resource.

+
+

Returns if successful; otherwise, returns one of the error codes that are described in the DXGI_ERROR topic.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174568 + HRESULT IDXGISurface::Unmap() + IDXGISurface::Unmap +
+ + + Acquires access to the surface data. + + Flags specifying CPU access permissions. + A for accessing the mapped data, or null on failure.. + + + + Acquires access to the surface data. + + Flags specifying CPU access permissions. + Stream to contain the surface data. + A for accessing the mapped data, or null on failure.. + + + + Gets a swap chain back buffer. + + The swap chain to get the buffer from. + The index of the desired buffer. + The buffer interface, or null on failure. + + + +

Get a description of the surface.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + bb174566 + GetDesc + GetDesc + HRESULT IDXGISurface::GetDesc([Out] DXGI_SURFACE_DESC* pDesc) +
+ + +

The interface extends the by adding support for using Windows Graphics Device Interface (GDI) to render to a Microsoft DirectX Graphics Infrastructure (DXGI) surface.

+
+ +

This interface is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

An image-data object is a 2D section of memory, commonly called a surface. To get the surface from an output, call . Then, call QueryInterface on the object that returns to retrieve the interface.

Any object that supports also supports .

The runtime automatically creates an interface when it creates a Direct3D resource object that represents a surface. For example, the runtime creates an interface when you call or to create a 2D texture. To retrieve the interface that represents the 2D texture surface, call ID3D11Texture2D::QueryInterface or ID3D10Texture2D::QueryInterface. In this call, you must pass the identifier of . If the 2D texture has only a single MIP-map level and does not consist of an array of textures, QueryInterface succeeds and returns a reference to the interface reference. Otherwise, QueryInterface fails and does not return the reference to .

+
+ + ff471343 + IDXGISurface1 + IDXGISurface1 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns a device context (DC) that allows you to render to a Microsoft DirectX Graphics Infrastructure (DXGI) surface using Windows Graphics Device Interface (GDI).

+
+

A Boolean value that specifies whether to preserve Direct3D contents in the GDI DC. TRUE directs the runtime not to preserve Direct3D contents in the GDI DC; that is, the runtime discards the Direct3D contents. guarantees that Direct3D contents are available in the GDI DC.

+

A reference to an handle that represents the current device context for GDI rendering.

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

After you use the GetDC method to retrieve a DC, you can render to the DXGI surface by using GDI. The GetDC method readies the surface for GDI rendering and allows inter-operation between DXGI and GDI technologies.

Keep the following in mind when using this method:

  • You must create the surface by using the flag for a surface or by using the flag for swap chains, otherwise this method fails.
  • You must release the device and call the method before you issue any new Direct3D commands.
  • This method fails if an outstanding DC has already been created by this method.
  • The format for the surface or swap chain must be or .
  • On GetDC, the render target in the output merger of the Direct3D pipeline is unbound from the surface. You must call the method on the device prior to Direct3D rendering after GDI rendering.
  • Prior to resizing buffers you must release all outstanding DCs.

You can also call GetDC on the back buffer at index 0 of a swap chain by obtaining an from the swap chain. The following code illustrates the process.

 * g_pSwapChain = null;	
+            * g_pSurface1 = null;	
+            ...	
+            //Setup the device and and swapchain	
+            g_pSwapChain->GetBuffer(0, __uuidof(), (void**) &g_pSurface1);	
+            g_pSurface1->GetDC( , &g_hDC );	
+            ...      	
+            //Draw on the DC using GDI	
+            ...	
+            //When finish drawing release the DC	
+            g_pSurface1->ReleaseDC( null ); 
+
+ + ff471345 + HRESULT IDXGISurface1::GetDC([In] BOOL Discard,[Out] HDC* phdc) + IDXGISurface1::GetDC +
+ + +

Releases the GDI device context (DC) that is associated with the current surface and allows you to use Direct3D to render.

+
+

A reference to a structure that identifies the dirty region of the surface. A dirty region is any part of the surface that you used for GDI rendering and that you want to preserve. This area is used as a performance hint to graphics subsystem in certain scenarios. Do not use this parameter to restrict rendering to the specified rectangular region. If you pass in null, ReleaseDC considers the whole surface as dirty. Otherwise, ReleaseDC uses the area specified by the as a performance hint to indicate what areas have been manipulated by GDI rendering.

You can pass a reference to an empty structure (a rectangle with no position or area) if you didn't change any content.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).

Use the ReleaseDC method to release the DC and indicate that your application finished all GDI rendering to this surface. You must call the ReleaseDC method before you can use Direct3D to perform additional rendering.

Prior to resizing buffers you must release all outstanding DCs.

+
+ + ff471346 + HRESULT IDXGISurface1::ReleaseDC([In, Optional] RECT* pDirtyRect) + IDXGISurface1::ReleaseDC +
+ + + Releases the GDI device context (DC) associated with the current surface and allows rendering using Direct3D. The whole surface to be considered dirty. + + + Use the ReleaseDC method to release the DC and indicate that your application has finished all GDI rendering to this surface. You must call the ReleaseDC method before you perform addition rendering using Direct3D. Prior to resizing buffers all outstanding DCs must be released. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDXGISurface1::ReleaseDC([In, Optional] RECT* pDirtyRect) + + + + Releases the GDI device context (DC) associated with the current surface and allows rendering using Direct3D. + + + Use the ReleaseDC method to release the DC and indicate that your application has finished all GDI rendering to this surface. You must call the ReleaseDC method before you perform addition rendering using Direct3D. Prior to resizing buffers all outstanding DCs must be released. + + A reference to a structure that identifies the dirty region of the surface. A dirty region is any part of the surface that you have used for GDI rendering and that you want to preserve. This is used as a performance hint to graphics subsystem in certain scenarios. Do not use this parameter to restrict rendering to the specified rectangular region. The area specified by the will be used as a performance hint to indicate what areas have been manipulated by GDI rendering. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDXGISurface1::ReleaseDC([In, Optional] RECT* pDirtyRect) + + + +

An interface implements one or more surfaces for storing rendered data before presenting it to an output.

+
+ +

You can create a swap chain by + calling IDXGIFactory2::CreateSwapChainForHwnd, IDXGIFactory2::CreateSwapChainForCoreWindow, or IDXGIFactory2::CreateSwapChainForComposition. You can also create a swap chain when you call ; however, you can then only access the sub-set of swap-chain functionality that the interface provides.

Windows?Phone?8: This API is supported.

+
+ + bb174569 + IDXGISwapChain + IDXGISwapChain +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

[Starting with Direct3D 11.1, we recommend not to use Present anymore to present a rendered image. Instead, use IDXGISwapChain1::Present1. For more info, see Remarks.]

Presents a rendered image to the user.

+
+ No documentation. + No documentation. +

Possible return values include: , or (see DXGI_ERROR), (see ), or D3DDDIERR_DEVICEREMOVED.

Note??The Present method can return either or D3DDDIERR_DEVICEREMOVED if a video card has been physically removed from the computer, or a driver upgrade for the video card has occurred.

+ +

Starting with Direct3D 11.1, we recommend to instead use IDXGISwapChain1::Present1 because you can then use dirty rectangles and the scroll rectangle in the swap chain presentation and as such use less memory bandwidth and as a result less system power. For more info about using dirty rectangles and the scroll rectangle in swap chain presentation, see Using dirty rectangles and the scroll rectangle in swap chain presentation.

For the best performance when flipping swap-chain buffers in a full-screen application, see Full-Screen Application Performance Hints.

Because calling Present might cause the render thread to wait on the message-pump thread, be careful when calling this method in an application that uses multiple threads. For more details, see Multithreading Considerations.

Differences between Direct3D 9 and Direct3D 10:

Specifying in the Flags parameter is analogous to in Direct3D 9.

?

For flip presentation model swap chains that you create with the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value set, a successful presentation unbinds back buffer 0 from the graphics pipeline, except for when you pass the flag in the Flags parameter.

For info about how data values change when you present content to the screen, see Converting data for the color space.

+
+ + bb174576 + HRESULT IDXGISwapChain::Present([In] unsigned int SyncInterval,[In] DXGI_PRESENT_FLAGS Flags) + IDXGISwapChain::Present +
+ + +

Accesses one of the swap-chain's back buffers.

+
+

A zero-based buffer index.

If the swap chain's swap effect is , this method can only access the first buffer; for this situation, set the index to zero.

If the swap chain's swap effect is either or DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, only the swap chain's zero-index buffer can be read from and written to. The swap chain's buffers with indexes greater than zero can only be read from; so if you call the method for such buffers, they have the flag set.

+

The type of interface used to manipulate the buffer.

+

A reference to a back-buffer interface.

+

Returns one of the following DXGI_ERROR.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174570 + HRESULT IDXGISwapChain::GetBuffer([In] unsigned int Buffer,[In] const GUID& riid,[Out] void** ppSurface) + IDXGISwapChain::GetBuffer +
+ + +

Sets the display state to windowed or full screen.

+
+

A Boolean value that specifies whether to set the display state to windowed or full screen. TRUE for full screen, and for windowed.

+

If you pass TRUE to the Fullscreen parameter to set the display state to full screen, you can optionally set this parameter to a reference to an interface for the output target that contains the swap chain. If you set this parameter to null, DXGI will choose the output based on the swap-chain's device and the output window's placement. If you pass to Fullscreen, you must set this parameter to null.

+

This methods returns:

  • if the action succeeded and the swap chain was placed in the requested state.
  • if the action failed. There are many reasons why a windowed-mode swap chain cannot switch to full-screen mode. For instance:
    • The application is running over Terminal Server.
    • The output window is occluded.
    • The output window does not have keyboard focus.
    • Another application is already in full-screen mode.

    When this error is returned, an application can continue to run in windowed mode and try to switch to full-screen mode later.

  • is returned if a fullscreen/windowed mode transition is occurring when this API is called.
  • Other error codes if you run out of memory or encounter another unexpected fault; these codes may be treated as hard, non-continuable errors.
+ +

DXGI may change the display state of a swap chain in response to end user or system requests.

We recommend that you create a windowed swap chain and allow the end user to change the swap chain to full screen through SetFullscreenState; that is, do not set the Windowed member of to to force the swap chain to be full screen. However, if you create the swap chain as full screen, also provide the end user with a list of supported display modes because a swap chain that is created with an unsupported display mode might cause the display to go black and prevent the end user from seeing anything. Also, we recommend that you have a time-out confirmation screen or other fallback mechanism when you allow the end user to change display modes.

+
+ + bb174579 + HRESULT IDXGISwapChain::SetFullscreenState([In] BOOL Fullscreen,[In, Optional] IDXGIOutput* pTarget) + IDXGISwapChain::SetFullscreenState +
+ + +

Get the state associated with full-screen mode.

+
+

A reference to a boolean whose value is either:

  • TRUE if the swap chain is in full-screen mode
  • if the swap chain is in windowed mode
+

A reference to the output target (see ) when the mode is full screen; otherwise null.

+

Returns one of the following DXGI_ERROR.

+ +

When the swap chain is in full-screen mode, a reference to the target output will be returned and its reference count will be incremented.

Windows?Phone?8: This API is supported.

+
+ + bb174574 + HRESULT IDXGISwapChain::GetFullscreenState([Out] BOOL* pFullscreen,[Out] IDXGIOutput** ppTarget) + IDXGISwapChain::GetFullscreenState +
+ + +

[Starting with Direct3D 11.1, we recommend not to use GetDesc anymore to get a description of the swap chain. Instead, use IDXGISwapChain1::GetDesc1.]

Get a description of the swap chain.

+
+ No documentation. +

Returns one of the following DXGI_ERROR.

+ +

Windows?Phone?8: This API is supported.

+
+ + bb174572 + HRESULT IDXGISwapChain::GetDesc([Out] DXGI_SWAP_CHAIN_DESC* pDesc) + IDXGISwapChain::GetDesc +
+ + +

Changes the swap chain's back buffer size, format, and number of buffers. This should be called when the application window is resized.

+
+

The number of buffers in the swap chain (including all back and front buffers). This number can be different from the number of buffers with which you created the swap chain. This number can't be greater than DXGI_MAX_SWAP_CHAIN_BUFFERS. Set this number to zero to preserve the existing number of buffers in the swap chain. You can't specify less than two buffers for the flip presentation model.

+

New width of the back buffer. If you specify zero, DXGI will use the width of the client area of the target window. You can't specify the width as zero if you called the IDXGIFactory2::CreateSwapChainForComposition method to create the swap chain for a composition surface.

+

New height of the back buffer. If you specify zero, DXGI will use the height of the client area of the target window. You can't specify the height as zero if you called the IDXGIFactory2::CreateSwapChainForComposition method to create the swap chain for a composition surface.

+

A -typed value for the new format of the back buffer. Set this value to to preserve the existing format of the back buffer. The flip presentation model supports a more restricted set of formats than the bit-block transfer (bitblt) model.

+

A combination of -typed values that are combined by using a bitwise OR operation. The resulting value specifies options for swap-chain behavior.

+

Returns if successful; an error code otherwise. For a list of error codes, see DXGI_ERROR.

+ +

You can't resize a swap chain unless you release all outstanding references to its back buffers. You must release all of its direct and indirect references on the back buffers in order for ResizeBuffers to succeed.

Direct references are held by the application after it calls AddRef on a resource.

Indirect references are held by views to a resource, binding a view of the resource to a device context, a command list that used the resource, a command list that used a view to that resource, a command list that executed another command list that used the resource, and so on.

Before you call ResizeBuffers, ensure that the application releases all references (by calling the appropriate number of Release invocations) on the resources, any views to the resource, and any command lists that use either the resources or views, and ensure that neither the resource nor a view is still bound to a device context. You can use to ensure that all references are released. If a view is bound to a deferred context, you must discard the partially built command list as well (by calling ClearState, , then Release on the command list). After you call ResizeBuffers, you can re-query interfaces via .

For swap chains that you created with , before you call ResizeBuffers, also call on the swap chain's back-buffer surface to ensure that you have no outstanding GDI device contexts (DCs) open.

We recommend that you call ResizeBuffers when a client window is resized (that is, when an application receives a WM_SIZE message).

The only difference between ResizeBuffers in Windows?8 and ResizeBuffers in Windows?7 is with flip presentation model swap chains that you create with the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value set. In Windows?8, you must call ResizeBuffers to realize a transition between full-screen mode and windowed mode; otherwise, your next call to the Present method fails.

+
+ + bb174577 + HRESULT IDXGISwapChain::ResizeBuffers([In] unsigned int BufferCount,[In] unsigned int Width,[In] unsigned int Height,[In] DXGI_FORMAT NewFormat,[In] DXGI_SWAP_CHAIN_FLAG SwapChainFlags) + IDXGISwapChain::ResizeBuffers +
+ + +

Resizes the output target.

+
+

A reference to a structure that describes the mode, which specifies the new width, height, format, and refresh rate of the target. If the format is , ResizeTarget uses the existing format. We only recommend that you use when the swap chain is in full-screen mode as this method is not thread safe.

+

Returns a code that indicates success or failure. is returned if a full-screen/windowed mode transition is occurring when this API is called. See DXGI_ERROR for additional DXGI error codes.

+ +

ResizeTarget resizes the target window when the swap chain is in windowed mode, and changes the display mode on the target output when the swap chain is in full-screen mode. Therefore, apps can call ResizeTarget to resize the target window (rather than a Microsoft Win32API such as SetWindowPos) without knowledge of the swap chain display mode.

If a Windows Store app calls ResizeTarget, it fails with .

You cannot call ResizeTarget on a windowless swap chain that you created with IDXGIFactory2::CreateSwapChainForComposition.

Apps must still call after they call ResizeTarget because only ResizeBuffers can change the back buffers. But, if those apps have implemented window resize processing to call ResizeBuffers, they don't need to explicitly call ResizeBuffers after they call ResizeTarget because the window resize processing will achieve what the app requires.

+
+ + bb174578 + HRESULT IDXGISwapChain::ResizeTarget([In] const DXGI_MODE_DESC* pNewTargetParameters) + IDXGISwapChain::ResizeTarget +
+ + +

Get the output (the display monitor) that contains the majority of the client area of the target window.

+
+

A reference to the output interface (see ).

+

Returns one of the following DXGI_ERROR.

+ +

If the method succeeds, the output interface will be filled and its reference count incremented. When you are finished with it, be sure to release the interface to avoid a memory leak.

The output is also owned by the adapter on which the swap chain's device was created.

You cannot call GetContainingOutput on a windowless swap chain that you created with IDXGIFactory2::CreateSwapChainForComposition.

Windows?Phone?8: This API is supported.

+
+ + bb174571 + HRESULT IDXGISwapChain::GetContainingOutput([Out] IDXGIOutput** ppOutput) + IDXGISwapChain::GetContainingOutput +
+ + +

Gets performance statistics about the last render frame.

+
+

A reference to a structure for the frame statistics.

+

Returns one of the DXGI_ERROR values.

+ +

You cannot use GetFrameStatistics for swap chains that both use the bit-block transfer (bitblt) presentation model and draw in windowed mode.

You can only use GetFrameStatistics for swap chains that either use the flip presentation model or draw in full-screen mode. You set the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value in the SwapEffect member of the DXGI_SWAP_CHAIN_DESC1 structure to specify that the swap chain uses the flip presentation model.

+
+ + bb174573 + HRESULT IDXGISwapChain::GetFrameStatistics([Out] DXGI_FRAME_STATISTICS* pStats) + IDXGISwapChain::GetFrameStatistics +
+ + +

Gets the number of times that or IDXGISwapChain1::Present1 has been called.

+
+ No documentation. +

Returns one of the DXGI_ERROR values.

+ +

For info about presentation statistics for a frame, see .

Windows?Phone?8: This API is supported.

+
+ + bb174575 + HRESULT IDXGISwapChain::GetLastPresentCount([Out] unsigned int* pLastPresentCount) + IDXGISwapChain::GetLastPresentCount +
+ + + Creates a swap chain. + + + If you attempt to create a swap chain in full-screen mode, and full-screen mode is unavailable, the swap chain will be created in windowed mode and DXGI_STATUS_OCCLUDED will be returned. If the buffer width or the buffer height are zero, the sizes will be inferred from the output window size in the swap-chain description. Since the target output cannot be chosen explicitly when the swap-chain is created, you should not create a full-screen swap chain. This can reduce presentation performance if the swap chain size and the output window size do not match. Here are two ways to ensure the sizes match: Create a windowed swap chain and then set it full-screen using . Save a reference to the swap-chain immediately after creation, and use it to get the output window size during a WM_SIZE event. Then resize the swap chain buffers (with ) during the transition from windowed to full-screen. If the swap chain is in full-screen mode, before you release it, you must use {{SetFullscreenState}} to switch it to windowed mode. For more information about releasing a swap chain, see the Destroying a Swap Chain section of {{DXGI Overview}}. + + a reference to a . + A reference to the device that will write 2D images to the swap chain. + A reference to the swap-chain description (see ). + HRESULT IDXGIFactory::CreateSwapChain([In] IUnknown* pDevice,[In] DXGI_SWAP_CHAIN_DESC* pDesc,[Out] IDXGISwapChain** ppSwapChain) + bb174537 + HRESULT IDXGIFactory::CreateSwapChain([In] IUnknown* pDevice,[In] DXGI_SWAP_CHAIN_DESC* pDesc,[Out, Fast] IDXGISwapChain** ppSwapChain) + IDXGIFactory::CreateSwapChain + + + + Access one of the swap-chain back buffers. + + The interface of the surface to resolve from the back buffer + A zero-based buffer index. If the swap effect is not DXGI_SWAP_EFFECT_SEQUENTIAL, this method only has access to the first buffer; for this case, set the index to zero. + + Returns a reference to a back-buffer interface. + + bb174570 + HRESULT IDXGISwapChain::GetBuffer([In] unsigned int Buffer,[In] const GUID& riid,[Out] void** ppSurface) + IDXGISwapChain::GetBuffer + + + +

[Starting with Direct3D 11.1, we recommend not to use GetDesc anymore to get a description of the swap chain. Instead, use IDXGISwapChain1::GetDesc1.]

Get a description of the swap chain.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + bb174572 + GetDesc + GetDesc + HRESULT IDXGISwapChain::GetDesc([Out] DXGI_SWAP_CHAIN_DESC* pDesc) +
+ + +

Get the output (the display monitor) that contains the majority of the client area of the target window.

+
+ +

If the method succeeds, the output interface will be filled and its reference count incremented. When you are finished with it, be sure to release the interface to avoid a memory leak.

The output is also owned by the adapter on which the swap chain's device was created.

You cannot call GetContainingOutput on a windowless swap chain that you created with IDXGIFactory2::CreateSwapChainForComposition.

Windows?Phone?8: This API is supported.

+
+ + bb174571 + GetContainingOutput + GetContainingOutput + HRESULT IDXGISwapChain::GetContainingOutput([Out] IDXGIOutput** ppOutput) +
+ + +

Gets performance statistics about the last render frame.

+
+ +

You cannot use GetFrameStatistics for swap chains that both use the bit-block transfer (bitblt) presentation model and draw in windowed mode.

You can only use GetFrameStatistics for swap chains that either use the flip presentation model or draw in full-screen mode. You set the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value in the SwapEffect member of the DXGI_SWAP_CHAIN_DESC1 structure to specify that the swap chain uses the flip presentation model.

+
+ + bb174573 + GetFrameStatistics + GetFrameStatistics + HRESULT IDXGISwapChain::GetFrameStatistics([Out] DXGI_FRAME_STATISTICS* pStats) +
+ + +

Gets the number of times that or IDXGISwapChain1::Present1 has been called.

+
+ +

For info about presentation statistics for a frame, see .

Windows?Phone?8: This API is supported.

+
+ + bb174575 + GetLastPresentCount + GetLastPresentCount + HRESULT IDXGISwapChain::GetLastPresentCount([Out] unsigned int* pLastPresentCount) +
+ + + Gets or sets a value indicating whether the swapchain is in fullscreen. + + + true if this swapchain is in fullscreen; otherwise, false. + + bb174574 + HRESULT IDXGISwapChain::GetFullscreenState([Out] BOOL* pFullscreen,[Out] IDXGIOutput** ppTarget) + IDXGISwapChain::GetFullscreenState + + + +

Describes an adapter (or video card) by using DXGI 1.0.

+
+ +

The structure provides a description of an adapter. This structure is initialized by using the method.

+
+ + bb173058 + DXGI_ADAPTER_DESC + DXGI_ADAPTER_DESC +
+ + +

A string that contains the adapter description. On feature level 9 graphics hardware, GetDesc returns ?Software Adapter? for the description string.

+
+ + bb173058 + wchar_t Description[128] + wchar_t Description +
+ + +

The PCI ID of the hardware vendor. On feature level 9 graphics hardware, GetDesc returns zeros for the PCI ID of the hardware vendor.

+
+ + bb173058 + unsigned int VendorId + unsigned int VendorId +
+ + +

The PCI ID of the hardware device. On feature level 9 graphics hardware, GetDesc returns zeros for the PCI ID of the hardware device.

+
+ + bb173058 + unsigned int DeviceId + unsigned int DeviceId +
+ + +

The PCI ID of the sub system. On feature level 9 graphics hardware, GetDesc returns zeros for the PCI ID of the sub system.

+
+ + bb173058 + unsigned int SubSysId + unsigned int SubSysId +
+ + +

The PCI ID of the revision number of the adapter. On feature level 9 graphics hardware, GetDesc returns zeros for the PCI ID of the revision number of the adapter.

+
+ + bb173058 + unsigned int Revision + unsigned int Revision +
+ + +

The number of bytes of dedicated video memory that are not shared with the CPU.

+
+ + bb173058 + SIZE_T DedicatedVideoMemory + SIZE_T DedicatedVideoMemory +
+ + +

The number of bytes of dedicated system memory that are not shared with the CPU. This memory is allocated from available system memory at boot time.

+
+ + bb173058 + SIZE_T DedicatedSystemMemory + SIZE_T DedicatedSystemMemory +
+ + +

The number of bytes of shared system memory. This is the maximum value of system memory that may be consumed by the adapter during operation. Any incidental memory consumed by the driver as it manages and uses video memory is additional.

+
+ + bb173058 + SIZE_T SharedSystemMemory + SIZE_T SharedSystemMemory +
+ + +

A unique value that identifies the adapter. See for a definition of the structure. is defined in dxgi.h.

+
+ + bb173058 + LUID AdapterLuid + LUID AdapterLuid +
+ + +

Describes an adapter (or video card) using DXGI 1.1.

+
+ +

The structure provides a DXGI 1.1 description of an adapter. This structure is initialized by using the method.

+
+ + ff471326 + DXGI_ADAPTER_DESC1 + DXGI_ADAPTER_DESC1 +
+ + +

A string that contains the adapter description. On feature level 9 graphics hardware, GetDesc1 returns ?Software Adapter? for the description string.

+
+ + ff471326 + wchar_t Description[128] + wchar_t Description +
+ + +

The PCI ID of the hardware vendor. On feature level 9 graphics hardware, GetDesc1 returns zeros for the PCI ID of the hardware vendor.

+
+ + ff471326 + unsigned int VendorId + unsigned int VendorId +
+ + +

The PCI ID of the hardware device. On feature level 9 graphics hardware, GetDesc1 returns zeros for the PCI ID of the hardware device.

+
+ + ff471326 + unsigned int DeviceId + unsigned int DeviceId +
+ + +

The PCI ID of the sub system. On feature level 9 graphics hardware, GetDesc1 returns zeros for the PCI ID of the sub system.

+
+ + ff471326 + unsigned int SubSysId + unsigned int SubSysId +
+ + +

The PCI ID of the revision number of the adapter. On feature level 9 graphics hardware, GetDesc1 returns zeros for the PCI ID of the revision number of the adapter.

+
+ + ff471326 + unsigned int Revision + unsigned int Revision +
+ + +

The number of bytes of dedicated video memory that are not shared with the CPU.

+
+ + ff471326 + SIZE_T DedicatedVideoMemory + SIZE_T DedicatedVideoMemory +
+ + +

The number of bytes of dedicated system memory that are not shared with the CPU. This memory is allocated from available system memory at boot time.

+
+ + ff471326 + SIZE_T DedicatedSystemMemory + SIZE_T DedicatedSystemMemory +
+ + +

The number of bytes of shared system memory. This is the maximum value of system memory that may be consumed by the adapter during operation. Any incidental memory consumed by the driver as it manages and uses video memory is additional.

+
+ + ff471326 + SIZE_T SharedSystemMemory + SIZE_T SharedSystemMemory +
+ + +

A unique value that identifies the adapter. See for a definition of the structure. is defined in dxgi.h.

+
+ + ff471326 + LUID AdapterLuid + LUID AdapterLuid +
+ + +

A value of the enumerated type that describes the adapter type. The flag is reserved.

+
+ + ff471326 + DXGI_ADAPTER_FLAG Flags + DXGI_ADAPTER_FLAG Flags +
+ + +

Describes timing and presentation statistics for a frame.

+
+ +

You initialize the structure with the or method.

You can only use for swap chains that either use the flip presentation model or draw in full-screen mode. You set the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value in the SwapEffect member of the DXGI_SWAP_CHAIN_DESC1 structure to specify that the swap chain uses the flip presentation model.

The values in the PresentCount and PresentRefreshCount members indicate information about when a frame was presented on the display screen. You can use these values to determine whether a glitch occurred. The values in the SyncRefreshCount and SyncQPCTime members indicate timing information that you can use for audio and video synchronization or very precise animation. If the swap chain draws in full-screen mode, these values are based on when the computer booted. + If the swap chain draws in windowed mode, these values are based on when the swap chain is created.

+
+ + bb173060 + DXGI_FRAME_STATISTICS + DXGI_FRAME_STATISTICS +
+ + +

A value that represents the running total count of times that an image was presented to the monitor since the computer booted.

Note??The number of times that an image was presented to the monitor is not necessarily the same as the number of times that you called or IDXGISwapChain1::Present1.

+
+ + bb173060 + unsigned int PresentCount + unsigned int PresentCount +
+ + +

A value that represents the running total count of v-blanks at which the last image was presented to the monitor and that have happened since the computer booted (for windowed mode, since the swap chain was created).

+
+ + bb173060 + unsigned int PresentRefreshCount + unsigned int PresentRefreshCount +
+ + +

A value that represents the running total count of v-blanks when the scheduler last sampled the machine time by calling QueryPerformanceCounter and that have happened since the computer booted (for windowed mode, since the swap chain was created).

+
+ + bb173060 + unsigned int SyncRefreshCount + unsigned int SyncRefreshCount +
+ + +

A value that represents the high-resolution performance counter timer. This value is the same as the value returned by the QueryPerformanceCounter function.

+
+ + bb173060 + LARGE_INTEGER SyncQPCTime + LARGE_INTEGER SyncQPCTime +
+ + +

Reserved. Always returns 0.

+
+ + bb173060 + LARGE_INTEGER SyncGPUTime + LARGE_INTEGER SyncGPUTime +
+ + +

Controls the settings of a gamma curve.

+
+ +

The structure is used by the method.

For info about using gamma correction, see Using gamma correction.

+
+ + bb173061 + DXGI_GAMMA_CONTROL + DXGI_GAMMA_CONTROL +
+ + +

A structure with scalar values that are applied to rgb values before being sent to the gamma look up table.

+
+ + bb173061 + DXGI_RGB Scale + DXGI_RGB Scale +
+ + +

A structure with offset values that are applied to the rgb values before being sent to the gamma look up table.

+
+ + bb173061 + DXGI_RGB Offset + DXGI_RGB Offset +
+ + +

An array of structures that control the points of a gamma curve.

+
+ + bb173061 + DXGI_RGB GammaCurve[1025] + DXGI_RGB GammaCurve +
+ + +

Controls the gamma capabilities of an adapter.

+
+ +

To get a list of the capabilities for controlling gamma correction, call .

For info about using gamma correction, see Using gamma correction.

+
+ + bb173062 + DXGI_GAMMA_CONTROL_CAPABILITIES + DXGI_GAMMA_CONTROL_CAPABILITIES +
+ + +

True if scaling and offset operations are supported during gamma correction; otherwise, false.

+
+ + bb173062 + BOOL ScaleAndOffsetSupported + BOOL ScaleAndOffsetSupported +
+ + +

A value describing the maximum range of the control-point positions.

+
+ + bb173062 + float MaxConvertedValue + float MaxConvertedValue +
+ + +

A value describing the minimum range of the control-point positions.

+
+ + bb173062 + float MinConvertedValue + float MinConvertedValue +
+ + +

A value describing the number of control points in the array.

+
+ + bb173062 + unsigned int NumGammaControlPoints + unsigned int NumGammaControlPoints +
+ + +

An array of values describing control points; the maximum length of control points is 1025.

+
+ + bb173062 + float ControlPointPositions[1025] + float ControlPointPositions +
+ + +

Describes a mapped rectangle that is used to access a surface.

+
+ +

The structure is initialized by the method.

+
+ + bb173063 + DXGI_MAPPED_RECT + DXGI_MAPPED_RECT +
+ + +

A value that describes the width, in bytes, of the surface.

+
+ + bb173063 + int Pitch + int Pitch +
+ + +

A reference to the image buffer of the surface.

+
+ + bb173063 + unsigned char* pBits + unsigned char pBits +
+ + +

Describes a display mode.

+
+ +

The following format values are valid for display modes and when you create a bit-block transfer (bitblt) model swap chain. The valid values depend on the feature level that you are working with.

  • Feature level >= 9.1

    • (except 10.x on Windows?Vista)
    • (except 10.x on Windows?Vista)
  • Feature level >= 10.0

  • Feature level >= 11.0

You can pass one of these format values to to determine if it is a valid format for displaying on screen. If returns in the bit field to which the pFormatSupport parameter points, the format is valid for displaying on screen.

Starting with Windows?8 for a flip model swap chain (that is, a swap chain that has the DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL value set in the SwapEffect member of ), you must set the Format member of to , , or .

Because of the relaxed render target creation rules that Direct3D 11 has for back buffers, applications can create a render target view from a swap chain so they can use automatic color space conversion when they render the swap chain.

+
+ + bb173064 + DXGI_MODE_DESC + DXGI_MODE_DESC +
+ + +

A value that describes the resolution width. If you specify the width as zero when you call the method to create a swap chain, the runtime obtains the width from the output window and assigns this width value to the swap-chain description. You can subsequently call the method to retrieve the assigned width value.

+
+ + bb173064 + unsigned int Width + unsigned int Width +
+ + +

A value describing the resolution height. If you specify the height as zero when you call the method to create a swap chain, the runtime obtains the height from the output window and assigns this height value to the swap-chain description. You can subsequently call the method to retrieve the assigned height value.

+
+ + bb173064 + unsigned int Height + unsigned int Height +
+ + +

A structure describing the refresh rate in hertz

+
+ + bb173064 + DXGI_RATIONAL RefreshRate + DXGI_RATIONAL RefreshRate +
+ + +

A structure describing the display format.

+
+ + bb173064 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

A member of the enumerated type describing the scanline drawing mode.

+
+ + bb173064 + DXGI_MODE_SCANLINE_ORDER ScanlineOrdering + DXGI_MODE_SCANLINE_ORDER ScanlineOrdering +
+ + +

A member of the enumerated type describing the scaling mode.

+
+ + bb173064 + DXGI_MODE_SCALING Scaling + DXGI_MODE_SCALING Scaling +
+ + + Initializes a new instance of the structure. + + The width. + The height. + The refresh rate. + The format. + + + +

Describes an output or physical connection between the adapter (video card) and a device.

+
+ +

The structure is initialized by the method.

+
+ + bb173068 + DXGI_OUTPUT_DESC + DXGI_OUTPUT_DESC +
+ + +

A string that contains the name of the output device.

+
+ + bb173068 + wchar_t DeviceName[32] + wchar_t DeviceName +
+ + +

A structure containing the bounds of the output in desktop coordinates. Desktop coordinates depend on the dots per inch (DPI) of the desktop. + For info about writing DPI-aware Win32 apps, see High DPI.

+
+ + bb173068 + RECT DesktopCoordinates + RECT DesktopCoordinates +
+ + +

True if the output is attached to the desktop; otherwise, false.

+
+ + bb173068 + BOOL AttachedToDesktop + BOOL AttachedToDesktop +
+ + +

A member of the enumerated type describing on how an image is rotated by the output.

+
+ + bb173068 + DXGI_MODE_ROTATION Rotation + DXGI_MODE_ROTATION Rotation +
+ + +

An handle that represents the display monitor. For more information, see and the Device Context.

+
+ + bb173068 + HMONITOR Monitor + HMONITOR Monitor +
+ + +

Represents a rational number.

+
+ +

The structure operates under the following rules:

  • 0/0 is legal and will be interpreted as 0/1.
  • 0/anything is interpreted as zero.
  • If you are representing a whole number, the denominator should be 1.
+
+ + bb173069 + DXGI_RATIONAL + DXGI_RATIONAL +
+ + +

An unsigned integer value representing the top of the rational number.

+
+ + bb173069 + unsigned int Numerator + unsigned int Numerator +
+ + +

An unsigned integer value representing the bottom of the rational number.

+
+ + bb173069 + unsigned int Denominator + unsigned int Denominator +
+ + + An empty rational that can be used for comparisons. + + + + + Initializes a new instance of the structure. + + The numerator of the rational pair. + The denominator of the rational pair. + + + +

Describes multi-sampling parameters for a resource.

+
+ +

The default sampler mode, with no anti-aliasing, has a count of 1 and a quality level of 0.

If multi-sample antialiasing is being used, all bound render targets and depth buffers must have the same sample counts and quality levels.

Differences between Direct3D 10.0 and Direct3D 10.1 and between Direct3D 10.0 and Direct3D 11:

Direct3D 10.1 has defined two standard quality levels: and in the enumeration in D3D10_1.h.

Direct3D 11 has defined two standard quality levels: and in the enumeration in D3D11.h.

?

+
+ + bb173072 + DXGI_SAMPLE_DESC + DXGI_SAMPLE_DESC +
+ + +

The number of multisamples per pixel.

+
+ + bb173072 + unsigned int Count + unsigned int Count +
+ + +

The image quality level. The higher the quality, the lower the performance. The valid range is between zero and one less than the level returned by for Direct3D 10 or for Direct3D 11.

For Direct3D 10.1 and Direct3D 11, you can use two special quality level values. For more information about these quality level values, see Remarks.

+
+ + bb173072 + unsigned int Quality + unsigned int Quality +
+ + + Initializes a new instance of the structure. + + The sample count. + The sample quality. + + + +

Represents a handle to a shared resource.

+
+ +

To create a shared surface, pass a shared-resource handle into the method.

+
+ + bb173073 + DXGI_SHARED_RESOURCE + DXGI_SHARED_RESOURCE +
+ + +

A handle to a shared resource.

+
+ + bb173073 + void* Handle + void Handle +
+ + +

Describes a surface.

+
+ + bb173074 + DXGI_SURFACE_DESC + DXGI_SURFACE_DESC +
+ + +

A value describing the surface width.

+
+ + bb173074 + unsigned int Width + unsigned int Width +
+ + +

A value describing the surface height.

+
+ + bb173074 + unsigned int Height + unsigned int Height +
+ + +

A member of the enumerated type that describes the surface format.

+
+ + bb173074 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

A member of the structure that describes multi-sampling parameters for the surface.

+
+ + bb173074 + DXGI_SAMPLE_DESC SampleDesc + DXGI_SAMPLE_DESC SampleDesc +
+ + +

Describes a swap chain.

+
+ +

In full-screen mode, there is a dedicated front buffer; in windowed mode, the desktop is the front buffer.

If you create a swap chain with one buffer, specifying does not cause the contents of the single buffer to be swapped with the front buffer.

For performance information about flipping swap-chain buffers in full-screen application, see Full-Screen Application Performance Hints.

+
+ + bb173075 + DXGI_SWAP_CHAIN_DESC + DXGI_SWAP_CHAIN_DESC +
+ + +

A structure that describes the backbuffer display mode.

+
+ + bb173075 + DXGI_MODE_DESC BufferDesc + DXGI_MODE_DESC BufferDesc +
+ + +

A structure that describes multi-sampling parameters.

+
+ + bb173075 + DXGI_SAMPLE_DESC SampleDesc + DXGI_SAMPLE_DESC SampleDesc +
+ + +

A member of the DXGI_USAGE enumerated type that describes the surface usage and CPU access options for the back buffer. The back buffer can be used for shader input or render-target output.

+
+ + bb173075 + DXGI_USAGE_ENUM BufferUsage + DXGI_USAGE_ENUM BufferUsage +
+ + +

A value that describes the number of buffers in the swap chain. When you call to create a full-screen swap chain, you typically include the front buffer in this value. For more information about swap-chain buffers, see Remarks.

+
+ + bb173075 + unsigned int BufferCount + unsigned int BufferCount +
+ + +

An handle to the output window. This member must not be null.

+
+ + bb173075 + HWND OutputWindow + HWND OutputWindow +
+ + +

A Boolean value that specifies whether the output is in windowed mode. TRUE if the output is in windowed mode; otherwise, .

We recommend that you create a windowed swap chain and allow the end user to change the swap chain to full screen through ; that is, do not set this member to to force the swap chain to be full screen. However, if you create the swap chain as full screen, also provide the end user with a list of supported display modes through the BufferDesc member because a swap chain that is created with an unsupported display mode might cause the display to go black and prevent the end user from seeing anything.

For more information about choosing windowed verses full screen, see .

+
+ + bb173075 + BOOL Windowed + BOOL Windowed +
+ + +

A member of the enumerated type that describes options for handling the contents of the presentation buffer after presenting a surface.

+
+ + bb173075 + DXGI_SWAP_EFFECT SwapEffect + DXGI_SWAP_EFFECT SwapEffect +
+ + +

A member of the enumerated type that describes options for swap-chain behavior.

+
+ + bb173075 + DXGI_SWAP_CHAIN_FLAG Flags + DXGI_SWAP_CHAIN_FLAG Flags +
+ + + Internal class used to initialize this assembly. + + + + + Initializes this assembly. + + + This method is called when the assembly is loaded. + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct2D1.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct2D1.dll new file mode 100644 index 0000000..8ec6665 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct2D1.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct2D1.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct2D1.xml new file mode 100644 index 0000000..64875e0 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct2D1.xml @@ -0,0 +1,24418 @@ + + + + SharpDX.Direct2D1 + + + + + The assembly provides managed API for , and . + + ee663274 + Direct2D1 / DirectWrite + Direct2D1 / DirectWrite + + + + Functions + + + + + +

Indicates whether the specified matrix is invertible.

+
+

The matrix to test.

+

true if the matrix was inverted; otherwise, false.

+ +

Windows Phone 8.1: This API is supported.

+
+ + dd368045 + BOOL D2D1IsMatrixInvertible([In] const D2D_MATRIX_3X2_F* matrix) + D2D1IsMatrixInvertible +
+ + +

Tries to invert the specified matrix.

+
+

The matrix to invert.

+

true if the matrix was inverted; otherwise, false.

+ +

Windows Phone 8.1: This API is supported.

+
+ + dd368044 + BOOL D2D1InvertMatrix([InOut] D2D_MATRIX_3X2_F* matrix) + D2D1InvertMatrix +
+ + +

Creates a skew transformation that has the specified x-axis angle, y-axis angle, and center point.

+
+

The x-axis skew angle, which is measured in degrees counterclockwise from the y-axis.

+

The y-axis skew angle, which is measured in degrees counterclockwise from the x-axis.

+

The center point of the skew operation.

+

When this method returns, contains the rotation transformation. You must allocate storate for this parameter.

+ +

Windows Phone 8.1: This API is supported.

+
+ + dd368052 + void D2D1MakeSkewMatrix([In] float angleX,[In] float angleY,[In] D2D_POINT_2F center,[Out] D2D_MATRIX_3X2_F* matrix) + D2D1MakeSkewMatrix +
+ + +

Creates a factory object that can be used to create Direct2D resources.

+
+

The threading model of the factory and the resources it creates.

+

A reference to the IID of that is obtained by using __uuidof().

+

The level of detail provided to the debugging layer.

+

When this method returns, contains the address to a reference to the new factory.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The interface provides the starting point for Direct2D. In general, objects created from a single instance of a factory object can be used with other resources created from that instance, but not with resources created by other factory instances.

Windows Phone 8.1: This API is supported.

+
+ + dd368034 + HRESULT D2D1CreateFactory([In] D2D1_FACTORY_TYPE factoryType,[In] const GUID& riid,[In, Optional] const D2D1_FACTORY_OPTIONS* pFactoryOptions,[Out] void** ppIFactory) + D2D1CreateFactory +
+ + +

Creates a rotation transformation that rotates by the specified angle about the specified point.

+
+

The clockwise rotation angle, in degrees.

+

The point about which to rotate.

+

When this method returns, contains the new rotation transformation. You must allocate storage for this parameter.

+ +

Rotation occurs in the plane of the 2-D surface.

Windows Phone 8.1: This API is supported.

+
+ + dd368049 + void D2D1MakeRotateMatrix([In] float angle,[In] D2D_POINT_2F center,[Out] D2D_MATRIX_3X2_F* matrix) + D2D1MakeRotateMatrix +
+ + +

A built-in implementation of the interface, that operates on local font files + and exposes local font file information from the font file reference key. Font file references created using CreateFontFileReference use this font file loader.

+
+ + dd371238 + IDWriteLocalFontFileLoader + IDWriteLocalFontFileLoader +
+ + +

Handles loading font file resources of a particular type from a font file reference key into a font file stream object.

+
+ +

The font file loader interface is recommended to be implemented by a singleton object. Note that font file loader implementations must not register themselves with DirectWrite factory inside their constructors and must not unregister themselves in their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed outside of the font file loader implementation as a separate step.

+
+ + dd371075 + IDWriteFontFileLoader + IDWriteFontFileLoader +
+ + +

Handles loading font file resources of a particular type from a font file reference key into a font file stream object.

+
+ +

The font file loader interface is recommended to be implemented by a singleton object. Note that font file loader implementations must not register themselves with DirectWrite factory inside their constructors and must not unregister themselves in their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed outside of the font file loader implementation as a separate step.

+
+ + dd371075 + IDWriteFontFileLoader + IDWriteFontFileLoader +
+ + + Creates a font file stream object that encapsulates an open file resource. + + + The resource is closed when the last reference to fontFileStream is released. + + A reference to a font file reference key that uniquely identifies the font file resource within the scope of the font loader being used. The buffer allocated for this key must at least be the size, in bytes, specified by fontFileReferenceKeySize. + a reference to the newly created object. + HRESULT IDWriteFontFileLoader::CreateStreamFromKey([In, Buffer] const void* fontFileReferenceKey,[None] int fontFileReferenceKeySize,[Out] IDWriteFontFileStream** fontFileStream) + + + + Creates a font file stream object that encapsulates an open file resource. + + + The resource is closed when the last reference to fontFileStream is released. + + A reference to a font file reference key that uniquely identifies the font file resource within the scope of the font loader being used. The buffer allocated for this key must at least be the size, in bytes, specified by fontFileReferenceKeySize. + a reference to the newly created object. + HRESULT IDWriteFontFileLoader::CreateStreamFromKey([In, Buffer] const void* fontFileReferenceKey,[None] int fontFileReferenceKeySize,[Out] IDWriteFontFileStream** fontFileStream) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a font file stream object that encapsulates an open file resource.

+
+

A reference to a font file reference key that uniquely identifies the font file resource within the scope of the font loader being used. The buffer allocated for this key must at least be the size, in bytes, specified by fontFileReferenceKeySize.

+

The size of font file reference key, in bytes.

+

When this method returns, contains the address of a reference to the newly created object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The resource is closed when the last reference to fontFileStream is released.

+
+ + dd371077 + HRESULT IDWriteFontFileLoader::CreateStreamFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] IDWriteFontFileStream** fontFileStream) + IDWriteFontFileLoader::CreateStreamFromKey +
+ + +

Obtains the absolute font file path from the font file reference key.

+
+

The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

+

If this method succeeds, the absolute font file path from the font file reference key.

+ dd371241 + HRESULT IDWriteLocalFontFileLoader::GetFilePathFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out, Buffer] wchar_t* filePath,[In] unsigned int filePathSize) + IDWriteLocalFontFileLoader::GetFilePathFromKey +
+ + +

Obtains the last write time of the file from the font file reference key.

+
+

The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

+

The time of the last font file modification.

+ dd371247 + HRESULT IDWriteLocalFontFileLoader::GetLastWriteTimeFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] FILETIME* lastWriteTime) + IDWriteLocalFontFileLoader::GetLastWriteTimeFromKey +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Obtains the length of the absolute file path from the font file reference key.

+
+

Font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

+

Size of font file reference key in bytes.

+

Length of the file path string, not including the terminated null character.

+ + dd371244 + HRESULT IDWriteLocalFontFileLoader::GetFilePathLengthFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] unsigned int* filePathLength) + IDWriteLocalFontFileLoader::GetFilePathLengthFromKey +
+ + +

Obtains the absolute font file path from the font file reference key.

+
+

The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

+

The size of font file reference key in bytes.

+

The character array that receives the local file path.

+

The length of the file path character array.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371241 + HRESULT IDWriteLocalFontFileLoader::GetFilePathFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out, Buffer] wchar_t* filePath,[In] unsigned int filePathSize) + IDWriteLocalFontFileLoader::GetFilePathFromKey +
+ + +

Obtains the last write time of the file from the font file reference key.

+
+

The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.

+

The size of font file reference key in bytes.

+

The time of the last font file modification.

+ + dd371247 + HRESULT IDWriteLocalFontFileLoader::GetLastWriteTimeFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] FILETIME* lastWriteTime) + IDWriteLocalFontFileLoader::GetLastWriteTimeFromKey +
+ + + The namespace provides a managed DirectWrite API. + + dd368038 + DirectWrite + DirectWrite + + + + The namespace provides a managed Direct2D1 built in Effects API. + + hh706327 + Direct2D1 Effects + Direct2D1 Effects + + + + The namespace provides a managed Direct2D API. + + dd370990 + Direct2D1 + Direct2D1 + + + +

Contains the content bounds, mask information, opacity settings, and other options for a layer resource.

+
+ + dd368127 + D2D1_LAYER_PARAMETERS + D2D1_LAYER_PARAMETERS +
+ + +

The content bounds of the layer. Content outside these bounds is not guaranteed to render.

+
+ + dd368127 + D2D_RECT_F contentBounds + D2D_RECT_F contentBounds +
+ + +

The geometric mask specifies the area of the layer that is composited into the render target.

+
+ + dd368127 + ID2D1Geometry* geometricMask + ID2D1Geometry geometricMask +
+ + +

A value that specifies the antialiasing mode for the geometricMask.

+
+ + dd368127 + D2D1_ANTIALIAS_MODE maskAntialiasMode + D2D1_ANTIALIAS_MODE maskAntialiasMode +
+ + +

A value that specifies the transform that is applied to the geometric mask when composing the layer.

+
+ + dd368127 + D2D_MATRIX_3X2_F maskTransform + D2D_MATRIX_3X2_F maskTransform +
+ + +

An opacity value that is applied uniformly to all resources in the layer when compositing to the target.

+
+ + dd368127 + float opacity + float opacity +
+ + +

A brush that is used to modify the opacity of the layer. The brush + is mapped to the layer, and the alpha channel of each mapped brush pixel is multiplied against the corresponding layer pixel.

+
+ + dd368127 + ID2D1Brush* opacityBrush + ID2D1Brush opacityBrush +
+ + +

A value that specifies whether the layer intends to render text with ClearType antialiasing.

+
+ + dd368127 + D2D1_LAYER_OPTIONS layerOptions + D2D1_LAYER_OPTIONS layerOptions +
+ + + Sets the geometric mask. + + + The geometric mask. + + ID2D1Geometry* geometricMask + + + + Sets the opacity brush. + + + The opacity brush. + + ID2D1Brush* opacityBrush + + + +

Specifies the identifiers of the metadata items in an 8BIM IPTC digest metadata block.

+
+ + ee719802 + WIC8BIMIptcDigestProperties + WIC8BIMIptcDigestProperties +
+ + +

[VT_LPSTR] A name that identifies the 8BIM block.

+
+ + ee719802 + WIC8BIMIptcDigestPString + WIC8BIMIptcDigestPString +
+ + +

[VT_BLOB] The embedded IPTC digest value.

+
+ + ee719802 + WIC8BIMIptcDigestIptcDigest + WIC8BIMIptcDigestIptcDigest +
+ + +

Specifies the identifiers of the metadata items in an 8BIM IPTC block.

+
+ + ee719803 + WIC8BIMIptcProperties + WIC8BIMIptcProperties +
+ + +

[VT_LPSTR] A name that identifies the 8BIM block.

+
+ + ee719803 + WIC8BIMIptcPString + WIC8BIMIptcPString +
+ + +

[VT_UNKNOWN] The IPTC block embedded in this 8BIM IPTC block.

+
+ + ee719803 + WIC8BIMIptcEmbeddedIPTC + WIC8BIMIptcEmbeddedIPTC +
+ + +

Specifies the identifiers of the metadata items in an 8BIMResolutionInfo block.

+
+ + ee719804 + WIC8BIMResolutionInfoProperties + WIC8BIMResolutionInfoProperties +
+ + +

[VT_LPSTR] A name that identifies the 8BIM block.

+
+ + ee719804 + WIC8BIMResolutionInfoPString + WIC8BIMResolutionInfoPString +
+ + +

[VT_UI4] The horizontal resolution of the image.

+
+ + ee719804 + WIC8BIMResolutionInfoHResolution + WIC8BIMResolutionInfoHResolution +
+ + +

[VT_UI2] The units that the horizontal resolution is specified in; a 1 indicates pixels per inch and a 2 indicates pixels per centimeter.

+
+ + ee719804 + WIC8BIMResolutionInfoHResolutionUnit + WIC8BIMResolutionInfoHResolutionUnit +
+ + +

[VT_UI2] The units that the image width is specified in; a 1 indicates inches, a 2 indicates centimeters, a 3 indicates points, a 4 specifies picas, and a 5 specifies columns.

+
+ + ee719804 + WIC8BIMResolutionInfoWidthUnit + WIC8BIMResolutionInfoWidthUnit +
+ + +

[VT_UI4] The vertical resolution of the image.

+
+ + ee719804 + WIC8BIMResolutionInfoVResolution + WIC8BIMResolutionInfoVResolution +
+ + +

[VT_UI2] The units that the vertical resolution is specified in; a 1 indicates pixels per inch and a 2 indicates pixels per centimeter.

+
+ + ee719804 + WIC8BIMResolutionInfoVResolutionUnit + WIC8BIMResolutionInfoVResolutionUnit +
+ + +

[VT_UI2] The units that the image height is specified in; a 1 indicates inches, a 2 indicates centimeters, a 3 indicates points, a 4 specifies picas, and a 5 specifies columns.

+
+ + ee719804 + WIC8BIMResolutionInfoHeightUnit + WIC8BIMResolutionInfoHeightUnit +
+ + +

Specifies the desired alpha channel usage.

+
+ + ee719805 + WICBitmapAlphaChannelOption + WICBitmapAlphaChannelOption +
+ + +

Use alpha channel.

+
+ + ee719805 + WICBitmapUseAlpha + WICBitmapUseAlpha +
+ + +

Use a pre-multiplied alpha channel.

+
+ + ee719805 + WICBitmapUsePremultipliedAlpha + WICBitmapUsePremultipliedAlpha +
+ + +

Ignore alpha channel.

+
+ + ee719805 + WICBitmapIgnoreAlpha + WICBitmapIgnoreAlpha +
+ + +

Specifies the desired cache usage.

+
+ +

The CreateBitmap of the interface does not support when the pixelFormat is a native pixel format provided by Windows Imaging Component (WIC).

+
+ + ee719806 + WICBitmapCreateCacheOption + WICBitmapCreateCacheOption +
+ + +

Do not cache the bitmap.

+
+ + ee719806 + WICBitmapNoCache + WICBitmapNoCache +
+ + +

Cache the bitmap when needed.

+
+ + ee719806 + WICBitmapCacheOnDemand + WICBitmapCacheOnDemand +
+ + +

Cache the bitmap at initialization.

+
+ + ee719806 + WICBitmapCacheOnLoad + WICBitmapCacheOnLoad +
+ + +

Specifies the capabilities of the decoder.

+
+ + ee719807 + WICBitmapDecoderCapabilities + WICBitmapDecoderCapabilities +
+ + +

Decoder recognizes the image was encoded with an encoder produced by the same vendor.

+
+ + ee719807 + WICBitmapDecoderCapabilitySameEncoder + WICBitmapDecoderCapabilitySameEncoder +
+ + +

Decoder can decode all the images within an image container.

+
+ + ee719807 + WICBitmapDecoderCapabilityCanDecodeAllImages + WICBitmapDecoderCapabilityCanDecodeAllImages +
+ + +

Decoder can decode some of the images within an image container.

+
+ + ee719807 + WICBitmapDecoderCapabilityCanDecodeSomeImages + WICBitmapDecoderCapabilityCanDecodeSomeImages +
+ + +

Decoder can enumerate the metadata blocks within a container format.

+
+ + ee719807 + WICBitmapDecoderCapabilityCanEnumerateMetadata + WICBitmapDecoderCapabilityCanEnumerateMetadata +
+ + +

Decoder can find and decode a thumbnail.

+
+ + ee719807 + WICBitmapDecoderCapabilityCanDecodeThumbnail + WICBitmapDecoderCapabilityCanDecodeThumbnail +
+ + + None. + + + None + None + + + +

Specifies the type of dither algorithm to apply when converting between image formats.

+
+ + ee719808 + WICBitmapDitherType + WICBitmapDitherType +
+ + +

A solid color algorithm without dither.

+
+ + ee719808 + WICBitmapDitherTypeNone + WICBitmapDitherTypeNone +
+ + +

A solid color algorithm without dither.

+
+ + ee719808 + WICBitmapDitherTypeSolid + WICBitmapDitherTypeSolid +
+ + +

A 4x4 ordered dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeOrdered4x4 + WICBitmapDitherTypeOrdered4x4 +
+ + +

An 8x8 ordered dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeOrdered8x8 + WICBitmapDitherTypeOrdered8x8 +
+ + +

A 16x16 ordered dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeOrdered16x16 + WICBitmapDitherTypeOrdered16x16 +
+ + +

A 4x4 spiral dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeSpiral4x4 + WICBitmapDitherTypeSpiral4x4 +
+ + +

An 8x8 spiral dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeSpiral8x8 + WICBitmapDitherTypeSpiral8x8 +
+ + +

A 4x4 dual spiral dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeDualSpiral4x4 + WICBitmapDitherTypeDualSpiral4x4 +
+ + +

An 8x8 dual spiral dither algorithm.

+
+ + ee719808 + WICBitmapDitherTypeDualSpiral8x8 + WICBitmapDitherTypeDualSpiral8x8 +
+ + +

An error diffusion algorithm.

+
+ + ee719808 + WICBitmapDitherTypeErrorDiffusion + WICBitmapDitherTypeErrorDiffusion +
+ + +

Specifies the cache options available for an encoder.

+
+ + ee719809 + WICBitmapEncoderCacheOption + WICBitmapEncoderCacheOption +
+ + +

The encoder is cached in memory. This option is not supported.

+
+ + ee719809 + WICBitmapEncoderCacheInMemory + WICBitmapEncoderCacheInMemory +
+ + +

The encoder is cached to a temporary file. This option is not supported.

+
+ + ee719809 + WICBitmapEncoderCacheTempFile + WICBitmapEncoderCacheTempFile +
+ + +

The encoder is not cached.

+
+ + ee719809 + WICBitmapEncoderNoCache + WICBitmapEncoderNoCache +
+ + +

Specifies the sampling or filtering mode to use when scaling an image.

+
+ + ee719810 + WICBitmapInterpolationMode + WICBitmapInterpolationMode +
+ + +

A nearest neighbor interpolation algorithm. Also known as nearest pixel or point interpolation.

The output pixel is assigned the value of the pixel that the point falls within. No other pixels are considered.

+
+ + ee719810 + WICBitmapInterpolationModeNearestNeighbor + WICBitmapInterpolationModeNearestNeighbor +
+ + +

A bilinear interpolation algorithm.

The output pixel values are computed as a weighted average of the nearest four pixels in a 2x2 grid.

+
+ + ee719810 + WICBitmapInterpolationModeLinear + WICBitmapInterpolationModeLinear +
+ + +

A bicubic interpolation algorithm.

Destination pixel values are computed as a weighted average of the nearest sixteen pixels in a 4x4 grid.

+
+ + ee719810 + WICBitmapInterpolationModeCubic + WICBitmapInterpolationModeCubic +
+ + +

A Fant resampling algorithm.

Destination pixel values are computed as a weighted average of the all the pixels that map to the new pixel.

+
+ + ee719810 + WICBitmapInterpolationModeFant + WICBitmapInterpolationModeFant +
+ + +

Specifies access to an .

+
+ + ee719811 + WICBitmapLockFlags + WICBitmapLockFlags +
+ + + No documentation. + + + ee719811 + WICBitmapLockRead + WICBitmapLockRead + + + + No documentation. + + + ee719811 + WICBitmapLockWrite + WICBitmapLockWrite + + + +

Specifies the type of palette used for an indexed image format.

+
+ + ee719812 + WICBitmapPaletteType + WICBitmapPaletteType +
+ + +

An arbitrary custom palette provided by caller.

+
+ + ee719812 + WICBitmapPaletteTypeCustom + WICBitmapPaletteTypeCustom +
+ + +

An optimal palette generated using a median-cut algorithm. Derived from the colors in an image.

+
+ + ee719812 + WICBitmapPaletteTypeMedianCut + WICBitmapPaletteTypeMedianCut +
+ + +

A black and white palette.

+
+ + ee719812 + WICBitmapPaletteTypeFixedBW + WICBitmapPaletteTypeFixedBW +
+ + +

A palette that has its 8-color on-off primaries and the 16 system colors added. With duplicates removed, 16 colors are available.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone8 + WICBitmapPaletteTypeFixedHalftone8 +
+ + +

A palette that has 3 intensity levels of each primary: 27-color on-off primaries and the 16 system colors added. With duplicates removed, 35 colors are available.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone27 + WICBitmapPaletteTypeFixedHalftone27 +
+ + +

A palette that has 4 intensity levels of each primary: 64-color on-off primaries and the 16 system colors added. With duplicates removed, 72 colors are available.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone64 + WICBitmapPaletteTypeFixedHalftone64 +
+ + +

A palette that has 5 intensity levels of each primary: 125-color on-off primaries and the 16 system colors added. With duplicates removed, 133 colors are available.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone125 + WICBitmapPaletteTypeFixedHalftone125 +
+ + +

A palette that has 6 intensity levels of each primary: 216-color on-off primaries and the 16 system colors added. With duplicates removed, 224 colors are available. This is the same as WICBitmapPaletteFixedHalftoneWeb.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone216 + WICBitmapPaletteTypeFixedHalftone216 +
+ + +

A palette that has 6 intensity levels of each primary: 216-color on-off primaries and the 16 system colors added. With duplicates removed, 224 colors are available. This is the same as .

+
+ + ee719812 + WICBitmapPaletteTypeFixedWebPalette + WICBitmapPaletteTypeFixedWebPalette +
+ + +

A palette that has its 252-color on-off primaries and the 16 system colors added. With duplicates removed, 256 colors are available.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone252 + WICBitmapPaletteTypeFixedHalftone252 +
+ + +

A palette that has its 256-color on-off primaries and the 16 system colors added. With duplicates removed, 256 colors are available.

+
+ + ee719812 + WICBitmapPaletteTypeFixedHalftone256 + WICBitmapPaletteTypeFixedHalftone256 +
+ + +

A palette that has 4 shades of gray.

+
+ + ee719812 + WICBitmapPaletteTypeFixedGray4 + WICBitmapPaletteTypeFixedGray4 +
+ + +

A palette that has 16 shades of gray.

+
+ + ee719812 + WICBitmapPaletteTypeFixedGray16 + WICBitmapPaletteTypeFixedGray16 +
+ + +

A palette that has 256 shades of gray.

+
+ + ee719812 + WICBitmapPaletteTypeFixedGray256 + WICBitmapPaletteTypeFixedGray256 +
+ + +

Specifies the flip and rotation transforms.

+
+ + ee719814 + WICBitmapTransformOptions + WICBitmapTransformOptions +
+ + +

A rotation of 0 degrees.

+
+ + ee719814 + WICBitmapTransformRotate0 + WICBitmapTransformRotate0 +
+ + +

A clockwise rotation of 90 degrees.

+
+ + ee719814 + WICBitmapTransformRotate90 + WICBitmapTransformRotate90 +
+ + +

A clockwise rotation of 180 degrees.

+
+ + ee719814 + WICBitmapTransformRotate180 + WICBitmapTransformRotate180 +
+ + +

A clockwise rotation of 270 degrees.

+
+ + ee719814 + WICBitmapTransformRotate270 + WICBitmapTransformRotate270 +
+ + +

A horizontal flip. Pixels are flipped around the vertical y-axis.

+
+ + ee719814 + WICBitmapTransformFlipHorizontal + WICBitmapTransformFlipHorizontal +
+ + +

A vertical flip. Pixels are flipped around the horizontal x-axis.

+
+ + ee719814 + WICBitmapTransformFlipVertical + WICBitmapTransformFlipVertical +
+ + +

Specifies the color context types.

+
+ + ee719815 + WICColorContextType + WICColorContextType +
+ + +

An uninitialized color context.

+
+ + ee719815 + WICColorContextUninitialized + WICColorContextUninitialized +
+ + +

A color context that is a full ICC color profile.

+
+ + ee719815 + WICColorContextProfile + WICColorContextProfile +
+ + +

A color context that is one of a number of set color spaces (sRGB, AdobeRGB) that are defined in the EXIF specification.

+
+ + ee719815 + WICColorContextExifColorSpace + WICColorContextExifColorSpace +
+ + +

Specifies component enumeration options.

+
+ + ee719816 + WICComponentEnumerateOptions + WICComponentEnumerateOptions +
+ + +

Enumerate any components that are not disabled. Because this value is 0x0, it is always included with the other options.

+
+ + ee719816 + WICComponentEnumerateDefault + WICComponentEnumerateDefault +
+ + +

Force a read of the registry before enumerating components.

+
+ + ee719816 + WICComponentEnumerateRefresh + WICComponentEnumerateRefresh +
+ + +

Include disabled components in the enumeration. The set of disabled components is disjoint with the set of default enumerated components

+
+ + ee719816 + WICComponentEnumerateDisabled + WICComponentEnumerateDisabled +
+ + +

Include unsigned components in the enumeration. This option has no effect.

+
+ + ee719816 + WICComponentEnumerateUnsigned + WICComponentEnumerateUnsigned +
+ + +

At the end of component enumeration, filter out any components that are not Windows provided.

+
+ + ee719816 + WICComponentEnumerateBuiltInOnly + WICComponentEnumerateBuiltInOnly +
+ + +

Specifies the component signing status.

+
+ + ee719817 + WICComponentSigning + WICComponentSigning +
+ + +

A signed component.

+
+ + ee719817 + WICComponentSigned + WICComponentSigned +
+ + +

An unsigned component

+
+ + ee719817 + WICComponentUnsigned + WICComponentUnsigned +
+ + +

A component is safe.

Components that do not have a binary component to sign, such as a pixel format, should return this value.

+
+ + ee719817 + WICComponentSafe + WICComponentSafe +
+ + +

A component has been disabled.

+
+ + ee719817 + WICComponentDisabled + WICComponentDisabled +
+ + +

Specifies the type of Windows Imaging Component (WIC) component.

+
+ + ee719818 + WICComponentType + WICComponentType +
+ + +

A WIC decoder.

+
+ + ee719818 + WICDecoder + WICDecoder +
+ + +

A WIC encoder.

+
+ + ee719818 + WICEncoder + WICEncoder +
+ + +

A WIC pixel converter.

+
+ + ee719818 + WICPixelFormatConverter + WICPixelFormatConverter +
+ + +

A WIC metadata reader.

+
+ + ee719818 + WICMetadataReader + WICMetadataReader +
+ + +

A WIC metadata writer.

+
+ + ee719818 + WICMetadataWriter + WICMetadataWriter +
+ + +

A WIC pixel format.

+
+ + ee719818 + WICPixelFormat + WICPixelFormat +
+ + +

All WIC components.

+
+ + ee719818 + WICAllComponents + WICAllComponents +
+ + +

Specifies decode options.

+
+ + ee719824 + WICDecodeOptions + WICDecodeOptions +
+ + +

Cache metadata when needed.

+
+ + ee719824 + WICDecodeMetadataCacheOnDemand + WICDecodeMetadataCacheOnDemand +
+ + +

Cache metadata when decoder is loaded.

+
+ + ee719824 + WICDecodeMetadataCacheOnLoad + WICDecodeMetadataCacheOnLoad +
+ + +

Specifies the application extension metadata properties for a Graphics Interchange Format (GIF) image.

+
+ + ee719826 + WICGifApplicationExtensionProperties + WICGifApplicationExtensionProperties +
+ + +

[VT_UI1 | VT_VECTOR] Indicates a string that identifies the application.

+
+ + ee719826 + WICGifApplicationExtensionApplication + WICGifApplicationExtensionApplication +
+ + +

[VT_UI1 | VT_VECTOR] Indicates data that is exposed by the application.

+
+ + ee719826 + WICGifApplicationExtensionData + WICGifApplicationExtensionData +
+ + +

Specifies the comment extension metadata properties for a Graphics Interchange Format (GIF) image.

+
+ + ee719827 + WICGifCommentExtensionProperties + WICGifCommentExtensionProperties +
+ + +

[VT_LPSTR] Indicates the comment text.

+
+ + ee719827 + WICGifCommentExtensionText + WICGifCommentExtensionText +
+ + +

Specifies the graphic control extension metadata properties that define the transitions between each frame animation for Graphics Interchange Format (GIF) images.

+
+ + ee719828 + WICGifGraphicControlExtensionProperties + WICGifGraphicControlExtensionProperties +
+ + +

[VT_UI1] Indicates the disposal requirements. 0 - no disposal, 1 - do not dispose, 2 - restore to background color, 3 - restore to previous.

+
+ + ee719828 + WICGifGraphicControlExtensionDisposal + WICGifGraphicControlExtensionDisposal +
+ + +

[VT_BOOL] Indicates the user input flag. TRUE if user input should advance to the next frame; otherwise, .

+
+ + ee719828 + WICGifGraphicControlExtensionUserInputFlag + WICGifGraphicControlExtensionUserInputFlag +
+ + +

[VT_BOOL] Indicates the transparency flag. TRUE if a transparent color in is in the color table for this frame; otherwise, .

+
+ + ee719828 + WICGifGraphicControlExtensionTransparencyFlag + WICGifGraphicControlExtensionTransparencyFlag +
+ + +

[VT_UI2] Indicates how long to display the next frame before advancing to the next frame, in units of 1/100th of a second.

+
+ + ee719828 + WICGifGraphicControlExtensionDelay + WICGifGraphicControlExtensionDelay +
+ + +

[VT_UI1] Indicates which color in the palette should be treated as transparent.

+
+ + ee719828 + WICGifGraphicControlExtensionTransparentColorIndex + WICGifGraphicControlExtensionTransparentColorIndex +
+ + +

Specifies the image descriptor metadata properties for Graphics Interchange Format (GIF) frames.

+
+ + ee719829 + WICGifImageDescriptorProperties + WICGifImageDescriptorProperties +
+ + +

[VT_UI2] Indicates the X offset at which to locate this frame within the logical screen.

+
+ + ee719829 + WICGifImageDescriptorLeft + WICGifImageDescriptorLeft +
+ + +

[VT_UI2] Indicates the Y offset at which to locate this frame within the logical screen.

+
+ + ee719829 + WICGifImageDescriptorTop + WICGifImageDescriptorTop +
+ + +

[VT_UI2] Indicates width of this frame, in pixels.

+
+ + ee719829 + WICGifImageDescriptorWidth + WICGifImageDescriptorWidth +
+ + +

[VT_UI2] Indicates height of this frame, in pixels.

+
+ + ee719829 + WICGifImageDescriptorHeight + WICGifImageDescriptorHeight +
+ + +

[VT_BOOL] Indicates the local color table flag. TRUE if global color table is present; otherwise, .

+
+ + ee719829 + WICGifImageDescriptorLocalColorTableFlag + WICGifImageDescriptorLocalColorTableFlag +
+ + +

[VT_BOOL] Indicates the interlace flag. TRUE if image is interlaced; otherwise, .

+
+ + ee719829 + WICGifImageDescriptorInterlaceFlag + WICGifImageDescriptorInterlaceFlag +
+ + +

[VT_BOOL] Indicates the sorted color table flag. TRUE if the color table is sorted from most frequently to least frequently used color; otherwise, .

+
+ + ee719829 + WICGifImageDescriptorSortFlag + WICGifImageDescriptorSortFlag +
+ + +

[VT_UI1] Indicates the value used to calculate the number of bytes contained in the global color table.

To calculate the actual size of the color table, raise 2 to the value of the field + 1.

+
+ + ee719829 + WICGifImageDescriptorLocalColorTableSize + WICGifImageDescriptorLocalColorTableSize +
+ + +

Specifies the logical screen descriptor properties for Graphics Interchange Format (GIF) metadata.

+
+ + ee719830 + WICGifLogicalScreenDescriptorProperties + WICGifLogicalScreenDescriptorProperties +
+ + +

[VT_UI1 | VT_VECTOR] Indicates the signature property.

+
+ + ee719830 + WICGifLogicalScreenSignature + WICGifLogicalScreenSignature +
+ + +

[VT_UI2] Indicates the width in pixels.

+
+ + ee719830 + WICGifLogicalScreenDescriptorWidth + WICGifLogicalScreenDescriptorWidth +
+ + +

[VT_UI2] Indicates the height in pixels.

+
+ + ee719830 + WICGifLogicalScreenDescriptorHeight + WICGifLogicalScreenDescriptorHeight +
+ + +

[VT_BOOL] Indicates the global color table flag. TRUE if a global color table is present; otherwise, .

+
+ + ee719830 + WICGifLogicalScreenDescriptorGlobalColorTableFlag + WICGifLogicalScreenDescriptorGlobalColorTableFlag +
+ + +

[VT_UI1] Indicates the color resolution in bits per pixel.

+
+ + ee719830 + WICGifLogicalScreenDescriptorColorResolution + WICGifLogicalScreenDescriptorColorResolution +
+ + +

[VT_BOOL] Indicates the sorted color table flag. TRUE if the table is sorted; otherwise, .

+
+ + ee719830 + WICGifLogicalScreenDescriptorSortFlag + WICGifLogicalScreenDescriptorSortFlag +
+ + +

[VT_UI1] Indicates the value used to calculate the number of bytes contained in the global color table.

To calculate the actual size of the color table, raise 2 to the value of the field + 1.

+
+ + ee719830 + WICGifLogicalScreenDescriptorGlobalColorTableSize + WICGifLogicalScreenDescriptorGlobalColorTableSize +
+ + +

[VT_UI1] Indicates the index within the color table to use for the background (pixels not defined in the image).

+
+ + ee719830 + WICGifLogicalScreenDescriptorBackgroundColorIndex + WICGifLogicalScreenDescriptorBackgroundColorIndex +
+ + +

[VT_UI1] Indicates the factor used to compute an approximation of the aspect ratio.

+
+ + ee719830 + WICGifLogicalScreenDescriptorPixelAspectRatio + WICGifLogicalScreenDescriptorPixelAspectRatio +
+ + +

Specifies the JPEG chrominance table property.

+
+ + ee719831 + WICJpegChrominanceProperties + WICJpegChrominanceProperties +
+ + +

[VT_UI2|VT_VECTOR] Indicates the metadata property is a chrominance table.

+
+ + ee719831 + WICJpegChrominanceTable + WICJpegChrominanceTable +
+ + +

Specifies the JPEG comment properties.

+
+ + ee719832 + WICJpegCommentProperties + WICJpegCommentProperties +
+ + +

Indicates the metadata property is comment text.

+
+ + ee719832 + WICJpegCommentText + WICJpegCommentText +
+ + +

Specifies the JPEG luminance table property.

+
+ + ee719833 + WICJpegLuminanceProperties + WICJpegLuminanceProperties +
+ + +

[VT_UI2|VT_VECTOR] Indicates the metadata property is a luminance table.

+
+ + ee719833 + WICJpegLuminanceTable + WICJpegLuminanceTable +
+ + +

Specifies the JPEG YCrCB subsampling options.

+
+ +

The native JPEG encoder uses .

+
+ + ee719834 + WICJpegYCrCbSubsamplingOption + WICJpegYCrCbSubsamplingOption +
+ + +

The default subsampling option.

+
+ + ee719834 + WICJpegYCrCbSubsamplingDefault + WICJpegYCrCbSubsamplingDefault +
+ + +

Subsampling option that uses both horizontal and vertical decimation.

+
+ + ee719834 + WICJpegYCrCbSubsampling420 + WICJpegYCrCbSubsampling420 +
+ + +

Subsampling option that uses horizontal decimation .

+
+ + ee719834 + WICJpegYCrCbSubsampling422 + WICJpegYCrCbSubsampling422 +
+ + +

Subsampling option that uses no decimation.

+
+ + ee719834 + WICJpegYCrCbSubsampling444 + WICJpegYCrCbSubsampling444 +
+ + +

Specifies named white balances for raw images.

+
+ + ee719842 + WICNamedWhitePoint + WICNamedWhitePoint +
+ + +

The default white balance.

+
+ + ee719842 + WICWhitePointDefault + WICWhitePointDefault +
+ + +

A daylight white balance.

+
+ + ee719842 + WICWhitePointDaylight + WICWhitePointDaylight +
+ + +

A cloudy white balance.

+
+ + ee719842 + WICWhitePointCloudy + WICWhitePointCloudy +
+ + +

A shade white balance.

+
+ + ee719842 + WICWhitePointShade + WICWhitePointShade +
+ + +

A tungsten white balance.

+
+ + ee719842 + WICWhitePointTungsten + WICWhitePointTungsten +
+ + +

A fluorescent white balance.

+
+ + ee719842 + WICWhitePointFluorescent + WICWhitePointFluorescent +
+ + +

Daylight white balance.

+
+ + ee719842 + WICWhitePointFlash + WICWhitePointFlash +
+ + +

A flash white balance.

+
+ + ee719842 + WICWhitePointUnderwater + WICWhitePointUnderwater +
+ + +

A custom white balance. This is typically used when using a picture (grey-card) as white balance.

+
+ + ee719842 + WICWhitePointCustom + WICWhitePointCustom +
+ + +

An automatic balance.

+
+ + ee719842 + WICWhitePointAutoWhiteBalance + WICWhitePointAutoWhiteBalance +
+ + +

An "as shot" white balance.

+
+ + ee719842 + WICWhitePointAsShot + WICWhitePointAsShot +
+ + + No documentation. + + + ee719844 + WICPixelFormatNumericRepresentation + WICPixelFormatNumericRepresentation + + + +
+
+ + ee719844 + WICPixelFormatNumericRepresentationUnspecified + WICPixelFormatNumericRepresentationUnspecified +
+ + +
+
+ + ee719844 + WICPixelFormatNumericRepresentationIndexed + WICPixelFormatNumericRepresentationIndexed +
+ + +
+
+ + ee719844 + WICPixelFormatNumericRepresentationUnsignedInteger + WICPixelFormatNumericRepresentationUnsignedInteger +
+ + +
+
+ + ee719844 + WICPixelFormatNumericRepresentationSignedInteger + WICPixelFormatNumericRepresentationSignedInteger +
+ + +
+
+ + ee719844 + WICPixelFormatNumericRepresentationFixed + WICPixelFormatNumericRepresentationFixed +
+ + +
+
+ + ee719844 + WICPixelFormatNumericRepresentationFloat + WICPixelFormatNumericRepresentationFloat +
+ + +

Specifies the Portable Network Graphics (PNG) background (bKGD) chunk metadata properties.

+
+ + ee719845 + WICPngBkgdProperties + WICPngBkgdProperties +
+ + +

Indicates the background color. There are three possible types, depending on the image's pixel format.

VT_UI1

Specifies the index of the background color in an image with an indexed pixel format.

VT_UI2

Specifies the background color in a grayscale image.

VT_VECTOR|VT_UI2

Specifies the background color in an RGB image as three USHORT values: {0xRRRR, 0xGGGG, 0xBBBB}.

+
+ + ee719845 + WICPngBkgdBackgroundColor + WICPngBkgdBackgroundColor +
+ + +

Specifies the Portable Network Graphics (PNG) cHRM chunk metadata properties for CIE XYZ chromaticity.

+
+ + ee719846 + WICPngChrmProperties + WICPngChrmProperties +
+ + +

[VT_UI4] Indicates the whitepoint x value ratio.

+
+ + ee719846 + WICPngChrmWhitePointX + WICPngChrmWhitePointX +
+ + +

[VT_UI4] Indicates the whitepoint y value ratio.

+
+ + ee719846 + WICPngChrmWhitePointY + WICPngChrmWhitePointY +
+ + +

[VT_UI4] Indicates the red x value ratio.

+
+ + ee719846 + WICPngChrmRedX + WICPngChrmRedX +
+ + +

[VT_UI4] Indicates the red y value ratio.

+
+ + ee719846 + WICPngChrmRedY + WICPngChrmRedY +
+ + +

[VT_UI4] Indicates the green x value ratio.

+
+ + ee719846 + WICPngChrmGreenX + WICPngChrmGreenX +
+ + +

[VT_UI4] Indicates the green y value ratio.

+
+ + ee719846 + WICPngChrmGreenY + WICPngChrmGreenY +
+ + +

[VT_UI4] Indicates the blue x value ratio.

+
+ + ee719846 + WICPngChrmBlueX + WICPngChrmBlueX +
+ + +

[VT_UI4] Indicates the blue y value ratio.

+
+ + ee719846 + WICPngChrmBlueY + WICPngChrmBlueY +
+ + +

Specifies the Portable Network Graphics (PNG) filters available for compression optimization.

+
+ + ee719847 + WICPngFilterOption + WICPngFilterOption +
+ + +

Indicates an unspecified PNG filter. This enables WIC to algorithmically choose the best filtering option for the image.

+
+ + ee719847 + WICPngFilterUnspecified + WICPngFilterUnspecified +
+ + +

Indicates no PNG filter.

+
+ + ee719847 + WICPngFilterNone + WICPngFilterNone +
+ + +

Indicates a PNG sub filter.

+
+ + ee719847 + WICPngFilterSub + WICPngFilterSub +
+ + +

Indicates a PNG up filter.

+
+ + ee719847 + WICPngFilterUp + WICPngFilterUp +
+ + +

Indicates a PNG average filter.

+
+ + ee719847 + WICPngFilterAverage + WICPngFilterAverage +
+ + +

Indicates a PNG paeth filter.

+
+ + ee719847 + WICPngFilterPaeth + WICPngFilterPaeth +
+ + +

Indicates a PNG adaptive filter. This enables WIC to choose the best filtering mode on a per-scanline basis.

+
+ + ee719847 + WICPngFilterAdaptive + WICPngFilterAdaptive +
+ + +

Specifies the Portable Network Graphics (PNG) gAMA chunk metadata properties.

+
+ + ee719848 + WICPngGamaProperties + WICPngGamaProperties +
+ + +

[VT_UI4] Indicates the gamma value.

+
+ + ee719848 + WICPngGamaGamma + WICPngGamaGamma +
+ + +

Specifies the Portable Network Graphics (PNG) hIST chunk metadata properties.

+
+ + ee719849 + WICPngHistProperties + WICPngHistProperties +
+ + +

[VT_VECTOR | VT_UI2] Indicates the approximate usage frequency of each color in the color palette.

+
+ + ee719849 + WICPngHistFrequencies + WICPngHistFrequencies +
+ + +

Specifies the Portable Network Graphics (PNG) iCCP chunk metadata properties.

+
+ + ee719850 + WICPngIccpProperties + WICPngIccpProperties +
+ + +

[VT_LPSTR] Indicates the International Color Consortium (ICC) profile name.

+
+ + ee719850 + WICPngIccpProfileName + WICPngIccpProfileName +
+ + +

[VT_VECTOR | VT_UI1] Indicates the embedded ICC profile.

+
+ + ee719850 + WICPngIccpProfileData + WICPngIccpProfileData +
+ + +

Specifies the Portable Network Graphics (PNG) iTXT chunk metadata properties.

+
+ + ee719851 + WICPngItxtProperties + WICPngItxtProperties +
+ + +

[VT_LPSTR] Indicates the keywords in the iTXT metadata chunk.

+
+ + ee719851 + WICPngItxtKeyword + WICPngItxtKeyword +
+ + +

[VT_UI1] Indicates whether the text in the iTXT chunk is compressed. 1 if the text is compressed; otherwise, 0.

+
+ + ee719851 + WICPngItxtCompressionFlag + WICPngItxtCompressionFlag +
+ + +

[VT_LPSTR] Indicates the human language used by the translated keyword and the text.

+
+ + ee719851 + WICPngItxtLanguageTag + WICPngItxtLanguageTag +
+ + +

[VT_LPWSTR] Indicates a translation of the keyword into the language indicated by the language tag.

+
+ + ee719851 + WICPngItxtTranslatedKeyword + WICPngItxtTranslatedKeyword +
+ + +

[VT_LPWSTR] Indicates additional text in the iTXT metadata chunk.

+
+ + ee719851 + WICPngItxtText + WICPngItxtText +
+ + +

Specifies the Portable Network Graphics (PNG) sRGB chunk metadata properties.

+
+ + ee719852 + WICPngSrgbProperties + WICPngSrgbProperties +
+ + +

[VT_UI1] Indicates the rendering intent for an sRGB color space image. The rendering intents have the following meaning.

ValueMeaning
0Perceptual
1Relative colorimetric
2Saturation
3Absolute colorimetric

?

+
+ + ee719852 + WICPngSrgbRenderingIntent + WICPngSrgbRenderingIntent +
+ + +

Specifies the Portable Network Graphics (PNG) tIME chunk metadata properties.

+
+ + ee719853 + WICPngTimeProperties + WICPngTimeProperties +
+ + +

[VT_UI2] Indicates the year of the last modification.

+
+ + ee719853 + WICPngTimeYear + WICPngTimeYear +
+ + +

[VT_UI1] Indicates the month of the last modification.

+
+ + ee719853 + WICPngTimeMonth + WICPngTimeMonth +
+ + +

[VT_UI1] Indicates day of the last modification.

+
+ + ee719853 + WICPngTimeDay + WICPngTimeDay +
+ + +

[VT_UI1] Indicates the hour of the last modification.

+
+ + ee719853 + WICPngTimeHour + WICPngTimeHour +
+ + +

[VT_UI1] Indicates the minute of the last modification.

+
+ + ee719853 + WICPngTimeMinute + WICPngTimeMinute +
+ + +

[VT_UI1] Indicates the second of the last modification.

+
+ + ee719853 + WICPngTimeSecond + WICPngTimeSecond +
+ + +

Specifies when the progress notification callback should be called.

+
+ + ee719854 + WICProgressNotification + WICProgressNotification +
+ + +

The callback should be called when codec operations begin.

+
+ + ee719854 + WICProgressNotificationBegin + WICProgressNotificationBegin +
+ + +

The callback should be called when codec operations end.

+
+ + ee719854 + WICProgressNotificationEnd + WICProgressNotificationEnd +
+ + +

The callback should be called frequently to report status.

+
+ + ee719854 + WICProgressNotificationFrequent + WICProgressNotificationFrequent +
+ + +

The callback should be called on all available progress notifications.

+
+ + ee719854 + WICProgressNotificationAll + WICProgressNotificationAll +
+ + +

Specifies the progress operations to receive notifications for.

+
+ + ee719855 + WICProgressOperation + WICProgressOperation +
+ + +

Receive copy pixel operation.

+
+ + ee719855 + WICProgressOperationCopyPixels + WICProgressOperationCopyPixels +
+ + +

Receive write pixel operation.

+
+ + ee719855 + WICProgressOperationWritePixels + WICProgressOperationWritePixels +
+ + +

Receive all progress operations available.

+
+ + ee719855 + WICProgressOperationAll + WICProgressOperationAll +
+ + +

Specifies the capability support of a raw image.

+
+ + ee719856 + WICRawCapabilities + WICRawCapabilities +
+ + +

The capability is not supported.

+
+ + ee719856 + WICRawCapabilityNotSupported + WICRawCapabilityNotSupported +
+ + +

The capability supports only get operations.

+
+ + ee719856 + WICRawCapabilityGetSupported + WICRawCapabilityGetSupported +
+ + +

The capability supports get and set operations.

+
+ + ee719856 + WICRawCapabilityFullySupported + WICRawCapabilityFullySupported +
+ + +

Specifies the parameter set used by a raw codec.

+
+ + ee719858 + WICRawParameterSet + WICRawParameterSet +
+ + +

An as shot parameter set.

+
+ + ee719858 + WICAsShotParameterSet + WICAsShotParameterSet +
+ + +

A user adjusted parameter set.

+
+ + ee719858 + WICUserAdjustedParameterSet + WICUserAdjustedParameterSet +
+ + +

A codec adjusted parameter set.

+
+ + ee719858 + WICAutoAdjustedParameterSet + WICAutoAdjustedParameterSet +
+ + +

Specifies the render intent of the next CopyPixels call.

+
+ + ee719859 + WICRawRenderMode + WICRawRenderMode +
+ + + No documentation. + + + ee719859 + WICRawRenderModeDraft + WICRawRenderModeDraft + + + + No documentation. + + + ee719859 + WICRawRenderModeNormal + WICRawRenderModeNormal + + + + No documentation. + + + ee719859 + WICRawRenderModeBestQuality + WICRawRenderModeBestQuality + + + +

Specifies the rotation capabilities of the codec.

+
+ + ee719860 + WICRawRotationCapabilities + WICRawRotationCapabilities +
+ + +

Rotation is not supported.

+
+ + ee719860 + WICRawRotationCapabilityNotSupported + WICRawRotationCapabilityNotSupported +
+ + +

Set operations for rotation is not supported.

+
+ + ee719860 + WICRawRotationCapabilityGetSupported + WICRawRotationCapabilityGetSupported +
+ + +

90 degree rotations are supported.

+
+ + ee719860 + WICRawRotationCapabilityNinetyDegreesSupported + WICRawRotationCapabilityNinetyDegreesSupported +
+ + +

All rotation angles are supported.

+
+ + ee719860 + WICRawRotationCapabilityFullySupported + WICRawRotationCapabilityFullySupported +
+ + +

Specifies the access level of a Windows Graphics Device Interface (GDI) section.

+
+ + ee719864 + WICSectionAccessLevel + WICSectionAccessLevel +
+ + +

Indicates a read only access level.

+
+ + ee719864 + WICSectionAccessLevelRead + WICSectionAccessLevelRead +
+ + +

Indicates a read/write access level.

+
+ + ee719864 + WICSectionAccessLevelReadWrite + WICSectionAccessLevelReadWrite +
+ + +

Specifies the Tagged Image File Format (TIFF) compression options.

+
+ + ee719867 + WICTiffCompressionOption + WICTiffCompressionOption +
+ + +

Indicates a suitable compression algorithm based on the image and pixel format.

+
+ + ee719867 + WICTiffCompressionDontCare + WICTiffCompressionDontCare +
+ + +

Indicates no compression.

+
+ + ee719867 + WICTiffCompressionNone + WICTiffCompressionNone +
+ + +

Indicates a CCITT3 compression algorithm. This algorithm is only valid for 1bpp pixel formats.

+
+ + ee719867 + WICTiffCompressionCCITT3 + WICTiffCompressionCCITT3 +
+ + +

Indicates a CCITT4 compression algorithm. This algorithm is only valid for 1bpp pixel formats.

+
+ + ee719867 + WICTiffCompressionCCITT4 + WICTiffCompressionCCITT4 +
+ + +

Indicates a LZW compression algorithm.

+
+ + ee719867 + WICTiffCompressionLZW + WICTiffCompressionLZW +
+ + +

Indicates a RLE compression algorithm. This algorithm is only valid for 1bpp pixel formats.

+
+ + ee719867 + WICTiffCompressionRLE + WICTiffCompressionRLE +
+ + +

Indicates a ZIP compression algorithm.

+
+ + ee719867 + WICTiffCompressionZIP + WICTiffCompressionZIP +
+ + +

Indicates an LZWH differencing algorithm.

+
+ + ee719867 + WICTiffCompressionLZWHDifferencing + WICTiffCompressionLZWHDifferencing +
+ + + Functions + + + + + Constant Gif. + CLSID_WICGifDecoder + + + Constant Jpeg. + CLSID_WICJpegDecoder + + + Constant Png. + CLSID_WICPngDecoder + + + Constant Tiff. + CLSID_WICTiffDecoder + + + Constant Wmp. + CLSID_WICWmpDecoder + + + Constant Bmp. + CLSID_WICBmpDecoder + + + Constant Ico. + CLSID_WICIcoDecoder + + + + Functions + + + + + Constant Wmp. + CLSID_WICWmpEncoder + + + Constant Gif. + CLSID_WICGifEncoder + + + Constant Png. + CLSID_WICPngEncoder + + + Constant Bmp. + CLSID_WICBmpEncoder + + + Constant Tiff. + CLSID_WICTiffEncoder + + + Constant Jpeg. + CLSID_WICJpegEncoder + + + + Functions + + + + + Constant Gif. + GUID_ContainerFormatGif + + + Constant Ico. + GUID_ContainerFormatIco + + + Constant Jpeg. + GUID_ContainerFormatJpeg + + + Constant Wmp. + GUID_ContainerFormatWmp + + + Constant Tiff. + GUID_ContainerFormatTiff + + + Constant Png. + GUID_ContainerFormatPng + + + Constant Bmp. + GUID_ContainerFormatBmp + + + + Functions + + + + + Constant Format32bppBGR101010. + GUID_WICPixelFormat32bppBGR101010 + + + Constant Format72bpp8ChannelsAlpha. + GUID_WICPixelFormat72bpp8ChannelsAlpha + + + Constant Format2bppIndexed. + GUID_WICPixelFormat2bppIndexed + + + Constant Format32bppGrayFixedPoint. + GUID_WICPixelFormat32bppGrayFixedPoint + + + Constant Format1bppIndexed. + GUID_WICPixelFormat1bppIndexed + + + Constant Format64bpp8Channels. + GUID_WICPixelFormat64bpp8Channels + + + Constant Format16bppBGR555. + GUID_WICPixelFormat16bppBGR555 + + + Constant Format16bppBGR565. + GUID_WICPixelFormat16bppBGR565 + + + Constant Format32bppRGBA1010102XR. + GUID_WICPixelFormat32bppRGBA1010102XR + + + Constant Format112bpp7Channels. + GUID_WICPixelFormat112bpp7Channels + + + Constant Format128bppRGBFloat. + GUID_WICPixelFormat128bppRGBFloat + + + Constant Format48bppBGRFixedPoint. + GUID_WICPixelFormat48bppBGRFixedPoint + + + Constant Format24bppRGB. + GUID_WICPixelFormat24bppRGB + + + Constant Format64bpp4Channels. + GUID_WICPixelFormat64bpp4Channels + + + Constant Format24bpp3Channels. + GUID_WICPixelFormat24bpp3Channels + + + Constant Format32bppBGR. + GUID_WICPixelFormat32bppBGR + + + Constant Format48bppRGBFixedPoint. + GUID_WICPixelFormat48bppRGBFixedPoint + + + Constant Format64bpp3ChannelsAlpha. + GUID_WICPixelFormat64bpp3ChannelsAlpha + + + Constant Format2bppGray. + GUID_WICPixelFormat2bppGray + + + Constant FormatDontCare. + GUID_WICPixelFormatDontCare + + + Constant Format64bppBGRA. + GUID_WICPixelFormat64bppBGRA + + + Constant Format16bppBGRA5551. + GUID_WICPixelFormat16bppBGRA5551 + + + Constant Format96bpp6Channels. + GUID_WICPixelFormat96bpp6Channels + + + Constant FormatBlackWhite. + GUID_WICPixelFormatBlackWhite + + + Constant Format112bpp6ChannelsAlpha. + GUID_WICPixelFormat112bpp6ChannelsAlpha + + + Constant Format32bppPBGRA. + GUID_WICPixelFormat32bppPBGRA + + + Constant Format48bppRGBHalf. + GUID_WICPixelFormat48bppRGBHalf + + + Constant Format96bpp5ChannelsAlpha. + GUID_WICPixelFormat96bpp5ChannelsAlpha + + + Constant Format80bppCMYKAlpha. + GUID_WICPixelFormat80bppCMYKAlpha + + + Constant Format16bppGrayFixedPoint. + GUID_WICPixelFormat16bppGrayFixedPoint + + + Constant Format64bppRGBAFixedPoint. + GUID_WICPixelFormat64bppRGBAFixedPoint + + + Constant Format144bpp8ChannelsAlpha. + GUID_WICPixelFormat144bpp8ChannelsAlpha + + + Constant Format16bppGrayHalf. + GUID_WICPixelFormat16bppGrayHalf + + + Constant Format48bpp6Channels. + GUID_WICPixelFormat48bpp6Channels + + + Constant Format64bpp7ChannelsAlpha. + GUID_WICPixelFormat64bpp7ChannelsAlpha + + + Constant Format128bppRGBAFixedPoint. + GUID_WICPixelFormat128bppRGBAFixedPoint + + + Constant Format8bppIndexed. + GUID_WICPixelFormat8bppIndexed + + + Constant Format48bppRGB. + GUID_WICPixelFormat48bppRGB + + + Constant Format32bpp4Channels. + GUID_WICPixelFormat32bpp4Channels + + + Constant Format32bpp3ChannelsAlpha. + GUID_WICPixelFormat32bpp3ChannelsAlpha + + + Constant Format64bppCMYK. + GUID_WICPixelFormat64bppCMYK + + + Constant Format4bppIndexed. + GUID_WICPixelFormat4bppIndexed + + + Constant Format40bpp4ChannelsAlpha. + GUID_WICPixelFormat40bpp4ChannelsAlpha + + + Constant Format64bppRGBFixedPoint. + GUID_WICPixelFormat64bppRGBFixedPoint + + + Constant Format64bppPBGRA. + GUID_WICPixelFormat64bppPBGRA + + + Constant Format16bppGray. + GUID_WICPixelFormat16bppGray + + + Constant Format32bppBGRA. + GUID_WICPixelFormat32bppBGRA + + + Constant Format128bpp7ChannelsAlpha. + GUID_WICPixelFormat128bpp7ChannelsAlpha + + + Constant Format80bpp4ChannelsAlpha. + GUID_WICPixelFormat80bpp4ChannelsAlpha + + + Constant Format64bppRGBA. + GUID_WICPixelFormat64bppRGBA + + + Constant Format64bppBGRAFixedPoint. + GUID_WICPixelFormat64bppBGRAFixedPoint + + + Constant Format32bppPRGBA. + GUID_WICPixelFormat32bppPRGBA + + + Constant Format96bppRGBFixedPoint. + GUID_WICPixelFormat96bppRGBFixedPoint + + + Constant Format32bppRGBA1010102. + GUID_WICPixelFormat32bppRGBA1010102 + + + Constant Format32bppGrayFloat. + GUID_WICPixelFormat32bppGrayFloat + + + Constant Format48bpp3Channels. + GUID_WICPixelFormat48bpp3Channels + + + Constant Format64bppRGBAHalf. + GUID_WICPixelFormat64bppRGBAHalf + + + Constant Format80bpp5Channels. + GUID_WICPixelFormat80bpp5Channels + + + Constant Format40bppCMYKAlpha. + GUID_WICPixelFormat40bppCMYKAlpha + + + Constant Format56bpp7Channels. + GUID_WICPixelFormat56bpp7Channels + + + Constant Format128bppRGBFixedPoint. + GUID_WICPixelFormat128bppRGBFixedPoint + + + Constant Format128bpp8Channels. + GUID_WICPixelFormat128bpp8Channels + + + Constant Format40bpp5Channels. + GUID_WICPixelFormat40bpp5Channels + + + Constant Format8bppGray. + GUID_WICPixelFormat8bppGray + + + Constant Format32bppCMYK. + GUID_WICPixelFormat32bppCMYK + + + Constant Format24bppBGR. + GUID_WICPixelFormat24bppBGR + + + Constant Format4bppGray. + GUID_WICPixelFormat4bppGray + + + Constant Format64bppPRGBA. + GUID_WICPixelFormat64bppPRGBA + + + Constant Format128bppRGBAFloat. + GUID_WICPixelFormat128bppRGBAFloat + + + Constant Format48bpp5ChannelsAlpha. + GUID_WICPixelFormat48bpp5ChannelsAlpha + + + Constant Format32bppRGBA. + GUID_WICPixelFormat32bppRGBA + + + Constant Format32bppRGBE. + GUID_WICPixelFormat32bppRGBE + + + Constant Format56bpp6ChannelsAlpha. + GUID_WICPixelFormat56bpp6ChannelsAlpha + + + Constant Format128bppPRGBAFloat. + GUID_WICPixelFormat128bppPRGBAFloat + + + Constant Format48bppBGR. + GUID_WICPixelFormat48bppBGR + + + Constant Format64bppRGBHalf. + GUID_WICPixelFormat64bppRGBHalf + + + Constant Format8bppAlpha. + GUID_WICPixelFormat8bppAlpha + + + + Gets the number of bits per pixel for a particular pixel format. + + The pixel format guid. + The number of bits per pixel. If the pixel format guid is invalid, returns 0 + + + + Gets the stride in bytes from a pixel format and a width.. + + The pixel format guid. + The width. + The number of bytes per row. + + + + Functions + + + + + Constant UnexpectedMetadataType. + WINCODEC_ERR_UNEXPECTEDMETADATATYPE + + + Constant InvalidQueryCharacter. + WINCODEC_ERR_INVALIDQUERYCHARACTER + + + Constant InvalidParameter. + WINCODEC_ERR_INVALIDPARAMETER + + + Constant Codectoomanyscanlines. + WINCODEC_ERR_CODECTOOMANYSCANLINES + + + Constant Propertysize. + WINCODEC_ERR_PROPERTYSIZE + + + Constant OufOfMemory. + WINCODEC_ERR_OUTOFMEMORY + + + Constant NotInitializeD. + WINCODEC_ERR_NOTINITIALIZED + + + Constant Alreadylocked. + WINCODEC_ERR_ALREADYLOCKED + + + Constant Badheader. + WINCODEC_ERR_BADHEADER + + + Constant Valueoverflow. + WINCODEC_ERR_VALUEOVERFLOW + + + Constant Paletteunavailable. + WINCODEC_ERR_PALETTEUNAVAILABLE + + + Constant Componentinitializefailure. + WINCODEC_ERR_COMPONENTINITIALIZEFAILURE + + + Constant Aborted. + WINCODEC_ERR_ABORTED + + + Constant Imagesizeoutofrange. + WINCODEC_ERR_IMAGESIZEOUTOFRANGE + + + Constant UnsupportedPixelFormat. + WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT + + + Constant Componentnotfound. + WINCODEC_ERR_COMPONENTNOTFOUND + + + Constant InvalidRegistration. + WINCODEC_ERR_INVALIDREGISTRATION + + + Constant UnexpectedSize. + WINCODEC_ERR_UNEXPECTEDSIZE + + + Constant Internalerror. + WINCODEC_ERR_INTERNALERROR + + + Constant WrongState. + WINCODEC_ERR_WRONGSTATE + + + Constant Badstreamdata. + WINCODEC_ERR_BADSTREAMDATA + + + Constant Badmetadataheader. + WINCODEC_ERR_BADMETADATAHEADER + + + Constant Valueoutofrange. + WINCODEC_ERR_VALUEOUTOFRANGE + + + Constant NotImplemented. + WINCODEC_ERR_NOTIMPLEMENTED + + + Constant StreamWrite. + WINCODEC_ERR_STREAMWRITE + + + Constant Requestonlyvalidatmetadataroot. + WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT + + + Constant Codecpresent. + WINCODEC_ERR_CODECPRESENT + + + Constant SourceRectangleDoesnotmatchdimensions. + WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS + + + Constant StreamNotAvailable. + WINCODEC_ERR_STREAMNOTAVAILABLE + + + Constant InvalidQueryRequest. + WINCODEC_ERR_INVALIDQUERYREQUEST + + + Constant Base. + WINCODEC_ERR_BASE + + + Constant Unknownimageformat. + WINCODEC_ERR_UNKNOWNIMAGEFORMAT + + + Constant GenericError. + WINCODEC_ERR_GENERIC_ERROR + + + Constant TooMuchmetadata. + WINCODEC_ERR_TOOMUCHMETADATA + + + Constant InvalidProgressivelevel. + WINCODEC_ERR_INVALIDPROGRESSIVELEVEL + + + Constant StreamRead. + WINCODEC_ERR_STREAMREAD + + + Constant Insufficientbuffer. + WINCODEC_ERR_INSUFFICIENTBUFFER + + + Constant UnsupportedVersion. + WINCODEC_ERR_UNSUPPORTEDVERSION + + + Constant Duplicatemetadatapresent. + WINCODEC_ERR_DUPLICATEMETADATAPRESENT + + + Constant Codecnothumbnail. + WINCODEC_ERR_CODECNOTHUMBNAIL + + + Constant Badimage. + WINCODEC_ERR_BADIMAGE + + + Constant FrameMissing. + WINCODEC_ERR_FRAMEMISSING + + + Constant Propertynotsupported. + WINCODEC_ERR_PROPERTYNOTSUPPORTED + + + Constant UnsupportedOperation. + WINCODEC_ERR_UNSUPPORTEDOPERATION + + + Constant Win32error. + WINCODEC_ERR_WIN32ERROR + + + Constant AccessDenied. + WINCODEC_ERR_ACCESSDENIED + + + Constant Propertyunexpectedtype. + WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE + + + Constant Propertynotfound. + WINCODEC_ERR_PROPERTYNOTFOUND + + + +

Defines methods that add the concept of writeability and static in-memory representations of bitmaps to .

+
+ +

inherits from and therefore also inherits the CopyPixels method. When pixels need to be moved to a new memory location, CopyPixels is often the most efficient.

Because of to the internal memory representation implied by the , in-place modification and processing using the Lock is more efficient than CopyPixels, usually reducing to a simple reference access directly into the memory owned by the bitmap rather than a as a copy. This is contrasted to procedural bitmaps which implement only CopyPixels because there is no internal memory representation and one would need to be created on demand to satisfy a call to Lock.

+
+ + ee719675 + IWICBitmap + IWICBitmap +
+ + +

Exposes methods that refers to a source from which pixels are retrieved, but cannot be written back to.

+
+ +

This interface provides a common way of accessing and linking together bitmaps, decoders, format converters, and scalers. Components that implement this interface can be connected together in a graph to pull imaging data through.

This interface defines only the notion of readability or being able to produce pixels. Modifying or writing to a bitmap is considered to be a specialization specific to bitmaps which have storage and is defined in the descendant interface .

+
+ + ee690171 + IWICBitmapSource + IWICBitmapSource +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the pixel width and height of the bitmap.

+
+

A reference that receives the pixel width of the bitmap.

+

A reference that receives the pixel height of the bitmap

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690185 + HRESULT IWICBitmapSource::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight) + IWICBitmapSource::GetSize +
+ + +

Retrieves the pixel format of the bitmap source..

+
+

Receives the pixel format the bitmap is stored in. For a list of available pixel formats, see the Native Pixel Formats topic.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The pixel format returned by this method is not necessarily the pixel format the image is stored as. The codec may perform a format conversion from the storage pixel format to an output pixel format.

+
+ + ee690181 + HRESULT IWICBitmapSource::GetPixelFormat([Out] GUID* pPixelFormat) + IWICBitmapSource::GetPixelFormat +
+ + +

Retrieves the sampling rate between pixels and physical world measurements.

+
+

A reference that receives the x-axis dpi resolution.

+

A reference that receives the y-axis dpi resolution.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Some formats, such as GIF and ICO, do not have full DPI support. For GIF, this method calculates the DPI values from the aspect ratio, using a base DPI of (96.0, 96.0). The ICO format does not support DPI at all, and the method always returns (96.0,96.0) for ICO images.

Additionally, WIC itself does not transform images based on the DPI values in an image. It is up to the caller to transform an image based on the resolution returned.

+
+ + ee690183 + HRESULT IWICBitmapSource::GetResolution([Out] double* pDpiX,[Out] double* pDpiY) + IWICBitmapSource::GetResolution +
+ + +

Retrieves the color table for indexed pixel formats.

+
+

An . A palette can be created using the CreatePalette method.

+

Returns one of the following values.

Return codeDescription

The palette was unavailable.

The palette was successfully copied.

?

+ +

If the is an , the function may return the image's global palette if a frame-level palette is not available. The global palette may also be retrieved using the CopyPalette method.

+
+ + ee690177 + HRESULT IWICBitmapSource::CopyPalette([In, Optional] IWICPalette* pIPalette) + IWICBitmapSource::CopyPalette +
+ + +

Instructs the object to produce pixels.

+
+

The rectangle to copy. A null value specifies the entire bitmap.

+

The stride of the bitmap

+

The size of the buffer.

+

A reference to the buffer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

+
+ + ee690179 + HRESULT IWICBitmapSource::CopyPixels([In] const void* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +
+ + +

Instructs the object to produce pixels.

+
+

The rectangle to copy. A null value specifies the entire bitmap.

+

The stride of the bitmap

+

A reference to the buffer.

+ +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +
+ + +

Instructs the object to produce pixels.

+
+

The stride of the bitmap

+

A reference to the buffer.

+ +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +
+ + +

Instructs the object to produce pixels.

+
+

The stride of the bitmap

+

A reference to the buffer.

+ Size of the buffer in bytes. + +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +
+ + +

Instructs the object to produce pixels.

+
+ Type of a pixel. This parameter must exactly match a pixel like using for a 32bit RGBA color or for a 64bits for a RGBA 4 floats color. +

The rectangle to copy. A null value specifies the entire bitmap.

+ The destination array. The size of the array must be sizeof(pixel) * rectangle.Width * rectangle.Height +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ output.Length must be equal to Width * Height + ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ + +

Instructs the object to produce pixels.

+
+ Type of a pixel. This parameter must exactly match a pixel like using for a 32bit RGBA color or for a 64bits for a RGBA 4 floats color. + The destination array. The size of the array must be sizeof(pixel) * Width * Height +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +
+ + +

Instructs the object to produce pixels.

+
+ The destination array. The size of the array must be sizeof(pixel) * Width * Height + The stride (number of bytes per row). +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ output.Length must be equal to Width * Height + ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ + +

Instructs the object to produce pixels.

+
+ The destination array. The size of the array must be sizeof(pixel) * Width * Height + The stride (number of bytes per row). +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ output.Length must be equal to Width * Height + ee690179 + HRESULT IWICBitmapSource::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSource::CopyPixels +

CopyPixels is one of the two main image processing routines (the other being Lock) triggering the actual processing. It instructs the object to produce pixels according to its algorithm - this may involve decoding a portion of a JPEG stored on disk, copying a block of memory, or even analytically computing a complex gradient. The algorithm is completely dependent on the object implementing the interface.

The caller can restrict the operation to a rectangle of interest (ROI) using the prc parameter. The ROI sub-rectangle must be fully contained in the bounds of the bitmap. Specifying a null ROI implies that the whole bitmap should be returned. +

The caller controls the memory management and must provide an output buffer (pbBuffer) for the results of the copy along with the buffer's bounds (cbBufferSize). The cbStride parameter defines the count of bytes between two vertically adjacent pixels in the output buffer. The caller must ensure that there is sufficient buffer to complete the call based on the width, height and pixel format of the bitmap and the sub-rectangle provided to the copy method.

If the caller needs to perform numerous copies of an expensive such as a JPEG, it is recommended to create an in-memory first.

Codec Developer Remarks

The callee must only write to the first (prc->Width*bitsperpixel+7)/8 bytes of each line of the output buffer (in this case, a line is a consecutive string of cbStride bytes).

+
+ + +

Retrieves the pixel format of the bitmap source..

+
+ +

The pixel format returned by this method is not necessarily the pixel format the image is stored as. The codec may perform a format conversion from the storage pixel format to an output pixel format.

+
+ + ee690181 + GetPixelFormat + GetPixelFormat + HRESULT IWICBitmapSource::GetPixelFormat([Out] GUID* pPixelFormat) +
+ + +

Retrieves the pixel width and height of the bitmap.

+
+ HRESULT IWICBitmapSource::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight) + ee690185 + HRESULT IWICBitmapSource::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight) + IWICBitmapSource::GetSize +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Provides access to a rectangular area of the bitmap.

+
+

The rectangle to be accessed.

+

The access mode you wish to obtain for the lock. This is a bitwise combination of for read, write, or read and write access.

ValueMeaning

The read access lock.

The write access lock.

?

+

A reference that receives the locked memory location.

+ +

Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixels while the is locked for writing. Doing so will return an error, since locks are exclusive.

+
+ + ee690187 + HRESULT IWICBitmap::Lock([In] const void* prcLock,[In] WICBitmapLockFlags flags,[Out] IWICBitmapLock** ppILock) + IWICBitmap::Lock +
+ + +

Provides access for palette modifications.

+
+

The palette to use for conversion.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690189 + HRESULT IWICBitmap::SetPalette([In, Optional] IWICPalette* pIPalette) + IWICBitmap::SetPalette +
+ + +

Changes the physical resolution of the image.

+
+

The horizontal resolution.

+

The vertical resolution.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method has no effect on the actual pixels or samples stored in the bitmap. Instead the interpretation of the sampling rate is modified. This means that a 96 DPI image which is 96 pixels wide is one inch. If the physical resolution is modified to 48 DPI, then the bitmap is considered to be 2 inches wide but has the same number of pixels. If the resolution is less than REAL_EPSILON (1.192092896e-07F) the error code is returned.

+
+ + ee690191 + HRESULT IWICBitmap::SetResolution([In] double dpiX,[In] double dpiY) + IWICBitmap::SetResolution +
+ + + Initializes a new instance of the class. + + The factory. + The width. + The height. + The pixel format. for a list of valid formats. + The option. + ee690282 + HRESULT IWICImagingFactory::CreateBitmap([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmap + + + + Initializes a new instance of the class from a memory location using . + + The factory. + The width. + The height. + The pixel format. + The data rectangle. + Size of the buffer in . If == 0, calculate the size automatically based on the height and row pitch. + ee690291 + HRESULT IWICImagingFactory::CreateBitmapFromMemory([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromMemory + + + + Initializes a new instance of the class from a + + The factory. + The bitmap source ref. + The option. + ee690293 + HRESULT IWICImagingFactory::CreateBitmapFromSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromSource + + + + Initializes a new instance of the class from a . + + The factory. + The bitmap source. + The rectangle. + ee690294 + HRESULT IWICImagingFactory::CreateBitmapFromSourceRect([In, Optional] IWICBitmapSource* pIBitmapSource,[In] unsigned int x,[In] unsigned int y,[In] unsigned int width,[In] unsigned int height,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromSourceRect + + + + Initializes a new instance of the class from an array of pixel data. + + The factory. + The width. + The height. + The pixel format. + The pixel data. + Stride of a row of pixels (number of bytes per row). By default the stride is == 0, and calculated by taking the sizeof(T) * width. + ee690291 + HRESULT IWICImagingFactory::CreateBitmapFromMemory([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromMemory + + + +

Provides access to a rectangular area of the bitmap.

+
+

The access mode you wish to obtain for the lock. This is a bitwise combination of for read, write, or read and write access.

ValueMeaning

The read access lock.

The write access lock.

?

+

A reference that receives the locked memory location.

+ +

Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixels while the is locked for writing. Doing so will return an error, since locks are exclusive.

+
+ ee690187 + HRESULT IWICBitmap::Lock([In, Optional] const WICRect* prcLock,[In] WICBitmapLockFlags flags,[Out] IWICBitmapLock** ppILock) + IWICBitmap::Lock +
+ + +

Provides access to a rectangular area of the bitmap.

+
+

The rectangle to be accessed.

+

The access mode you wish to obtain for the lock. This is a bitwise combination of for read, write, or read and write access.

ValueMeaning

The read access lock.

The write access lock.

?

+

A reference that receives the locked memory location.

+ +

Locks are exclusive for writing but can be shared for reading. You cannot call CopyPixels while the is locked for writing. Doing so will return an error, since locks are exclusive.

+
+ ee690187 + HRESULT IWICBitmap::Lock([In, Optional] const WICRect* prcLock,[In] WICBitmapLockFlags flags,[Out] IWICBitmapLock** ppILock) + IWICBitmap::Lock +
+ + + Initializes a new instance of the class from a . + + The factory. + The icon. + HRESULT IWICImagingFactory::CreateBitmapFromHICON([In] HICON hIcon,[Out, Fast] IWICBitmap** ppIBitmap) + + + + Initializes a new instance of the class from a . + + The factory. + The bitmap. + The options. + HRESULT IWICImagingFactory::CreateBitmapFromHBITMAP([In] HBITMAP hBitmap,[In, Optional] HPALETTE hPalette,[In] WICBitmapAlphaChannelOption options,[Out, Fast] IWICBitmap** ppIBitmap) + + + +

Provides access for palette modifications.

+
+ + ee690189 + SetPalette + SetPalette + HRESULT IWICBitmap::SetPalette([In, Optional] IWICPalette* pIPalette) +
+ + +

Exposes methods that produce a clipped version of the input bitmap for a specified rectangular region of interest.

+
+ + ee719676 + IWICBitmapClipper + IWICBitmapClipper +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the bitmap clipper with the provided parameters.

+
+

he input bitmap source.

+

The rectangle of the bitmap source to clip.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719677 + HRESULT IWICBitmapClipper::Initialize([In, Optional] IWICBitmapSource* pISource,[In] const void* prc) + IWICBitmapClipper::Initialize +
+ + + Initializes a new instance of the class. + + The factory. + + + +

Initializes the bitmap clipper with the provided parameters.

+
+

he input bitmap source.

+

The rectangle of the bitmap source to clip.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ ee719677 + HRESULT IWICBitmapClipper::Initialize([In, Optional] IWICBitmapSource* pISource,[In] const WICRect* prc) + IWICBitmapClipper::Initialize +
+ + +

Exposes methods that provide information about a particular codec.

+
+ + ee719679 + IWICBitmapCodecInfo + IWICBitmapCodecInfo +
+ + +

Exposes methods that provide component information.

+
+ + ee690213 + IWICComponentInfo + IWICComponentInfo +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the component's .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690218 + HRESULT IWICComponentInfo::GetComponentType([Out] WICComponentType* pType) + IWICComponentInfo::GetComponentType +
+ + +

Retrieves the component's class identifier (CLSID)

+
+

A reference that receives the component's CLSID.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690216 + HRESULT IWICComponentInfo::GetCLSID([Out] GUID* pclsid) + IWICComponentInfo::GetCLSID +
+ + +

Retrieves the signing status of the component.

+
+

A reference that receives the status of the component.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Signing is unused by WIC. Therefore, all components .

This function can be used to determine whether a component has no binary component or has been added to the disabled components list in the registry.

+
+ + ee690221 + HRESULT IWICComponentInfo::GetSigningStatus([Out] unsigned int* pStatus) + IWICComponentInfo::GetSigningStatus +
+ + +

Retrieves the name of component's author.

+
+

The size of the wzAuthor buffer.

+

A reference that receives the name of the component's author. The locale of the string depends on the value that the codec wrote to the registry at install time. For built-in components, these strings are always in English.

+

A reference that receives the actual length of the component's authors name. The author name is optional; if an author name is not specified by the component, the length returned is 0.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If cchAuthor is 0 and wzAuthor is null, the required buffer size is returned in pccchActual.

+
+ + ee690214 + HRESULT IWICComponentInfo::GetAuthor([In] unsigned int cchAuthor,[In] void* wzAuthor,[Out] unsigned int* pcchActual) + IWICComponentInfo::GetAuthor +
+ + +

Retrieves the vendor .

+
+

A reference that receives the component's vendor .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690225 + HRESULT IWICComponentInfo::GetVendorGUID([Out] GUID* pguidVendor) + IWICComponentInfo::GetVendorGUID +
+ + +

Retrieves the component's version.

+
+

The size of the wzVersion buffer.

+

A reference that receives a culture invariant string of the component's version.

+

A reference that receives the actual length of the component's version. The version is optional; if a value is not specified by the component, the length returned is 0.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

All built-in components return "1.0.0.0", except for pixel formats, which do not have a version.

If cchAuthor is 0 and wzAuthor is null, the required buffer size is returned in pccchActual.

+
+ + ee690226 + HRESULT IWICComponentInfo::GetVersion([In] unsigned int cchVersion,[In] void* wzVersion,[Out] unsigned int* pcchActual) + IWICComponentInfo::GetVersion +
+ + +

Retrieves the component's specification version.

+
+

The size of the wzSpecVersion buffer.

+

When this method returns, contain a culture invarient string of the component's specification version. The version form is NN.NN.NN.NN.

+

A reference that receives the actual length of the component's specification version. The specification version is optional; if a value is not specified by the component, the length returned is 0.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

All built-in components return "1.0.0.0", except for pixel formats, which do not have a spec version.

If cchAuthor is 0 and wzAuthor is null, the required buffer size is returned in pccchActual.

+
+ + ee690223 + HRESULT IWICComponentInfo::GetSpecVersion([In] unsigned int cchSpecVersion,[In] void* wzSpecVersion,[Out] unsigned int* pcchActual) + IWICComponentInfo::GetSpecVersion +
+ + +

Retrieves the component's friendly name, which is a human-readable display name for the component.

+
+

The size of the wzFriendlyName buffer.

+

A reference that receives the friendly name of the component. The locale of the string depends on the value that the codec wrote to the registry at install time. For built-in components, these strings are always in English.

+

A reference that receives the actual length of the component's friendly name.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If cchFriendlyName is 0 and wzFriendlyName is null, the required buffer size is returned in pccchActual.

+
+ + ee690219 + HRESULT IWICComponentInfo::GetFriendlyName([In] unsigned int cchFriendlyName,[In] void* wzFriendlyName,[Out] unsigned int* pcchActual) + IWICComponentInfo::GetFriendlyName +
+ + + Initializes a new instance of the class. + + The factory. + The CLSID component. + + + +

Retrieves the component's .

+
+ + ee690218 + GetComponentType + GetComponentType + HRESULT IWICComponentInfo::GetComponentType([Out] WICComponentType* pType) +
+ + +

Retrieves the component's class identifier (CLSID)

+
+ + ee690216 + GetCLSID + GetCLSID + HRESULT IWICComponentInfo::GetCLSID([Out] GUID* pclsid) +
+ + +

Retrieves the signing status of the component.

+
+ +

Signing is unused by WIC. Therefore, all components .

This function can be used to determine whether a component has no binary component or has been added to the disabled components list in the registry.

+
+ + ee690221 + GetSigningStatus + GetSigningStatus + HRESULT IWICComponentInfo::GetSigningStatus([Out] unsigned int* pStatus) +
+ + +

Retrieves the vendor .

+
+ + ee690225 + GetVendorGUID + GetVendorGUID + HRESULT IWICComponentInfo::GetVendorGUID([Out] GUID* pguidVendor) +
+ + + Gets the author. + + HRESULT IWICComponentInfo::GetAuthor([In] unsigned int cchAuthor,[InOut, Buffer, Optional] wchar_t* wzAuthor,[Out] unsigned int* pcchActual) + + + + Gets the version. + + HRESULT IWICComponentInfo::GetVersion([In] unsigned int cchVersion,[InOut, Buffer, Optional] wchar_t* wzVersion,[Out] unsigned int* pcchActual) + + + + Gets the spec version. + + HRESULT IWICComponentInfo::GetSpecVersion([In] unsigned int cchSpecVersion,[InOut, Buffer, Optional] wchar_t* wzSpecVersion,[Out] unsigned int* pcchActual) + + + + Gets the friendly name. + + + The name of the friendly. + + HRESULT IWICComponentInfo::GetFriendlyName([In] unsigned int cchFriendlyName,[InOut, Buffer, Optional] wchar_t* wzFriendlyName,[Out] unsigned int* pcchActual) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the container associated with the codec.

+
+

Receives the container .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719688 + HRESULT IWICBitmapCodecInfo::GetContainerFormat([Out] GUID* pguidContainerFormat) + IWICBitmapCodecInfo::GetContainerFormat +
+ + +

Retrieves the pixel formats the codec supports.

+
+

The size of the pguidPixelFormats array. Use 0 on first call to determine the needed array size.

+

Receives the supported pixel formats. Use null on first call to determine needed array size.

+

The array size needed to retrieve all supported pixel formats.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The usage pattern for this method is a two call process. The first call retrieves the array size needed to retrieve all the supported pixel formats by calling it with cFormats set to 0 and pguidPixelFormats set to null. This call sets pcActual to the array size needed. Once the needed array size is determined, a second GetPixelFormats call with pguidPixelFormats set to an array of the appropriate size will retrieve the pixel formats.

+
+ + ee690082 + HRESULT IWICBitmapCodecInfo::GetPixelFormats([In] unsigned int cFormats,[In, Buffer] GUID* pguidPixelFormats,[Out] unsigned int* pcActual) + IWICBitmapCodecInfo::GetPixelFormats +
+ + +

Retrieves the color manangement version number the codec supports.

+
+

The size of the version buffer. Use 0 on first call to determine needed buffer size.

+

Receives the color management version number. Use null on first call to determine needed buffer size.

+

The actual buffer size needed to retrieve the full color management version number.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The usage pattern for this method is a two call process. The first call retrieves the buffer size needed to retrieve the full color management version number by calling it with cchColorManagementVersion set to 0 and wzColorManagementVersion set to null. This call sets pcchActual to the buffer size needed. Once the needed buffer size is determined, a second GetColorManagementVersion call with cchColorManagementVersion set to the buffer size and wzColorManagementVersion set to a buffer of the appropriate size will retrieve the pixel formats.

+
+ + ee719687 + HRESULT IWICBitmapCodecInfo::GetColorManagementVersion([In] unsigned int cchColorManagementVersion,[In] void* wzColorManagementVersion,[Out] unsigned int* pcchActual) + IWICBitmapCodecInfo::GetColorManagementVersion +
+ + +

Retrieves the name of the device manufacture associated with the codec.

+
+

The size of the device manufacture's name. Use 0 on first call to determine needed buffer size.

+

Receives the device manufacture's name. Use null on first call to determine needed buffer size.

+

The actual buffer size needed to retrieve the device manufacture's name.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The usage pattern for this method is a two call process. The first call retrieves the buffer size needed to retrieve the full color management version number by calling it with cchDeviceManufacturer set to 0 and wzDeviceManufacturer set to null. This call sets pcchActual to the buffer size needed. Once the needed buffer size is determined, a second GetDeviceManufacturer call with cchDeviceManufacturer set to the buffer size and wzDeviceManufacturer set to a buffer of the appropriate size will retrieve the pixel formats.

+
+ + ee719690 + HRESULT IWICBitmapCodecInfo::GetDeviceManufacturer([In] unsigned int cchDeviceManufacturer,[In] void* wzDeviceManufacturer,[Out] unsigned int* pcchActual) + IWICBitmapCodecInfo::GetDeviceManufacturer +
+ + +

Retrieves a comma delimited list of device models associated with the codec.

+
+

The size of the device models buffer. Use 0 on first call to determine needed buffer size.

+

Receives a comma delimited list of device model names associated with the codec. Use null on first call to determine needed buffer size.

+

The actual buffer size needed to retrieve all of the device model names.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The usage pattern for this method is a two call process. The first call retrieves the buffer size needed to retrieve the full color management version number by calling it with cchDeviceModels set to 0 and wzDeviceModels set to null. This call sets pcchActual to the buffer size needed. Once the needed buffer size is determined, a second GetDeviceModels call with cchDeviceModels set to the buffer size and wzDeviceModels set to a buffer of the appropriate size will retrieve the pixel formats.

+
+ + ee719692 + HRESULT IWICBitmapCodecInfo::GetDeviceModels([In] unsigned int cchDeviceModels,[In] void* wzDeviceModels,[Out] unsigned int* pcchActual) + IWICBitmapCodecInfo::GetDeviceModels +
+ + +

Retrieves a comma delimited sequence of mime types associated with the codec.

+
+

The size of the mime types buffer. Use 0 on first call to determine needed buffer size.

+

Receives the mime types associated with the codec. Use null on first call to determine needed buffer size.

+

The actual buffer size needed to retrieve all mime types associated with the codec.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The usage pattern for this method is a two call process. The first call retrieves the buffer size needed to retrieve the full color management version number by calling it with cchMimeTypes set to 0 and wzMimeTypes set to null. This call sets pcchActual to the buffer size needed. Once the needed buffer size is determined, a second GetMimeTypes call with cchMimeTypes set to the buffer size and wzMimeTypes set to a buffer of the appropriate size will retrieve the pixel formats.

+
+ + ee719696 + HRESULT IWICBitmapCodecInfo::GetMimeTypes([In] unsigned int cchMimeTypes,[In] void* wzMimeTypes,[Out] unsigned int* pcchActual) + IWICBitmapCodecInfo::GetMimeTypes +
+ + +

Retrieves a comma delimited list of the file name extensions associated with the codec.

+
+

The size of the file name extension buffer. Use 0 on first call to determine needed buffer size.

+

Receives a comma delimited list of file name extensions associated with the codec. Use null on first call to determine needed buffer size.

+

The actual buffer size needed to retrieve all file name extensions associated with the codec.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The default extension for an image encoder is the first item in the list of returned extensions.

The usage pattern for this method is a two call process. The first call retrieves the buffer size needed to retrieve the full color management version number by calling it with cchFileExtensions set to 0 and wzFileExtensions set to null. This call sets pcchActual to the buffer size needed. Once the needed buffer size is determined, a second GetFileExtensions call with cchFileExtensions set to the buffer size and wzFileExtensions set to a buffer of the appropriate size will retrieve the pixel formats.

+
+ + ee719694 + HRESULT IWICBitmapCodecInfo::GetFileExtensions([In] unsigned int cchFileExtensions,[In] void* wzFileExtensions,[Out] unsigned int* pcchActual) + IWICBitmapCodecInfo::GetFileExtensions +
+ + +

Retrieves a value indicating whether the codec supports animation.

+
+

Receives TRUE if the codec supports images with timing information; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719680 + HRESULT IWICBitmapCodecInfo::DoesSupportAnimation([Out] BOOL* pfSupportAnimation) + IWICBitmapCodecInfo::DoesSupportAnimation +
+ + +

Retrieves a value indicating whether the codec supports chromakeys.

+
+

Receives TRUE if the codec supports chromakeys; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719682 + HRESULT IWICBitmapCodecInfo::DoesSupportChromakey([Out] BOOL* pfSupportChromakey) + IWICBitmapCodecInfo::DoesSupportChromakey +
+ + +

Retrieves a value indicating whether the codec supports lossless formats.

+
+

Receives TRUE if the codec supports lossless formats; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719683 + HRESULT IWICBitmapCodecInfo::DoesSupportLossless([Out] BOOL* pfSupportLossless) + IWICBitmapCodecInfo::DoesSupportLossless +
+ + +

Retrieves a value indicating whether the codec supports multi frame images.

+
+

Receives TRUE if the codec supports multi frame images; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719685 + HRESULT IWICBitmapCodecInfo::DoesSupportMultiframe([Out] BOOL* pfSupportMultiframe) + IWICBitmapCodecInfo::DoesSupportMultiframe +
+ + +

Retrieves a value indicating whether the given mime type matches the mime type of the codec.

+
+

The mime type to compare.

+

Receives TRUE if the mime types match; otherwise, .

+ +

Note??The Windows provided codecs do not implement this method and return E_NOTIMPL.

+
+ + ee690083 + HRESULT IWICBitmapCodecInfo::MatchesMimeType([In] const wchar_t* wzMimeType,[Out] BOOL* pfMatches) + IWICBitmapCodecInfo::MatchesMimeType +
+ + +

Retrieves the container associated with the codec.

+
+ + ee719688 + GetContainerFormat + GetContainerFormat + HRESULT IWICBitmapCodecInfo::GetContainerFormat([Out] GUID* pguidContainerFormat) +
+ + +

Retrieves a value indicating whether the codec supports animation.

+
+ + ee719680 + DoesSupportAnimation + DoesSupportAnimation + HRESULT IWICBitmapCodecInfo::DoesSupportAnimation([Out] BOOL* pfSupportAnimation) +
+ + +

Retrieves a value indicating whether the codec supports chromakeys.

+
+ + ee719682 + DoesSupportChromakey + DoesSupportChromakey + HRESULT IWICBitmapCodecInfo::DoesSupportChromakey([Out] BOOL* pfSupportChromakey) +
+ + +

Retrieves a value indicating whether the codec supports lossless formats.

+
+ + ee719683 + DoesSupportLossless + DoesSupportLossless + HRESULT IWICBitmapCodecInfo::DoesSupportLossless([Out] BOOL* pfSupportLossless) +
+ + +

Retrieves a value indicating whether the codec supports multi frame images.

+
+ + ee719685 + DoesSupportMultiframe + DoesSupportMultiframe + HRESULT IWICBitmapCodecInfo::DoesSupportMultiframe([Out] BOOL* pfSupportMultiframe) +
+ + + Gets the pixel formats the codec supports. + + + + + Gets the color management version number the codec supports. + + + + + Gets the name of the device manufacture associated with the codec. + + + + + Gets a comma delimited list of device models associated with the codec. + + + + + Gets a comma delimited sequence of mime types associated with the codec. + + + + + Gets a comma delimited list of the file name extensions associated with the codec. + + + + +

Exposes methods used for progress notification for encoders and decoders.

+
+ +

This interface is not supported by the Windows provided codecs.

+
+ + ee690084 + IWICBitmapCodecProgressNotification + IWICBitmapCodecProgressNotification +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Registers a progress notification callback function.

+
+

A function reference to the application defined progress notification callback function. See ProgressNotificationCallback for the callback signature.

+

A reference to component data for the callback method.

+

The and flags to use for progress notification.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Applications can only register a single callback. Subsequent registration calls will replace the previously registered callback. To unregister a callback, pass in null or register a new callback function.

Progress is reported in an increasing order between 0.0 and 1.0. If dwProgressFlags includes , the callback is guaranteed to be called with progress 0.0. If dwProgressFlags includes , the callback is guaranteed to be called with progress 1.0.

increases the frequency in which the callback is called. If an operation is expected to take more than 30 seconds, should be added to dwProgressFlags.

+
+ + ee690085 + HRESULT IWICBitmapCodecProgressNotification::RegisterProgressNotification([In, Optional] __function__stdcall* pfnProgressNotification,[In, Optional] void* pvData,[In] unsigned int dwProgressFlags) + IWICBitmapCodecProgressNotification::RegisterProgressNotification +
+ + +

Exposes methods that represent a decoder.

The interface provides access to the decoder's properties such as global thumbnails (if supported), frames, and palette.

+
+ +

There are a number of concrete implemenations of this interface representing each of the standard decoders provided by the platform including bitmap (BMP), Portable Network Graphics (PNG), icon (ICO), Joint Photographic Experts Group (JPEG), Graphics Interchange Format (GIF), Tagged Image File Format (TIFF), and Microsoft?Windows Digital Photo (WDP). The following table includes the class identifier (CLSID) for each native decoder.

CLSID NameCLSID
0x6b462062, 0x7cbf, 0x400d, 0x9f, 0xdb, 0x81, 0x3d, 0xd1, 0xf, 0x27, 0x78
0x389ea17b, 0x5078, 0x4cde, 0xb6, 0xef, 0x25, 0xc1, 0x51, 0x75, 0xc7, 0x51
0xc61bfcdf, 0x2e0f, 0x4aad, 0xa8, 0xd7, 0xe0, 0x6b, 0xaf, 0xeb, 0xcd, 0xfe
0x9456a480, 0xe88b, 0x43ea, 0x9e, 0x73, 0xb, 0x2d, 0x9b, 0x71, 0xb1, 0xca
0x381dda3c, 0x9ce9, 0x4834, 0xa2, 0x3e, 0x1f, 0x98, 0xf8, 0xfc, 0x52, 0xbe
0xb54e85d9, 0xfe23, 0x499f, 0x8b, 0x88, 0x6a, 0xce, 0xa7, 0x13, 0x75, 0x2b
0xa26cec36, 0x234c, 0x4950, 0xae, 0x16, 0xe3, 0x4a, 0xac, 0xe7, 0x1d, 0x0d

?

This interface may be sub-classed to provide support for third party codecs as part of the extensibility model. See the AITCodec Sample CODEC.

Codecs written as TIFF container formats that are not register will decode as a TIFF image. Client applications should check for a zero frame count to determine if the codec is valid.

+
+ + ee690086 + IWICBitmapDecoder + IWICBitmapDecoder +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the capabilities of the decoder based on the specified stream.

+
+

The stream to retrieve the decoder capabilities from.

+

The of the decoder.

+ +

Custom decoder implementations should save the current position of the specified , read whatever information is necessary in order to determine which capabilities it can provide for the supplied stream, and restore the stream position.

+
+ + ee690109 + HRESULT IWICBitmapDecoder::QueryCapability([In, Optional] IStream* pIStream,[Out] WICBitmapDecoderCapabilities* pdwCapability) + IWICBitmapDecoder::QueryCapability +
+ + +

Initializes the decoder with the provided stream.

+
+

The stream to use for initialization.

The stream contains the encoded pixels which are decoded each time the CopyPixels method on the interface (see GetFrame) is invoked.

+

The to use for initialization.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690108 + HRESULT IWICBitmapDecoder::Initialize([In, Optional] IStream* pIStream,[In] WICDecodeOptions cacheOptions) + IWICBitmapDecoder::Initialize +
+ + +

Retrieves the image's container format.

+
+

A reference that receives the image's container format .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690095 + HRESULT IWICBitmapDecoder::GetContainerFormat([Out] GUID* pguidContainerFormat) + IWICBitmapDecoder::GetContainerFormat +
+ + +

Retrieves an for the image.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690096 + HRESULT IWICBitmapDecoder::GetDecoderInfo([Out] IWICBitmapDecoderInfo** ppIDecoderInfo) + IWICBitmapDecoder::GetDecoderInfo +
+ + +

Copies the decoder's .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

CopyPalette returns a global palette (a palette that applies to all the frames in the image) if there is one; otherwise, it returns . If an image doesn't have a global palette, it may still have a frame-level palette, which can be retrieved using IWICBitmapFrameDecode::CopyPalette.

+
+ + ee690091 + HRESULT IWICBitmapDecoder::CopyPalette([In, Optional] IWICPalette* pIPalette) + IWICBitmapDecoder::CopyPalette +
+ + +

Retrieves the metadata query reader from the decoder.

+
+

Receives a reference to the decoder's .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If an image format does not support container-level metadata, this will return . The only Windows provided image format that supports container-level metadata is GIF. Instead, use .

+
+ + ee690102 + HRESULT IWICBitmapDecoder::GetMetadataQueryReader([Out] IWICMetadataQueryReader** ppIMetadataQueryReader) + IWICBitmapDecoder::GetMetadataQueryReader +
+ + +

Retrieves a preview image, if supported.

+
+

Receives a reference to the preview bitmap if supported.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Not all formats support previews. Only the native Microsoft?Windows Digital Photo (WDP) codec support previews.

+
+ + ee690104 + HRESULT IWICBitmapDecoder::GetPreview([Out] IWICBitmapSource** ppIBitmapSource) + IWICBitmapDecoder::GetPreview +
+ + +

Retrieves the objects of the image.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690093 + HRESULT IWICBitmapDecoder::GetColorContexts([In] unsigned int cCount,[InOut, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount) + IWICBitmapDecoder::GetColorContexts +
+ + +

Retrieves the objects of the image.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690093 + HRESULT IWICBitmapDecoder::GetColorContexts([In] unsigned int cCount,[InOut, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount) + IWICBitmapDecoder::GetColorContexts +
+ + +

Retrieves a bitmap thumbnail of the image, if one exists

+
+

Receives a reference to the of the thumbnail.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The returned thumbnail can be of any size, so the caller should scale the thumbnail to the desired size. The only Windows provided image formats that support thumbnails are JPEG, TIFF, and JPEG-XR. If the thumbnail is not available, this will return .

+
+ + ee690106 + HRESULT IWICBitmapDecoder::GetThumbnail([Out] IWICBitmapSource** ppIThumbnail) + IWICBitmapDecoder::GetThumbnail +
+ + +

Retrieves the total number of frames in the image.

+
+

A reference that receives the total number of frames in the image.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690099 + HRESULT IWICBitmapDecoder::GetFrameCount([Out] unsigned int* pCount) + IWICBitmapDecoder::GetFrameCount +
+ + +

Retrieves the specified frame of the image.

+
+

The particular frame to retrieve.

+

A reference that receives a reference to the .

+ + ee690098 + HRESULT IWICBitmapDecoder::GetFrame([In] unsigned int index,[Out] IWICBitmapFrameDecode** ppIBitmapFrame) + IWICBitmapDecoder::GetFrame +
+ + + Initializes a new instance of the class from a . + + The bitmap decoder info. + HRESULT IWICBitmapDecoderInfo::CreateInstance([Out, Fast] IWICBitmapDecoder** ppIBitmapDecoder) + + + + Initializes a new instance of the class from a guid. for a list of default supported decoder. + + The factory. + The container format GUID. + HRESULT IWICImagingFactory::CreateDecoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class. + + The factory. + The container format GUID. + The GUID vendor ref. + HRESULT IWICImagingFactory::CreateDecoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a . + + The factory. + The stream ref. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromStream([In, Optional] IStream* pIStream,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a . + + The factory. + The stream ref. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromStream([In, Optional] IStream* pIStream,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a . + + The factory. + The stream ref. + The GUID vendor ref. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromStream([In, Optional] IStream* pIStream,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a . + + The factory. + The stream ref. + The GUID vendor ref. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromStream([In, Optional] IStream* pIStream,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a file in read mode. + + The factory. + The filename. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromFilename([In] const wchar_t* wzFilename,[In, Optional] const GUID* pguidVendor,[In] unsigned int dwDesiredAccess,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a file. + + The factory. + The filename. + The desired access. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromFilename([In] const wchar_t* wzFilename,[In, Optional] const GUID* pguidVendor,[In] unsigned int dwDesiredAccess,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a file. + + The factory. + The filename. + The GUID vendor ref. + The desired access. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromFilename([In] const wchar_t* wzFilename,[In, Optional] const GUID* pguidVendor,[In] unsigned int dwDesiredAccess,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a file stream. + + The factory. + The filename. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromFileHandle([In] unsigned int hFile,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Initializes a new instance of the class from a file stream. + + The factory. + The filename. + The GUID vendor ref. + The metadata options. + HRESULT IWICImagingFactory::CreateDecoderFromFileHandle([In] unsigned int hFile,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + + + + Queries the capabilities of the decoder based on the specified stream. + + The stream to retrieve the decoder capabilities from.. + Capabilities of the decoder + HRESULT IWICBitmapDecoder::QueryCapability([In, Optional] IStream* pIStream,[Out] WICBitmapDecoderCapabilities* pdwCapability) + + + + Initializes the decoder with the provided stream. + + The stream to use for initialization. + The cache options. + If the method succeeds, it returns . Otherwise, it throws an exception. + HRESULT IWICBitmapDecoder::Initialize([In, Optional] IStream* pIStream,[In] WICDecodeOptions cacheOptions) + + + + Get the of the image (if any) + + The factory for creating new color contexts + The color context array, or null + + When the image format does not support color contexts, + is returned. + + HRESULT IWICBitmapDecoder::GetColorContexts([In] unsigned int cCount,[Out, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount) + + + + Get the of the image (if any) + + + null if the decoder does not support color contexts; + otherwise an array of zero or more ColorContext objects + + HRESULT IWICBitmapDecoder::GetColorContexts([In] unsigned int cCount,[Out, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] + + + +

Retrieves the image's container format.

+
+ + ee690095 + GetContainerFormat + GetContainerFormat + HRESULT IWICBitmapDecoder::GetContainerFormat([Out] GUID* pguidContainerFormat) +
+ + +

Retrieves an for the image.

+
+ + ee690096 + GetDecoderInfo + GetDecoderInfo + HRESULT IWICBitmapDecoder::GetDecoderInfo([Out] IWICBitmapDecoderInfo** ppIDecoderInfo) +
+ + +

Retrieves the metadata query reader from the decoder.

+
+ +

If an image format does not support container-level metadata, this will return . The only Windows provided image format that supports container-level metadata is GIF. Instead, use .

+
+ + ee690102 + GetMetadataQueryReader + GetMetadataQueryReader + HRESULT IWICBitmapDecoder::GetMetadataQueryReader([Out] IWICMetadataQueryReader** ppIMetadataQueryReader) +
+ + +

Retrieves a preview image, if supported.

+
+ +

Not all formats support previews. Only the native Microsoft?Windows Digital Photo (WDP) codec support previews.

+
+ + ee690104 + GetPreview + GetPreview + HRESULT IWICBitmapDecoder::GetPreview([Out] IWICBitmapSource** ppIBitmapSource) +
+ + +

Retrieves a bitmap thumbnail of the image, if one exists

+
+ +

The returned thumbnail can be of any size, so the caller should scale the thumbnail to the desired size. The only Windows provided image formats that support thumbnails are JPEG, TIFF, and JPEG-XR. If the thumbnail is not available, this will return .

+
+ + ee690106 + GetThumbnail + GetThumbnail + HRESULT IWICBitmapDecoder::GetThumbnail([Out] IWICBitmapSource** ppIThumbnail) +
+ + +

Retrieves the total number of frames in the image.

+
+ + ee690099 + GetFrameCount + GetFrameCount + HRESULT IWICBitmapDecoder::GetFrameCount([Out] unsigned int* pCount) +
+ + +

Exposes methods that provide information about a decoder.

+
+ + ee690087 + IWICBitmapDecoderInfo + IWICBitmapDecoderInfo +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the file pattern signatures supported by the decoder.

+
+

The array size of the pPatterns array.

+

Receives a list of objects supported by the decoder.

+

Receives the number of patterns the decoder supports.

+

Receives the actual buffer size needed to retrieve all pattern signatures supported by the decoder.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To retrieve all pattern signatures, this method should first be called with pPatterns set to null to retrieve the actual buffer size needed through pcbPatternsActual. Once the needed buffer size is known, allocate a buffer of the needed size and call GetPatterns again with the allocated buffer.

+
+ + ee690089 + HRESULT IWICBitmapDecoderInfo::GetPatterns([In] unsigned int cbSizePatterns,[Out, Buffer, Optional] WICBitmapPattern* pPatterns,[Out] unsigned int* pcPatterns,[Out] unsigned int* pcbPatternsActual) + IWICBitmapDecoderInfo::GetPatterns +
+ + +

Retrieves a value that indicates whether the codec recognizes the pattern within a specified stream.

+
+

The stream to pattern match within.

+

A reference that receives TRUE if the patterns match; otherwise, .

+ + ee690090 + HRESULT IWICBitmapDecoderInfo::MatchesPattern([In, Optional] IStream* pIStream,[Out] BOOL* pfMatches) + IWICBitmapDecoderInfo::MatchesPattern +
+ + +

Creates a new instance.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690088 + HRESULT IWICBitmapDecoderInfo::CreateInstance([Out, Fast] IWICBitmapDecoder** ppIBitmapDecoder) + IWICBitmapDecoderInfo::CreateInstance +
+ + + Retrieves a value that indicates whether the codec recognizes the pattern within a specified stream. + + The stream to pattern match within. + true if the patterns match; otherwise, false. + HRESULT IWICBitmapDecoderInfo::MatchesPattern([In, Optional] IStream* pIStream,[Out] BOOL* pfMatches) + + + + Gets the file pattern signatures supported by the decoder. + + HRESULT IWICBitmapDecoderInfo::GetPatterns([In] unsigned int cbSizePatterns,[Out, Buffer, Optional] WICBitmapPattern* pPatterns,[Out] unsigned int* pcPatterns,[Out] unsigned int* pcbPatternsActual) + + + +

Defines methods for setting an encoder's properties such as thumbnails, frames, and palettes.

+
+ +

There are a number of concrete implemenations of this interface representing each of the standard encoders provided by the platform including bitmap (BMP), Portable Network Graphics (PNG), Joint Photographic Experts Group (JPEG), Graphics Interchange Format (GIF), Tagged Image File Format (TIFF), and Microsoft?Windows Digital Photo (WDP). The following table includes the class identifier (CLSID) for each native encoder.

CLSID NameCLSID
0x69be8bb4, 0xd66d, 0x47c8, 0x86, 0x5a, 0xed, 0x15, 0x89, 0x43, 0x37, 0x82
0x27949969, 0x876a, 0x41d7, 0x94, 0x47, 0x56, 0x8f, 0x6a, 0x35, 0xa4, 0xdc
0x1a34f5c1, 0x4a5a, 0x46dc, 0xb6, 0x44, 0x1f, 0x45, 0x67, 0xe7, 0xa6, 0x76
0x114f5598, 0xb22, 0x40a0, 0x86, 0xa1, 0xc8, 0x3e, 0xa4, 0x95, 0xad, 0xbd
0x0131be10, 0x2001, 0x4c5f, 0xa9, 0xb0, 0xcc, 0x88, 0xfa, 0xb6, 0x4c, 0xe8
0xac4ce3cb, 0xe1c1, 0x44cd, 0x82, 0x15, 0x5a, 0x16, 0x65, 0x50, 0x9e, 0xc2

?

Additionally this interface may be sub-classed to provide support for third party codecs as part of the extensibility model. See the AITCodec Sample CODEC.

+
+ + ee690110 + IWICBitmapEncoder + IWICBitmapEncoder +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Proxy function for the Initialize method.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ee690124 + HRESULT IWICBitmapEncoder::Initialize([In, Optional] IStream* pIStream,[In] WICBitmapEncoderCacheOption cacheOption) + IWICBitmapEncoder::Initialize +
+ + +

Retrieves the encoder's container format.

+
+

A reference that receives the encoder's container format .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690118 + HRESULT IWICBitmapEncoder::GetContainerFormat([Out] GUID* pguidContainerFormat) + IWICBitmapEncoder::GetContainerFormat +
+ + +

Retrieves an for the encoder.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690119 + HRESULT IWICBitmapEncoder::GetEncoderInfo([Out] IWICBitmapEncoderInfo** ppIEncoderInfo) + IWICBitmapEncoder::GetEncoderInfo +
+ + +

Sets the objects for the encoder.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690125 + HRESULT IWICBitmapEncoder::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext) + IWICBitmapEncoder::SetColorContexts +
+ + +

Sets the objects for the encoder.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690125 + HRESULT IWICBitmapEncoder::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext) + IWICBitmapEncoder::SetColorContexts +
+ + +

Sets the global palette for the image.

+
+

The to use as the global palette.

+

Returns if successful, or an error value otherwise.

Returns if the feature is not supported by the encoder.

+ +

Only GIF images support an optional global palette, and you must set the global palette before adding any frames to the image. You only need to set the palette for indexed pixel formats. +

+
+ + ee690126 + HRESULT IWICBitmapEncoder::SetPalette([In, Optional] IWICPalette* pIPalette) + IWICBitmapEncoder::SetPalette +
+ + +

Sets the global thumbnail for the image.

+
+

The to set as the global thumbnail.

+

Returns if successful, or an error value otherwise.

Returns if the feature is not supported by the encoder.

+ + ee690129 + HRESULT IWICBitmapEncoder::SetThumbnail([In, Optional] IWICBitmapSource* pIThumbnail) + IWICBitmapEncoder::SetThumbnail +
+ + +

Sets the global preview for the image.

+
+

The to use as the global preview.

+

Returns if successful, or an error value otherwise.

Returns if the feature is not supported by the encoder.

+ + ee690128 + HRESULT IWICBitmapEncoder::SetPreview([In, Optional] IWICBitmapSource* pIPreview) + IWICBitmapEncoder::SetPreview +
+ + +

Creates a new instance.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The parameter ppIEncoderOptions can be used to receive an that can then be used to specify encoder options. This is done by passing a reference to a null reference in ppIEncoderOptions. The returned is initialized with all encoder options that are available for the given format, at their default values. To specify non-default encoding behavior, set the needed encoder options on the and pass it to .

Note??Do not pass in a reference to an initialized . The reference will be overwritten, and the original will not be freed.

Otherwise, you can pass null in ppIEncoderOptions if you do not intend to specify encoder options.

See Encoding Overview for an example of how to set encoder options.

For formats that support encoding multiple frames (for example, TIFF, JPEG-XR), you can work on only one frame at a time. This means that you must call before you call CreateNewFrame again. +

+
+ + ee690116 + HRESULT IWICBitmapEncoder::CreateNewFrame([Out, Fast] IWICBitmapFrameEncode** ppIFrameEncode,[Out, Fast] IPropertyBag2** ppIEncoderOptions) + IWICBitmapEncoder::CreateNewFrame +
+ + +

Commits all changes for the image and closes the stream.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To finalize an image, both the frame Commit and the encoder Commit must be called. However, only call the encoder Commit method after all frames have been committed.

After the encoder has been committed, it can't be re-initialized or reused with another stream. A new encoder interface must be created, for example, with . +

For the encoder Commit to succeed, you must at a minimum call and either or . +

specifies all parameters needed to encode the image data. requires that you also call , , and (if the pixel format is indexed). +

+
+ + ee690114 + HRESULT IWICBitmapEncoder::Commit() + IWICBitmapEncoder::Commit +
+ + +

Retrieves a metadata query writer for the encoder.

+
+

When this method returns, contains a reference to the encoder's metadata query writer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690121 + HRESULT IWICBitmapEncoder::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter) + IWICBitmapEncoder::GetMetadataQueryWriter +
+ + + Initializes a new instance of the class. + + The factory. + The container format GUID. List from + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out] IWICBitmapEncoder** ppIEncoder) + + + + Initializes a new instance of the class. + + The factory. + The container format GUID. List from + The GUID vendor ref. + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out] IWICBitmapEncoder** ppIEncoder) + + + + Initializes a new instance of the class. + + The factory. + The container format GUID. List from + A stream to use as the output of this bitmap encoder. + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out] IWICBitmapEncoder** ppIEncoder) + + + + Initializes a new instance of the class. + + The factory. + The container format GUID. List from + A stream to use as the output of this bitmap encoder. + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out] IWICBitmapEncoder** ppIEncoder) + + + + Initializes a new instance of the class. + + The factory. + The container format GUID. List from + The GUID vendor ref. + A stream to use as the output of this bitmap encoder. + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out] IWICBitmapEncoder** ppIEncoder) + + + + Initializes a new instance of the class. + + The factory. + The container format GUID. List from + The GUID vendor ref. + A stream to use as the output of this bitmap encoder. + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out] IWICBitmapEncoder** ppIEncoder) + + + + Initializes the encoder with the provided stream. + + The stream to use for initialization. + If the method succeeds, it returns . Otherwise, it throws an exception. + HRESULT IWICBitmapEncoder::Initialize([In, Optional] IStream* pIStream,[In] WICBitmapEncoderCacheOption cacheOption) + + + + Initializes the encoder with the provided stream. + + The stream to use for initialization. + If the method succeeds, it returns . Otherwise, it throws an exception. + HRESULT IWICBitmapEncoder::Initialize([In, Optional] IStream* pIStream,[In] WICBitmapEncoderCacheOption cacheOption) + + + + Sets the objects for the encoder. + + The color contexts to set for the encoder. + If the method succeeds, it returns . Otherwise, it throws an exception. + HRESULT IWICBitmapEncoder::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext) + + + +

Retrieves the encoder's container format.

+
+ + ee690118 + GetContainerFormat + GetContainerFormat + HRESULT IWICBitmapEncoder::GetContainerFormat([Out] GUID* pguidContainerFormat) +
+ + +

Retrieves an for the encoder.

+
+ + ee690119 + GetEncoderInfo + GetEncoderInfo + HRESULT IWICBitmapEncoder::GetEncoderInfo([Out] IWICBitmapEncoderInfo** ppIEncoderInfo) +
+ + +

Sets the global palette for the image.

+
+ +

Only GIF images support an optional global palette, and you must set the global palette before adding any frames to the image. You only need to set the palette for indexed pixel formats. +

+
+ + ee690126 + SetPalette + SetPalette + HRESULT IWICBitmapEncoder::SetPalette([In, Optional] IWICPalette* pIPalette) +
+ + +

Sets the global thumbnail for the image.

+
+ + ee690129 + SetThumbnail + SetThumbnail + HRESULT IWICBitmapEncoder::SetThumbnail([In, Optional] IWICBitmapSource* pIThumbnail) +
+ + +

Sets the global preview for the image.

+
+ + ee690128 + SetPreview + SetPreview + HRESULT IWICBitmapEncoder::SetPreview([In, Optional] IWICBitmapSource* pIPreview) +
+ + +

Retrieves a metadata query writer for the encoder.

+
+ + ee690121 + GetMetadataQueryWriter + GetMetadataQueryWriter + HRESULT IWICBitmapEncoder::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter) +
+ + +

Exposes methods that provide information about an encoder.

+
+ + ee690112 + IWICBitmapEncoderInfo + IWICBitmapEncoderInfo +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a new instance.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690113 + HRESULT IWICBitmapEncoderInfo::CreateInstance([Out] IWICBitmapEncoder** ppIBitmapEncoder) + IWICBitmapEncoderInfo::CreateInstance +
+ + +

Exposes methods that produce a flipped (horizontal or vertical) and/or rotated (by 90 degree increments) bitmap source. Rotations are done before the flip.

+
+ +

IWICBitmapFipRotator requests data on a per-pixel basis, while WIC codecs provide data on a per-scanline basis. This causes the fliprotator object to exhibit n2 behavior if there is no buffering. This occures because each pixel in the transformed image requires an entire scanline to be decoded in the file. It is recommended that you buffer the image using , or flip/rotate the image using Direct2D.

+
+ + ee690131 + IWICBitmapFlipRotator + IWICBitmapFlipRotator +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the bitmap flip rotator with the provided parameters.

+
+

The input bitmap source.

+

The to flip or rotate the image.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690132 + HRESULT IWICBitmapFlipRotator::Initialize([In, Optional] IWICBitmapSource* pISource,[In] WICBitmapTransformOptions options) + IWICBitmapFlipRotator::Initialize +
+ + + Initializes a new instance of the class. + + The factory. + + + +

Defines methods for decoding individual image frames of an encoded file.

+
+ + ee690134 + IWICBitmapFrameDecode + IWICBitmapFrameDecode +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a metadata query reader for the frame.

+
+

When this method returns, contains a reference to the frame's metadata query reader.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For image formats with one frame (JPG, PNG, JPEG-XR), the frame-level query reader of the first frame is used to access all image metadata, and the decoder-level query reader isn?t used. For formats with more than one frame (GIF, TIFF), the frame-level query reader for a given frame is used to access metadata specific to that frame, and in the case of GIF a decoder-level metadata reader will be present. If the decoder doesn?t support metadata (BMP, ICO), this will return . +

+
+ + ee690137 + HRESULT IWICBitmapFrameDecode::GetMetadataQueryReader([Out] IWICMetadataQueryReader** ppIMetadataQueryReader) + IWICBitmapFrameDecode::GetMetadataQueryReader +
+ + +

Retrieves the associated with the image frame.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If null is passed for ppIColorContexts, and 0 is passed for cCount, this method will return the total number of color contexts in the image in pcActualCount.

The ppIColorContexts array must be filled with valid data: each * in the array must have been created using . +

+
+ + ee690135 + HRESULT IWICBitmapFrameDecode::GetColorContexts([In] unsigned int cCount,[InOut, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount) + IWICBitmapFrameDecode::GetColorContexts +
+ + +

Retrieves the associated with the image frame.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If null is passed for ppIColorContexts, and 0 is passed for cCount, this method will return the total number of color contexts in the image in pcActualCount.

The ppIColorContexts array must be filled with valid data: each * in the array must have been created using . +

+
+ + ee690135 + HRESULT IWICBitmapFrameDecode::GetColorContexts([In] unsigned int cCount,[InOut, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount) + IWICBitmapFrameDecode::GetColorContexts +
+ + +

Retrieves a small preview of the frame, if supported by the codec.

+
+

A reference that receives a reference to the of the thumbnail.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Not all formats support thumbnails. Joint Photographic Experts Group (JPEG), Tagged Image File Format (TIFF), and Microsoft?Windows Digital Photo (WDP) support thumbnails.

+
+ + ee690139 + HRESULT IWICBitmapFrameDecode::GetThumbnail([Out] IWICBitmapSource** ppIThumbnail) + IWICBitmapFrameDecode::GetThumbnail +
+ + + Get the of the image (if any) + + The factory for creating new color contexts + The color context array, or null + + When the image format does not support color contexts, + is returned. + + HRESULT IWICBitmapDecoder::GetColorContexts([In] unsigned int cCount,[Out, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] unsigned int* pcActualCount) + + + + Get the of the image (if any) + + + null if the decoder does not support color contexts; + otherwise an array of zero or more ColorContext objects + + HRESULT IWICBitmapDecoder::GetColorContexts([In] unsigned int cCount,[Out, Buffer, Optional] IWICColorContext** ppIColorContexts,[Out] + + + +

Retrieves a metadata query reader for the frame.

+
+ +

For image formats with one frame (JPG, PNG, JPEG-XR), the frame-level query reader of the first frame is used to access all image metadata, and the decoder-level query reader isn?t used. For formats with more than one frame (GIF, TIFF), the frame-level query reader for a given frame is used to access metadata specific to that frame, and in the case of GIF a decoder-level metadata reader will be present. If the decoder doesn?t support metadata (BMP, ICO), this will return . +

+
+ + ee690137 + GetMetadataQueryReader + GetMetadataQueryReader + HRESULT IWICBitmapFrameDecode::GetMetadataQueryReader([Out] IWICMetadataQueryReader** ppIMetadataQueryReader) +
+ + +

Retrieves a small preview of the frame, if supported by the codec.

+
+ +

Not all formats support thumbnails. Joint Photographic Experts Group (JPEG), Tagged Image File Format (TIFF), and Microsoft?Windows Digital Photo (WDP) support thumbnails.

+
+ + ee690139 + GetThumbnail + GetThumbnail + HRESULT IWICBitmapFrameDecode::GetThumbnail([Out] IWICBitmapSource** ppIThumbnail) +
+ + +

Represents an encoder's individual image frames.

+
+ + ee690141 + IWICBitmapFrameEncode + IWICBitmapFrameEncode +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the frame encoder using the given properties.

+
+

The set of properties to use for initialization.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If you don't want any encoding options, pass null for pIEncoderOptions. Otherwise, pass the that was provided by with updated values. +

For a complete list of encoding options supported by the Windows-provided codecs, see Native WIC Codecs.

+
+ + ee690146 + HRESULT IWICBitmapFrameEncode::Initialize([In, Optional] IPropertyBag2* pIEncoderOptions) + IWICBitmapFrameEncode::Initialize +
+ + +

Sets the output image dimensions for the frame.

+
+

The width of the output image.

+

The height of the output image.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690154 + HRESULT IWICBitmapFrameEncode::SetSize([In] unsigned int uiWidth,[In] unsigned int uiHeight) + IWICBitmapFrameEncode::SetSize +
+ + +

Sets the physical resolution of the output image.

+
+

The horizontal resolution value.

+

The vertical resolution value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Windows Imaging Component (WIC) doesn't perform any special processing as a result of DPI resolution values. For example, data returned from isn't scaled by the DPI. The app must handle DPI resolution. +

+
+ + ee690152 + HRESULT IWICBitmapFrameEncode::SetResolution([In] double dpiX,[In] double dpiY) + IWICBitmapFrameEncode::SetResolution +
+ + +

Requests that the encoder use the specified pixel format.

+
+

On input, the requested pixel format . On output, the closest pixel format supported by the encoder; this may be different than the requested format. For a list of pixel format GUIDs, see Native Pixel Formats.

+

Possible return values include the following.

Return codeDescription

Success.

The method was not called.

?

+ + ee690151 + HRESULT IWICBitmapFrameEncode::SetPixelFormat([InOut] GUID* pPixelFormat) + IWICBitmapFrameEncode::SetPixelFormat +
+ + +

Sets a given number profiles to the frame.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +
  • BMP

    Setting color contexts is unsupported. This function will return .

  • PNG

    Setting at most one color context is supported, and additional color contexts will be ignored. This context must be a , and is used to encode the iCCP, gAMA, and cHRM chunks in the PNG file.

  • JPEG, TIFF, JPEG-XR

    Setting up to one and one is supported. Users must not provide more than one of each type of color context, as all but the last context of each type will be ignored. In JPEG, the is encoded to JPEG APP2 ICC metadata block.

    In TIFF and JPEG-XR, the is encoded to the IFD ICC profile metadata block (IFD tag 0x8773). In all three formats, the is encoded to EXIF colorspace metadata block (EXIF tag 0xA001). +

+
+ + ee690148 + HRESULT IWICBitmapFrameEncode::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext) + IWICBitmapFrameEncode::SetColorContexts +
+ + +

Sets a given number profiles to the frame.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +
  • BMP

    Setting color contexts is unsupported. This function will return .

  • PNG

    Setting at most one color context is supported, and additional color contexts will be ignored. This context must be a , and is used to encode the iCCP, gAMA, and cHRM chunks in the PNG file.

  • JPEG, TIFF, JPEG-XR

    Setting up to one and one is supported. Users must not provide more than one of each type of color context, as all but the last context of each type will be ignored. In JPEG, the is encoded to JPEG APP2 ICC metadata block.

    In TIFF and JPEG-XR, the is encoded to the IFD ICC profile metadata block (IFD tag 0x8773). In all three formats, the is encoded to EXIF colorspace metadata block (EXIF tag 0xA001). +

+
+ + ee690148 + HRESULT IWICBitmapFrameEncode::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext) + IWICBitmapFrameEncode::SetColorContexts +
+ + +

Sets the for indexed pixel formats.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method doesn't fail if called on a frame whose pixel format is set to a non-indexed pixel format. If the target pixel format is a non-indexed format, the palette will be ignored.

If you already called to set a global palette, this method overrides that palette for the current frame.

The palette must be specified before your first call to WritePixels/WriteSource. Doing so will cause WriteSource to use the specified palette when converting the source image to the encoder pixel format. If no palette is specified, a palette will be generated on the first call to WriteSource. +

+
+ + ee690150 + HRESULT IWICBitmapFrameEncode::SetPalette([In, Optional] IWICPalette* pIPalette) + IWICBitmapFrameEncode::SetPalette +
+ + +

Sets the frame thumbnail if supported by the codec.

+
+

The bitmap source to use as the thumbnail.

+

Returns if successful, or an error value otherwise.

Returns if the feature is not supported by the encoder.

+ +

We recommend that you call SetThumbnail before calling WritePixels or WriteSource. The thumbnail won't be added to the encoded file if SetThumbnail is called after a call to WritePixels or WriteSource.

  • BMP, PNG

    Setting thumbnails is unsupported. This function will return .

  • JPEG

    Setting the thumbnail is supported. The source image will be re-encoded as either an 8bpp or 24bpp JPEG and will be written to the JPEG?s APP1 metadata block. +

  • TIFF

    Setting the thumbnail is supported. The source image will be re-encoded as a TIFF and will be written to the frame?s SubIFD block.

  • JPEG-XR

    Setting the thumbnail is supported. The source image will be re-encoded as an additional 8bpp or 24bpp frame. +

+
+ + ee690156 + HRESULT IWICBitmapFrameEncode::SetThumbnail([In, Optional] IWICBitmapSource* pIThumbnail) + IWICBitmapFrameEncode::SetThumbnail +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + ee719895 + HRESULT IWICBitmapFrameEncode::WritePixels([In] unsigned int lineCount,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In, Buffer] void* pbPixels) + IWICBitmapFrameEncode::WritePixels + + + +

Encodes a bitmap source.

+
+

The bitmap source to encode.

+

The size rectangle of the bitmap source.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If SetSize is not called prior to calling WriteSource, the size given in prc is used if not null. Otherwise, the size of the given in pIBitmapSource is used.

If SetPixelFormat is not called prior to calling WriteSource, the pixel format of the given in pIBitmapSource is used.

If SetResolution is not called prior to calling WriteSource, the pixel format of pIBitmapSource is used.

If SetPalette is not called prior to calling WriteSource, the target pixel format is indexed, and the pixel format of pIBitmapSource matches the encoder frame's pixel format, then the pIBitmapSource pixel format is used.

When encoding a GIF image, if the global palette is set and the frame level palette is not set directly by the user or by a custom independent software vendor (ISV) GIF codec, WriteSource will use the global palette to encode the frame even when pIBitmapSource has a frame level palette.

Starting with Windows?Vista, repeated WriteSource calls can be made as long as the total accumulated source rect height is the same as set through SetSize.

Starting with Windows?8.1, the source rect must be at least the dimensions set through SetSize. If the source rect width exceeds the SetSize width, extra pixels on the right side are ignored. If the source rect height exceeds the remaining unfilled height, extra scan lines on the bottom are ignored. +

+
+ + ee690159 + HRESULT IWICBitmapFrameEncode::WriteSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In] void* prc) + IWICBitmapFrameEncode::WriteSource +
+ + +

Commits the frame to the image.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

After the frame Commit has been called, you can't use or reinitialize the object and any objects created from it. +

To finalize the image, both the frame Commit and the encoder Commit must be called. However, only call the encoder Commit method after all frames have been committed.

+
+ + ee690142 + HRESULT IWICBitmapFrameEncode::Commit() + IWICBitmapFrameEncode::Commit +
+ + +

Gets the metadata query writer for the encoder frame.

+
+

When this method returns, contains a reference to metadata query writer for the encoder frame.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If you are setting metadata on the frame, you must do this before you use or to write any image pixels to the frame

+
+ + ee690144 + HRESULT IWICBitmapFrameEncode::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter) + IWICBitmapFrameEncode::GetMetadataQueryWriter +
+ + + Initializes a new instance of the class. + + The encoder. + HRESULT IWICBitmapEncoder::CreateNewFrame([Out] IWICBitmapFrameEncode** ppIFrameEncode,[Out] IPropertyBag2** ppIEncoderOptions) + + + + Initializes this instance. + + HRESULT IWICBitmapFrameEncode::Initialize([In, Optional] IPropertyBag2* pIEncoderOptions) + + + + Sets the objects for this frame encoder. + + The color contexts to set for the encoder. + If the method succeeds, it returns . Otherwise, it throws an exception. + HRESULT IWICBitmapFrameEncode::SetColorContexts([In] unsigned int cCount,[In, Buffer] IWICColorContext** ppIColorContext) + + + +

Encodes the frame scanlines.

+
+

The number of lines to encode.

+ A data buffer containing the pixels to copy from. + Total size in bytes of pixels to write. If == 0, size is calculated with lineCount * rowStride. + +

Successive WritePixels calls are assumed to be sequential scanline access in the output image.

+
+ ee690158 + HRESULT IWICBitmapFrameEncode::WritePixels([In] unsigned int lineCount,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In, Buffer] void* pbPixels) + IWICBitmapFrameEncode::WritePixels +
+ + +

Encodes the frame scanlines.

+
+

The number of lines to encode.

+ A data buffer containing the pixels to copy from. + The stride of one row. + Total size in bytes of pixels to write. If == 0, size is calculated with lineCount * rowStride. + +

Successive WritePixels calls are assumed to be sequential scanline access in the output image.

+
+ ee690158 + HRESULT IWICBitmapFrameEncode::WritePixels([In] unsigned int lineCount,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In, Buffer] void* pbPixels) + IWICBitmapFrameEncode::WritePixels +
+ + +

Encodes the frame scanlines.

+
+

The number of lines to encode.

+

The stride of the image pixels.

+

A reference to the pixel buffer.

+ +

Successive WritePixels calls are assumed to be sequential scanline access in the output image.

+
+ ee690158 + HRESULT IWICBitmapFrameEncode::WritePixels([In] unsigned int lineCount,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In, Buffer] void* pbPixels) + IWICBitmapFrameEncode::WritePixels +
+ + +

Encodes a bitmap source.

+
+

The bitmap source to encode.

+ +

If SetSize is not called prior to calling WriteSource, the size given in prc is used if not null. Otherwise, the size of the given in pIBitmapSource is used.

If SetPixelFormat is not called prior to calling WriteSource, the pixel format of the given in pIBitmapSource is used.

If SetResolution is not called prior to calling WriteSource, the pixel format of pIBitmapSource is used.

If SetPalette is not called prior to calling WriteSource, the target pixel format is indexed, and the pixel format of pIBitmapSource matches the encoder frame's pixel format, then the pIBitmapSource pixel format is used.

When encoding a GIF image, if the global palette is set and the frame level palette is not set directly by the user or by a custom independent software vendor (ISV) GIF codec, WriteSource will use the global palette to encode the frame even when pIBitmapSource has a frame level palette.

Windows Vista:The source rect width must match the width set through SetSize. Repeated WriteSource calls can be made as long as the total accumulated source rect height is the same as set through SetSize.

+
+ + ee690159 + HRESULT IWICBitmapFrameEncode::WriteSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In, Optional] WICRect* prc) + IWICBitmapFrameEncode::WriteSource +
+ + +

Encodes a bitmap source.

+
+

The bitmap source to encode.

+

The size rectangle of the bitmap source.

+ +

If SetSize is not called prior to calling WriteSource, the size given in prc is used if not null. Otherwise, the size of the given in pIBitmapSource is used.

If SetPixelFormat is not called prior to calling WriteSource, the pixel format of the given in pIBitmapSource is used.

If SetResolution is not called prior to calling WriteSource, the pixel format of pIBitmapSource is used.

If SetPalette is not called prior to calling WriteSource, the target pixel format is indexed, and the pixel format of pIBitmapSource matches the encoder frame's pixel format, then the pIBitmapSource pixel format is used.

When encoding a GIF image, if the global palette is set and the frame level palette is not set directly by the user or by a custom independent software vendor (ISV) GIF codec, WriteSource will use the global palette to encode the frame even when pIBitmapSource has a frame level palette.

Windows Vista:The source rect width must match the width set through SetSize. Repeated WriteSource calls can be made as long as the total accumulated source rect height is the same as set through SetSize.

+
+ + ee690159 + HRESULT IWICBitmapFrameEncode::WriteSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In, Optional] WICRect* prc) + IWICBitmapFrameEncode::WriteSource +
+ + +

Sets the for indexed pixel formats.

+
+ +

This method doesn't fail if called on a frame whose pixel format is set to a non-indexed pixel format. If the target pixel format is a non-indexed format, the palette will be ignored.

If you already called to set a global palette, this method overrides that palette for the current frame.

The palette must be specified before your first call to WritePixels/WriteSource. Doing so will cause WriteSource to use the specified palette when converting the source image to the encoder pixel format. If no palette is specified, a palette will be generated on the first call to WriteSource. +

+
+ + ee690150 + SetPalette + SetPalette + HRESULT IWICBitmapFrameEncode::SetPalette([In, Optional] IWICPalette* pIPalette) +
+ + +

Sets the frame thumbnail if supported by the codec.

+
+ +

We recommend that you call SetThumbnail before calling WritePixels or WriteSource. The thumbnail won't be added to the encoded file if SetThumbnail is called after a call to WritePixels or WriteSource.

  • BMP, PNG

    Setting thumbnails is unsupported. This function will return .

  • JPEG

    Setting the thumbnail is supported. The source image will be re-encoded as either an 8bpp or 24bpp JPEG and will be written to the JPEG?s APP1 metadata block. +

  • TIFF

    Setting the thumbnail is supported. The source image will be re-encoded as a TIFF and will be written to the frame?s SubIFD block.

  • JPEG-XR

    Setting the thumbnail is supported. The source image will be re-encoded as an additional 8bpp or 24bpp frame. +

+
+ + ee690156 + SetThumbnail + SetThumbnail + HRESULT IWICBitmapFrameEncode::SetThumbnail([In, Optional] IWICBitmapSource* pIThumbnail) +
+ + +

Gets the metadata query writer for the encoder frame.

+
+ +

If you are setting metadata on the frame, you must do this before you use or to write any image pixels to the frame

+
+ + ee690144 + GetMetadataQueryWriter + GetMetadataQueryWriter + HRESULT IWICBitmapFrameEncode::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter) +
+ + + Gets the properties to setup before . + + + + +

Exposes methods that support the Lock method.

+
+ +

The bitmap lock is simply an abstraction for a rectangular memory window into the bitmap. For the simplest case, a system memory bitmap, this is simply a reference to the top left corner of the rectangle and a stride value.

To release the exclusive lock set by Lock method and the associated object, call IUnknown::Release on the object.

+
+ + ee690161 + IWICBitmapLock + IWICBitmapLock +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the width and height, in pixels, of the locked rectangle.

+
+

A reference that receives the width of the locked rectangle.

+

A reference that receives the height of the locked rectangle.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690165 + HRESULT IWICBitmapLock::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight) + IWICBitmapLock::GetSize +
+ + +

Provides access to the stride value for the memory.

+
+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Note the stride value is specific to the , not the bitmap. For example, two consecutive locks on the same rectangle of a bitmap may return different references and stride values, depending on internal implementation.

+
+ + ee690166 + HRESULT IWICBitmapLock::GetStride([Out] unsigned int* pcbStride) + IWICBitmapLock::GetStride +
+ + +

Gets the reference to the top left pixel in the locked rectangle.

+
+

A reference that receives the size of the buffer.

+

A reference that receives a reference to the top left pixel in the locked rectangle.

+ +

The reference provided by this method should not be used outside of the lifetime of the lock itself.

GetDataPointer is not available in multi-threaded apartment applications.

+
+ + ee690162 + HRESULT IWICBitmapLock::GetDataPointer([Out] unsigned int* pcbBufferSize,[Out] void** ppbData) + IWICBitmapLock::GetDataPointer +
+ + +

Gets the pixel format of for the locked area of pixels. This can be used to compute the number of bytes-per-pixel in the locked area.

+
+

A reference that receives the pixel format of the locked area.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690164 + HRESULT IWICBitmapLock::GetPixelFormat([Out] GUID* pPixelFormat) + IWICBitmapLock::GetPixelFormat +
+ + +

Provides access to the stride value for the memory.

+
+ +

Note the stride value is specific to the , not the bitmap. For example, two consecutive locks on the same rectangle of a bitmap may return different references and stride values, depending on internal implementation.

+
+ + ee690166 + GetStride + GetStride + HRESULT IWICBitmapLock::GetStride([Out] unsigned int* pcbStride) +
+ + +

Gets the pixel format of for the locked area of pixels. This can be used to compute the number of bytes-per-pixel in the locked area.

+
+ + ee690164 + GetPixelFormat + GetPixelFormat + HRESULT IWICBitmapLock::GetPixelFormat([Out] GUID* pPixelFormat) +
+ + + Gets the size. + + HRESULT IWICBitmapLock::GetSize([Out] unsigned int* puiWidth,[Out] unsigned int* puiHeight) + + + + Gets a pointer to the data. + + + + +

Represents a resized version of the input bitmap using a resampling or filtering algorithm.

+
+ +

Images can be scaled to larger sizes; however, even with sophisticated scaling algorithms, there is only so much information in the image and artifacts tend to worsen the more you scale up.

The scaler will reapply the resampling algorithm every time CopyPixels is called. If the scaled image is to be animated, the scaled image should be created once and cached in a new bitmap, after which the may be released. In this way the scaling algorithm - which may be computationally expensive relative to drawing - is performed only once and the result displayed many times.

The scaler is optimized to use the minimum amount of memory required to scale the image correctly. The scaler may be used to produce parts of the image incrementally (banding) by calling CopyPixels with different rectangles representing the output bands of the image. Resampling typically requires overlapping rectangles from the source image and thus may need to request the same pixels from the source bitmap multiple times. Requesting scanlines out-of-order from some image decoders can have a significant performance penalty. Because of this reason, the scaler is optimized to handle consecutive horizontal bands of scanlines (rectangle width equal to the bitmap width). In this case the accumulator from the previous vertically adjacent rectangle is re-used to avoid duplicate scanline requests from the source. This implies that banded output from the scaler may have better performance if the bands are requested sequentially. Of course if the scaler is simply used to produce a single rectangle output, this concern is eliminated because the scaler will internally request scanlines in the correct order.

+
+ + ee690168 + IWICBitmapScaler + IWICBitmapScaler +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the bitmap scaler with the provided parameters.

+
+

The input bitmap source.

+

The destination width.

+

The desination height.

+

The to use when scaling.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

can't be initialized multiple times. For example, when scaling every frame in a multi-frame image, a new must be created and initialized for each frame.

+
+ + ee690169 + HRESULT IWICBitmapScaler::Initialize([In, Optional] IWICBitmapSource* pISource,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] WICBitmapInterpolationMode mode) + IWICBitmapScaler::Initialize +
+ + + Initializes a new instance of the class. + + The factory. + + + + No documentation. + + + ee719897 + IWICBitmapSourceTransform + IWICBitmapSourceTransform + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Copies pixel data using the supplied input parameters.

+
+

The rectangle of pixels to copy.

+

The width to scale the source bitmap. This parameter must equal the value obtainable through .

+

The height to scale the source bitmap. This parameter must equal the value obtainable through .

+

The of desired pixel format in which the pixels should be returned.

This must be a format obtained through an GetClosestPixelFormat call.

+

The desired rotation or flip to perform prior to the pixel copy.

The transform must be an operation supported by an DoesSupportTransform call.

If a dstTransform is specified, nStride is the transformed stride and is based on the pguidDstFormat pixel format, not the original source's pixel format.

+

The stride of the destination buffer.

+

The size of the destination buffer.

+

The output buffer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690173 + HRESULT IWICBitmapSourceTransform::CopyPixels([In] const void* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + IWICBitmapSourceTransform::CopyPixels +
+ + +

Returns the closest dimensions the implementation can natively scale to given the desired dimensions.

+
+

The desired width. A reference that receives the closest supported width.

+

The desired height. A reference that receives the closest supported height.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Windows provided codecs provide the following support for native scaling: +

  • BMP, ICO, GIF, TIFF: No implementation of .
  • PNG: No scaling support.
  • JPEG: Native down-scaling by a factor of 8, 4, or 2.
  • JPEG-XR: Native scaling of the original image by powers of 2. +
+
+ + ee690176 + HRESULT IWICBitmapSourceTransform::GetClosestSize([InOut] unsigned int* puiWidth,[InOut] unsigned int* puiHeight) + IWICBitmapSourceTransform::GetClosestSize +
+ + +

Retrieves the closest pixel format to which the implementation of can natively copy pixels, given a desired format.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Windows provided codecs provide the following support:

  • BMP, ICO, GIF, TIFF: No implementation of .
  • JPEG, PNG, JPEG-XR: Trivial support (always returns the same value as IWICBitmapFrameDecode::GetPixelFormat).
+
+ + ee690175 + HRESULT IWICBitmapSourceTransform::GetClosestPixelFormat([InOut] GUID* pguidDstFormat) + IWICBitmapSourceTransform::GetClosestPixelFormat +
+ + +

Determines whether a specific transform option is supported natively by the implementation of the interface.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Windows provided codecs provide the following level of support:

  • BMP, ICO, GIF, TIFF: No implementation of .
  • JPEG, PNG: Trivial support ( only).
  • JPEG-XR: Support for all transformation/rotations. +
+
+ + ee690174 + HRESULT IWICBitmapSourceTransform::DoesSupportTransform([In] WICBitmapTransformOptions dstTransform,[Out] BOOL* pfIsSupported) + IWICBitmapSourceTransform::DoesSupportTransform +
+ + + Copies pixel data using the supplied input parameters. + + The width. + The height. + The stride. + The output. + + HRESULT IWICBitmapSourceTransform::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + + + + Copies pixel data using the supplied input parameters. + + The width. + The height. + The DST transform. + The stride. + The output. + + HRESULT IWICBitmapSourceTransform::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + + + + Copies pixel data using the supplied input parameters. + + The width. + The height. + The GUID DST format. + The DST transform. + The stride. + The output. + + HRESULT IWICBitmapSourceTransform::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + + + + Copies pixel data using the supplied input parameters. + + The rectangle. + The width. + The height. + The GUID DST format. + The DST transform. + The stride. + The output. + + HRESULT IWICBitmapSourceTransform::CopyPixels([In, Optional] const WICRect* prc,[In] unsigned int uiWidth,[In] unsigned int uiHeight,[In, Optional] GUID* pguidDstFormat,[In] WICBitmapTransformOptions dstTransform,[In] unsigned int nStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer) + + + + Returns the closest dimensions the implementation can natively scale to given the desired dimensions. + + The size. + + HRESULT IWICBitmapSourceTransform::GetClosestSize([InOut] unsigned int* puiWidth,[InOut] unsigned int* puiHeight) + + + +

Exposes methods for color management.

+
+ +

A Color Context is an abstraction for a color profile. The profile can either be loaded from a file (like "sRGB Color Space Profile.icm"), read from a memory buffer, or can be defined by an EXIF color space. The system color profile directory can be obtained by calling GetColorDirectory.

Once a color context has been initialized, it cannot be re-initialized.

+
+ + ee690193 + IWICColorContext + IWICColorContext +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the color context from the given file.

+
+

The name of the file.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Once a color context has been initialized, it can't be re-initialized. +

+
+ + ee690198 + HRESULT IWICColorContext::InitializeFromFilename([In] const wchar_t* wzFilename) + IWICColorContext::InitializeFromFilename +
+ + +

Initializes the color context from a memory block.

+
+

The buffer used to initialize the .

+

The size of the pbBuffer buffer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Once a color context has been initialized, it can't be re-initialized. +

+
+ + ee690199 + HRESULT IWICColorContext::InitializeFromMemory([In] const void* pbBuffer,[In] unsigned int cbBufferSize) + IWICColorContext::InitializeFromMemory +
+ + +

Initializes the color context using an Exchangeable Image File (EXIF) color space.

+
+

The value of the EXIF color space.

ValueMeaning
1

A sRGB color space.

2

An Adobe RGB color space.

?

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Once a color context has been initialized, it can't be re-initialized. +

+
+ + ee690197 + HRESULT IWICColorContext::InitializeFromExifColorSpace([In] unsigned int value) + IWICColorContext::InitializeFromExifColorSpace +
+ + +

Retrieves the color context type.

+
+

A reference that receives the of the color context.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690196 + HRESULT IWICColorContext::GetType([Out] WICColorContextType* pType) + IWICColorContext::GetType +
+ + +

Retrieves the color context profile.

+
+

The size of the pbBuffer buffer.

+

A reference that receives the color context profile.

+

A reference that receives the actual buffer size needed to retrieve the entire color context profile.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Only use this method if the context type is . +

Calling this method with pbBuffer set to null will cause it to return the required buffer size in pcbActual. +

+
+ + ee690195 + HRESULT IWICColorContext::GetProfileBytes([In] unsigned int cbBuffer,[In] void* pbBuffer,[Out] unsigned int* pcbActual) + IWICColorContext::GetProfileBytes +
+ + +

Retrieves the Exchangeable Image File (EXIF) color space color context.

+
+

A reference that receives the EXIF color space color context.

ValueMeaning
1

A sRGB color space.

2

An Adobe RGB color space.

3 through 65534

Unused.

?

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method should only be used when indicates . +

+
+ + ee690194 + HRESULT IWICColorContext::GetExifColorSpace([Out] unsigned int* pValue) + IWICColorContext::GetExifColorSpace +
+ + + Initializes a new instance of the class. + + The factory. + HRESULT IWICImagingFactory::CreateColorContext([Out, Fast] IWICColorContext** ppIWICColorContext) + + + + Initializes from memory. + + The data pointer. + + HRESULT IWICColorContext::InitializeFromMemory([In] const void* pbBuffer,[In] unsigned int cbBufferSize) + + + +

Retrieves the color context type.

+
+ + ee690196 + GetType + GetType + HRESULT IWICColorContext::GetType([Out] WICColorContextType* pType) +
+ + +

Retrieves the Exchangeable Image File (EXIF) color space color context.

+
+ +

This method should only be used when indicates . +

+
+ + ee690194 + GetExifColorSpace + GetExifColorSpace + HRESULT IWICColorContext::GetExifColorSpace([Out] unsigned int* pValue) +
+ + + Gets the color context profile. + + + + +

Exposes methods that transforms an from one color context to another.

+
+ +

A is an imaging pipeline component that knows how to pull pixels obtained from a given through a color transform. The color transform is defined by mapping colors from the source color context to the destination color context in a given output pixel format.

Once initialized, a color transform cannot be reinitialized. Because of this, a color transform cannot be used with multiple sources or varying parameters.

+
+ + ee690201 + IWICColorTransform + IWICColorTransform +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes an with a and transforms it from one to another.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The currently supported formats for the pIContextSource and pixelFmtDest parameters are: +

  • (Windows?8 and later)
  • (Windows?8 and later)
  • (Windows?8 and later)
  • (Windows?8 and later)
  • (Windows?8 and later)

In order to get correct behavior from a color transform, the input and output pixel formats must be compatible with the source and destination color profiles. For example, an sRGB destination color profile will produce incorrect results when used with a CMYK destination pixel format.

+
+ + ee690202 + HRESULT IWICColorTransform::Initialize([In, Optional] IWICBitmapSource* pIBitmapSource,[In, Optional] IWICColorContext* pIContextSource,[In, Optional] IWICColorContext* pIContextDest,[In] const GUID& pixelFmtDest) + IWICColorTransform::Initialize +
+ + + Initializes a new instance of the class. + + The factory. + HRESULT IWICImagingFactory::CreateColorTransformer([Out, Fast] IWICColorTransform** ppIWICColorTransform) + + + +

Exposes methods that provide access to the capabilites of a raw codec format.

+
+ + ee690228 + IWICDevelopRaw + IWICDevelopRaw +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves information about which capabilities are supported for a raw image.

+
+

A reference that receives that provides the capabilities supported by the raw image.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

It is recommended that a codec report that a capability is supported even if the results at the outer range limits are not of perfect quality.

+
+ + ee690248 + HRESULT IWICDevelopRaw::QueryRawCapabilitiesInfo([In] WICRawCapabilitiesInfo* pInfo) + IWICDevelopRaw::QueryRawCapabilitiesInfo +
+ + +

Sets the desired option.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690247 + HRESULT IWICDevelopRaw::LoadParameterSet([In] WICRawParameterSet ParameterSet) + IWICDevelopRaw::LoadParameterSet +
+ + +

Gets the current set of parameters.

+
+

A reference that receives a reference to the current set of parameters.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690233 + HRESULT IWICDevelopRaw::GetCurrentParameterSet([Out] IPropertyBag2** ppCurrentParameterSet) + IWICDevelopRaw::GetCurrentParameterSet +
+ + +

Sets the exposure compensation stop value.

+
+

The exposure compensation value. The value range for exposure compensation is -5.0 through +5.0, which equates to 10 full stops.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

It is recommended that a codec report that this method is supported even if the results at the outer range limits are not of perfect quality.

+
+ + ee690251 + HRESULT IWICDevelopRaw::SetExposureCompensation([In] double ev) + IWICDevelopRaw::SetExposureCompensation +
+ + +

Gets the exposure compensation stop value of the raw image.

+
+

A reference that receives the exposure compensation stop value. The default is the "as-shot" setting.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690234 + HRESULT IWICDevelopRaw::GetExposureCompensation([Out] double* pEV) + IWICDevelopRaw::GetExposureCompensation +
+ + +

Sets the white point RGB values.

+
+

The red white point value.

+

The green white point value.

+

The blue white point value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Due to other white point setting methods (e.g. SetWhitePointKelvin), care must be taken by codec implementers to ensure proper interoperability. For instance, if the caller sets via a named white point then the codec implementer may whis to disable reading back the correspoinding Kelvin temperature. In specific cases where the codec implementer wishes to deny a given action because of previous calls, should be returned.

+
+ + ee690263 + HRESULT IWICDevelopRaw::SetWhitePointRGB([In] unsigned int Red,[In] unsigned int Green,[In] unsigned int Blue) + IWICDevelopRaw::SetWhitePointRGB +
+ + +

Gets the white point RGB values.

+
+

A reference that receives the red white point value.

+

A reference that receives the green white point value.

+

A reference that receives the blue white point value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690246 + HRESULT IWICDevelopRaw::GetWhitePointRGB([Out] unsigned int* pRed,[Out] unsigned int* pGreen,[Out] unsigned int* pBlue) + IWICDevelopRaw::GetWhitePointRGB +
+ + +

Sets the named white point of the raw file.

+
+

A bitwise combination of the enumeration values.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the named white points are not supported by the raw image or the raw file contains named white points that are not supported by this API, the codec implementer should still mark this capability as supported.

If the named white points are not supported by the raw image, a best effort should be made to adjust the image to the named white point even when it isn't a pre-defined white point of the raw file.

If the raw file containes named white points not supported by this API, the codec implementer should support the named white points in the API.

Due to other white point setting methods (e.g. SetWhitePointKelvin), care must be taken by codec implementers to ensure proper interoperability. For instance, if the caller sets via a named white point then the codec implementer may whis to disable reading back the correspoinding Kelvin temperature. In specific cases where the codec implementer wishes to deny a given action because of previous calls, should be returned.

+
+ + ee690253 + HRESULT IWICDevelopRaw::SetNamedWhitePoint([In] WICNamedWhitePoint WhitePoint) + IWICDevelopRaw::SetNamedWhitePoint +
+ + +

Gets the named white point of the raw image.

+
+

A reference that receives the bitwise combination of the enumeration values.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the named white points are not supported by the raw image or the raw file contains named white points that are not supported by this API, the codec implementer should still mark this capability as supported.

If the named white points are not supported by the raw image, a best effort should be made to adjust the image to the named white point even when it isn't a pre-defined white point of the raw file.

If the raw file containes named white points not supported by this API, the codec implementer should support the named white points in .

+
+ + ee690237 + HRESULT IWICDevelopRaw::GetNamedWhitePoint([Out] WICNamedWhitePoint* pWhitePoint) + IWICDevelopRaw::GetNamedWhitePoint +
+ + +

Sets the white point Kelvin value.

+
+

The white point Kelvin value. Acceptable Kelvin values are 1,500 through 30,000.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Codec implementers should faithfully adjust the color temperature within the range supported natively by the raw image. For values outside the native support range, the codec implementer should provide a best effort representation of the image at that color temperature.

Codec implementers should return if the value is out of defined acceptable range.

Codec implementers must ensure proper interoperability with other white point setting methods such as SetWhitePointRGB. For example, if the caller sets the white point via SetNamedWhitePoint then the codec implementer may want to disable reading back the correspoinding Kelvin temperature. In specific cases where the codec implementer wants to deny a given action because of previous calls, should be returned.

+
+ + ee690262 + HRESULT IWICDevelopRaw::SetWhitePointKelvin([In] unsigned int WhitePointKelvin) + IWICDevelopRaw::SetWhitePointKelvin +
+ + +

Gets the white point Kelvin temperature of the raw image.

+
+

A reference that receives the white point Kelvin temperature of the raw image. The default is the "as-shot" setting value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690245 + HRESULT IWICDevelopRaw::GetWhitePointKelvin([Out] unsigned int* pWhitePointKelvin) + IWICDevelopRaw::GetWhitePointKelvin +
+ + +

Gets the information about the current Kelvin range of the raw image.

+
+

A reference that receives the minimum Kelvin temperature.

+

A reference that receives the maximum Kelvin temperature.

+

A reference that receives the Kelvin step value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690236 + HRESULT IWICDevelopRaw::GetKelvinRangeInfo([Out] unsigned int* pMinKelvinTemp,[Out] unsigned int* pMaxKelvinTemp,[Out] unsigned int* pKelvinTempStepValue) + IWICDevelopRaw::GetKelvinRangeInfo +
+ + +

Sets the contrast value of the raw image.

+
+

The contrast value of the raw image. The default value is the "as-shot" setting. The value range for contrast is 0.0 through 1.0. The 0.0 lower limit represents no contrast applied to the image, while the 1.0 upper limit represents the highest amount of contrast that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The codec implementer must determine what the upper range value represents and must determine how to map the value to their image processing routines.

+
+ + ee690249 + HRESULT IWICDevelopRaw::SetContrast([In] double Contrast) + IWICDevelopRaw::SetContrast +
+ + +

Gets the contrast value of the raw image.

+
+

A reference that receives the contrast value of the raw image. The default value is the "as-shot" setting. The value range for contrast is 0.0 through 1.0. The 0.0 lower limit represents no contrast applied to the image, while the 1.0 upper limit represents the highest amount of contrast that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690232 + HRESULT IWICDevelopRaw::GetContrast([Out] double* pContrast) + IWICDevelopRaw::GetContrast +
+ + +

Sets the desired gamma value.

+
+

The desired gamma value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690252 + HRESULT IWICDevelopRaw::SetGamma([In] double Gamma) + IWICDevelopRaw::SetGamma +
+ + +

Gets the current gamma setting of the raw image.

+
+

A reference that receives the current gamma setting.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690235 + HRESULT IWICDevelopRaw::GetGamma([Out] double* pGamma) + IWICDevelopRaw::GetGamma +
+ + +

Sets the sharpness value of the raw image.

+
+

The sharpness value of the raw image. The default value is the "as-shot" setting. The value range for sharpness is 0.0 through 1.0. The 0.0 lower limit represents no sharpening applied to the image, while the 1.0 upper limit represents the highest amount of sharpness that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The codec implementer must determine what the upper range value represents and must determine how to map the value to their image processing routines.

+
+ + ee690259 + HRESULT IWICDevelopRaw::SetSharpness([In] double Sharpness) + IWICDevelopRaw::SetSharpness +
+ + +

Gets the sharpness value of the raw image.

+
+

A reference that receives the sharpness value of the raw image. The default value is the "as-shot" setting. The value range for sharpness is 0.0 through 1.0. The 0.0 lower limit represents no sharpening applied to the image, while the 1.0 upper limit represents the highest amount of sharpness that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690242 + HRESULT IWICDevelopRaw::GetSharpness([Out] double* pSharpness) + IWICDevelopRaw::GetSharpness +
+ + +

Sets the saturation value of the raw image.

+
+

The saturation value of the raw image. The value range for saturation is 0.0 through 1.0. A value of 0.0 represents an image with a fully de-saturated image, while a value of 1.0 represents the highest amount of saturation that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The codec implementer must determine what the upper range value represents and must determine how to map the value to their image processing routines.

+
+ + ee690258 + HRESULT IWICDevelopRaw::SetSaturation([In] double Saturation) + IWICDevelopRaw::SetSaturation +
+ + +

Gets the saturation value of the raw image.

+
+

A reference that receives the saturation value of the raw image. The default value is the "as-shot" setting. The value range for saturation is 0.0 through 1.0. A value of 0.0 represents an image with a fully de-saturated image, while a value of 1.0 represents the highest amount of saturation that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690241 + HRESULT IWICDevelopRaw::GetSaturation([Out] double* pSaturation) + IWICDevelopRaw::GetSaturation +
+ + +

Sets the tint value of the raw image.

+
+

The tint value of the raw image. The default value is the "as-shot" setting if it exists or 0.0. The value range for sharpness is -1.0 through +1.0. The -1.0 lower limit represents a full green bias to the image, while the 1.0 upper limit represents a full magenta bias.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The codec implementer must determine what the outer range values represent and must determine how to map the values to their image processing routines.

+
+ + ee690260 + HRESULT IWICDevelopRaw::SetTint([In] double Tint) + IWICDevelopRaw::SetTint +
+ + +

Gets the tint value of the raw image.

+
+

A reference that receives the tint value of the raw image. The default value is the "as-shot" setting if it exists or 0.0. The value range for sharpness is -1.0 through +1.0. The -1.0 lower limit represents a full green bias to the image, while the 1.0 upper limit represents a full magenta bias.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690243 + HRESULT IWICDevelopRaw::GetTint([Out] double* pTint) + IWICDevelopRaw::GetTint +
+ + +

Sets the noise reduction value of the raw image.

+
+

The noise reduction value of the raw image. The default value is the "as-shot" setting if it exists or 0.0. The value range for noise reduction is 0.0 through 1.0. The 0.0 lower limit represents no noise reduction applied to the image, while the 1.0 upper limit represents highest noise reduction amount that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The codec implementer must determine what the upper range value represents and must determine how to map the value to their image processing routines.

+
+ + ee690254 + HRESULT IWICDevelopRaw::SetNoiseReduction([In] double NoiseReduction) + IWICDevelopRaw::SetNoiseReduction +
+ + +

Gets the noise reduction value of the raw image.

+
+

A reference that receives the noise reduction value of the raw image. The default value is the "as-shot" setting if it exists or 0.0. The value range for noise reduction is 0.0 through 1.0. The 0.0 lower limit represents no noise reduction applied to the image, while the 1.0 upper limit represents full highest noise reduction amount that can be applied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690238 + HRESULT IWICDevelopRaw::GetNoiseReduction([Out] double* pNoiseReduction) + IWICDevelopRaw::GetNoiseReduction +
+ + +

Sets the destination color context.

+
+

The destination color context.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690250 + HRESULT IWICDevelopRaw::SetDestinationColorContext([In, Optional] IWICColorContext* pColorContext) + IWICDevelopRaw::SetDestinationColorContext +
+ + +

Sets the tone curve for the raw image.

+
+

The size of the pToneCurve structure.

+

The desired tone curve.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690261 + HRESULT IWICDevelopRaw::SetToneCurve([In] unsigned int cbToneCurveSize,[In, Buffer] const WICRawToneCurve* pToneCurve) + IWICDevelopRaw::SetToneCurve +
+ + +

Gets the tone curve of the raw image.

+
+

The size of the pToneCurve buffer.

+

A reference that receives the of the raw image.

+

A reference that receives the size needed to obtain the tone curve structure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690244 + HRESULT IWICDevelopRaw::GetToneCurve([In] unsigned int cbToneCurveBufferSize,[Out, Buffer, Optional] WICRawToneCurve* pToneCurve,[InOut, Optional] unsigned int* pcbActualToneCurveBufferSize) + IWICDevelopRaw::GetToneCurve +
+ + +

Sets the desired rotation angle.

+
+

The desired rotation angle.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690257 + HRESULT IWICDevelopRaw::SetRotation([In] double Rotation) + IWICDevelopRaw::SetRotation +
+ + +

Gets the current rotation angle.

+
+

A reference that receives the current rotation angle.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690240 + HRESULT IWICDevelopRaw::GetRotation([Out] double* pRotation) + IWICDevelopRaw::GetRotation +
+ + +

Sets the current .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690256 + HRESULT IWICDevelopRaw::SetRenderMode([In] WICRawRenderMode RenderMode) + IWICDevelopRaw::SetRenderMode +
+ + +

Gets the current .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690239 + HRESULT IWICDevelopRaw::GetRenderMode([Out] WICRawRenderMode* pRenderMode) + IWICDevelopRaw::GetRenderMode +
+ + +

Sets the notification callback method.

+
+

Pointer to the notification callback method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690255 + HRESULT IWICDevelopRaw::SetNotificationCallback([In, Optional] IWICDevelopRawNotificationCallback* pCallback) + IWICDevelopRaw::SetNotificationCallback +
+ + +

Gets the current set of parameters.

+
+ + ee690233 + GetCurrentParameterSet + GetCurrentParameterSet + HRESULT IWICDevelopRaw::GetCurrentParameterSet([Out] IPropertyBag2** ppCurrentParameterSet) +
+ + +

Gets or sets the exposure compensation stop value of the raw image.

+
+ + ee690234 + GetExposureCompensation / SetExposureCompensation + GetExposureCompensation + HRESULT IWICDevelopRaw::GetExposureCompensation([Out] double* pEV) +
+ + +

Gets or sets the named white point of the raw image.

+
+ +

If the named white points are not supported by the raw image or the raw file contains named white points that are not supported by this API, the codec implementer should still mark this capability as supported.

If the named white points are not supported by the raw image, a best effort should be made to adjust the image to the named white point even when it isn't a pre-defined white point of the raw file.

If the raw file containes named white points not supported by this API, the codec implementer should support the named white points in .

+
+ + ee690237 + GetNamedWhitePoint / SetNamedWhitePoint + GetNamedWhitePoint + HRESULT IWICDevelopRaw::GetNamedWhitePoint([Out] WICNamedWhitePoint* pWhitePoint) +
+ + +

Gets or sets the white point Kelvin temperature of the raw image.

+
+ + ee690245 + GetWhitePointKelvin / SetWhitePointKelvin + GetWhitePointKelvin + HRESULT IWICDevelopRaw::GetWhitePointKelvin([Out] unsigned int* pWhitePointKelvin) +
+ + +

Gets or sets the contrast value of the raw image.

+
+ + ee690232 + GetContrast / SetContrast + GetContrast + HRESULT IWICDevelopRaw::GetContrast([Out] double* pContrast) +
+ + +

Gets or sets the current gamma setting of the raw image.

+
+ + ee690235 + GetGamma / SetGamma + GetGamma + HRESULT IWICDevelopRaw::GetGamma([Out] double* pGamma) +
+ + +

Gets or sets the sharpness value of the raw image.

+
+ + ee690242 + GetSharpness / SetSharpness + GetSharpness + HRESULT IWICDevelopRaw::GetSharpness([Out] double* pSharpness) +
+ + +

Gets or sets the saturation value of the raw image.

+
+ + ee690241 + GetSaturation / SetSaturation + GetSaturation + HRESULT IWICDevelopRaw::GetSaturation([Out] double* pSaturation) +
+ + +

Gets or sets the tint value of the raw image.

+
+ + ee690243 + GetTint / SetTint + GetTint + HRESULT IWICDevelopRaw::GetTint([Out] double* pTint) +
+ + +

Gets or sets the noise reduction value of the raw image.

+
+ + ee690238 + GetNoiseReduction / SetNoiseReduction + GetNoiseReduction + HRESULT IWICDevelopRaw::GetNoiseReduction([Out] double* pNoiseReduction) +
+ + +

Sets the destination color context.

+
+ + ee690250 + SetDestinationColorContext + SetDestinationColorContext + HRESULT IWICDevelopRaw::SetDestinationColorContext([In, Optional] IWICColorContext* pColorContext) +
+ + +

Gets or sets the current rotation angle.

+
+ + ee690240 + GetRotation / SetRotation + GetRotation + HRESULT IWICDevelopRaw::GetRotation([Out] double* pRotation) +
+ + +

Gets or sets the current .

+
+ + ee690239 + GetRenderMode / SetRenderMode + GetRenderMode + HRESULT IWICDevelopRaw::GetRenderMode([Out] WICRawRenderMode* pRenderMode) +
+ + +

Sets the notification callback method.

+
+ + ee690255 + SetNotificationCallback + SetNotificationCallback + HRESULT IWICDevelopRaw::SetNotificationCallback([In, Optional] IWICDevelopRawNotificationCallback* pCallback) +
+ + +

Exposes a callback method for raw image change nofications.

+
+ + ee690229 + IWICDevelopRawNotificationCallback + IWICDevelopRawNotificationCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

An application-defined callback method used for raw image parameter change notifications.

+
+

A set of Constants parameter notification flags.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690230 + HRESULT IWICDevelopRawNotificationCallback::Notify([In] unsigned int NotificationMask) + IWICDevelopRawNotificationCallback::Notify +
+ + +

Exposes methods that provide enumeration services for individual metadata items.

+
+ + ee690264 + IWICEnumMetadataItem + IWICEnumMetadataItem +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Skips to given number of objects.

+
+

The number of objects to skip.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690268 + HRESULT IWICEnumMetadataItem::Skip([In] unsigned int celt) + IWICEnumMetadataItem::Skip +
+ + +

Resets the current position to the beginning of the enumeration.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690267 + HRESULT IWICEnumMetadataItem::Reset() + IWICEnumMetadataItem::Reset +
+ + +

Creates a copy of the current .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690265 + HRESULT IWICEnumMetadataItem::Clone([Out] IWICEnumMetadataItem** ppIEnumMetadataItem) + IWICEnumMetadataItem::Clone +
+ + +

Exposes methods used for in-place metadata editing. A fast metadata encoder enables you to add and remove metadata to an image without having to fully re-encode the image.

+
+ +

A decoder must be created using the value to perform in-place metadata updates. Using the option causes the decoder to release the file stream necessary to perform the metadata updates.

Not all metadata formats support fast metadata encoding. The native metadata handlers that support metadata are IFD, Exif, XMP, and GPS.

If a fast metadata encoder fails, the image will need to be fully re-encoded to add the metadata.

+
+ + ee690269 + IWICFastMetadataEncoder + IWICFastMetadataEncoder +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Finalizes metadata changes to the image stream.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the commit fails and returns , ensure that the image decoder was loaded using the option. A fast metadata encoder is not supported when the decoder is created using the option.

If the commit fails for any reason, you will need to re-encode the image to ensure the new metadata is added to the image.

+
+ + ee690270 + HRESULT IWICFastMetadataEncoder::Commit() + IWICFastMetadataEncoder::Commit +
+ + +

Retrieves a metadata query writer for fast metadata encoding.

+
+

When this method returns, contains a reference to the fast metadata encoder's metadata query writer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690272 + HRESULT IWICFastMetadataEncoder::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter) + IWICFastMetadataEncoder::GetMetadataQueryWriter +
+ + + Initializes a new instance of the class from a + + The factory. + The decoder. + + + + Initializes a new instance of the class from a + + The factory. + The frame decoder. + + + +

Retrieves a metadata query writer for fast metadata encoding.

+
+ + ee690272 + GetMetadataQueryWriter + GetMetadataQueryWriter + HRESULT IWICFastMetadataEncoder::GetMetadataQueryWriter([Out] IWICMetadataQueryWriter** ppIMetadataQueryWriter) +
+ + +

Represents an that provides converts the image data from one pixel format to another, handling dithering and halftoning to indexed formats, palette translation and alpha thresholding.

+
+ + ee690274 + IWICFormatConverter + IWICFormatConverter +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the format converter.

+
+

The input bitmap to convert

+

The destination pixel format .

+

The used for conversion.

+

The palette to use for conversion.

+

The alpha threshold to use for conversion.

+

The palette translation type to use for conversion.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If you do not have a predefined palette, you must first create one. Use InitializeFromBitmap to create the palette object, then pass it in along with your other parameters.

dither, pIPalette, alphaThresholdPercent, and paletteTranslate are used to mitigate color loss when converting to a reduced bit-depth format. For conversions that do not need these settings, the following parameters values should be used: dither set to , pIPalette set to null, alphaThresholdPercent set to 0.0f, and paletteTranslate set to .

The basic algorithm involved when using an ordered dither requires a fixed palette, found in the enumeration, in a specific order. Often, the actual palette provided for the output may have a different ordering or some slight variation in the actual colors. This is the case when using the Microsoft?Windows palette which has slight differences among versions of Windows. To provide for this, a palette and a palette translation are given to the format converter. The pIPalette is the actual destination palette to be used and the paletteTranslate is a fixed palette. Once the conversion is complete, the colors are mapped from the fixed palette to the actual colors in pIPalette using a nearest color matching algorithm.

If colors in pIPalette do not closely match those in paletteTranslate, the mapping may produce undesireable results.

can be useful in format conversions from 8-bit formats to 5- or 6-bit formats as there is no way to accurately convert color data.

selects the error diffusion algorithm and may be used with any palette. If an arbitrary palette is provided, WICBitmapPaletteCustom should be passed in as the paletteTranslate. Error diffusion often provides superior results compared to the ordered dithering algorithms especially when combined with the optimized palette generation functionality on the .

When converting a bitmap which has an alpha channel, such as a Portable Network Graphics (PNG), to 8bpp, the alpha channel is normally ignored. Any pixels which were transparent in the original bitmap show up as black in the final output because both transparent and black have pixel values of zero in the respective formats.

Some 8bpp content can contains an alpha color; for instance, the Graphics Interchange Format (GIF) format allows for a single palette entry to be used as a transparent color. For this type of content, alphaThresholdPercent specifies what percentage of transparency should map to the transparent color. Because the alpha value is directly proportional to the opacity (not transparency) of a pixel, the alphaThresholdPercent indicates what level of opacity is mapped to the fully transparent color. For instance, 9.8% implies that any pixel with an alpha value of less than 25 will be mapped to the transparent color. A value of 100% maps all pixels which are not fully opaque to the transparent color. Note that the palette should provide a transparent color. If it does not, the 'transparent' color will be the one closest to zero - often black.

+
+ + ee690279 + HRESULT IWICFormatConverter::Initialize([In, Optional] IWICBitmapSource* pISource,[In] const GUID& dstFormat,[In] WICBitmapDitherType dither,[In, Optional] IWICPalette* pIPalette,[In] double alphaThresholdPercent,[In] WICBitmapPaletteType paletteTranslate) + IWICFormatConverter::Initialize +
+ + +

Determines if the source pixel format can be converted to the destination pixel format.

+
+

The source pixel format.

+

The destionation pixel format.

+

A reference that receives a value indicating whether the source pixel format can be converted to the destination pixel format.

+ + ee690278 + HRESULT IWICFormatConverter::CanConvert([In] const GUID& srcPixelFormat,[In] const GUID& dstPixelFormat,[Out] BOOL* pfCanConvert) + IWICFormatConverter::CanConvert +
+ + + Initializes a new instance of the class. + + The converter info. + + + + Initializes this instance with the specified bitmap source and format + + The source ref. + The destination format. + + + + + Initializes a new instance of the class. + + The factory. + + + +

Exposes methods that provide information about a pixel format converter.

+
+ + ee690275 + IWICFormatConverterInfo + IWICFormatConverterInfo +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a list of GUIDs that signify which pixel formats the converter supports.

+
+

The size of the pPixelFormatGUIDs array.

+

Pointer to a array that receives the pixel formats the converter supports.

+

The actual array size needed to retrieve all pixel formats supported by the converter.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The format converter does not necessarily guarantee symmetricality with respect to conversion; that is, a converter may be able to convert FROM a particular format without actually being able to convert TO a particular format. In order to test symmetricality, use CanConvert.

To determine the number of pixel formats a coverter can handle, set cFormats to 0 and pPixelFormatGUIDs to null. The converter will fill pcActual with the number of formats supported by that converter.

+
+ + ee690277 + HRESULT IWICFormatConverterInfo::GetPixelFormats([In] unsigned int cFormats,[In] void* pPixelFormatGUIDs,[Out] unsigned int* pcActual) + IWICFormatConverterInfo::GetPixelFormats +
+ + +

Creates a new instance.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690276 + HRESULT IWICFormatConverterInfo::CreateInstance([Out, Fast] IWICFormatConverter** ppIConverter) + IWICFormatConverterInfo::CreateInstance +
+ + + Gets the supported pixel formats. + + + + +

Exposes methods used to create components for the Windows Imaging Component (WIC) such as decoders, encoders and pixel format converters.

+
+ + ee690281 + IWICImagingFactory + IWICImagingFactory +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + Constant WICImagingFactoryClsid. + CLSID_WICImagingFactory + + + +

Creates a new instance of the class based on the given file.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690307 + HRESULT IWICImagingFactory::CreateDecoderFromFilename([In] const wchar_t* wzFilename,[In, Optional] const GUID* pguidVendor,[In] unsigned int dwDesiredAccess,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + IWICImagingFactory::CreateDecoderFromFilename +
+ + +

Creates a new instance of the class based on the given .

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690309 + HRESULT IWICImagingFactory::CreateDecoderFromStream([In, Optional] IStream* pIStream,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + IWICImagingFactory::CreateDecoderFromStream +
+ + +

Creates a new instance of the based on the given file handle.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When a decoder is created using this method, the file handle must remain alive during the lifetime of the decoder.

+
+ + ee690305 + HRESULT IWICImagingFactory::CreateDecoderFromFileHandle([In] ULONG_PTR hFile,[In, Optional] const GUID* pguidVendor,[In] WICDecodeOptions metadataOptions,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + IWICImagingFactory::CreateDecoderFromFileHandle +
+ + +

Creates a new instance of the class for the given component class identifier (CLSID).

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690302 + HRESULT IWICImagingFactory::CreateComponentInfo([In] const GUID& clsidComponent,[Out, Fast] IWICComponentInfo** ppIInfo) + IWICImagingFactory::CreateComponentInfo +
+ + +

Creates a new instance of .

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Other values may be available for both guidContainerFormat and pguidVendor depending on the installed WIC-enabled encoders. The values listed are those that are natively supported by the operating system.

+
+ + ee690304 + HRESULT IWICImagingFactory::CreateDecoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapDecoder** ppIDecoder) + IWICImagingFactory::CreateDecoder +
+ + +

Creates a new instance of the class.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Other values may be available for both guidContainerFormat and pguidVendor depending on the installed WIC-enabled encoders. The values listed are those that are natively supported by the operating system.

+
+ + ee690311 + HRESULT IWICImagingFactory::CreateEncoder([In] const GUID& guidContainerFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICBitmapEncoder** ppIEncoder) + IWICImagingFactory::CreateEncoder +
+ + +

Creates a new instance of the class.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690319 + HRESULT IWICImagingFactory::CreatePalette([Out, Fast] IWICPalette** ppIPalette) + IWICImagingFactory::CreatePalette +
+ + +

Creates a new instance of the class.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690317 + HRESULT IWICImagingFactory::CreateFormatConverter([Out, Fast] IWICFormatConverter** ppIFormatConverter) + IWICImagingFactory::CreateFormatConverter +
+ + +

Creates a new instance of an .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690296 + HRESULT IWICImagingFactory::CreateBitmapScaler([Out, Fast] IWICBitmapScaler** ppIBitmapScaler) + IWICImagingFactory::CreateBitmapScaler +
+ + +

Creates a new instance of an object.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690283 + HRESULT IWICImagingFactory::CreateBitmapClipper([Out, Fast] IWICBitmapClipper** ppIBitmapClipper) + IWICImagingFactory::CreateBitmapClipper +
+ + +

Creates a new instance of an object.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690285 + HRESULT IWICImagingFactory::CreateBitmapFlipRotator([Out, Fast] IWICBitmapFlipRotator** ppIBitmapFlipRotator) + IWICImagingFactory::CreateBitmapFlipRotator +
+ + +

Creates a new instance of the class.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690325 + HRESULT IWICImagingFactory::CreateStream([Out, Fast] IWICStream** ppIWICStream) + IWICImagingFactory::CreateStream +
+ + +

Creates a new instance of the class.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690299 + HRESULT IWICImagingFactory::CreateColorContext([Out, Fast] IWICColorContext** ppIWICColorContext) + IWICImagingFactory::CreateColorContext +
+ + +

Creates a new instance of the class.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690300 + HRESULT IWICImagingFactory::CreateColorTransformer([Out, Fast] IWICColorTransform** ppIWICColorTransform) + IWICImagingFactory::CreateColorTransformer +
+ + +

Creates an object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690282 + HRESULT IWICImagingFactory::CreateBitmap([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmap +
+ + +

Creates a from a .

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690293 + HRESULT IWICImagingFactory::CreateBitmapFromSource([In, Optional] IWICBitmapSource* pIBitmapSource,[In] WICBitmapCreateCacheOption option,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromSource +
+ + +

Creates an from a specified rectangle of an .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Providing a rectangle that is larger than the source will produce undefined results.

This method always creates a separate copy of the source image, similar to the cache option .

+
+ + ee690294 + HRESULT IWICImagingFactory::CreateBitmapFromSourceRect([In, Optional] IWICBitmapSource* pIBitmapSource,[In] unsigned int x,[In] unsigned int y,[In] unsigned int width,[In] unsigned int height,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromSourceRect +
+ + +

Creates an from a memory block.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The size of the to be created must be smaller than or equal to the size of the image in pbBuffer.

The stride of the destination bitmap will equal the stride of the source data, regardless of the width and height specified.

The pixelFormat parameter defines the pixel format for both the input data and the output bitmap.

+
+ + ee690291 + HRESULT IWICImagingFactory::CreateBitmapFromMemory([In] unsigned int uiWidth,[In] unsigned int uiHeight,[In] const GUID& pixelFormat,[In] unsigned int cbStride,[In] unsigned int cbBufferSize,[In] void* pbBuffer,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromMemory +
+ + +

Creates an from a bitmap handle.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For a non-palletized bitmap, set null for the hPalette parameter.

+
+ + ee690287 + HRESULT IWICImagingFactory::CreateBitmapFromHBITMAP([In] HBITMAP hBitmap,[In, Optional] HPALETTE hPalette,[In] WICBitmapAlphaChannelOption options,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromHBITMAP +
+ + +

Creates an from an icon handle.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690289 + HRESULT IWICImagingFactory::CreateBitmapFromHICON([In] HICON hIcon,[Out, Fast] IWICBitmap** ppIBitmap) + IWICImagingFactory::CreateBitmapFromHICON +
+ + +

Creates an object of the specified component types.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Component types must be enumerated seperately. Combinations of component types and are unsupported.

+
+ + ee690301 + HRESULT IWICImagingFactory::CreateComponentEnumerator([In] unsigned int componentTypes,[In] unsigned int options,[Out, Fast] IEnumUnknown** ppIEnumUnknown) + IWICImagingFactory::CreateComponentEnumerator +
+ + +

Creates a new instance of the fast metadata encoder based on the given .

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Windows provided codecs do not support fast metadata encoding at the decoder level, and only support fast metadata encoding at the frame level. To create a fast metadata encoder from a frame, see CreateFastMetadataEncoderFromFrameDecode.

+
+ + ee690313 + HRESULT IWICImagingFactory::CreateFastMetadataEncoderFromDecoder([In, Optional] IWICBitmapDecoder* pIDecoder,[Out, Fast] IWICFastMetadataEncoder** ppIFastEncoder) + IWICImagingFactory::CreateFastMetadataEncoderFromDecoder +
+ + +

Creates a new instance of the fast metadata encoder based on the given image frame.

+
+

The to create the from.

+

When this method returns, contains a reference to a new fast metadata encoder.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For a list of support metadata formats for fast metadata encoding, see WIC Metadata Overview.

+
+ + ee690315 + HRESULT IWICImagingFactory::CreateFastMetadataEncoderFromFrameDecode([In, Optional] IWICBitmapFrameDecode* pIFrameDecoder,[Out, Fast] IWICFastMetadataEncoder** ppIFastEncoder) + IWICImagingFactory::CreateFastMetadataEncoderFromFrameDecode +
+ + +

Creates a new instance of a query writer.

+
+

The for the desired metadata format.

+

The for the preferred metadata writer vendor. Use null if no preferred vendor.

+

When this method returns, contains a reference to a new .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690321 + HRESULT IWICImagingFactory::CreateQueryWriter([In] const GUID& guidMetadataFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter) + IWICImagingFactory::CreateQueryWriter +
+ + +

Creates a new instance of a query writer based on the given query reader. The query writer will be pre-populated with metadata from the query reader.

+
+

The to create the from.

+

The for the preferred metadata writer vendor. Use null if no preferred vendor.

+

When this method returns, contains a reference to a new metadata writer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee690322 + HRESULT IWICImagingFactory::CreateQueryWriterFromReader([In, Optional] IWICMetadataQueryReader* pIQueryReader,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter) + IWICImagingFactory::CreateQueryWriterFromReader +
+ + + Initializes a new instance of the class. + + + + +

Exposes methods for retrieving metadata blocks and items from a decoder or its image frames using a metadata query expression.

+
+ +

A metadata query reader uses metadata query expressions to access embedded metadata. For more information on the metadata query language, see the Metadata Query Language Overview.

The benefit of the query reader is the ability to access a metadata item in a single step. +

The query reader also provides the way to traverse the whole set of metadata hierarchy with the help of the GetEnumerator method. + However, it is not recommended to use this method since IWICMetadataBlockReader and IWICMetadataReader provide a more convenient and cheaper way. +

+
+ + ee719708 + IWICMetadataQueryReader + IWICMetadataQueryReader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the metadata query readers container format.

+
+

Pointer that receives the cointainer format .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719709 + HRESULT IWICMetadataQueryReader::GetContainerFormat([Out] GUID* pguidContainerFormat) + IWICMetadataQueryReader::GetContainerFormat +
+ + +

Retrieves the current path relative to the root metadata block.

+
+

The length of the wzNamespace buffer.

+

Pointer that receives the current namespace location.

+

The actual buffer length that was needed to retrieve the current namespace location.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If you pass null to wzNamespace, GetLocation ignores cchMaxLength and returns the required buffer length to store the path in the variable that pcchActualLength points to. +

If the query reader is relative to the top of the metadata hierarchy, it will return a single-char string.

If the query reader is relative to a nested metadata block, this method will return the path to the current query reader.

+
+ + ee719713 + HRESULT IWICMetadataQueryReader::GetLocation([In] unsigned int cchMaxLength,[In] void* wzNamespace,[Out] unsigned int* pcchActualLength) + IWICMetadataQueryReader::GetLocation +
+ + +

Retrieves the metadata block or item identified by a metadata query expression.

+
+

The query expression to the requested metadata block or item.

+

When this method returns, contains the metadata block or item requested.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

GetMetadataByName uses metadata query expressions to access embedded metadata. For more information on the metadata query language, see the Metadata Query Language Overview.

If multiple blocks or items exist that are expressed by the same query expression, the first metadata block or item found will be returned.

+
+ + ee719715 + HRESULT IWICMetadataQueryReader::GetMetadataByName([In] const wchar_t* wzName,[In] void* pvarValue) + IWICMetadataQueryReader::GetMetadataByName +
+ + +

Gets an enumerator of all metadata items at the current relative location within the metadata hierarchy.

+
+

A reference to a variable that receives a reference to the interface for the enumerator that contains query strings that can be used in the current .

+ +

The retrieved enumerator only contains query strings for the metadata blocks and items in the current level of the hierarchy. +

+
+ + ee719711 + HRESULT IWICMetadataQueryReader::GetEnumerator([Out] void** ppIEnumString) + IWICMetadataQueryReader::GetEnumerator +
+ + + Try to get the metadata value by name. + + The name. + The metadata value, or null if the metadata was not found or an error occurred + The WIC error code + HRESULT IWICMetadataQueryReader::GetMetadataByName([In] const wchar_t* wzName,[InOut, Optional] PROPVARIANT* pvarValue) + + + + Try to get the metadata value by name. + + The name. + the metadata value, or null if the metadata was not found + HRESULT IWICMetadataQueryReader::GetMetadataByName([In] const wchar_t* wzName,[InOut, Optional] PROPVARIANT* pvarValue) + + + + Gets the metadata value by name. + + The name. + Value of the metadata + HRESULT IWICMetadataQueryReader::GetMetadataByName([In] const wchar_t* wzName,[InOut, Optional] PROPVARIANT* pvarValue) + + + + Dumps all metadata. + + The text writer output. + The level of tabulations. + + This is a simple helper method to dump metadata stored in this instance. + + + + +

Gets the metadata query readers container format.

+
+ + ee719709 + GetContainerFormat + GetContainerFormat + HRESULT IWICMetadataQueryReader::GetContainerFormat([Out] GUID* pguidContainerFormat) +
+ + + Gets the enumerator on the metadata names. + + + + + Gets the enumerator on all the metadata query paths. + http://msdn.microsoft.com/en-us/library/windows/desktop/ee719796(v=vs.85).aspx#expressionanatomy + + + + + Gets the location. + + HRESULT IWICMetadataQueryReader::GetLocation([In] unsigned int cchMaxLength,[InOut, Buffer, Optional] wchar_t* wzNamespace,[Out] unsigned int* pcchActualLength) + + + +

Exposes methods for setting or removing metadata blocks and items to an encoder or its image frames using a metadata query expression.

+
+ +

A metadata query writer uses metadata query expressions to set or remove metadata. For more information on the metadata query language, see the Metadata Query Language Overview.

+
+ + ee719717 + IWICMetadataQueryWriter + IWICMetadataQueryWriter +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets a metadata item to a specific location.

+
+

The name of the metadata item.

+

The metadata to set.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

SetMetadataByName uses metadata query expressions to remove metadata. For more information on the metadata query language, see the Metadata Query Language Overview.

If the value set is a nested metadata block then use variant type VT_UNKNOWN and pvarValue pointing to the of the new metadata block. The ordering of metadata items is at the discretion of the query writer since relative locations are not specified.

+
+ + ee719720 + HRESULT IWICMetadataQueryWriter::SetMetadataByName([In] const wchar_t* wzName,[In] const void* pvarValue) + IWICMetadataQueryWriter::SetMetadataByName +
+ + +

Removes a metadata item from a specific location using a metadata query expression.

+
+

The name of the metadata item to remove.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

RemoveMetadataByName uses metadata query expressions to remove metadata. For more information on the metadata query language, see the Metadata Query Language Overview.

If the metadata item is a metadata block, it is removed from the metadata hierarchy.

+
+ + ee719718 + HRESULT IWICMetadataQueryWriter::RemoveMetadataByName([In] const wchar_t* wzName) + IWICMetadataQueryWriter::RemoveMetadataByName +
+ + + Initializes a new instance of the class. + + The factory. + The GUID metadata format. + + + + Initializes a new instance of the class. + + The factory. + The GUID metadata format. + The GUID vendor ref. + HRESULT IWICImagingFactory::CreateQueryWriter([In] const GUID& guidMetadataFormat,[In, Optional] const GUID* pguidVendor,[Out, Fast] IWICMetadataQueryWriter** ppIQueryWriter) + + + + Initializes a new instance of the class from a . + + The factory. + The metadata query reader. + + + + Initializes a new instance of the class from a . + + The factory. + The metadata query reader. + The GUID vendor ref. + + + + Sets the value for a metadata name + + The name of the metadata. + The value. + + + + +

Exposes methods for accessing and building a color table, primarily for indexed pixel formats.

+
+ +

If the is not WICBitmapPaletteCustom, then the colors are automatically generated based on the table above. If the user subsequently changes a color palette entry the WICBitmapPalette is set to Custom by that action.

InitializeFromBitmap's fAddTransparentColor parameter will add a transparent color to the end of the color collection if its size if less than 256, otherwise index 255 will be replaced with the transparent color. If a pre-defined palette type is used, it will change to BitmapPaletteTypeCustom since it no longer matches the predefined palette.

The palette interface is an auxiliary imaging interface in that it does not directly concern bitmaps and pixels; rather it provides indexed color translation for indexed bitmaps. For an indexed pixel format with M bits per pixels: (The number of colors in the palette) greater than 2^M.

Traditionally the basic operation of the palette is to provide a translation from a byte (or smaller) index into a 32bpp color value. This is often accomplished by a 256 entry table of color values.

+
+ + ee719741 + IWICPalette + IWICPalette +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the palette to one of the pre-defined palettes specified by and optionally adds a transparent color.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If a transparent color is added to a palette, the palette is no longer predefined and is returned as . For palettes with less than 256 entries, the transparent entry is added to the end of the palette (that is, a 16-color palette becomes a 17-color palette). For palettes with 256 colors, the transparent palette entry will replace the last entry in the pre-defined palette. +

+
+ + ee719756 + HRESULT IWICPalette::InitializePredefined([In] WICBitmapPaletteType ePaletteType,[In] BOOL fAddTransparentColor) + IWICPalette::InitializePredefined +
+ + +

Initializes a palette to the custom color entries provided.

+
+

Pointer to the color array.

+

The number of colors in pColors.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If a transparent color is required, provide it as part of the custom entries. To add a transparent value to the palette, its alpha value must be 0 (0x00RRGGBB). +

The entry count is limited to 256.

+
+ + ee719750 + HRESULT IWICPalette::InitializeCustom([In, Buffer] void* pColors,[In] unsigned int cCount) + IWICPalette::InitializeCustom +
+ + +

Initializes a palette using a computed optimized values based on the reference bitmap.

+
+

Pointer to the source bitmap.

+

The number of colors to initialize the palette with.

+

A value to indicate whether to add a transparent color.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The resulting palette contains the specified number of colors which best represent the colors present in the bitmap. The algorithm operates on the opaque RGB color value of each pixel in the reference bitmap and hence ignores any alpha values. If a transparent color is required, set the fAddTransparentColor parameter to TRUE and one fewer optimized color will be computed, reducing the colorCount, and a fully transparent color entry will be added.

+
+ + ee719752 + HRESULT IWICPalette::InitializeFromBitmap([In, Optional] IWICBitmapSource* pISurface,[In] unsigned int cCount,[In] BOOL fAddTransparentColor) + IWICPalette::InitializeFromBitmap +
+ + +

Initialize the palette based on a given palette.

+
+

Pointer to the source palette.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719754 + HRESULT IWICPalette::InitializeFromPalette([In, Optional] IWICPalette* pIPalette) + IWICPalette::InitializeFromPalette +
+ + +

Retrieves the that describes the palette.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

WICBitmapPaletteCustom is used for palettes initialized from both InitializeCustom and InitializeFromBitmap. There is no distinction is made between optimized and custom palettes.

+
+ + ee719746 + HRESULT IWICPalette::GetType([Out] WICBitmapPaletteType* pePaletteType) + IWICPalette::GetType +
+ + +

Retrieves the number of colors in the color table.

+
+

Pointer that receives the number of colors in the color table.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719742 + HRESULT IWICPalette::GetColorCount([Out] unsigned int* pcCount) + IWICPalette::GetColorCount +
+ + +

Fills out the supplied color array with the colors from the internal color table. The color array should be sized according to the return results from GetColorCount.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719744 + HRESULT IWICPalette::GetColors([In] unsigned int cCount,[Out, Buffer] void* pColors,[Out] unsigned int* pcActualColors) + IWICPalette::GetColors +
+ + +

Retrieves a value that describes whether the palette is black and white.

+
+

A reference to a variable that receives a boolean value that indicates whether the palette is black and white. TRUE indicates that the palette is black and white; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

A palette is considered to be black and white only if it contains exactly two entries, one full black (0xFF000000) and one full white (0xFFFFFFF). +

+
+ + ee719758 + HRESULT IWICPalette::IsBlackWhite([Out] BOOL* pfIsBlackWhite) + IWICPalette::IsBlackWhite +
+ + +

Retrieves a value that describes whether a palette is grayscale.

+
+

A reference to a variable that receives a boolean value that indicates whether the palette is grayscale. TRUE indicates that the palette is grayscale; otherwise .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

A palette is considered grayscale only if, for every entry, the alpha value is 0xFF and the red, green and blue values match. +

+
+ + ee719759 + HRESULT IWICPalette::IsGrayscale([Out] BOOL* pfIsGrayscale) + IWICPalette::IsGrayscale +
+ + +

Indicates whether the palette contains an entry that is non-opaque (that is, an entry with an alpha that is less than 1). +

+
+

Pointer that receives TRUE if the palette contains a transparent color; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Various image formats support alpha in different ways. PNG has full alpha support by supporting partially transparent palette entries. GIF stores colors as 24bpp, without alpha, but allows one palette entry to be specified as fully transparent. If a palette has multiple fully transparent entries (0x00RRGGBB), GIF will use the last one as its transparent index. +

+
+ + ee719748 + HRESULT IWICPalette::HasAlpha([Out] BOOL* pfHasAlpha) + IWICPalette::HasAlpha +
+ + + Initializes a new instance of the class. + + The factory. + ee690319 + HRESULT IWICImagingFactory::CreatePalette([Out, Fast] IWICPalette** ppIPalette) + IWICImagingFactory::CreatePalette + + + + Initializes with the specified colors. + + The colors. + ee719750 + HRESULT IWICPalette::InitializeCustom([In, Buffer] void* pColors,[In] unsigned int cCount) + IWICPalette::InitializeCustom + + + + Initializes with the specified colors. + + The colors. + ee719750 + HRESULT IWICPalette::InitializeCustom([In, Buffer] void* pColors,[In] unsigned int cCount) + IWICPalette::InitializeCustom + + + +

Retrieves the that describes the palette.

+
+ +

WICBitmapPaletteCustom is used for palettes initialized from both InitializeCustom and InitializeFromBitmap. There is no distinction is made between optimized and custom palettes.

+
+ + ee719746 + GetType + GetType + HRESULT IWICPalette::GetType([Out] WICBitmapPaletteType* pePaletteType) +
+ + +

Retrieves the number of colors in the color table.

+
+ + ee719742 + GetColorCount + GetColorCount + HRESULT IWICPalette::GetColorCount([Out] unsigned int* pcCount) +
+ + +

Retrieves a value that describes whether the palette is black and white.

+
+ +

A palette is considered to be black and white only if it contains exactly two entries, one full black (0xFF000000) and one full white (0xFFFFFFF). +

+
+ + ee719758 + IsBlackWhite + IsBlackWhite + HRESULT IWICPalette::IsBlackWhite([Out] BOOL* pfIsBlackWhite) +
+ + +

Retrieves a value that describes whether a palette is grayscale.

+
+ +

A palette is considered grayscale only if, for every entry, the alpha value is 0xFF and the red, green and blue values match. +

+
+ + ee719759 + IsGrayscale + IsGrayscale + HRESULT IWICPalette::IsGrayscale([Out] BOOL* pfIsGrayscale) +
+ + + Gets the colors. + + ee719744 + HRESULT IWICPalette::GetColors([In] unsigned int cCount,[Out, Buffer] void* pColors,[Out] unsigned int* pcActualColors) + IWICPalette::GetColors + + + +

Exposes methods that provide information about a pixel format.

+
+ + ee719763 + IWICPixelFormatInfo + IWICPixelFormatInfo +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the pixel format .

+
+

Pointer that receives the pixel format .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719774 + HRESULT IWICPixelFormatInfo::GetFormatGUID([Out] GUID* pFormat) + IWICPixelFormatInfo::GetFormatGUID +
+ + +

Gets the pixel format's .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The returned color context is the default color space for the pixel format. However, if an specifies its own color context, the source's context should be preferred over the pixel format's default. +

+
+ + ee719773 + HRESULT IWICPixelFormatInfo::GetColorContext([Out] IWICColorContext** ppIColorContext) + IWICPixelFormatInfo::GetColorContext +
+ + +

Gets the bits per pixel (BPP) of the pixel format.

+
+

Pointer that receives the BPP of the pixel format.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719767 + HRESULT IWICPixelFormatInfo::GetBitsPerPixel([Out] unsigned int* puiBitsPerPixel) + IWICPixelFormatInfo::GetBitsPerPixel +
+ + +

Gets the number of channels the pixel format contains.

+
+

Pointer that receives the channel count.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719769 + HRESULT IWICPixelFormatInfo::GetChannelCount([Out] unsigned int* puiChannelCount) + IWICPixelFormatInfo::GetChannelCount +
+ + +

Gets the pixel format's channel mask.

+
+

The index to the channel mask to retrieve.

+

The size of the pbMaskBuffer buffer.

+

Pointer to the mask buffer.

+

The actual buffer size needed to obtain the channel mask.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If 0 and null are passed in for cbMaskBuffer and pbMaskBuffer, respectively, the required buffer size will be returned through pcbActual. +

+
+ + ee719771 + HRESULT IWICPixelFormatInfo::GetChannelMask([In] unsigned int uiChannelIndex,[In] unsigned int cbMaskBuffer,[In] void* pbMaskBuffer,[Out] unsigned int* pcbActual) + IWICPixelFormatInfo::GetChannelMask +
+ + + Gets the channel mask. + + Index of the channel. + + HRESULT IWICPixelFormatInfo::GetChannelMask([In] unsigned int uiChannelIndex,[In] unsigned int cbMaskBuffer,[In] void* pbMaskBuffer,[Out] unsigned int* pcbActual) + + + +

Gets the pixel format .

+
+ + ee719774 + GetFormatGUID + GetFormatGUID + HRESULT IWICPixelFormatInfo::GetFormatGUID([Out] GUID* pFormat) +
+ + +

Gets the pixel format's .

+
+ +

The returned color context is the default color space for the pixel format. However, if an specifies its own color context, the source's context should be preferred over the pixel format's default. +

+
+ + ee719773 + GetColorContext + GetColorContext + HRESULT IWICPixelFormatInfo::GetColorContext([Out] IWICColorContext** ppIColorContext) +
+ + +

Gets the bits per pixel (BPP) of the pixel format.

+
+ + ee719767 + GetBitsPerPixel + GetBitsPerPixel + HRESULT IWICPixelFormatInfo::GetBitsPerPixel([Out] unsigned int* puiBitsPerPixel) +
+ + +

Gets the number of channels the pixel format contains.

+
+ + ee719769 + GetChannelCount + GetChannelCount + HRESULT IWICPixelFormatInfo::GetChannelCount([Out] unsigned int* puiChannelCount) +
+ + +

Extends by providing additional information about a pixel format.

+
+ + ee719764 + IWICPixelFormatInfo2 + IWICPixelFormatInfo2 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns whether the format supports transparent pixels.

+
+

Returns TRUE if the pixel format supports transparency; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

An indexed pixel format will not return TRUE even though it may have some transparency support. +

+
+ + ee719766 + HRESULT IWICPixelFormatInfo2::SupportsTransparency([Out] BOOL* pfSupportsTransparency) + IWICPixelFormatInfo2::SupportsTransparency +
+ + + No documentation. + +

Returns the of the pixel format.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719765 + HRESULT IWICPixelFormatInfo2::GetNumericRepresentation([Out] WICPixelFormatNumericRepresentation* pNumericRepresentation) + IWICPixelFormatInfo2::GetNumericRepresentation +
+ + +

Returns whether the format supports transparent pixels.

+
+ +

An indexed pixel format will not return TRUE even though it may have some transparency support. +

+
+ + ee719766 + SupportsTransparency + SupportsTransparency + HRESULT IWICPixelFormatInfo2::SupportsTransparency([Out] BOOL* pfSupportsTransparency) +
+ + + No documentation. + + + ee719765 + GetNumericRepresentation + GetNumericRepresentation + HRESULT IWICPixelFormatInfo2::GetNumericRepresentation([Out] WICPixelFormatNumericRepresentation* pNumericRepresentation) + + + +

interface is documented only for compliance; its use is not recommended and may be altered or unavailable in the future. Instead, and use RegisterProgressNotification. +

+
+ + ee719775 + IWICProgressCallback + IWICProgressCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Notify method is documented only for compliance; its use is not recommended and may be altered or unavailable in the future. Instead, and use RegisterProgressNotification. +

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719776 + HRESULT IWICProgressCallback::Notify([In] unsigned int uFrameNum,[In] WICProgressOperation operation,[In] double dblProgress) + IWICProgressCallback::Notify +
+ + +

Exposes methods for obtaining information about and controlling progressive decoding.

+
+ +

Images can only be progressively decoded if they were progressively encoded. Progressive images automatically start at the highest (best quality) progressive level. The caller must manually set the decoder to a lower progressive level.

E_NOTIMPL is returned if the codec does not support progressive level decoding.

+
+ + ee719778 + IWICProgressiveLevelControl + IWICProgressiveLevelControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the number of levels of progressive decoding supported by the CODEC.

+
+

Indicates the number of levels supported by the CODEC.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Users should not use this function to iterate through the progressive levels of a progressive JPEG image. JPEG progressive levels are determined by the image and do not have a fixed level count. Using this method will force the application to wait for all progressive levels to be downloaded before it can return. Instead, applications should use the following code to iterate through the progressive levels of a progressive JPEG image.

+
+ + ee719780 + HRESULT IWICProgressiveLevelControl::GetLevelCount([Out] unsigned int* pcLevels) + IWICProgressiveLevelControl::GetLevelCount +
+ + +

Gets the decoder's current progressive level.

+
+

Indicates the current level specified.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The level always defaults to the highest progressive level. In order to decode a lower progressive level, SetCurrentLevel must first be called.

+
+ + ee719779 + HRESULT IWICProgressiveLevelControl::GetCurrentLevel([Out] unsigned int* pnLevel) + IWICProgressiveLevelControl::GetCurrentLevel +
+ + +

Specifies the level to retrieve on the next call to CopyPixels.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

A call does not have to request every level supported. If a caller requests level 1, without having previously requested level 0, the bits returned by the next call to CopyPixels will include both levels.

If the requested level is invalid, the error returned is .

+
+ + ee719781 + HRESULT IWICProgressiveLevelControl::SetCurrentLevel([In] unsigned int nLevel) + IWICProgressiveLevelControl::SetCurrentLevel +
+ + +

Gets the number of levels of progressive decoding supported by the CODEC.

+
+ +

Users should not use this function to iterate through the progressive levels of a progressive JPEG image. JPEG progressive levels are determined by the image and do not have a fixed level count. Using this method will force the application to wait for all progressive levels to be downloaded before it can return. Instead, applications should use the following code to iterate through the progressive levels of a progressive JPEG image.

+
+ + ee719780 + GetLevelCount + GetLevelCount + HRESULT IWICProgressiveLevelControl::GetLevelCount([Out] unsigned int* pcLevels) +
+ + +

Gets or sets the decoder's current progressive level.

+
+ +

The level always defaults to the highest progressive level. In order to decode a lower progressive level, SetCurrentLevel must first be called.

+
+ + ee719779 + GetCurrentLevel / SetCurrentLevel + GetCurrentLevel + HRESULT IWICProgressiveLevelControl::GetCurrentLevel([Out] unsigned int* pnLevel) +
+ + +

Represents a Windows Imaging Component (WIC) stream for referencing imaging and metadata content.

+
+ +

Decoders and metadata handlers are expected to create sub streams of whatever stream they hold when handing off control for embedded metadata to another metadata handler. If the stream is not restricted then use MAXLONGLONG as the max size and offset 0.

The interface methods do not enable you to provide a file sharing option. To create a file stream for an image, use the SHCreateStreamOnFileEx function. This stream can then be used to create an using the CreateDecoderFromStream method.

+
+ + ee719782 + IWICStream + IWICStream +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes a stream from another stream. Access rights are inherited from the underlying stream.

+
+

The initialize stream.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ee719789 + HRESULT IWICStream::InitializeFromIStream([In, Optional] IStream* pIStream) + IWICStream::InitializeFromIStream +
+ + +

Initializes a stream from a particular file.

+
+

The file used to initialize the stream.

+

The desired file access mode.

ValueMeaning
GENERIC_READ

Read access.

GENERIC_WRITE

Write access.

?

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The interface methods do not enable you to provide a file sharing option. To create a shared file stream for an image, use the SHCreateStreamOnFileEx function. This stream can then be used to create an using the CreateDecoderFromStream method.

+
+ + ee719788 + HRESULT IWICStream::InitializeFromFilename([In] const wchar_t* wzFileName,[In] unsigned int dwDesiredAccess) + IWICStream::InitializeFromFilename +
+ + +

Initializes a stream to treat a block of memory as a stream. The stream cannot grow beyond the buffer size.

+
+

Pointer to the buffer used to initialize the stream.

+

The size of buffer.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method should be avoided whenever possible. The caller is responsible for ensuring the memory block is valid for the lifetime of the stream when using InitializeFromMemory. A workaround for this behavior is to create an and use InitializeFromIStream to create the .

If you require a growable memory stream, use CreateStreamOnHGlobal.

+
+ + ee719792 + HRESULT IWICStream::InitializeFromMemory([In] void* pbBuffer,[In] unsigned int cbBufferSize) + IWICStream::InitializeFromMemory +
+ + +

Initializes the stream as a substream of another stream.

+
+

Pointer to the input stream.

+

The stream offset used to create the new stream.

+

The maximum size of the stream.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The stream functions with its own stream position, independent of the underlying stream but restricted to a region. All seek positions are relative to the sub region. It is allowed, though not recommended, to have multiple writable sub streams overlapping the same range.

+
+ + ee719790 + HRESULT IWICStream::InitializeFromIStreamRegion([In, Optional] IStream* pIStream,[In] ULARGE_INTEGER ulOffset,[In] ULARGE_INTEGER ulMaxSize) + IWICStream::InitializeFromIStreamRegion +
+ + + Initializes a new instance of the class from a file. + + The factory. + Name of the file. + The file access. + ee690325 + HRESULT IWICImagingFactory::CreateStream([Out, Fast] IWICStream** ppIWICStream) + + + + Initializes a new instance of the class from a . + + The factory. + The stream. + ee719789 + HRESULT IWICStream::InitializeFromIStream([In, Optional] IStream* pIStream) + IWICStream::InitializeFromIStream + + + + Initializes a new instance of the class from an unmanaged memory through a . + + The factory. + The unmanaged memory stream. + ee719792 + HRESULT IWICStream::InitializeFromMemory([In] void* pbBuffer,[In] unsigned int cbBufferSize) + IWICStream::InitializeFromMemory + + + +

Contains members that identify a pattern within an image file which can be used to identify a particular format.

+
+ + ee719813 + WICBitmapPattern + WICBitmapPattern +
+ + +

The offset the pattern is located in the file.

+
+ + ee719813 + ULARGE_INTEGER Position + ULARGE_INTEGER Position +
+ + +

The pattern length.

+
+ + ee719813 + unsigned int Length + unsigned int Length +
+ + +

The actual pattern.

+
+ + ee719813 + unsigned char* Pattern + unsigned char Pattern +
+ + +

The pattern mask.

+
+ + ee719813 + unsigned char* Mask + unsigned char Mask +
+ + +

The end of the stream.

+
+ + ee719813 + BOOL EndOfStream + BOOL EndOfStream +
+ + +

Defines raw codec capabilites.

+
+ + ee719857 + WICRawCapabilitiesInfo + WICRawCapabilitiesInfo +
+ + +

Size of the structure.

+
+ + ee719857 + unsigned int cbSize + unsigned int cbSize +
+ + +

The codec's major version.

+
+ + ee719857 + unsigned int CodecMajorVersion + unsigned int CodecMajorVersion +
+ + +

The codec's minor version.

+
+ + ee719857 + unsigned int CodecMinorVersion + unsigned int CodecMinorVersion +
+ + +

The of exposure compensation support.

+
+ + ee719857 + WICRawCapabilities ExposureCompensationSupport + WICRawCapabilities ExposureCompensationSupport +
+ + +

The of contrast support.

+
+ + ee719857 + WICRawCapabilities ContrastSupport + WICRawCapabilities ContrastSupport +
+ + +

The of RGB white point support.

+
+ + ee719857 + WICRawCapabilities RGBWhitePointSupport + WICRawCapabilities RGBWhitePointSupport +
+ + +

The of support.

+
+ + ee719857 + WICRawCapabilities NamedWhitePointSupport + WICRawCapabilities NamedWhitePointSupport +
+ + +

The mask.

+
+ + ee719857 + unsigned int NamedWhitePointSupportMask + unsigned int NamedWhitePointSupportMask +
+ + +

The of kelvin white point support.

+
+ + ee719857 + WICRawCapabilities KelvinWhitePointSupport + WICRawCapabilities KelvinWhitePointSupport +
+ + +

The of gamma support.

+
+ + ee719857 + WICRawCapabilities GammaSupport + WICRawCapabilities GammaSupport +
+ + +

The of tint support.

+
+ + ee719857 + WICRawCapabilities TintSupport + WICRawCapabilities TintSupport +
+ + +

The of saturation support.

+
+ + ee719857 + WICRawCapabilities SaturationSupport + WICRawCapabilities SaturationSupport +
+ + +

The of sharpness support.

+
+ + ee719857 + WICRawCapabilities SharpnessSupport + WICRawCapabilities SharpnessSupport +
+ + +

The of noise reduction support.

+
+ + ee719857 + WICRawCapabilities NoiseReductionSupport + WICRawCapabilities NoiseReductionSupport +
+ + +

The of destination color profile support.

+
+ + ee719857 + WICRawCapabilities DestinationColorProfileSupport + WICRawCapabilities DestinationColorProfileSupport +
+ + +

The of tone curve support.

+
+ + ee719857 + WICRawCapabilities ToneCurveSupport + WICRawCapabilities ToneCurveSupport +
+ + +

The of rotation support.

+
+ + ee719857 + WICRawRotationCapabilities RotationSupport + WICRawRotationCapabilities RotationSupport +
+ + +

The of support.

+
+ + ee719857 + WICRawCapabilities RenderModeSupport + WICRawCapabilities RenderModeSupport +
+ + +

Represents a raw image tone curve.

+
+ + ee719861 + WICRawToneCurve + WICRawToneCurve +
+ + +

The number of tone curve points.

+
+ + ee719861 + unsigned int cPoints + unsigned int cPoints +
+ + +

The array of tone curve points.

+
+ + ee719861 + WICRawToneCurvePoint aPoints[1] + WICRawToneCurvePoint aPoints +
+ + +

Represents a raw image tone curve point.

+
+ + ee719862 + WICRawToneCurvePoint + WICRawToneCurvePoint +
+ + +

The tone curve input.

+
+ + ee719862 + double Input + double Input +
+ + +

The tone curve output.

+
+ + ee719862 + double Output + double Output +
+ + + Internal class used to initialize this assembly. + + + + + Initializes this assembly. + + + This method is called when the assembly is loaded. + + + + + A WIC RenderTarget. + + + + +

Represents an object that can receive drawing commands. Interfaces that inherit from render the drawing commands they receive in different ways.

+
+ +

Your application should create render targets once and hold onto them for the life of the application or until the render target's EndDraw method returns the error. When you receive this error, you need to recreate the render target (and any resources it created).

+
+ + dd371766 + ID2D1RenderTarget + ID2D1RenderTarget +
+ + +

Represents a Direct2D drawing resource.

+
+ + dd316908 + ID2D1Resource + ID2D1Resource +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the factory associated with this resource.

+
+

When this method returns, contains a reference to a reference to the factory that created this resource. This parameter is passed uninitialized.

+ + dd316911 + void ID2D1Resource::GetFactory([Out] ID2D1Factory** factory) + ID2D1Resource::GetFactory +
+ + +

Retrieves the factory associated with this resource.

+
+ + dd316911 + GetFactory + GetFactory + void ID2D1Resource::GetFactory([Out] ID2D1Factory** factory) +
+ + + Default stroke width used for all methods that are not explicitly using it. Default is set to 1.0f. + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a Direct2D bitmap from a reference to in-memory source data.

+
+

The dimension of the bitmap to create in pixels.

+

A reference to the memory location of the image data, or null to create an uninitialized bitmap.

+

The byte count of each scanline, which is equal to (the image width in pixels ? the number of bytes per pixel) + memory padding. If srcData is null, this value is ignored. (Note that pitch is also sometimes called stride.)

+

The pixel format and dots per inch (DPI) of the bitmap to create.

+

When this method returns, contains a reference to a reference to the new bitmap. This parameter is passed uninitialized.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371800 + HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmap +
+ + +

Creates an by copying the specified Microsoft Windows Imaging Component (WIC) bitmap.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Before Direct2D can load a WIC bitmap, that bitmap must be converted to a supported pixel format and alpha mode. For a list of supported pixel formats and alpha modes, see Supported Pixel Formats and Alpha Modes.

+
+ + dd371797 + HRESULT ID2D1RenderTarget::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmapFromWicBitmap +
+ + +

Creates an whose data is shared with another resource.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The CreateSharedBitmap method is useful for efficiently reusing bitmap data and can also be used to provide interoperability with Direct3D.

+
+ + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap +
+ + +

Creates an from the specified bitmap.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371776 + HRESULT ID2D1RenderTarget::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush** bitmapBrush) + ID2D1RenderTarget::CreateBitmapBrush +
+ + +

Creates a new that has the specified color and a base opacity of 1.0f.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371871 + HRESULT ID2D1RenderTarget::CreateSolidColorBrush([In] const D2D_COLOR_F* color,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1SolidColorBrush** solidColorBrush) + ID2D1RenderTarget::CreateSolidColorBrush +
+ + +

Creates an from the specified gradient stops, color interpolation gamma, and extend mode.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371830 + HRESULT ID2D1RenderTarget::CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount,[In] D2D1_GAMMA colorInterpolationGamma,[In] D2D1_EXTEND_MODE extendMode,[Out, Fast] ID2D1GradientStopCollection** gradientStopCollection) + ID2D1RenderTarget::CreateGradientStopCollection +
+ + +

Creates an that contains the specified gradient stops and has the specified transform and base opacity.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371842 + HRESULT ID2D1RenderTarget::CreateLinearGradientBrush([In] const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES* linearGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out, Fast] ID2D1LinearGradientBrush** linearGradientBrush) + ID2D1RenderTarget::CreateLinearGradientBrush +
+ + +

Creates an that contains the specified gradient stops, has no transform, and has a base opacity of 1.0.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371859 + HRESULT ID2D1RenderTarget::CreateRadialGradientBrush([In] const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES* radialGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out, Fast] ID2D1RadialGradientBrush** radialGradientBrush) + ID2D1RenderTarget::CreateRadialGradientBrush +
+ + +

Creates a new bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target and has the same pixel format (but not alpha mode) as the current render target.

+
+

The desired size of the new render target in device-independent pixels. The pixel size is computed from the desired size using the parent target DPI. If the desiredSize maps to a integer-pixel size, the DPI of the compatible render target is the same as the DPI of the parent target. If desiredSize maps to a fractional-pixel size, the pixel size is rounded up to the nearest integer and the DPI for the compatible render target is slightly higher than the DPI of the parent render target. In all cases, the coordinate (desiredSize.width, desiredSize.height) maps to the lower-right corner of the compatible render target.

+

When this method returns, contains the address of a reference to a new bitmap render target. This parameter is passed uninitialized.

+ No documentation. + No documentation. +

When this method returns, contains the address of a reference to a new bitmap render target. This parameter is passed uninitialized.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The bitmap render target created by this method is not compatible with GDI.

+
+ + dd371819 + HRESULT ID2D1RenderTarget::CreateCompatibleRenderTarget([In, Optional] const D2D_SIZE_F* desiredSize,[In, Optional] const D2D_SIZE_U* desiredPixelSize,[In, Optional] const D2D1_PIXEL_FORMAT* desiredFormat,[In] D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,[Out, Fast] ID2D1BitmapRenderTarget** bitmapRenderTarget) + ID2D1RenderTarget::CreateCompatibleRenderTarget +
+ + +

Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size.

+
+

The initial size of the layer in device-independent pixels, or null. If null or (0, 0) is specified, no backing store is created behind the layer resource. The layer resource is allocated to the minimum size when PushLayer is called.

+

When the method returns, contains a reference to a reference to the new layer. This parameter is passed uninitialized.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Regardless of whether a size is initially specified, the layer automatically resizes as needed.

+
+ + dd371838 + HRESULT ID2D1RenderTarget::CreateLayer([In, Optional] const D2D_SIZE_F* size,[Out, Fast] ID2D1Layer** layer) + ID2D1RenderTarget::CreateLayer +
+ + +

Create a mesh that uses triangles to describe a shape.

+
+

When this method returns, contains a reference to a reference to the new mesh.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To populate a mesh, use its Open method to obtain an . To draw the mesh, use the render target's FillMesh method.

+
+ + dd371851 + HRESULT ID2D1RenderTarget::CreateMesh([Out, Fast] ID2D1Mesh** mesh) + ID2D1RenderTarget::CreateMesh +
+ + +

Draws a line between the specified points using the specified stroke style.

+
+

The start point of the line, in device-independent pixels.

+

The end point of the line, in device-independent pixels.

+

The brush used to paint the line's stroke.

+

The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.

+

The style of stroke to paint, or null to paint a solid line.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawLine) failed, check the result returned by the or methods.

+
+ + dd371895 + void ID2D1RenderTarget::DrawLine([In] D2D_POINT_2F point0,[In] D2D_POINT_2F point1,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + ID2D1RenderTarget::DrawLine +
+ + +

Draws the outline of a rectangle that has the specified dimensions and stroke style.

+
+

The dimensions of the rectangle to draw, in device-independent pixels.

+

The brush used to paint the rectangle's stroke.

+

The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.

+

The style of stroke to paint, or null to paint a solid stroke.

+ +

When this method fails, it does not return an error code. To determine whether a drawing method (such as DrawRectangle) failed, check the result returned by the or method.

+
+ + dd371902 + void ID2D1RenderTarget::DrawRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + ID2D1RenderTarget::DrawRectangle +
+ + +

Paints the interior of the specified rectangle.

+
+

The dimension of the rectangle to paint, in device-independent pixels.

+

The brush used to paint the rectangle's interior.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillRectangle) failed, check the result returned by the or methods.

+
+ + dd371954 + void ID2D1RenderTarget::FillRectangle([In] const D2D_RECT_F* rect,[In] ID2D1Brush* brush) + ID2D1RenderTarget::FillRectangle +
+ + +

Draws the outline of the specified rounded rectangle using the specified stroke style.

+
+

The dimensions of the rounded rectangle to draw, in device-independent pixels.

+

The brush used to paint the rounded rectangle's outline.

+

The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.

+

The style of the rounded rectangle's stroke, or null to paint a solid stroke. The default value is null.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawRoundedRectangle) failed, check the result returned by the or methods.

+
+ + dd371908 + void ID2D1RenderTarget::DrawRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + ID2D1RenderTarget::DrawRoundedRectangle +
+ + +

Paints the interior of the specified rounded rectangle.

+
+

The dimensions of the rounded rectangle to paint, in device independent pixels.

+

The brush used to paint the interior of the rounded rectangle.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillRoundedRectangle) failed, check the result returned by the or methods.

+
+ + dd316795 + void ID2D1RenderTarget::FillRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush) + ID2D1RenderTarget::FillRoundedRectangle +
+ + +

Draws the outline of the specified ellipse using the specified stroke style.

+
+

The position and radius of the ellipse to draw, in device-independent pixels.

+

The brush used to paint the ellipse's outline.

+

The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.

+

The style of stroke to apply to the ellipse's outline, or null to paint a solid stroke.

+ +

The DrawEllipse method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawEllipse) failed, check the result returned by the or methods.

+
+ + dd371886 + void ID2D1RenderTarget::DrawEllipse([In] const D2D1_ELLIPSE* ellipse,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + ID2D1RenderTarget::DrawEllipse +
+ + +

Paints the interior of the specified ellipse.

+
+

The position and radius, in device-independent pixels, of the ellipse to paint.

+

The brush used to paint the interior of the ellipse.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillEllipse) failed, check the result returned by the or methods.

+
+ + dd371928 + void ID2D1RenderTarget::FillEllipse([In] const D2D1_ELLIPSE* ellipse,[In] ID2D1Brush* brush) + ID2D1RenderTarget::FillEllipse +
+ + +

Draws the outline of the specified geometry using the specified stroke style.

+
+

The geometry to draw.

+

The brush used to paint the geometry's stroke.

+

The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.

+

The style of stroke to apply to the geometry's outline, or null to paint a solid stroke.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawGeometry) failed, check the result returned by the or methods.

+
+ + dd371890 + void ID2D1RenderTarget::DrawGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + ID2D1RenderTarget::DrawGeometry +
+ + +

Paints the interior of the specified geometry.

+
+

The geometry to paint.

+

The brush used to paint the geometry's interior.

+

The opacity mask to apply to the geometry, or null for no opacity mask. If an opacity mask (the opacityBrush parameter) is specified, brush must be an that has its x- and y-extend modes set to . For more information, see the Remarks section.

+ +

If the opacityBrush parameter is not null, the alpha value of each pixel of the mapped opacityBrush is used to determine the resulting opacity of each corresponding pixel of the geometry. Only the alpha value of each color in the brush is used for this processing; all other color information is ignored. The alpha value specified by the brush is multiplied by the alpha value of the geometry after the geometry has been painted by brush. +

When this method fails, it does not return an error code. To determine whether a drawing operation (such as FillGeometry) failed, check the result returned by the or method.

+
+ + dd371933 + void ID2D1RenderTarget::FillGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In, Optional] ID2D1Brush* opacityBrush) + ID2D1RenderTarget::FillGeometry +
+ + +

Paints the interior of the specified mesh.

+
+

The mesh to paint.

+

The brush used to paint the mesh.

+ +

The current antialias mode of the render target must be when FillMesh is called. To change the render target's antialias mode, use the SetAntialiasMode method.

FillMesh does not expect a particular winding order for the triangles in the ; both clockwise and counter-clockwise will work.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillMesh) failed, check the result returned by the or methods.

+
+ + dd371939 + void ID2D1RenderTarget::FillMesh([In] ID2D1Mesh* mesh,[In] ID2D1Brush* brush) + ID2D1RenderTarget::FillMesh +
+ + + Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + +

For this method to work properly, the render target must be using the antialiasing mode. You can set the antialiasing mode by calling the method.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as FillOpacityMask) failed, check the result returned by the or methods.

+
+ + dd742850 + void ID2D1RenderTarget::FillOpacityMask([In] ID2D1Bitmap* opacityMask,[In] ID2D1Brush* brush,[In] D2D1_OPACITY_MASK_CONTENT content,[In, Optional] const D2D_RECT_F* destinationRectangle,[In, Optional] const D2D_RECT_F* sourceRectangle) + ID2D1RenderTarget::FillOpacityMask +
+ + +

Draws the specified bitmap after scaling it to the size of the specified rectangle.

+
+

The bitmap to render.

+

The size and position, in device-independent pixels in the render target's coordinate space, of the area to which the bitmap is drawn. If the rectangle is not well-ordered, nothing is drawn, but the render target does not enter an error state.

+

A value between 0.0f and 1.0f, inclusive, that specifies the opacity value to be applied to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. Default is 1.0f.

+

The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is .

+

The size and position, in device-independent pixels in the bitmap's coordinate space, of the area within the bitmap to draw; null to draw the entire bitmap.

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawBitmap) failed, check the result returned by the or methods.

+
+ + dd371878 + void ID2D1RenderTarget::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_F* destinationRectangle,[In] float opacity,[In] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D_RECT_F* sourceRectangle) + ID2D1RenderTarget::DrawBitmap +
+ + +

Draws the specified text using the format information provided by an object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + +

To create an object, create an and call its CreateTextFormat method.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawText) failed, check the result returned by the or methods.

+
+ + dd371919 + void ID2D1RenderTarget::DrawTextW([In, Buffer] const wchar_t* string,[In] unsigned int stringLength,[In] IDWriteTextFormat* textFormat,[In] const D2D_RECT_F* layoutRect,[In] ID2D1Brush* defaultForegroundBrush,[In] D2D1_DRAW_TEXT_OPTIONS options,[In] DWRITE_MEASURING_MODE measuringMode) + ID2D1RenderTarget::DrawTextW +
+ + +

Draws the formatted text described by the specified object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + +

When drawing the same text repeatedly, using the DrawTextLayout method is more efficient than using the DrawText method because the text doesn't need to be formatted and the layout processed with each call.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawTextLayout) failed, check the result returned by the or methods.

+
+ + dd371913 + void ID2D1RenderTarget::DrawTextLayout([In] D2D_POINT_2F origin,[In] IDWriteTextLayout* textLayout,[In] ID2D1Brush* defaultForegroundBrush,[In] D2D1_DRAW_TEXT_OPTIONS options) + ID2D1RenderTarget::DrawTextLayout +
+ + +

Draws the specified glyphs.

+
+

The origin, in device-independent pixels, of the glyphs' baseline.

+

The glyphs to render.

+

The brush used to paint the specified glyphs.

+

A value that indicates how glyph metrics are used to measure text when it is formatted. The default value is .

+ +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawGlyphRun) failed, check the result returned by the or methods.

+
+ + dd371893 + void ID2D1RenderTarget::DrawGlyphRun([In] D2D_POINT_2F baselineOrigin,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] ID2D1Brush* foregroundBrush,[In] DWRITE_MEASURING_MODE measuringMode) + ID2D1RenderTarget::DrawGlyphRun +
+ + + Applies the specified transform to the render target, replacing the existing transformation. All subsequent drawing operations occur in the transformed space. + + No documentation. + + dd742857 + void ID2D1RenderTarget::SetTransform([In] const D2D_MATRIX_3X2_F* transform) + ID2D1RenderTarget::SetTransform + + + +

Gets the current transform of the render target.

+
+

When this returns, contains the current transform of the render target. This parameter is passed uninitialized.

+ + dd316845 + void ID2D1RenderTarget::GetTransform([Out] D2D_MATRIX_3X2_F* transform) + ID2D1RenderTarget::GetTransform +
+ + +

Sets the antialiasing mode of the render target. The antialiasing mode applies to all subsequent drawing operations, excluding text and glyph drawing operations.

+
+

The antialiasing mode for future drawing operations.

+ +

To specify the antialiasing mode for text and glyph operations, use the SetTextAntialiasMode method.

+
+ + dd316881 + void ID2D1RenderTarget::SetAntialiasMode([In] D2D1_ANTIALIAS_MODE antialiasMode) + ID2D1RenderTarget::SetAntialiasMode +
+ + +

Retrieves the current antialiasing mode for nontext drawing operations.

+
+

The current antialiasing mode for nontext drawing operations.

+ + dd316805 + D2D1_ANTIALIAS_MODE ID2D1RenderTarget::GetAntialiasMode() + ID2D1RenderTarget::GetAntialiasMode +
+ + +

Specifies the antialiasing mode to use for subsequent text and glyph drawing operations.

+
+

The antialiasing mode to use for subsequent text and glyph drawing operations.

+ + dd316897 + void ID2D1RenderTarget::SetTextAntialiasMode([In] D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode) + ID2D1RenderTarget::SetTextAntialiasMode +
+ + +

Gets the current antialiasing mode for text and glyph drawing operations.

+
+

The current antialiasing mode for text and glyph drawing operations.

+ + dd316835 + D2D1_TEXT_ANTIALIAS_MODE ID2D1RenderTarget::GetTextAntialiasMode() + ID2D1RenderTarget::GetTextAntialiasMode +
+ + +

Specifies text rendering options to be applied to all subsequent text and glyph drawing operations.

+
+

The text rendering options to be applied to all subsequent text and glyph drawing operations; null to clear current text rendering options.

+ +

If the settings specified by textRenderingParams are incompatible with the render target's text antialiasing mode (specified by SetTextAntialiasMode), subsequent text and glyph drawing operations will fail and put the render target into an error state.

+
+ + dd316898 + void ID2D1RenderTarget::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams) + ID2D1RenderTarget::SetTextRenderingParams +
+ + +

Retrieves the render target's current text rendering options.

+
+

When this method returns, textRenderingParamscontains the address of a reference to the render target's current text rendering options.

+ +

If the settings specified by textRenderingParams are incompatible with the render target's text antialiasing mode (specified by SetTextAntialiasMode), subsequent text and glyph drawing operations will fail and put the render target into an error state.

+
+ + dd316841 + void ID2D1RenderTarget::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams) + ID2D1RenderTarget::GetTextRenderingParams +
+ + +

Specifies a label for subsequent drawing operations.

+
+

A label to apply to subsequent drawing operations.

+

A label to apply to subsequent drawing operations.

+ +

The labels specified by this method are printed by debug error messages. If no tag is set, the default value for each tag is 0.

+
+ + dd316892 + void ID2D1RenderTarget::SetTags([In] unsigned longlong tag1,[In] unsigned longlong tag2) + ID2D1RenderTarget::SetTags +
+ + +

Gets the label for subsequent drawing operations.

+
+

When this method returns, contains the first label for subsequent drawing operations. This parameter is passed uninitialized. If null is specified, no value is retrieved for this parameter.

+

When this method returns, contains the second label for subsequent drawing operations. This parameter is passed uninitialized. If null is specified, no value is retrieved for this parameter.

+ +

If the same address is passed for both parameters, both parameters receive the value of the second tag.

+
+ + dd316830 + void ID2D1RenderTarget::GetTags([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2) + ID2D1RenderTarget::GetTags +
+ + +

Adds the specified layer to the render target so that it receives all subsequent drawing operations until PopLayer is called.

+
+ No documentation. + No documentation. + +

The PushLayer method allows a caller to begin redirecting rendering to a layer. All rendering operations are valid in a layer. The location of the layer is affected by the world transform set on the render target.

Each PushLayer must have a matching PopLayer call. If there are more PopLayer calls than PushLayer calls, the render target is placed into an error state. If Flush is called before all outstanding layers are popped, the render target is placed into an error state, and an error is returned. The error state can be cleared by a call to EndDraw.

A particular resource can be active only at one time. In other words, you cannot call a PushLayer method, and then immediately follow with another PushLayer method with the same layer resource. Instead, you must call the second PushLayer method with different layer resources. +

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as PushLayer) failed, check the result returned by the or methods.

+
+ + dd316869 + void ID2D1RenderTarget::PushLayer([In] const D2D1_LAYER_PARAMETERS* layerParameters,[In] ID2D1Layer* layer) + ID2D1RenderTarget::PushLayer +
+ + +

Stops redirecting drawing operations to the layer that is specified by the last PushLayer call.

+
+ +

A PopLayer must match a previous PushLayer call.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as PopLayer) failed, check the result returned by the or methods.

+
+ + dd316852 + void ID2D1RenderTarget::PopLayer() + ID2D1RenderTarget::PopLayer +
+ + +

Executes all pending drawing commands.

+
+

When this method returns, contains the tag for drawing operations that caused errors or 0 if there were no errors. This parameter is passed uninitialized.

+

When this method returns, contains the tag for drawing operations that caused errors or 0 if there were no errors. This parameter is passed uninitialized.

+

If the method succeeds, it returns . Otherwise, it returns an error code and sets tag1 and tag2 to the tags that were active when the error occurred. If no error occurred, this method sets the error tag state to be (0,0).

+ +

This command does not flush the device that is associated with the render target.

Calling this method resets the error state of the render target.

+
+ + dd316801 + HRESULT ID2D1RenderTarget::Flush([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2) + ID2D1RenderTarget::Flush +
+ + +

Saves the current drawing state to the specified .

+
+ No documentation. + + dd316876 + void ID2D1RenderTarget::SaveDrawingState([InOut] ID2D1DrawingStateBlock* drawingStateBlock) + ID2D1RenderTarget::SaveDrawingState +
+ + +

Sets the render target's drawing state to that of the specified .

+
+ No documentation. + + dd316872 + void ID2D1RenderTarget::RestoreDrawingState([In] ID2D1DrawingStateBlock* drawingStateBlock) + ID2D1RenderTarget::RestoreDrawingState +
+ + +

Specifies a rectangle to which all subsequent drawing operations are clipped.

+
+

The size and position of the clipping area, in device-independent pixels.

+

The antialiasing mode that is used to draw the edges of clip rects that have subpixel boundaries, and to blend the clip with the scene contents. The blending is performed once when the PopAxisAlignedClip method is called, and does not apply to each primitive within the layer.

+ +

The clipRect is transformed by the current world transform set on the render target. After the transform is applied to the clipRect that is passed in, the axis-aligned bounding box for the clipRect is computed. For efficiency, the contents are clipped to this axis-aligned bounding box and not to the original clipRect that is passed in.

The following diagrams show how a rotation transform is applied to the render target, the resulting clipRect, and a calculated axis-aligned bounding box.

  1. Assume the rectangle in the following illustration is a render target that is aligned to the screen pixels.

  2. Apply a rotation transform to the render target. In the following illustration, the black rectangle represents the original render target and the red dashed rectangle represents the transformed render target.

  3. After calling PushAxisAlignedClip, the rotation transform is applied to the clipRect. In the following illustration, the blue rectangle represents the transformed clipRect.

  4. The axis-aligned bounding box is calculated. The green dashed rectangle represents the bounding box in the following illustration. All contents are clipped to this axis-aligned bounding box.

Note??If rendering operations fail or if PopAxisAlignedClip is not called, clip rects may cause some artifacts on the render target. PopAxisAlignedClip can be considered a drawing operation that is designed to fix the borders of a clipping region. Without this call, the borders of a clipped area may be not antialiased or otherwise corrected.

The PushAxisAlignedClip and PopAxisAlignedClip must match. Otherwise, the error state is set. For the render target to continue receiving new commands, you can call Flush to clear the error.

A PushAxisAlignedClip and PopAxisAlignedClip pair can occur around or within a PushLayer and PopLayer, but cannot overlap. For example, the sequence of PushAxisAlignedClip, PushLayer, PopLayer, PopAxisAlignedClip is valid, but the sequence of PushAxisAlignedClip, PushLayer, PopAxisAlignedClip, PopLayer is invalid.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as PushAxisAlignedClip) failed, check the result returned by the or methods.

+
+ + dd316860 + void ID2D1RenderTarget::PushAxisAlignedClip([In] const D2D_RECT_F* clipRect,[In] D2D1_ANTIALIAS_MODE antialiasMode) + ID2D1RenderTarget::PushAxisAlignedClip +
+ + +

Removes the last axis-aligned clip from the render target. After this method is called, the clip is no longer applied to subsequent drawing operations.

+
+ +

A PushAxisAlignedClip/PopAxisAlignedClip pair can occur around or within a PushLayer/PopLayer pair, but may not overlap. For example, a PushAxisAlignedClip, PushLayer, PopLayer, PopAxisAlignedClip sequence is valid, but a PushAxisAlignedClip, PushLayer, PopAxisAlignedClip, PopLayer sequence is not.

PopAxisAlignedClip must be called once for every call to PushAxisAlignedClip.

For an example, see How to Clip with an Axis-Aligned Clip Rectangle.

This method doesn't return an error code if it fails. To determine whether a drawing operation (such as PopAxisAlignedClip) failed, check the result returned by the or methods.

+
+ + dd316850 + void ID2D1RenderTarget::PopAxisAlignedClip() + ID2D1RenderTarget::PopAxisAlignedClip +
+ + +

Clears the drawing area to the specified color.

+
+

The color to which the drawing area is cleared, or null for transparent black.

+ +

Direct2D interprets the clearColor as straight alpha (not premultiplied). If the render target's alpha mode is , the alpha channel of clearColor is ignored and replaced with 1.0f (fully opaque).

If the render target has an active clip (specified by PushAxisAlignedClip), the clear command is applied only to the area within the clip region.

+
+ + dd371769 + void ID2D1RenderTarget::Clear([In, Optional] const D2D_COLOR_F* clearColor) + ID2D1RenderTarget::Clear +
+ + +

Initiates drawing on this render target.

+
+ +

Drawing operations can only be issued between a BeginDraw and EndDraw call.

BeginDraw and EndDraw are used to indicate that a render target is in use by the Direct2D system. Different implementations of might behave differently when BeginDraw is called. An may be locked between BeginDraw/EndDraw calls, a DXGI surface render target might be acquired on BeginDraw and released on EndDraw, while an may begin batching at BeginDraw and may present on EndDraw, for example.

The BeginDraw method must be called before rendering operations can be called, though state-setting and state-retrieval operations can be performed even outside of BeginDraw/EndDraw.

After BeginDraw is called, a render target will normally build up a batch of rendering commands, but defer processing of these commands until either an internal buffer is full, the Flush method is called, or until EndDraw is called. The EndDraw method causes any batched drawing operations to complete, and then returns an indicating the success of the operations and, optionally, the tag state of the render target at the time the error occurred. The EndDraw method always succeeds: it should not be called twice even if a previous EndDraw resulted in a failing .

If EndDraw is called without a matched call to BeginDraw, it returns an error indicating that BeginDraw must be called before EndDraw. Calling BeginDraw twice on a render target puts the target into an error state where nothing further is drawn, and returns an appropriate and error information when EndDraw is called. +

+
+ + dd371768 + void ID2D1RenderTarget::BeginDraw() + ID2D1RenderTarget::BeginDraw +
+ + +

Ends drawing operations on the render target and indicates the current error state and associated tags.

+
+

When this method returns, contains the tag for drawing operations that caused errors or 0 if there were no errors. This parameter is passed uninitialized.

+

When this method returns, contains the tag for drawing operations that caused errors or 0 if there were no errors. This parameter is passed uninitialized.

+

If the method succeeds, it returns . Otherwise, it returns an error code and sets tag1 and tag2 to the tags that were active when the error occurred.

+ +

Drawing operations can only be issued between a BeginDraw and EndDraw call.

BeginDraw and EndDraw are use to indicate that a render target is in use by the Direct2D system. Different implementations of might behave differently when BeginDraw is called. An may be locked between BeginDraw/EndDraw calls, a DXGI surface render target might be acquired on BeginDraw and released on EndDraw, while an may begin batching at BeginDraw and may present on EndDraw, for example.

The BeginDraw method must be called before rendering operations can be called, though state-setting and state-retrieval operations can be performed even outside of BeginDraw/EndDraw.

After BeginDraw is called, a render target will normally build up a batch of rendering commands, but defer processing of these commands until either an internal buffer is full, the Flush method is called, or until EndDraw is called. The EndDraw method causes any batched drawing operations to complete, and then returns an indicating the success of the operations and, optionally, the tag state of the render target at the time the error occurred. The EndDraw method always succeeds: it should not be called twice even if a previous EndDraw resulted in a failing .

If EndDraw is called without a matched call to BeginDraw, it returns an error indicating that BeginDraw must be called before EndDraw. Calling BeginDraw twice on a render target puts the target into an error state where nothing further is drawn, and returns an appropriate and error information when EndDraw is called. +

+
+ + dd371924 + HRESULT ID2D1RenderTarget::EndDraw([Out, Optional] unsigned longlong* tag1,[Out, Optional] unsigned longlong* tag2) + ID2D1RenderTarget::EndDraw +
+ + +

Retrieves the pixel format and alpha mode of the render target.

+
+

The pixel format and alpha mode of the render target.

+ + dd316814 + D2D1_PIXEL_FORMAT ID2D1RenderTarget::GetPixelFormat() + ID2D1RenderTarget::GetPixelFormat +
+ + +

Sets the dots per inch (DPI) of the render target.

+
+

A value greater than or equal to zero that specifies the horizontal DPI of the render target.

+

A value greater than or equal to zero that specifies the vertical DPI of the render target.

+ +

This method specifies the mapping from pixel space to device-independent space for the render target. If both dpiX and dpiY are 0, the factory-read system DPI is chosen. If one parameter is zero and the other unspecified, the DPI is not changed.

For , the DPI defaults to the most recently factory-read system DPI. The default value for all other render targets is 96 DPI.

+
+ + dd316887 + void ID2D1RenderTarget::SetDpi([In] float dpiX,[In] float dpiY) + ID2D1RenderTarget::SetDpi +
+ + +

Return the render target's dots per inch (DPI).

+
+

When this method returns, contains the horizontal DPI of the render target. This parameter is passed uninitialized.

+

When this method returns, contains the vertical DPI of the render target. This parameter is passed uninitialized.

+ +

This method indicates the mapping from pixel space to device-independent space for the render target.

For , the DPI defaults to the most recently factory-read system DPI. The default value for all other render targets is 96 DPI.

+
+ + dd316809 + void ID2D1RenderTarget::GetDpi([Out] float* dpiX,[Out] float* dpiY) + ID2D1RenderTarget::GetDpi +
+ + +

Returns the size of the render target in device-independent pixels.

+
+

The current size of the render target in device-independent pixels.

+ + dd316823 + D2D_SIZE_F ID2D1RenderTarget::GetSize() + ID2D1RenderTarget::GetSize +
+ + +

Returns the size of the render target in device pixels.

+
+

The size of the render target in device pixels.

+ + dd316820 + D2D_SIZE_U ID2D1RenderTarget::GetPixelSize() + ID2D1RenderTarget::GetPixelSize +
+ + +

Gets the maximum size, in device-dependent units (pixels), of any one bitmap dimension supported by the render target.

+
+

The maximum size, in pixels, of any one bitmap dimension supported by the render target.

+ +

This method returns the maximum texture size of the Direct3D device.

Note??The software renderer and WARP devices return the value of 16 megapixels (16*1024*1024). You can create a Direct2D texture that is this size, but not a Direct3D texture that is this size.

+
+ + dd742853 + unsigned int ID2D1RenderTarget::GetMaximumBitmapSize() + ID2D1RenderTarget::GetMaximumBitmapSize +
+ + +

Indicates whether the render target supports the specified properties.

+
+

The render target properties to test.

+

TRUE if the specified render target properties are supported by this render target; otherwise, .

+ +

This method does not evaluate the DPI settings specified by the renderTargetProperties parameter.

+
+ + dd742854 + BOOL ID2D1RenderTarget::IsSupported([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties) + ID2D1RenderTarget::IsSupported +
+ + + Creates a render target that draws to a DirectX Graphics Infrastructure (DXGI) surface. + + + To write to a Direct3D surface, you obtain an and pass it to the {{CreateDxgiSurfaceRenderTarget}} method to create a DXGI surface render target; you can then use the DXGI surface render target to draw 2-D content to the DXGI surface. A DXGI surface render target is a type of . Like other Direct2D render targets, you can use it to create resources and issue drawing commands. The DXGI surface render target and the DXGI surface must use the same DXGI format. If you specify the {{DXGI_FORMAT_UNKOWN}} format when you create the render target, it will automatically use the surface's format.The DXGI surface render target does not perform DXGI surface synchronization. To work with Direct2D, the Direct3D device that provides the must be created with the D3D10_CREATE_DEVICE_BGRA_SUPPORT flag.For more information about creating and using DXGI surface render targets, see the {{Direct2D and Direct3D Interoperability Overview}}.When you create a render target and hardware acceleration is available, you allocate resources on the computer's GPU. By creating a render target once and retaining it as long as possible, you gain performance benefits. Your application should create render targets once and hold onto them for the life of the application or until the render target's {{EndDraw}} method returns the {{D2DERR_RECREATE_TARGET}} error. When you receive this error, you need to recreate the render target (and any resources it created). + + an instance of + The DXGI surface to bind this render target to + The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}. + + + + Draws the specified bitmap after scaling it to the size of the specified rectangle. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawBitmap}}) failed, check the result returned by the or methods. + + The bitmap to render. + A value between 0.0f and 1.0f, inclusive, that specifies an opacity value to apply to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. The default value is 1.0f. + The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is . + void ID2D1RenderTarget::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_RECT_F* destinationRectangle,[None] float opacity,[None] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D1_RECT_F* sourceRectangle) + + + + Draws the specified bitmap after scaling it to the size of the specified rectangle. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawBitmap}}) failed, check the result returned by the or methods. + + The bitmap to render. + The size and position, in device-independent pixels in the render target's coordinate space, of the area to which the bitmap is drawn; NULL to draw the selected portion of the bitmap at the origin of the render target. If the rectangle is specified but not well-ordered, nothing is drawn, but the render target does not enter an error state. + A value between 0.0f and 1.0f, inclusive, that specifies an opacity value to apply to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. The default value is 1.0f. + The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is . + void ID2D1RenderTarget::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_RECT_F* destinationRectangle,[None] float opacity,[None] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D1_RECT_F* sourceRectangle) + + + + Draws the specified bitmap after scaling it to the size of the specified rectangle. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawBitmap}}) failed, check the result returned by the or methods. + + The bitmap to render. + A value between 0.0f and 1.0f, inclusive, that specifies an opacity value to apply to the bitmap; this value is multiplied against the alpha values of the bitmap's contents. The default value is 1.0f. + The interpolation mode to use if the bitmap is scaled or rotated by the drawing operation. The default value is . + The size and position, in device-independent pixels in the bitmap's coordinate space, of the area within the bitmap to be drawn; NULL to draw the entire bitmap. + void ID2D1RenderTarget::DrawBitmap([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_RECT_F* destinationRectangle,[None] float opacity,[None] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,[In, Optional] const D2D1_RECT_F* sourceRectangle) + + + + Draws the outline of the specified ellipse using the specified stroke style. + + + The {{DrawEllipse}} method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawEllipse) failed, check the result returned by the or methods. + + The position and radius of the ellipse to draw, in device-independent pixels. + The brush used to paint the ellipse's outline. + void ID2D1RenderTarget::DrawEllipse([In] const D2D1_ELLIPSE* ellipse,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of the specified ellipse using the specified stroke style. + + + The {{DrawEllipse}} method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawEllipse) failed, check the result returned by the or methods. + + The position and radius of the ellipse to draw, in device-independent pixels. + The brush used to paint the ellipse's outline. + The thickness of the ellipse's stroke. The stroke is centered on the ellipse's outline. + void ID2D1RenderTarget::DrawEllipse([In] const D2D1_ELLIPSE* ellipse,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of the specified geometry. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawGeometry) failed, check the result returned by the or methods. + + The geometry to draw. + The brush used to paint the geometry's stroke. + void ID2D1RenderTarget::DrawGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of the specified geometry. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawGeometry) failed, check the result returned by the or methods. + + The geometry to draw. + The brush used to paint the geometry's stroke. + The thickness of the geometry's stroke. The stroke is centered on the geometry's outline. + void ID2D1RenderTarget::DrawGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws a line between the specified points. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawLine) failed, check the result returned by the or methods. + + The start point of the line, in device-independent pixels. + The end point of the line, in device-independent pixels. + The brush used to paint the line's stroke. + void ID2D1RenderTarget::DrawLine([None] D2D1_POINT_2F point0,[None] D2D1_POINT_2F point1,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws a line between the specified points. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawLine) failed, check the result returned by the or methods. + + The start point of the line, in device-independent pixels. + The end point of the line, in device-independent pixels. + The brush used to paint the line's stroke. + A value greater than or equal to 0.0f that specifies the width of the stroke. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line. + void ID2D1RenderTarget::DrawLine([None] D2D1_POINT_2F point0,[None] D2D1_POINT_2F point1,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of a rectangle that has the specified dimensions. + + + When this method fails, it does not return an error code. To determine whether a drawing method (such as {{DrawRectangle}}) failed, check the result returned by the or method. + + The dimensions of the rectangle to draw, in device-independent pixels. + The brush used to paint the rectangle's stroke. + void ID2D1RenderTarget::DrawRectangle([In] const D2D1_RECT_F* rect,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of a rectangle that has the specified dimensions and stroke style. + + + When this method fails, it does not return an error code. To determine whether a drawing method (such as {{DrawRectangle}}) failed, check the result returned by the or method. + + The dimensions of the rectangle to draw, in device-independent pixels. + The brush used to paint the rectangle's stroke. + A value greater than or equal to 0.0f that specifies the width of the rectangle's stroke. The stroke is centered on the rectangle's outline. + void ID2D1RenderTarget::DrawRectangle([In] const D2D1_RECT_F* rect,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of the specified rounded rectangle. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawRoundedRectangle}}) failed, check the result returned by the or methods. + + The dimensions of the rounded rectangle to draw, in device-independent pixels. + The brush used to paint the rounded rectangle's outline. + void ID2D1RenderTarget::DrawRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of the specified rounded rectangle. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawRoundedRectangle}}) failed, check the result returned by the or methods. + + The dimensions of the rounded rectangle to draw, in device-independent pixels. + The brush used to paint the rounded rectangle's outline. + The width of the rounded rectangle's stroke. The stroke is centered on the rounded rectangle's outline. The default value is 1.0f. + void ID2D1RenderTarget::DrawRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the outline of the specified rounded rectangle using the specified stroke style. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawRoundedRectangle}}) failed, check the result returned by the or methods. + + The dimensions of the rounded rectangle to draw, in device-independent pixels. + The brush used to paint the rounded rectangle's outline. + The width of the rounded rectangle's stroke. The stroke is centered on the rounded rectangle's outline. The default value is 1.0f. + The style of the rounded rectangle's stroke, or NULL to paint a solid stroke. The default value is NULL. + void ID2D1RenderTarget::DrawRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle) + + + + Draws the specified text using the format information provided by an object. + + + To create an object, create an and call its {{CreateTextFormat}} method. This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawText}}) failed, check the result returned by the or methods. + + A reference to an array of Unicode characters to draw. + An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction. + The size and position of the area in which the text is drawn. + The brush used to paint the text. + void ID2D1RenderTarget::DrawTextA([In, Buffer] const wchar_t* string,[None] int stringLength,[In] IDWriteTextFormat* textFormat,[In] const D2D1_RECT_F* layoutRect,[In] ID2D1Brush* defaultForegroundBrush,[None] D2D1_DRAW_TEXT_OPTIONS options,[None] DWRITE_MEASURING_MODE measuringMode) + + + + Draws the specified text using the format information provided by an object. + + + To create an object, create an and call its {{CreateTextFormat}} method. This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawText}}) failed, check the result returned by the or methods. + + A reference to an array of Unicode characters to draw. + An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction. + The size and position of the area in which the text is drawn. + The brush used to paint the text. + A value that indicates whether the text should be snapped to pixel boundaries and whether the text should be clipped to the layout rectangle. The default value is , which indicates that text should be snapped to pixel boundaries and it should not be clipped to the layout rectangle. + void ID2D1RenderTarget::DrawTextA([In, Buffer] const wchar_t* string,[None] int stringLength,[In] IDWriteTextFormat* textFormat,[In] const D2D1_RECT_F* layoutRect,[In] ID2D1Brush* defaultForegroundBrush,[None] D2D1_DRAW_TEXT_OPTIONS options,[None] DWRITE_MEASURING_MODE measuringMode) + + + + Draws the specified text using the format information provided by an object. + + + To create an object, create an and call its {{CreateTextFormat}} method. This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{DrawText}}) failed, check the result returned by the or methods. + + A reference to an array of Unicode characters to draw. + An object that describes formatting details of the text to draw, such as the font, the font size, and flow direction. + The size and position of the area in which the text is drawn. + The brush used to paint the text. + A value that indicates whether the text should be snapped to pixel boundaries and whether the text should be clipped to the layout rectangle. The default value is , which indicates that text should be snapped to pixel boundaries and it should not be clipped to the layout rectangle. + A value that indicates how glyph metrics are used to measure text when it is formatted. The default value is DWRITE_MEASURING_MODE_NATURAL. + void ID2D1RenderTarget::DrawTextA([In, Buffer] const wchar_t* string,[None] int stringLength,[In] IDWriteTextFormat* textFormat,[In] const D2D1_RECT_F* layoutRect,[In] ID2D1Brush* defaultForegroundBrush,[None] D2D1_DRAW_TEXT_OPTIONS options,[None] DWRITE_MEASURING_MODE measuringMode) + + + + Draws the formatted text described by the specified object. + + + When drawing the same text repeatedly, using the DrawTextLayout method is more efficient than using the {{DrawText}} method because the text doesn't need to be formatted and the layout processed with each call. This method doesn't return an error code if it fails. To determine whether a drawing operation (such as DrawTextLayout) failed, check the result returned by the or methods. + + The point, described in device-independent pixels, at which the upper-left corner of the text described by textLayout is drawn. + The formatted text to draw. Any drawing effects that do not inherit from are ignored. If there are drawing effects that inherit from ID2D1Resource that are not brushes, this method fails and the render target is put in an error state. + The brush used to paint any text in textLayout that does not already have a brush associated with it as a drawing effect (specified by the method). + void ID2D1RenderTarget::DrawTextLayout([None] D2D1_POINT_2F origin,[In] IDWriteTextLayout* textLayout,[In] ID2D1Brush* defaultForegroundBrush,[None] D2D1_DRAW_TEXT_OPTIONS options) + + + + Ends drawing operations on the render target and indicates the current error state and associated tags. + + + Drawing operations can only be issued between a {{BeginDraw}} and EndDraw call.BeginDraw and EndDraw are use to indicate that a render target is in use by the Direct2D system. Different implementations of might behave differently when {{BeginDraw}} is called. An may be locked between BeginDraw/EndDraw calls, a DXGI surface render target might be acquired on BeginDraw and released on EndDraw, while an may begin batching at BeginDraw and may present on EndDraw, for example. The BeginDraw method must be called before rendering operations can be called, though state-setting and state-retrieval operations can be performed even outside of {{BeginDraw}}/EndDraw. After {{BeginDraw}} is called, a render target will normally build up a batch of rendering commands, but defer processing of these commands until either an internal buffer is full, the {{Flush}} method is called, or until EndDraw is called. The EndDraw method causes any batched drawing operations to complete, and then returns an HRESULT indicating the success of the operations and, optionally, the tag state of the render target at the time the error occurred. The EndDraw method always succeeds: it should not be called twice even if a previous EndDraw resulted in a failing HRESULT. If EndDraw is called without a matched call to {{BeginDraw}}, it returns an error indicating that BeginDraw must be called before EndDraw. Calling BeginDraw twice on a render target puts the target into an error state where nothing further is drawn, and returns an appropriate HRESULT and error information when EndDraw is called. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code and sets tag1 and tag2 to the tags that were active when the error occurred. + + + + Paints the interior of the specified geometry. + + + If the opacityBrush parameter is not NULL, the alpha value of each pixel of the mapped opacityBrush is used to determine the resulting opacity of each corresponding pixel of the geometry. Only the alpha value of each color in the brush is used for this processing; all other color information is ignored. The alpha value specified by the brush is multiplied by the alpha value of the geometry after the geometry has been painted by brush. + When this method fails, it does not return an error code. To determine whether a drawing operation (such as FillGeometry) failed, check the result returned by the or method. + + The geometry to paint. + The brush used to paint the geometry's interior. + void FillGeometry([In] ID2D1Geometry* geometry,[In] ID2D1Brush* brush,[In, Optional] ID2D1Brush* opacityBrush) + + + + Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target. + + + For this method to work properly, the render target must be using the antialiasing mode. You can set the antialiasing mode by calling the method. This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{FillOpacityMask}}) failed, check the result returned by the or methods. + + The opacity mask to apply to the brush. The alpha value of each pixel in the region specified by sourceRectangle is multiplied with the alpha value of the brush after the brush has been mapped to the area defined by destinationRectangle. + The brush used to paint the region of the render target specified by destinationRectangle. + The type of content the opacity mask contains. The value is used to determine the color space in which the opacity mask is blended. + void ID2D1RenderTarget::FillOpacityMask([In] ID2D1Bitmap* opacityMask,[In] ID2D1Brush* brush,[None] D2D1_OPACITY_MASK_CONTENT content,[In, Optional] const D2D1_RECT_F* destinationRectangle,[In, Optional] const D2D1_RECT_F* sourceRectangle) + + + + Paints the interior of the specified rounded rectangle. + + + This method doesn't return an error code if it fails. To determine whether a drawing operation (such as {{FillRoundedRectangle}}) failed, check the result returned by the or methods. + + The dimensions of the rounded rectangle to paint, in device-independent pixels. + The brush used to paint the interior of the rounded rectangle. + void ID2D1RenderTarget::FillRoundedRectangle([In] const D2D1_ROUNDED_RECT* roundedRect,[In] ID2D1Brush* brush) + + + + Executes all pending drawing commands. + + + This command does not flush the device that is associated with the render target. Calling this method resets the error state of the render target. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code and sets tag1 and tag2 to the tags that were active when the error occurred. If no error occurred, this method sets the error tag state to be (0,0). + HRESULT ID2D1RenderTarget::Flush([Out, Optional] D2D1_TAG* tag1,[Out, Optional] D2D1_TAG* tag2) + + + +

Gets or sets the current transform of the render target.

+
+ + dd316845 + GetTransform / SetTransform + GetTransform + void ID2D1RenderTarget::GetTransform([Out] D2D_MATRIX_3X2_F* transform) +
+ + +

Retrieves or sets the current antialiasing mode for nontext drawing operations.

+
+ + dd316805 + GetAntialiasMode / SetAntialiasMode + GetAntialiasMode + D2D1_ANTIALIAS_MODE ID2D1RenderTarget::GetAntialiasMode() +
+ + +

Gets or sets the current antialiasing mode for text and glyph drawing operations.

+
+ + dd316835 + GetTextAntialiasMode / SetTextAntialiasMode + GetTextAntialiasMode + D2D1_TEXT_ANTIALIAS_MODE ID2D1RenderTarget::GetTextAntialiasMode() +
+ + +

Retrieves or sets the render target's current text rendering options.

+
+ +

If the settings specified by textRenderingParams are incompatible with the render target's text antialiasing mode (specified by SetTextAntialiasMode), subsequent text and glyph drawing operations will fail and put the render target into an error state.

+
+ + dd316841 + GetTextRenderingParams / SetTextRenderingParams + GetTextRenderingParams + void ID2D1RenderTarget::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams) +
+ + +

Retrieves the pixel format and alpha mode of the render target.

+
+ + dd316814 + GetPixelFormat + GetPixelFormat + D2D1_PIXEL_FORMAT ID2D1RenderTarget::GetPixelFormat() +
+ + +

Returns the size of the render target in device-independent pixels.

+
+ + dd316823 + GetSize + GetSize + D2D_SIZE_F ID2D1RenderTarget::GetSize() +
+ + +

Returns the size of the render target in device pixels.

+
+ + dd316820 + GetPixelSize + GetPixelSize + D2D_SIZE_U ID2D1RenderTarget::GetPixelSize() +
+ + +

Gets the maximum size, in device-dependent units (pixels), of any one bitmap dimension supported by the render target.

+
+ +

This method returns the maximum texture size of the Direct3D device.

Note??The software renderer and WARP devices return the value of 16 megapixels (16*1024*1024). You can create a Direct2D texture that is this size, but not a Direct3D texture that is this size.

+
+ + dd742853 + GetMaximumBitmapSize + GetMaximumBitmapSize + unsigned int ID2D1RenderTarget::GetMaximumBitmapSize() +
+ + + Get or set the default stroke width used for all methods that are not explicitly using it. Default is set to 1.0f. + + + + + Get or sets the dots per inch (DPI) of the render target. + + + This method specifies the mapping from pixel space to device-independent space for the render target. If both dpiX and dpiY are 0, the factory-read system DPI is chosen. If one parameter is zero and the other unspecified, the DPI is not changed. For , the DPI defaults to the most recently factory-read system DPI. The default value for all other render targets is 96 DPI. + + void ID2D1RenderTarget::SetDpi([None] float dpiX,[None] float dpiY) + + + + Initializes a new instance of the class from a . + + The factory. + The WIC bitmap. + The render target properties. + + + +

Encapsulates a 32-bit device independent bitmap and device context, which can be used for rendering glyphs.

+
+ +

You create an by using the method, as shown in the following code.

if (SUCCEEDED(hr))	
+            { hr = g_pGdiInterop->CreateBitmapRenderTarget(hdc, r.right, r.bottom, &g_pBitmapRenderTarget);	
+            }	
+            

takes a handle to a DC and the desired width and height. In the above example, the width and height given are the size of the window rect.

+
+ + dd368165 + IDWriteBitmapRenderTarget + IDWriteBitmapRenderTarget +
+ + + Draws a run of glyphs to a bitmap target at the specified position. + + + You can use the IDWriteBitmapRenderTarget::DrawGlyphRun to render to a bitmap from a custom text renderer that you implement. The custom text renderer should call this method from within the callback method as shown in the following code. + STDMETHODIMP GdiTextRenderer::DrawGlyphRun( __maybenull void* clientDrawingContext, FLOAT baselineOriginX, FLOAT baselineOriginY, DWRITE_MEASURING_MODE measuringMode, __in DWRITE_GLYPH_RUN const* glyphRun, __in DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, IUnknown* clientDrawingEffect ) + { HRESULT hr = S_OK; // Pass on the drawing call to the render target to do the real work. RECT dirtyRect = {0}; hr = pRenderTarget_->DrawGlyphRun( baselineOriginX, baselineOriginY, measuringMode, glyphRun, pRenderingParams_, RGB(0,200,255), &dirtyRect ); return hr; + } + + The baselineOriginX, baslineOriginY, measuringMethod, and glyphRun parameters are provided (as arguments) when the callback method is invoked. The renderingParams, textColor and blackBoxRect are not. Default rendering params can be retrieved by using the method. + + The horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. + The vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. + The measuring method for glyphs in the run, used with the other properties to determine the rendering mode. + The structure containing the properties of the glyph run. + The object that controls rendering behavior. + The foreground color of the text. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteBitmapRenderTarget::DrawGlyphRun([None] float baselineOriginX,[None] float baselineOriginY,[None] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[None] IDWriteRenderingParams* renderingParams,[None] COLORREF textColor,[Out, Optional] RECT* blackBoxRect) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Draws a run of glyphs to a bitmap target at the specified position.

+
+

The horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.

+

The vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.

+

The measuring method for glyphs in the run, used with the other properties to determine the rendering mode.

+

The structure containing the properties of the glyph run.

+

The object that controls rendering behavior.

+

The foreground color of the text.

+

The optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You can use the to render to a bitmap from a custom text renderer that you implement. The custom text renderer should call this method from within the callback method as shown in the following code.

STDMETHODIMP GdiTextRenderer::DrawGlyphRun( __maybenull void* clientDrawingContext, FLOAT baselineOriginX, FLOAT baselineOriginY,  measuringMode, __in  const* glyphRun, __in  const* glyphRunDescription, * clientDrawingEffect )	
+            {  hr = ; // Pass on the drawing call to the render target to do the real work.  dirtyRect = {0}; hr = pRenderTarget_->DrawGlyphRun( baselineOriginX, baselineOriginY, measuringMode, glyphRun, pRenderingParams_, RGB(0,200,255), &dirtyRect ); return hr;	
+            }	
+            

The baselineOriginX, baslineOriginY, measuringMethod, and glyphRun parameters are provided (as arguments) when the callback method is invoked. The renderingParams, textColor and blackBoxRect are not.

Default rendering params can be retrieved by using the method.

+
+ + dd368167 + HRESULT IDWriteBitmapRenderTarget::DrawGlyphRun([In] float baselineOriginX,[In] float baselineOriginY,[In] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] IDWriteRenderingParams* renderingParams,[In] COLORREF textColor,[Out, Optional] RECT* blackBoxRect) + IDWriteBitmapRenderTarget::DrawGlyphRun +
+ + +

Gets a handle to the memory device context.

+
+

Returns a device context handle to the memory device context.

+ +

An application can use the device context to draw using GDI functions. An application can obtain the bitmap handle () by calling GetCurrentObject. An application that wants information about the underlying bitmap, including a reference to the pixel data, can call GetObject to fill in a DIBSECTION structure. The bitmap is always a 32-bit top-down DIB.

Note that this method takes no parameters and returns an variable, not an .

memoryHdc = g_pBitmapRenderTarget->GetMemoryDC();	
+            

The returned here is still owned by the bitmap render targer object and should not be released or deleted by the client.

+
+ + dd368171 + HDC IDWriteBitmapRenderTarget::GetMemoryDC() + IDWriteBitmapRenderTarget::GetMemoryDC +
+ + +

Gets the number of bitmap pixels per DIP.

+
+

The number of bitmap pixels per DIP.

+ +

A DIP (device-independent pixel) is 1/96 inch. Therefore, this value is the number if pixels per inch divided by 96.

+
+ + dd368173 + float IDWriteBitmapRenderTarget::GetPixelsPerDip() + IDWriteBitmapRenderTarget::GetPixelsPerDip +
+ + +

Sets the number of bitmap pixels per DIP (device-independent pixel). A DIP is 1/96 inch, so this value is the number if pixels per inch divided by 96.

+
+

A value that specifies the number of pixels per DIP.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368182 + HRESULT IDWriteBitmapRenderTarget::SetPixelsPerDip([In] float pixelsPerDip) + IDWriteBitmapRenderTarget::SetPixelsPerDip +
+ + +

Gets the transform that maps abstract coordinates to DIPs. By default this is the identity transform. Note that this is unrelated to the world transform of the underlying device context.

+
+

When this method returns, contains a transform matrix.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368169 + HRESULT IDWriteBitmapRenderTarget::GetCurrentTransform([Out] DWRITE_MATRIX* transform) + IDWriteBitmapRenderTarget::GetCurrentTransform +
+ + +

Sets the transform that maps abstract coordinate to DIPs (device-independent pixel). This does not affect the world transform of the underlying device context.

+
+

Specifies the new transform. This parameter can be null, in which case the identity transform is implied.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368179 + HRESULT IDWriteBitmapRenderTarget::SetCurrentTransform([In, Optional] const DWRITE_MATRIX* transform) + IDWriteBitmapRenderTarget::SetCurrentTransform +
+ + +

Gets the dimensions of the target bitmap.

+
+

Returns the width and height of the bitmap in pixels.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368176 + HRESULT IDWriteBitmapRenderTarget::GetSize([Out] SIZE* size) + IDWriteBitmapRenderTarget::GetSize +
+ + +

Resizes the bitmap.

+
+

The new bitmap width, in pixels.

+

The new bitmap height, in pixels.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368177 + HRESULT IDWriteBitmapRenderTarget::Resize([In] unsigned int width,[In] unsigned int height) + IDWriteBitmapRenderTarget::Resize +
+ + +

Gets a handle to the memory device context.

+
+ +

An application can use the device context to draw using GDI functions. An application can obtain the bitmap handle () by calling GetCurrentObject. An application that wants information about the underlying bitmap, including a reference to the pixel data, can call GetObject to fill in a DIBSECTION structure. The bitmap is always a 32-bit top-down DIB.

Note that this method takes no parameters and returns an variable, not an .

memoryHdc = g_pBitmapRenderTarget->GetMemoryDC();	
+            

The returned here is still owned by the bitmap render targer object and should not be released or deleted by the client.

+
+ + dd368171 + GetMemoryDC + GetMemoryDC + HDC IDWriteBitmapRenderTarget::GetMemoryDC() +
+ + +

Gets or sets the number of bitmap pixels per DIP.

+
+ +

A DIP (device-independent pixel) is 1/96 inch. Therefore, this value is the number if pixels per inch divided by 96.

+
+ + dd368173 + GetPixelsPerDip / SetPixelsPerDip + GetPixelsPerDip + float IDWriteBitmapRenderTarget::GetPixelsPerDip() +
+ + +

Gets or sets the transform that maps abstract coordinates to DIPs. By default this is the identity transform. Note that this is unrelated to the world transform of the underlying device context.

+
+ + dd368169 + GetCurrentTransform / SetCurrentTransform + GetCurrentTransform + HRESULT IDWriteBitmapRenderTarget::GetCurrentTransform([Out] DWRITE_MATRIX* transform) +
+ + +

Gets the dimensions of the target bitmap.

+
+ + dd368176 + GetSize + GetSize + HRESULT IDWriteBitmapRenderTarget::GetSize([Out] SIZE* size) +
+ + + An inline object for trimming, using an ellipsis as the omission sign. + + + + +

Wraps an application-defined inline graphic, allowing DWrite to query metrics as if the graphic were a glyph inline with the text.

+
+ + dd371221 + IDWriteInlineObject + IDWriteInlineObject +
+ + +

Wraps an application-defined inline graphic, allowing DWrite to query metrics as if the graphic were a glyph inline with the text.

+
+ + dd371221 + IDWriteInlineObject + IDWriteInlineObject +
+ + + The application implemented rendering callback () can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly. + + The drawing context passed to . This parameter may be NULL. + The same renderer passed to as the object's containing parent. This is useful if the inline object is recursive such as a nested layout. + The x-coordinate at the upper-left corner of the inline object. + The y-coordinate at the upper-left corner of the inline object. + A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line. + A Boolean flag that indicates whether the object is in a right-to-left context and should be drawn flipped. + The drawing effect set in . Usually this effect is a foreground brush that is used in glyph drawing. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteInlineObject::Draw([None] void* clientDrawingContext,[None] IDWriteTextRenderer* renderer,[None] float originX,[None] float originY,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IUnknown* clientDrawingEffect) + + + + Layout uses this to determine the line-breaking behavior of the inline object among the text. + + When this method returns, contains a value which indicates the line-breaking condition between the object and the content immediately preceding it. + When this method returns, contains a value which indicates the line-breaking condition between the object and the content immediately following it. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteInlineObject::GetBreakConditions([Out] DWRITE_BREAK_CONDITION* breakConditionBefore,[Out] DWRITE_BREAK_CONDITION* breakConditionAfter) + + + + calls this callback function to get the measurement of the inline object. + + A structure describing the geometric measurement of an application-defined inline object. These metrics are in relation to the baseline of the adjacent text. + HRESULT IDWriteInlineObject::GetMetrics([Out] DWRITE_INLINE_OBJECT_METRICS* metrics) + + + + TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes. + + Overshoot of visible extents (in DIPs) outside the object. + HRESULT IDWriteInlineObject::GetOverhangMetrics([Out] DWRITE_OVERHANG_METRICS* overhangs) + + + + The application implemented rendering callback () can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly. + + The drawing context passed to . This parameter may be NULL. + The same renderer passed to as the object's containing parent. This is useful if the inline object is recursive such as a nested layout. + The x-coordinate at the upper-left corner of the inline object. + The y-coordinate at the upper-left corner of the inline object. + A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line. + A Boolean flag that indicates whether the object is in a right-to-left context and should be drawn flipped. + The drawing effect set in . Usually this effect is a foreground brush that is used in glyph drawing. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteInlineObject::Draw([None] void* clientDrawingContext,[None] IDWriteTextRenderer* renderer,[None] float originX,[None] float originY,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IUnknown* clientDrawingEffect) + + + + Layout uses this to determine the line-breaking behavior of the inline object among the text. + + When this method returns, contains a value which indicates the line-breaking condition between the object and the content immediately preceding it. + When this method returns, contains a value which indicates the line-breaking condition between the object and the content immediately following it. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteInlineObject::GetBreakConditions([Out] DWRITE_BREAK_CONDITION* breakConditionBefore,[Out] DWRITE_BREAK_CONDITION* breakConditionAfter) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The application implemented rendering callback () can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371225 + HRESULT IDWriteInlineObject::Draw([In, Optional] void* clientDrawingContext,[In] IDWriteTextRenderer* renderer,[In] float originX,[In] float originY,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In, Optional] void* clientDrawingEffect) + IDWriteInlineObject::Draw +
+ + +

calls this callback function to get the measurement of the inline object.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371232 + HRESULT IDWriteInlineObject::GetMetrics([Out] DWRITE_INLINE_OBJECT_METRICS* metrics) + IDWriteInlineObject::GetMetrics +
+ + +

calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes.

The overhangs should be returned relative to the reported size of the object (see ), and should not be baseline adjusted.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371235 + HRESULT IDWriteInlineObject::GetOverhangMetrics([Out] DWRITE_OVERHANG_METRICS* overhangs) + IDWriteInlineObject::GetOverhangMetrics +
+ + +

Layout uses this to determine the line-breaking behavior of the inline object among the text.

+
+

When this method returns, contains a value which indicates the line-breaking condition between the object and the content immediately preceding it.

+

When this method returns, contains a value which indicates the line-breaking condition between the object and the content immediately following it.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371229 + HRESULT IDWriteInlineObject::GetBreakConditions([Out] DWRITE_BREAK_CONDITION* breakConditionBefore,[Out] DWRITE_BREAK_CONDITION* breakConditionAfter) + IDWriteInlineObject::GetBreakConditions +
+ + + calls this callback function to get the measurement of the inline object. + + A structure describing the geometric measurement of an application-defined inline object. These metrics are in relation to the baseline of the adjacent text. + HRESULT IDWriteInlineObject::GetMetrics([Out] DWRITE_INLINE_OBJECT_METRICS* metrics) + + + + TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes. + + Overshoot of visible extents (in DIPs) outside the object. + HRESULT IDWriteInlineObject::GetOverhangMetrics([Out] DWRITE_OVERHANG_METRICS* overhangs) + + + + Initializes a new instance of the class. + + The native PTR. + + + + Creates an inline object for trimming, using an ellipsis as the omission sign. + + + The ellipsis will be created using the current settings of the format, including base font, style, and any effects. Alternate omission signs can be created by the application by implementing . + + a + A text format object, created with {{CreateTextFormat}}, used for text layout. + HRESULT IDWriteFactory::CreateEllipsisTrimmingSign([None] IDWriteTextFormat* textFormat,[Out] IDWriteInlineObject** trimmingSign) + + + +

Used to create all subsequent DirectWrite objects. This interface is the root factory interface for all DirectWrite objects.

+
+ +

Create an object by using the function.

 if (SUCCEEDED(hr))	
+            { hr = ( , __uuidof(), reinterpret_cast<**>(&pDWriteFactory_) );	
+            } 

An object holds state information, such as font loader registration and cached font data. This state can be shared or isolated. Shared is recommended for most applications because it saves memory. However, isolated can be useful in situations where you want to have a separate state for some objects.

+
+ + dd368183 + IDWriteFactory + IDWriteFactory +
+ + + Default Constructor for a . + + + + + Default Constructor for a . + + + + + Registers a custom font collection loader with the factory object. + + + This function registers a font collection loader with DirectWrite. The font collection loader interface, which should be implemented by a singleton object, handles enumerating font files in a font collection given a particular type of key. A given instance can only be registered once. Succeeding attempts will return an error, indicating that it has already been registered. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors, and must not unregister themselves inside their destructors, because registration and unregistration operations increment and decrement the object reference count respectively. Instead, registration and unregistration with DirectWrite of font file loaders should be performed outside of the font file loader implementation. + + Reference to a object to be registered. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteFactory::RegisterFontCollectionLoader([None] IDWriteFontCollectionLoader* fontCollectionLoader) + + + + Unregisters a custom font collection loader that was previously registered using {{RegisterFontCollectionLoader}}. + + Pointer to a object to be unregistered. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteFactory::UnregisterFontCollectionLoader([None] IDWriteFontCollectionLoader* fontCollectionLoader) + + + + Registers a font file loader with DirectWrite. + + + This function registers a font file loader with DirectWrite. The font file loader interface, which should be implemented by a singleton object, handles loading font file resources of a particular type from a key. A given instance can only be registered once. Succeeding attempts will return an error, indicating that it has already been registered. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors, and must not unregister themselves inside their destructors, because registration and unregistration operations increment and decrement the object reference count respectively. Instead, registration and unregistration with DirectWrite of font file loaders should be performed outside of the font file loader implementation. + + Pointer to a object for a particular file resource type. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteFactory::RegisterFontFileLoader([None] IDWriteFontFileLoader* fontFileLoader) + + + + Unregisters a font file loader that was previously registered with the DirectWrite font system using {{RegisterFontFileLoader}}. + + + This function unregisters font file loader callbacks with the DirectWrite font system. You should implement the font file loader interface by a singleton object. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors and must not unregister themselves in their destructors, because registration and unregistration operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite should be performed outside of the font file loader implementation. + + Pointer to the file loader that was previously registered with the DirectWrite font system using {{RegisterFontFileLoader}}. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteFactory::UnregisterFontFileLoader([None] IDWriteFontFileLoader* fontFileLoader) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets an object which represents the set of installed fonts.

+
+

If this parameter is nonzero, the function performs an immediate check for changes to the set of installed fonts. If this parameter is , the function will still detect changes if the font cache service is running, but there may be some latency. For example, an application might specify TRUE if it has itself just installed a font and wants to be sure the font collection contains that font.

+

When this method returns, contains the address of a reference to the system font collection object, or null in case of failure.

+ + dd368208 + HRESULT IDWriteFactory::GetSystemFontCollection([Out] IDWriteFontCollection** fontCollection,[In] BOOL checkForUpdates) + IDWriteFactory::GetSystemFontCollection +
+ + +

Creates a font collection using a custom font collection loader.

+
+

An application-defined font collection loader, which must have been previously registered using RegisterFontCollectionLoader.

+

The key used by the loader to identify a collection of font files. The buffer allocated for this key should at least be the size of collectionKeySize.

+

The size, in bytes, of the collection key.

+

Contains an address of a reference to the system font collection object if the method succeeds, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368186 + HRESULT IDWriteFactory::CreateCustomFontCollection([In] IDWriteFontCollectionLoader* collectionLoader,[In, Buffer] const void* collectionKey,[In] unsigned int collectionKeySize,[Out, Fast] IDWriteFontCollection** fontCollection) + IDWriteFactory::CreateCustomFontCollection +
+ + +

Registers a custom font collection loader with the factory object.

+
+

Pointer to a object to be registered.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This function registers a font collection loader with DirectWrite. The font collection loader interface, which should be implemented by a singleton object, handles enumerating font files in a font collection given a particular type of key. A given instance can only be registered once. Succeeding attempts will return an error, indicating that it has already been registered. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors, and must not unregister themselves inside their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration with DirectWrite of font file loaders should be performed outside of the font file loader implementation.

+
+ + dd368209 + HRESULT IDWriteFactory::RegisterFontCollectionLoader([In] IDWriteFontCollectionLoader* fontCollectionLoader) + IDWriteFactory::RegisterFontCollectionLoader +
+ + +

Unregisters a custom font collection loader that was previously registered using RegisterFontCollectionLoader.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368211 + HRESULT IDWriteFactory::UnregisterFontCollectionLoader([In] IDWriteFontCollectionLoader* fontCollectionLoader) + IDWriteFactory::UnregisterFontCollectionLoader +
+ + +

Creates a font file reference object from a local font file.

+
+

An array of characters that contains the absolute file path for the font file. Subsequent operations on the constructed object may fail if the user provided filePath doesn't correspond to a valid file on the disk.

+

The last modified time of the input file path. If the parameter is omitted, the function will access the font file to obtain its last write time. You should specify this value to avoid extra disk access. Subsequent operations on the constructed object may fail if the user provided lastWriteTime doesn't match the file on the disk.

+

When this method returns, contains an address of a reference to the newly created font file reference object, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368197 + HRESULT IDWriteFactory::CreateFontFileReference([In, Buffer] const wchar_t* filePath,[In, Optional] const FILETIME* lastWriteTime,[Out, Fast] IDWriteFontFile** fontFile) + IDWriteFactory::CreateFontFileReference +
+ + +

Creates a reference to an application-specific font file resource.

+
+

A font file reference key that uniquely identifies the font file resource during the lifetime of fontFileLoader.

+

The size of the font file reference key in bytes.

+

The font file loader that will be used by the font system to load data from the file identified by fontFileReferenceKey.

+

Contains an address of a reference to the newly created font file object when this method succeeds, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is provided for cases when an application or a document needs to use a private font without having to install it on the system. fontFileReferenceKey has to be unique only in the scope of the fontFileLoader used in this call.

+
+ + dd368188 + HRESULT IDWriteFactory::CreateCustomFontFileReference([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[In] IDWriteFontFileLoader* fontFileLoader,[Out, Fast] IDWriteFontFile** fontFile) + IDWriteFactory::CreateCustomFontFileReference +
+ + +

Creates an object that represents a font face.

+
+

A value that indicates the type of file format of the font face.

+

The number of font files, in element count, required to represent the font face.

+

A font file object representing the font face. Because maintains its own references to the input font file objects, you may release them after this call.

+

The zero-based index of a font face, in cases when the font files contain a collection of font faces. If the font files contain a single face, this value should be zero.

+

A value that indicates which, if any, font face simulation flags for algorithmic means of making text bold or italic are applied to the current font face.

+

When this method returns, contains an address of a reference to the newly created font face object, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368196 + HRESULT IDWriteFactory::CreateFontFace([In] DWRITE_FONT_FACE_TYPE fontFaceType,[In] unsigned int numberOfFiles,[In, Buffer] const IDWriteFontFile** fontFiles,[In] unsigned int faceIndex,[In] DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags,[Out, Fast] IDWriteFontFace** fontFace) + IDWriteFactory::CreateFontFace +
+ + +

Creates an object that represents a font face.

+
+

A value that indicates the type of file format of the font face.

+

The number of font files, in element count, required to represent the font face.

+

A font file object representing the font face. Because maintains its own references to the input font file objects, you may release them after this call.

+

The zero-based index of a font face, in cases when the font files contain a collection of font faces. If the font files contain a single face, this value should be zero.

+

A value that indicates which, if any, font face simulation flags for algorithmic means of making text bold or italic are applied to the current font face.

+

When this method returns, contains an address of a reference to the newly created font face object, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368196 + HRESULT IDWriteFactory::CreateFontFace([In] DWRITE_FONT_FACE_TYPE fontFaceType,[In] unsigned int numberOfFiles,[In, Buffer] const IDWriteFontFile** fontFiles,[In] unsigned int faceIndex,[In] DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags,[Out, Fast] IDWriteFontFace** fontFace) + IDWriteFactory::CreateFontFace +
+ + +

Creates a rendering parameters object with default settings for the primary monitor. Different monitors may have different rendering parameters, for more information see the How to Add Support for Multiple Monitors topic.

+
+ No documentation. +

Standard error code.

+ + dd368201 + HRESULT IDWriteFactory::CreateRenderingParams([Out, Fast] IDWriteRenderingParams** renderingParams) + IDWriteFactory::CreateRenderingParams +
+ + +

Creates a rendering parameters object with default settings for the specified monitor. In most cases, this is the preferred way to create a rendering parameters object.

+
+

A handle for the specified monitor.

+

When this method returns, contains an address of a reference to the rendering parameters object created by this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368199 + HRESULT IDWriteFactory::CreateMonitorRenderingParams([In] HMONITOR monitor,[Out, Fast] IDWriteRenderingParams** renderingParams) + IDWriteFactory::CreateMonitorRenderingParams +
+ + +

Creates a rendering parameters object with the specified properties.

+
+

The gamma level to be set for the new rendering parameters object.

+

The enhanced contrast level to be set for the new rendering parameters object.

+

The ClearType level to be set for the new rendering parameters object.

+

Represents the internal structure of a device pixel (that is, the physical arrangement of red, green, and blue color components) that is assumed for purposes of rendering text.

+

A value that represents the method (for example, ClearType natural quality) for rendering glyphs.

+

When this method returns, contains an address of a reference to the newly created rendering parameters object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368190 + HRESULT IDWriteFactory::CreateCustomRenderingParams([In] float gamma,[In] float enhancedContrast,[In] float clearTypeLevel,[In] DWRITE_PIXEL_GEOMETRY pixelGeometry,[In] DWRITE_RENDERING_MODE renderingMode,[Out, Fast] IDWriteRenderingParams** renderingParams) + IDWriteFactory::CreateCustomRenderingParams +
+ + +

Registers a font file loader with DirectWrite.

+
+

Pointer to a object for a particular file resource type.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This function registers a font file loader with DirectWrite. The font file loader interface, which should be implemented by a singleton object, handles loading font file resources of a particular type from a key. A given instance can only be registered once. Succeeding attempts will return an error, indicating that it has already been registered. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors, and must not unregister themselves inside their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration with DirectWrite of font file loaders should be performed outside of the font file loader implementation.

+
+ + dd368210 + HRESULT IDWriteFactory::RegisterFontFileLoader([In] IDWriteFontFileLoader* fontFileLoader) + IDWriteFactory::RegisterFontFileLoader +
+ + +

Unregisters a font file loader that was previously registered with the DirectWrite font system using RegisterFontFileLoader.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This function unregisters font file loader callbacks with the DirectWrite font system. You should implement the font file loader interface by a singleton object. Note that font file loader implementations must not register themselves with DirectWrite inside their constructors and must not unregister themselves in their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite should be performed outside of the font file loader implementation.

+
+ + dd368212 + HRESULT IDWriteFactory::UnregisterFontFileLoader([In] IDWriteFontFileLoader* fontFileLoader) + IDWriteFactory::UnregisterFontFileLoader +
+ + +

Creates a text format object used for text layout.

+
+

An array of characters that contains the name of the font family

+

A reference to a font collection object. When this is null, indicates the system font collection.

+

A value that indicates the font weight for the text object created by this method.

+

A value that indicates the font style for the text object created by this method.

+

A value that indicates the font stretch for the text object created by this method.

+

The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

+

An array of characters that contains the locale name.

+

When this method returns, contains an address of a reference to a newly created text format object, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368203 + HRESULT IDWriteFactory::CreateTextFormat([In, Buffer] const wchar_t* fontFamilyName,[In, Optional] IDWriteFontCollection* fontCollection,[In] DWRITE_FONT_WEIGHT fontWeight,[In] DWRITE_FONT_STYLE fontStyle,[In] DWRITE_FONT_STRETCH fontStretch,[In] float fontSize,[In, Buffer] const wchar_t* localeName,[Out, Fast] IDWriteTextFormat** textFormat) + IDWriteFactory::CreateTextFormat +
+ + +

Creates a typography object for use in a text layout.

+
+

When this method returns, contains the address of a reference to a newly created typography object, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368206 + HRESULT IDWriteFactory::CreateTypography([Out, Fast] IDWriteTypography** typography) + IDWriteFactory::CreateTypography +
+ + +

Creates an object that is used for interoperability with GDI.

+
+

When this method returns, contains an address of a reference to a GDI interop object if successful, or null in case of failure.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368207 + HRESULT IDWriteFactory::GetGdiInterop([Out] IDWriteGdiInterop** gdiInterop) + IDWriteFactory::GetGdiInterop +
+ + +

Takes a string, text format, and associated constraints, and produces an object that represents the fully analyzed and formatted result.

+
+

An array of characters that contains the string to create a new object from. This array must be of length stringLength and can contain embedded null characters.

+

The number of characters in the string.

+

A reference to an object that indicates the format to apply to the string.

+

The width of the layout box.

+

The height of the layout box.

+

When this method returns, contains an address of a reference to the resultant text layout object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368205 + HRESULT IDWriteFactory::CreateTextLayout([In, Buffer] const wchar_t* string,[In] unsigned int stringLength,[In] IDWriteTextFormat* textFormat,[In] float maxWidth,[In] float maxHeight,[Out, Fast] IDWriteTextLayout** textLayout) + IDWriteFactory::CreateTextLayout +
+ + +

Takes a string, format, and associated constraints, and produces an object representing the result, formatted for a particular display resolution and measuring mode.

+
+

An array of characters that contains the string to create a new object from. This array must be of length stringLength and can contain embedded null characters.

+

The length of the string, in character count.

+

The text formatting object to apply to the string.

+

The width of the layout box.

+

The height of the layout box.

+

The number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI device pixelsPerDip is 1. If rendering onto a 120 DPI device pixelsPerDip is 1.25 (120/96).

+

An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specifies the font size and pixels per DIP.

+

Instructs the text layout to use the same metrics as GDI bi-level text when set to . When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.

+

When this method returns, contains an address to the reference of the resultant text layout object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The resulting text layout should only be used for the intended resolution, and for cases where text scalability is desired CreateTextLayout should be used instead.

+
+ + dd368192 + HRESULT IDWriteFactory::CreateGdiCompatibleTextLayout([In, Buffer] const wchar_t* string,[In] unsigned int stringLength,[In] IDWriteTextFormat* textFormat,[In] float layoutWidth,[In] float layoutHeight,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[Out, Fast] IDWriteTextLayout** textLayout) + IDWriteFactory::CreateGdiCompatibleTextLayout +
+ + +

Creates an inline object for trimming, using an ellipsis as the omission sign.

+
+

A text format object, created with CreateTextFormat, used for text layout.

+

When this method returns, contains an address of a reference to the omission (that is, ellipsis trimming) sign created by this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The ellipsis will be created using the current settings of the format, including base font, style, and any effects. Alternate omission signs can be created by the application by implementing .

+
+ + dd368194 + HRESULT IDWriteFactory::CreateEllipsisTrimmingSign([In] IDWriteTextFormat* textFormat,[Out, Fast] IDWriteInlineObject** trimmingSign) + IDWriteFactory::CreateEllipsisTrimmingSign +
+ + +

Returns an interface for performing text analysis.

+
+

When this method returns, contains an address of a reference to the newly created text analyzer object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368202 + HRESULT IDWriteFactory::CreateTextAnalyzer([Out, Fast] IDWriteTextAnalyzer** textAnalyzer) + IDWriteFactory::CreateTextAnalyzer +
+ + +

Creates a number substitution object using a locale name, substitution method, and an indicator whether to ignore user overrides (use NLS defaults for the given culture instead).

+
+

A value that specifies how to apply number substitution on digits and related punctuation.

+

The name of the locale to be used in the numberSubstitution object.

+

A Boolean flag that indicates whether to ignore user overrides.

+

When this method returns, contains an address to a reference to the number substitution object created by this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd368200 + HRESULT IDWriteFactory::CreateNumberSubstitution([In] DWRITE_NUMBER_SUBSTITUTION_METHOD substitutionMethod,[In, Buffer] const wchar_t* localeName,[In] BOOL ignoreUserOverride,[Out, Fast] IDWriteNumberSubstitution** numberSubstitution) + IDWriteFactory::CreateNumberSubstitution +
+ + +

Creates a glyph run analysis object, which encapsulates information used to render a glyph run.

+
+

A structure that contains the properties of the glyph run (font face, advances, and so on).

+

Number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25.

+

Optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified the emSize and pixelsPerDip.

+

A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline).

+

Specifies the measuring mode to use with glyphs.

+

The horizontal position (X-coordinate) of the baseline origin, in DIPs.

+

Vertical position (Y-coordinate) of the baseline origin, in DIPs.

+

When this method returns, contains an address of a reference to the newly created glyph run analysis object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache.

+
+ + dd368198 + HRESULT IDWriteFactory::CreateGlyphRunAnalysis([In] const DWRITE_GLYPH_RUN* glyphRun,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] DWRITE_RENDERING_MODE renderingMode,[In] DWRITE_MEASURING_MODE measuringMode,[In] float baselineOriginX,[In] float baselineOriginY,[Out, Fast] IDWriteGlyphRunAnalysis** glyphRunAnalysis) + IDWriteFactory::CreateGlyphRunAnalysis +
+ + +

Creates an object that is used for interoperability with GDI.

+
+ + dd368207 + GetGdiInterop + GetGdiInterop + HRESULT IDWriteFactory::GetGdiInterop([Out] IDWriteGdiInterop** gdiInterop) +
+ + +

An object that encapsulates a set of fonts, such as the set of fonts installed on the system, or the set of fonts in a particular directory. The font collection API can be used to discover what font families and fonts are available, and to obtain some metadata about the fonts.

+
+ +

The method will give you an object, which encapsulates the set of fonts installed on the system, as shown in the following code example.

* pFontCollection = null; // Get the system font collection.	
+            if (SUCCEEDED(hr))	
+            { hr = pDWriteFactory->GetSystemFontCollection(&pFontCollection);	
+            }	
+            

and both have a GetFontCollection method that returns the font collection being used by the object. These interfaces use the system font collection by default, but can use a custom font collection instead.

To determine what fonts are available on the system, get a reference to the system font collection. You can then use the method to determine the number of fonts and loop through the list. The following example enumerates the fonts in the system font collection, and prints the font family names to the console.

 #include <dwrite.h>	
+            #include <string.h>	
+            #include <stdio.h>	
+            #include <new> // SafeRelease inline function.	
+            template <class T> inline void SafeRelease(T **ppT)	
+            { if (*ppT) { (*ppT)->Release(); *ppT = null; }	
+            } void wmain()	
+            { * pDWriteFactory = null;  hr = ( , __uuidof(), reinterpret_cast<**>(&pDWriteFactory) ); * pFontCollection = null; // Get the system font collection. if (SUCCEEDED(hr)) { hr = pDWriteFactory->GetSystemFontCollection(&pFontCollection); } UINT32 familyCount = 0; // Get the number of font families in the collection. if (SUCCEEDED(hr)) { familyCount = pFontCollection->GetFontFamilyCount(); } for (UINT32 i = 0; i < familyCount; ++i) { * pFontFamily = null; // Get the font family. if (SUCCEEDED(hr)) { hr = pFontCollection->GetFontFamily(i, &pFontFamily); } * pFamilyNames = null; // Get a list of localized strings for the family name. if (SUCCEEDED(hr)) { hr = pFontFamily->GetFamilyNames(&pFamilyNames); } UINT32 index = 0;  exists = false; wchar_t localeName[LOCALE_NAME_MAX_LENGTH]; if (SUCCEEDED(hr)) { // Get the default locale for this user. int defaultLocaleSuccess = GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH); // If the default locale is returned, find that locale name, otherwise use "en-us". if (defaultLocaleSuccess) { hr = pFamilyNames->FindLocaleName(localeName, &index, &exists); } if (SUCCEEDED(hr) && !exists) // if the above find did not find a match, retry with US English { hr = pFamilyNames->FindLocaleName(L"en-us", &index, &exists); } } // If the specified locale doesn't exist, select the first on the list. if (!exists) index = 0; UINT32 length = 0; // Get the string length. if (SUCCEEDED(hr)) { hr = pFamilyNames->GetStringLength(index, &length); } // Allocate a string big enough to hold the name. wchar_t* name = new (std::nothrow) wchar_t[length+1]; if (name == null) { hr = E_OUTOFMEMORY; } // Get the family name. if (SUCCEEDED(hr)) { hr = pFamilyNames->GetString(index, name, length+1); } if (SUCCEEDED(hr)) { // Print out the family name. wprintf(L"%s\n", name); } SafeRelease(&pFontFamily); SafeRelease(&pFamilyNames); delete [] name; } SafeRelease(&pFontCollection); SafeRelease(&pDWriteFactory);	
+            } 
+
+ + dd368214 + IDWriteFontCollection + IDWriteFontCollection +
+ + + Creates a font collection using a custom font collection loader. + + A reference to a DirectWrite factory + An application-defined font collection loader, which must have been previously registered using . + The key used by the loader to identify a collection of font files. The buffer allocated for this key should at least be the size of collectionKeySize. + HRESULT IDWriteFactory::CreateCustomFontCollection([None] IDWriteFontCollectionLoader* collectionLoader,[In, Buffer] const void* collectionKey,[None] int collectionKeySize,[Out] IDWriteFontCollection** fontCollection) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the number of font families in the collection.

+
+

The number of font families in the collection.

+ + dd370974 + unsigned int IDWriteFontCollection::GetFontFamilyCount() + IDWriteFontCollection::GetFontFamilyCount +
+ + +

Creates a font family object given a zero-based font family index.

+
+

Zero-based index of the font family.

+

When this method returns, contains the address of a reference to the newly created font family object.

+ + dd370970 + HRESULT IDWriteFontCollection::GetFontFamily([In] unsigned int index,[Out] IDWriteFontFamily** fontFamily) + IDWriteFontCollection::GetFontFamily +
+ + +

Finds the font family with the specified family name.

+
+

An array of characters, which is null-terminated, containing the name of the font family. The name is not case-sensitive but must otherwise exactly match a family name in the collection.

+

When this method returns, contains the zero-based index of the matching font family if the family name was found; otherwise, UINT_MAX.

+

When this method returns, TRUE if the family name exists; otherwise, .

+ + dd368217 + HRESULT IDWriteFontCollection::FindFamilyName([In, Buffer] const wchar_t* familyName,[Out] unsigned int* index,[Out] BOOL* exists) + IDWriteFontCollection::FindFamilyName +
+ + +

Gets the font object that corresponds to the same physical font as the specified font face object. The specified physical font must belong to the font collection.

+
+

A font face object that specifies the physical font.

+

When this method returns, contains the address of a reference to the newly created font object if successful; otherwise, null.

+ + dd370978 + HRESULT IDWriteFontCollection::GetFontFromFontFace([In] IDWriteFontFace* fontFace,[Out] IDWriteFont** font) + IDWriteFontCollection::GetFontFromFontFace +
+ + +

Gets the number of font families in the collection.

+
+ + dd370974 + GetFontFamilyCount + GetFontFamilyCount + unsigned int IDWriteFontCollection::GetFontFamilyCount() +
+ + +

Used to construct a collection of fonts given a particular type of key.

+
+ +

The font collection loader interface is recommended to be implemented by a singleton object. Note that font collection loader implementations must not register themselves with DirectWrite factory inside their constructors and must not unregister themselves in their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed outside of the font file loader implementation as a separate step.

+
+ + dd368215 + IDWriteFontCollectionLoader + IDWriteFontCollectionLoader +
+ + + Creates a font file enumerator object that encapsulates a collection of font files. The font system calls back to this interface to create a font collection. + + Pointer to the object that was used to create the current font collection. + A font collection key that uniquely identifies the collection of font files within the scope of the font collection loader being used. The buffer allocated for this key must be at least the size, in bytes, specified by collectionKeySize. + a reference to the newly created font file enumerator. + HRESULT IDWriteFontCollectionLoader::CreateEnumeratorFromKey([None] IDWriteFactory* factory,[In, Buffer] const void* collectionKey,[None] int collectionKeySize,[Out] IDWriteFontFileEnumerator** fontFileEnumerator) + + + + Internal FontCollectionLoader Callback + + + + HRESULT IDWriteFontCollectionLoader::CreateEnumeratorFromKey([None] IDWriteFactory* factory,[In, Buffer] const void* collectionKey,[None] int collectionKeySize,[Out] IDWriteFontFileEnumerator** fontFileEnumerator) + + + +

Represents an absolute reference to a font face which contains font face type, appropriate file references, face identification data and various font data such as metrics, names and glyph outlines.

+
+ + dd370983 + IDWriteFontFace + IDWriteFontFace +
+ + + Creates an object that represents a font face. + + A reference to a DirectWrite factory + A value that indicates the type of file format of the font face. + A font file object representing the font face. Because maintains its own references to the input font file objects, you may release them after this call. + The zero-based index of a font face, in cases when the font files contain a collection of font faces. If the font files contain a single face, this value should be zero. + A value that indicates which, if any, font face simulation flags for algorithmic means of making text bold or italic are applied to the current font face. + HRESULT IDWriteFactory::CreateFontFace([None] DWRITE_FONT_FACE_TYPE fontFaceType,[None] int numberOfFiles,[In, Buffer] const IDWriteFontFile** fontFiles,[None] int faceIndex,[None] DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags,[Out] IDWriteFontFace** fontFace) + + + + Creates a font face object for the font. + + the to create the FontFace from. + HRESULT IDWriteFont::CreateFontFace([Out] IDWriteFontFace** fontFace) + + + + Obtains ideal (resolution-independent) glyph metrics in font design units. + + + Design glyph metrics are used for glyph positioning. + + An array of glyph indices for which to compute metrics. The array must contain at least as many elements as specified by glyphCount. + Indicates whether the font is being used in a sideways run. This can affect the glyph metrics if the font has oblique simulation because sideways oblique simulation differs from non-sideways oblique simulation + an array of structures. + HRESULT IDWriteFontFace::GetDesignGlyphMetrics([In, Buffer] const short* glyphIndices,[None] int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[None] BOOL isSideways) + + + + Obtains glyph metrics in font design units with the return values compatible with what GDI would produce. + + The logical size of the font in DIP units. + The number of physical pixels per DIP. + An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified by the font size and pixelsPerDip. + When set to FALSE, the metrics are the same as the metrics of GDI aliased text. When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY. + An array of glyph indices for which to compute the metrics. + A BOOL value that indicates whether the font is being used in a sideways run. This can affect the glyph metrics if the font has oblique simulation because sideways oblique simulation differs from non-sideways oblique simulation. + An array of structures filled by this function. The metrics are in font design units. + HRESULT IDWriteFontFace::GetGdiCompatibleGlyphMetrics([None] float emSize,[None] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[None] BOOL useGdiNatural,[In, Buffer] const short* glyphIndices,[None] int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[None] BOOL isSideways) + + + + Returns the nominal mapping of UCS4 Unicode code points to glyph indices as defined by the font 'CMAP' table. + + + Note that this mapping is primarily provided for line layout engines built on top of the physical font API. Because of OpenType glyph substitution and line layout character substitution, the nominal conversion does not always correspond to how a Unicode string will map to glyph indices when rendering using a particular font face. Also, note that Unicode variant selectors provide for alternate mappings for character to glyph. This call will always return the default variant. + + An array of USC4 code points from which to obtain nominal glyph indices. The array must be allocated and be able to contain the number of elements specified by codePointCount. + a reference to an array of nominal glyph indices filled by this function. + HRESULT IDWriteFontFace::GetGlyphIndices([In, Buffer] const int* codePoints,[None] int codePointCount,[Out, Buffer] short* glyphIndices) + + + + Obtains the font files representing a font face. + + + The IDWriteFontFace::GetFiles method should be called twice. The first time you call GetFilesfontFiles should be NULL. When the method returns, numberOfFiles receives the number of font files that represent the font face. Then, call the method a second time, passing the numberOfFiles value that was output the first call, and a non-null buffer of the correct size to store the references. + + An array that stores references to font files representing the font face. This parameter can be NULL if the user wants only the number of files representing the font face. This API increments reference count of the font file references returned according to COM conventions, and the client should release them when finished. + HRESULT IDWriteFontFace::GetFiles([InOut] int* numberOfFiles,[Out, Buffer, Optional] IDWriteFontFile** fontFiles) + + + + Finds the specified OpenType font table if it exists and returns a reference to it. The function accesses the underlying font data through the interface implemented by the font file loader. + + + The context for the same tag may be different for each call, so each one must be held and released separately. + + The four-character tag of a OpenType font table to find. Use the DWRITE_MAKE_OPENTYPE_TAG macro to create it as an UINT32. Unlike GDI, it does not support the special TTCF and null tags to access the whole font. + When this method returns, contains the address of a reference to the base of the table in memory. The reference is valid only as long as the font face used to get the font table still exists; (not any other font face, even if it actually refers to the same physical font). + When this method returns, the address of a reference to the opaque context, which must be freed by calling {{ReleaseFontTable}}. The context actually comes from the lower-level , which may be implemented by the application or DWrite itself. It is possible for a NULL tableContext to be returned, especially if the implementation performs direct memory mapping on the whole file. Nevertheless, always release it later, and do not use it as a test for function success. The same table can be queried multiple times, but because each returned context can be different, you must release each context separately. + TRUE if the font table exists; otherwise, FALSE. + HRESULT IDWriteFontFace::TryGetFontTable([In] int openTypeTableTag,[Out, Buffer] const void** tableData,[Out] int* tableSize,[Out] void** tableContext,[Out] BOOL* exists) + + + + Computes the outline of a run of glyphs by calling back to the outline sink interface. + + The logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + An array of glyph indices. The glyphs are in logical order and the advance direction depends on the isRightToLeft parameter. The array must be allocated and be able to contain the number of elements specified by glyphCount. + An optional array of glyph advances in DIPs. The advance of a glyph is the amount to advance the position (in the direction of the baseline) after drawing the glyph. glyphAdvances contains the number of elements specified by glyphIndices.Length. + An optional array of glyph offsets, each of which specifies the offset along the baseline and offset perpendicular to the baseline of a glyph relative to the current pen position. glyphOffsets contains the number of elements specified by glyphIndices.Length. + If TRUE, the ascender of the glyph runs alongside the baseline. If FALSE, the glyph ascender runs perpendicular to the baseline. For example, an English alphabet on a vertical baseline would have isSideways set to FALSE. A client can render a vertical run by setting isSideways to TRUE and rotating the resulting geometry 90 degrees to the right using a transform. The isSideways and isRightToLeft parameters cannot both be true. + The visual order of the glyphs. If this parameter is FALSE, then glyph advances are from left to right. If TRUE, the advance direction is right to left. By default, the advance direction is left to right. + A reference to the interface that is called back to perform outline drawing operations. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteFontFace::GetGlyphRunOutline([None] float emSize,[In, Buffer] const short* glyphIndices,[In, Buffer, Optional] const float* glyphAdvances,[In, Buffer, Optional] const DWRITE_GLYPH_OFFSET* glyphOffsets,[None] int glyphCount,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IDWriteGeometrySink* geometrySink) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Obtains the file format type of a font face.

+
+

A value that indicates the type of format for the font face (such as Type 1, TrueType, vector, or bitmap).

+ + dd371031 + DWRITE_FONT_FACE_TYPE IDWriteFontFace::GetType() + IDWriteFontFace::GetType +
+ + +

Obtains the font files representing a font face.

+
+

If fontFiles is null, receives the number of files representing the font face. Otherwise, the number of font files being requested should be passed. See the Remarks section below for more information.

+

When this method returns, contains a reference to a user-provided array that stores references to font files representing the font face. This parameter can be null if the user wants only the number of files representing the font face. This API increments reference count of the font file references returned according to COM conventions, and the client should release them when finished.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The method should be called twice. The first time you call GetFilesfontFiles should be null. When the method returns, numberOfFiles receives the number of font files that represent the font face.

Then, call the method a second time, passing the numberOfFiles value that was output the first call, and a non-null buffer of the correct size to store the references.

+
+ + dd370989 + HRESULT IDWriteFontFace::GetFiles([InOut] unsigned int* numberOfFiles,[Out, Buffer, Optional] IDWriteFontFile** fontFiles) + IDWriteFontFace::GetFiles +
+ + +

Obtains the index of a font face in the context of its font files.

+
+

The zero-based index of a font face in cases when the font files contain a collection of font faces. If the font files contain a single face, this value is zero.

+ + dd371007 + unsigned int IDWriteFontFace::GetIndex() + IDWriteFontFace::GetIndex +
+ + +

Obtains the algorithmic style simulation flags of a font face.

+
+

Font face simulation flags for algorithmic means of making text bold or italic.

+ + dd371018 + DWRITE_FONT_SIMULATIONS IDWriteFontFace::GetSimulations() + IDWriteFontFace::GetSimulations +
+ + +

Determines whether the font is a symbol font.

+
+

Returns TRUE if the font is a symbol font, otherwise .

+ + dd371034 + BOOL IDWriteFontFace::IsSymbolFont() + IDWriteFontFace::IsSymbolFont +
+ + +

Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a font face and are used by applications for layout calculations.

+
+

When this method returns, a? structure that holds metrics (such as ascent, descent, or cap height) for the current font face element. The metrics returned by this function are in font design units.

+ + dd371011 + void IDWriteFontFace::GetMetrics([Out] DWRITE_FONT_METRICS* fontFaceMetrics) + IDWriteFontFace::GetMetrics +
+ + +

Obtains the number of glyphs in the font face.

+
+

The number of glyphs in the font face.

+ + dd370993 + unsigned short IDWriteFontFace::GetGlyphCount() + IDWriteFontFace::GetGlyphCount +
+ + +

Obtains ideal (resolution-independent) glyph metrics in font design units.

+
+

An array of glyph indices for which to compute metrics. The array must contain at least as many elements as specified by glyphCount.

+

The number of elements in the glyphIndices array.

+

When this method returns, contains an array of structures. glyphMetrics must be initialized with an empty buffer that contains at least as many elements as glyphCount. The metrics returned by this function are in font design units.

+

Indicates whether the font is being used in a sideways run. This can affect the glyph metrics if the font has oblique simulation because sideways oblique simulation differs from non-sideways oblique simulation

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Design glyph metrics are used for glyph positioning.

+
+ + dd370986 + HRESULT IDWriteFontFace::GetDesignGlyphMetrics([In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways) + IDWriteFontFace::GetDesignGlyphMetrics +
+ + +

Returns the nominal mapping of UCS4 Unicode code points to glyph indices as defined by the font 'CMAP' table.

+
+

An array of USC4 code points from which to obtain nominal glyph indices. The array must be allocated and be able to contain the number of elements specified by codePointCount.

+

The number of elements in the codePoints array.

+

When this method returns, contains a reference to an array of nominal glyph indices filled by this function.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Note that this mapping is primarily provided for line layout engines built on top of the physical font API. Because of OpenType glyph substitution and line layout character substitution, the nominal conversion does not always correspond to how a Unicode string will map to glyph indices when rendering using a particular font face. Also, note that Unicode variant selectors provide for alternate mappings for character to glyph. This call will always return the default variant.

When characters are not present in the font this method returns the index 0, which is the undefined glyph or ".notdef" glyph. If a character isn't in a font, returns false and GetUnicodeRanges doesn't return it in the range.

+
+ + dd370998 + HRESULT IDWriteFontFace::GetGlyphIndicesW([In, Buffer] const unsigned int* codePoints,[In] unsigned int codePointCount,[Out, Buffer] unsigned short* glyphIndices) + IDWriteFontFace::GetGlyphIndicesW +
+ + +

Finds the specified OpenType font table if it exists and returns a reference to it. The function accesses the underlying font data through the interface implemented by the font file loader.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The context for the same tag may be different for each call, so each one must be held and released separately.

+
+ + dd371039 + HRESULT IDWriteFontFace::TryGetFontTable([In] unsigned int openTypeTableTag,[Out, Buffer] const void** tableData,[Out] unsigned int* tableSize,[Out] void** tableContext,[Out] BOOL* exists) + IDWriteFontFace::TryGetFontTable +
+ + +

Releases the table obtained earlier from TryGetFontTable.

+
+ No documentation. + + dd371036 + void IDWriteFontFace::ReleaseFontTable([In] void* tableContext) + IDWriteFontFace::ReleaseFontTable +
+ + +

Computes the outline of a run of glyphs by calling back to the outline sink interface.

+
+

The logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch.

+

An array of glyph indices. The glyphs are in logical order and the advance direction depends on the isRightToLeft parameter. The array must be allocated and be able to contain the number of elements specified by glyphCount.

+

An optional array of glyph advances in DIPs. The advance of a glyph is the amount to advance the position (in the direction of the baseline) after drawing the glyph. glyphAdvances contains the number of elements specified by glyphCount.

+

An optional array of glyph offsets, each of which specifies the offset along the baseline and offset perpendicular to the baseline of a glyph relative to the current pen position. glyphOffsets contains the number of elements specified by glyphCount.

+

The number of glyphs in the run.

+

If TRUE, the ascender of the glyph runs alongside the baseline. If , the glyph ascender runs perpendicular to the baseline. For example, an English alphabet on a vertical baseline would have isSideways set to .

A client can render a vertical run by setting isSideways to TRUE and rotating the resulting geometry 90 degrees to the right using a transform. The isSideways and isRightToLeft parameters cannot both be true.

+

The visual order of the glyphs. If this parameter is , then glyph advances are from left to right. If TRUE, the advance direction is right to left. By default, the advance direction is left to right.

+

A reference to the interface that is called back to perform outline drawing operations.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371003 + HRESULT IDWriteFontFace::GetGlyphRunOutline([In] float emSize,[In, Buffer] const unsigned short* glyphIndices,[In, Buffer, Optional] const float* glyphAdvances,[In, Buffer, Optional] const DWRITE_GLYPH_OFFSET* glyphOffsets,[In] unsigned int glyphCount,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] ID2D1SimplifiedGeometrySink* geometrySink) + IDWriteFontFace::GetGlyphRunOutline +
+ + +

Determines the recommended rendering mode for the font, using the specified size and rendering parameters.

+
+

The logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch.

+

The number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96, this value is 1.0f. If the DPI is 120, this value is 120.0f/96.

+

The measuring method that will be used for glyphs in the font. Renderer implementations may choose different rendering modes for different measuring methods, for example:

  • for
  • for
  • for
+

A reference to an object that contains rendering settings such as gamma level, enhanced contrast, and ClearType level. This parameter is necessary in case the rendering parameters object overrides the rendering mode.

+

When this method returns, contains a value that indicates the recommended rendering mode to use.

+ + dd371015 + HRESULT IDWriteFontFace::GetRecommendedRenderingMode([In] float emSize,[In] float pixelsPerDip,[In] DWRITE_MEASURING_MODE measuringMode,[In] IDWriteRenderingParams* renderingParams,[Out] DWRITE_RENDERING_MODE* renderingMode) + IDWriteFontFace::GetRecommendedRenderingMode +
+ + +

Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a fontface and are used by applications for layout calculations.

+
+

The logical size of the font in DIP units.

+

The number of physical pixels per DIP.

+

An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified by the font size and pixelsPerDip.

+

A reference to a DWRITE_FONT_METRICS structure to fill in. The metrics returned by this function are in font design units.

+ + dd941789 + HRESULT IDWriteFontFace::GetGdiCompatibleMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[Out] DWRITE_FONT_METRICS* fontFaceMetrics) + IDWriteFontFace::GetGdiCompatibleMetrics +
+ + +

Obtains glyph metrics in font design units with the return values compatible with what GDI would produce.

+
+

The ogical size of the font in DIP units.

+

The number of physical pixels per DIP.

+

An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified by the font size and pixelsPerDip.

+

When set to , the metrics are the same as the metrics of GDI aliased text. When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.

+

An array of glyph indices for which to compute the metrics.

+

The number of elements in the glyphIndices array.

+

An array of structures filled by this function. The metrics are in font design units.

+

A value that indicates whether the font is being used in a sideways run. This can affect the glyph metrics if the font has oblique simulation because sideways oblique simulation differs from non-sideways oblique simulation.

+

Standard error code. If any of the input glyph indices are outside of the valid glyph index range for the current font face, E_INVALIDARG will be returned.

+ + dd941788 + HRESULT IDWriteFontFace::GetGdiCompatibleGlyphMetrics([In] float emSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In, Buffer] const unsigned short* glyphIndices,[In] unsigned int glyphCount,[Out, Buffer] DWRITE_GLYPH_METRICS* glyphMetrics,[In] BOOL isSideways) + IDWriteFontFace::GetGdiCompatibleGlyphMetrics +
+ + +

Obtains the file format type of a font face.

+
+ + dd371031 + GetType + GetType + DWRITE_FONT_FACE_TYPE IDWriteFontFace::GetType() +
+ + +

Obtains the index of a font face in the context of its font files.

+
+ + dd371007 + GetIndex + GetIndex + unsigned int IDWriteFontFace::GetIndex() +
+ + +

Obtains the algorithmic style simulation flags of a font face.

+
+ + dd371018 + GetSimulations + GetSimulations + DWRITE_FONT_SIMULATIONS IDWriteFontFace::GetSimulations() +
+ + +

Determines whether the font is a symbol font.

+
+ + dd371034 + IsSymbolFont + IsSymbolFont + BOOL IDWriteFontFace::IsSymbolFont() +
+ + +

Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a font face and are used by applications for layout calculations.

+
+ + dd371011 + GetMetrics + GetMetrics + void IDWriteFontFace::GetMetrics([Out] DWRITE_FONT_METRICS* fontFaceMetrics) +
+ + +

Obtains the number of glyphs in the font face.

+
+ + dd370993 + GetGlyphCount + GetGlyphCount + unsigned short IDWriteFontFace::GetGlyphCount() +
+ + +

Specifies properties used to identify and execute typographic features in the current font face.

+
+ +

A non-zero value generally enables the feature execution, while the zero value disables it. A feature requiring a selector uses this value to indicate the selector index.

The OpenType standard provides access to typographic features available in the font by means of a feature tag with the associated parameters. The OpenType feature tag is a 4-byte identifier of the registered name of a feature. For example, the 'kern' feature name tag is used to identify the 'Kerning' feature in OpenType font. Similarly, the OpenType feature tag for 'Standard Ligatures' and 'Fractions' is 'liga' and 'frac' respectively. Since a single run can be associated with more than one typographic features, the Text String API accepts typographic settings for a run as a list of features and are executed in the order they are specified.

The value of the tag member represents the OpenType name tag of the feature, while the param value represents additional parameter for the execution of the feature referred by the tag member. Both nameTag and parameter are stored as little endian, the same convention followed by GDI. Most features treat the Param value as a binary value that indicates whether to turn the execution of the feature on or off, with it being off by default in the majority of cases. Some features, however, treat this value as an integral value representing the integer index to the list of alternate results it may produce during the execution; for instance, the feature 'Stylistic Alternates' or 'salt' uses the parameter value as an index to the list of alternate substituting glyphs it could produce for a specified glyph.

+
+ + dd368066 + DWRITE_FONT_FEATURE + DWRITE_FONT_FEATURE +
+ + + Initializes a new instance of the struct. + + The name tag. + The parameter. + + + +

The feature OpenType name identifier.

+
+ + dd368066 + DWRITE_FONT_FEATURE_TAG nameTag + DWRITE_FONT_FEATURE_TAG nameTag +
+ + +

The execution parameter of the feature.

+
+ + dd368066 + unsigned int parameter + unsigned int parameter +
+ + +

Represents a font file. Applications such as font managers or font viewers can call to find out if a particular file is a font file, and whether it is a font type that is supported by the font system.

+
+ + dd371060 + IDWriteFontFile + IDWriteFontFile +
+ + + Creates a font file reference object from a local font file. + + A reference to a DirectWrite factory + An array of characters that contains the absolute file path for the font file. Subsequent operations on the constructed object may fail if the user provided filePath doesn't correspond to a valid file on the disk. + HRESULT IDWriteFactory::CreateFontFileReference([In] const wchar_t* filePath,[In, Optional] const __int64* lastWriteTime,[Out] IDWriteFontFile** fontFile) + + + + Creates a font file reference object from a local font file. + + A reference to a DirectWrite factory + An array of characters that contains the absolute file path for the font file. Subsequent operations on the constructed object may fail if the user provided filePath doesn't correspond to a valid file on the disk. + The last modified time of the input file path. If the parameter is omitted, the function will access the font file to obtain its last write time. You should specify this value to avoid extra disk access. Subsequent operations on the constructed object may fail if the user provided lastWriteTime doesn't match the file on the disk. + HRESULT IDWriteFactory::CreateFontFileReference([In] const wchar_t* filePath,[In, Optional] const __int64* lastWriteTime,[Out] IDWriteFontFile** fontFile) + + + + Creates a reference to an application-specific font file resource. + + A reference to a DirectWrite factory + A font file reference key that uniquely identifies the font file resource during the lifetime of fontFileLoader. + The size of the font file reference key in bytes. + The font file loader that will be used by the font system to load data from the file identified by fontFileReferenceKey. + + This function is provided for cases when an application or a document needs to use a private font without having to install it on the system. fontFileReferenceKey has to be unique only in the scope of the fontFileLoader used in this call. + + HRESULT IDWriteFactory::CreateCustomFontFileReference([In, Buffer] const void* fontFileReferenceKey,[None] int fontFileReferenceKeySize,[None] IDWriteFontFileLoader* fontFileLoader,[Out] IDWriteFontFile** fontFile) + + + + Obtains the reference to the reference key of a font file. The returned reference is valid until the font file object is released. + + the reference to the reference key of a font file. + HRESULT IDWriteFontFile::GetReferenceKey([Out, Buffer] const void** fontFileReferenceKey,[Out] int* fontFileReferenceKeySize) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Obtains the reference to the reference key of a font file. The returned reference is valid until the font file object is released.

+
+

When this method returns, contains an address of a reference to the font file reference key. Note that the reference value is only valid until the font file object it is obtained from is released. This parameter is passed uninitialized.

+

When this method returns, contains the size of the font file reference key in bytes. This parameter is passed uninitialized.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371108 + HRESULT IDWriteFontFile::GetReferenceKey([Out, Buffer] const void** fontFileReferenceKey,[Out] unsigned int* fontFileReferenceKeySize) + IDWriteFontFile::GetReferenceKey +
+ + +

Obtains the file loader associated with a font file object.

+
+

When this method returns, contains the address of a reference to the font file loader associated with the font file object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371104 + HRESULT IDWriteFontFile::GetLoader([Out] IDWriteFontFileLoader** fontFileLoader) + IDWriteFontFile::GetLoader +
+ + +

Analyzes a file and returns whether it represents a font, and whether the font type is supported by the font system.

+
+

TRUE if the font type is supported by the font system; otherwise, .

+

When this method returns, contains a value that indicates the type of the font file. Note that even if isSupportedFontType is , the fontFileType value may be different from .

+

When this method returns, contains a value that indicates the type of the font face. If fontFileType is not equal to , then that can be constructed from the font file.

+

When this method returns, contains the number of font faces contained in the font file.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Important??Certain font file types are recognized, but not supported by the font system. For example, the font system will recognize a file as a Type 1 font file but will not be able to construct a font face object from it. In such situations, Analyze will set isSupportedFontType output parameter to .

+
+ + dd371099 + HRESULT IDWriteFontFile::Analyze([Out] BOOL* isSupportedFontType,[Out] DWRITE_FONT_FILE_TYPE* fontFileType,[Out, Optional] DWRITE_FONT_FACE_TYPE* fontFaceType,[Out] unsigned int* numberOfFaces) + IDWriteFontFile::Analyze +
+ + + Obtains the file loader associated with a font file object. + + HRESULT IDWriteFontFile::GetLoader([Out] IDWriteFontFileLoader** fontFileLoader) + + + +

Encapsulates a collection of font files. The font system uses this interface to enumerate font files when building a font collection.

+
+ + dd371063 + IDWriteFontFileEnumerator + IDWriteFontFileEnumerator +
+ + + Advances to the next font file in the collection. When it is first created, the enumerator is positioned before the first element of the collection and the first call to MoveNext advances to the first file. + + the value TRUE if the enumerator advances to a file; otherwise, FALSE if the enumerator advances past the last file in the collection. + HRESULT IDWriteFontFileEnumerator::MoveNext([Out] BOOL* hasCurrentFile) + + + + Gets a reference to the current font file. + + a reference to the newly created object. + HRESULT IDWriteFontFileEnumerator::GetCurrentFontFile([Out] IDWriteFontFile** fontFile) + + + + Internal FontFileEnumerator Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + Advances to the next font file in the collection. When it is first created, the enumerator is positioned before the first element of the collection and the first call to MoveNext advances to the first file. + + the value TRUE if the enumerator advances to a file; otherwise, FALSE if the enumerator advances past the last file in the collection. + HRESULT IDWriteFontFileEnumerator::MoveNext([Out] BOOL* hasCurrentFile) + + + + Gets a reference to the current font file. + + a reference to the newly created object. + HRESULT IDWriteFontFileEnumerator::GetCurrentFontFile([Out] IDWriteFontFile** fontFile) + + + + Internal FontFileLoader Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IDWriteFontFileLoader::CreateStreamFromKey([In, Buffer] const void* fontFileReferenceKey,[None] int fontFileReferenceKeySize,[Out] IDWriteFontFileStream** fontFileStream) + + + +

Loads font file data from a custom font file loader.

+
+ + dd371081 + IDWriteFontFileStream + IDWriteFontFileStream +
+ + + Reads a fragment from a font file. + + + Note that ReadFileFragment implementations must check whether the requested font file fragment is within the file bounds. Otherwise, an error should be returned from ReadFileFragment. {{DirectWrite}} may invoke methods on the same object from multiple threads simultaneously. Therefore, ReadFileFragment implementations that rely on internal mutable state must serialize access to such state across multiple threads. For example, an implementation that uses separate Seek and Read operations to read a file fragment must place the code block containing Seek and Read calls under a lock or a critical section. + + When this method returns, contains an address of a reference to the start of the font file fragment. This parameter is passed uninitialized. + The offset of the fragment, in bytes, from the beginning of the font file. + The size of the file fragment, in bytes. + When this method returns, contains the address of + a reference to a reference to the client-defined context to be passed to {{ReleaseFileFragment}}. + HRESULT IDWriteFontFileStream::ReadFileFragment([Out, Buffer] const void** fragmentStart,[None] __int64 fileOffset,[None] __int64 fragmentSize,[Out] void** fragmentContext) + + + + Releases a fragment from a file. + + A reference to the client-defined context of a font fragment returned from {{ReadFileFragment}}. + void IDWriteFontFileStream::ReleaseFileFragment([None] void* fragmentContext) + + + + Obtains the total size of a file. + + + Implementing GetFileSize() for asynchronously loaded font files may require downloading the complete file contents. Therefore, this method should be used only for operations that either require a complete font file to be loaded (for example, copying a font file) or that need to make decisions based on the value of the file size (for example, validation against a persisted file size). + + the total size of the file. + HRESULT IDWriteFontFileStream::GetFileSize([Out] __int64* fileSize) + + + + Obtains the last modified time of the file. + + + The "last modified time" is used by DirectWrite font selection algorithms to determine whether one font resource is more up to date than another one. + + the last modified time of the file in the format that represents the number of 100-nanosecond intervals since January 1, 1601 (UTC). + HRESULT IDWriteFontFileStream::GetLastWriteTime([Out] __int64* lastWriteTime) + + + + Internal FontFileStream Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IDWriteFontFileStream::ReadFileFragment([Out, Buffer] const void** fragmentStart,[None] __int64 fileOffset,[None] __int64 fragmentSize,[Out] void** fragmentContext) + + + void IDWriteFontFileStream::ReleaseFileFragment([None] void* fragmentContext) + + + HRESULT IDWriteFontFileStream::GetFileSize([Out] __int64* fileSize) + + + HRESULT IDWriteFontFileStream::GetLastWriteTime([Out] __int64* lastWriteTime) + + + +

Loads font file data from a custom font file loader.

+
+ + dd371081 + IDWriteFontFileStream + IDWriteFontFileStream +
+ + + Reads a fragment from a font file. + + + Note that ReadFileFragment implementations must check whether the requested font file fragment is within the file bounds. Otherwise, an error should be returned from ReadFileFragment. {{DirectWrite}} may invoke methods on the same object from multiple threads simultaneously. Therefore, ReadFileFragment implementations that rely on internal mutable state must serialize access to such state across multiple threads. For example, an implementation that uses separate Seek and Read operations to read a file fragment must place the code block containing Seek and Read calls under a lock or a critical section. + + When this method returns, contains an address of a reference to the start of the font file fragment. This parameter is passed uninitialized. + The offset of the fragment, in bytes, from the beginning of the font file. + The size of the file fragment, in bytes. + When this method returns, contains the address of + a reference to a reference to the client-defined context to be passed to {{ReleaseFileFragment}}. + HRESULT IDWriteFontFileStream::ReadFileFragment([Out, Buffer] const void** fragmentStart,[None] __int64 fileOffset,[None] __int64 fragmentSize,[Out] void** fragmentContext) + + + + Releases a fragment from a file. + + A reference to the client-defined context of a font fragment returned from {{ReadFileFragment}}. + void IDWriteFontFileStream::ReleaseFileFragment([None] void* fragmentContext) + + + + Obtains the total size of a file. + + + Implementing GetFileSize() for asynchronously loaded font files may require downloading the complete file contents. Therefore, this method should be used only for operations that either require a complete font file to be loaded (for example, copying a font file) or that need to make decisions based on the value of the file size (for example, validation against a persisted file size). + + the total size of the file. + HRESULT IDWriteFontFileStream::GetFileSize([Out] __int64* fileSize) + + + + Obtains the last modified time of the file. + + + The "last modified time" is used by DirectWrite font selection algorithms to determine whether one font resource is more up to date than another one. + + the last modified time of the file in the format that represents the number of 100-nanosecond intervals since January 1, 1601 (UTC). + HRESULT IDWriteFontFileStream::GetLastWriteTime([Out] __int64* lastWriteTime) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Reads a fragment from a font file.

+
+

When this method returns, contains an address of a reference to the start of the font file fragment. This parameter is passed uninitialized.

+

The offset of the fragment, in bytes, from the beginning of the font file.

+

The size of the file fragment, in bytes.

+

When this method returns, contains the address of a reference to a reference to the client-defined context to be passed to ReleaseFileFragment.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Note that ReadFileFragment implementations must check whether the requested font file fragment is within the file bounds. Otherwise, an error should be returned from ReadFileFragment.

DirectWrite may invoke methods on the same object from multiple threads simultaneously. Therefore, ReadFileFragment implementations that rely on internal mutable state must serialize access to such state across multiple threads. For example, an implementation that uses separate Seek and Read operations to read a file fragment must place the code block containing Seek and Read calls under a lock or a critical section.

+
+ + dd371091 + HRESULT IDWriteFontFileStream::ReadFileFragment([Out] const void** fragmentStart,[In] unsigned longlong fileOffset,[In] unsigned longlong fragmentSize,[Out] void** fragmentContext) + IDWriteFontFileStream::ReadFileFragment +
+ + +

Releases a fragment from a file.

+
+

A reference to the client-defined context of a font fragment returned from ReadFileFragment.

+ + dd371095 + void IDWriteFontFileStream::ReleaseFileFragment([In] void* fragmentContext) + IDWriteFontFileStream::ReleaseFileFragment +
+ + +

Obtains the total size of a file.

+
+

When this method returns, contains the total size of the file.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Implementing GetFileSize() for asynchronously loaded font files may require downloading the complete file contents. Therefore, this method should be used only for operations that either require a complete font file to be loaded (for example, copying a font file) or that need to make decisions based on the value of the file size (for example, validation against a persisted file size).

+
+ + dd371084 + HRESULT IDWriteFontFileStream::GetFileSize([Out] unsigned longlong* fileSize) + IDWriteFontFileStream::GetFileSize +
+ + +

Obtains the last modified time of the file.

+
+

When this method returns, contains the last modified time of the file in the format that represents the number of 100-nanosecond intervals since January 1, 1601 (UTC).

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The "last modified time" is used by DirectWrite font selection algorithms to determine whether one font resource is more up to date than another one.

+
+ + dd371089 + HRESULT IDWriteFontFileStream::GetLastWriteTime([Out] unsigned longlong* lastWriteTime) + IDWriteFontFileStream::GetLastWriteTime +
+ + +

Provides interoperability with GDI, such as methods to convert a font face to a structure, or to convert a GDI font description into a font face. It is also used to create bitmap render target objects.

+
+ + dd371172 + IDWriteGdiInterop + IDWriteGdiInterop +
+ + + Creates a font object that matches the properties specified by the LOGFONT structure. + + A structure containing a GDI-compatible font description. + a reference to a newly created . + HRESULT IDWriteGdiInterop::CreateFontFromLOGFONT([In] const LOGFONTW* logFont,[Out] IDWriteFont** font) + + + + Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font. + + + The conversion to a LOGFONT by using ConvertFontToLOGFONT operates at the logical font level and does not guarantee that it will map to a specific physical font. It is not guaranteed that GDI will select the same physical font for displaying text formatted by a LOGFONT as the object that was converted. + + An object to be converted into a GDI-compatible LOGFONT structure. + When this method returns, contains a structure that receives a GDI-compatible font description. + TRUE if the specified font object is part of the system font collection; otherwise, FALSE. + HRESULT IDWriteGdiInterop::ConvertFontToLOGFONT([None] IDWriteFont* font,[In] LOGFONTW* logFont,[Out] BOOL* isSystemFont) + + + + Creates a font object that matches the properties specified by the LOGFONT structure. + + A description. + a reference to a newly created . + HRESULT IDWriteGdiInterop::CreateFontFromLOGFONT([In] const LOGFONTW* logFont,[Out] IDWriteFont** font) + + + + Convert a Direct2D to a . + + a Direct2D Font + a + true if the specified font object is part of the system font collection; otherwise, false. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a font object that matches the properties specified by the structure.

+
+

A structure containing a GDI-compatible font description.

+

When this method returns, contains an address of a reference to a newly created object if successful; otherwise, null.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371187 + HRESULT IDWriteGdiInterop::CreateFontFromLOGFONT([In] const void* logFont,[Out] IDWriteFont** font) + IDWriteGdiInterop::CreateFontFromLOGFONT +
+ + +

Initializes a structure based on the GDI-compatible properties of the specified font.

+
+

An object to be converted into a GDI-compatible structure.

+

When this method returns, contains a structure that receives a GDI-compatible font description.

+

When this method returns, contains TRUE if the specified font object is part of the system font collection; otherwise, .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The conversion to a by using ConvertFontToLOGFONT operates at the logical font level and does not guarantee that it will map to a specific physical font. It is not guaranteed that GDI will select the same physical font for displaying text formatted by a as the object that was converted.

+
+ + dd371177 + HRESULT IDWriteGdiInterop::ConvertFontToLOGFONT([In] IDWriteFont* font,[In] void* logFont,[Out] BOOL* isSystemFont) + IDWriteGdiInterop::ConvertFontToLOGFONT +
+ + +

Initializes a structure based on the GDI-compatible properties of the specified font.

+
+

An object to be converted into a GDI-compatible structure.

+

When this method returns, contains a reference to a structure that receives a GDI-compatible font description.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The conversion to a by using ConvertFontFaceToLOGFONT operates at the logical font level and does not guarantee that it will map to a specific physical font. It is not guaranteed that GDI will select the same physical font for displaying text formatted by a as the object that was converted.

+
+ + dd371175 + HRESULT IDWriteGdiInterop::ConvertFontFaceToLOGFONT([In] IDWriteFontFace* font,[In] void* logFont) + IDWriteGdiInterop::ConvertFontFaceToLOGFONT +
+ + +

Creates an object that corresponds to the currently selected HFONT of the specified .

+
+

A handle to a device context into which a font has been selected. It is assumed that the client has already performed font mapping and that the font selected into the device context is the actual font to be used for rendering glyphs.

+

Contains an address of a reference to the newly created font face object, or null in case of failure. The font face returned is guaranteed to reference the same physical typeface that would be used for drawing glyphs (but not necessarily characters) using ExtTextOut.

+ +

This function is intended for scenarios in which an application wants to use GDI and Uniscribe 1.x for text layout and shaping, but DirectWrite for final rendering. This function assumes the client is performing text output using glyph indexes.

+
+ + dd371185 + HRESULT IDWriteGdiInterop::CreateFontFaceFromHdc([In] HDC hdc,[Out] IDWriteFontFace** fontFace) + IDWriteGdiInterop::CreateFontFaceFromHdc +
+ + +

Creates an object that encapsulates a bitmap and memory DC (device context) which can be used for rendering glyphs.

+
+

A handle to the optional device context used to create a compatible memory DC (device context).

+

The width of the bitmap render target.

+

The height of the bitmap render target.

+

When this method returns, contains an address of a reference to the newly created object.

+ + dd371182 + HRESULT IDWriteGdiInterop::CreateBitmapRenderTarget([In, Optional] HDC hdc,[In] unsigned int width,[In] unsigned int height,[Out] IDWriteBitmapRenderTarget** renderTarget) + IDWriteGdiInterop::CreateBitmapRenderTarget +
+ + +

Contains the information needed by renderers to draw glyph runs. All coordinates are in device independent pixels (DIPs).

+
+ + dd368089 + DWRITE_GLYPH_RUN + DWRITE_GLYPH_RUN +
+ + +

The physical font face object to draw with.

+
+ + dd368089 + IDWriteFontFace* fontFace + IDWriteFontFace fontFace +
+ + +

The logical size of the font in DIPs (equals 1/96 inch), not points.

+
+ + dd368089 + float fontEmSize + float fontEmSize +
+ + +

The number of glyphs in the glyph run.

+
+ + dd368089 + unsigned int glyphCount + unsigned int glyphCount +
+ + +

A reference to an array of indices to render for the glyph run.

+
+ + dd368089 + const unsigned short* glyphIndices + unsigned short glyphIndices +
+ + +

A reference to an array containing glyph advance widths for the glyph run.

+
+ + dd368089 + const float* glyphAdvances + float glyphAdvances +
+ + +

A reference to an array containing glyph offsets for the glyph run.

+
+ + dd368089 + const DWRITE_GLYPH_OFFSET* glyphOffsets + DWRITE_GLYPH_OFFSET glyphOffsets +
+ + +

If true, specifies that glyphs are rotated 90 degrees to the left and vertical metrics are used. Vertical writing is achieved by specifying isSideways = true and rotating the entire run 90 degrees to the right via a rotate transform.

+
+ + dd368089 + BOOL isSideways + BOOL isSideways +
+ + +

The implicit resolved bidi level of the run. Odd levels indicate right-to-left languages like Hebrew and Arabic, while even levels indicate left-to-right languages like English and Japanese (when written horizontally). For right-to-left languages, the text origin is on the right, and text should be drawn to the left.

+
+ + dd368089 + unsigned int bidiLevel + unsigned int bidiLevel +
+ + + Gets or sets the associated with this GlypRun. + + The font face. + + + + An array of glyph indices. This array contains elements. + + + + + An optional array of glyph advances. This array could be null or contains elements. + + + + + An optional array of glyph offsets. This array could be null or contains elements. + + + + +

Contains low-level information used to render a glyph run.

+
+ +

The alpha texture can be a bi-level alpha texture or a ClearType alpha texture.

A bi-level alpha texture contains one byte per pixel, therefore the size of the buffer for a bi-level texture will be the area of the texture bounds, in bytes. Each byte in a bi-level alpha texture created by CreateAlphaTexture is either set to DWRITE_ALPHA_MAX (that is, 255) or zero.

A ClearType alpha texture contains three bytes per pixel, therefore the size of the buffer for a ClearType alpha texture is three times the area of the texture bounds, in bytes.

+
+ + dd371188 + IDWriteGlyphRunAnalysis + IDWriteGlyphRunAnalysis +
+ + + Creates a glyph run analysis object, which encapsulates information used to render a glyph run. + + The factory. + A structure that contains the properties of the glyph run (font face, advances, and so on). + Number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25. + A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline). + Specifies the measuring mode to use with glyphs. + The horizontal position (X-coordinate) of the baseline origin, in DIPs. + Vertical position (Y-coordinate) of the baseline origin, in DIPs. + + The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache. + + HRESULT IDWriteFactory::CreateGlyphRunAnalysis([In] const DWRITE_GLYPH_RUN* glyphRun,[None] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[None] DWRITE_RENDERING_MODE renderingMode,[None] DWRITE_MEASURING_MODE measuringMode,[None] float baselineOriginX,[None] float baselineOriginY,[Out] IDWriteGlyphRunAnalysis** glyphRunAnalysis) + + + + Creates a glyph run analysis object, which encapsulates information used to render a glyph run. + + The factory. + A structure that contains the properties of the glyph run (font face, advances, and so on). + Number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI bitmap then pixelsPerDip is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 1.25. + Optional transform applied to the glyphs and their positions. This transform is applied after the scaling specified the emSize and pixelsPerDip. + A value that specifies the rendering mode, which must be one of the raster rendering modes (that is, not default and not outline). + Specifies the measuring mode to use with glyphs. + The horizontal position (X-coordinate) of the baseline origin, in DIPs. + Vertical position (Y-coordinate) of the baseline origin, in DIPs. + + The glyph run analysis object contains the results of analyzing the glyph run, including the positions of all the glyphs and references to all of the rasterized glyphs in the font cache. + + HRESULT IDWriteFactory::CreateGlyphRunAnalysis([In] const DWRITE_GLYPH_RUN* glyphRun,[None] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[None] DWRITE_RENDERING_MODE renderingMode,[None] DWRITE_MEASURING_MODE measuringMode,[None] float baselineOriginX,[None] float baselineOriginY,[Out] IDWriteGlyphRunAnalysis** glyphRunAnalysis) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the bounding rectangle of the physical pixels affected by the glyph run.

+
+

Specifies the type of texture requested. If a bi-level texture is requested, the bounding rectangle includes only bi-level glyphs. Otherwise, the bounding rectangle includes only antialiased glyphs.

+

When this method returns, contains the bounding rectangle of the physical pixels affected by the glyph run, or an empty rectangle if there are no glyphs of the specified texture type.

+ + dd371215 + HRESULT IDWriteGlyphRunAnalysis::GetAlphaTextureBounds([In] DWRITE_TEXTURE_TYPE textureType,[Out] RECT* textureBounds) + IDWriteGlyphRunAnalysis::GetAlphaTextureBounds +
+ + +

Creates an alpha texture of the specified type for glyphs within a specified bounding rectangle.

+
+

A value that specifies the type of texture requested. This can be DWRITE_TEXTURE_BILEVEL_1x1 or . If a bi-level texture is requested, the texture contains only bi-level glyphs. Otherwise, the texture contains only antialiased glyphs.

+

The bounding rectangle of the texture, which can be different than the bounding rectangle returned by GetAlphaTextureBounds.

+

When this method returns, contains the array of alpha values from the texture. The buffer allocated for this array must be at least the size of bufferSize.

+

The size of the alphaValues array, in bytes. The minimum size depends on the dimensions of the rectangle and the type of texture requested.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371189 + HRESULT IDWriteGlyphRunAnalysis::CreateAlphaTexture([In] DWRITE_TEXTURE_TYPE textureType,[In] const RECT* textureBounds,[Out, Buffer] unsigned char* alphaValues,[In] unsigned int bufferSize) + IDWriteGlyphRunAnalysis::CreateAlphaTexture +
+ + +

Gets alpha blending properties required for ClearType blending.

+
+

An object that specifies the ClearType level and enhanced contrast, gamma, pixel geometry, and rendering mode. In most cases, the values returned by the output parameters of this method are based on the properties of this object, unless a GDI-compatible rendering mode was specified.

+

When this method returns, contains the gamma value to use for gamma correction.

+

When this method returns, contains the enhanced contrast value to be used for blending.

+

When this method returns, contains the ClearType level used in the alpha blending.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371190 + HRESULT IDWriteGlyphRunAnalysis::GetAlphaBlendParams([In] IDWriteRenderingParams* renderingParams,[Out] float* blendGamma,[Out] float* blendEnhancedContrast,[Out] float* blendClearTypeLevel) + IDWriteGlyphRunAnalysis::GetAlphaBlendParams +
+ + +

Contains additional properties related to those in .

+
+ + dd368091 + DWRITE_GLYPH_RUN_DESCRIPTION + DWRITE_GLYPH_RUN_DESCRIPTION +
+ + + No documentation. + + + dd368091 + const wchar_t* localeName + wchar_t localeName + + + + No documentation. + + + dd368091 + const wchar_t* string + wchar_t string + + + + No documentation. + + + dd368091 + unsigned int stringLength + unsigned int stringLength + + + + No documentation. + + + dd368091 + const unsigned short* clusterMap + unsigned short clusterMap + + + + No documentation. + + + dd368091 + unsigned int textPosition + unsigned int textPosition + + + + A Item. + + + + + A glyph index + + + + + A glyph advance + + + + + A glyph offset + + + + + Internal InlineObject Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IDWriteInlineObject::Draw([None] void* clientDrawingContext,[None] IDWriteTextRenderer* renderer,[None] float originX,[None] float originY,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IUnknown* clientDrawingEffect) + + + HRESULT IDWriteInlineObject::GetMetrics([Out] DWRITE_INLINE_OBJECT_METRICS* metrics) + + + HRESULT IDWriteInlineObject::GetOverhangMetrics([Out] DWRITE_OVERHANG_METRICS* overhangs) + + + HRESULT IDWriteInlineObject::GetBreakConditions([Out] DWRITE_BREAK_CONDITION* breakConditionBefore,[Out] DWRITE_BREAK_CONDITION* breakConditionAfter) + + + +

Line breakpoint characteristics of a character.

+
+ + dd368098 + DWRITE_LINE_BREAKPOINT + DWRITE_LINE_BREAKPOINT +
+ + + Indicates a breaking condition before the character. + + byte breakConditionBefore + + + + Indicates a breaking condition after the character. + + byte breakConditionAfter + + + +

Indicates a breaking condition before the character.

+
+ + dd368098 + unsigned char breakConditionBefore + unsigned char breakConditionBefore +
+ + +

Indicates a breaking condition after the character.

+
+ + dd368098 + unsigned char breakConditionAfter + unsigned char breakConditionAfter +
+ + +

Indicates that the character is some form of whitespace, which may be meaningful for justification.

+
+ + dd368098 + unsigned char isWhitespace + unsigned char isWhitespace +
+ + +

Indicates that the character is a soft hyphen, often used to indicate hyphenation points inside words.

+
+ + dd368098 + unsigned char isSoftHyphen + unsigned char isSoftHyphen +
+ + +

Reserved for future use.

+
+ + dd368098 + unsigned char padding + unsigned char padding +
+ + +

Represents a collection of strings indexed by locale name.

+
+ +

The set of strings represented by an are indexed by a zero based UINT32 number that maps to a locale. The numeric index for a specific locale is retreived by using the FindLocaleName method.

A common use for the interface is to hold a list of localized font family names created by using the method. The following example shows how to get the family name for the "en-us" locale.

* pFamilyNames = null; // Get a list of localized strings for the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFontFamily->GetFamilyNames(&pFamilyNames);	
+            } UINT32 index = 0;	
+             exists = false; wchar_t localeName[LOCALE_NAME_MAX_LENGTH]; if (SUCCEEDED(hr))	
+            { // Get the default locale for this user. int defaultLocaleSuccess = GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH); // If the default locale is returned, find that locale name, otherwise use "en-us". if (defaultLocaleSuccess) { hr = pFamilyNames->FindLocaleName(localeName, &index, &exists); } if (SUCCEEDED(hr) && !exists) // if the above find did not find a match, retry with US English { hr = pFamilyNames->FindLocaleName(L"en-us", &index, &exists); }	
+            } // If the specified locale doesn't exist, select the first on the list.	
+            if (!exists) index = 0; UINT32 length = 0; // Get the string length.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetStringLength(index, &length);	
+            } // Allocate a string big enough to hold the name.	
+            wchar_t* name = new (std::nothrow) wchar_t[length+1];	
+            if (name == null)	
+            { hr = E_OUTOFMEMORY;	
+            } // Get the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetString(index, name, length+1);	
+            }	
+            
+
+ + dd371250 + IDWriteLocalizedStrings + IDWriteLocalizedStrings +
+ + + Get the locale name from the language. + + Zero-based index of the locale name to be retrieved. + The locale name from the language + HRESULT IDWriteLocalizedStrings::GetLocaleName([None] int index,[Out, Buffer] wchar_t* localeName,[None] int size) + + + + Get the string from the language/string pair. + + Zero-based index of the string from the language/string pair to be retrieved. + The locale name from the language + HRESULT IDWriteLocalizedStrings::GetLocaleName([None] int index,[Out, Buffer] wchar_t* localeName,[None] int size) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the number of language/string pairs.

+
+

The number of language/string pairs.

+ + dd371256 + unsigned int IDWriteLocalizedStrings::GetCount() + IDWriteLocalizedStrings::GetCount +
+ + +

Gets the zero-based index of the locale name/string pair with the specified locale name.

+
+

A null-terminated array of characters containing the locale name to look for.

+

The zero-based index of the locale name/string pair. This method initializes index to UINT_MAX.

+

When this method returns, contains TRUE if the locale name exists; otherwise, . This method initializes exists to .

+ +

Note that if the locale name does not exist, the return value is a success and the exists parameter is . If you are getting the font family name for a font and the specified locale name does not exist, one option is to set the index to 0 as shown below. There is always at least one locale for a font family.

UINT32 index = 0;	
+             exists = false; wchar_t localeName[LOCALE_NAME_MAX_LENGTH]; if (SUCCEEDED(hr))	
+            { // Get the default locale for this user. int defaultLocaleSuccess = GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH); // If the default locale is returned, find that locale name, otherwise use "en-us". if (defaultLocaleSuccess) { hr = pFamilyNames->FindLocaleName(localeName, &index, &exists); } if (SUCCEEDED(hr) && !exists) // if the above find did not find a match, retry with US English { hr = pFamilyNames->FindLocaleName(L"en-us", &index, &exists); }	
+            } // If the specified locale doesn't exist, select the first on the list.	
+            if (!exists) index = 0;	
+            
+
+ + dd371254 + HRESULT IDWriteLocalizedStrings::FindLocaleName([In, Buffer] const wchar_t* localeName,[Out] unsigned int* index,[Out] BOOL* exists) + IDWriteLocalizedStrings::FindLocaleName +
+ + +

Gets the length in characters (not including the null terminator) of the locale name with the specified index.

+
+

Zero-based index of the locale name to be retrieved.

+

When this method returns, contains the length in characters of the locale name, not including the null terminator.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371262 + HRESULT IDWriteLocalizedStrings::GetLocaleNameLength([In] unsigned int index,[Out] unsigned int* length) + IDWriteLocalizedStrings::GetLocaleNameLength +
+ + +

Copies the locale name with the specified index to the specified array.

+
+

Zero-based index of the locale name to be retrieved.

+

When this method returns, contains a character array, which is null-terminated, that receives the locale name from the language/string pair. The buffer allocated for this array must be at least the size of size, in element count.

+

The size of the array in characters. The size must include space for the terminating null character.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371259 + HRESULT IDWriteLocalizedStrings::GetLocaleName([In] unsigned int index,[Out, Buffer] wchar_t* localeName,[In] unsigned int size) + IDWriteLocalizedStrings::GetLocaleName +
+ + +

Gets the length in characters (not including the null terminator) of the string with the specified index.

+
+

A zero-based index of the language/string pair.

+

The length in characters of the string, not including the null terminator, from the language/string pair.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Use GetStringLength to get the string length before calling the method, as shown in the following code.

UINT32 length = 0; // Get the string length.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetStringLength(index, &length);	
+            } // Allocate a string big enough to hold the name.	
+            wchar_t* name = new (std::nothrow) wchar_t[length+1];	
+            if (name == null)	
+            { hr = E_OUTOFMEMORY;	
+            } // Get the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetString(index, name, length+1);	
+            }	
+            
+
+ + dd371269 + HRESULT IDWriteLocalizedStrings::GetStringLength([In] unsigned int index,[Out] unsigned int* length) + IDWriteLocalizedStrings::GetStringLength +
+ + +

Copies the string with the specified index to the specified array.

+
+

The zero-based index of the language/string pair to be examined.

+

The null terminated array of characters that receives the string from the language/string pair. The buffer allocated for this array should be at least the size of size. GetStringLength can be used to get the size of the array before using this method.

+

The size of the array in characters. The size must include space for the terminating null character. GetStringLength can be used to get the size of the array before using this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The string returned must be allocated by the caller. You can get the size of the string by using the GetStringLength method prior to calling GetString, as shown in the following example.

UINT32 length = 0; // Get the string length.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetStringLength(index, &length);	
+            } // Allocate a string big enough to hold the name.	
+            wchar_t* name = new (std::nothrow) wchar_t[length+1];	
+            if (name == null)	
+            { hr = E_OUTOFMEMORY;	
+            } // Get the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetString(index, name, length+1);	
+            }	
+            
+
+ + dd371267 + HRESULT IDWriteLocalizedStrings::GetString([In] unsigned int index,[Out, Buffer] wchar_t* stringBuffer,[In] unsigned int size) + IDWriteLocalizedStrings::GetString +
+ + +

Gets the number of language/string pairs.

+
+ + dd371256 + GetCount + GetCount + unsigned int IDWriteLocalizedStrings::GetCount() +
+ + +

Holds the appropriate digits and numeric punctuation for a specified locale.

+
+ + dd371271 + IDWriteNumberSubstitution + IDWriteNumberSubstitution +
+ + + Creates a number substitution object using a locale name, substitution method, and an indicator whether to ignore user overrides (use NLS defaults for the given culture instead). + + A reference to a DirectWrite factory + A value that specifies how to apply number substitution on digits and related punctuation. + The name of the locale to be used in the numberSubstitution object. + A Boolean flag that indicates whether to ignore user overrides. + HRESULT IDWriteFactory::CreateNumberSubstitution([In] DWRITE_NUMBER_SUBSTITUTION_METHOD substitutionMethod,[In] const wchar_t* localeName,[In] BOOL ignoreUserOverride,[Out] IDWriteNumberSubstitution** numberSubstitution) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Defines the pixel snapping properties such as pixels per DIP(device-independent pixel) and the current transform matrix of a text renderer.

+
+ + dd371274 + IDWritePixelSnapping + IDWritePixelSnapping +
+ + + Determines whether pixel snapping is disabled. The recommended default is FALSE, + unless doing animation that requires subpixel vertical placement. + + The context passed to IDWriteTextLayout::Draw. + Receives TRUE if pixel snapping is disabled or FALSE if it not. + HRESULT IsPixelSnappingDisabled([None] void* clientDrawingContext,[Out] BOOL* isDisabled) + + + + Gets a transform that maps abstract coordinates to DIPs. + + The drawing context passed to . + a structure which has transform information for pixel snapping. + HRESULT GetCurrentTransform([None] void* clientDrawingContext,[Out] DWRITE_MATRIX* transform) + + + + Gets the number of physical pixels per DIP. + + + Because a DIP (device-independent pixel) is 1/96 inch, the pixelsPerDip value is the number of logical pixels per inch divided by 96. + + The drawing context passed to . + the number of physical pixels per DIP + HRESULT GetPixelsPerDip([None] void* clientDrawingContext,[Out] FLOAT* pixelsPerDip) + + + + Internal TessellationSink Callback + + + + + Determines whether pixel snapping is disabled. The recommended default is FALSE, + unless doing animation that requires subpixel vertical placement. + + This pointer + The context passed to IDWriteTextLayout::Draw. + Output disabled + Receives TRUE if pixel snapping is disabled or FALSE if it not. + HRESULT IsPixelSnappingDisabled([None] void* clientDrawingContext,[Out] BOOL* isDisabled) + + + + Gets a transform that maps abstract coordinates to DIPs. + + This pointer + The drawing context passed to . + Matrix transform + a structure which has transform information for pixel snapping. + HRESULT GetCurrentTransform([None] void* clientDrawingContext,[Out] DWRITE_MATRIX* transform) + + + + Gets the number of physical pixels per DIP. + + + Because a DIP (device-independent pixel) is 1/96 inch, the pixelsPerDip value is the number of logical pixels per inch divided by 96. + + This pointer + The drawing context passed to . + Dip + the number of physical pixels per DIP + HRESULT GetPixelsPerDip([None] void* clientDrawingContext,[Out] FLOAT* pixelsPerDip) + + + +

Represents text rendering settings such as ClearType level, enhanced contrast, and gamma correction for glyph rasterization and filtering.

An application typically obtains a rendering parameters object by calling the method.

+
+ + dd371285 + IDWriteRenderingParams + IDWriteRenderingParams +
+ + + Creates a rendering parameters object with default settings for the primary monitor. Different monitors may have different rendering parameters, for more information see the {{How to Add Support for Multiple Monitors}} topic. + + A reference to a DirectWrite factory + HRESULT IDWriteFactory::CreateRenderingParams([Out] IDWriteRenderingParams** renderingParams) + + + + Creates a rendering parameters object with default settings for the specified monitor. In most cases, this is the preferred way to create a rendering parameters object. + + A reference to a DirectWrite factory + A handle for the specified monitor. + HRESULT IDWriteFactory::CreateMonitorRenderingParams([None] void* monitor,[Out] IDWriteRenderingParams** renderingParams) + + + + Creates a rendering parameters object with the specified properties. + + A reference to a DirectWrite factory + The gamma level to be set for the new rendering parameters object. + The enhanced contrast level to be set for the new rendering parameters object. + The ClearType level to be set for the new rendering parameters object. + Represents the internal structure of a device pixel (that is, the physical arrangement of red, green, and blue color components) that is assumed for purposes of rendering text. + A value that represents the method (for example, ClearType natural quality) for rendering glyphs. + HRESULT IDWriteFactory::CreateCustomRenderingParams([None] float gamma,[None] float enhancedContrast,[None] float clearTypeLevel,[None] DWRITE_PIXEL_GEOMETRY pixelGeometry,[None] DWRITE_RENDERING_MODE renderingMode,[Out] IDWriteRenderingParams** renderingParams) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the gamma value used for gamma correction. Valid values must be greater than zero and cannot exceed 256.

+
+

Returns the gamma value used for gamma correction. Valid values must be greater than zero and cannot exceed 256.

+ +

The gamma value is used for gamma correction, which compensates for the non-linear luminosity response of most monitors.

+
+ + dd371295 + float IDWriteRenderingParams::GetGamma() + IDWriteRenderingParams::GetGamma +
+ + +

Gets the enhanced contrast property of the rendering parameters object. Valid values are greater than or equal to zero.

+
+

Returns the amount of contrast enhancement. Valid values are greater than or equal to zero.

+ +

Enhanced contrast is the amount to increase the darkness of text, and typically ranges from 0 to 1. Zero means no contrast enhancement.

+
+ + dd371290 + float IDWriteRenderingParams::GetEnhancedContrast() + IDWriteRenderingParams::GetEnhancedContrast +
+ + +

Gets the ClearType level of the rendering parameters object.

+
+

The ClearType level of the rendering parameters object.

+ +

The ClearType level represents the amount of ClearType ? that is, the degree to which the red, green, and blue subpixels of each pixel are treated differently. Valid values range from zero (meaning no ClearType, which is equivalent to grayscale anti-aliasing) to one (meaning full ClearType)

+
+ + dd371288 + float IDWriteRenderingParams::GetClearTypeLevel() + IDWriteRenderingParams::GetClearTypeLevel +
+ + +

Gets the pixel geometry of the rendering parameters object.

+
+

A value that indicates the type of pixel geometry used in the rendering parameters object.

+ + dd371297 + DWRITE_PIXEL_GEOMETRY IDWriteRenderingParams::GetPixelGeometry() + IDWriteRenderingParams::GetPixelGeometry +
+ + +

Gets the rendering mode of the rendering parameters object.

+
+

A value that indicates the rendering mode of the rendering parameters object.

+ +

By default, the rendering mode is initialized to , which means the rendering mode is determined automatically based on the font and size. To determine the recommended rendering mode to use for a given font and size and rendering parameters object, use the method.

+
+ + dd371300 + DWRITE_RENDERING_MODE IDWriteRenderingParams::GetRenderingMode() + IDWriteRenderingParams::GetRenderingMode +
+ + +

Gets the gamma value used for gamma correction. Valid values must be greater than zero and cannot exceed 256.

+
+ +

The gamma value is used for gamma correction, which compensates for the non-linear luminosity response of most monitors.

+
+ + dd371295 + GetGamma + GetGamma + float IDWriteRenderingParams::GetGamma() +
+ + +

Gets the enhanced contrast property of the rendering parameters object. Valid values are greater than or equal to zero.

+
+ +

Enhanced contrast is the amount to increase the darkness of text, and typically ranges from 0 to 1. Zero means no contrast enhancement.

+
+ + dd371290 + GetEnhancedContrast + GetEnhancedContrast + float IDWriteRenderingParams::GetEnhancedContrast() +
+ + +

Gets the ClearType level of the rendering parameters object.

+
+ +

The ClearType level represents the amount of ClearType ? that is, the degree to which the red, green, and blue subpixels of each pixel are treated differently. Valid values range from zero (meaning no ClearType, which is equivalent to grayscale anti-aliasing) to one (meaning full ClearType)

+
+ + dd371288 + GetClearTypeLevel + GetClearTypeLevel + float IDWriteRenderingParams::GetClearTypeLevel() +
+ + +

Gets the pixel geometry of the rendering parameters object.

+
+ + dd371297 + GetPixelGeometry + GetPixelGeometry + DWRITE_PIXEL_GEOMETRY IDWriteRenderingParams::GetPixelGeometry() +
+ + +

Gets the rendering mode of the rendering parameters object.

+
+ +

By default, the rendering mode is initialized to , which means the rendering mode is determined automatically based on the font and size. To determine the recommended rendering mode to use for a given font and size and rendering parameters object, use the method.

+
+ + dd371300 + GetRenderingMode + GetRenderingMode + DWRITE_RENDERING_MODE IDWriteRenderingParams::GetRenderingMode() +
+ + + Defines glyph characteristic information that an application needs to implement justification. + + + + + Justification cannot be applied at the glyph. + + + + + The glyph represents a blank in an Arabic run. + + + + + An inter-character justification point follows the glyph. + + + + + The glyph represents a blank outside an Arabic run. + + + + + Normal middle-of-word glyph that connects to the right (begin). + + + + + Kashida (U+0640) in the middle of the word. + + + + + Final form of an alef-like (U+0627, U+0625, U+0623, U+0622). + + + + + Final form of Ha (U+0647). + + + + + Final form of Ra (U+0631). + + + + + Final form of Ba (U+0628). + + + + + Ligature of alike (U+0628,U+0631). + + + + + Highest priority: initial shape of Seen class (U+0633). + + + + + Highest priority: medial shape of Seen class (U+0633). + + + + +

Contains shaping output properties for an output glyph.

+
+ + dd368123 + DWRITE_SHAPING_GLYPH_PROPERTIES + DWRITE_SHAPING_GLYPH_PROPERTIES +
+ + + Indicates that the glyph has justification applied. + + short justification + + + +

Indicates that the glyph has justification applied.

+
+ + dd368123 + unsigned short justification + unsigned short justification +
+ + +

Indicates that the glyph is the start of a cluster.

+
+ + dd368123 + unsigned short isClusterStart + unsigned short isClusterStart +
+ + +

Indicates that the glyph is a diacritic mark.

+
+ + dd368123 + unsigned short isDiacritic + unsigned short isDiacritic +
+ + +

Indicates that the glyph is a word boundary with no visible space.

+
+ + dd368123 + unsigned short isZeroWidthSpace + unsigned short isZeroWidthSpace +
+ + +

Reserved for future use.

+
+ + dd368123 + unsigned short reserved + unsigned short reserved +
+ + +

This interface is implemented by the text analyzer's client to receive the output of a given text analysis.

+
+ +

The text analyzer disregards any current state of the analysis sink, therefore, a Set method call on a range overwrites the previously set analysis result of the same range.

+
+ + dd371303 + IDWriteTextAnalysisSink + IDWriteTextAnalysisSink +
+ + + Reports script analysis for the specified text range. + + The starting position from which to report. + The number of UTF16 units of the reported range. + A reference to a structure that contains a zero-based index representation of a writing system script and a value indicating whether additional shaping of text is required. + A successful code or error code to stop analysis. + HRESULT IDWriteTextAnalysisSink::SetScriptAnalysis([None] int textPosition,[None] int textLength,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis) + + + + Sets line-break opportunities for each character, starting from the specified position. + + The starting text position from which to report. + The number of UTF16 units of the reported range. + A reference to a structure that contains breaking conditions set for each character from the starting position to the end of the specified range. + A successful code or error code to stop analysis. + HRESULT IDWriteTextAnalysisSink::SetLineBreakpoints([None] int textPosition,[None] int textLength,[In, Buffer] const DWRITE_LINE_BREAKPOINT* lineBreakpoints) + + + + Sets a bidirectional level on the range, which is called once per run change (either explicit or resolved implicit). + + The starting position from which to report. + The number of UTF16 units of the reported range. + The explicit level from the paragraph reading direction and any embedded control codes RLE/RLO/LRE/LRO/PDF, which is determined before any additional rules. + The final implicit level considering the explicit level and characters' natural directionality, after all Bidi rules have been applied. + A successful code or error code to stop analysis. + HRESULT IDWriteTextAnalysisSink::SetBidiLevel([None] int textPosition,[None] int textLength,[None] int explicitLevel,[None] int resolvedLevel) + + + + Sets the number substitution on the text range affected by the text analysis. + + The starting position from which to report. + The number of UTF16 units of the reported range. + An object that holds the appropriate digits and numeric punctuation for a given locale. Use to create this object. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteTextAnalysisSink::SetNumberSubstitution([None] int textPosition,[None] int textLength,[None] IDWriteNumberSubstitution* numberSubstitution) + + + + Internal TextAnalysisSink Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IDWriteTextAnalysisSink::SetScriptAnalysis([None] int textPosition,[None] int textLength,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis) + + + HRESULT IDWriteTextAnalysisSink::SetLineBreakpoints([None] int textPosition,[None] int textLength,[In, Buffer] const DWRITE_LINE_BREAKPOINT* lineBreakpoints) + + + HRESULT IDWriteTextAnalysisSink::SetBidiLevel([None] int textPosition,[None] int textLength,[None] int explicitLevel,[None] int resolvedLevel) + + + HRESULT IDWriteTextAnalysisSink::SetNumberSubstitution([None] int textPosition,[None] int textLength,[None] IDWriteNumberSubstitution* numberSubstitution) + + + +

Implemented by the text analyzer's client to provide text to the analyzer. It allows the separation between the logical view of text as a continuous stream of characters identifiable by unique text positions, and the actual memory layout of potentially discrete blocks of text in the client's backing store.

+
+ +

If any of these callbacks returns an error, then the analysis functions will stop prematurely and return a callback error. Note that rather than return E_NOTIMPL, an application should stub the method and return a constant/null and .

+
+ + dd371318 + IDWriteTextAnalysisSource + IDWriteTextAnalysisSource +
+ + + Gets a block of text starting at the specified text position. + + + Returning NULL indicates the end of text, which is the position after the last character. This function is called iteratively for each consecutive block, tying together several fragmented blocks in the backing store into a virtual contiguous string. Although applications can implement sparse textual content that maps only part of the backing store, the application must map any text that is in the range passed to any analysis functions. + + The first position of the piece to obtain. All positions are in UTF16 code units, not whole characters, which matters when supplementary characters are used. + a block of text + HRESULT IDWriteTextAnalysisSource::GetTextAtPosition([None] int textPosition,[Out] const wchar_t** textString,[Out] int* textLength) + + + + Gets a block of text immediately preceding the specified position. + + + NULL indicates no chunk available at the specified position, either because textPosition equals 0, textPosition is greater than the entire text content length, or the queried position is not mapped into the application's backing store. Although applications can implement sparse textual content that maps only part of the backing store, the application must map any text that is in the range passed to any analysis functions. + + The position immediately after the last position of the block of text to obtain. + text immediately preceding the specified position + HRESULT IDWriteTextAnalysisSource::GetTextBeforePosition([None] int textPosition,[Out] const wchar_t** textString,[Out] int* textLength) + + + + Gets the locale name on the range affected by the text analysis. + + The text position to examine. + Contains the length of the text being affected by the text analysis up to the next differing locale. + + the locale name on the range affected by the text analysis + + HRESULT IDWriteTextAnalysisSource::GetLocaleName([None] int textPosition,[Out] int* textLength,[Out] const wchar_t** localeName) + + The localeName reference must remain valid until the next call or until the analysis returns. + + + + + Gets the number substitution from the text range affected by the text analysis. + + + Any implementation should return the number substitution with an incremented reference count, and the analysis will release when finished with it (either before the next call or before it returns). However, the sink callback may hold onto it after that. + + The starting position from which to report. + Contains the length of the text, in characters, remaining in the text range up to the next differing number substitution. + the number substitution from the text range affected by the text analysis. + HRESULT IDWriteTextAnalysisSource::GetNumberSubstitution([None] int textPosition,[Out] int* textLength,[Out] IDWriteNumberSubstitution** numberSubstitution) + + + + Gets the paragraph reading direction. + + The reading direction of the current paragraph. + DWRITE_READING_DIRECTION IDWriteTextAnalysisSource::GetParagraphReadingDirection() + + + + Internal TextAnalysisSource Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IDWriteTextAnalysisSource::GetTextAtPosition([None] int textPosition,[Out] const wchar_t** textString,[Out] int* textLength) + + + HRESULT IDWriteTextAnalysisSource::GetTextBeforePosition([None] int textPosition,[Out] const wchar_t** textString,[Out] int* textLength) + + + DWRITE_READING_DIRECTION IDWriteTextAnalysisSource::GetParagraphReadingDirection() + + + HRESULT IDWriteTextAnalysisSource::GetLocaleName([None] int textPosition,[Out] int* textLength,[Out] const wchar_t** localeName) + + + HRESULT IDWriteTextAnalysisSource::GetNumberSubstitution([None] int textPosition,[Out] int* textLength,[Out] IDWriteNumberSubstitution** numberSubstitution) + + + +

Analyzes various text properties for complex script processing such as bidirectional (bidi) support for languages like Arabic, determination of line break opportunities, glyph placement, and number substitution.

+
+ + dd316607 + IDWriteTextAnalyzer + IDWriteTextAnalyzer +
+ + + Returns an interface for performing text analysis. + + A reference to a DirectWrite factory + HRESULT IDWriteFactory::CreateTextAnalyzer([Out] IDWriteTextAnalyzer** textAnalyzer) + + + + Analyzes a text range for script boundaries, reading text attributes from the source and reporting the Unicode script ID to the sink callback {{SetScript}}. + + A reference to the source object to analyze. + The starting text position within the source object. + The text length to analyze. + A reference to the sink callback object that receives the text analysis. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + + HRESULT IDWriteTextAnalyzer::AnalyzeScript([None] IDWriteTextAnalysisSource* analysisSource,[None] int textPosition,[None] int textLength,[None] IDWriteTextAnalysisSink* analysisSink) + + + + Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback {{SetBidiLevel}}. + + A reference to a source object to analyze. + The starting text position within the source object. + The text length to analyze. + A reference to the sink callback object that receives the text analysis. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + + HRESULT IDWriteTextAnalyzer::AnalyzeBidi([None] IDWriteTextAnalysisSource* analysisSource,[None] int textPosition,[None] int textLength,[None] IDWriteTextAnalysisSink* analysisSink) + + While the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs. Otherwise, the returned levels may be wrong, because the Bidi algorithm is meant to apply to the paragraph as a whole. + + + + + Analyzes a text range for spans where number substitution is applicable, reading attributes from the source and reporting substitutable ranges to the sink callback {{SetNumberSubstitution}}. + + The source object to analyze. + The starting position within the source object. + The length to analyze. + A reference to the sink callback object that receives the text analysis. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + + HRESULT IDWriteTextAnalyzer::AnalyzeNumberSubstitution([None] IDWriteTextAnalysisSource* analysisSource,[None] int textPosition,[None] int textLength,[None] IDWriteTextAnalysisSink* analysisSink) + + Although the function can handle multiple ranges of differing number substitutions, the text ranges should not arbitrarily split the middle of numbers. Otherwise, it will treat the numbers separately and will not translate any intervening punctuation. + + + + + Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback {{SetLineBreakpoints}}. + + A reference to the source object to analyze. + The starting text position within the source object. + The text length to analyze. + A reference to the sink callback object that receives the text analysis. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + + HRESULT IDWriteTextAnalyzer::AnalyzeLineBreakpoints([None] IDWriteTextAnalysisSource* analysisSource,[None] int textPosition,[None] int textLength,[None] IDWriteTextAnalysisSink* analysisSink) + + Although the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs, unless the specified text span is considered a whole unit. Otherwise, the returned properties for the first and last characters will inappropriately allow breaks. + + + + + Gets the glyphs (TODO doc) + + The text string. + Length of the text. + The font face. + if set to true [is sideways]. + if set to true [is right to left]. + The script analysis. + Name of the locale. + The number substitution. + The features. + The feature range lengths. + The max glyph count. + The cluster map. + The text props. + The glyph indices. + The glyph props. + The actual glyph count. + + If the method succeeds, it returns . + + HRESULT IDWriteTextAnalyzer::GetGlyphs([In, Buffer] const wchar_t* textString,[In] unsigned int textLength,[In] IDWriteFontFace* fontFace,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis,[In, Buffer, Optional] const wchar_t* localeName,[In, Optional] IDWriteNumberSubstitution* numberSubstitution,[In, Optional] const void** features,[In, Buffer, Optional] const unsigned int* featureRangeLengths,[In] unsigned int featureRanges,[In] unsigned int maxGlyphCount,[Out, Buffer] unsigned short* clusterMap,[Out, Buffer] DWRITE_SHAPING_TEXT_PROPERTIES* textProps,[Out, Buffer] unsigned short* glyphIndices,[Out, Buffer] DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps,[Out] unsigned int* actualGlyphCount) + + + + Gets the glyph placements. + + The text string. + The cluster map. + The text props. + Length of the text. + The glyph indices. + The glyph props. + The glyph count. + The font face. + Size of the font in ems. + if set to true [is sideways]. + if set to true [is right to left]. + The script analysis. + Name of the locale. + The features. + The feature range lengths. + The glyph advances. + The glyph offsets. + + If the method succeeds, it returns . + + HRESULT IDWriteTextAnalyzer::GetGlyphPlacements([In, Buffer] const wchar_t* textString,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] DWRITE_SHAPING_TEXT_PROPERTIES* textProps,[In] unsigned int textLength,[In, Buffer] const unsigned short* glyphIndices,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps,[In] unsigned int glyphCount,[In] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis,[In, Buffer, Optional] const wchar_t* localeName,[In, Optional] const void** features,[In, Buffer, Optional] const unsigned int* featureRangeLengths,[In] unsigned int featureRanges,[Out, Buffer] float* glyphAdvances,[Out, Buffer] DWRITE_GLYPH_OFFSET* glyphOffsets) + + + + Gets the GDI compatible glyph placements. + + The text string. + The cluster map. + The text props. + Length of the text. + The glyph indices. + The glyph props. + The glyph count. + The font face. + Size of the font em. + The pixels per dip. + The transform. + if set to true [use GDI natural]. + if set to true [is sideways]. + if set to true [is right to left]. + The script analysis. + Name of the locale. + The features. + The feature range lengths. + The glyph advances. + The glyph offsets. + + If the method succeeds, it returns . + + HRESULT IDWriteTextAnalyzer::GetGdiCompatibleGlyphPlacements([In, Buffer] const wchar_t* textString,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] DWRITE_SHAPING_TEXT_PROPERTIES* textProps,[In] unsigned int textLength,[In, Buffer] const unsigned short* glyphIndices,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps,[In] unsigned int glyphCount,[In] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis,[In, Buffer, Optional] const wchar_t* localeName,[In, Optional] const void** features,[In, Buffer, Optional] const unsigned int* featureRangeLengths,[In] unsigned int featureRanges,[Out, Buffer] float* glyphAdvances,[Out, Buffer] DWRITE_GLYPH_OFFSET* glyphOffsets) + + + + Allocates the features from the jagged array.. + + The features. + A pointer to the allocated native features or 0 if features is null or empty. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Analyzes a text range for script boundaries, reading text attributes from the source and reporting the Unicode script ID to the sink callback SetScript.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316620 + HRESULT IDWriteTextAnalyzer::AnalyzeScript([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink) + IDWriteTextAnalyzer::AnalyzeScript +
+ + +

Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback SetBidiLevel.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

While the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs. Otherwise, the returned levels may be wrong, because the Bidi algorithm is meant to apply to the paragraph as a whole.

+
+ + dd316610 + HRESULT IDWriteTextAnalyzer::AnalyzeBidi([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink) + IDWriteTextAnalyzer::AnalyzeBidi +
+ + +

Analyzes a text range for spans where number substitution is applicable, reading attributes from the source and reporting substitutable ranges to the sink callback SetNumberSubstitution.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Although the function can handle multiple ranges of differing number substitutions, the text ranges should not arbitrarily split the middle of numbers. Otherwise, it will treat the numbers separately and will not translate any intervening punctuation.

+
+ + dd316616 + HRESULT IDWriteTextAnalyzer::AnalyzeNumberSubstitution([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink) + IDWriteTextAnalyzer::AnalyzeNumberSubstitution +
+ + +

Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback SetLineBreakpoints.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Although the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs, unless the specified text span is considered a whole unit. Otherwise, the returned properties for the first and last characters will inappropriately allow breaks.

+
+ + dd316613 + HRESULT IDWriteTextAnalyzer::AnalyzeLineBreakpoints([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink) + IDWriteTextAnalyzer::AnalyzeLineBreakpoints +
+ + +

Parses the input text string and maps it to the set of glyphs and associated glyph data according to the font and the writing system's rendering rules.

+
+

An array of characters to convert to glyphs.

+

The length of textString.

+

The font face that is the source of the output glyphs.

+

A Boolean flag set to TRUE if the text is intended to be drawn vertically.

+

A Boolean flag set to TRUE for right-to-left text.

+

A reference to a Script analysis result from an AnalyzeScript call.

+

The locale to use when selecting glyphs. For example the same character may map to different glyphs for ja-jp versus zh-chs. If this is null, then the default mapping based on the script is used.

+

A reference to an optional number substitution which selects the appropriate glyphs for digits and related numeric characters, depending on the results obtained from AnalyzeNumberSubstitution. Passing null indicates that no substitution is needed and that the digits should receive nominal glyphs.

+

An array of references to the sets of typographic features to use in each feature range.

+

The length of each feature range, in characters. The sum of all lengths should be equal to textLength.

+

The number of feature ranges.

+

The maximum number of glyphs that can be returned.

+

When this method returns, contains the mapping from character ranges to glyph ranges.

+

When this method returns, contains a reference to an array of structures that contains shaping properties for each character.

+

The output glyph indices.

+

When this method returns, contains a reference to an array of structures that contain shaping properties for each output glyph.

+

When this method returns, contains the actual number of glyphs returned if the call succeeds.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Note that the mapping from characters to glyphs is, in general, many-to-many. The recommended estimate for the per-glyph output buffers is (3 * textLength / 2 + 16). This is not guaranteed to be sufficient. The value of the actualGlyphCount parameter is only valid if the call succeeds. In the event that maxGlyphCount is not big enough, HRESULT_FROM_WIN32() will be returned. The application should allocate a larger buffer and try again.

+
+ + dd316625 + HRESULT IDWriteTextAnalyzer::GetGlyphs([In, Buffer] const wchar_t* textString,[In] unsigned int textLength,[In] IDWriteFontFace* fontFace,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis,[In, Buffer, Optional] const wchar_t* localeName,[In, Optional] IDWriteNumberSubstitution* numberSubstitution,[In, Optional] const void** features,[In, Buffer, Optional] const unsigned int* featureRangeLengths,[In] unsigned int featureRanges,[In] unsigned int maxGlyphCount,[Out, Buffer] unsigned short* clusterMap,[Out, Buffer] DWRITE_SHAPING_TEXT_PROPERTIES* textProps,[Out, Buffer] unsigned short* glyphIndices,[Out, Buffer] DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps,[Out] unsigned int* actualGlyphCount) + IDWriteTextAnalyzer::GetGlyphs +
+ + +

Places glyphs output from the GetGlyphs method according to the font and the writing system's rendering rules.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316622 + HRESULT IDWriteTextAnalyzer::GetGlyphPlacements([In, Buffer] const wchar_t* textString,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] DWRITE_SHAPING_TEXT_PROPERTIES* textProps,[In] unsigned int textLength,[In, Buffer] const unsigned short* glyphIndices,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps,[In] unsigned int glyphCount,[In] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis,[In, Buffer, Optional] const wchar_t* localeName,[In, Optional] const void** features,[In, Buffer, Optional] const unsigned int* featureRangeLengths,[In] unsigned int featureRanges,[Out, Buffer] float* glyphAdvances,[Out, Buffer] DWRITE_GLYPH_OFFSET* glyphOffsets) + IDWriteTextAnalyzer::GetGlyphPlacements +
+ + +

Place glyphs output from the GetGlyphs method according to the font and the writing system's rendering rules.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd941790 + HRESULT IDWriteTextAnalyzer::GetGdiCompatibleGlyphPlacements([In, Buffer] const wchar_t* textString,[In, Buffer] const unsigned short* clusterMap,[In, Buffer] DWRITE_SHAPING_TEXT_PROPERTIES* textProps,[In] unsigned int textLength,[In, Buffer] const unsigned short* glyphIndices,[In, Buffer] const DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps,[In] unsigned int glyphCount,[In] IDWriteFontFace* fontFace,[In] float fontEmSize,[In] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[In] BOOL useGdiNatural,[In] BOOL isSideways,[In] BOOL isRightToLeft,[In] const DWRITE_SCRIPT_ANALYSIS* scriptAnalysis,[In, Buffer, Optional] const wchar_t* localeName,[In, Optional] const void** features,[In, Buffer, Optional] const unsigned int* featureRangeLengths,[In] unsigned int featureRanges,[Out, Buffer] float* glyphAdvances,[Out, Buffer] DWRITE_GLYPH_OFFSET* glyphOffsets) + IDWriteTextAnalyzer::GetGdiCompatibleGlyphPlacements +
+ + +

The interface describes the font and paragraph properties used to format text, and it describes locale information.

+
+ +

To get a reference to the interface, the application must call the method as shown in the following code.

 if (SUCCEEDED(hr))	
+            { hr = pDWriteFactory_->CreateTextFormat( L"Gabriola", null, , , , 72.0f, L"en-us", &pTextFormat_ );	
+            } 

When creating an object using the CreateTextFormat function, the application specifies the font family, font collection, font weight, font size, and locale name for the text format.

These properties cannot be changed after the object is created. To change these properties, a new object must be created with the desired properties.

The interface is used to draw text with a single format

To draw text with multiple formats, or to use a custom text renderer, use the interface. enables the application to change the format for ranges of text within the string. The takes an object as a parameter and initially applies the format information to the entire string.

This object may not be thread-safe, and it may carry the state of text format change.

+
+ + dd316628 + IDWriteTextFormat + IDWriteTextFormat +
+ + + Creates a text format object used for text layout with normal weight, style and stretch. + + an instance of + An array of characters that contains the name of the font family + The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch. + HRESULT CreateTextFormat([In] const wchar* fontFamilyName,[None] IDWriteFontCollection* fontCollection,[None] DWRITE_FONT_WEIGHT fontWeight,[None] DWRITE_FONT_STYLE fontStyle,[None] DWRITE_FONT_STRETCH fontStretch,[None] FLOAT fontSize,[In] const wchar* localeName,[Out] IDWriteTextFormat** textFormat) + + + + Creates a text format object used for text layout with normal stretch. + + an instance of + An array of characters that contains the name of the font family + A value that indicates the font weight for the text object created by this method. + A value that indicates the font style for the text object created by this method. + The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch. + HRESULT CreateTextFormat([In] const wchar* fontFamilyName,[None] IDWriteFontCollection* fontCollection,[None] DWRITE_FONT_WEIGHT fontWeight,[None] DWRITE_FONT_STYLE fontStyle,[None] DWRITE_FONT_STRETCH fontStretch,[None] FLOAT fontSize,[In] const wchar* localeName,[Out] IDWriteTextFormat** textFormat) + + + + Creates a text format object used for text layout. + + an instance of + An array of characters that contains the name of the font family + A value that indicates the font weight for the text object created by this method. + A value that indicates the font style for the text object created by this method. + A value that indicates the font stretch for the text object created by this method. + The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch. + HRESULT CreateTextFormat([In] const wchar* fontFamilyName,[None] IDWriteFontCollection* fontCollection,[None] DWRITE_FONT_WEIGHT fontWeight,[None] DWRITE_FONT_STYLE fontStyle,[None] DWRITE_FONT_STRETCH fontStretch,[None] FLOAT fontSize,[In] const wchar* localeName,[Out] IDWriteTextFormat** textFormat) + + + + Creates a text format object used for text layout. + + an instance of + An array of characters that contains the name of the font family + A pointer to a font collection object. When this is NULL, indicates the system font collection. + A value that indicates the font weight for the text object created by this method. + A value that indicates the font style for the text object created by this method. + A value that indicates the font stretch for the text object created by this method. + The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch. + HRESULT CreateTextFormat([In] const wchar* fontFamilyName,[None] IDWriteFontCollection* fontCollection,[None] DWRITE_FONT_WEIGHT fontWeight,[None] DWRITE_FONT_STYLE fontStyle,[None] DWRITE_FONT_STRETCH fontStretch,[None] FLOAT fontSize,[In] const wchar* localeName,[Out] IDWriteTextFormat** textFormat) + + + + Creates a text format object used for text layout. + + an instance of + An array of characters that contains the name of the font family + A pointer to a font collection object. When this is NULL, indicates the system font collection. + A value that indicates the font weight for the text object created by this method. + A value that indicates the font style for the text object created by this method. + A value that indicates the font stretch for the text object created by this method. + The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch. + An array of characters that contains the locale name. + HRESULT CreateTextFormat([In] const wchar* fontFamilyName,[None] IDWriteFontCollection* fontCollection,[None] DWRITE_FONT_WEIGHT fontWeight,[None] DWRITE_FONT_STYLE fontStyle,[None] DWRITE_FONT_STRETCH fontStretch,[None] FLOAT fontSize,[In] const wchar* localeName,[Out] IDWriteTextFormat** textFormat) + + + +

Sets trimming options for text overflowing the layout width.

+
+

Text trimming options.

+

Application-defined omission sign. This parameter may be null. See for more information.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ dd316712 + HRESULT IDWriteTextFormat::SetTrimming([In] const DWRITE_TRIMMING* trimmingOptions,[In] IDWriteInlineObject* trimmingSign) + IDWriteTextFormat::SetTrimming +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the alignment of text in a paragraph, relative to the leading and trailing edge of a layout box for a interface.

+
+ No documentation. +

This method can return one of these values.

Return codeDescription

The method succeeded.

E_INVALIDARG

The textAlignment argument is invalid.

?

+ +

The text can be aligned to the leading or trailing edge of the layout box, or it can be centered. The following illustration shows text with the alignment set to , , and , respectively.

Note??The alignment is dependent on reading direction, the above is for left-to-right reading direction. For right-to-left reading direction it would be the opposite.

See for more information.

+
+ + dd316709 + HRESULT IDWriteTextFormat::SetTextAlignment([In] DWRITE_TEXT_ALIGNMENT textAlignment) + IDWriteTextFormat::SetTextAlignment +
+ + +

Sets the alignment option of a paragraph relative to the layout box's top and bottom edge.

+
+

The paragraph alignment option being set for a paragraph; see for more information.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316702 + HRESULT IDWriteTextFormat::SetParagraphAlignment([In] DWRITE_PARAGRAPH_ALIGNMENT paragraphAlignment) + IDWriteTextFormat::SetParagraphAlignment +
+ + +

Sets the word wrapping option.

+
+

The word wrapping option being set for a paragraph; see for more information.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316715 + HRESULT IDWriteTextFormat::SetWordWrapping([In] DWRITE_WORD_WRAPPING wordWrapping) + IDWriteTextFormat::SetWordWrapping +
+ + +

Sets the paragraph reading direction.

+
+

The text reading direction (for example, for languages, such as Arabic, that read from right to left) for a paragraph.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316705 + HRESULT IDWriteTextFormat::SetReadingDirection([In] DWRITE_READING_DIRECTION readingDirection) + IDWriteTextFormat::SetReadingDirection +
+ + +

Sets the paragraph flow direction.

+
+

The paragraph flow direction; see for more information.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316691 + HRESULT IDWriteTextFormat::SetFlowDirection([In] DWRITE_FLOW_DIRECTION flowDirection) + IDWriteTextFormat::SetFlowDirection +
+ + +

Sets a fixed distance between two adjacent tab stops.

+
+

The fixed distance between two adjacent tab stops.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316695 + HRESULT IDWriteTextFormat::SetIncrementalTabStop([In] float incrementalTabStop) + IDWriteTextFormat::SetIncrementalTabStop +
+ + +

Sets trimming options for text overflowing the layout width.

+
+

Text trimming options.

+

Application-defined omission sign. This parameter may be null. See for more information.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316712 + HRESULT IDWriteTextFormat::SetTrimming([In] const DWRITE_TRIMMING* trimmingOptions,[In] IDWriteInlineObject* trimmingSign) + IDWriteTextFormat::SetTrimming +
+ + +

Sets the line spacing.

+
+

Specifies how line height is being determined; see for more information.

+

The line height, or distance between one baseline to another.

+

The distance from top of line to baseline. A reasonable ratio to lineSpacing is 80 percent.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For the default method, spacing depends solely on the content. For uniform spacing, the specified line height overrides the content.

+
+ + dd316698 + HRESULT IDWriteTextFormat::SetLineSpacing([In] DWRITE_LINE_SPACING_METHOD lineSpacingMethod,[In] float lineSpacing,[In] float baseline) + IDWriteTextFormat::SetLineSpacing +
+ + +

Gets the alignment option of text relative to the layout box's leading and trailing edge.

+
+

Returns the text alignment option of the current paragraph.

+ + dd316681 + DWRITE_TEXT_ALIGNMENT IDWriteTextFormat::GetTextAlignment() + IDWriteTextFormat::GetTextAlignment +
+ + +

Gets the alignment option of a paragraph which is relative to the top and bottom edges of a layout box.

+
+

A value that indicates the current paragraph alignment option.

+ + dd316675 + DWRITE_PARAGRAPH_ALIGNMENT IDWriteTextFormat::GetParagraphAlignment() + IDWriteTextFormat::GetParagraphAlignment +
+ + +

Gets the word wrapping option.

+
+

Returns the word wrapping option; see for more information.

+ + dd316688 + DWRITE_WORD_WRAPPING IDWriteTextFormat::GetWordWrapping() + IDWriteTextFormat::GetWordWrapping +
+ + +

Gets the current reading direction for text in a paragraph.

+
+

A value that indicates the current reading direction for text in a paragraph.

+ + dd316678 + DWRITE_READING_DIRECTION IDWriteTextFormat::GetReadingDirection() + IDWriteTextFormat::GetReadingDirection +
+ + +

Gets the direction that text lines flow.

+
+

The direction that text lines flow within their parent container. For example, indicates that text lines are placed from top to bottom.

+ + dd316631 + DWRITE_FLOW_DIRECTION IDWriteTextFormat::GetFlowDirection() + IDWriteTextFormat::GetFlowDirection +
+ + +

Gets the incremental tab stop position.

+
+

The incremental tab stop value.

+ + dd316655 + float IDWriteTextFormat::GetIncrementalTabStop() + IDWriteTextFormat::GetIncrementalTabStop +
+ + +

Gets the trimming options for text that overflows the layout box.

+
+

When this method returns, it contains a reference to a structure that holds the text trimming options for the overflowing text.

+

When this method returns, contains an address of a reference to a trimming omission sign. This parameter may be null.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316684 + HRESULT IDWriteTextFormat::GetTrimming([Out] DWRITE_TRIMMING* trimmingOptions,[Out] IDWriteInlineObject** trimmingSign) + IDWriteTextFormat::GetTrimming +
+ + +

Gets the line spacing adjustment set for a multiline text paragraph.

+
+

A value that indicates how line height is determined.

+

When this method returns, contains the line height, or distance between one baseline to another.

+

When this method returns, contains the distance from top of line to baseline. A reasonable ratio to lineSpacing is 80 percent.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316657 + HRESULT IDWriteTextFormat::GetLineSpacing([Out] DWRITE_LINE_SPACING_METHOD* lineSpacingMethod,[Out] float* lineSpacing,[Out] float* baseline) + IDWriteTextFormat::GetLineSpacing +
+ + +

Gets the current font collection.

+
+

When this method returns, contains an address of a reference to the font collection being used for the current text.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316633 + HRESULT IDWriteTextFormat::GetFontCollection([Out] IDWriteFontCollection** fontCollection) + IDWriteTextFormat::GetFontCollection +
+ + +

Gets the length of the font family name.

+
+

The size of the character array, in character count, not including the terminated null character.

+ + dd316640 + unsigned int IDWriteTextFormat::GetFontFamilyNameLength() + IDWriteTextFormat::GetFontFamilyNameLength +
+ + +

Gets a copy of the font family name.

+
+

When this method returns, contains a reference to a character array, which is null-terminated, that receives the current font family name. The buffer allocated for this array should be at least the size, in elements, of nameSize.

+

The size of the fontFamilyName character array, in character count, including the terminated null character. To find the size of fontFamilyName, use GetFontFamilyNameLength.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316636 + HRESULT IDWriteTextFormat::GetFontFamilyName([Out, Buffer] wchar_t* fontFamilyName,[In] unsigned int nameSize) + IDWriteTextFormat::GetFontFamilyName +
+ + +

Gets the font weight of the text.

+
+

A value that indicates the type of weight (such as normal, bold, or black).

+ + dd316652 + DWRITE_FONT_WEIGHT IDWriteTextFormat::GetFontWeight() + IDWriteTextFormat::GetFontWeight +
+ + +

Gets the font style of the text.

+
+

A value which indicates the type of font style (such as slope or incline).

+ + dd316649 + DWRITE_FONT_STYLE IDWriteTextFormat::GetFontStyle() + IDWriteTextFormat::GetFontStyle +
+ + +

Gets the font stretch of the text.

+
+

A value which indicates the type of font stretch (such as normal or condensed).

+ + dd316646 + DWRITE_FONT_STRETCH IDWriteTextFormat::GetFontStretch() + IDWriteTextFormat::GetFontStretch +
+ + +

Gets the font size in DIP unites.

+
+

The current font size in DIP units.

+ + dd316643 + float IDWriteTextFormat::GetFontSize() + IDWriteTextFormat::GetFontSize +
+ + +

Gets the length of the locale name.

+
+

The size of the character array in character count, not including the terminated null character.

+ + dd316674 + unsigned int IDWriteTextFormat::GetLocaleNameLength() + IDWriteTextFormat::GetLocaleNameLength +
+ + +

Gets a copy of the locale name.

+
+

Contains a character array that receives the current locale name.

+

The size of the character array, in character count, including the terminated null character. Use GetLocaleNameLength to get the size of the locale name character array.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316659 + HRESULT IDWriteTextFormat::GetLocaleName([Out, Buffer] wchar_t* localeName,[In] unsigned int nameSize) + IDWriteTextFormat::GetLocaleName +
+ + + Gets a copy of the font family name. + + the current font family name. + HRESULT IDWriteTextFormat::GetFontFamilyName([Out, Buffer] wchar_t* fontFamilyName,[None] int nameSize) + + + + Gets a copy of the locale name. + + the current locale name. + HRESULT IDWriteTextFormat::GetLocaleName([Out, Buffer] wchar_t* localeName,[None] int nameSize) + + + +

Gets or sets the alignment option of text relative to the layout box's leading and trailing edge.

+
+ + dd316681 + GetTextAlignment / SetTextAlignment + GetTextAlignment + DWRITE_TEXT_ALIGNMENT IDWriteTextFormat::GetTextAlignment() +
+ + +

Gets or sets the alignment option of a paragraph which is relative to the top and bottom edges of a layout box.

+
+ + dd316675 + GetParagraphAlignment / SetParagraphAlignment + GetParagraphAlignment + DWRITE_PARAGRAPH_ALIGNMENT IDWriteTextFormat::GetParagraphAlignment() +
+ + +

Gets or sets the word wrapping option.

+
+ + dd316688 + GetWordWrapping / SetWordWrapping + GetWordWrapping + DWRITE_WORD_WRAPPING IDWriteTextFormat::GetWordWrapping() +
+ + +

Gets or sets the current reading direction for text in a paragraph.

+
+ + dd316678 + GetReadingDirection / SetReadingDirection + GetReadingDirection + DWRITE_READING_DIRECTION IDWriteTextFormat::GetReadingDirection() +
+ + +

Gets or sets the direction that text lines flow.

+
+ + dd316631 + GetFlowDirection / SetFlowDirection + GetFlowDirection + DWRITE_FLOW_DIRECTION IDWriteTextFormat::GetFlowDirection() +
+ + +

Gets or sets the incremental tab stop position.

+
+ + dd316655 + GetIncrementalTabStop / SetIncrementalTabStop + GetIncrementalTabStop + float IDWriteTextFormat::GetIncrementalTabStop() +
+ + +

Gets the current font collection.

+
+ + dd316633 + GetFontCollection + GetFontCollection + HRESULT IDWriteTextFormat::GetFontCollection([Out] IDWriteFontCollection** fontCollection) +
+ + +

Gets the font weight of the text.

+
+ + dd316652 + GetFontWeight + GetFontWeight + DWRITE_FONT_WEIGHT IDWriteTextFormat::GetFontWeight() +
+ + +

Gets the font style of the text.

+
+ + dd316649 + GetFontStyle + GetFontStyle + DWRITE_FONT_STYLE IDWriteTextFormat::GetFontStyle() +
+ + +

Gets the font stretch of the text.

+
+ + dd316646 + GetFontStretch + GetFontStretch + DWRITE_FONT_STRETCH IDWriteTextFormat::GetFontStretch() +
+ + +

Gets the font size in DIP unites.

+
+ + dd316643 + GetFontSize + GetFontSize + float IDWriteTextFormat::GetFontSize() +
+ + +

The interface represents a block of text after it has been fully analyzed and formatted.

+
+ +

To get a reference to the interface, the application must call the method, as shown in the following code.

 // Create a text layout using the text format.	
+            if (SUCCEEDED(hr))	
+            {  rect; GetClientRect(hwnd_, &rect);  float width  = rect.right  / dpiScaleX_; float height = rect.bottom / dpiScaleY_; hr = pDWriteFactory_->CreateTextLayout( wszText_,      // The string to be laid out and formatted. cTextLength_,  // The length of the string. pTextFormat_,  // The text format to apply to the string (contains font information, etc). width,         // The width of the layout box. height,        // The height of the layout box. &pTextLayout_  // The  interface reference. );	
+            } 

The interface allows the application to change the format for ranges of the text it represents, specified by a structure. The following example shows how to set the font weight for a text range.

 // Set the font weight to bold for the first 5 letters.	
+             textRange = {0, 4}; if (SUCCEEDED(hr))	
+            { hr = pTextLayout_->SetFontWeight(, textRange);	
+            } 

also provides methods for adding strikethrough, underline, and inline objects to the text.

To draw the block of text represented by an object, Direct2D provides the method. To draw using a custom renderer implement an interface and call the method

+
+ + dd316718 + IDWriteTextLayout + IDWriteTextLayout +
+ + + Takes a string, text format, and associated constraints, and produces an object that represents the fully analyzed and formatted result. + + an instance of + An array of characters that contains the string to create a new object from. This array must be of length stringLength and can contain embedded NULL characters. + A pointer to an object that indicates the format to apply to the string. + The width of the layout box. + The height of the layout box. + HRESULT CreateTextLayout([In, Buffer] const wchar* string,[None] UINT32 stringLength,[None] IDWriteTextFormat* textFormat,[None] FLOAT maxWidth,[None] FLOAT maxHeight,[Out] IDWriteTextLayout** textLayout) + + + + Create a Gdi Compatible TextLayout. Takes a string, format, and associated constraints, and produces an object representing the result, formatted for a particular display resolution and measuring mode. + + + The resulting text layout should only be used for the intended resolution, and for cases where text scalability is desired {{CreateTextLayout}} should be used instead. + + an instance of + An array of characters that contains the string to create a new object from. This array must be of length stringLength and can contain embedded NULL characters. + The text formatting object to apply to the string. + The width of the layout box. + The height of the layout box. + The number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI device pixelsPerDip is 1. If rendering onto a 120 DPI device pixelsPerDip is 1.25 (120/96). + Instructs the text layout to use the same metrics as GDI bi-level text when set to FALSE. When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY. + HRESULT IDWriteFactory::CreateGdiCompatibleTextLayout([In, Buffer] const wchar_t* string,[None] int stringLength,[None] IDWriteTextFormat* textFormat,[None] float layoutWidth,[None] float layoutHeight,[None] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[None] BOOL useGdiNatural,[Out] IDWriteTextLayout** textLayout) + + + + Create a GDI Compatible TextLayout. Takes a string, format, and associated constraints, and produces an object representing the result, formatted for a particular display resolution and measuring mode. + + + The resulting text layout should only be used for the intended resolution, and for cases where text scalability is desired {{CreateTextLayout}} should be used instead. + + an instance of + An array of characters that contains the string to create a new object from. This array must be of length stringLength and can contain embedded NULL characters. + The text formatting object to apply to the string. + The width of the layout box. + The height of the layout box. + The number of physical pixels per DIP (device independent pixel). For example, if rendering onto a 96 DPI device pixelsPerDip is 1. If rendering onto a 120 DPI device pixelsPerDip is 1.25 (120/96). + An optional transform applied to the glyphs and their positions. This transform is applied after the scaling specifies the font size and pixels per DIP. + Instructs the text layout to use the same metrics as GDI bi-level text when set to FALSE. When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY. + HRESULT IDWriteFactory::CreateGdiCompatibleTextLayout([In, Buffer] const wchar_t* string,[None] int stringLength,[None] IDWriteTextFormat* textFormat,[None] float layoutWidth,[None] float layoutHeight,[None] float pixelsPerDip,[In, Optional] const DWRITE_MATRIX* transform,[None] BOOL useGdiNatural,[Out] IDWriteTextLayout** textLayout) + + + + Draws text using the specified client drawing context. + + + To draw text with this method, a textLayout object needs to be created by the application using . After the textLayout object is obtained, the application calls the IDWriteTextLayout::Draw method to draw the text, decorations, and inline objects. The actual drawing is done through the callback interface passed in as the textRenderer argument; there, the corresponding DrawGlyphRun API is called. + + Pointer to the set of callback functions used to draw parts of a text string. + The x-coordinate of the layout's left side. + The y-coordinate of the layout's top side. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Draw([None] void* clientDrawingContext,[None] IDWriteTextRenderer* renderer,[None] FLOAT originX,[None] FLOAT originY) + + + + Draws text using the specified client drawing context. + + + To draw text with this method, a textLayout object needs to be created by the application using . After the textLayout object is obtained, the application calls the IDWriteTextLayout::Draw method to draw the text, decorations, and inline objects. The actual drawing is done through the callback interface passed in as the textRenderer argument; there, the corresponding DrawGlyphRun API is called. + + An application-defined drawing context. + Pointer to the set of callback functions used to draw parts of a text string. + The x-coordinate of the layout's left side. + The y-coordinate of the layout's top side. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Draw([None] void* clientDrawingContext,[None] IDWriteTextRenderer* renderer,[None] FLOAT originX,[None] FLOAT originY) + + + + Retrieves logical properties and measurements of each glyph cluster. + + + If maxClusterCount is not large enough, then E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), is returned and actualClusterCount is set to the number of clusters needed. + + Returns metrics, such as line-break or total advance width, for a glyph cluster. + HRESULT IDWriteTextLayout::GetClusterMetrics([Out, Buffer, Optional] DWRITE_CLUSTER_METRICS* clusterMetrics,[None] int maxClusterCount,[Out] int* actualClusterCount) + + + + Sets the application-defined drawing effect. + + + An , such as a color or gradient brush, can be set as a drawing effect if you are using the to draw text and that brush will be used to draw the specified range of text. This drawing effect is associated with the specified range and will be passed back to the application by way of the callback when the range is drawn at drawing time. + + Application-defined drawing effects that apply to the range. This data object will be passed back to the application's drawing callbacks for final rendering. + The text range to which this change applies. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteTextLayout::SetDrawingEffect([None] IUnknown* drawingEffect,[None] DWRITE_TEXT_RANGE textRange) + + + + Gets the application-defined drawing effect at the specified text position. + + The position of the text whose drawing effect is to be retrieved. + a reference to the current application-defined drawing effect. Usually this effect is a foreground brush that is used in glyph drawing. + HRESULT IDWriteTextLayout::GetDrawingEffect([None] int currentPosition,[Out] IUnknown** drawingEffect,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the application-defined drawing effect at the specified text position. + + The position of the text whose drawing effect is to be retrieved. + Contains the range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the drawing effect. + a reference to the current application-defined drawing effect. Usually this effect is a foreground brush that is used in glyph drawing. + HRESULT IDWriteTextLayout::GetDrawingEffect([None] int currentPosition,[Out] IUnknown** drawingEffect,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font collection associated with the text at the specified position. + + The position of the text to inspect. + a reference to the current font collection. + HRESULT IDWriteTextLayout::GetFontCollection([None] int currentPosition,[Out] IDWriteFontCollection** fontCollection,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font family name of the text at the specified position. + + The position of the text to examine. + the font family name + HRESULT IDWriteTextLayout::GetFontFamilyName([None] int currentPosition,[Out, Buffer] wchar_t* fontFamilyName,[None] int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font family name of the text at the specified position. + + The position of the text to examine. + The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font family name. + the font family name + HRESULT IDWriteTextLayout::GetFontFamilyName([None] int currentPosition,[Out, Buffer] wchar_t* fontFamilyName,[None] int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font em height of the text at the specified position. + + The position of the text to inspect. + The size of the font in ems of the text at the specified position. + HRESULT IDWriteTextLayout::GetFontSize([None] int currentPosition,[Out] float* fontSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font stretch of the text at the specified position. + + The position of the text to inspect. + a value which indicates the type of font stretch (also known as width) being applied at the specified position. + HRESULT IDWriteTextLayout::GetFontStretch([None] int currentPosition,[Out] DWRITE_FONT_STRETCH* fontStretch,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font style (also known as slope) of the text at the specified position. + + The position of the text to inspect. + a value which indicates the type of font style (also known as slope or incline) being applied at the specified position. + HRESULT IDWriteTextLayout::GetFontStyle([None] int currentPosition,[Out] DWRITE_FONT_STYLE* fontStyle,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the font weight of the text at the specified position. + + The position of the text to inspect. + a value which indicates the type of font weight being applied at the specified position. + HRESULT IDWriteTextLayout::GetFontWeight([None] int currentPosition,[Out] DWRITE_FONT_WEIGHT* fontWeight,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the inline object at the specified position. + + The specified text position. + an application-defined inline object. + HRESULT IDWriteTextLayout::GetInlineObject([None] int currentPosition,[Out] IDWriteInlineObject** inlineObject,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Retrieves the information about each individual text line of the text string. + + + If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), is returned and *actualLineCount is set to the number of lines needed. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteTextLayout::GetLineMetrics([Out, Buffer, Optional] DWRITE_LINE_METRICS* lineMetrics,[None] int maxLineCount,[Out] int* actualLineCount) + + + + Gets the locale name of the text at the specified position. + + The position of the text to inspect. + the locale name of the text at the specified position. + HRESULT IDWriteTextLayout::GetLocaleName([None] int currentPosition,[Out, Buffer] wchar_t* localeName,[None] int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the locale name of the text at the specified position. + + The position of the text to inspect. + The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the locale name. + the locale name of the text at the specified position. + HRESULT IDWriteTextLayout::GetLocaleName([None] int currentPosition,[Out, Buffer] wchar_t* localeName,[None] int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Get the strikethrough presence of the text at the specified position. + + The position of the text to inspect. + A Boolean flag that indicates whether strikethrough is present at the position indicated by currentPosition. + HRESULT IDWriteTextLayout::GetStrikethrough([None] int currentPosition,[Out] BOOL* hasStrikethrough,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the typography setting of the text at the specified position. + + The position of the text to inspect. + a reference to the current typography setting. + HRESULT IDWriteTextLayout::GetTypography([None] int currentPosition,[Out] IDWriteTypography** typography,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + Gets the underline presence of the text at the specified position. + + The current text position. + A Boolean flag that indicates whether underline is present at the position indicated by currentPosition. + HRESULT IDWriteTextLayout::GetUnderline([None] int currentPosition,[Out] BOOL* hasUnderline,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + + + + The application calls this function to get a set of hit-test metrics corresponding to a range of text positions. + One of the main usages is to implement highlight selection of the text string. + The function returns E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + when the buffer size of hitTestMetrics is too small to hold all the regions calculated by the function. + In this situation, the function sets the output value *actualHitTestMetricsCount to the number of geometries calculated. + The application is responsible for allocating a new buffer of greater size and calling the function again. + A good value to use as an initial value for maxHitTestMetricsCount may be calculated from the following equation: + maxHitTestMetricsCount = lineCount * maxBidiReorderingDepth where lineCount is obtained from the value of the output argument *actualLineCount (from the function IDWriteTextLayout::GetLineLengths), and the maxBidiReorderingDepth value from the DWRITE_TEXT_METRICS structure of the output argument *textMetrics (from the function IDWriteFactory::CreateTextLayout). + + The first text position of the specified range. + The number of positions of the specified range. + The origin pixel location X at the left of the layout box. This offset is added to the hit-test metrics returned. + The origin pixel location Y at the top of the layout box. This offset is added to the hit-test metrics returned. + a reference to a buffer of the output geometry fully enclosing the specified position range. The buffer must be at least as large as maxHitTestMetricsCount. + HRESULT IDWriteTextLayout::HitTestTextRange([None] int textPosition,[None] int textLength,[None] float originX,[None] float originY,[Out, Buffer, Optional] DWRITE_HIT_TEST_METRICS* hitTestMetrics,[None] int maxHitTestMetricsCount,[Out] int* actualHitTestMetricsCount) + + + + Sets the inline object. + + + The application may call this function to specify the set of properties describing an application-defined inline object for specific range. This inline object applies to the specified range and will be passed back to the application by way of the DrawInlineObject callback when the range is drawn. Any text in that range will be suppressed. + + An application-defined inline object. + Text range to which this change applies. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT IDWriteTextLayout::SetInlineObject([None] IDWriteInlineObject* inlineObject,[None] DWRITE_TEXT_RANGE textRange) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the layout maximum width.

+
+

A value that indicates the maximum width of the layout box.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371511 + HRESULT IDWriteTextLayout::SetMaxWidth([In] float maxWidth) + IDWriteTextLayout::SetMaxWidth +
+ + +

Sets the layout maximum height.

+
+

A value that indicates the maximum height of the layout box.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371507 + HRESULT IDWriteTextLayout::SetMaxHeight([In] float maxHeight) + IDWriteTextLayout::SetMaxHeight +
+ + +

Sets the font collection.

+
+

The font collection to set.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371481 + HRESULT IDWriteTextLayout::SetFontCollection([In] IDWriteFontCollection* fontCollection,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetFontCollection +
+ + +

Sets null-terminated font family name for text within a specified text range.

+
+

The font family name that applies to the entire text string within the range specified by textRange.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371487 + HRESULT IDWriteTextLayout::SetFontFamilyName([In, Buffer] const wchar_t* fontFamilyName,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetFontFamilyName +
+ + +

Sets the font weight for text within a text range specified by a structure.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The font weight can be set to one of the predefined font weight values provided in the enumeration or an integer from 1 to 999. Values outside this range will cause the method to fail with an E_INVALIDARG return value.

The following illustration shows an example of Normal and UltraBold weights for the Palatino Linotype typeface.

+
+ + dd371498 + HRESULT IDWriteTextLayout::SetFontWeight([In] DWRITE_FONT_WEIGHT fontWeight,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetFontWeight +
+ + +

Sets the font style for text within a text range specified by a structure.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The font style can be set to Normal, Italic or Oblique. The following illustration shows three styles for the Palatino font. For more information, see .

+
+ + dd371495 + HRESULT IDWriteTextLayout::SetFontStyle([In] DWRITE_FONT_STYLE fontStyle,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetFontStyle +
+ + +

Sets the font stretch for text within a specified text range.

+
+

A value which indicates the type of font stretch for text within the range specified by textRange.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371493 + HRESULT IDWriteTextLayout::SetFontStretch([In] DWRITE_FONT_STRETCH fontStretch,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetFontStretch +
+ + +

Sets the font size in DIP units for text within a specified text range.

+
+

The font size in DIP units to be set for text in the range specified by textRange.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371490 + HRESULT IDWriteTextLayout::SetFontSize([In] float fontSize,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetFontSize +
+ + +

Sets underlining for text within a specified text range.

+
+

A Boolean flag that indicates whether underline takes place within a specified text range.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371518 + HRESULT IDWriteTextLayout::SetUnderline([In] BOOL hasUnderline,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetUnderline +
+ + +

Sets strikethrough for text within a specified text range.

+
+

A Boolean flag that indicates whether strikethrough takes place in the range specified by textRange.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371514 + HRESULT IDWriteTextLayout::SetStrikethrough([In] BOOL hasStrikethrough,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetStrikethrough +
+ + +

Sets the application-defined drawing effect.

+
+

Application-defined drawing effects that apply to the range. This data object will be passed back to the application's drawing callbacks for final rendering.

+

The text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

An , such as a color or gradient brush, can be set as a drawing effect if you are using the to draw text and that brush will be used to draw the specified range of text.

This drawing effect is associated with the specified range and will be passed back to the application by way of the callback when the range is drawn at drawing time.

+
+ + dd371477 + HRESULT IDWriteTextLayout::SetDrawingEffect([In] void* drawingEffect,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetDrawingEffect +
+ + +

Sets the inline object.

+
+

An application-defined inline object.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The application may call this function to specify the set of properties describing an application-defined inline object for specific range.

This inline object applies to the specified range and will be passed back to the application by way of the DrawInlineObject callback when the range is drawn. Any text in that range will be suppressed.

+
+ + dd371500 + HRESULT IDWriteTextLayout::SetInlineObject([In] IDWriteInlineObject* inlineObject,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetInlineObject +
+ + +

Sets font typography features for text within a specified text range.

+
+

Pointer to font typography settings.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371517 + HRESULT IDWriteTextLayout::SetTypography([In] IDWriteTypography* typography,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetTypography +
+ + +

Sets the locale name for text within a specified text range.

+
+

A null-terminated locale name string.

+

Text range to which this change applies.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371503 + HRESULT IDWriteTextLayout::SetLocaleName([In, Buffer] const wchar_t* localeName,[In] DWRITE_TEXT_RANGE textRange) + IDWriteTextLayout::SetLocaleName +
+ + +

Gets the layout maximum width.

+
+

Returns the layout maximum width.

+ + dd316781 + float IDWriteTextLayout::GetMaxWidth() + IDWriteTextLayout::GetMaxWidth +
+ + +

Gets the layout maximum height.

+
+

The layout maximum height.

+ + dd316776 + float IDWriteTextLayout::GetMaxHeight() + IDWriteTextLayout::GetMaxHeight +
+ + +

Gets the font collection associated with the text at the specified position.

+
+

The position of the text to inspect.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the underline.

+

Contains an address of a reference to the current font collection.

+ + dd316735 + HRESULT IDWriteTextLayout::GetFontCollection([In] unsigned int currentPosition,[Out] IDWriteFontCollection** fontCollection,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontCollection +
+ + +

Get the length of the font family name at the current position.

+
+

The current text position.

+

When this method returns, contains the size of the character array containing the font family name, in character count, not including the terminated null character.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font family.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316741 + HRESULT IDWriteTextLayout::GetFontFamilyNameLength([In] unsigned int currentPosition,[Out] unsigned int* nameLength,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontFamilyNameLength +
+ + +

Copies the font family name of the text at the specified position.

+
+

The position of the text to examine.

+

When this method returns, contains an array of characters that receives the current font family name. You must allocate storage for this parameter.

+

The size of the character array in character count including the terminated null character.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font family name.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316738 + HRESULT IDWriteTextLayout::GetFontFamilyName([In] unsigned int currentPosition,[Out, Buffer] wchar_t* fontFamilyName,[In] unsigned int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontFamilyName +
+ + +

Gets the font weight of the text at the specified position.

+
+

The position of the text to inspect.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font weight.

+

When this method returns, contains a value which indicates the type of font weight being applied at the specified position.

+ + dd316753 + HRESULT IDWriteTextLayout::GetFontWeight([In] unsigned int currentPosition,[Out] DWRITE_FONT_WEIGHT* fontWeight,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontWeight +
+ + +

Gets the font style (also known as slope) of the text at the specified position.

+
+

The position of the text to inspect.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font style.

+

When this method returns, contains a value which indicates the type of font style (also known as slope or incline) being applied at the specified position.

+ + dd316750 + HRESULT IDWriteTextLayout::GetFontStyle([In] unsigned int currentPosition,[Out] DWRITE_FONT_STYLE* fontStyle,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontStyle +
+ + +

Gets the font stretch of the text at the specified position.

+
+

The position of the text to inspect.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font stretch.

+

When this method returns, contains a value which indicates the type of font stretch (also known as width) being applied at the specified position.

+ + dd316747 + HRESULT IDWriteTextLayout::GetFontStretch([In] unsigned int currentPosition,[Out] DWRITE_FONT_STRETCH* fontStretch,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontStretch +
+ + +

Gets the font em height of the text at the specified position.

+
+

The position of the text to inspect.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the font size.

+

When this method returns, contains the size of the font in ems of the text at the specified position.

+ + dd316745 + HRESULT IDWriteTextLayout::GetFontSize([In] unsigned int currentPosition,[Out] float* fontSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetFontSize +
+ + +

Gets the underline presence of the text at the specified position.

+
+

The current text position.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the underline.

+

A Boolean flag that indicates whether underline is present at the position indicated by currentPosition.

+ + dd371463 + HRESULT IDWriteTextLayout::GetUnderline([In] unsigned int currentPosition,[Out] BOOL* hasUnderline,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetUnderline +
+ + +

Get the strikethrough presence of the text at the specified position.

+
+

The position of the text to inspect.

+

Contains the range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to strikethrough.

+

A Boolean flag that indicates whether strikethrough is present at the position indicated by currentPosition.

+ + dd316793 + HRESULT IDWriteTextLayout::GetStrikethrough([In] unsigned int currentPosition,[Out] BOOL* hasStrikethrough,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetStrikethrough +
+ + +

Gets the application-defined drawing effect at the specified text position.

+
+

The position of the text whose drawing effect is to be retrieved.

+

Contains the range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the drawing effect.

+

When this method returns, contains an address of a reference to the current application-defined drawing effect. Usually this effect is a foreground brush that is used in glyph drawing.

+ + dd316732 + HRESULT IDWriteTextLayout::GetDrawingEffect([In] unsigned int currentPosition,[Out] void** drawingEffect,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetDrawingEffect +
+ + +

Gets the inline object at the specified position.

+
+

The specified text position.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the inline object.

+

Contains the application-defined inline object.

+ + dd316758 + HRESULT IDWriteTextLayout::GetInlineObject([In] unsigned int currentPosition,[Out] IDWriteInlineObject** inlineObject,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetInlineObject +
+ + +

Gets the typography setting of the text at the specified position.

+
+

The position of the text to inspect.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the typography.

+

When this method returns, contains an address of a reference to the current typography setting.

+ + dd371459 + HRESULT IDWriteTextLayout::GetTypography([In] unsigned int currentPosition,[Out] IDWriteTypography** typography,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetTypography +
+ + +

Gets the length of the locale name of the text at the specified position.

+
+

The position of the text to inspect.

+

Size of the character array, in character count, not including the terminated null character.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the locale name.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316771 + HRESULT IDWriteTextLayout::GetLocaleNameLength([In] unsigned int currentPosition,[Out] unsigned int* nameLength,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetLocaleNameLength +
+ + +

Gets the locale name of the text at the specified position.

+
+

The position of the text to inspect.

+

When this method returns, contains the character array receiving the current locale name.

+

Size of the character array, in character count, including the terminated null character.

+

The range of text that has the same formatting as the text at the position specified by currentPosition. This means the run has the exact formatting as the position specified, including but not limited to the locale name.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316767 + HRESULT IDWriteTextLayout::GetLocaleName([In] unsigned int currentPosition,[Out, Buffer] wchar_t* localeName,[In] unsigned int nameSize,[Out, Optional] DWRITE_TEXT_RANGE* textRange) + IDWriteTextLayout::GetLocaleName +
+ + +

Draws text using the specified client drawing context.

+
+

An application-defined drawing context.

+

Pointer to the set of callback functions used to draw parts of a text string.

+

The x-coordinate of the layout's left side.

+

The y-coordinate of the layout's top side.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To draw text with this method, a textLayout object needs to be created by the application using .

After the textLayout object is obtained, the application calls the method to draw the text, decorations, and inline objects. The actual drawing is done through the callback interface passed in as the textRenderer argument; there, the corresponding DrawGlyphRun API is called.

+
+ + dd316726 + HRESULT IDWriteTextLayout::Draw([In, Optional] void* clientDrawingContext,[In] IDWriteTextRenderer* renderer,[In] float originX,[In] float originY) + IDWriteTextLayout::Draw +
+ + +

Retrieves the information about each individual text line of the text string.

+
+

When this method returns, contains a reference to an array of structures containing various calculated length values of individual text lines.

+

The maximum size of the lineMetrics array.

+

When this method returns, contains the actual size of the lineMetrics array that is needed.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(), is returned and *actualLineCount is set to the number of lines needed.

+
+ + dd316763 + HRESULT IDWriteTextLayout::GetLineMetrics([Out, Buffer, Optional] DWRITE_LINE_METRICS* lineMetrics,[In] unsigned int maxLineCount,[Out] unsigned int* actualLineCount) + IDWriteTextLayout::GetLineMetrics +
+ + +

Retrieves overall metrics for the formatted string.

+
+

When this method returns, contains the measured distances of text and associated content after being formatted.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316785 + HRESULT IDWriteTextLayout::GetMetrics([Out] DWRITE_TEXT_METRICS* textMetrics) + IDWriteTextLayout::GetMetrics +
+ + +

Returns the overhangs (in DIPs) of the layout and all objects contained in it, including text glyphs and inline objects.

+
+

Overshoots of visible extents (in DIPs) outside the layout.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Underlines and strikethroughs do not contribute to the black box determination, since these are actually drawn by the renderer, which is allowed to draw them in any variety of styles.

+
+ + dd316790 + HRESULT IDWriteTextLayout::GetOverhangMetrics([Out] DWRITE_OVERHANG_METRICS* overhangs) + IDWriteTextLayout::GetOverhangMetrics +
+ + +

Retrieves logical properties and measurements of each glyph cluster.

+
+

When this method returns, contains metrics, such as line-break or total advance width, for a glyph cluster.

+

The maximum size of the clusterMetrics array.

+

When this method returns, contains the actual size of the clusterMetrics array that is needed.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If maxClusterCount is not large enough, then E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(), is returned and actualClusterCount is set to the number of clusters needed.

+
+ + dd316729 + HRESULT IDWriteTextLayout::GetClusterMetrics([Out, Buffer, Optional] DWRITE_CLUSTER_METRICS* clusterMetrics,[In] unsigned int maxClusterCount,[Out] unsigned int* actualClusterCount) + IDWriteTextLayout::GetClusterMetrics +
+ + +

Determines the minimum possible width the layout can be set to without emergency breaking between the characters of whole words occurring.

+
+

Minimum width.

+ + dd316723 + HRESULT IDWriteTextLayout::DetermineMinWidth([Out] float* minWidth) + IDWriteTextLayout::DetermineMinWidth +
+ + +

The application calls this function passing in a specific pixel location relative to the top-left location of the layout box and obtains the information about the correspondent hit-test metrics of the text string where the hit-test has occurred. When the specified pixel location is outside the text string, the function sets the output value *isInside to .

+
+

The pixel location X to hit-test, relative to the top-left location of the layout box.

+

The pixel location Y to hit-test, relative to the top-left location of the layout box.

+

An output flag that indicates whether the hit-test location is at the leading or the trailing side of the character. When the output *isInside value is set to , this value is set according to the output hitTestMetrics->textPosition value to represent the edge closest to the hit-test location.

+

An output flag that indicates whether the hit-test location is inside the text string. When , the position nearest the text's edge is returned.

+

The output geometry fully enclosing the hit-test location. When the output *isInside value is set to , this structure represents the geometry enclosing the edge closest to the hit-test location.

+ + dd371464 + HRESULT IDWriteTextLayout::HitTestPoint([In] float pointX,[In] float pointY,[Out] BOOL* isTrailingHit,[Out] BOOL* isInside,[Out] DWRITE_HIT_TEST_METRICS* hitTestMetrics) + IDWriteTextLayout::HitTestPoint +
+ + +

The application calls this function to get the pixel location relative to the top-left of the layout box given the text position and the logical side of the position. This function is normally used as part of caret positioning of text where the caret is drawn at the location corresponding to the current text editing position. It may also be used as a way to programmatically obtain the geometry of a particular text position in UI automation.

+
+

The text position used to get the pixel location.

+

A Boolean flag that indicates whether the pixel location is of the leading or the trailing side of the specified text position.

+

When this method returns, contains the output pixel location X, relative to the top-left location of the layout box.

+

When this method returns, contains the output pixel location Y, relative to the top-left location of the layout box.

+

When this method returns, contains the output geometry fully enclosing the specified text position.

+ + dd371469 + HRESULT IDWriteTextLayout::HitTestTextPosition([In] unsigned int textPosition,[In] BOOL isTrailingHit,[Out] float* pointX,[Out] float* pointY,[Out] DWRITE_HIT_TEST_METRICS* hitTestMetrics) + IDWriteTextLayout::HitTestTextPosition +
+ + +

The application calls this function to get a set of hit-test metrics corresponding to a range of text positions. One of the main usages is to implement highlight selection of the text string. The function returns E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(), when the buffer size of hitTestMetrics is too small to hold all the regions calculated by the function. In this situation, the function sets the output value *actualHitTestMetricsCount to the number of geometries calculated. The application is responsible for allocating a new buffer of greater size and calling the function again. A good value to use as an initial value for maxHitTestMetricsCount may be calculated from the following equation: maxHitTestMetricsCount = lineCount * maxBidiReorderingDepth where lineCount is obtained from the value of the output argument *actualLineCount (from the function ::GetLineLengths), and the maxBidiReorderingDepth value from the structure of the output argument *textMetrics (from the function ::CreateTextLayout).

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371473 + HRESULT IDWriteTextLayout::HitTestTextRange([In] unsigned int textPosition,[In] unsigned int textLength,[In] float originX,[In] float originY,[Out, Buffer, Optional] DWRITE_HIT_TEST_METRICS* hitTestMetrics,[In] unsigned int maxHitTestMetricsCount,[Out] unsigned int* actualHitTestMetricsCount) + IDWriteTextLayout::HitTestTextRange +
+ + +

Gets or sets the layout maximum width.

+
+ + dd316781 + GetMaxWidth / SetMaxWidth + GetMaxWidth + float IDWriteTextLayout::GetMaxWidth() +
+ + +

Gets or sets the layout maximum height.

+
+ + dd316776 + GetMaxHeight / SetMaxHeight + GetMaxHeight + float IDWriteTextLayout::GetMaxHeight() +
+ + +

Retrieves overall metrics for the formatted string.

+
+ + dd316785 + GetMetrics + GetMetrics + HRESULT IDWriteTextLayout::GetMetrics([Out] DWRITE_TEXT_METRICS* textMetrics) +
+ + +

Returns the overhangs (in DIPs) of the layout and all objects contained in it, including text glyphs and inline objects.

+
+ +

Underlines and strikethroughs do not contribute to the black box determination, since these are actually drawn by the renderer, which is allowed to draw them in any variety of styles.

+
+ + dd316790 + GetOverhangMetrics + GetOverhangMetrics + HRESULT IDWriteTextLayout::GetOverhangMetrics([Out] DWRITE_OVERHANG_METRICS* overhangs) +
+ + +

Specifies a range of text positions where format is applied in the text represented by an object.

+
+ + dd368137 + DWRITE_TEXT_RANGE + DWRITE_TEXT_RANGE +
+ + + Initializes a new instance of the struct. + + The start position. + The length. + + + + No documentation. + + + dd368137 + unsigned int startPosition + unsigned int startPosition + + + + No documentation. + + + dd368137 + unsigned int length + unsigned int length + + + +

Represents a set of application-defined callbacks that perform rendering of text, inline objects, and decorations such as underlines.

+
+ + dd371523 + IDWriteTextRenderer + IDWriteTextRenderer +
+ + + IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs. + + + The function calls this callback function with all the information about glyphs to render. The application implements this callback by mostly delegating the call to the underlying platform's graphics API such as {{Direct2D}} to draw glyphs on the drawing context. An application that uses GDI can implement this callback in terms of the method. + + The application-defined drawing context passed to . + The pixel location (X-coordinate) at the baseline origin of the glyph run. + The pixel location (Y-coordinate) at the baseline origin of the glyph run. + The measuring method for glyphs in the run, used with the other properties to determine the rendering mode. + Pointer to the glyph run instance to render. + A pointer to the optional glyph run description instance which contains properties of the characters associated with this run. + Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of text. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawGlyphRun([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[None] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] const DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription,[None] IUnknown* clientDrawingEffect) + + + + IDWriteTextLayout::Draw calls this function to instruct the client to draw an underline. + + + A single underline can be broken into multiple calls, depending on how the formatting changes attributes. If font sizes/styles change within an underline, the thickness and offset will be averaged weighted according to characters. To get an appropriate starting pixel position, add underline::offset to the baseline. Otherwise there will be no spacing between the text. The x coordinate will always be passed as the left side, regardless of text directionality. This simplifies drawing and reduces the problem of round-off that could potentially cause gaps or a double stamped alpha blend. To avoid alpha overlap, round the end points to the nearest device pixel. + + The application-defined drawing context passed to IDWriteTextLayout::Draw. + The pixel location (X-coordinate) at the baseline origin of the run where underline applies. + The pixel location (Y-coordinate) at the baseline origin of the run where underline applies. + Pointer to a structure containing underline logical information. + Application-defined effect to apply to the underline. Usually this argument represents effects such as the foreground brush filling the interior of a line. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawUnderline([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[In] const DWRITE_UNDERLINE* underline,[None] IUnknown* clientDrawingEffect) + + + + IDWriteTextLayout::Draw calls this function to instruct the client to draw a strikethrough. + + + A single strikethrough can be broken into multiple calls, depending on how the formatting changes attributes. Strikethrough is not averaged across font sizes/styles changes. To get an appropriate starting pixel position, add strikethrough::offset to the baseline. Like underlines, the x coordinate will always be passed as the left side, regardless of text directionality. + + The application-defined drawing context passed to IDWriteTextLayout::Draw. + The pixel location (X-coordinate) at the baseline origin of the run where strikethrough applies. + The pixel location (Y-coordinate) at the baseline origin of the run where strikethrough applies. + Pointer to a structure containing strikethrough logical information. + Application-defined effect to apply to the strikethrough. Usually this argument represents effects such as the foreground brush filling the interior of a line. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawStrikethrough([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[In] const DWRITE_STRIKETHROUGH* strikethrough,[None] IUnknown* clientDrawingEffect) + + + + IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object. + + The application-defined drawing context passed to IDWriteTextLayout::Draw. + X-coordinate at the top-left corner of the inline object. + Y-coordinate at the top-left corner of the inline object. + The application-defined inline object set using IDWriteTextFormat::SetInlineObject. + A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line. + A Boolean flag that indicates whether the object is in a right-to-left context, hinting that the drawing may want to mirror the normal image. + Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of a line. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawInlineObject([None] void* clientDrawingContext,[None] FLOAT originX,[None] FLOAT originY,[None] IDWriteInlineObject* inlineObject,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IUnknown* clientDrawingEffect) + + + +

Represents a bitmap that has been bound to an .

+
+ + dd371109 + ID2D1Bitmap + ID2D1Bitmap +
+ + + Creates a Direct2D bitmap from a pointer to in-memory source data. + + an instance of + The dimension of the bitmap to create in pixels. + dd371800 + HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmap + + + + Creates a Direct2D bitmap from a pointer to in-memory source data. + + an instance of + The dimension of the bitmap to create in pixels. + The pixel format and dots per inch (DPI) of the bitmap to create. + dd371800 + HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmap + + + + Creates a Direct2D bitmap from a pointer to in-memory source data. + + an instance of + The dimension of the bitmap to create in pixels. + A pointer to the memory location of the image data, or NULL to create an uninitialized bitmap. + The byte count of each scanline, which is equal to (the image width in pixels * the number of bytes per pixel) + memory padding. If srcData is NULL, this value is ignored. (Note that pitch is also sometimes called stride.) + dd371800 + HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmap + + + + Creates a Direct2D bitmap from a pointer to in-memory source data. + + an instance of + The dimension of the bitmap to create in pixels. + A pointer to the memory location of the image data, or NULL to create an uninitialized bitmap. + The byte count of each scanline, which is equal to (the image width in pixels * the number of bytes per pixel) + memory padding. If srcData is NULL, this value is ignored. (Note that pitch is also sometimes called stride.) + The pixel format and dots per inch (DPI) of the bitmap to create. + dd371800 + HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmap + + + + Creates an whose data is shared with another resource. + + an instance of + An that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section. + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap + + + + Creates an whose data is shared with another resource. + + an instance of + An that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section. + The pixel format and DPI of the bitmap to create . The portion of the pixel format must match the of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used. + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap + + + + Creates an whose data is shared with another resource. + + an instance of + An that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section. + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap + + + + Creates an whose data is shared with another resource. + + an instance of + An that contains the data to share with the new ID2D1Bitmap. For more information, see the Remarks section. + The pixel format and DPI of the bitmap to create . The portion of the pixel format must match the of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used. + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap + + + + Creates an that points to the bitmap data already stored in the . + + An instance of . + An that contains the data to share with the new . + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap + + + + Creates an that points to the bitmap data already stored in the . + + An instance of . + An that contains the data to share with the new . + The pixel format and DPI of the bitmap to create . The portion of the pixel format must match the of data or the method will fail, but the alpha modes don't have to match. To prevent a mismatch, you can pass NULL or the value obtained from the {{D2D1::PixelFormat}} helper function. The DPI settings do not have to match those of data. If both dpiX and dpiY are 0.0f, the default DPI, 96, is used. + dd371865 + HRESULT ID2D1RenderTarget::CreateSharedBitmap([In] const GUID& riid,[In] void* data,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateSharedBitmap + + + + Creates a Direct2D bitmap from a pointer to in-memory source data. + + an instance of + The dimension of the bitmap to create in pixels. + A pointer to an array of pixel data. The size of the array must be equal to sizeof(pixel) * Size.Width * Height. + The pixel format and dots per inch (DPI) of the bitmap to create. + dd371800 + HRESULT ID2D1RenderTarget::CreateBitmap([In] D2D_SIZE_U size,[In, Optional] const void* srcData,[In] unsigned int pitch,[In] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out, Fast] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmap + + + + Creates a Bitmap from a WIC bitmap. + + The render target. + A reference to a WIC bitmap. + + dd371797 + HRESULT ID2D1RenderTarget::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmapFromWicBitmap + + + + Creates a Bitmap from a WIC bitmap. + + The render target. + The WIC bitmap. + The bitmap properties. + + dd371797 + HRESULT ID2D1RenderTarget::CreateBitmapFromWicBitmap([In] IWICBitmapSource* wicBitmapSource,[In, Optional] const D2D1_BITMAP_PROPERTIES* bitmapProperties,[Out] ID2D1Bitmap** bitmap) + ID2D1RenderTarget::CreateBitmapFromWicBitmap + + + + Copies the specified region from the specified bitmap into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The bitmap to copy from. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371152 + HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromBitmap + + + + Copies the specified region from the specified bitmap into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The bitmap to copy from. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371152 + HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromBitmap + + + + Copies the specified region from the specified bitmap into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The bitmap to copy from. + The area of bitmap to copy. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371152 + HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromBitmap + + + + Copies the specified region from memory into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The data to copy. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from memory into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The data to copy. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from memory into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The data to copy. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from memory into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The data to copy. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from memory into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The data to copy. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from memory into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The data to copy. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from the specified render target into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. All clips and layers must be popped off of the render target before calling this method. The method returns {{D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT}} if any clips or layers are currently applied to the render target. + + The render target that contains the region to copy. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371158 + HRESULT ID2D1Bitmap::CopyFromRenderTarget([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1RenderTarget* renderTarget,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromRenderTarget + + + + Copies the specified region from the specified render target into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. All clips and layers must be popped off of the render target before calling this method. The method returns {{D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT}} if any clips or layers are currently applied to the render target. + + The render target that contains the region to copy. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371158 + HRESULT ID2D1Bitmap::CopyFromRenderTarget([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1RenderTarget* renderTarget,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromRenderTarget + + + + Copies the specified region from the specified render target into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. All clips and layers must be popped off of the render target before calling this method. The method returns {{D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT}} if any clips or layers are currently applied to the render target. + + The render target that contains the region to copy. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + The area of renderTarget to copy. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371158 + HRESULT ID2D1Bitmap::CopyFromRenderTarget([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1RenderTarget* renderTarget,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromRenderTarget + + + + Copies the specified region from a stream into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The stream to copy the data from. + Length in bytes of the data to copy from the stream. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Copies the specified region from a stream into the current bitmap. + + + This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match. Passing this method invalid input, such as an invalid destination rectangle, can produce unpredictable results, such as a distorted image or device failure. Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to {{EndDraw}} or {{Flush}}. + + The stream to copy the data from. + Length in bytes of the data to copy from the stream. + The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding. + In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the size, in device-independent pixels (DIPs), of the bitmap.

+
+

The size, in DIPs, of the bitmap.

+ +

A DIP is 1/96?of an inch. To retrieve the size in device pixels, use the method.

+
+ + dd371170 + D2D_SIZE_F ID2D1Bitmap::GetSize() + ID2D1Bitmap::GetSize +
+ + +

Returns the size, in device-dependent units (pixels), of the bitmap.

+
+

The size, in pixels, of the bitmap.

+ + dd371167 + D2D_SIZE_U ID2D1Bitmap::GetPixelSize() + ID2D1Bitmap::GetPixelSize +
+ + +

Retrieves the pixel format and alpha mode of the bitmap.

+
+

The pixel format and alpha mode of the bitmap.

+ + dd371164 + D2D1_PIXEL_FORMAT ID2D1Bitmap::GetPixelFormat() + ID2D1Bitmap::GetPixelFormat +
+ + +

Return the dots per inch (DPI) of the bitmap.

+
+

The horizontal DPI of the image. You must allocate storage for this parameter.

+

The vertical DPI of the image. You must allocate storage for this parameter.

+ + dd371161 + void ID2D1Bitmap::GetDpi([Out] float* dpiX,[Out] float* dpiY) + ID2D1Bitmap::GetDpi +
+ + +

Copies the specified region from the specified bitmap into the current bitmap.

+
+

In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied.

+

The bitmap to copy from.

+

The area of bitmap to copy.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match.

Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to EndDraw or Flush.

Starting with Windows?8.1, this method supports block compressed bitmaps. If you are using a block compressed format, the end coordinates of the srcRect parameter must be multiples of 4 or the method returns E_INVALIDARG.

+
+ + dd371152 + HRESULT ID2D1Bitmap::CopyFromBitmap([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1Bitmap* bitmap,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromBitmap +
+ + +

Copies the specified region from the specified render target into the current bitmap.

+
+

In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied.

+

The render target that contains the region to copy.

+

The area of renderTarget to copy.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion, and will fail if the bitmap formats do not match.

Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to EndDraw or Flush.

All clips and layers must be popped off of the render target before calling this method. The method returns if any clips or layers are currently applied to the render target.

+
+ + dd371158 + HRESULT ID2D1Bitmap::CopyFromRenderTarget([In, Optional] const D2D_POINT_2U* destPoint,[In] ID2D1RenderTarget* renderTarget,[In, Optional] const D2D_RECT_U* srcRect) + ID2D1Bitmap::CopyFromRenderTarget +
+ + +

Copies the specified region from memory into the current bitmap.

+
+

In the current bitmap, the upper-left corner of the area to which the region specified by srcRect is copied.

+

The data to copy.

+

The stride, or pitch, of the source bitmap stored in srcData. The stride is the byte count of a scanline (one row of pixels in memory). The stride can be computed from the following formula: pixel width * bytes per pixel + memory padding.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method does not update the size of the current bitmap. If the contents of the source bitmap do not fit in the current bitmap, this method fails. Also, note that this method does not perform format conversion; the two bitmap formats should match.

If this method is passed invalid input (such as an invalid destination rectangle), can produce unpredictable results, such as a distorted image or device failure.

Calling this method may cause the current batch to flush if the bitmap is active in the batch. If the batch that was flushed does not complete successfully, this method fails. However, this method does not clear the error state of the render target on which the batch was flushed. The failing and tag state will be returned at the next call to EndDraw or Flush.

Starting with Windows?8.1, this method supports block compressed bitmaps. If you are using a block compressed format, the end coordinates of the srcRect parameter must be multiples of 4 or the method returns E_INVALIDARG.

+
+ + dd371155 + HRESULT ID2D1Bitmap::CopyFromMemory([In, Optional] const D2D_RECT_U* dstRect,[In] const void* srcData,[In] unsigned int pitch) + ID2D1Bitmap::CopyFromMemory +
+ + + Return the dots per inch (DPI) of the bitmap. + + The dots per inch (DPI) of the bitmap. + + + +

Returns the size, in device-independent pixels (DIPs), of the bitmap.

+
+ +

A DIP is 1/96?of an inch. To retrieve the size in device pixels, use the method.

+
+ + dd371170 + GetSize + GetSize + D2D_SIZE_F ID2D1Bitmap::GetSize() +
+ + +

Returns the size, in device-dependent units (pixels), of the bitmap.

+
+ + dd371167 + GetPixelSize + GetPixelSize + D2D_SIZE_U ID2D1Bitmap::GetPixelSize() +
+ + +

Retrieves the pixel format and alpha mode of the bitmap.

+
+ + dd371164 + GetPixelFormat + GetPixelFormat + D2D1_PIXEL_FORMAT ID2D1Bitmap::GetPixelFormat() +
+ + +

Paints an area with a bitmap.

+
+ +

A bitmap brush is used to fill a geometry with a bitmap. Like all brushes, it defines an infinite plane of content. Because bitmaps are finite, the brush relies on an "extend mode" to determine how the plane is filled horizontally and vertically.

+
+ + dd371122 + ID2D1BitmapBrush + ID2D1BitmapBrush +
+ + +

Defines an object that paints an area. Interfaces that derive from describe how the area is painted.

+
+ +

An is a device-dependent resource: your application should create bitmap brushes after it initializes the render target with which the bitmap brush will be used, and recreate the bitmap brush whenever the render target needs recreated. (For more information about resources, see Resources Overview.)

Brush space in Direct2D is specified differently than in XPS and Windows Presentation Foundation (WPF). In Direct2D, brush space is not relative to the object being drawn, but rather is the current coordinate system of the render target, transformed by the brush transform, if present. To paint an object as it would be painted by a WPF brush, you must translate the brush space origin to the upper-left corner of the object's bounding box, and then scale the brush space so that the base tile fills the bounding box of the object.

For more information about brushes, see the Brushes Overview.

+
+ + dd371173 + ID2D1Brush + ID2D1Brush +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the degree of opacity of this brush.

+
+

A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0?1 before they are multipled together.

+ + dd371181 + void ID2D1Brush::SetOpacity([In] float opacity) + ID2D1Brush::SetOpacity +
+ + + Sets the transformation applied to the brush. + + No documentation. + +

When you paint with a brush, it paints in the coordinate space of the render target. Brushes do not automatically position themselves to align with the object being painted; by default, they begin painting at the origin (0, 0) of the render target.

You can "move" the gradient defined by an to a target area by setting its start point and end point. Likewise, you can move the gradient defined by an by changing its center and radii.

To align the content of an to the area being painted, you can use the SetTransform method to translate the bitmap to the desired location. This transform only affects the brush; it does not affect any other content drawn by the render target.

The following illustrations show the effect of using an to fill a rectangle located at (100, 100). The illustration on the left illustration shows the result of filling the rectangle without transforming the brush: the bitmap is drawn at the render target's origin. As a result, only a portion of the bitmap appears in the rectangle.

The illustration on the right shows the result of transforming the so that its content is shifted 50 pixels to the right and 50 pixels down. The bitmap now fills the rectangle.

+
+ + dd742690 + void ID2D1Brush::SetTransform([In] const D2D_MATRIX_3X2_F* transform) + ID2D1Brush::SetTransform +
+ + +

Gets the degree of opacity of this brush.

+
+

A value between zero and 1 that indicates the opacity of the brush. This value is a constant multiplier that linearly scales the alpha value of all pixels filled by the brush. The opacity values are clamped in the range 0?1 before they are multipled together.

+ + dd371176 + float ID2D1Brush::GetOpacity() + ID2D1Brush::GetOpacity +
+ + +

Gets the transform applied to this brush.

+
+

The transform applied to this brush.

+ +

When the brush transform is the identity matrix, the brush appears in the same coordinate space as the render target in which it is drawn.

+
+ + dd371179 + void ID2D1Brush::GetTransform([Out] D2D_MATRIX_3X2_F* transform) + ID2D1Brush::GetTransform +
+ + +

Gets or sets the degree of opacity of this brush.

+
+ + dd371176 + GetOpacity / SetOpacity + GetOpacity + float ID2D1Brush::GetOpacity() +
+ + +

Gets or sets the transform applied to this brush.

+
+ +

When the brush transform is the identity matrix, the brush appears in the same coordinate space as the render target in which it is drawn.

+
+ + dd371179 + GetTransform / SetTransform + GetTransform + void ID2D1Brush::GetTransform([Out] D2D_MATRIX_3X2_F* transform) +
+ + + Creates an from the specified bitmap. + + an instance of + The bitmap contents of the new brush. + HRESULT ID2D1RenderTarget::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush** bitmapBrush) + + + + Creates an from the specified bitmap. + + an instance of + The bitmap contents of the new brush. + The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the horizontal and vertical extend modes and the interpolation mode. + HRESULT ID2D1RenderTarget::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush** bitmapBrush) + + + + Creates an from the specified bitmap. + + an instance of + The bitmap contents of the new brush. + The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix. + HRESULT ID2D1RenderTarget::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush** bitmapBrush) + + + + Creates an from the specified bitmap. + + an instance of + The bitmap contents of the new brush. + The extend modes and interpolation mode of the new brush, or NULL. If this parameter is NULL, the brush defaults to the horizontal and vertical extend modes and the interpolation mode. + The opacity and transform of the new brush, or NULL. If this parameter is NULL, the brush defaults to an opacity of 1.0f and its transform is the identity matrix. + HRESULT ID2D1RenderTarget::CreateBitmapBrush([In] ID2D1Bitmap* bitmap,[In, Optional] const D2D1_BITMAP_BRUSH_PROPERTIES* bitmapBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[Out, Fast] ID2D1BitmapBrush** bitmapBrush) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies how the brush horizontally tiles those areas that extend past its bitmap.

+
+

A value that specifies how the brush horizontally tiles those areas that extend past its bitmap.

+ +

Sometimes, the bitmap for a bitmap brush doesn't completely fill the area being painted. When this happens, Direct2D uses the brush's horizontal (SetExtendModeX) and vertical (SetExtendModeY) extend mode settings to determine how to fill the remaining area.

The following illustration shows the results from every possible combination of the extend modes for an : (CLAMP), (WRAP), and D2D1_EXTEND_MIRROR (MIRROR).

+
+ + dd371139 + void ID2D1BitmapBrush::SetExtendModeX([In] D2D1_EXTEND_MODE extendModeX) + ID2D1BitmapBrush::SetExtendModeX +
+ + +

Specifies how the brush vertically tiles those areas that extend past its bitmap.

+
+

A value that specifies how the brush vertically tiles those areas that extend past its bitmap.

+ +

Sometimes, the bitmap for a bitmap brush doesn't completely fill the area being painted. When this happens, Direct2D uses the brush's horizontal (SetExtendModeX) and vertical (SetExtendModeY) extend mode settings to determine how to fill the remaining area.

The following illustration shows the results from every possible combination of the extend modes for an : (CLAMP), (WRAP), and D2D1_EXTEND_MIRROR (MIRROR).

+
+ + dd371142 + void ID2D1BitmapBrush::SetExtendModeY([In] D2D1_EXTEND_MODE extendModeY) + ID2D1BitmapBrush::SetExtendModeY +
+ + +

Specifies the interpolation mode used when the brush bitmap is scaled or rotated.

+
+

The interpolation mode used when the brush bitmap is scaled or rotated.

+ +

This method sets the interpolation mode for a bitmap, which is an enum value that is specified in the enumeration type. represents nearest neighbor filtering. It looks up the nearest bitmap pixel to the current rendering pixel and chooses its exact color. represents linear filtering, and interpolates a color from the four nearest bitmap pixels.

The interpolation mode of a bitmap also affects subpixel translations. In a subpixel translation, bilinear interpolation positions the bitmap more precisely to the application requests, but blurs the bitmap in the process.

+
+ + dd371145 + void ID2D1BitmapBrush::SetInterpolationMode([In] D2D1_BITMAP_INTERPOLATION_MODE interpolationMode) + ID2D1BitmapBrush::SetInterpolationMode +
+ + +

Specifies the bitmap source that this brush uses to paint.

+
+

The bitmap source used by the brush.

+ +

This method specifies the bitmap source that this brush uses to paint. The bitmap is not resized or rescaled automatically to fit the geometry that it fills. The bitmap stays at its native size. To resize or translate the bitmap, use the SetTransform method to apply a transform to the brush.

The native size of a bitmap is the width and height in bitmap pixels, divided by the bitmap DPI. This native size forms the base tile of the brush. To tile a subregion of the bitmap, you must generate a new bitmap containing this subregion and use SetBitmap to apply it to the brush. +

+
+ + dd371136 + void ID2D1BitmapBrush::SetBitmap([In] ID2D1Bitmap* bitmap) + ID2D1BitmapBrush::SetBitmap +
+ + +

Gets the method by which the brush horizontally tiles those areas that extend past its bitmap.

+
+

A value that specifies how the brush horizontally tiles those areas that extend past its bitmap.

+ +

Like all brushes, defines an infinite plane of content. Because bitmaps are finite, it relies on an extend mode to determine how the plane is filled horizontally and vertically.

+
+ + dd371128 + D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeX() + ID2D1BitmapBrush::GetExtendModeX +
+ + +

Gets the method by which the brush vertically tiles those areas that extend past its bitmap.

+
+

A value that specifies how the brush vertically tiles those areas that extend past its bitmap.

+ +

Like all brushes, defines an infinite plane of content. Because bitmaps are finite, it relies on an extend mode to determine how the plane is filled horizontally and vertically.

+
+ + dd371132 + D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeY() + ID2D1BitmapBrush::GetExtendModeY +
+ + +

Gets the interpolation method used when the brush bitmap is scaled or rotated.

+
+

The interpolation method used when the brush bitmap is scaled or rotated.

+ +

This method gets the interpolation mode of a bitmap, which is specified by the enumeration type. represents nearest neighbor filtering. It looks up the bitmap pixel nearest to the current rendering pixel and chooses its exact color. represents linear filtering, and interpolates a color from the four nearest bitmap pixels.

The interpolation mode of a bitmap also affects subpixel translations. In a subpixel translation, linear interpolation positions the bitmap more precisely to the application request, but blurs the bitmap in the process.

+
+ + dd371134 + D2D1_BITMAP_INTERPOLATION_MODE ID2D1BitmapBrush::GetInterpolationMode() + ID2D1BitmapBrush::GetInterpolationMode +
+ + +

Gets the bitmap source that this brush uses to paint.

+
+

When this method returns, contains the address to a reference to the bitmap with which this brush paints.

+ + dd371124 + void ID2D1BitmapBrush::GetBitmap([Out] ID2D1Bitmap** bitmap) + ID2D1BitmapBrush::GetBitmap +
+ + +

Gets or sets the method by which the brush horizontally tiles those areas that extend past its bitmap.

+
+ +

Like all brushes, defines an infinite plane of content. Because bitmaps are finite, it relies on an extend mode to determine how the plane is filled horizontally and vertically.

+
+ + dd371128 + GetExtendModeX / SetExtendModeX + GetExtendModeX + D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeX() +
+ + +

Gets or sets the method by which the brush vertically tiles those areas that extend past its bitmap.

+
+ +

Like all brushes, defines an infinite plane of content. Because bitmaps are finite, it relies on an extend mode to determine how the plane is filled horizontally and vertically.

+
+ + dd371132 + GetExtendModeY / SetExtendModeY + GetExtendModeY + D2D1_EXTEND_MODE ID2D1BitmapBrush::GetExtendModeY() +
+ + +

Gets or sets the interpolation method used when the brush bitmap is scaled or rotated.

+
+ +

This method gets the interpolation mode of a bitmap, which is specified by the enumeration type. represents nearest neighbor filtering. It looks up the bitmap pixel nearest to the current rendering pixel and chooses its exact color. represents linear filtering, and interpolates a color from the four nearest bitmap pixels.

The interpolation mode of a bitmap also affects subpixel translations. In a subpixel translation, linear interpolation positions the bitmap more precisely to the application request, but blurs the bitmap in the process.

+
+ + dd371134 + GetInterpolationMode / SetInterpolationMode + GetInterpolationMode + D2D1_BITMAP_INTERPOLATION_MODE ID2D1BitmapBrush::GetInterpolationMode() +
+ + +

Gets or sets the bitmap source that this brush uses to paint.

+
+ + dd371124 + GetBitmap / SetBitmap + GetBitmap + void ID2D1BitmapBrush::GetBitmap([Out] ID2D1Bitmap** bitmap) +
+ + +

Describes the pixel format and dpi of a bitmap.

+
+ + dd368075 + D2D1_BITMAP_PROPERTIES + D2D1_BITMAP_PROPERTIES +
+ + + Initializes a new instance of the struct. + + The pixel format. + + + + Initializes a new instance of the struct. + + The pixel format. + The dpi X. + The dpi Y. + + + +

The bitmap's pixel format and alpha mode.

+
+ + dd368075 + D2D1_PIXEL_FORMAT pixelFormat + D2D1_PIXEL_FORMAT pixelFormat +
+ + +

The horizontal dpi of the bitmap.

+
+ + dd368075 + float dpiX + float dpiX +
+ + +

The vertical dpi of the bitmap.

+
+ + dd368075 + float dpiY + float dpiY +
+ + +

Renders to an intermediate texture created by the CreateCompatibleRenderTarget method.

+
+ +

An writes to an intermediate texture. It's useful for creating patterns for use with an or caching drawing data that will be used repeatedly.

To write directly to a WIC bitmap instead, use the method. This method returns an that writes to the specified WIC bitmap. For an example, see the Save as Image File Sample.

+
+ + dd371146 + ID2D1BitmapRenderTarget + ID2D1BitmapRenderTarget +
+ + + Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target with same size, pixel size and pixel format. + + an instance of + A value that specifies whether the new render target must be compatible with GDI. + HRESULT CreateCompatibleRenderTarget([In, Optional] const D2D1_SIZE_F* desiredSize,[In, Optional] const D2D1_SIZE_U* desiredPixelSize,[In, Optional] const D2D1_PIXEL_FORMAT* desiredFormat,[None] D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,[Out] ID2D1BitmapRenderTarget** bitmapRenderTarget) + + + + Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target with same pixel size and pixel format. + + an instance of + A value that specifies whether the new render target must be compatible with GDI. + The desired size of the new render target in device-independent pixels if it should be different from the original render target. For more information, see the Remarks section. + HRESULT CreateCompatibleRenderTarget([In, Optional] const D2D1_SIZE_F* desiredSize,[In, Optional] const D2D1_SIZE_U* desiredPixelSize,[In, Optional] const D2D1_PIXEL_FORMAT* desiredFormat,[None] D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,[Out] ID2D1BitmapRenderTarget** bitmapRenderTarget) + + + + Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target with same size and pixel size. + + an instance of + The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is , the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}. + A value that specifies whether the new render target must be compatible with GDI. + HRESULT CreateCompatibleRenderTarget([In, Optional] const D2D1_SIZE_F* desiredSize,[In, Optional] const D2D1_SIZE_U* desiredPixelSize,[In, Optional] const D2D1_PIXEL_FORMAT* desiredFormat,[None] D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,[Out] ID2D1BitmapRenderTarget** bitmapRenderTarget) + + + + Creates a bitmap render target for use during intermediate offscreen drawing that is compatible with the current render target. + + + The pixel size and DPI of the new render target can be altered by specifying values for desiredSize or desiredPixelSize: If desiredSize is specified but desiredPixelSize is not, the pixel size is computed from the desired size using the parent target DPI. If the desiredSize maps to a integer-pixel size, the DPI of the compatible render target is the same as the DPI of the parent target. If desiredSize maps to a fractional-pixel size, the pixel size is rounded up to the nearest integer and the DPI for the compatible render target is slightly higher than the DPI of the parent render target. In all cases, the coordinate (desiredSize.width, desiredSize.height) maps to the lower-right corner of the compatible render target.If the desiredPixelSize is specified and desiredSize is not, the DPI of the new render target is the same as the original render target.If both desiredSize and desiredPixelSize are specified, the DPI of the new render target is computed to account for the difference in scale.If neither desiredSize nor desiredPixelSize is specified, the new render target size and DPI match the original render target. + + an instance of + The desired size of the new render target in device-independent pixels if it should be different from the original render target. For more information, see the Remarks section. + The desired size of the new render target in pixels if it should be different from the original render target. For more information, see the Remarks section. + The desired pixel format and alpha mode of the new render target. If the pixel format is set to DXGI_FORMAT_UNKNOWN, the new render target uses the same pixel format as the original render target. If the alpha mode is , the alpha mode of the new render target defaults to D2D1_ALPHA_MODE_PREMULTIPLIED. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}. + A value that specifies whether the new render target must be compatible with GDI. + HRESULT CreateCompatibleRenderTarget([In, Optional] const D2D1_SIZE_F* desiredSize,[In, Optional] const D2D1_SIZE_U* desiredPixelSize,[In, Optional] const D2D1_PIXEL_FORMAT* desiredFormat,[None] D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS options,[Out] ID2D1BitmapRenderTarget** bitmapRenderTarget) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the bitmap for this render target. The returned bitmap can be used for drawing operations.

+
+

When this method returns, contains the address of a reference to the bitmap for this render target. This bitmap can be used for drawing operations.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The DPI for the obtained from GetBitmap will be the DPI of the when the render target was created. Changing the DPI of the by calling SetDpi doesn't affect the DPI of the bitmap, even if SetDpi is called before GetBitmap. Using SetDpi to change the DPI of the does affect how contents are rendered into the bitmap: it just doesn't affect the DPI of the bitmap retrieved by GetBitmap.

+
+ + dd371150 + HRESULT ID2D1BitmapRenderTarget::GetBitmap([Out] ID2D1Bitmap** bitmap) + ID2D1BitmapRenderTarget::GetBitmap +
+ + +

Retrieves the bitmap for this render target. The returned bitmap can be used for drawing operations.

+
+ +

The DPI for the obtained from GetBitmap will be the DPI of the when the render target was created. Changing the DPI of the by calling SetDpi doesn't affect the DPI of the bitmap, even if SetDpi is called before GetBitmap. Using SetDpi to change the DPI of the does affect how contents are rendered into the bitmap: it just doesn't affect the DPI of the bitmap retrieved by GetBitmap.

+
+ + dd371150 + GetBitmap + GetBitmap + HRESULT ID2D1BitmapRenderTarget::GetBitmap([Out] ID2D1Bitmap** bitmap) +
+ + + Default abstract implementation of TextRenderer. Need to implement a least a DrawXXX method to use it. + + + + + Determines whether pixel snapping is disabled. The recommended default is FALSE, + unless doing animation that requires subpixel vertical placement. + + The context passed to IDWriteTextLayout::Draw. + Receives TRUE if pixel snapping is disabled or FALSE if it not. + HRESULT IsPixelSnappingDisabled([None] void* clientDrawingContext,[Out] BOOL* isDisabled) + + + + Gets a transform that maps abstract coordinates to DIPs. + + The drawing context passed to . + a structure which has transform information for pixel snapping. + HRESULT GetCurrentTransform([None] void* clientDrawingContext,[Out] DWRITE_MATRIX* transform) + + + + Gets the number of physical pixels per DIP. + + + Because a DIP (device-independent pixel) is 1/96 inch, the pixelsPerDip value is the number of logical pixels per inch divided by 96. + + The drawing context passed to . + the number of physical pixels per DIP + HRESULT GetPixelsPerDip([None] void* clientDrawingContext,[Out] FLOAT* pixelsPerDip) + + + + IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs. + + + The function calls this callback function with all the information about glyphs to render. The application implements this callback by mostly delegating the call to the underlying platform's graphics API such as {{Direct2D}} to draw glyphs on the drawing context. An application that uses GDI can implement this callback in terms of the method. + + The application-defined drawing context passed to . + The pixel location (X-coordinate) at the baseline origin of the glyph run. + The pixel location (Y-coordinate) at the baseline origin of the glyph run. + The measuring method for glyphs in the run, used with the other properties to determine the rendering mode. + Pointer to the glyph run instance to render. + A pointer to the optional glyph run description instance which contains properties of the characters associated with this run. + Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of text. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawGlyphRun([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[None] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] const DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription,[None] IUnknown* clientDrawingEffect) + + + + IDWriteTextLayout::Draw calls this function to instruct the client to draw an underline. + + + A single underline can be broken into multiple calls, depending on how the formatting changes attributes. If font sizes/styles change within an underline, the thickness and offset will be averaged weighted according to characters. To get an appropriate starting pixel position, add underline::offset to the baseline. Otherwise there will be no spacing between the text. The x coordinate will always be passed as the left side, regardless of text directionality. This simplifies drawing and reduces the problem of round-off that could potentially cause gaps or a double stamped alpha blend. To avoid alpha overlap, round the end points to the nearest device pixel. + + The application-defined drawing context passed to IDWriteTextLayout::Draw. + The pixel location (X-coordinate) at the baseline origin of the run where underline applies. + The pixel location (Y-coordinate) at the baseline origin of the run where underline applies. + Pointer to a structure containing underline logical information. + Application-defined effect to apply to the underline. Usually this argument represents effects such as the foreground brush filling the interior of a line. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawUnderline([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[In] const DWRITE_UNDERLINE* underline,[None] IUnknown* clientDrawingEffect) + + + + IDWriteTextLayout::Draw calls this function to instruct the client to draw a strikethrough. + + + A single strikethrough can be broken into multiple calls, depending on how the formatting changes attributes. Strikethrough is not averaged across font sizes/styles changes. To get an appropriate starting pixel position, add strikethrough::offset to the baseline. Like underlines, the x coordinate will always be passed as the left side, regardless of text directionality. + + The application-defined drawing context passed to IDWriteTextLayout::Draw. + The pixel location (X-coordinate) at the baseline origin of the run where strikethrough applies. + The pixel location (Y-coordinate) at the baseline origin of the run where strikethrough applies. + Pointer to a structure containing strikethrough logical information. + Application-defined effect to apply to the strikethrough. Usually this argument represents effects such as the foreground brush filling the interior of a line. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawStrikethrough([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[In] const DWRITE_STRIKETHROUGH* strikethrough,[None] IUnknown* clientDrawingEffect) + + + + IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object. + + The application-defined drawing context passed to IDWriteTextLayout::Draw. + X-coordinate at the top-left corner of the inline object. + Y-coordinate at the top-left corner of the inline object. + The application-defined inline object set using IDWriteTextFormat::SetInlineObject. + A Boolean flag that indicates whether the object's baseline runs alongside the baseline axis of the line. + A Boolean flag that indicates whether the object is in a right-to-left context, hinting that the drawing may want to mirror the normal image. + Application-defined drawing effects for the glyphs to render. Usually this argument represents effects such as the foreground brush filling the interior of a line. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT DrawInlineObject([None] void* clientDrawingContext,[None] FLOAT originX,[None] FLOAT originY,[None] IDWriteInlineObject* inlineObject,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IUnknown* clientDrawingEffect) + + + + Internal TextRenderer Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT DrawGlyphRun([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[None] DWRITE_MEASURING_MODE measuringMode,[In] const DWRITE_GLYPH_RUN* glyphRun,[In] const DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription,[None] IUnknown* clientDrawingEffect) + + + HRESULT DrawUnderline([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[In] const DWRITE_UNDERLINE* underline,[None] IUnknown* clientDrawingEffect) + + + HRESULT DrawStrikethrough([None] void* clientDrawingContext,[None] FLOAT baselineOriginX,[None] FLOAT baselineOriginY,[In] const DWRITE_STRIKETHROUGH* strikethrough,[None] IUnknown* clientDrawingEffect) + + + HRESULT DrawInlineObject([None] void* clientDrawingContext,[None] FLOAT originX,[None] FLOAT originY,[None] IDWriteInlineObject* inlineObject,[None] BOOL isSideways,[None] BOOL isRightToLeft,[None] IUnknown* clientDrawingEffect) + + + +

Represents a font typography setting.

+
+ + dd371541 + IDWriteTypography + IDWriteTypography +
+ + + Creates a typography object for use in a text layout. + + an instance of + HRESULT IDWriteFactory::CreateTypography([Out] IDWriteTypography** typography) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Adds an OpenType font feature.

+
+

A structure that contains the OpenType name identifier and the execution parameter for the font feature being added.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371545 + HRESULT IDWriteTypography::AddFontFeature([In] DWRITE_FONT_FEATURE fontFeature) + IDWriteTypography::AddFontFeature +
+ + +

Gets the number of OpenType font features for the current font.

+
+

The number of font features for the current text format.

+ +

A single run of text can be associated with more than one typographic feature. The object holds a list of these font features.

+
+ + dd371549 + unsigned int IDWriteTypography::GetFontFeatureCount() + IDWriteTypography::GetFontFeatureCount +
+ + +

Gets the font feature at the specified index.

+
+

The zero-based index of the font feature to retrieve.

+

When this method returns, contains the font feature which is at the specified index.

+ +

A single run of text can be associated with more than one typographic feature. The object holds a list of these font features.

+
+ + dd371546 + HRESULT IDWriteTypography::GetFontFeature([In] unsigned int fontFeatureIndex,[Out] DWRITE_FONT_FEATURE* fontFeature) + IDWriteTypography::GetFontFeature +
+ + +

Gets the number of OpenType font features for the current font.

+
+ +

A single run of text can be associated with more than one typographic feature. The object holds a list of these font features.

+
+ + dd371549 + GetFontFeatureCount + GetFontFeatureCount + unsigned int IDWriteTypography::GetFontFeatureCount() +
+ + +

Contains the center point, x-radius, and y-radius of an ellipse.

+
+ + dd368097 + D2D1_ELLIPSE + D2D1_ELLIPSE +
+ + + Initializes a new instance of the struct. + + The center. + The radius X. + The radius Y. + + + +

The center point of the ellipse.

+
+ + dd368097 + D2D_POINT_2F point + D2D_POINT_2F point +
+ + +

The X-radius of the ellipse.

+
+ + dd368097 + float radiusX + float radiusX +
+ + +

The Y-radius of the ellipse.

+
+ + dd368097 + float radiusY + float radiusY +
+ + +

Provides access to an device context that can accept GDI drawing commands.

+
+ +

You don't create an object directly; instead, you use the QueryInterface method of an existing render target instance to provide an version of that render target.

Not all render targets support the interface. The render target must be GDI-compatible (the flag was specified when creating the render target), use the pixel format, and use the or alpha mode.

Note that the QueryInterface method always succeeds; if the render target doesn't support the interface, calling GetDC will fail. (For render targets created through the CreateCompatibleRenderTarget method, the render target that created it must have these settings.)

To test whether a given render target supports the interface, create a that specifies GDI compatibility and the appropriate pixel format, then call the render target's IsSupported method to see whether the render target is GDI-compatible.

+
+ + dd371321 + ID2D1GdiInteropRenderTarget + ID2D1GdiInteropRenderTarget +
+ + + Indicates that drawing with the device context retrieved using the {{GetDC}} method is finished. + + + ReleaseDC must be called once for each call to {{GetDC}}. + + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT ID2D1GdiInteropRenderTarget::ReleaseDC([In, Optional] const RECT* update) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the device context associated with this render target.

+
+

A value that specifies whether the device context should be cleared.

+

When this method returns, contains the device context associated with this render target. You must allocate storage for this parameter.

+ +

Calling this method flushes the render target.

This command can be called only after BeginDraw and before EndDraw.

Note??In Windows?7 and earlier, you should not call GetDC between PushAxisAlignedClip/PopAxisAlignedClip commands or between PushLayer/PopLayer. However, this restriction does not apply to Windows?8 and later.

ReleaseDC must be called once for each call to GetDC.

+
+ + dd371323 + HRESULT ID2D1GdiInteropRenderTarget::GetDC([In] D2D1_DC_INITIALIZE_MODE mode,[Out] HDC* hdc) + ID2D1GdiInteropRenderTarget::GetDC +
+ + +

Indicates that drawing with the device context retrieved using the GetDC method is finished.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

ReleaseDC must be called once for each call to GetDC.

+
+ + dd371327 + HRESULT ID2D1GdiInteropRenderTarget::ReleaseDC([In, Optional] const RECT* update) + ID2D1GdiInteropRenderTarget::ReleaseDC +
+ + +

Indicates the condition at the edges of inline object or text used to determine line-breaking behavior.

+
+ + dd368051 + DWRITE_BREAK_CONDITION + DWRITE_BREAK_CONDITION +
+ + +

Indicates whether a break is allowed by determining the condition of the neighboring text span or inline object.

+
+ + dd368051 + DWRITE_BREAK_CONDITION_NEUTRAL + DWRITE_BREAK_CONDITION_NEUTRAL +
+ + +

Indicates that a line break is allowed, unless overruled by the condition of the neighboring text span or inline object, either prohibited by a "may not break" condition or forced by a "must break" condition.

+
+ + dd368051 + DWRITE_BREAK_CONDITION_CAN_BREAK + DWRITE_BREAK_CONDITION_CAN_BREAK +
+ + +

Indicates that there should be no line break, unless overruled by a "must break" condition from the neighboring text span or inline object.

+
+ + dd368051 + DWRITE_BREAK_CONDITION_MAY_NOT_BREAK + DWRITE_BREAK_CONDITION_MAY_NOT_BREAK +
+ + +

Indicates that the line break must happen, regardless of the condition of the adjacent text span or inline object.

+
+ + dd368051 + DWRITE_BREAK_CONDITION_MUST_BREAK + DWRITE_BREAK_CONDITION_MUST_BREAK +
+ + +

Specifies the type of DirectWrite factory object.

+
+ +

A DirectWrite factory object contains information about its internal state, such as font loader registration and cached font data. In most cases you should use the shared factory object, because it allows multiple components that use DirectWrite to share internal DirectWrite state information, thereby reducing memory usage. However, there are cases when it is desirable to reduce the impact of a component on the rest of the process, such as a plug-in from an untrusted source, by sandboxing and isolating it from the rest of the process components. In such cases, you should use an isolated factory for the sandboxed component.

+
+ + dd368057 + DWRITE_FACTORY_TYPE + DWRITE_FACTORY_TYPE +
+ + +

Indicates that the DirectWrite factory is a shared factory and that it allows for the reuse of cached font data across multiple in-process components. Such factories also take advantage of cross process font caching components for better performance.

+
+ + dd368057 + DWRITE_FACTORY_TYPE_SHARED + DWRITE_FACTORY_TYPE_SHARED +
+ + +

Indicates that the DirectWrite factory object is isolated. Objects created from the isolated factory do not interact with internal DirectWrite state from other components.

+
+ + dd368057 + DWRITE_FACTORY_TYPE_ISOLATED + DWRITE_FACTORY_TYPE_ISOLATED +
+ + +

Indicates the direction of flow for placing lines of text in a paragraph.

+
+ + dd368060 + DWRITE_FLOW_DIRECTION + DWRITE_FLOW_DIRECTION +
+ + +

Note??Windows?8.1 and later only.

Specifies that text lines stack in increasing order.

+
+ + dd368060 + DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM + DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM +
+ + +

Indicates the file format of a complete font face.

+
+ +

Font formats that consist of multiple files, such as Type 1 .PFM and .PFB, have a single enum entry.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE + DWRITE_FONT_FACE_TYPE +
+ + +

OpenType font face with CFF outlines.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_CFF + DWRITE_FONT_FACE_TYPE_CFF +
+ + +

OpenType font face with TrueType outlines.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_TRUETYPE + DWRITE_FONT_FACE_TYPE_TRUETYPE +
+ + +

OpenType font face that is a part of a TrueType collection.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION + DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION +
+ + +

A Type 1 font face.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_TYPE1 + DWRITE_FONT_FACE_TYPE_TYPE1 +
+ + +

A vector .FON format font face.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_VECTOR + DWRITE_FONT_FACE_TYPE_VECTOR +
+ + +

A bitmap .FON format font face.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_BITMAP + DWRITE_FONT_FACE_TYPE_BITMAP +
+ + +

Font face type is not recognized by the DirectWrite font system.

+
+ + dd368063 + DWRITE_FONT_FACE_TYPE_UNKNOWN + DWRITE_FONT_FACE_TYPE_UNKNOWN +
+ + +

A value that indicates the typographic feature of text supplied by the font.

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG + DWRITE_FONT_FEATURE_TAG +
+ + +

Replaces figures separated by a slash with an alternative form.

Equivalent OpenType tag: 'afrc'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS + DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS +
+ + +

Turns capital characters into petite capitals. It is generally used for words which would otherwise be set in all caps, such as acronyms, but which are desired in petite-cap form to avoid disrupting the flow of text. See the pcap feature description for notes on the relationship of caps, smallcaps and petite caps.

Equivalent OpenType tag: 'c2pc'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS +
+ + +

Turns capital characters into small capitals. It is generally used for words which would otherwise be set in all caps, such as acronyms, but which are desired in small-cap form to avoid disrupting the flow of text.

Equivalent OpenType tag: 'c2sc'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS +
+ + +

In specified situations, replaces default glyphs with alternate forms which provide better joining behavior. Used in script typefaces which are designed to have some or all of their glyphs join.

Equivalent OpenType tag: 'calt'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES +
+ + +

Shifts various punctuation marks up to a position that works better with all-capital sequences or sets of lining figures; also changes oldstyle figures to lining figures. By default, glyphs in a text face are designed to work with lowercase characters. Some characters should be shifted vertically to fit the higher visual center of all-capital or lining text. Also, lining figures are the same height (or close to it) as capitals, and fit much better with all-capital text.

Equivalent OpenType tag: 'case'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS + DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS +
+ + +

To minimize the number of glyph alternates, it is sometimes desired to decompose a character into two glyphs. Additionally, it may be preferable to compose two characters into a single glyph for better glyph processing. This feature permits such composition/decomposition. The feature should be processed as the first feature processed, and should be processed only when it is called.

Equivalent OpenType tag: 'ccmp'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION + DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION +
+ + +

Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. Unlike other ligature features, clig specifies the context in which the ligature is recommended. This capability is important in some script designs and for swash ligatures.

Equivalent OpenType tag: 'clig'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES +
+ + +

Globally adjusts inter-glyph spacing for all-capital text. Most typefaces contain capitals and lowercase characters, and the capitals are positioned to work with the lowercase. When capitals are used for words, they need more space between them for legibility and esthetics. This feature would not apply to monospaced designs. Of course the user may want to override this behavior in order to do more pronounced letterspacing for esthetic reasons.

Equivalent OpenType tag: 'cpsp'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING + DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING +
+ + +

Replaces default character glyphs with corresponding swash glyphs in a specified context. Note that there may be more than one swash alternate for a given character.

Equivalent OpenType tag: 'cswh'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH +
+ + +

In cursive scripts like Arabic, this feature cursively positions adjacent glyphs.

Equivalent OpenType tag: 'curs'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING + DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING +
+ + +

Globally adjusts inter-glyph spacing for all-capital text. Most typefaces contain capitals and lowercase characters, and the capitals are positioned to work with the lowercase. When capitals are used for words, they need more space between them for legibility and esthetics. This feature would not apply to monospaced designs. Of course the user may want to override this behavior in order to do more pronounced letterspacing for esthetic reasons.

Equivalent OpenType tag: 'cpsp'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_DEFAULT + DWRITE_FONT_FEATURE_TAG_DEFAULT +
+ + +

Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. This feature covers those ligatures which may be used for special effect, at the user's preference.

Equivalent OpenType tag: 'dlig'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES + DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES +
+ + +

Replaces standard forms in Japanese fonts with corresponding forms preferred by typographers. For example, a user would invoke this feature to replace kanji character U+5516 with U+555E. +

Equivalent OpenType tag: 'expt'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS + DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS +
+ + +

Replaces figures separated by a slash with 'common' (diagonal) fractions.

Equivalent OpenType tag: 'frac'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_FRACTIONS + DWRITE_FONT_FEATURE_TAG_FRACTIONS +
+ + +

Replaces glyphs set on other widths with glyphs set on full (usually em) widths. In a CJKV font, this may include "lower ASCII" Latin characters and various symbols. In a European font, this feature replaces proportionally-spaced glyphs with monospaced glyphs, which are generally set on widths of 0.6 em. For example, a user may invoke this feature in a Japanese font to get full monospaced Latin glyphs instead of the corresponding proportionally-spaced versions.

Equivalent OpenType tag: 'fwid'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_FULL_WIDTH + DWRITE_FONT_FEATURE_TAG_FULL_WIDTH +
+ + +

Produces the half forms of consonants in Indic scripts. For example, in Hindi (Devanagari script), the conjunct KKa, obtained by doubling the Ka, is denoted with a half form of Ka followed by the full form.

Equivalent OpenType tag: 'half'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HALF_FORMS + DWRITE_FONT_FEATURE_TAG_HALF_FORMS +
+ + +

Produces the halant forms of consonants in Indic scripts. For example, in Sanskrit (Devanagari script), syllable final consonants are frequently required in their halant form.

Equivalent OpenType tag: 'haln'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HALANT_FORMS + DWRITE_FONT_FEATURE_TAG_HALANT_FORMS +
+ + +

Respaces glyphs designed to be set on full-em widths, fitting them onto half-em widths. This differs from hwid in that it does not substitute new glyphs.

Equivalent OpenType tag: 'halt'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH + DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH +
+ + +

Replaces the default (current) forms with the historical alternates. While some ligatures are also used for historical effect, this feature deals only with single characters. Some fonts include the historical forms as alternates, so they can be used for a 'period' effect.

Equivalent OpenType tag: 'hist'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS + DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS +
+ + +

Replaces standard kana with forms that have been specially designed for only horizontal writing. This is a typographic optimization for improved fit and more even color.

Equivalent OpenType tag: 'hkna'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES + DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES +
+ + +

Replaces the default (current) forms with the historical alternates. Some ligatures were in common use in the past, but appear anachronistic today. Some fonts include the historical forms as alternates, so they can be used for a 'period' effect.

Equivalent OpenType tag: 'hlig'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES + DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES +
+ + +

Replaces glyphs on proportional widths, or fixed widths other than half an em, with glyphs on half-em (en) widths. Many CJKV fonts have glyphs which are set on multiple widths; this feature selects the half-em version. There are various contexts in which this is the preferred behavior, including compatibility with older desktop documents.

Equivalent OpenType tag: 'hwid'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HALF_WIDTH + DWRITE_FONT_FEATURE_TAG_HALF_WIDTH +
+ + +

Used to access the JIS X 0212-1990 glyphs for the cases when the JIS X 0213:2004 form is encoded. The JIS X 0212-1990 (aka, "Hojo Kanji") and JIS X 0213:2004 character sets overlap significantly. In some cases their prototypical glyphs differ. When building fonts that support both JIS X 0212-1990 and JIS X 0213:2004 (such as those supporting the Adobe-Japan 1-6 character collection), it is recommended that JIS X 0213:2004 forms be the preferred encoded form.

Equivalent OpenType tag: 'hojo'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS + DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS +
+ + +

The National Language Council (NLC) of Japan has defined new glyph shapes for a number of JIS characters, which were incorporated into JIS X 0213:2004 as new prototypical forms. The 'jp04' feature is A subset of the 'nlck' feature, and is used to access these prototypical glyphs in a manner that maintains the integrity of JIS X 0213:2004.

Equivalent OpenType tag: 'jp04'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_JIS04_FORMS + DWRITE_FONT_FEATURE_TAG_JIS04_FORMS +
+ + +

Replaces default (JIS90) Japanese glyphs with the corresponding forms from the JIS C 6226-1978 (JIS78) specification.

Equivalent OpenType tag: 'jp78'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_JIS78_FORMS + DWRITE_FONT_FEATURE_TAG_JIS78_FORMS +
+ + +

Replaces default (JIS90) Japanese glyphs with the corresponding forms from the JIS X 0208-1983 (JIS83) specification.

Equivalent OpenType tag: 'jp83'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_JIS83_FORMS + DWRITE_FONT_FEATURE_TAG_JIS83_FORMS +
+ + +

Replaces Japanese glyphs from the JIS78 or JIS83 specifications with the corresponding forms from the JIS X 0208-1990 (JIS90) specification.

Equivalent OpenType tag: 'jp90'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_JIS90_FORMS + DWRITE_FONT_FEATURE_TAG_JIS90_FORMS +
+ + +

Adjusts amount of space between glyphs, generally to provide optically consistent spacing between glyphs. Although a well-designed typeface has consistent inter-glyph spacing overall, some glyph combinations require adjustment for improved legibility. Besides standard adjustment in the horizontal direction, this feature can supply size-dependent kerning data via device tables, "cross-stream" kerning in the Y text direction, and adjustment of glyph placement independent of the advance adjustment. Note that this feature may apply to runs of more than two glyphs, and would not be used in monospaced fonts. Also note that this feature does not apply to text set vertically.

Equivalent OpenType tag: 'kern'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_KERNING + DWRITE_FONT_FEATURE_TAG_KERNING +
+ + +

Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. This feature covers the ligatures which the designer/manufacturer judges should be used in normal conditions.

Equivalent OpenType tag: 'liga'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES + DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES +
+ + +

Changes selected figures from oldstyle to the default lining form. For example, a user may invoke this feature in order to get lining figures, which fit better with all-capital text. This feature overrides results of the Oldstyle Figures feature (onum).

Equivalent OpenType tag: 'lnum'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_LINING_FIGURES + DWRITE_FONT_FEATURE_TAG_LINING_FIGURES +
+ + +

Enables localized forms of glyphs to be substituted for default forms. Many scripts used to write multiple languages over wide geographical areas have developed localized variant forms of specific letters, which are used by individual literary communities. For example, a number of letters in the Bulgarian and Serbian alphabets have forms distinct from their Russian counterparts and from each other. In some cases the localized form differs only subtly from the script 'norm', in others the forms are radically distinct.

Equivalent OpenType tag: 'locl'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS + DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS +
+ + +

Positions mark glyphs with respect to base glyphs. For example, in Arabic script positioning the Hamza above the Yeh.

Equivalent OpenType tag: 'mark'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING + DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING +
+ + +

Replaces standard typographic forms of Greek glyphs with corresponding forms commonly used in mathematical notation (which are a subset of the Greek alphabet).

Equivalent OpenType tag: 'mgrk'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK + DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK +
+ + +

Positions marks with respect to other marks. Required in various non-Latin scripts like Arabic. For example, in Arabic, the ligaturised mark Ha with Hamza above it can also be obtained by positioning these marks relative to one another.

Equivalent OpenType tag: 'mkmk'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING + DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING +
+ + +

Replaces default glyphs with various notational forms (such as glyphs placed in open or solid circles, squares, parentheses, diamonds or rounded boxes). In some cases an annotation form may already be present, but the user may want a different one.

Equivalent OpenType tag: 'nalt'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS + DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS +
+ + +

Used to access glyphs made from glyph shapes defined by the National Language Council (NLC) of Japan for a number of JIS characters in 2000.

Equivalent OpenType tag: 'nlck'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS + DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS +
+ + +

Changes selected figures from the default lining style to oldstyle form. For example, a user may invoke this feature to get oldstyle figures, which fit better into the flow of normal upper- and lowercase text. This feature overrides results of the Lining Figures feature (lnum).

Equivalent OpenType tag: 'onum'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES + DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES +
+ + +

Replaces default alphabetic glyphs with the corresponding ordinal forms for use after figures. One exception to the follows-a-figure rule is the numero character (U+2116), which is actually a ligature substitution, but is best accessed through this feature.

Equivalent OpenType tag: 'ordn'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_ORDINALS + DWRITE_FONT_FEATURE_TAG_ORDINALS +
+ + +

Respaces glyphs designed to be set on full-em widths, fitting them onto individual (more or less proportional) horizontal widths. This differs from pwid in that it does not substitute new glyphs (GPOS, not GSUB feature). The user may prefer the monospaced form, or may simply want to ensure that the glyph is well-fit and not rotated in vertical setting (Latin forms designed for proportional spacing would be rotated).

Equivalent OpenType tag: 'palt'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH +
+ + +

Turns lowercase characters into petite capitals. Forms related to petite capitals, such as specially designed figures, may be included. Some fonts contain an additional size of capital letters, shorter than the regular smallcaps and it is referred to as petite caps. Such forms are most likely to be found in designs with a small lowercase x-height, where they better harmonise with lowercase text than the taller smallcaps (for examples of petite caps, see the Emigre type families Mrs Eaves and Filosofia).

Equivalent OpenType tag: 'pcap'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS +
+ + +

Replaces figure glyphs set on uniform (tabular) widths with corresponding glyphs set on glyph-specific (proportional) widths. Tabular widths will generally be the default, but this cannot be safely assumed. Of course this feature would not be present in monospaced designs.

Equivalent OpenType tag: 'pnum'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES +
+ + +

Replaces glyphs set on uniform widths (typically full or half-em) with proportionally spaced glyphs. The proportional variants are often used for the Latin characters in CJKV fonts, but may also be used for Kana in Japanese fonts.

Equivalent OpenType tag: 'pwid'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS +
+ + +

Replaces glyphs on other widths with glyphs set on widths of one quarter of an em (half an en). The characters involved are normally figures and some forms of punctuation.

Equivalent OpenType tag: 'qwid'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS + DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS +
+ + +

Replaces a sequence of glyphs with a single glyph which is preferred for typographic purposes. This feature covers those ligatures, which the script determines as required to be used in normal conditions. This feature is important for some scripts to ensure correct glyph formation.

Equivalent OpenType tag: 'rlig'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES + DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES +
+ + +

Identifies glyphs in the font which have been designed for "ruby", from the old typesetting term for four-point-sized type. Japanese typesetting often uses smaller kana glyphs, generally in superscripted form, to clarify the meaning of kanji which may be unfamiliar to the reader.

Equivalent OpenType tag: 'ruby'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS + DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS +
+ + +

Replaces the default forms with the stylistic alternates. Many fonts contain alternate glyph designs for a purely esthetic effect; these don't always fit into a clear category like swash or historical. As in the case of swash glyphs, there may be more than one alternate form.

Equivalent OpenType tag: 'salt'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES + DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES +
+ + +

Replaces lining or oldstyle figures with inferior figures (smaller glyphs which sit lower than the standard baseline, primarily for chemical or mathematical notation). May also replace lowercase characters with alphabetic inferiors.

Equivalent OpenType tag: 'sinf'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS + DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS +
+ + +

Turns lowercase characters into small capitals. This corresponds to the common SC font layout. It is generally used for display lines set in Large & small caps, such as titles. Forms related to small capitals, such as oldstyle figures, may be included.

Equivalent OpenType tag: 'smcp'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS +
+ + +

Replaces 'traditional' Chinese or Japanese forms with the corresponding 'simplified' forms.

Equivalent OpenType tag: 'smpl'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS + DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS +
+ + +

In addition to, or instead of, stylistic alternatives of individual glyphs (see 'salt' feature), some fonts may contain sets of stylistic variant glyphs corresponding to portions of the character set, such as multiple variants for lowercase letters in a Latin font. Glyphs in stylistic sets may be designed to harmonise visually, interract in particular ways, or otherwise work together. Examples of fonts including stylistic sets are Zapfino Linotype and Adobe's Poetica. Individual features numbered sequentially with the tag name convention 'ss01' 'ss02' 'ss03' . 'ss20' provide a mechanism for glyphs in these sets to be associated via GSUB lookup indexes to default forms and to each other, and for users to select from available stylistic sets

Equivalent OpenType tag: 'ss01'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss02'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss03'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss04'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss05'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss06'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss07'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss08'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss09'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss10'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss11'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss12'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss13'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss14'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss15'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss16'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss17'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss18'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss19'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19 +
+ + +

See the description for .

Equivalent OpenType tag: 'ss20'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20 + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20 +
+ + +

May replace a default glyph with a subscript glyph, or it may combine a glyph substitution with positioning adjustments for proper placement.

Equivalent OpenType tag: 'subs'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SUBSCRIPT + DWRITE_FONT_FEATURE_TAG_SUBSCRIPT +
+ + +

Replaces lining or oldstyle figures with superior figures (primarily for footnote indication), and replaces lowercase letters with superior letters (primarily for abbreviated French titles).

Equivalent OpenType tag: 'sups'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT + DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT +
+ + +

Replaces default character glyphs with corresponding swash glyphs. Note that there may be more than one swash alternate for a given character.

Equivalent OpenType tag: 'swsh'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SWASH + DWRITE_FONT_FEATURE_TAG_SWASH +
+ + +

Replaces the default glyphs with corresponding forms designed specifically for titling. These may be all-capital and/or larger on the body, and adjusted for viewing at larger sizes.

Equivalent OpenType tag: 'titl'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_TITLING + DWRITE_FONT_FEATURE_TAG_TITLING +
+ + +

Replaces 'simplified' Japanese kanji forms with the corresponding 'traditional' forms. This is equivalent to the Traditional Forms feature, but explicitly limited to the traditional forms considered proper for use in personal names (as many as 205 glyphs in some fonts).

Equivalent OpenType tag: 'tnam'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS +
+ + +

Replaces figure glyphs set on proportional widths with corresponding glyphs set on uniform (tabular) widths. Tabular widths will generally be the default, but this cannot be safely assumed. Of course this feature would not be present in monospaced designs.

Equivalent OpenType tag: 'tnum'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES + DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES +
+ + +

Replaces 'simplified' Chinese hanzi or Japanese kanji forms with the corresponding 'traditional' forms.

Equivalent OpenType tag: 'trad'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS +
+ + +

Replaces glyphs on other widths with glyphs set on widths of one third of an em. The characters involved are normally figures and some forms of punctuation.

Equivalent OpenType tag: 'twid'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS + DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS +
+ + +

Maps upper- and lowercase letters to a mixed set of lowercase and small capital forms, resulting in a single case alphabet (for an example of unicase, see the Emigre type family Filosofia). The letters substituted may vary from font to font, as appropriate to the design. If aligning to the x-height, smallcap glyphs may be substituted, or specially designed unicase forms might be used. Substitutions might also include specially designed figures. +

Equivalent OpenType tag: 'unic'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_UNICASE + DWRITE_FONT_FEATURE_TAG_UNICASE +
+ + +

Allows the user to change from the default 0 to a slashed form. Some fonts contain both a default form of zero, and an alternative form which uses a diagonal slash through the counter. Especially in condensed designs, it can be difficult to distinguish between 0 and O (zero and capital O) in any situation where capitals and lining figures may be arbitrarily mixed.

Equivalent OpenType tag: 'zero'

+
+ + dd368069 + DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO + DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO +
+ + +

The type of a font represented by a single font file. Font formats that consist of multiple files, for example Type 1 .PFM and .PFB, have separate enum values for each of the file types.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE + DWRITE_FONT_FILE_TYPE +
+ + +

Font type is not recognized by the DirectWrite font system.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_UNKNOWN + DWRITE_FONT_FILE_TYPE_UNKNOWN +
+ + +

OpenType font with CFF outlines.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_CFF + DWRITE_FONT_FILE_TYPE_CFF +
+ + +

OpenType font with TrueType outlines.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_TRUETYPE + DWRITE_FONT_FILE_TYPE_TRUETYPE +
+ + +

OpenType font that contains a TrueType collection.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION + DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION +
+ + +

Type 1 PFM font.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_TYPE1_PFM + DWRITE_FONT_FILE_TYPE_TYPE1_PFM +
+ + +

Type 1 PFB font.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_TYPE1_PFB + DWRITE_FONT_FILE_TYPE_TYPE1_PFB +
+ + +

Vector .FON font.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_VECTOR + DWRITE_FONT_FILE_TYPE_VECTOR +
+ + +

Bitmap .FON font.

+
+ + dd368072 + DWRITE_FONT_FILE_TYPE_BITMAP + DWRITE_FONT_FILE_TYPE_BITMAP +
+ + +

Specifies algorithmic style simulations to be applied to the font face. Bold and oblique simulations can be combined via bitwise OR operation.

+
+ +

Style simulations are not recommended for good typographic quality.

+
+ + dd368076 + DWRITE_FONT_SIMULATIONS + DWRITE_FONT_SIMULATIONS +
+ + +

Indicates that no simulations are applied to the font face.

+
+ + dd368076 + DWRITE_FONT_SIMULATIONS_NONE + DWRITE_FONT_SIMULATIONS_NONE +
+ + +

Indicates that algorithmic emboldening is applied to the font face. increases weight by applying a widening algorithm to the glyph outline. This may be used to simulate a bold weight where no designed bold weight is available.

+
+ + dd368076 + DWRITE_FONT_SIMULATIONS_BOLD + DWRITE_FONT_SIMULATIONS_BOLD +
+ + +

Indicates that algorithmic italicization is applied to the font face. applies obliquing (shear) to the glyph outline. This may be used to simulate an oblique/italic style where no designed oblique/italic style is available.

+
+ + dd368076 + DWRITE_FONT_SIMULATIONS_OBLIQUE + DWRITE_FONT_SIMULATIONS_OBLIQUE +
+ + +

Represents the degree to which a font has been stretched compared to a font's normal aspect ratio. The enumerated values correspond to the usWidthClass definition in the OpenType specification. The usWidthClass represents an integer value between 1 and 9?lower values indicate narrower widths; higher values indicate wider widths.

+
+ +

A font stretch describes the degree to which a font form is stretched from its normal aspect ratio, which is the original width to height ratio specified for the glyphs in the font. + The following illustration shows an example of Normal and Condensed stretches for the Rockwell Bold typeface.

Note??Values other than the ones defined in the enumeration are considered to be invalid, and are rejected by font API functions.

+
+ + dd368078 + DWRITE_FONT_STRETCH + DWRITE_FONT_STRETCH +
+ + +

Predefined font stretch : Not known (0).

+
+ + dd368078 + DWRITE_FONT_STRETCH_UNDEFINED + DWRITE_FONT_STRETCH_UNDEFINED +
+ + +

Predefined font stretch : Ultra-condensed (1).

+
+ + dd368078 + DWRITE_FONT_STRETCH_ULTRA_CONDENSED + DWRITE_FONT_STRETCH_ULTRA_CONDENSED +
+ + +

Predefined font stretch : Extra-condensed (2).

+
+ + dd368078 + DWRITE_FONT_STRETCH_EXTRA_CONDENSED + DWRITE_FONT_STRETCH_EXTRA_CONDENSED +
+ + +

Predefined font stretch : Condensed (3).

+
+ + dd368078 + DWRITE_FONT_STRETCH_CONDENSED + DWRITE_FONT_STRETCH_CONDENSED +
+ + +

Predefined font stretch : Semi-condensed (4).

+
+ + dd368078 + DWRITE_FONT_STRETCH_SEMI_CONDENSED + DWRITE_FONT_STRETCH_SEMI_CONDENSED +
+ + +

Predefined font stretch : Normal (5).

+
+ + dd368078 + DWRITE_FONT_STRETCH_NORMAL + DWRITE_FONT_STRETCH_NORMAL +
+ + +

Predefined font stretch : Medium (5).

+
+ + dd368078 + DWRITE_FONT_STRETCH_MEDIUM + DWRITE_FONT_STRETCH_MEDIUM +
+ + +

Predefined font stretch : Semi-expanded (6).

+
+ + dd368078 + DWRITE_FONT_STRETCH_SEMI_EXPANDED + DWRITE_FONT_STRETCH_SEMI_EXPANDED +
+ + +

Predefined font stretch : Expanded (7).

+
+ + dd368078 + DWRITE_FONT_STRETCH_EXPANDED + DWRITE_FONT_STRETCH_EXPANDED +
+ + +

Predefined font stretch : Extra-expanded (8).

+
+ + dd368078 + DWRITE_FONT_STRETCH_EXTRA_EXPANDED + DWRITE_FONT_STRETCH_EXTRA_EXPANDED +
+ + +

Predefined font stretch : Ultra-expanded (9).

+
+ + dd368078 + DWRITE_FONT_STRETCH_ULTRA_EXPANDED + DWRITE_FONT_STRETCH_ULTRA_EXPANDED +
+ + +

Represents the style of a font face as normal, italic, or oblique.

+
+ +

Three terms categorize the slant of a font: normal, italic, and oblique.

Font styleDescription
NormalThe characters in a normal, or roman, font are upright. +
Italic + The characters in an italic font are truly slanted and appear as they were designed. +
ObliqueThe characters in an oblique font are artificially slanted.

?

For Oblique, the slant is achieved by performing a shear transformation on the characters from a normal font. When a true italic font is not available on a computer or printer, an oblique style can be generated from the normal font and used to simulate an italic font. The following illustration shows the normal, italic, and oblique font styles for the Palatino Linotype font. Notice how the italic font style has a more flowing and visually appealing appearance than the oblique font style, which is simply created by skewing the normal font style version of the text.

Note?? Values other than the ones defined in the enumeration are considered to be invalid, and they are rejected by font API functions.

+
+ + dd368080 + DWRITE_FONT_STYLE + DWRITE_FONT_STYLE +
+ + +

Font style : Normal.

+
+ + dd368080 + DWRITE_FONT_STYLE_NORMAL + DWRITE_FONT_STYLE_NORMAL +
+ + +

Font style : Oblique.

+
+ + dd368080 + DWRITE_FONT_STYLE_OBLIQUE + DWRITE_FONT_STYLE_OBLIQUE +
+ + +

Font style : Italic.

+
+ + dd368080 + DWRITE_FONT_STYLE_ITALIC + DWRITE_FONT_STYLE_ITALIC +
+ + +

Represents the density of a typeface, in terms of the lightness or heaviness of the strokes. The enumerated values correspond to the usWeightClass definition in the OpenType specification. The usWeightClass represents an integer value between 1 and 999. Lower values indicate lighter weights; higher values indicate heavier weights.

+
+ +

Weight differences are generally differentiated by an increased stroke or thickness that is associated with a given character in a typeface, as compared to a "normal" character from that same typeface. + The following illustration shows an example of Normal and UltraBold weights for the Palatino Linotype typeface.

Note??Not all weights are available for all typefaces. When a weight is not available for a typeface, the closest matching weight is returned.

Font weight values less than 1 or greater than 999 are considered invalid, and they are rejected by font API functions.

+
+ + dd368082 + DWRITE_FONT_WEIGHT + DWRITE_FONT_WEIGHT +
+ + +

Predefined font weight : Thin (100).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_THIN + DWRITE_FONT_WEIGHT_THIN +
+ + +

Predefined font weight : Extra-light (200).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_EXTRA_LIGHT + DWRITE_FONT_WEIGHT_EXTRA_LIGHT +
+ + +

Predefined font weight : Ultra-light (200).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_ULTRA_LIGHT + DWRITE_FONT_WEIGHT_ULTRA_LIGHT +
+ + +

Predefined font weight : Light (300).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_LIGHT + DWRITE_FONT_WEIGHT_LIGHT +
+ + +

Predefined font weight : Normal (400).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_NORMAL + DWRITE_FONT_WEIGHT_NORMAL +
+ + +

Predefined font weight : Regular (400).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_REGULAR + DWRITE_FONT_WEIGHT_REGULAR +
+ + +

Predefined font weight : Medium (500).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_MEDIUM + DWRITE_FONT_WEIGHT_MEDIUM +
+ + +

Predefined font weight : Demi-bold (600).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_DEMI_BOLD + DWRITE_FONT_WEIGHT_DEMI_BOLD +
+ + +

Predefined font weight : Semi-bold (600).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_SEMI_BOLD + DWRITE_FONT_WEIGHT_SEMI_BOLD +
+ + +

Predefined font weight : Bold (700).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_BOLD + DWRITE_FONT_WEIGHT_BOLD +
+ + +

Predefined font weight : Extra-bold (800).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_EXTRA_BOLD + DWRITE_FONT_WEIGHT_EXTRA_BOLD +
+ + +

Predefined font weight : Ultra-bold (800).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_ULTRA_BOLD + DWRITE_FONT_WEIGHT_ULTRA_BOLD +
+ + +

Predefined font weight : Black (900).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_BLACK + DWRITE_FONT_WEIGHT_BLACK +
+ + +

Predefined font weight : Heavy (900).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_HEAVY + DWRITE_FONT_WEIGHT_HEAVY +
+ + +

Predefined font weight : Extra-black (950).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_EXTRA_BLACK + DWRITE_FONT_WEIGHT_EXTRA_BLACK +
+ + +

Predefined font weight : Ultra-black (950).

+
+ + dd368082 + DWRITE_FONT_WEIGHT_ULTRA_BLACK + DWRITE_FONT_WEIGHT_ULTRA_BLACK +
+ + +

The informational string enumeration which identifies a string embedded in a font file.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_ID + DWRITE_INFORMATIONAL_STRING_ID +
+ + +

Indicates the string containing the unspecified name ID.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_NONE + DWRITE_INFORMATIONAL_STRING_NONE +
+ + +

Indicates the string containing the copyright notice provided by the font.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_COPYRIGHT_NOTICE + DWRITE_INFORMATIONAL_STRING_COPYRIGHT_NOTICE +
+ + +

Indicates the string containing a version number.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_VERSION_STRINGS + DWRITE_INFORMATIONAL_STRING_VERSION_STRINGS +
+ + +

Indicates the string containing the trademark information provided by the font.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_TRADEMARK + DWRITE_INFORMATIONAL_STRING_TRADEMARK +
+ + +

Indicates the string containing the name of the font manufacturer.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_MANUFACTURER + DWRITE_INFORMATIONAL_STRING_MANUFACTURER +
+ + +

Indicates the string containing the name of the font designer.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_DESIGNER + DWRITE_INFORMATIONAL_STRING_DESIGNER +
+ + +

Indicates the string containing the URL of the font designer (with protocol, e.g., http://, ftp://).

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_DESIGNER_URL + DWRITE_INFORMATIONAL_STRING_DESIGNER_URL +
+ + +

Indicates the string containing the description of the font. This may also contain revision information, usage recommendations, history, features, and so on.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_DESCRIPTION + DWRITE_INFORMATIONAL_STRING_DESCRIPTION +
+ + +

Indicates the string containing the URL of the font vendor (with protocol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the font.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_FONT_VENDOR_URL + DWRITE_INFORMATIONAL_STRING_FONT_VENDOR_URL +
+ + +

Indicates the string containing the description of how the font may be legally used, or different example scenarios for licensed use.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_LICENSE_DESCRIPTION + DWRITE_INFORMATIONAL_STRING_LICENSE_DESCRIPTION +
+ + +

Indicates the string containing the URL where additional licensing information can be found.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_LICENSE_INFO_URL + DWRITE_INFORMATIONAL_STRING_LICENSE_INFO_URL +
+ + +

Indicates the string containing the GDI-compatible family name. Since GDI allows a maximum of four fonts per family, fonts in the same family may have different GDI-compatible family names (e.g., "Arial", "Arial Narrow", "Arial Black").

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES + DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES +
+ + +

Indicates the string containing a GDI-compatible subfamily name.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_WIN32_SUBFAMILY_NAMES + DWRITE_INFORMATIONAL_STRING_WIN32_SUBFAMILY_NAMES +
+ + +

Indicates the string containing the family name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with GDI. This name is typically only present if it differs from the GDI-compatible family name.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_PREFERRED_FAMILY_NAMES + DWRITE_INFORMATIONAL_STRING_PREFERRED_FAMILY_NAMES +
+ + +

Indicates the string containing the subfamily name preferred by the designer. This name is typically only present if it differs from the GDI-compatible subfamily name.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_PREFERRED_SUBFAMILY_NAMES + DWRITE_INFORMATIONAL_STRING_PREFERRED_SUBFAMILY_NAMES +
+ + +

Contains sample text for display in font lists. This can be the font name or any other text that the designer thinks is the best example to display the font in.

+
+ + dd368094 + DWRITE_INFORMATIONAL_STRING_SAMPLE_TEXT + DWRITE_INFORMATIONAL_STRING_SAMPLE_TEXT +
+ + +

The method used for line spacing in a text layout.

+
+ +

The line spacing method is set by using the SetLineSpacing method of the or interfaces. To get the current line spacing method of a text format or text layou use the GetLineSpacing.

+
+ + dd368101 + DWRITE_LINE_SPACING_METHOD + DWRITE_LINE_SPACING_METHOD +
+ + +

Line spacing depends solely on the content, adjusting to accommodate the size of fonts and inline objects.

+
+ + dd368101 + DWRITE_LINE_SPACING_METHOD_DEFAULT + DWRITE_LINE_SPACING_METHOD_DEFAULT +
+ + +

Lines are explicitly set to uniform spacing, regardless of the size of fonts and inline objects. This can be useful to avoid the uneven appearance that can occur from font fallback.

+
+ + dd368101 + DWRITE_LINE_SPACING_METHOD_UNIFORM + DWRITE_LINE_SPACING_METHOD_UNIFORM +
+ + +

Specifies how to apply number substitution on digits and related punctuation.

+
+ + dd368107 + DWRITE_NUMBER_SUBSTITUTION_METHOD + DWRITE_NUMBER_SUBSTITUTION_METHOD +
+ + +

Specifies that the substitution method should be determined based on the LOCALE_IDIGITSUBSTITUTION value of the specified text culture.

+
+ + dd368107 + DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE + DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE +
+ + +

If the culture is Arabic or Persian, specifies that the number shapes depend on the context. Either traditional or nominal number shapes are used, depending on the nearest preceding strong character or (if there is none) the reading direction of the paragraph.

+
+ + dd368107 + DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUAL + DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUAL +
+ + +

Specifies that code points 0x30-0x39 are always rendered as nominal numeral shapes (ones of the European number), that is, no substitution is performed.

+
+ + dd368107 + DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE + DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE +
+ + +

Specifies that numbers are rendered using the national number shapes as specified by the LOCALE_SNATIVEDIGITS value of the specified text culture.

+
+ + dd368107 + DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONAL + DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONAL +
+ + +

Specifies that numbers are rendered using the traditional shapes for the specified culture. For most cultures, this is the same as NativeNational. However, NativeNational results in Latin numbers for some Arabic cultures, whereasDWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL results in arabic numbers for all Arabic cultures.

+
+ + dd368107 + DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL + DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL +
+ + +

Specifies the alignment of paragraph text along the flow direction axis, relative to the top and bottom of the flow's layout box.

+
+ + dd368112 + DWRITE_PARAGRAPH_ALIGNMENT + DWRITE_PARAGRAPH_ALIGNMENT +
+ + +

The top of the text flow is aligned to the top edge of the layout box.

+
+ + dd368112 + DWRITE_PARAGRAPH_ALIGNMENT_NEAR + DWRITE_PARAGRAPH_ALIGNMENT_NEAR +
+ + +

The bottom of the text flow is aligned to the bottom edge of the layout box.

+
+ + dd368112 + DWRITE_PARAGRAPH_ALIGNMENT_FAR + DWRITE_PARAGRAPH_ALIGNMENT_FAR +
+ + +

The center of the flow is aligned to the center of the layout box.

+
+ + dd368112 + DWRITE_PARAGRAPH_ALIGNMENT_CENTER + DWRITE_PARAGRAPH_ALIGNMENT_CENTER +
+ + +

Represents the internal structure of a device pixel (that is, the physical arrangement of red, green, and blue color components) that is assumed for purposes of rendering text. +

+
+ + dd368114 + DWRITE_PIXEL_GEOMETRY + DWRITE_PIXEL_GEOMETRY +
+ + +

The red, green, and blue color components of each pixel are assumed to occupy the same point.

+
+ + dd368114 + DWRITE_PIXEL_GEOMETRY_FLAT + DWRITE_PIXEL_GEOMETRY_FLAT +
+ + +

Each pixel is composed of three vertical stripes, with red on the left, green in the center, and blue on the right. This is the most common pixel geometry for LCD monitors.

+
+ + dd368114 + DWRITE_PIXEL_GEOMETRY_RGB + DWRITE_PIXEL_GEOMETRY_RGB +
+ + +

Each pixel is composed of three vertical stripes, with blue on the left, green in the center, and red on the right.

+
+ + dd368114 + DWRITE_PIXEL_GEOMETRY_BGR + DWRITE_PIXEL_GEOMETRY_BGR +
+ + +

Specifies the direction in which reading progresses.

Note??DWRITE_READING_DIRECTION_TOP_TO_BOTTOM and DWRITE_READING_DIRECTION_BOTTOM_TO_TOP are available in Windows?8.1 and later, only.

+
+ + dd368116 + DWRITE_READING_DIRECTION + DWRITE_READING_DIRECTION +
+ + +

Indicates that reading progresses from left to right.

+
+ + dd368116 + DWRITE_READING_DIRECTION_LEFT_TO_RIGHT + DWRITE_READING_DIRECTION_LEFT_TO_RIGHT +
+ + +

Indicates that reading progresses from right to left.

+
+ + dd368116 + DWRITE_READING_DIRECTION_RIGHT_TO_LEFT + DWRITE_READING_DIRECTION_RIGHT_TO_LEFT +
+ + +

Represents a method of rendering glyphs.

Note??This topic is about in Windows?8 and later. For info on the previous version see this topic.

+
+ + dd368118 + DWRITE_RENDERING_MODE + DWRITE_RENDERING_MODE +
+ + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_DEFAULT + DWRITE_RENDERING_MODE_DEFAULT + + + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_ALIASED + DWRITE_RENDERING_MODE_ALIASED + + + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC + + + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL + + + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL + + + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL_SYMMETRIC + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL_SYMMETRIC + + + + No documentation. + + + dd368118 + DWRITE_RENDERING_MODE_OUTLINE + DWRITE_RENDERING_MODE_OUTLINE + + + +

Indicates additional shaping requirements for text.

+
+ + dd368121 + DWRITE_SCRIPT_SHAPES + DWRITE_SCRIPT_SHAPES +
+ + +

Indicates that there is no additional shaping requirements for text. Text is shaped with the writing system default behavior.

+
+ + dd368121 + DWRITE_SCRIPT_SHAPES_DEFAULT + DWRITE_SCRIPT_SHAPES_DEFAULT +
+ + +

Indicates that text should leave no visible control or format control characters.

+
+ + dd368121 + DWRITE_SCRIPT_SHAPES_NO_VISUAL + DWRITE_SCRIPT_SHAPES_NO_VISUAL +
+ + +

Specifies the alignment of paragraph text along the reading direction axis, relative to the leading and trailing edge of the layout box.

+
+ + dd368131 + DWRITE_TEXT_ALIGNMENT + DWRITE_TEXT_ALIGNMENT +
+ + +

The leading edge of the paragraph text is aligned to the leading edge of the layout box.

+
+ + dd368131 + DWRITE_TEXT_ALIGNMENT_LEADING + DWRITE_TEXT_ALIGNMENT_LEADING +
+ + +

The trailing edge of the paragraph text is aligned to the trailing edge of the layout box.

+
+ + dd368131 + DWRITE_TEXT_ALIGNMENT_TRAILING + DWRITE_TEXT_ALIGNMENT_TRAILING +
+ + +

The center of the paragraph text is aligned to the center of the layout box.

+
+ + dd368131 + DWRITE_TEXT_ALIGNMENT_CENTER + DWRITE_TEXT_ALIGNMENT_CENTER +
+ + +

Identifies a type of alpha texture.

+
+ +

An alpha texture is a bitmap of alpha values, each representing opacity of a pixel or subpixel.

+
+ + dd368129 + DWRITE_TEXTURE_TYPE + DWRITE_TEXTURE_TYPE +
+ + +

Specifies an alpha texture for aliased text rendering (that is, each pixel is either fully opaque or fully transparent), with one byte per pixel.

+
+ + dd368129 + DWRITE_TEXTURE_ALIASED_1x1 + DWRITE_TEXTURE_ALIASED_1x1 +
+ + +

Specifies an alpha texture for ClearType text rendering, with three bytes per pixel in the horizontal dimension and one byte per pixel in the vertical dimension.

+
+ + dd368129 + DWRITE_TEXTURE_CLEARTYPE_3x1 + DWRITE_TEXTURE_CLEARTYPE_3x1 +
+ + +

Specifies the text granularity used to trim text overflowing the layout box.

+
+ + dd368141 + DWRITE_TRIMMING_GRANULARITY + DWRITE_TRIMMING_GRANULARITY +
+ + +

No trimming occurs. Text flows beyond the layout width.

+
+ + dd368141 + DWRITE_TRIMMING_GRANULARITY_NONE + DWRITE_TRIMMING_GRANULARITY_NONE +
+ + +

Trimming occurs at a character cluster boundary.

+
+ + dd368141 + DWRITE_TRIMMING_GRANULARITY_CHARACTER + DWRITE_TRIMMING_GRANULARITY_CHARACTER +
+ + +

Trimming occurs at a word boundary.

+
+ + dd368141 + DWRITE_TRIMMING_GRANULARITY_WORD + DWRITE_TRIMMING_GRANULARITY_WORD +
+ + +

Specifies the word wrapping to be used in a particular multiline paragraph.

Note??DWRITE_WORD_WRAPPING_EMERGENCY_BREAK, DWRITE_WORD_WRAPPING_WHOLE _WORD, and DWRITE_WORD_WRAPPING_CHARACTER are available in Windows?8.1 and later, only.

+
+ + dd368146 + DWRITE_WORD_WRAPPING + DWRITE_WORD_WRAPPING +
+ + +

Indicates that words are broken across lines to avoid text overflowing the layout box.

+
+ + dd368146 + DWRITE_WORD_WRAPPING_WRAP + DWRITE_WORD_WRAPPING_WRAP +
+ + +

Indicates that words are kept within the same line even when it overflows the layout box. This option is often used with scrolling to reveal overflow text.

+
+ + dd368146 + DWRITE_WORD_WRAPPING_NO_WRAP + DWRITE_WORD_WRAPPING_NO_WRAP +
+ + + Functions + + + + + +

Creates a DirectWrite factory object that is used for subsequent creation of individual DirectWrite objects.

+
+

A value that specifies whether the factory object will be shared or isolated.

+

A value that identifies the DirectWrite factory interface, such as __uuidof().

+

An address of a reference to the newly created DirectWrite factory object.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function creates a DirectWrite factory object that is used for subsequent creation of individual DirectWrite objects. DirectWrite factory contains internal state data such as font loader registration and cached font data. In most cases it is recommended you use the shared factory object, because it allows multiple components that use DirectWrite to share internal DirectWrite state data, and thereby reduce memory usage. However, there are cases when it is desirable to reduce the impact of a component, such as a plug-in from an untrusted source, on the rest of the process, by sandboxing and isolating it from the rest of the process components. In such cases, it is recommended you use an isolated factory for the sandboxed component.

The following example shows how to create a shared DirectWrite factory.

 if (SUCCEEDED(hr))	
+            { hr = ( , __uuidof(), reinterpret_cast<**>(&pDWriteFactory_) );	
+            } 

Windows Phone 8.1: This API is supported.

+
+ + dd368040 + HRESULT DWriteCreateFactory([In] DWRITE_FACTORY_TYPE factoryType,[In] const GUID& iid,[Out, Fast] IUnknown** factory) + DWriteCreateFactory +
+ + +

Represents a physical font in a font collection. This interface is used to create font faces from physical fonts, or to retrieve information such as font face metrics or face names from existing font faces.

+
+ + dd368213 + IDWriteFont + IDWriteFont +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the font family to which the specified font belongs.

+
+

When this method returns, contains an address of a reference to the font family object to which the specified font belongs.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371143 + HRESULT IDWriteFont::GetFontFamily([Out] IDWriteFontFamily** fontFamily) + IDWriteFont::GetFontFamily +
+ + +

Gets the weight, or stroke thickness, of the specified font.

+
+

A value that indicates the weight for the specified font.

+ + dd371162 + DWRITE_FONT_WEIGHT IDWriteFont::GetWeight() + IDWriteFont::GetWeight +
+ + +

Gets the stretch, or width, of the specified font.

+
+

A value that indicates the type of stretch, or width, applied to the specified font.

+ + dd371156 + DWRITE_FONT_STRETCH IDWriteFont::GetStretch() + IDWriteFont::GetStretch +
+ + +

Gets the style, or slope, of the specified font.

+
+

A value that indicates the type of style, or slope, of the specified font.

+ + dd371159 + DWRITE_FONT_STYLE IDWriteFont::GetStyle() + IDWriteFont::GetStyle +
+ + +

Determines whether the font is a symbol font.

+
+

TRUE if the font is a symbol font; otherwise, .

+ + dd371168 + BOOL IDWriteFont::IsSymbolFont() + IDWriteFont::IsSymbolFont +
+ + +

Gets a localized strings collection containing the face names for the font (such as Regular or Bold), indexed by locale name.

+
+

When this method returns, contains an address to a reference to the newly created localized strings object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371140 + HRESULT IDWriteFont::GetFaceNames([Out] IDWriteLocalizedStrings** names) + IDWriteFont::GetFaceNames +
+ + +

Gets a localized strings collection containing the specified informational strings, indexed by locale name.

+
+

A value that identifies the informational string to get. For example, specifies a string that contains a description of the font.

+

When this method returns, contains an address of a reference to the newly created localized strings object.

+

When this method returns, TRUE if the font contains the specified string ID; otherwise, .

+ +

If the font does not contain the string specified by informationalStringID, the return value is but informationalStrings receives a null reference and exists receives the value .

+
+ + dd371147 + HRESULT IDWriteFont::GetInformationalStrings([In] DWRITE_INFORMATIONAL_STRING_ID informationalStringID,[Out] IDWriteLocalizedStrings** informationalStrings,[Out] BOOL* exists) + IDWriteFont::GetInformationalStrings +
+ + +

Gets a value that indicates what simulations are applied to the specified font.

+
+

A value that indicates one or more of the types of simulations (none, bold, or oblique) applied to the specified font.

+ + dd371153 + DWRITE_FONT_SIMULATIONS IDWriteFont::GetSimulations() + IDWriteFont::GetSimulations +
+ + +

Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a font face and are used by applications for layout calculations.

+
+

When this method returns, contains a structure that has font metrics for the current font face. The metrics returned by this function are in font design units.

+ + dd371149 + void IDWriteFont::GetMetrics([Out] DWRITE_FONT_METRICS* fontMetrics) + IDWriteFont::GetMetrics +
+ + +

Determines whether the font supports a specified character.

+
+

A Unicode (UCS-4) character value for the method to inspect.

+

When this method returns, TRUE if the font supports the specified character; otherwise, .

+ + dd371165 + HRESULT IDWriteFont::HasCharacter([In] unsigned int unicodeValue,[Out] BOOL* exists) + IDWriteFont::HasCharacter +
+ + +

Creates a font face object for the font.

+
+

When this method returns, contains an address of a reference to the newly created font face object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371137 + HRESULT IDWriteFont::CreateFontFace([Out, Fast] IDWriteFontFace** fontFace) + IDWriteFont::CreateFontFace +
+ + +

Gets the font family to which the specified font belongs.

+
+ + dd371143 + GetFontFamily + GetFontFamily + HRESULT IDWriteFont::GetFontFamily([Out] IDWriteFontFamily** fontFamily) +
+ + +

Gets the weight, or stroke thickness, of the specified font.

+
+ + dd371162 + GetWeight + GetWeight + DWRITE_FONT_WEIGHT IDWriteFont::GetWeight() +
+ + +

Gets the stretch, or width, of the specified font.

+
+ + dd371156 + GetStretch + GetStretch + DWRITE_FONT_STRETCH IDWriteFont::GetStretch() +
+ + +

Gets the style, or slope, of the specified font.

+
+ + dd371159 + GetStyle + GetStyle + DWRITE_FONT_STYLE IDWriteFont::GetStyle() +
+ + +

Determines whether the font is a symbol font.

+
+ + dd371168 + IsSymbolFont + IsSymbolFont + BOOL IDWriteFont::IsSymbolFont() +
+ + +

Gets a localized strings collection containing the face names for the font (such as Regular or Bold), indexed by locale name.

+
+ + dd371140 + GetFaceNames + GetFaceNames + HRESULT IDWriteFont::GetFaceNames([Out] IDWriteLocalizedStrings** names) +
+ + +

Gets a value that indicates what simulations are applied to the specified font.

+
+ + dd371153 + GetSimulations + GetSimulations + DWRITE_FONT_SIMULATIONS IDWriteFont::GetSimulations() +
+ + +

Obtains design units and common metrics for the font face. These metrics are applicable to all the glyphs within a font face and are used by applications for layout calculations.

+
+ + dd371149 + GetMetrics + GetMetrics + void IDWriteFont::GetMetrics([Out] DWRITE_FONT_METRICS* fontMetrics) +
+ + +

Creates a localized strings object that contains the family names for the font family, indexed by locale name.

+
+ +

The following code example shows how to get the font family name from a object.

* pFamilyNames = null; // Get a list of localized strings for the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFontFamily->GetFamilyNames(&pFamilyNames);	
+            } UINT32 index = 0;	
+             exists = false; wchar_t localeName[LOCALE_NAME_MAX_LENGTH]; if (SUCCEEDED(hr))	
+            { // Get the default locale for this user. int defaultLocaleSuccess = GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH); // If the default locale is returned, find that locale name, otherwise use "en-us". if (defaultLocaleSuccess) { hr = pFamilyNames->FindLocaleName(localeName, &index, &exists); } if (SUCCEEDED(hr) && !exists) // if the above find did not find a match, retry with US English { hr = pFamilyNames->FindLocaleName(L"en-us", &index, &exists); }	
+            } // If the specified locale doesn't exist, select the first on the list.	
+            if (!exists) index = 0; UINT32 length = 0; // Get the string length.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetStringLength(index, &length);	
+            } // Allocate a string big enough to hold the name.	
+            wchar_t* name = new (std::nothrow) wchar_t[length+1];	
+            if (name == null)	
+            { hr = E_OUTOFMEMORY;	
+            } // Get the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetString(index, name, length+1);	
+            }	
+            
+
+ + dd371047 + IDWriteFontFamily + IDWriteFontFamily +
+ + +

Represents a list of fonts.

+
+ + dd371120 + IDWriteFontList + IDWriteFontList +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the font collection that contains the fonts in the font list.

+
+

When this method returns, contains the address of a reference to the current object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371129 + HRESULT IDWriteFontList::GetFontCollection([Out] IDWriteFontCollection** fontCollection) + IDWriteFontList::GetFontCollection +
+ + +

Gets the number of fonts in the font list.

+
+

The number of fonts in the font list.

+ + dd371133 + unsigned int IDWriteFontList::GetFontCount() + IDWriteFontList::GetFontCount +
+ + +

Gets a font given its zero-based index.

+
+

Zero-based index of the font in the font list.

+

When this method returns, contains the address of a reference to the newly created object.

+ + dd371125 + HRESULT IDWriteFontList::GetFont([In] unsigned int index,[Out] IDWriteFont** font) + IDWriteFontList::GetFont +
+ + +

Gets the font collection that contains the fonts in the font list.

+
+ + dd371129 + GetFontCollection + GetFontCollection + HRESULT IDWriteFontList::GetFontCollection([Out] IDWriteFontCollection** fontCollection) +
+ + +

Gets the number of fonts in the font list.

+
+ + dd371133 + GetFontCount + GetFontCount + unsigned int IDWriteFontList::GetFontCount() +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a localized strings object that contains the family names for the font family, indexed by locale name.

+
+

The address of a reference to the newly created object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The following code example shows how to get the font family name from a object.

* pFamilyNames = null; // Get a list of localized strings for the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFontFamily->GetFamilyNames(&pFamilyNames);	
+            } UINT32 index = 0;	
+             exists = false; wchar_t localeName[LOCALE_NAME_MAX_LENGTH]; if (SUCCEEDED(hr))	
+            { // Get the default locale for this user. int defaultLocaleSuccess = GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH); // If the default locale is returned, find that locale name, otherwise use "en-us". if (defaultLocaleSuccess) { hr = pFamilyNames->FindLocaleName(localeName, &index, &exists); } if (SUCCEEDED(hr) && !exists) // if the above find did not find a match, retry with US English { hr = pFamilyNames->FindLocaleName(L"en-us", &index, &exists); }	
+            } // If the specified locale doesn't exist, select the first on the list.	
+            if (!exists) index = 0; UINT32 length = 0; // Get the string length.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetStringLength(index, &length);	
+            } // Allocate a string big enough to hold the name.	
+            wchar_t* name = new (std::nothrow) wchar_t[length+1];	
+            if (name == null)	
+            { hr = E_OUTOFMEMORY;	
+            } // Get the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetString(index, name, length+1);	
+            }	
+            
+
+ + dd371047 + HRESULT IDWriteFontFamily::GetFamilyNames([Out] IDWriteLocalizedStrings** names) + IDWriteFontFamily::GetFamilyNames +
+ + +

Gets the font that best matches the specified properties.

+
+

A value that is used to match a requested font weight.

+

A value that is used to match a requested font stretch.

+

A value that is used to match a requested font style.

+

When this method returns, contains the address of a reference to the newly created object.

+ + dd371051 + HRESULT IDWriteFontFamily::GetFirstMatchingFont([In] DWRITE_FONT_WEIGHT weight,[In] DWRITE_FONT_STRETCH stretch,[In] DWRITE_FONT_STYLE style,[Out] IDWriteFont** matchingFont) + IDWriteFontFamily::GetFirstMatchingFont +
+ + +

Gets a list of fonts in the font family ranked in order of how well they match the specified properties.

+
+

A value that is used to match a requested font weight.

+

A value that is used to match a requested font stretch.

+

A value that is used to match a requested font style.

+

An address of a reference to the newly created object.

+ + dd371056 + HRESULT IDWriteFontFamily::GetMatchingFonts([In] DWRITE_FONT_WEIGHT weight,[In] DWRITE_FONT_STRETCH stretch,[In] DWRITE_FONT_STYLE style,[Out] IDWriteFontList** matchingFonts) + IDWriteFontFamily::GetMatchingFonts +
+ + +

Creates a localized strings object that contains the family names for the font family, indexed by locale name.

+
+ +

The following code example shows how to get the font family name from a object.

* pFamilyNames = null; // Get a list of localized strings for the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFontFamily->GetFamilyNames(&pFamilyNames);	
+            } UINT32 index = 0;	
+             exists = false; wchar_t localeName[LOCALE_NAME_MAX_LENGTH]; if (SUCCEEDED(hr))	
+            { // Get the default locale for this user. int defaultLocaleSuccess = GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH); // If the default locale is returned, find that locale name, otherwise use "en-us". if (defaultLocaleSuccess) { hr = pFamilyNames->FindLocaleName(localeName, &index, &exists); } if (SUCCEEDED(hr) && !exists) // if the above find did not find a match, retry with US English { hr = pFamilyNames->FindLocaleName(L"en-us", &index, &exists); }	
+            } // If the specified locale doesn't exist, select the first on the list.	
+            if (!exists) index = 0; UINT32 length = 0; // Get the string length.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetStringLength(index, &length);	
+            } // Allocate a string big enough to hold the name.	
+            wchar_t* name = new (std::nothrow) wchar_t[length+1];	
+            if (name == null)	
+            { hr = E_OUTOFMEMORY;	
+            } // Get the family name.	
+            if (SUCCEEDED(hr))	
+            { hr = pFamilyNames->GetString(index, name, length+1);	
+            }	
+            
+
+ + dd371047 + GetFamilyNames + GetFamilyNames + HRESULT IDWriteFontFamily::GetFamilyNames([Out] IDWriteLocalizedStrings** names) +
+ + +

Contains information about a glyph cluster.

+
+ + dd368054 + DWRITE_CLUSTER_METRICS + DWRITE_CLUSTER_METRICS +
+ + +

The total advance width of all glyphs in the cluster.

+
+ + dd368054 + float width + float width +
+ + +

The number of text positions in the cluster.

+
+ + dd368054 + unsigned short length + unsigned short length +
+ + +

Indicates whether a line can be broken right after the cluster.

+
+ + dd368054 + unsigned short canWrapLineAfter + unsigned short canWrapLineAfter +
+ + +

Indicates whether the cluster corresponds to a whitespace character.

+
+ + dd368054 + unsigned short isWhitespace + unsigned short isWhitespace +
+ + +

Indicates whether the cluster corresponds to a newline character.

+
+ + dd368054 + unsigned short isNewline + unsigned short isNewline +
+ + +

Indicates whether the cluster corresponds to a soft hyphen character.

+
+ + dd368054 + unsigned short isSoftHyphen + unsigned short isSoftHyphen +
+ + +

Indicates whether the cluster is read from right to left.

+
+ + dd368054 + unsigned short isRightToLeft + unsigned short isRightToLeft +
+ + +

Reserved for future use.

+
+ + dd368054 + unsigned short padding + unsigned short padding +
+ + +

The structure specifies the metrics that are applicable to all glyphs within the font face.

+
+ + dd368074 + DWRITE_FONT_METRICS + DWRITE_FONT_METRICS +
+ + +

The number of font design units per em unit. Font files use their own coordinate system of font design units. A font design unit is the smallest measurable unit in the em square, an imaginary square that is used to size and align glyphs. The concept of em square is used as a reference scale factor when defining font size and device transformation semantics. The size of one em square is also commonly used to compute the paragraph identation value.

+
+ + dd368074 + unsigned short designUnitsPerEm + unsigned short designUnitsPerEm +
+ + +

The ascent value of the font face in font design units. Ascent is the distance from the top of font character alignment box to the English baseline.

+
+ + dd368074 + unsigned short ascent + unsigned short ascent +
+ + +

The descent value of the font face in font design units. Descent is the distance from the bottom of font character alignment box to the English baseline.

+
+ + dd368074 + unsigned short descent + unsigned short descent +
+ + +

The line gap in font design units. Recommended additional white space to add between lines to improve legibility. The recommended line spacing (baseline-to-baseline distance) is the sum of ascent, descent, and lineGap. The line gap is usually positive or zero but can be negative, in which case the recommended line spacing is less than the height of the character alignment box.

+
+ + dd368074 + short lineGap + short lineGap +
+ + +

The cap height value of the font face in font design units. Cap height is the distance from the English baseline to the top of a typical English capital. Capital "H" is often used as a reference character for the purpose of calculating the cap height value.

+
+ + dd368074 + unsigned short capHeight + unsigned short capHeight +
+ + +

The x-height value of the font face in font design units. x-height is the distance from the English baseline to the top of lowercase letter "x", or a similar lowercase character.

+
+ + dd368074 + unsigned short xHeight + unsigned short xHeight +
+ + +

The underline position value of the font face in font design units. Underline position is the position of underline relative to the English baseline. The value is usually made negative in order to place the underline below the baseline.

+
+ + dd368074 + short underlinePosition + short underlinePosition +
+ + +

The suggested underline thickness value of the font face in font design units.

+
+ + dd368074 + unsigned short underlineThickness + unsigned short underlineThickness +
+ + +

The strikethrough position value of the font face in font design units. Strikethrough position is the position of strikethrough relative to the English baseline. The value is usually made positive in order to place the strikethrough above the baseline.

+
+ + dd368074 + short strikethroughPosition + short strikethroughPosition +
+ + +

The suggested strikethrough thickness value of the font face in font design units.

+
+ + dd368074 + unsigned short strikethroughThickness + unsigned short strikethroughThickness +
+ + +

Specifies the metrics of an individual glyph. The units depend on how the metrics are obtained.

+
+ + dd368084 + DWRITE_GLYPH_METRICS + DWRITE_GLYPH_METRICS +
+ + +

Specifies the X offset from the glyph origin to the left edge of the black box. The glyph origin is the current horizontal writing position. A negative value means the black box extends to the left of the origin (often true for lowercase italic 'f').

+
+ + dd368084 + int leftSideBearing + int leftSideBearing +
+ + +

Specifies the X offset from the origin of the current glyph to the origin of the next glyph when writing horizontally.

+
+ + dd368084 + unsigned int advanceWidth + unsigned int advanceWidth +
+ + +

Specifies the X offset from the right edge of the black box to the origin of the next glyph when writing horizontally. The value is negative when the right edge of the black box overhangs the layout box.

+
+ + dd368084 + int rightSideBearing + int rightSideBearing +
+ + +

Specifies the vertical offset from the vertical origin to the top of the black box. Thus, a positive value adds whitespace whereas a negative value means the glyph overhangs the top of the layout box.

+
+ + dd368084 + int topSideBearing + int topSideBearing +
+ + +

Specifies the Y offset from the vertical origin of the current glyph to the vertical origin of the next glyph when writing vertically. Note that the term "origin" by itself denotes the horizontal origin. The vertical origin is different. Its Y coordinate is specified by verticalOriginY value, and its X coordinate is half the advanceWidth to the right of the horizontal origin.

+
+ + dd368084 + unsigned int advanceHeight + unsigned int advanceHeight +
+ + +

Specifies the vertical distance from the bottom edge of the black box to the advance height. This is positive when the bottom edge of the black box is within the layout box, or negative when the bottom edge of black box overhangs the layout box.

+
+ + dd368084 + int bottomSideBearing + int bottomSideBearing +
+ + +

Specifies the Y coordinate of a glyph's vertical origin, in the font's design coordinate system. The y coordinate of a glyph's vertical origin is the sum of the glyph's top side bearing and the top (that is, yMax) of the glyph's bounding box.

+
+ + dd368084 + int verticalOriginY + int verticalOriginY +
+ + +

The optional adjustment to a glyph's position.

+
+ +

An glyph offset changes the position of a glyph without affecting the pen position. Offsets are in logical, pre-transform units.

+
+ + dd368086 + DWRITE_GLYPH_OFFSET + DWRITE_GLYPH_OFFSET +
+ + +

The offset in the advance direction of the run. A positive advance offset moves the glyph to the right (in pre-transform coordinates) if the run is left-to-right or to the left if the run is right-to-left.

+
+ + dd368086 + float advanceOffset + float advanceOffset +
+ + +

The offset in the ascent direction, that is, the direction ascenders point. A positive ascender offset moves the glyph up (in pre-transform coordinates). A negative ascender offset moves the glyph down.

+
+ + dd368086 + float ascenderOffset + float ascenderOffset +
+ + +

Describes the region obtained by a hit test.

+
+ + dd368092 + DWRITE_HIT_TEST_METRICS + DWRITE_HIT_TEST_METRICS +
+ + +

The first text position within the hit region.

+
+ + dd368092 + unsigned int textPosition + unsigned int textPosition +
+ + +

The number of text positions within the hit region.

+
+ + dd368092 + unsigned int length + unsigned int length +
+ + +

The x-coordinate of the upper-left corner of the hit region.

+
+ + dd368092 + float left + float left +
+ + +

The y-coordinate of the upper-left corner of the hit region.

+
+ + dd368092 + float top + float top +
+ + +

The width of the hit region.

+
+ + dd368092 + float width + float width +
+ + +

The height of the hit region.

+
+ + dd368092 + float height + float height +
+ + +

The BIDI level of the text positions within the hit region.

+
+ + dd368092 + unsigned int bidiLevel + unsigned int bidiLevel +
+ + +

true if the hit region contains text; otherwise, false.

+
+ + dd368092 + BOOL isText + BOOL isText +
+ + +

true if the text range is trimmed; otherwise, false.

+
+ + dd368092 + BOOL isTrimmed + BOOL isTrimmed +
+ + +

Contains properties describing the geometric measurement of an + application-defined inline object.

+
+ + dd368096 + DWRITE_INLINE_OBJECT_METRICS + DWRITE_INLINE_OBJECT_METRICS +
+ + +

The width of the inline object.

+
+ + dd368096 + float width + float width +
+ + +

The height of the inline object.

+
+ + dd368096 + float height + float height +
+ + +

The distance from the top of the object to the point where it is lined up with the adjacent text. If the baseline is at the bottom, then baseline simply equals height.

+
+ + dd368096 + float baseline + float baseline +
+ + +

A Boolean flag that indicates whether the object is to be placed upright or alongside the text baseline for vertical text.

+
+ + dd368096 + BOOL supportsSideways + BOOL supportsSideways +
+ + +

Contains information about a formatted line of text.

+
+ + dd368099 + DWRITE_LINE_METRICS + DWRITE_LINE_METRICS +
+ + +

The number of text positions in the text line. This includes any trailing whitespace and newline characters.

+
+ + dd368099 + unsigned int length + unsigned int length +
+ + +

The number of whitespace positions at the end of the text line. Newline sequences are considered whitespace.

+
+ + dd368099 + unsigned int trailingWhitespaceLength + unsigned int trailingWhitespaceLength +
+ + +

The number of characters in the newline sequence at the end of the text line. If the count is zero, then the text line was either wrapped or it is the end of the text.

+
+ + dd368099 + unsigned int newlineLength + unsigned int newlineLength +
+ + +

The height of the text line.

+
+ + dd368099 + float height + float height +
+ + +

The distance from the top of the text line to its baseline.

+
+ + dd368099 + float baseline + float baseline +
+ + +

The line is trimmed.

+
+ + dd368099 + BOOL isTrimmed + BOOL isTrimmed +
+ + +

Indicates how much any visible DIPs (device independent pixels) overshoot each side of the layout or inline objects.

Positive overhangs indicate that the visible area extends outside the layout box or inline object, while negative values mean there is whitespace inside. The returned values are unaffected by rendering transforms or pixel snapping. Additionally, they may not exactly match the final target's pixel bounds after applying grid fitting and hinting.

+
+ + dd368109 + DWRITE_OVERHANG_METRICS + DWRITE_OVERHANG_METRICS +
+ + +

The distance from the left-most visible DIP to its left-alignment edge.

+
+ + dd368109 + float left + float left +
+ + +

The distance from the top-most visible DIP to its top alignment edge.

+
+ + dd368109 + float top + float top +
+ + +

The distance from the right-most visible DIP to its right-alignment edge.

+
+ + dd368109 + float right + float right +
+ + +

The distance from the bottom-most visible DIP to its lower-alignment edge.

+
+ + dd368109 + float bottom + float bottom +
+ + +

Stores the association of text and its writing system script, as well as some display attributes.

+
+ + dd368120 + DWRITE_SCRIPT_ANALYSIS + DWRITE_SCRIPT_ANALYSIS +
+ + +

The zero-based index representation of writing system script.

+
+ + dd368120 + unsigned short script + unsigned short script +
+ + +

A value that indicates additional shaping requirement of text.

+
+ + dd368120 + DWRITE_SCRIPT_SHAPES shapes + DWRITE_SCRIPT_SHAPES shapes +
+ + +

Shaping output properties for an output glyph.

+
+ + dd368125 + DWRITE_SHAPING_TEXT_PROPERTIES + DWRITE_SHAPING_TEXT_PROPERTIES +
+ + +

Indicates that the glyph is shaped alone.

+
+ + dd368125 + unsigned short isShapedAlone + unsigned short isShapedAlone +
+ + +

Reserved for future use.

+
+ + dd368125 + unsigned short reserved + unsigned short reserved +
+ + +

Contains information regarding the size and placement of strikethroughs. All coordinates are in device independent pixels (DIPs).

+
+ + dd368126 + DWRITE_STRIKETHROUGH + DWRITE_STRIKETHROUGH +
+ + +

A value that indicates the width of the strikethrough, measured parallel to the baseline.

+
+ + dd368126 + float width + float width +
+ + +

A value that indicates the thickness of the strikethrough, measured perpendicular to the baseline.

+
+ + dd368126 + float thickness + float thickness +
+ + +

A value that indicates the offset of the strikethrough from the baseline. A positive offset represents a position below the baseline and a negative offset is above. Typically, the offset will be negative.

+
+ + dd368126 + float offset + float offset +
+ + +

Reading direction of the text associated with the strikethrough. This value is used to interpret whether the width value runs horizontally or vertically.

+
+ + dd368126 + DWRITE_READING_DIRECTION readingDirection + DWRITE_READING_DIRECTION readingDirection +
+ + +

Flow direction of the text associated with the strikethrough. This value is used to interpret whether the thickness value advances top to bottom, left to right, or right to left.

+
+ + dd368126 + DWRITE_FLOW_DIRECTION flowDirection + DWRITE_FLOW_DIRECTION flowDirection +
+ + +

An array of characters containing the locale of the text that is the strikethrough is being drawn over.

+
+ + dd368126 + const wchar_t* localeName + wchar_t localeName +
+ + +

The measuring mode can be useful to the renderer to determine how underlines are rendered, such as rounding the thickness to a whole pixel in GDI-compatible modes.

+
+ + dd368126 + DWRITE_MEASURING_MODE measuringMode + DWRITE_MEASURING_MODE measuringMode +
+ + +

Contains the metrics associated with text after layout. All coordinates are in device independent pixels (DIPs).

+
+ + dd368135 + DWRITE_TEXT_METRICS + DWRITE_TEXT_METRICS +
+ + +

A value that indicates the left-most point of formatted text relative to the layout box, while excluding any glyph overhang.

+
+ + dd368135 + float left + float left +
+ + +

A value that indicates the top-most point of formatted text relative to the layout box, while excluding any glyph overhang.

+
+ + dd368135 + float top + float top +
+ + +

A value that indicates the width of the formatted text, while ignoring trailing whitespace at the end of each line.

+
+ + dd368135 + float width + float width +
+ + +

The width of the formatted text, taking into account the trailing whitespace at the end of each line.

+
+ + dd368135 + float widthIncludingTrailingWhitespace + float widthIncludingTrailingWhitespace +
+ + +

The height of the formatted text. The height of an empty string is set to the same value as that of the default font.

+
+ + dd368135 + float height + float height +
+ + +

The initial width given to the layout. It can be either larger or smaller than the text content width, depending on whether the text was wrapped.

+
+ + dd368135 + float layoutWidth + float layoutWidth +
+ + +

Initial height given to the layout. Depending on the length of the text, it may be larger or smaller than the text content height.

+
+ + dd368135 + float layoutHeight + float layoutHeight +
+ + +

The maximum reordering count of any line of text, used to calculate the most number of hit-testing boxes needed. If the layout has no bidirectional text, or no text at all, the minimum level is 1.

+
+ + dd368135 + unsigned int maxBidiReorderingDepth + unsigned int maxBidiReorderingDepth +
+ + +

Total number of lines.

+
+ + dd368135 + unsigned int lineCount + unsigned int lineCount +
+ + +

Specifies the trimming option for text overflowing the layout box.

+
+ + dd368139 + DWRITE_TRIMMING + DWRITE_TRIMMING +
+ + +

A value that specifies the text granularity used to trim text overflowing the layout box.

+
+ + dd368139 + DWRITE_TRIMMING_GRANULARITY granularity + DWRITE_TRIMMING_GRANULARITY granularity +
+ + +

A character code used as the delimiter that signals the beginning of the portion of text to be preserved. Most useful for path ellipsis, where the delimiter would be a slash.

+
+ + dd368139 + unsigned int delimiter + unsigned int delimiter +
+ + +

A value that indicates how many occurrences of the delimiter to step back.

+
+ + dd368139 + unsigned int delimiterCount + unsigned int delimiterCount +
+ + +

Contains a set of typographic features to be applied during text shaping.

+
+ + dd368143 + DWRITE_TYPOGRAPHIC_FEATURES + DWRITE_TYPOGRAPHIC_FEATURES +
+ + +

A reference to a structure that specifies properties used to identify and execute typographic features in the font.

+
+ + dd368143 + DWRITE_FONT_FEATURE* features + DWRITE_FONT_FEATURE features +
+ + +

A value that indicates the number of features being applied to a font face.

+
+ + dd368143 + unsigned int featureCount + unsigned int featureCount +
+ + +

Contains information about the width, thickness, offset, run height, reading direction, and flow direction of an underline.

+
+ +

All coordinates are in device independent pixels (DIPs).

+
+ + dd368145 + DWRITE_UNDERLINE + DWRITE_UNDERLINE +
+ + +

A value that indicates the width of the underline, measured parallel to the baseline.

+
+ + dd368145 + float width + float width +
+ + +

A value that indicates the thickness of the underline, measured perpendicular to the baseline.

+
+ + dd368145 + float thickness + float thickness +
+ + +

A value that indicates the offset of the underline from the baseline. A positive offset represents a position below the baseline (away from the text) and a negative offset is above (toward the text).

+
+ + dd368145 + float offset + float offset +
+ + +

A value that indicates the height of the tallest run where the underline is applied.

+
+ + dd368145 + float runHeight + float runHeight +
+ + +

A value that indicates the reading direction of the text associated with the underline. This value is used to interpret whether the width value runs horizontally or vertically.

+
+ + dd368145 + DWRITE_READING_DIRECTION readingDirection + DWRITE_READING_DIRECTION readingDirection +
+ + +

A value that indicates the flow direction of the text associated with the underline. This value is used to interpret whether the thickness value advances top to bottom, left to right, or right to left.

+
+ + dd368145 + DWRITE_FLOW_DIRECTION flowDirection + DWRITE_FLOW_DIRECTION flowDirection +
+ + +

An array of characters which contains the locale of the text that the underline is being drawn under. For example, in vertical text, the underline belongs on the left for Chinese but on the right for Japanese.

+
+ + dd368145 + const wchar_t* localeName + wchar_t localeName +
+ + +

The measuring mode can be useful to the renderer to determine how underlines are rendered, such as rounding the thickness to a whole pixel in GDI-compatible modes.

+
+ + dd368145 + DWRITE_MEASURING_MODE measuringMode + DWRITE_MEASURING_MODE measuringMode +
+ + +

Specifies how the alpha value of a bitmap or render target should be treated.

+
+ +

The enumeration is used with the enumeration to specify the alpha mode of a render target or bitmap. Different render targets and bitmaps support different alpha modes. For a list, see Supported Pixel Formats and Alpha Modes.

+
+ + dd368058 + D2D1_ALPHA_MODE + D2D1_ALPHA_MODE +
+ + +

The alpha value might not be meaningful.

+
+ + dd368058 + D2D1_ALPHA_MODE_UNKNOWN + D2D1_ALPHA_MODE_UNKNOWN +
+ + +

The alpha value has been premultiplied. Each color is first scaled by the alpha value. The alpha value itself is the same in both straight and premultiplied alpha. Typically, no color channel value is greater than the alpha channel value. If a color channel value in a premultiplied format is greater than the alpha channel, the standard source-over blending math results in an additive blend.

+
+ + dd368058 + D2D1_ALPHA_MODE_PREMULTIPLIED + D2D1_ALPHA_MODE_PREMULTIPLIED +
+ + +

The alpha value has not been premultiplied. The alpha channel indicates the transparency of the color.

+
+ + dd368058 + D2D1_ALPHA_MODE_STRAIGHT + D2D1_ALPHA_MODE_STRAIGHT +
+ + +

The alpha value is ignored.

+
+ + dd368058 + D2D1_ALPHA_MODE_IGNORE + D2D1_ALPHA_MODE_IGNORE +
+ + +

Specifies how the edges of nontext primitives are rendered.

+
+ + dd368061 + D2D1_ANTIALIAS_MODE + D2D1_ANTIALIAS_MODE +
+ + +

Edges are antialiased using the Direct2D per-primitive method of high-quality antialiasing.

+
+ + dd368061 + D2D1_ANTIALIAS_MODE_PER_PRIMITIVE + D2D1_ANTIALIAS_MODE_PER_PRIMITIVE +
+ + +

Objects are aliased in most cases. Objects are antialiased only when they are drawn to a render target created by the CreateDxgiSurfaceRenderTarget method and Direct3D multisampling has been enabled on the backing DirectX Graphics Infrastructure (DXGI) surface.

+
+ + dd368061 + D2D1_ANTIALIAS_MODE_ALIASED + D2D1_ANTIALIAS_MODE_ALIASED +
+ + +

Specifies whether an arc should be greater than 180 degrees.

+
+ + dd368068 + D2D1_ARC_SIZE + D2D1_ARC_SIZE +
+ + +

An arc's sweep should be 180 degrees or less.

+
+ + dd368068 + D2D1_ARC_SIZE_SMALL + D2D1_ARC_SIZE_SMALL +
+ + +

An arc's sweep should be 180 degrees or greater.

+
+ + dd368068 + D2D1_ARC_SIZE_LARGE + D2D1_ARC_SIZE_LARGE +
+ + +

Specifies the algorithm that is used when images are scaled or rotated.

Note??Starting in Windows?8, more interpolations modes are available. See D2D1_INTERPOLATION_MODE for more info.

+
+ +

To stretch an image, each pixel in the original image must be mapped to a group of pixels in the larger image. To shrink an image, groups of pixels in the original image must be mapped to single pixels in the smaller image. The effectiveness of the algorithms that perform these mappings determines the quality of a scaled image. Algorithms that produce higher-quality scaled images tend to require more processing time. provides faster but lower-quality interpolation, while provides higher-quality interpolation.

+
+ + dd368073 + D2D1_BITMAP_INTERPOLATION_MODE + D2D1_BITMAP_INTERPOLATION_MODE +
+ + + No documentation. + + + dd368073 + D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR + D2D1_BITMAP_INTERPOLATION_MODE_NEAREST_NEIGHBOR + + + + No documentation. + + + dd368073 + D2D1_BITMAP_INTERPOLATION_MODE_LINEAR + D2D1_BITMAP_INTERPOLATION_MODE_LINEAR + + + +

Describes the shape at the end of a line or segment.

+
+ +

The following illustration shows the available cap styles for lines or segments. The red portion of the line shows the extra area added by the line cap setting.

+
+ + dd368079 + D2D1_CAP_STYLE + D2D1_CAP_STYLE +
+ + +

A cap that does not extend past the last point of the line. Comparable to cap used for objects other than lines.

+
+ + dd368079 + D2D1_CAP_STYLE_FLAT + D2D1_CAP_STYLE_FLAT +
+ + +

Half of a square that has a length equal to the line thickness.

+
+ + dd368079 + D2D1_CAP_STYLE_SQUARE + D2D1_CAP_STYLE_SQUARE +
+ + +

A semicircle that has a diameter equal to the line thickness.

+
+ + dd368079 + D2D1_CAP_STYLE_ROUND + D2D1_CAP_STYLE_ROUND +
+ + +

An isosceles right triangle whose hypotenuse is equal in length to the thickness of the line.

+
+ + dd368079 + D2D1_CAP_STYLE_TRIANGLE + D2D1_CAP_STYLE_TRIANGLE +
+ + +

Specifies the different methods by which two geometries can be combined.

+
+ +

The following illustration shows the different geometry combine modes. +

+
+ + dd368083 + D2D1_COMBINE_MODE + D2D1_COMBINE_MODE +
+ + +

The two regions are combined by taking the union of both. Given two geometries, A and B, the resulting geometry is geometry A + geometry B.

+
+ + dd368083 + D2D1_COMBINE_MODE_UNION + D2D1_COMBINE_MODE_UNION +
+ + +

The two regions are combined by taking their intersection. The new area consists of the overlapping region between the two geometries.

+
+ + dd368083 + D2D1_COMBINE_MODE_INTERSECT + D2D1_COMBINE_MODE_INTERSECT +
+ + +

The two regions are combined by taking the area that exists in the first region but not the second and the area that exists in the second region but not the first. Given two geometries, A and B, the new region consists of (A-B) + (B-A).

+
+ + dd368083 + D2D1_COMBINE_MODE_XOR + D2D1_COMBINE_MODE_XOR +
+ + +

The second region is excluded from the first. Given two geometries, A and B, the area of geometry B is removed from the area of geometry A, producing a region that is A-B.

+
+ + dd368083 + D2D1_COMBINE_MODE_EXCLUDE + D2D1_COMBINE_MODE_EXCLUDE +
+ + +

Specifies additional features supportable by a compatible render target when it is created. This enumeration allows a bitwise combination of its member values.

+
+ +

Use this enumeration when creating a compatible render target with the CreateCompatibleRenderTarget method. For more information about compatible render targets, see the Render Targets Overview.

The option may only be requested if the parent render target was created with (for most render targets) or (for render targets created by the CreateCompatibleRenderTarget method).

+
+ + dd368085 + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS +
+ + +

The render target supports no additional features.

+
+ + dd368085 + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_NONE +
+ + +

The render target supports interoperability with the Windows Graphics Device Interface (GDI).

+
+ + dd368085 + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE + D2D1_COMPATIBLE_RENDER_TARGET_OPTIONS_GDI_COMPATIBLE +
+ + +

Describes the sequence of dashes and gaps in a stroke.

+
+ +

The following illustration shows several available dash styles. For more information, see the Stroke Style Example.

+
+ + dd368087 + D2D1_DASH_STYLE + D2D1_DASH_STYLE +
+ + +

A solid line with no breaks.

+
+ + dd368087 + D2D1_DASH_STYLE_SOLID + D2D1_DASH_STYLE_SOLID +
+ + +

A dash followed by a gap of equal length. The dash and the gap are each twice as long as the stroke thickness.

The equivalent dash array for is {2, 2}.

+
+ + dd368087 + D2D1_DASH_STYLE_DASH + D2D1_DASH_STYLE_DASH +
+ + +

A dot followed by a longer gap.

The equivalent dash array for is {0, 2}.

+
+ + dd368087 + D2D1_DASH_STYLE_DOT + D2D1_DASH_STYLE_DOT +
+ + +

A dash, followed by a gap, followed by a dot, followed by another gap.

The equivalent dash array for is {2, 2, 0, 2}.

+
+ + dd368087 + D2D1_DASH_STYLE_DASH_DOT + D2D1_DASH_STYLE_DASH_DOT +
+ + +

A dash, followed by a gap, followed by a dot, followed by another gap, followed by another dot, followed by another gap.

The equivalent dash array for is {2, 2, 0, 2, 0, 2}.

+
+ + dd368087 + D2D1_DASH_STYLE_DASH_DOT_DOT + D2D1_DASH_STYLE_DASH_DOT_DOT +
+ + +

The dash pattern is specified by an array of floating-point values.

+
+ + dd368087 + D2D1_DASH_STYLE_CUSTOM + D2D1_DASH_STYLE_CUSTOM +
+ + +

Indicates the type of information provided by the Direct2D Debug Layer.

+
+ +

To receive debugging messages, you must install the Direct2D Debug Layer.

+
+ + dd368090 + D2D1_DEBUG_LEVEL + D2D1_DEBUG_LEVEL +
+ + + No documentation. + + + dd368090 + D2D1_DEBUG_LEVEL_NONE + D2D1_DEBUG_LEVEL_NONE + + + + No documentation. + + + dd368090 + D2D1_DEBUG_LEVEL_ERROR + D2D1_DEBUG_LEVEL_ERROR + + + + No documentation. + + + dd368090 + D2D1_DEBUG_LEVEL_WARNING + D2D1_DEBUG_LEVEL_WARNING + + + + No documentation. + + + dd368090 + D2D1_DEBUG_LEVEL_INFORMATION + D2D1_DEBUG_LEVEL_INFORMATION + + + +

Specifies how a device context is initialized for GDI rendering when it is retrieved from the render target.

+
+ +

Use this enumeration with the method to specify how the device context is initialized for GDI rendering.

+
+ + dd368088 + D2D1_DC_INITIALIZE_MODE + D2D1_DC_INITIALIZE_MODE +
+ + +

The current contents of the render target are copied to the device context when it is initialized.

+
+ + dd368088 + D2D1_DC_INITIALIZE_MODE_COPY + D2D1_DC_INITIALIZE_MODE_COPY +
+ + +

The device context is cleared to transparent black when it is initialized.

+
+ + dd368088 + D2D1_DC_INITIALIZE_MODE_CLEAR + D2D1_DC_INITIALIZE_MODE_CLEAR +
+ + +

Specifies whether text snapping is suppressed or clipping to the layout rectangle is enabled. This enumeration allows a bitwise combination of its member values.

+
+ + dd368095 + D2D1_DRAW_TEXT_OPTIONS + D2D1_DRAW_TEXT_OPTIONS +
+ + +

Text is not vertically snapped to pixel boundaries. This setting is recommended for text that is being animated.

+
+ + dd368095 + D2D1_DRAW_TEXT_OPTIONS_NO_SNAP + D2D1_DRAW_TEXT_OPTIONS_NO_SNAP +
+ + +

Text is clipped to the layout rectangle.

+
+ + dd368095 + D2D1_DRAW_TEXT_OPTIONS_CLIP + D2D1_DRAW_TEXT_OPTIONS_CLIP +
+ + +

Text is vertically snapped to pixel boundaries and is not clipped to the layout rectangle.

+
+ + dd368095 + D2D1_DRAW_TEXT_OPTIONS_NONE + D2D1_DRAW_TEXT_OPTIONS_NONE +
+ + +

Specifies how a brush paints areas outside of its normal content area.

+
+ +

For an , the brush's content is the brush's bitmap. For an , the brush's content area is the gradient axis. For an , the brush's content is the area within the gradient ellipse.

For an example, see the Draw Extend Mode Example.

+
+ + dd368100 + D2D1_EXTEND_MODE + D2D1_EXTEND_MODE +
+ + +

Repeat the edge pixels of the brush's content for all regions outside the normal content area.

+
+ + dd368100 + D2D1_EXTEND_MODE_CLAMP + D2D1_EXTEND_MODE_CLAMP +
+ + +

Repeat the brush's content.

+
+ + dd368100 + D2D1_EXTEND_MODE_WRAP + D2D1_EXTEND_MODE_WRAP +
+ + +

The same as , except that alternate tiles of the brush's content are flipped. (The brush's normal content is drawn untransformed.)

+
+ + dd368100 + D2D1_EXTEND_MODE_MIRROR + D2D1_EXTEND_MODE_MIRROR +
+ + +

Specifies whether Direct2D provides synchronization for an and the resources it creates, so that they may be safely accessed from multiple threads.

+
+ +

When you create a factory, you can specify whether it is multithreaded or singlethreaded. A singlethreaded factory provides no serialization against any other single threaded instance within Direct2D, so this mechanism provides a very large degree of scaling on the CPU.

You can also create a multithreaded factory instance. In this case, the factory and all derived objects can be used from any thread, and each render target can be rendered to independently. Direct2D serializes calls to these objects, so a single multithreaded Direct2D instance won't scale as well on the CPU as many single threaded instances. However, the resources can be shared within the multithreaded instance.

Note the qualifier "On the CPU": GPUs generally take advantage of fine-grained parallelism more so than CPUs. For example, multithreaded calls from the CPU might still end up being serialized when being sent to the GPU; however, a whole bank of pixel and vertex shaders will run in parallel to perform the rendering.

+
+ + dd368104 + D2D1_FACTORY_TYPE + D2D1_FACTORY_TYPE +
+ + + No documentation. + + + dd368104 + D2D1_FACTORY_TYPE_SINGLE_THREADED + D2D1_FACTORY_TYPE_SINGLE_THREADED + + + + No documentation. + + + dd368104 + D2D1_FACTORY_TYPE_MULTI_THREADED + D2D1_FACTORY_TYPE_MULTI_THREADED + + + +

Describes the minimum DirectX support required for hardware rendering by a render target.

+
+ + dd756628 + D2D1_FEATURE_LEVEL + D2D1_FEATURE_LEVEL +
+ + +

Direct2D determines whether the video card provides adequate hardware rendering support.

+
+ + dd756628 + D2D1_FEATURE_LEVEL_DEFAULT + D2D1_FEATURE_LEVEL_DEFAULT +
+ + +

The video card must support DirectX 9.

+
+ + dd756628 + D2D1_FEATURE_LEVEL_9 + D2D1_FEATURE_LEVEL_9 +
+ + +

The video card must support DirectX 10.

+
+ + dd756628 + D2D1_FEATURE_LEVEL_10 + D2D1_FEATURE_LEVEL_10 +
+ + +

Indicates whether a specific figure is filled or hollow.

+
+ +

Note??A hollow figure is not filled and consists only of an outline.

+
+ + dd368106 + D2D1_FIGURE_BEGIN + D2D1_FIGURE_BEGIN +
+ + + No documentation. + + + dd368106 + D2D1_FIGURE_BEGIN_FILLED + D2D1_FIGURE_BEGIN_FILLED + + + + No documentation. + + + dd368106 + D2D1_FIGURE_BEGIN_HOLLOW + D2D1_FIGURE_BEGIN_HOLLOW + + + +

Indicates whether a specific figure is open or closed.

+
+ + dd368108 + D2D1_FIGURE_END + D2D1_FIGURE_END +
+ + + No documentation. + + + dd368108 + D2D1_FIGURE_END_OPEN + D2D1_FIGURE_END_OPEN + + + + No documentation. + + + dd368108 + D2D1_FIGURE_END_CLOSED + D2D1_FIGURE_END_CLOSED + + + +

Specifies how the intersecting areas of geometries or figures are combined to form the area of the composite geometry.

+
+ +

Use the enumeration when creating an with the CreateGeometryGroup method, or when modifying the fill mode of an with the method.

Direct2D fills the interior of a path by using one of the two fill modes specified by this enumeration: (alternate) or (winding). Because the modes determine how to fill the interior of a closed shape, all shapes are treated as closed when they are filled. If there is a gap in a segment in a shape, draw an imaginary line to close it.

To see the difference between the winding and alternate fill modes, assume that you have four circles with the same center and a different radius, as shown in the following illustration. The first one has the radius of 25, the second 50, the third 75, and the fourth 100.

The following illustration shows the shape filled by using the alternate fill mode. Notice that the center and third ring are not filled. This is because a ray drawn from any point in either of those two rings passes through an even number of segments.

The following illustration explains this process.

The following illustration shows how the same shape is filled when the winding fill mode is specified.

Notice that all the rings are filled. This is because all the segments run in the same direction, so a ray drawn from any point will cross one or more segments, and the sum of the crossings will not equal zero.

The following illustration explains this process. The red arrows represent the direction in which the segments are drawn and the black arrow represents an arbitrary ray that runs from a point in the innermost ring. Starting with a value of zero, for each segment that the ray crosses, a value of one is added for every clockwise intersection. All points lie in the fill region in this illustration, because the count does not equal zero.

+
+ + dd368110 + D2D1_FILL_MODE + D2D1_FILL_MODE +
+ + +

Determines whether a point is in the fill region by drawing a ray from that point to infinity in any direction, and then counting the number of path segments within the given shape that the ray crosses. If this number is odd, the point is in the fill region; if even, the point is outside the fill region.

+
+ + dd368110 + D2D1_FILL_MODE_ALTERNATE + D2D1_FILL_MODE_ALTERNATE +
+ + +

Determines whether a point is in the fill region of the path by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray. Starting with a count of zero, add one each time a segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left, as long as left and right are seen from the perspective of the ray. After counting the crossings, if the result is zero, then the point is outside the path. Otherwise, it is inside the path.

+
+ + dd368110 + D2D1_FILL_MODE_WINDING + D2D1_FILL_MODE_WINDING +
+ + +

Specifies which gamma is used for interpolation.

+
+ +

Interpolating in a linear gamma space () can avoid changes in perceived brightness caused by the effect of gamma correction in spaces where the gamma is not 1.0, such as the default sRGB color space, where the gamma is 2.2. For an example of the differences between these two blending modes, consider the following illustration, which shows two gradients, each of which blends from red to blue to green:

The first gradient is interpolated linearly in the space of the render target (sRGB in this case), and one can see the dark bands between each color. The second gradient uses a gamma-correct linear interpolation, and thus does not exhibit the same variations in brightness.

+
+ + dd368113 + D2D1_GAMMA + D2D1_GAMMA +
+ + +

Interpolation is performed in the standard RGB (sRGB) gamma.

+
+ + dd368113 + D2D1_GAMMA_2_2 + D2D1_GAMMA_2_2 +
+ + +

Interpolation is performed in the linear-gamma color space.

+
+ + dd368113 + D2D1_GAMMA_1_0 + D2D1_GAMMA_1_0 +
+ + +

Describes how one geometry object is spatially related to another geometry object.

+
+ + dd368115 + D2D1_GEOMETRY_RELATION + D2D1_GEOMETRY_RELATION +
+ + +

The relationship between the two geometries cannot be determined. This value is never returned by any D2D method.

+
+ + dd368115 + D2D1_GEOMETRY_RELATION_UNKNOWN + D2D1_GEOMETRY_RELATION_UNKNOWN +
+ + +

The two geometries do not intersect at all.

+
+ + dd368115 + D2D1_GEOMETRY_RELATION_DISJOINT + D2D1_GEOMETRY_RELATION_DISJOINT +
+ + +

The instance geometry is entirely contained by the passed-in geometry.

+
+ + dd368115 + D2D1_GEOMETRY_RELATION_IS_CONTAINED + D2D1_GEOMETRY_RELATION_IS_CONTAINED +
+ + +

The instance geometry entirely contains the passed-in geometry.

+
+ + dd368115 + D2D1_GEOMETRY_RELATION_CONTAINS + D2D1_GEOMETRY_RELATION_CONTAINS +
+ + +

The two geometries overlap but neither completely contains the other.

+
+ + dd368115 + D2D1_GEOMETRY_RELATION_OVERLAP + D2D1_GEOMETRY_RELATION_OVERLAP +
+ + +

Specifies how a geometry is simplified to an .

+
+ + dd368117 + D2D1_GEOMETRY_SIMPLIFICATION_OPTION + D2D1_GEOMETRY_SIMPLIFICATION_OPTION +
+ + + No documentation. + + + dd368117 + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_CUBICS_AND_LINES + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_CUBICS_AND_LINES + + + + No documentation. + + + dd368117 + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_LINES + D2D1_GEOMETRY_SIMPLIFICATION_OPTION_LINES + + + +

Specifies options that can be applied when a layer resource is applied to create a layer.

Note??Starting in Windows?8, the option is no longer supported. See D2D1_LAYER_OPTIONS1 for Windows?8 layer options.

+
+ +

ClearType antialiasing must use the current contents of the render target to blend properly. When a pushed layer requests initializing for ClearType, Direct2D copies the current contents of the render target into the layer so that ClearType antialiasing can be performed. Rendering ClearType text into a transparent layer does not produce the desired results.

A small performance hit from re-copying content occurs when is called.

+
+ + dd368124 + D2D1_LAYER_OPTIONS + D2D1_LAYER_OPTIONS +
+ + + No documentation. + + + dd368124 + D2D1_LAYER_OPTIONS_NONE + D2D1_LAYER_OPTIONS_NONE + + + + No documentation. + + + dd368124 + D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE + D2D1_LAYER_OPTIONS_INITIALIZE_FOR_CLEARTYPE + + + +

Describes the shape that joins two lines or segments.

+
+ +

A miter limit affects how sharp miter joins are allowed to be. If the line join style is , then the join will be mitered with regular angular vertices if it doesn't extend beyond the miter limit; otherwise, the line join will be beveled.

The following illustration shows different line join settings for the same stroked path geometry. For more information, see Stroke Style Example.

+
+ + dd368130 + D2D1_LINE_JOIN + D2D1_LINE_JOIN +
+ + +

Regular angular vertices.

+
+ + dd368130 + D2D1_LINE_JOIN_MITER + D2D1_LINE_JOIN_MITER +
+ + +

Beveled vertices.

+
+ + dd368130 + D2D1_LINE_JOIN_BEVEL + D2D1_LINE_JOIN_BEVEL +
+ + +

Rounded vertices.

+
+ + dd368130 + D2D1_LINE_JOIN_ROUND + D2D1_LINE_JOIN_ROUND +
+ + +

Regular angular vertices unless the join would extend beyond the miter limit; otherwise, beveled vertices.

+
+ + dd368130 + D2D1_LINE_JOIN_MITER_OR_BEVEL + D2D1_LINE_JOIN_MITER_OR_BEVEL +
+ + +

Indicates the measuring method used for text layout.

+
+ + dd368133 + DWRITE_MEASURING_MODE + DWRITE_MEASURING_MODE +
+ + +

Specifies that text is measured using glyph ideal metrics whose values are independent to the current display resolution.

+
+ + dd368133 + DWRITE_MEASURING_MODE_NATURAL + DWRITE_MEASURING_MODE_NATURAL +
+ + +

Specifies that text is measured using glyph display-compatible metrics whose values tuned for the current display resolution.

+
+ + dd368133 + DWRITE_MEASURING_MODE_GDI_CLASSIC + DWRITE_MEASURING_MODE_GDI_CLASSIC +
+ + +

Specifies that text is measured using the same glyph display metrics as text measured by GDI using a font created with CLEARTYPE_NATURAL_QUALITY.

+
+ + dd368133 + DWRITE_MEASURING_MODE_GDI_NATURAL + DWRITE_MEASURING_MODE_GDI_NATURAL +
+ + +

Describes whether an opacity mask contains graphics or text. Direct2D uses this information to determine which gamma space to use when blending the opacity mask.

+
+ + dd756629 + D2D1_OPACITY_MASK_CONTENT + D2D1_OPACITY_MASK_CONTENT +
+ + +

The opacity mask contains graphics. The opacity mask is blended in the gamma 2.2 color space.

+
+ + dd756629 + D2D1_OPACITY_MASK_CONTENT_GRAPHICS + D2D1_OPACITY_MASK_CONTENT_GRAPHICS +
+ + +

The opacity mask contains non-GDI text. The gamma space used for blending is obtained from the render target's text rendering parameters. ().

+
+ + dd756629 + D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL + D2D1_OPACITY_MASK_CONTENT_TEXT_NATURAL +
+ + +

The opacity mask contains text rendered using the GDI-compatible rendering mode. The opacity mask is blended using the gamma for GDI rendering.

+
+ + dd756629 + D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE + D2D1_OPACITY_MASK_CONTENT_TEXT_GDI_COMPATIBLE +
+ + +

Indicates whether a segment should be stroked and whether the join between this segment and the previous one should be smooth. This enumeration allows a bitwise combination of its member values.

+
+ + dd368136 + D2D1_PATH_SEGMENT + D2D1_PATH_SEGMENT +
+ + +

The segment is joined as specified by the interface, and it is stroked.

+
+ + dd368136 + D2D1_PATH_SEGMENT_NONE + D2D1_PATH_SEGMENT_NONE +
+ + +

The segment is not stroked.

+
+ + dd368136 + D2D1_PATH_SEGMENT_FORCE_UNSTROKED + D2D1_PATH_SEGMENT_FORCE_UNSTROKED +
+ + +

The segment is always joined with the one preceding it using a round line join, regardless of which enumeration is specified by the interface. If this segment is the first segment and the figure is closed, a round line join is used to connect the closing segment with the first segment. If the figure is not closed, this setting has no effect on the first segment of the figure. If is called just before , the join between the closing segment and the last explicitly specified segment is affected.

+
+ + dd368136 + D2D1_PATH_SEGMENT_FORCE_ROUND_LINE_JOIN + D2D1_PATH_SEGMENT_FORCE_ROUND_LINE_JOIN +
+ + +

Describes how a render target behaves when it presents its content. This enumeration allows a bitwise combination of its member values.

+
+ + dd368144 + D2D1_PRESENT_OPTIONS + D2D1_PRESENT_OPTIONS +
+ + +

The render target waits until the display refreshes to present and discards the frame upon presenting.

+
+ + dd368144 + D2D1_PRESENT_OPTIONS_NONE + D2D1_PRESENT_OPTIONS_NONE +
+ + +

The render target does not discard the frame upon presenting.

+
+ + dd368144 + D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS + D2D1_PRESENT_OPTIONS_RETAIN_CONTENTS +
+ + +

The render target does not wait until the display refreshes to present.

+
+ + dd368144 + D2D1_PRESENT_OPTIONS_IMMEDIATELY + D2D1_PRESENT_OPTIONS_IMMEDIATELY +
+ + +

Describes whether a render target uses hardware or software rendering, or if Direct2D should select the rendering mode.

+
+ +

Not every render target supports hardware rendering. For more information, see the Render Targets Overview.

+
+ + dd756630 + D2D1_RENDER_TARGET_TYPE + D2D1_RENDER_TARGET_TYPE +
+ + +

The render target uses hardware rendering, if available; otherwise, it uses software rendering.

+
+ + dd756630 + D2D1_RENDER_TARGET_TYPE_DEFAULT + D2D1_RENDER_TARGET_TYPE_DEFAULT +
+ + +

The render target uses software rendering only.

+
+ + dd756630 + D2D1_RENDER_TARGET_TYPE_SOFTWARE + D2D1_RENDER_TARGET_TYPE_SOFTWARE +
+ + +

The render target uses hardware rendering only.

+
+ + dd756630 + D2D1_RENDER_TARGET_TYPE_HARDWARE + D2D1_RENDER_TARGET_TYPE_HARDWARE +
+ + +

Describes how a render target is remoted and whether it should be GDI-compatible. This enumeration allows a bitwise combination of its member values.

+
+ + dd368157 + D2D1_RENDER_TARGET_USAGE + D2D1_RENDER_TARGET_USAGE +
+ + +

The render target attempts to use Direct3D command-stream remoting and uses bitmap remoting if stream remoting fails. The render target is not GDI-compatible.

+
+ + dd368157 + D2D1_RENDER_TARGET_USAGE_NONE + D2D1_RENDER_TARGET_USAGE_NONE +
+ + +

The render target renders content locally and sends it to the terminal services client as a bitmap.

+
+ + dd368157 + D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING + D2D1_RENDER_TARGET_USAGE_FORCE_BITMAP_REMOTING +
+ + +

The render target can be used efficiently with GDI.

+
+ + dd368157 + D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE + D2D1_RENDER_TARGET_USAGE_GDI_COMPATIBLE +
+ + +

Defines the direction that an elliptical arc is drawn.

+
+ + dd368166 + D2D1_SWEEP_DIRECTION + D2D1_SWEEP_DIRECTION +
+ + +

Arcs are drawn in a counterclockwise (negative-angle) direction.

+
+ + dd368166 + D2D1_SWEEP_DIRECTION_COUNTER_CLOCKWISE + D2D1_SWEEP_DIRECTION_COUNTER_CLOCKWISE +
+ + +

Arcs are drawn in a clockwise (positive-angle) direction.

+
+ + dd368166 + D2D1_SWEEP_DIRECTION_CLOCKWISE + D2D1_SWEEP_DIRECTION_CLOCKWISE +
+ + +

Describes the antialiasing mode used for drawing text.

+
+ +

This enumeration is used with the SetTextAntialiasMode of an to specify how text and glyphs are antialiased.

By default, Direct2D renders text in ClearType mode. Factors that can downgrade the default quality to grayscale or aliased:

  • If the value is , then the default text antialiasing mode is aliased. To change the DirectWrite rendering mode of an , use the method.
  • If the value is , then the default text antialiasing mode is grayscale.
  • If the render target has an alpha channel and is not set to , then the default text antialiasing mode is grayscale.
  • If is called without (and the corresponding PopLayer has not been called yet), then the default text antialiasing mode is grayscale.
+
+ + dd368170 + D2D1_TEXT_ANTIALIAS_MODE + D2D1_TEXT_ANTIALIAS_MODE +
+ + +

Use the system default. See Remarks.

+
+ + dd368170 + D2D1_TEXT_ANTIALIAS_MODE_DEFAULT + D2D1_TEXT_ANTIALIAS_MODE_DEFAULT +
+ + +

Use ClearType antialiasing.

+
+ + dd368170 + D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE + D2D1_TEXT_ANTIALIAS_MODE_CLEARTYPE +
+ + +

Use grayscale antialiasing.

+
+ + dd368170 + D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE + D2D1_TEXT_ANTIALIAS_MODE_GRAYSCALE +
+ + +

Do not use antialiasing.

+
+ + dd368170 + D2D1_TEXT_ANTIALIAS_MODE_ALIASED + D2D1_TEXT_ANTIALIAS_MODE_ALIASED +
+ + +

Describes whether a window is occluded.

+
+ +

If the window was occluded the last time EndDraw was called, the next time the render target calls CheckWindowState, it returns regardless of the current window state. If you want to use CheckWindowState to check the current window state, call CheckWindowState after every EndDraw call and ignore its return value. This will ensure that your next call to CheckWindowState state returns the actual window state.

+
+ + dd368174 + D2D1_WINDOW_STATE + D2D1_WINDOW_STATE +
+ + +

The window is not occluded.

+
+ + dd368174 + D2D1_WINDOW_STATE_NONE + D2D1_WINDOW_STATE_NONE +
+ + +

The window is occluded.

+
+ + dd368174 + D2D1_WINDOW_STATE_OCCLUDED + D2D1_WINDOW_STATE_OCCLUDED +
+ + + Functions + + + + + Constant MaximumTextureSizeExceeded. + D2DERR_MAX_TEXTURE_SIZE_EXCEEDED + + + Constant NoHardwareDevice. + D2DERR_NO_HARDWARE_DEVICE + + + Constant WrongResourceDomain. + D2DERR_WRONG_RESOURCE_DOMAIN + + + Constant InvalidCall. + D2DERR_INVALID_CALL + + + Constant Win32Error. + D2DERR_WIN32_ERROR + + + Constant ExceedsMaximumBitmapSize. + D2DERR_EXCEEDS_MAX_BITMAP_SIZE + + + Constant PopCallDidNotMatchPush. + D2DERR_POP_CALL_DID_NOT_MATCH_PUSH + + + Constant UnsupportedVersion. + D2DERR_UNSUPPORTED_VERSION + + + Constant ZeroVector. + D2DERR_ZERO_VECTOR + + + Constant UnsupportedPixelFormat. + D2DERR_UNSUPPORTED_PIXEL_FORMAT + + + Constant ShaderCompileFailed. + D2DERR_SHADER_COMPILE_FAILED + + + Constant ScannerFailed. + D2DERR_SCANNER_FAILED + + + Constant TooManyShaderElements. + D2DERR_TOO_MANY_SHADER_ELEMENTS + + + Constant TextRendererNotReleased. + D2DERR_TEXT_RENDERER_NOT_RELEASED + + + Constant IncompatibleBrushTypes. + D2DERR_INCOMPATIBLE_BRUSH_TYPES + + + Constant ScreenAccessDenied. + D2DERR_SCREEN_ACCESS_DENIED + + + Constant LayerAlreadyInUse. + D2DERR_LAYER_ALREADY_IN_USE + + + Constant InternalError. + D2DERR_INTERNAL_ERROR + + + Constant RenderTargetHasLayerOrCliprect. + D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT + + + Constant WrongState. + D2DERR_WRONG_STATE + + + Constant DisplayStateInvalid. + D2DERR_DISPLAY_STATE_INVALID + + + Constant RecreateTarget. + D2DERR_RECREATE_TARGET + + + Constant TextEffectIsWrongType. + D2DERR_TEXT_EFFECT_IS_WRONG_TYPE + + + Constant UnsupportedOperation. + D2DERR_UNSUPPORTED_OPERATION + + + Constant WrongFactory. + D2DERR_WRONG_FACTORY + + + Constant PushPopUnbalanced. + D2DERR_PUSH_POP_UNBALANCED + + + Constant DisplayFormatNotSupported. + D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED + + + Constant NotInitializeD. + D2DERR_NOT_INITIALIZED + + + Constant TargetNotGdiCompatible. + D2DERR_TARGET_NOT_GDI_COMPATIBLE + + + Constant BadNumber. + D2DERR_BAD_NUMBER + + + +

Issues drawing commands to a GDI device context.

+
+ + dd371213 + ID2D1DCRenderTarget + ID2D1DCRenderTarget +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Binds the render target to the device context to which it issues drawing commands.

+
+

The device context to which the render target issues drawing commands.

+

The dimensions of the handle to a device context () to which the render target is bound.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Before you can render with the DC render target, you must use its BindDC method to associate it with a GDI DC. You do this each time you use a different DC, or the size of the area you want to draw to changes.

+
+ + dd371214 + HRESULT ID2D1DCRenderTarget::BindDC([In] const HDC hDC,[In] const RECT* pSubRect) + ID2D1DCRenderTarget::BindDC +
+ + + Creates a render target that draws to a Windows Graphics Device Interface (GDI) device context. + + + Before you can render with a DC render target, you must use the render target's {{BindDC}} method to associate it with a GDI DC. Do this for each different DC and whenever there is a change in the size of the area you want to draw to.To enable the DC render target to work with GDI, set the render target's DXGI format to and alpha mode to or D2D1_ALPHA_MODE_IGNORE.Your application should create render targets once and hold on to them for the life of the application or until the render target's {{EndDraw}} method returns the {{D2DERR_RECREATE_TARGET}} error. When you receive this error, recreate the render target (and any resources it created). + + an instance of + The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. To enable the device context (DC) render target to work with GDI, set the DXGI format to and the alpha mode to or D2D1_ALPHA_MODE_IGNORE. For more information about pixel formats, see {{Supported Pixel Formats and Alpha Modes}}. + + + +

Represents the drawing state of a render target: the antialiasing mode, transform, tags, and text-rendering options.

+
+ + dd371218 + ID2D1DrawingStateBlock + ID2D1DrawingStateBlock +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the antialiasing mode, transform, and tags portion of the drawing state.

+
+

When this method returns, contains the antialiasing mode, transform, and tags portion of the drawing state. You must allocate storage for this parameter.

+ + dd371223 + void ID2D1DrawingStateBlock::GetDescription([Out] D2D1_DRAWING_STATE_DESCRIPTION* stateDescription) + ID2D1DrawingStateBlock::GetDescription +
+ + +

Specifies the antialiasing mode, transform, and tags portion of the drawing state.

+
+

The antialiasing mode, transform, and tags portion of the drawing state.

+ + dd371231 + void ID2D1DrawingStateBlock::SetDescription([In] const D2D1_DRAWING_STATE_DESCRIPTION* stateDescription) + ID2D1DrawingStateBlock::SetDescription +
+ + +

Specifies the text-rendering configuration of the drawing state.

+
+

The text-rendering configuration of the drawing state, or null to use default settings.

+ + dd371237 + void ID2D1DrawingStateBlock::SetTextRenderingParams([In, Optional] IDWriteRenderingParams* textRenderingParams) + ID2D1DrawingStateBlock::SetTextRenderingParams +
+ + +

Retrieves the text-rendering configuration of the drawing state.

+
+

When this method returns, contains the address of a reference to an object that describes the text-rendering configuration of the drawing state.

+ + dd371227 + void ID2D1DrawingStateBlock::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams) + ID2D1DrawingStateBlock::GetTextRenderingParams +
+ + + Creates an that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. + + an instance of + + + + Creates an that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. + + an instance of + A structure that contains antialiasing, transform, and tags information. + + + + Creates an that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. + + an instance of + Optional text parameters that indicate how text should be rendered. + + + + Creates an that can be used with the {{SaveDrawingState}} and {{RestoreDrawingState}} methods of a render target. + + an instance of + A structure that contains antialiasing, transform, and tags information. + Optional text parameters that indicate how text should be rendered. + + + +

Retrieves or sets the antialiasing mode, transform, and tags portion of the drawing state.

+
+ + dd371223 + GetDescription / SetDescription + GetDescription + void ID2D1DrawingStateBlock::GetDescription([Out] D2D1_DRAWING_STATE_DESCRIPTION* stateDescription) +
+ + +

Retrieves or sets the text-rendering configuration of the drawing state.

+
+ + dd371227 + GetTextRenderingParams / SetTextRenderingParams + GetTextRenderingParams + void ID2D1DrawingStateBlock::GetTextRenderingParams([Out, Optional] IDWriteRenderingParams** textRenderingParams) +
+ + +

Represents an ellipse.

+
+ + dd371239 + ID2D1EllipseGeometry + ID2D1EllipseGeometry +
+ + +

Represents a geometry resource and defines a set of helper methods for manipulating and measuring geometric shapes. Interfaces that inherit from define specific shapes.

+
+ +

There are several types of Direct2D geometry objects: a simple geometry (, , or ), a path geometry (), or a composite geometry ( and ).

Direct2D geometries enable you to describe two-dimensional figures and also offer many uses, such as defining hit-test regions, clip regions, and even animation paths.

Direct2D geometries are immutable and device-independent resources created by . In general, you should create geometries once and retain them for the life of the application, or until they need to be modified. For more information about device-independent and device-dependent resources, see the Resources Overview.

+
+ + dd316578 + ID2D1Geometry + ID2D1Geometry +
+ + + Default flattening tolerance used for all methods that are not explicitly using it. Default is set to 0.25f. + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the bounds of the geometry.

+
+

The transform to apply to this geometry before calculating its bounds, or null.

+

When this method returns, contains the bounds of this geometry. If the bounds are empty, this parameter will be a rect where bounds.left > bounds.right. You must allocate storage for this parameter.

+ + dd316699 + HRESULT ID2D1Geometry::GetBounds([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[Out] D2D_RECT_F* bounds) + ID2D1Geometry::GetBounds +
+ + +

Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix.

+
+

The amount by which to widen the geometry by stroking its outline.

+

The style of the stroke that widens the geometry.

+

A transform to apply to the geometry after the geometry is transformed and after the geometry has been stroked.

+

When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter.

+

When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter.

+ + dd316714 + HRESULT ID2D1Geometry::GetWidenedBounds([In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] D2D_RECT_F* bounds) + ID2D1Geometry::GetWidenedBounds +
+ + +

Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform.

+
+

The point to test for containment.

+

The thickness of the stroke to apply.

+

The style of stroke to apply.

+

The transform to apply to the stroked geometry.

+

When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.

+

When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter.

+ + dd316742 + HRESULT ID2D1Geometry::StrokeContainsPoint([In] D2D_POINT_2F point,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] BOOL* contains) + ID2D1Geometry::StrokeContainsPoint +
+ + +

Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance.

+
+

The point to test.

+

The transform to apply to the geometry prior to testing for containment, or null.

+

The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution.

+

When this method returns, contains a value that is TRUE if the area filled by the geometry contains point; otherwise, .You must allocate storage for this parameter.

+ + dd316687 + HRESULT ID2D1Geometry::FillContainsPoint([In] D2D_POINT_2F point,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] BOOL* contains) + ID2D1Geometry::FillContainsPoint +
+ + +

Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance.

+
+

The geometry to test.

+

The transform to apply to inputGeometry, or null.

+

The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution.

+

When this method returns, contains a reference to a value that describes how this geometry is related to inputGeometry. You must allocate storage for this parameter.

+ +

When interpreting the returned relation value, it is important to remember that the member of the enumeration type means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry.

For more information about how to interpret other possible return values, see .

+
+ + dd316630 + HRESULT ID2D1Geometry::CompareWithGeometry([In] ID2D1Geometry* inputGeometry,[In, Optional] const D2D_MATRIX_3X2_F* inputGeometryTransform,[In] float flatteningTolerance,[Out] D2D1_GEOMETRY_RELATION* relation) + ID2D1Geometry::CompareWithGeometry +
+ + +

Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an .

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316730 + HRESULT ID2D1Geometry::Simplify([In] D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + ID2D1Geometry::Simplify +
+ + +

Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the default tolerance.

+
+

The transform to apply to this geometry.

+

The to which the tessellated is appended.

+

The to which the tessellated is appended.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316762 + HRESULT ID2D1Geometry::Tessellate([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[In] ID2D1TessellationSink* tessellationSink) + ID2D1Geometry::Tessellate +
+ + +

Combines this geometry with the specified geometry and stores the result in an .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316627 + HRESULT ID2D1Geometry::CombineWithGeometry([In] ID2D1Geometry* inputGeometry,[In] D2D1_COMBINE_MODE combineMode,[In, Optional] const D2D_MATRIX_3X2_F* inputGeometryTransform,[In] float flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + ID2D1Geometry::CombineWithGeometry +
+ + +

Computes the outline of the geometry and writes the result to an .

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Outline method allows the caller to produce a geometry with an equivalent fill to the input geometry, with the following additional properties:

  • The output geometry contains no transverse intersections; that is, segments may touch, but they never cross.
  • The outermost figures in the output geometry are all oriented counterclockwise.
  • The output geometry is fill-mode invariant; that is, the fill of the geometry does not depend on the choice of the fill mode. For more information about the fill mode, see .

Additionally, the Outline method can be useful in removing redundant portions of said geometries to simplify complex geometries. It can also be useful in combination with to create unions among several geometries simultaneously. +

+
+ + dd316725 + HRESULT ID2D1Geometry::Outline([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + ID2D1Geometry::Outline +
+ + +

Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

+
+

The transform to apply to this geometry before computing its area, or null.

+

The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution.

+

When this this method returns, contains a reference to the area of the transformed, flattened version of this geometry. You must allocate storage for this parameter.

+ + dd316641 + HRESULT ID2D1Geometry::ComputeArea([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] float* area) + ID2D1Geometry::ComputeArea +
+ + + Calculates the length of the geometry as though each segment were unrolled into a line. + + No documentation. + No documentation. + No documentation. + + dd742744 + HRESULT ID2D1Geometry::ComputeLength([In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out] float* length) + ID2D1Geometry::ComputeLength + + + +

Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance.

+
+

The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry.

+

The transform to apply to the geometry before calculating the specified point and tangent, or null.

+

The maximum error allowed when constructing a polygonal approximation of the geometry. No point in the polygonal representation will diverge from the original geometry by more than the flattening tolerance. Smaller values produce more accurate results but cause slower execution.

+

When this method returns, contains a reference to the tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter.

+

The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values.

+ + dd316676 + HRESULT ID2D1Geometry::ComputePointAtLength([In] float length,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[Out, Optional] D2D_POINT_2F* point,[Out, Optional] D2D_POINT_2F* unitTangentVector) + ID2D1Geometry::ComputePointAtLength +
+ + +

Widens the geometry by the specified stroke and writes the result to an after it has been transformed by the specified matrix and flattened using the specified tolerance.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd316766 + HRESULT ID2D1Geometry::Widen([In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D_MATRIX_3X2_F* worldTransform,[In] float flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + ID2D1Geometry::Widen +
+ + + Combines this geometry with the specified geometry and stores the result in an . + + The geometry to combine with this instance. + The type of combine operation to perform. + The result of the combine operation. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT CombineWithGeometry([In] ID2D1Geometry* inputGeometry,[None] D2D1_COMBINE_MODE combineMode,[In, Optional] const D2D1_MATRIX_3X2_F* inputGeometryTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Combines this geometry with the specified geometry and stores the result in an . + + The geometry to combine with this instance. + The type of combine operation to perform. + The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution. + The result of the combine operation. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT CombineWithGeometry([In] ID2D1Geometry* inputGeometry,[None] D2D1_COMBINE_MODE combineMode,[In, Optional] const D2D1_MATRIX_3X2_F* inputGeometryTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Combines this geometry with the specified geometry and stores the result in an . + + The geometry to combine with this instance. + The type of combine operation to perform. + The transform to apply to inputGeometry before combining, or NULL. + The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution. + The result of the combine operation. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT CombineWithGeometry([In] ID2D1Geometry* inputGeometry,[None] D2D1_COMBINE_MODE combineMode,[In, Optional] const D2D1_MATRIX_3X2_F* inputGeometryTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance. + + + When interpreting the returned relation value, it is important to remember that the member of the D2D1_GEOMETRY_RELATION enumeration type means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry. For more information about how to interpret other possible return values, see . + + The geometry to test. + When this method returns, contains a reference to a value that describes how this geometry is related to inputGeometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::CompareWithGeometry([In] ID2D1Geometry* inputGeometry,[In, Optional] const D2D1_MATRIX_3X2_F* inputGeometryTransform,[None] float flatteningTolerance,[Out] D2D1_GEOMETRY_RELATION* relation) + + + + Describes the intersection between this geometry and the specified geometry. The comparison is performed by using the specified flattening tolerance. + + + When interpreting the returned relation value, it is important to remember that the member of the D2D1_GEOMETRY_RELATION enumeration type means that this geometry is contained inside inputGeometry, not that this geometry contains inputGeometry. For more information about how to interpret other possible return values, see . + + The geometry to test. + The maximum bounds on the distance between points in the polygonal approximation of the geometries. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a reference to a value that describes how this geometry is related to inputGeometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::CompareWithGeometry([In] ID2D1Geometry* inputGeometry,[In, Optional] const D2D1_MATRIX_3X2_F* inputGeometryTransform,[None] float flatteningTolerance,[Out] D2D1_GEOMETRY_RELATION* relation) + + + + Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance. + + When this this method returns, contains a reference to the area of the transformed, flattened version of this geometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::ComputeArea([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] float* area) + + + + Computes the area of the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + When this this method returns, contains a reference to the area of the transformed, flattened version of this geometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::ComputeArea([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] float* area) + + + + Calculates the length of the geometry as though each segment were unrolled into a line. + + When this method returns, contains a reference to the length of the geometry. For closed geometries, the length includes an implicit closing segment. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::ComputeLength([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] float* length) + + + + Calculates the length of the geometry as though each segment were unrolled into a line. + + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a reference to the length of the geometry. For closed geometries, the length includes an implicit closing segment. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::ComputeLength([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] float* length) + + + + Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry. + When this method returns, contains a reference to the tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter. + The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values. + HRESULT ID2D1Geometry::ComputePointAtLength([None] float length,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out, Optional] D2D1_POINT_2F* point,[Out, Optional] D2D1_POINT_2F* unitTangentVector) + + + + Calculates the point and tangent vector at the specified distance along the geometry after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The distance along the geometry of the point and tangent to find. If this distance is less then 0, this method calculates the first point in the geometry. If this distance is greater than the length of the geometry, this method calculates the last point in the geometry. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a reference to the tangent vector at the specified distance along the geometry. If the geometry is empty, this vector contains NaN as its x and y values. You must allocate storage for this parameter. + The location at the specified distance along the geometry. If the geometry is empty, this point contains NaN as its x and y values. + HRESULT ID2D1Geometry::ComputePointAtLength([None] float length,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out, Optional] D2D1_POINT_2F* point,[Out, Optional] D2D1_POINT_2F* unitTangentVector) + + + + Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance. + + The point to test. + When this method returns, contains a bool value that is true if the area filled by the geometry contains point; otherwise, false.You must allocate storage for this parameter. + HRESULT ID2D1Geometry::FillContainsPoint([None] D2D1_POINT_2F point,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance. + + The point to test. + When this method returns, contains a bool value that is true if the area filled by the geometry contains point; otherwise, false.You must allocate storage for this parameter. + HRESULT ID2D1Geometry::FillContainsPoint([None] D2D1_POINT_2F point,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance. + + The point to test. + The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a bool value that is true if the area filled by the geometry contains point; otherwise, false.You must allocate storage for this parameter. + HRESULT ID2D1Geometry::FillContainsPoint([None] D2D1_POINT_2F point,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance. + + The point to test. + The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a bool value that is true if the area filled by the geometry contains point; otherwise, false.You must allocate storage for this parameter. + HRESULT ID2D1Geometry::FillContainsPoint([None] D2D1_POINT_2F point,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Indicates whether the area filled by the geometry would contain the specified point given the specified flattening tolerance. + + The point to test. + The transform to apply to the geometry prior to testing for containment, or NULL. + The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the fill by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a bool value that is true if the area filled by the geometry contains point; otherwise, false.You must allocate storage for this parameter. + HRESULT ID2D1Geometry::FillContainsPoint([None] D2D1_POINT_2F point,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Retrieves the bounds of the geometry. + + When this method returns, contains the bounds of this geometry. If the bounds are empty, this will be a rect where bounds.left > bounds.right. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::GetBounds([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[Out] D2D1_RECT_F* bounds) + + + + Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix. + + The amount by which to widen the geometry by stroking its outline. + When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::GetWidenedBounds([None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] D2D1_RECT_F* bounds) + + + + Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix. + + The amount by which to widen the geometry by stroking its outline. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::GetWidenedBounds([None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] D2D1_RECT_F* bounds) + + + + Gets the bounds of the geometry after it has been widened by the specified stroke width and style and transformed by the specified matrix. + + The amount by which to widen the geometry by stroking its outline. + The style of the stroke that widens the geometry. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains the bounds of the widened geometry. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::GetWidenedBounds([None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] D2D1_RECT_F* bounds) + + + + Computes the outline of the geometry and writes the result to an . + + + The {{Outline}} method allows the caller to produce a geometry with an equivalent fill to the input geometry, with the following additional properties: The output geometry contains no transverse intersections; that is, segments may touch, but they never cross.The outermost figures in the output geometry are all oriented counterclockwise. The output geometry is fill-mode invariant; that is, the fill of the geometry does not depend on the choice of the fill mode. For more information about the fill mode, see .Additionally, the {{Outline}} method can be useful in removing redundant portions of said geometries to simplify complex geometries. It can also be useful in combination with to create unions among several geometries simultaneously. + + The to which the geometry's transformed outline is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Outline([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Computes the outline of the geometry and writes the result to an . + + + The {{Outline}} method allows the caller to produce a geometry with an equivalent fill to the input geometry, with the following additional properties: The output geometry contains no transverse intersections; that is, segments may touch, but they never cross.The outermost figures in the output geometry are all oriented counterclockwise. The output geometry is fill-mode invariant; that is, the fill of the geometry does not depend on the choice of the fill mode. For more information about the fill mode, see .Additionally, the {{Outline}} method can be useful in removing redundant portions of said geometries to simplify complex geometries. It can also be useful in combination with to create unions among several geometries simultaneously. + + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the geometry's transformed outline is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Outline([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Computes the outline of the geometry and writes the result to an . + + + The {{Outline}} method allows the caller to produce a geometry with an equivalent fill to the input geometry, with the following additional properties: The output geometry contains no transverse intersections; that is, segments may touch, but they never cross.The outermost figures in the output geometry are all oriented counterclockwise. The output geometry is fill-mode invariant; that is, the fill of the geometry does not depend on the choice of the fill mode. For more information about the fill mode, see .Additionally, the {{Outline}} method can be useful in removing redundant portions of said geometries to simplify complex geometries. It can also be useful in combination with to create unions among several geometries simultaneously. + + The transform to apply to the geometry outline, or NULL. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the geometry's transformed outline is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Outline([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an . + + A value that specifies whether the simplified geometry should contain curves. + The to which the simplified geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Simplify([None] D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an . + + A value that specifies whether the simplified geometry should contain curves. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the simplified geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Simplify([None] D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Creates a simplified version of the geometry that contains only lines and (optionally) cubic Bezier curves and writes the result to an . + + A value that specifies whether the simplified geometry should contain curves. + The transform to apply to the simplified geometry, or NULL. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the simplified geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Simplify([None] D2D1_GEOMETRY_SIMPLIFICATION_OPTION simplificationOption,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + The style of stroke to apply. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + The style of stroke to apply. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + The style of stroke to apply. + The transform to apply to the stroked geometry. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + The style of stroke to apply. + The transform to apply to the stroked geometry. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Determines whether the geometry's stroke contains the specified point given the specified stroke thickness, style, and transform. + + The point to test for containment. + The thickness of the stroke to apply. + The style of stroke to apply. + The transform to apply to the stroked geometry. + The numeric accuracy with which the precise geometric path and path intersection is calculated. Points missing the stroke by less than the tolerance are still considered inside. Smaller values produce more accurate results but cause slower execution. + When this method returns, contains a boolean value set to true if the geometry's stroke contains the specified point; otherwise, false. You must allocate storage for this parameter. + HRESULT ID2D1Geometry::StrokeContainsPoint([None] D2D1_POINT_2F point,[None] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] float flatteningTolerance,[Out] BOOL* contains) + + + + Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance + + The to which the tessellated is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Tessellate([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1TessellationSink* tessellationSink) + + + + Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance + + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the tessellated is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Tessellate([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1TessellationSink* tessellationSink) + + + + Creates a set of clockwise-wound triangles that cover the geometry after it has been transformed using the specified matrix and flattened using the specified tolerance + + The transform to apply to this geometry, or NULL. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the tessellated is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Tessellate([In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1TessellationSink* tessellationSink) + + + + Widens the geometry by the specified stroke and writes the result to an after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The amount by which to widen the geometry. + The to which the widened geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Widen([None] FLOAT strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Widens the geometry by the specified stroke and writes the result to an after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The amount by which to widen the geometry. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the widened geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Widen([None] FLOAT strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Widens the geometry by the specified stroke and writes the result to an after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The amount by which to widen the geometry. + The style of stroke to apply to the geometry, or NULL. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the widened geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Widen([None] FLOAT strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Widens the geometry by the specified stroke and writes the result to an after it has been transformed by the specified matrix and flattened using the specified tolerance. + + The amount by which to widen the geometry. + The style of stroke to apply to the geometry, or NULL. + The transform to apply to the geometry after widening it, or NULL. + The maximum bounds on the distance between points in the polygonal approximation of the geometry. Smaller values produce more accurate results but cause slower execution. + The to which the widened geometry is appended. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Widen([None] FLOAT strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle,[In, Optional] const D2D1_MATRIX_3X2_F* worldTransform,[None] FLOAT flatteningTolerance,[In] ID2D1SimplifiedGeometrySink* geometrySink) + + + + Get or set the default flattening tolerance used for all methods that are not explicitly using it. Default is set to 0.25f. + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the structure that describes this ellipse geometry.

+
+ No documentation. + + dd371243 + void ID2D1EllipseGeometry::GetEllipse([Out] D2D1_ELLIPSE* ellipse) + ID2D1EllipseGeometry::GetEllipse +
+ + + Creates an . + + an instance of + A value that describes the center point, x-radius, and y-radius of the ellipse geometry. + + + +

Gets the structure that describes this ellipse geometry.

+
+ + dd371243 + GetEllipse + GetEllipse + void ID2D1EllipseGeometry::GetEllipse([Out] D2D1_ELLIPSE* ellipse) +
+ + +

Creates Direct2D resources.

+
+ +

The interface is the starting point for using Direct2D; it's what you use to create other Direct2D resources that you can use to draw or describe shapes.

A factory defines a set of CreateResource methods that can produce the following drawing resources:

  • Render targets: objects that render drawing commands.
  • Drawing state blocks: objects that store drawing state information, such as the current transformation and antialiasing mode.
  • Geometries: objects that represent simple and potentially complex shapes.

To create an , you use one of the CreateFactory methods. You should retain the instance for as long as you use Direct2D resources; in general, you shouldn't need to recreate it when the application is running. For more information about Direct2D resources, see the Resources Overview.

+
+ + dd371246 + ID2D1Factory + ID2D1Factory +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Forces the factory to refresh any system defaults that it might have changed since factory creation.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You should call this method before calling the GetDesktopDpi method, to ensure that the system DPI is current.

+
+ + dd371319 + HRESULT ID2D1Factory::ReloadSystemMetrics() + ID2D1Factory::ReloadSystemMetrics +
+ + +

Retrieves the current desktop dots per inch (DPI). To refresh this value, call ReloadSystemMetrics.

+
+ No documentation. + No documentation. + +

Use this method to obtain the system DPI when setting physical pixel values, such as when you specify the size of a window.

+
+ + dd371316 + void ID2D1Factory::GetDesktopDpi([Out] float* dpiX,[Out] float* dpiY) + ID2D1Factory::GetDesktopDpi +
+ + +

Creates an .

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371286 + HRESULT ID2D1Factory::CreateRectangleGeometry([In] const D2D_RECT_F* rectangle,[Out, Fast] ID2D1RectangleGeometry** rectangleGeometry) + ID2D1Factory::CreateRectangleGeometry +
+ + +

Creates an .

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371292 + HRESULT ID2D1Factory::CreateRoundedRectangleGeometry([In] const D2D1_ROUNDED_RECT* roundedRectangle,[Out, Fast] ID2D1RoundedRectangleGeometry** roundedRectangleGeometry) + ID2D1Factory::CreateRoundedRectangleGeometry +
+ + + Creates an . + + No documentation. + No documentation. + No documentation. + + dd742725 + HRESULT ID2D1Factory::CreateEllipseGeometry([In] const D2D1_ELLIPSE* ellipse,[Out, Fast] ID2D1EllipseGeometry** ellipseGeometry) + ID2D1Factory::CreateEllipseGeometry + + + +

Creates an , which is an object that holds other geometries.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Geometry groups are a convenient way to group several geometries simultaneously so all figures of several distinct geometries are concatenated into one. To create a object, call the CreateGeometryGroup method on the object, passing in the fillMode with possible values of (alternate) and , an array of geometry objects to add to the geometry group, and the number of elements in this array.

+
+ + dd371273 + HRESULT ID2D1Factory::CreateGeometryGroup([In] D2D1_FILL_MODE fillMode,[In, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount,[Out, Fast] ID2D1GeometryGroup** geometryGroup) + ID2D1Factory::CreateGeometryGroup +
+ + +

Creates an , which is an object that holds other geometries.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Geometry groups are a convenient way to group several geometries simultaneously so all figures of several distinct geometries are concatenated into one. To create a object, call the CreateGeometryGroup method on the object, passing in the fillMode with possible values of (alternate) and , an array of geometry objects to add to the geometry group, and the number of elements in this array.

+
+ + dd371273 + HRESULT ID2D1Factory::CreateGeometryGroup([In] D2D1_FILL_MODE fillMode,[In, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount,[Out, Fast] ID2D1GeometryGroup** geometryGroup) + ID2D1Factory::CreateGeometryGroup +
+ + +

Transforms the specified geometry and stores the result as an object.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Like other resources, a transformed geometry inherits the resource space and threading policy of the factory that created it. This object is immutable.

When stroking a transformed geometry with the DrawGeometry method, the stroke width is not affected by the transform applied to the geometry. The stroke width is only affected by the world transform.

+
+ + dd371304 + HRESULT ID2D1Factory::CreateTransformedGeometry([In] ID2D1Geometry* sourceGeometry,[In] const D2D_MATRIX_3X2_F* transform,[Out, Fast] ID2D1TransformedGeometry** transformedGeometry) + ID2D1Factory::CreateTransformedGeometry +
+ + +

Creates an empty .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371282 + HRESULT ID2D1Factory::CreatePathGeometry([Out, Fast] ID2D1PathGeometry** pathGeometry) + ID2D1Factory::CreatePathGeometry +
+ + +

Creates an that describes start cap, dash pattern, and other features of a stroke.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371301 + HRESULT ID2D1Factory::CreateStrokeStyle([In] const D2D1_STROKE_STYLE_PROPERTIES* strokeStyleProperties,[In, Buffer, Optional] const float* dashes,[In] unsigned int dashesCount,[Out, Fast] ID2D1StrokeStyle** strokeStyle) + ID2D1Factory::CreateStrokeStyle +
+ + +

Creates an that can be used with the SaveDrawingState and RestoreDrawingState methods of a render target.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371252 + HRESULT ID2D1Factory::CreateDrawingStateBlock([In, Optional] const D2D1_DRAWING_STATE_DESCRIPTION* drawingStateDescription,[In, Optional] IDWriteRenderingParams* textRenderingParams,[Out, Fast] ID2D1DrawingStateBlock** drawingStateBlock) + ID2D1Factory::CreateDrawingStateBlock +
+ + +

Creates a render target that renders to a Microsoft Windows Imaging Component (WIC) bitmap.

+
+

The bitmap that receives the rendering output of the render target.

+

The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. For information about supported pixel formats, see Supported Pixel Formats and Alpha Modes.

+

When this method returns, contains the address of the reference to the object created by this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You must use for the minLevel member of the renderTargetProperties parameter with this method.

Your application should create render targets once and hold onto them for the life of the application or until the error is received. When you receive this error, you need to recreate the render target (and any resources it created).

Note?? This method isn't supported on Windows Phone and will fail when called on a device with error code 0x8899000b (?There is no hardware rendering device available for this operation?). Because the Windows Phone Emulator supports WARP rendering, this method will fail when called on the emulator with a different error code, 0x88982f80 (wincodec_err_unsupportedpixelformat).

+
+ + dd371309 + HRESULT ID2D1Factory::CreateWicBitmapRenderTarget([In] IWICBitmap* target,[In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1RenderTarget** renderTarget) + ID2D1Factory::CreateWicBitmapRenderTarget +
+ + +

Creates an , a render target that renders to a window.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When you create a render target and hardware acceleration is available, you allocate resources on the computer's GPU. By creating a render target once and retaining it as long as possible, you gain performance benefits. Your application should create render targets once and hold onto them for the life of the application or until the error is received. When you receive this error, you need to recreate the render target (and any resources it created).

+
+ + dd371279 + HRESULT ID2D1Factory::CreateHwndRenderTarget([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[In] const D2D1_HWND_RENDER_TARGET_PROPERTIES* hwndRenderTargetProperties,[Out, Fast] ID2D1HwndRenderTarget** hwndRenderTarget) + ID2D1Factory::CreateHwndRenderTarget +
+ + +

Creates a render target that draws to a DirectX Graphics Infrastructure (DXGI) surface.

+
+

The to which the render target will draw.

+

The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. For information about supported pixel formats, see Supported Pixel Formats and Alpha Modes.

+

When this method returns, contains the address of the reference to the object created by this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To write to a Direct3D surface, you obtain an and pass it to the CreateDxgiSurfaceRenderTarget method to create a DXGI surface render target; you can then use the DXGI surface render target to draw 2-D content to the DXGI surface.

A DXGI surface render target is a type of . Like other Direct2D render targets, you can use it to create resources and issue drawing commands.

The DXGI surface render target and the DXGI surface must use the same DXGI format. If you specify the DXGI_FORMAT_UNKOWN format when you create the render target, it will automatically use the surface's format.

The DXGI surface render target does not perform DXGI surface synchronization.

For more information about creating and using DXGI surface render targets, see the Direct2D and Direct3D Interoperability Overview.

To work with Direct2D, the Direct3D device that provides the must be created with the flag.

When you create a render target and hardware acceleration is available, you allocate resources on the computer's GPU. By creating a render target once and retaining it as long as possible, you gain performance benefits. Your application should create render targets once and hold onto them for the life of the application or until the render target's EndDraw method returns the error. When you receive this error, you need to recreate the render target (and any resources it created).

+
+ + dd371264 + HRESULT ID2D1Factory::CreateDxgiSurfaceRenderTarget([In] IDXGISurface* dxgiSurface,[In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1RenderTarget** renderTarget) + ID2D1Factory::CreateDxgiSurfaceRenderTarget +
+ + +

Creates a render target that draws to a Windows Graphics Device Interface (GDI) device context.

+
+

The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. To enable the device context (DC) render target to work with GDI, set the DXGI format to and the alpha mode to or . For more information about pixel formats, see Supported Pixel Formats and Alpha Modes.

+

When this method returns, dcRenderTarget contains the address of the reference to the created by the method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Before you can render with a DC render target, you must use the render target's BindDC method to associate it with a GDI DC. Do this for each different DC and whenever there is a change in the size of the area you want to draw to.

To enable the DC render target to work with GDI, set the render target's DXGI format to and alpha mode to or .

Your application should create render targets once and hold on to them for the life of the application or until the render target's EndDraw method returns the error. When you receive this error, recreate the render target (and any resources it created).

+
+ + dd371248 + HRESULT ID2D1Factory::CreateDCRenderTarget([In] const D2D1_RENDER_TARGET_PROPERTIES* renderTargetProperties,[Out, Fast] ID2D1DCRenderTarget** dcRenderTarget) + ID2D1Factory::CreateDCRenderTarget +
+ + + Default Constructor for a . + + + + + Default Constructor for a . + + + + + Default Constructor for a . + + + + + Retrieves the current desktop dots per inch (DPI). To refresh this value, call {{ReloadSystemMetrics}}. + + + Use this method to obtain the system DPI when setting physical pixel values, such as when you specify the size of a window. + + + + +

Represents a composite geometry, composed of other objects.

+
+ +

Geometry groups are a convenient way to group several geometries simultaneously so all figures of several distinct geometries are concatenated into one.

+
+ + dd316581 + ID2D1GeometryGroup + ID2D1GeometryGroup +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Indicates how the intersecting areas of the geometries contained in this geometry group are combined.

+
+

A value that indicates how the intersecting areas of the geometries contained in this geometry group are combined.

+ + dd316583 + D2D1_FILL_MODE ID2D1GeometryGroup::GetFillMode() + ID2D1GeometryGroup::GetFillMode +
+ + +

Indicates the number of geometry objects in the geometry group.

+
+

The number of geometries in the .

+ + dd316589 + unsigned int ID2D1GeometryGroup::GetSourceGeometryCount() + ID2D1GeometryGroup::GetSourceGeometryCount +
+ + +

Retrieves the geometries in the geometry group.

+
+

When this method returns, contains the address of a reference to an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter. If the array is null, then this method performs no operation. You must allocate the memory for this array.

+

A value indicating the number of geometries to return in the geometries array. If this value is less than the number of geometries in the geometry group, the remaining geometries are omitted. If this value is larger than the number of geometries in the geometry group, the extra geometries are set to null. To obtain the number of geometries currently in the geometry group, use the GetSourceGeometryCount method.

+ +

The returned geometries are referenced and counted, and the caller must release them.

+
+ + dd316586 + void ID2D1GeometryGroup::GetSourceGeometries([Out, Buffer] ID2D1Geometry** geometries,[In] unsigned int geometriesCount) + ID2D1GeometryGroup::GetSourceGeometries +
+ + + Creates an , which is an object that holds other geometries. + + + Geometry groups are a convenient way to group several geometries simultaneously so all figures of several distinct geometries are concatenated into one. To create a object, call the CreateGeometryGroup method on the object, passing in the fillMode with possible values of (alternate) and D2D1_FILL_MODE_WINDING, an array of geometry objects to add to the geometry group, and the number of elements in this array. + + an instance of + A value that specifies the rule that a composite shape uses to determine whether a given point is part of the geometry. + An array containing the geometry objects to add to the geometry group. The number of elements in this array is indicated by the geometriesCount parameter. + + + + Retrieves the geometries in the geometry group. + + + The returned geometries are referenced and counted, and the caller must release them. + + an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter. + void ID2D1GeometryGroup::GetSourceGeometries([Out, Buffer] ID2D1Geometry** geometries,[None] int geometriesCount) + + + + Retrieves the geometries in the geometry group. + + + The returned geometries are referenced and counted, and the caller must release them. + + A value indicating the number of geometries to return in the geometries array. If this value is less than the number of geometries in the geometry group, the remaining geometries are omitted. If this value is larger than the number of geometries in the geometry group, the extra geometries are set to NULL. To obtain the number of geometries currently in the geometry group, use the {{GetSourceGeometryCount}} method. + an array of geometries to be filled by this method. The length of the array is specified by the geometryCount parameter. + void ID2D1GeometryGroup::GetSourceGeometries([Out, Buffer] ID2D1Geometry** geometries,[None] int geometriesCount) + + + +

Indicates how the intersecting areas of the geometries contained in this geometry group are combined.

+
+ + dd316583 + GetFillMode + GetFillMode + D2D1_FILL_MODE ID2D1GeometryGroup::GetFillMode() +
+ + +

Indicates the number of geometry objects in the geometry group.

+
+ + dd316589 + GetSourceGeometryCount + GetSourceGeometryCount + unsigned int ID2D1GeometryGroup::GetSourceGeometryCount() +
+ + +

Describes a geometric path that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.

+
+ +

The interface extends the interface to add support for arcs and quadratic beziers, as well as functions for adding single lines and cubic beziers.

A geometry sink consists of one or more figures. Each figure is made up of one or more line, curve, or arc segments. To create a figure, call the BeginFigure method, specify the figure's start point, and then use its Add methods (such as AddLine and AddBezier) to add segments. When you are finished adding segments, call the EndFigure method. You can repeat this sequence to create additional figures. When you are finished creating figures, call the Close method.

+
+ + dd316592 + ID2D1GeometrySink + ID2D1GeometrySink +
+ + +

Describes a geometric path that does not contain quadratic bezier curves or arcs.

+
+ +

A geometry sink consists of one or more figures. Each figure is made up of one or more line or Bezier curve segments. To create a figure, call the BeginFigure method and specify the figure's start point, then use AddLines and AddBeziers to add line and Bezier segments. When you are finished adding segments, call the EndFigure method. You can repeat this sequence to create additional figures. When you are finished creating figures, call the Close method.

To create geometry paths that can contain arcs and quadratic Bezier curves, use an .

+
+ + dd316919 + ID2D1SimplifiedGeometrySink + ID2D1SimplifiedGeometrySink +
+ + + Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside. + + + The fill mode defaults to D2D1_FILL_MODE_ALTERNATE. To set the fill mode, call SetFillMode before the first call to {{BeginFigure}}. Not doing will put the geometry sink in an error state. + + The method used to determine whether a given point is part of the geometry. + void SetFillMode([None] D2D1_FILL_MODE fillMode) + + + + Specifies stroke and join options to be applied to new segments added to the geometry sink. + + + After this method is called, the specified segment flags are applied to each segment subsequently added to the sink. The segment flags are applied to every additional segment until this method is called again and a different set of segment flags is specified. + + Stroke and join options to be applied to new segments added to the geometry sink. + void SetSegmentFlags([None] D2D1_PATH_SEGMENT vertexFlags) + + + + Starts a new figure at the specified point. + + + If this method is called while a figure is currently in progress, the interface is invalidated and all future methods will fail. + + The point at which to begin the new figure. + Whether the new figure should be hollow or filled. + void BeginFigure([None] D2D1_POINT_2F startPoint,[None] D2D1_FIGURE_BEGIN figureBegin) + + + + Creates a sequence of lines using the specified points and adds them to the geometry sink. + + A pointer to an array of one or more points that describe the lines to draw. A line is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by {{BeginFigure}}) to the first point in the array. if the array contains additional points, a line is drawn from the first point to the second point in the array, from the second point to the third point, and so on. + void AddLines([In, Buffer] const D2D1_POINT_2F* points,[None] UINT pointsCount) + + + + Creates a sequence of cubic Bezier curves and adds them to the geometry sink. + + A pointer to an array of Bezier segments that describes the Bezier curves to create. A curve is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by {{BeginFigure}}) to the end point of the first Bezier segment in the array. if the array contains additional Bezier segments, each subsequent Bezier segment uses the end point of the preceding Bezier segment as its start point. + void AddBeziers([In, Buffer] const D2D1_BEZIER_SEGMENT* beziers,[None] UINT beziersCount) + + + + Ends the current figure; optionally, closes it. + + + Calling this method without a matching call to {{BeginFigure}} places the geometry sink in an error state; subsequent calls are ignored, and the overall failure will be returned when the {{Close}} method is called. + + A value that indicates whether the current figure is closed. If the figure is closed, a line is drawn between the current point and the start point specified by {{BeginFigure}}. + void EndFigure([None] D2D1_FIGURE_END figureEnd) + + + + Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state. + + + Do not close the geometry sink while a figure is still in progress; doing so puts the geometry sink in an error state. For the close operation to be successful, there must be one {{EndFigure}} call for each call to {{BeginFigure}}.After calling this method, the geometry sink might not be usable. Direct2D implementations of this interface do not allow the geometry sink to be modified after it is closed, but other implementations might not impose this restriction. + + HRESULT Close() + + + + Creates a line segment between the current point and the specified end point and adds it to the geometry sink. + + The end point of the line to draw. + void AddLine([None] D2D1_POINT_2F point) + + + + Creates a cubic Bezier curve between the current point and the specified endpoint. + + A structure that describes the control points and endpoint of the Bezier curve to add. + void AddBezier([In] const D2D1_BEZIER_SEGMENT* bezier) + + + + Creates a quadratic Bezier curve between the current point and the specified endpoint. + + A structure that describes the control point and the endpoint of the quadratic Bezier curve to add. + void AddQuadraticBezier([In] const D2D1_QUADRATIC_BEZIER_SEGMENT* bezier) + + + + Adds a sequence of quadratic Bezier segments as an array in a single call. + + An array of a sequence of quadratic Bezier segments. + void AddQuadraticBeziers([In, Buffer] const D2D1_QUADRATIC_BEZIER_SEGMENT* beziers,[None] UINT beziersCount) + + + + Adds a single arc to the path geometry. + + The arc segment to add to the figure. + void AddArc([In] const D2D1_ARC_SEGMENT* arc) + + + +

Describes a geometric path that can contain lines, arcs, cubic Bezier curves, and quadratic Bezier curves.

+
+ +

The interface extends the interface to add support for arcs and quadratic beziers, as well as functions for adding single lines and cubic beziers.

A geometry sink consists of one or more figures. Each figure is made up of one or more line, curve, or arc segments. To create a figure, call the BeginFigure method, specify the figure's start point, and then use its Add methods (such as AddLine and AddBezier) to add segments. When you are finished adding segments, call the EndFigure method. You can repeat this sequence to create additional figures. When you are finished creating figures, call the Close method.

+
+ + dd316592 + ID2D1GeometrySink + ID2D1GeometrySink +
+ + +

Describes a geometric path that does not contain quadratic bezier curves or arcs.

+
+ +

A geometry sink consists of one or more figures. Each figure is made up of one or more line or Bezier curve segments. To create a figure, call the BeginFigure method and specify the figure's start point, then use AddLines and AddBeziers to add line and Bezier segments. When you are finished adding segments, call the EndFigure method. You can repeat this sequence to create additional figures. When you are finished creating figures, call the Close method.

To create geometry paths that can contain arcs and quadratic Bezier curves, use an .

+
+ + dd316919 + ID2D1SimplifiedGeometrySink + ID2D1SimplifiedGeometrySink + + Describes a geometric path that does not contain quadratic Bezier curves or arcs. + + + A geometry sink consists of one or more figures. Each figure is made up of one or more line or Bezier curve segments. To create a figure, call the BeginFigure method and specify the figure's start point, then use AddLines and AddBeziers to add line and Bezier segments. When you are finished adding segments, call the EndFigure method. You can repeat this sequence to create additional figures. When you are finished creating figures, call the Close method. To create geometry paths that can contain arcs and quadratic Bezier curves, use an . + +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside.

+
+

The method used to determine whether a given point is part of the geometry.

+ +

The fill mode defaults to . To set the fill mode, call SetFillMode before the first call to BeginFigure. Not doing will put the geometry sink in an error state.

+
+ + dd316937 + void ID2D1SimplifiedGeometrySink::SetFillMode([In] D2D1_FILL_MODE fillMode) + ID2D1SimplifiedGeometrySink::SetFillMode +
+ + +

Specifies stroke and join options to be applied to new segments added to the geometry sink.

+
+

Stroke and join options to be applied to new segments added to the geometry sink.

+ +

After this method is called, the specified segment flags are applied to each segment subsequently added to the sink. The segment flags are applied to every additional segment until this method is called again and a different set of segment flags is specified.

+
+ + dd316939 + void ID2D1SimplifiedGeometrySink::SetSegmentFlags([In] D2D1_PATH_SEGMENT vertexFlags) + ID2D1SimplifiedGeometrySink::SetSegmentFlags +
+ + +

Starts a new figure at the specified point.

+
+

The point at which to begin the new figure.

+

Whether the new figure should be hollow or filled.

+ +

If this method is called while a figure is currently in progress, the interface is invalidated and all future methods will fail.

+
+ + dd316929 + void ID2D1SimplifiedGeometrySink::BeginFigure([In] D2D_POINT_2F startPoint,[In] D2D1_FIGURE_BEGIN figureBegin) + ID2D1SimplifiedGeometrySink::BeginFigure +
+ + +

Creates a sequence of lines using the specified points and adds them to the geometry sink.

+
+

A reference to an array of one or more points that describe the lines to draw. A line is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by BeginFigure) to the first point in the array. if the array contains additional points, a line is drawn from the first point to the second point in the array, from the second point to the third point, and so on.

+

The number of points in the points array.

+ + dd316925 + void ID2D1SimplifiedGeometrySink::AddLines([In, Buffer] const D2D_POINT_2F* points,[In] unsigned int pointsCount) + ID2D1SimplifiedGeometrySink::AddLines +
+ + +

Creates a sequence of cubic Bezier curves and adds them to the geometry sink.

+
+

A reference to an array of Bezier segments that describes the Bezier curves to create. A curve is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by BeginFigure) to the end point of the first Bezier segment in the array. if the array contains additional Bezier segments, each subsequent Bezier segment uses the end point of the preceding Bezier segment as its start point.

+

The number of Bezier segments in the beziers array.

+ + dd316922 + void ID2D1SimplifiedGeometrySink::AddBeziers([In, Buffer] const D2D1_BEZIER_SEGMENT* beziers,[In] unsigned int beziersCount) + ID2D1SimplifiedGeometrySink::AddBeziers +
+ + +

Ends the current figure; optionally, closes it.

+
+

A value that indicates whether the current figure is closed. If the figure is closed, a line is drawn between the current point and the start point specified by BeginFigure.

+ +

Calling this method without a matching call to BeginFigure places the geometry sink in an error state; subsequent calls are ignored, and the overall failure will be returned when the Close method is called.

+
+ + dd316934 + void ID2D1SimplifiedGeometrySink::EndFigure([In] D2D1_FIGURE_END figureEnd) + ID2D1SimplifiedGeometrySink::EndFigure +
+ + +

Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Do not close the geometry sink while a figure is still in progress; doing so puts the geometry sink in an error state. For the close operation to be successful, there must be one EndFigure call for each call to BeginFigure.

After calling this method, the geometry sink might not be usable. Direct2D implementations of this interface do not allow the geometry sink to be modified after it is closed, but other implementations might not impose this restriction.

+
+ + dd316932 + HRESULT ID2D1SimplifiedGeometrySink::Close() + ID2D1SimplifiedGeometrySink::Close +
+ + + Creates a sequence of cubic Bezier curves and adds them to the geometry sink. + + An array of Bezier segments that describes the Bezier curves to create. A curve is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by BeginFigure) to the end point of the first Bezier segment in the array. If the array contains additional Bezier segments, each subsequent Bezier segment uses the end point of the preceding Bezier segment as its start point. + + + + Creates a sequence of lines using the specified points and adds them to the geometry sink. + + An array of one or more points that describe the lines to draw. A line is drawn from the geometry sink's current point (the end point of the last segment drawn or the location specified by BeginFigure) to the first point in the array. If the array contains additional points, a line is drawn from the first point to the second point in the array, from the second point to the third point, and so on. + + + + Starts a new figure at the specified point. + + The point at which to begin the new figure. + Whether the new figure should be hollow or filled. + + If this method is called while a figure is currently in progress, the interface is invalidated and all future methods will fail. + + + + + Closes the geometry sink, indicates whether it is in an error state, and resets the sink's error state. + + If this method succeeds, it returns . Otherwise, it returns an error code. + + Do not close the geometry sink while a figure is still in progress; doing so puts the geometry sink in an error state. For the close operation to be successful, there must be one EndFigure call for each call to BeginFigure.After calling this method, the geometry sink might not be usable. Direct2D implementations of this interface do not allow the geometry sink to be modified after it is closed, but other implementations might not impose this restriction. + + + + + Ends the current figure; optionally, closes it. + + A value that indicates whether the current figure is closed. If the figure is closed, a line is drawn between the current point and the start point specified by BeginFigure. + + Calling this method without a matching call to BeginFigure places the geometry sink in an error state; subsequent calls are ignored, and the overall failure will be returned when the Close method is called. + + + + + Specifies the method used to determine which points are inside the geometry described by this geometry sink and which points are outside. + + The method used to determine whether a given point is part of the geometry. + + The fill mode defaults to . To set the fill mode, call SetFillMode before the first call to BeginFigure. Not doing will put the geometry sink in an error state. + + + + + Specifies stroke and join options to be applied to new segments added to the geometry sink. + + Stroke and join options to be applied to new segments added to the geometry sink. + + After this method is called, the specified segment flags are applied to each segment subsequently added to the sink. The segment flags are applied to every additional segment until this method is called again and a different set of segment flags is specified. + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a line segment between the current point and the specified end point and adds it to the geometry sink.

+
+

The end point of the line to draw.

+ + dd316604 + void ID2D1GeometrySink::AddLine([In] D2D_POINT_2F point) + ID2D1GeometrySink::AddLine +
+ + +

Creates a cubic Bezier curve between the current point and the specified end point.

+
+

A structure that describes the control points and end point of the Bezier curve to add.

+ + dd316601 + void ID2D1GeometrySink::AddBezier([In] const D2D1_BEZIER_SEGMENT* bezier) + ID2D1GeometrySink::AddBezier +
+ + +

Creates a quadratic Bezier curve between the current point and the specified endpoint.

+
+

A structure that describes the control point and the endpoint of the quadratic Bezier curve to add.

+ + dd316611 + void ID2D1GeometrySink::AddQuadraticBezier([In] const D2D1_QUADRATIC_BEZIER_SEGMENT* bezier) + ID2D1GeometrySink::AddQuadraticBezier +
+ + +

Adds a sequence of quadratic Bezier segments as an array in a single call.

+
+

An array of a sequence of quadratic Bezier segments.

+

A value indicating the number of quadratic Bezier segments in beziers.

+ + dd316608 + void ID2D1GeometrySink::AddQuadraticBeziers([In, Buffer] const D2D1_QUADRATIC_BEZIER_SEGMENT* beziers,[In] unsigned int beziersCount) + ID2D1GeometrySink::AddQuadraticBeziers +
+ + +

Adds a single arc to the path geometry.

+
+

The arc segment to add to the figure.

+ + dd316597 + void ID2D1GeometrySink::AddArc([In] const D2D1_ARC_SEGMENT* arc) + ID2D1GeometrySink::AddArc +
+ + +

Represents an collection of objects for linear and radial gradient brushes.

+
+ + dd316783 + ID2D1GradientStopCollection + ID2D1GradientStopCollection +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of gradient stops in the collection.

+
+

The number of gradient stops in the collection.

+ + dd371454 + unsigned int ID2D1GradientStopCollection::GetGradientStopCount() + ID2D1GradientStopCollection::GetGradientStopCount +
+ + +

Copies the gradient stops from the collection into an array of structures.

+
+ No documentation. + No documentation. + +

Gradient stops are copied in order of position, starting with the gradient stop with the smallest position value and progressing to the gradient stop with the largest position value.

+
+ + dd371457 + void ID2D1GradientStopCollection::GetGradientStops([Out, Buffer] D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount) + ID2D1GradientStopCollection::GetGradientStops +
+ + +

Indicates the gamma space in which the gradient stops are interpolated.

+
+

The gamma space in which the gradient stops are interpolated.

+ + dd316786 + D2D1_GAMMA ID2D1GradientStopCollection::GetColorInterpolationGamma() + ID2D1GradientStopCollection::GetColorInterpolationGamma +
+ + +

Indicates the behavior of the gradient outside the normalized gradient range.

+
+

The behavior of the gradient outside the [0,1] normalized gradient range.

+ + dd316789 + D2D1_EXTEND_MODE ID2D1GradientStopCollection::GetExtendMode() + ID2D1GradientStopCollection::GetExtendMode +
+ + + Creates an from the specified gradient stops, a Gamma StandardRgb, and ExtendMode.Clamp. + + an instance of + A pointer to an array of D2D1_GRADIENT_STOP structures. + HRESULT CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[None] UINT gradientStopsCount,[None] D2D1_GAMMA colorInterpolationGamma,[None] D2D1_EXTEND_MODE extendMode,[Out] ID2D1GradientStopCollection** gradientStopCollection) + + + + Creates an from the specified gradient stops, color Gamma.StandardRgb, and extend mode. + + an instance of + A pointer to an array of D2D1_GRADIENT_STOP structures. + The behavior of the gradient outside the [0,1] normalized range. + HRESULT CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[None] UINT gradientStopsCount,[None] D2D1_GAMMA colorInterpolationGamma,[None] D2D1_EXTEND_MODE extendMode,[Out] ID2D1GradientStopCollection** gradientStopCollection) + + + + Creates an from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp. + + an instance of + A pointer to an array of D2D1_GRADIENT_STOP structures. + The space in which color interpolation between the gradient stops is performed. + HRESULT CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[None] UINT gradientStopsCount,[None] D2D1_GAMMA colorInterpolationGamma,[None] D2D1_EXTEND_MODE extendMode,[Out] ID2D1GradientStopCollection** gradientStopCollection) + + + + Creates an from the specified gradient stops, color interpolation gamma, and extend mode. + + an instance of + A pointer to an array of D2D1_GRADIENT_STOP structures. + The space in which color interpolation between the gradient stops is performed. + The behavior of the gradient outside the [0,1] normalized range. + HRESULT CreateGradientStopCollection([In, Buffer] const D2D1_GRADIENT_STOP* gradientStops,[None] UINT gradientStopsCount,[None] D2D1_GAMMA colorInterpolationGamma,[None] D2D1_EXTEND_MODE extendMode,[Out] ID2D1GradientStopCollection** gradientStopCollection) + + + +

Retrieves the number of gradient stops in the collection.

+
+ + dd371454 + GetGradientStopCount + GetGradientStopCount + unsigned int ID2D1GradientStopCollection::GetGradientStopCount() +
+ + +

Indicates the gamma space in which the gradient stops are interpolated.

+
+ + dd316786 + GetColorInterpolationGamma + GetColorInterpolationGamma + D2D1_GAMMA ID2D1GradientStopCollection::GetColorInterpolationGamma() +
+ + +

Indicates the behavior of the gradient outside the normalized gradient range.

+
+ + dd316789 + GetExtendMode + GetExtendMode + D2D1_EXTEND_MODE ID2D1GradientStopCollection::GetExtendMode() +
+ + +

Represents the backing store required to render a layer.

+
+ +

To create a layer, call the CreateLayer method of the render target where the layer will be used. To draw to a layer, push the layer to the render target stack by calling the PushLayer method. After you have finished drawing to the layer, call the PopLayer method.

Between PushLayer and PopLayer calls, the layer is in use and cannot be used by another render target.

If the size of the layer is not specified, the corresponding PushLayer call determines the minimum layer size, based on the layer content bounds and the geometric mask. The layer resource can be larger than the size required by PushLayer without any rendering artifacts.

If the size of a layer is specified, or if the layer has been used and the required backing store size as calculated during PushLayer is larger than the layer, then the layer resource is expanded on each axis monotonically to ensure that it is large enough. The layer resource never shrinks in size.

+
+ + dd371483 + ID2D1Layer + ID2D1Layer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the size of the layer in device-independent pixels.

+
+

The size of the layer in device-independent pixels.

+ + dd371485 + D2D_SIZE_F ID2D1Layer::GetSize() + ID2D1Layer::GetSize +
+ + + Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size. The layer resource is allocated to the minimum size when {{PushLayer}} is called. + + + Regardless of whether a size is initially specified, the layer automatically resizes as needed. + + an instance of + HRESULT CreateLayer([In, Optional] const D2D1_SIZE_F* size,[Out] ID2D1Layer** layer) + + + + Creates a layer resource that can be used with this render target and its compatible render targets. The new layer has the specified initial size. + + + Regardless of whether a size is initially specified, the layer automatically resizes as needed. + + an instance of + If (0, 0) is specified, no backing store is created behind the layer resource. The layer resource is allocated to the minimum size when {{PushLayer}} is called. + HRESULT CreateLayer([In, Optional] const D2D1_SIZE_F* size,[Out] ID2D1Layer** layer) + + + +

Gets the size of the layer in device-independent pixels.

+
+ + dd371485 + GetSize + GetSize + D2D_SIZE_F ID2D1Layer::GetSize() +
+ + +

Paints an area with a linear gradient.

+
+ +

An paints an area with a linear gradient along a line between the brush start point and end point. The gradient, defined by the brush , is extruded perpendicular to this line, and then transformed by a brush transform (if specified).

The start point and end point are described in the brush space and are mappped to the render target when the brush is used. Note the starting and ending coordinates are absolute, not relative to the render target size. A value of (0, 0) maps to the upper-left corner of the render target, while a value of (1, 1) maps one pixel diagonally away from (0, 0). If there is a nonidentity brush transform or render target transform, the brush start point and end point are also transformed.

It is possible to specify a gradient axis that does not completely fill the area that is being painted. When this occurs, the , specified by the , determines how the remaining area is painted. +

+
+ + dd371488 + ID2D1LinearGradientBrush + ID2D1LinearGradientBrush +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the starting coordinates of the linear gradient in the brush's coordinate space.

+
+

The starting two-dimensional coordinates of the linear gradient, in the brush's coordinate space.

+ +

The start point and end point are described in the brush's space and are mapped to the render target when the brush is used. If there is a non-identity brush transform or render target transform, the brush's start point and end point are also transformed.

+
+ + dd371505 + void ID2D1LinearGradientBrush::SetStartPoint([In] D2D_POINT_2F startPoint) + ID2D1LinearGradientBrush::SetStartPoint +
+ + +

Sets the ending coordinates of the linear gradient in the brush's coordinate space.

+
+

The ending two-dimensional coordinates of the linear gradient, in the brush's coordinate space.

+ +

The start point and end point are described in the brush's space and are mapped to the render target when the brush is used. If there is a non-identity brush transform or render target transform, the brush's start point and end point are also transformed.

+
+ + dd371501 + void ID2D1LinearGradientBrush::SetEndPoint([In] D2D_POINT_2F endPoint) + ID2D1LinearGradientBrush::SetEndPoint +
+ + +

Retrieves the starting coordinates of the linear gradient.

+
+

The starting two-dimensional coordinates of the linear gradient, in the brush's coordinate space.

+ +

The start point and end point are described in the brush's space and are mapped to the render target when the brush is used. If there is a non-identity brush transform or render target transform, the brush's start point and end point are also transformed.

+
+ + dd371497 + D2D_POINT_2F ID2D1LinearGradientBrush::GetStartPoint() + ID2D1LinearGradientBrush::GetStartPoint +
+ + +

Retrieves the ending coordinates of the linear gradient.

+
+

The ending two-dimensional coordinates of the linear gradient, in the brush's coordinate space.

+ +

The start point and end point are described in the brush's space and are mapped to the render target when the brush is used. If there is a non-identity brush transform or render target transform, the brush's start point and end point are also transformed.

+
+ + dd371492 + D2D_POINT_2F ID2D1LinearGradientBrush::GetEndPoint() + ID2D1LinearGradientBrush::GetEndPoint +
+ + +

Retrieves the associated with this linear gradient brush.

+
+ No documentation. + +

contains an array of structures and information, such as the extend mode and the color interpolation mode.

+
+ + dd371496 + void ID2D1LinearGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection) + ID2D1LinearGradientBrush::GetGradientStopCollection +
+ + + Creates an that contains the specified gradient stops and has the specified transform and base opacity. + + an instance of + The start and end points of the gradient. + A collection of structures that describe the colors in the brush's gradient and their locations along the gradient line. + HRESULT CreateLinearGradientBrush([In] const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES* linearGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out] ID2D1LinearGradientBrush** linearGradientBrush) + + + + Creates an that contains the specified gradient stops and has the specified transform and base opacity. + + an instance of + The start and end points of the gradient. + The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation. + A collection of structures that describe the colors in the brush's gradient and their locations along the gradient line. + HRESULT CreateLinearGradientBrush([In] const D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES* linearGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out] ID2D1LinearGradientBrush** linearGradientBrush) + + + +

Retrieves or sets the starting coordinates of the linear gradient.

+
+ +

The start point and end point are described in the brush's space and are mapped to the render target when the brush is used. If there is a non-identity brush transform or render target transform, the brush's start point and end point are also transformed.

+
+ + dd371497 + GetStartPoint / SetStartPoint + GetStartPoint + D2D_POINT_2F ID2D1LinearGradientBrush::GetStartPoint() +
+ + +

Retrieves or sets the ending coordinates of the linear gradient.

+
+ +

The start point and end point are described in the brush's space and are mapped to the render target when the brush is used. If there is a non-identity brush transform or render target transform, the brush's start point and end point are also transformed.

+
+ + dd371492 + GetEndPoint / SetEndPoint + GetEndPoint + D2D_POINT_2F ID2D1LinearGradientBrush::GetEndPoint() +
+ + +

Retrieves the associated with this linear gradient brush.

+
+ +

contains an array of structures and information, such as the extend mode and the color interpolation mode.

+
+ + dd371496 + GetGradientStopCollection + GetGradientStopCollection + void ID2D1LinearGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection) +
+ + +

Represents a set of vertices that form a list of triangles.

+
+ + dd371508 + ID2D1Mesh + ID2D1Mesh +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Opens the mesh for population.

+
+

When this method returns, contains a reference to a reference to an that is used to populate the mesh. This parameter is passed uninitialized.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371510 + HRESULT ID2D1Mesh::Open([Out] ID2D1TessellationSink** tessellationSink) + ID2D1Mesh::Open +
+ + + Create a mesh that uses triangles to describe a shape. + + + To populate a mesh, use its {{Open}} method to obtain an . To draw the mesh, use the render target's {{FillMesh}} method. + + an instance of + HRESULT CreateMesh([Out] ID2D1Mesh** mesh) + + + + Create a mesh that uses triangles to describe a shape and populates it with triangles. + + an instance of + An array of structures that describe the triangles to add to this mesh. + HRESULT CreateMesh([Out] ID2D1Mesh** mesh) + + + + Opens the mesh for population. + + When this method returns, contains a pointer to a pointer to an that is used to populate the mesh. This parameter is passed uninitialized. + HRESULT Open([Out] ID2D1TessellationSink** tessellationSink) + + + +

Represents a complex shape that may be composed of arcs, curves, and lines.

+
+ +

An object enables you to describe a geometric path. To describe an object's path, use the object's Open method to retrieve an . Use the sink to populate the path geometry with figures and segments.

+
+ + dd371512 + ID2D1PathGeometry + ID2D1PathGeometry +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the geometry sink that is used to populate the path geometry with figures and segments.

+
+

When this method returns, geometrySink contains the address of a reference to the geometry sink that is used to populate the path geometry with figures and segments. This parameter is passed uninitialized.

+ +

Because path geometries are immutable and can only be populated once, it is an error to call Open on a path geometry more than once.

Note that the fill mode defaults to . To set the fill mode, call SetFillMode before the first call to BeginFigure. Failure to do so will put the geometry sink in an error state.

+
+ + dd371522 + HRESULT ID2D1PathGeometry::Open([Out] ID2D1GeometrySink** geometrySink) + ID2D1PathGeometry::Open +
+ + +

Copies the contents of the path geometry to the specified .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371525 + HRESULT ID2D1PathGeometry::Stream([In] ID2D1GeometrySink* geometrySink) + ID2D1PathGeometry::Stream +
+ + +

Retrieves the number of segments in the path geometry.

+
+

A reference that receives the number of segments in the path geometry when this method returns. You must allocate storage for this parameter.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371520 + HRESULT ID2D1PathGeometry::GetSegmentCount([Out] unsigned int* count) + ID2D1PathGeometry::GetSegmentCount +
+ + +

Retrieves the number of figures in the path geometry.

+
+

A reference that receives the number of figures in the path geometry when this method returns. You must allocate storage for this parameter.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd371515 + HRESULT ID2D1PathGeometry::GetFigureCount([Out] unsigned int* count) + ID2D1PathGeometry::GetFigureCount +
+ + + Creates an empty . + + an instance of + + + + Copies the contents of the path geometry to the specified . + + The sink to which the path geometry's contents are copied. Modifying this sink does not change the contents of this path geometry. + If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. + HRESULT Stream([In] ID2D1GeometrySink* geometrySink) + + + +

Retrieves the number of segments in the path geometry.

+
+ + dd371520 + GetSegmentCount + GetSegmentCount + HRESULT ID2D1PathGeometry::GetSegmentCount([Out] unsigned int* count) +
+ + +

Retrieves the number of figures in the path geometry.

+
+ + dd371515 + GetFigureCount + GetFigureCount + HRESULT ID2D1PathGeometry::GetFigureCount([Out] unsigned int* count) +
+ + +

Paints an area with a radial gradient.

+
+ +

The is similar to the in that they both map a collection of gradient stops to a gradient. However, the linear gradient has a start and an end point to define the gradient vector, while the radial gradient uses an ellipse and a gradient origin to define its gradient behavior. To define the position and size of the ellipse, use the SetCenter, SetRadiusX, and SetRadiusY methods to specify the center, x-radius, and y-radius of the ellipse. The gradient origin is the center of the ellipse, unless a gradient offset is specified by using the SetGradientOriginOffset method.

The brush maps the gradient stop position 0.0f of the gradient origin, and the position 1.0f is mapped to the ellipse boundary. When the gradient origin is within the ellipse, the contents of the ellipse enclose the entire [0, 1] range of the brush gradient stops. If the gradient origin is outside the bounds of the ellipse, the brush still works, but its gradient is not well-defined.

The start point and end point are described in the brush space and are mappped to the render target when the brush is used. Note the starting and ending coordinates are absolute, not relative to the render target size. A value of (0, 0) maps to the upper-left corner of the render target, while a value of (1, 1) maps just one pixel diagonally away from (0, 0). If there is a nonidentity brush transform or render target transform, the brush ellipse and gradient origin are also transformed.

It is possible to specify an ellipse that does not completely fill area being painted. When this occurs, the and setting (specified by the brush ) determines how the remaining area is painted. +

+
+ + dd371529 + ID2D1RadialGradientBrush + ID2D1RadialGradientBrush +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies the center of the gradient ellipse in the brush's coordinate space.

+
+

The center of the gradient ellipse, in the brush's coordinate space.

+ + dd371547 + void ID2D1RadialGradientBrush::SetCenter([In] D2D_POINT_2F center) + ID2D1RadialGradientBrush::SetCenter +
+ + +

Specifies the offset of the gradient origin relative to the gradient ellipse's center.

+
+

The offset of the gradient origin from the center of the gradient ellipse.

+ + dd371550 + void ID2D1RadialGradientBrush::SetGradientOriginOffset([In] D2D_POINT_2F gradientOriginOffset) + ID2D1RadialGradientBrush::SetGradientOriginOffset +
+ + +

Specifies the x-radius of the gradient ellipse, in the brush's coordinate space.

+
+

The x-radius of the gradient ellipse. This value is in the brush's coordinate space.

+ + dd371553 + void ID2D1RadialGradientBrush::SetRadiusX([In] float radiusX) + ID2D1RadialGradientBrush::SetRadiusX +
+ + +

Specifies the y-radius of the gradient ellipse, in the brush's coordinate space.

+
+

The y-radius of the gradient ellipse. This value is in the brush's coordinate space.

+ + dd371557 + void ID2D1RadialGradientBrush::SetRadiusY([In] float radiusY) + ID2D1RadialGradientBrush::SetRadiusY +
+ + +

Retrieves the center of the gradient ellipse.

+
+

The center of the gradient ellipse. This value is expressed in the brush's coordinate space.

+ + dd371532 + D2D_POINT_2F ID2D1RadialGradientBrush::GetCenter() + ID2D1RadialGradientBrush::GetCenter +
+ + +

Retrieves the offset of the gradient origin relative to the gradient ellipse's center.

+
+

The offset of the gradient origin from the center of the gradient ellipse. This value is expressed in the brush's coordinate space.

+ + dd371535 + D2D_POINT_2F ID2D1RadialGradientBrush::GetGradientOriginOffset() + ID2D1RadialGradientBrush::GetGradientOriginOffset +
+ + +

Retrieves the x-radius of the gradient ellipse.

+
+

The x-radius of the gradient ellipse. This value is expressed in the brush's coordinate space.

+ + dd371542 + float ID2D1RadialGradientBrush::GetRadiusX() + ID2D1RadialGradientBrush::GetRadiusX +
+ + +

Retrieves the y-radius of the gradient ellipse.

+
+

The y-radius of the gradient ellipse. This value is expressed in the brush's coordinate space.

+ + dd371544 + float ID2D1RadialGradientBrush::GetRadiusY() + ID2D1RadialGradientBrush::GetRadiusY +
+ + +

Retrieves the associated with this radial gradient brush object.

+
+ No documentation. + +

contains an array of structures and additional information, such as the extend mode and the color interpolation mode.

+
+ + dd371539 + void ID2D1RadialGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection) + ID2D1RadialGradientBrush::GetGradientStopCollection +
+ + + Creates an that contains the specified gradient stops and has the specified transform and base opacity. + + an instance of + The center, gradient origin offset, and x-radius and y-radius of the brush's gradient. + A collection of structures that describe the colors in the brush's gradient and their locations along the gradient. + HRESULT CreateRadialGradientBrush([In] const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES* radialGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out] ID2D1RadialGradientBrush** radialGradientBrush) + + + + Creates an that contains the specified gradient stops and has the specified transform and base opacity. + + an instance of + The center, gradient origin offset, and x-radius and y-radius of the brush's gradient. + A collection of structures that describe the colors in the brush's gradient and their locations along the gradient. + HRESULT CreateRadialGradientBrush([In] const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES* radialGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out] ID2D1RadialGradientBrush** radialGradientBrush) + + + + Creates an that contains the specified gradient stops and has the specified transform and base opacity. + + an instance of + The center, gradient origin offset, and x-radius and y-radius of the brush's gradient. + The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation. + A collection of structures that describe the colors in the brush's gradient and their locations along the gradient. + HRESULT CreateRadialGradientBrush([In] const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES* radialGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out] ID2D1RadialGradientBrush** radialGradientBrush) + + + + Creates an that contains the specified gradient stops and has the specified transform and base opacity. + + an instance of + The center, gradient origin offset, and x-radius and y-radius of the brush's gradient. + The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation. + A collection of structures that describe the colors in the brush's gradient and their locations along the gradient. + HRESULT CreateRadialGradientBrush([In] const D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES* radialGradientBrushProperties,[In, Optional] const D2D1_BRUSH_PROPERTIES* brushProperties,[In] ID2D1GradientStopCollection* gradientStopCollection,[Out] ID2D1RadialGradientBrush** radialGradientBrush) + + + +

Retrieves or sets the center of the gradient ellipse.

+
+ + dd371532 + GetCenter / SetCenter + GetCenter + D2D_POINT_2F ID2D1RadialGradientBrush::GetCenter() +
+ + +

Retrieves or sets the offset of the gradient origin relative to the gradient ellipse's center.

+
+ + dd371535 + GetGradientOriginOffset / SetGradientOriginOffset + GetGradientOriginOffset + D2D_POINT_2F ID2D1RadialGradientBrush::GetGradientOriginOffset() +
+ + +

Retrieves or sets the x-radius of the gradient ellipse.

+
+ + dd371542 + GetRadiusX / SetRadiusX + GetRadiusX + float ID2D1RadialGradientBrush::GetRadiusX() +
+ + +

Retrieves or sets the y-radius of the gradient ellipse.

+
+ + dd371544 + GetRadiusY / SetRadiusY + GetRadiusY + float ID2D1RadialGradientBrush::GetRadiusY() +
+ + +

Retrieves the associated with this radial gradient brush object.

+
+ +

contains an array of structures and additional information, such as the extend mode and the color interpolation mode.

+
+ + dd371539 + GetGradientStopCollection + GetGradientStopCollection + void ID2D1RadialGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection) +
+ + +

Describes a two-dimensional rectangle.

+
+ + dd371561 + ID2D1RectangleGeometry + ID2D1RectangleGeometry +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the rectangle that describes the rectangle geometry's dimensions.

+
+

Contains a reference to a rectangle that describes the rectangle geometry's dimensions when this method returns. You must allocate storage for this parameter.

+ + dd371762 + void ID2D1RectangleGeometry::GetRect([Out] D2D_RECT_F* rect) + ID2D1RectangleGeometry::GetRect +
+ + + Creates an . + + an instance of + The coordinates of the rectangle geometry. + + + +

Retrieves the rectangle that describes the rectangle geometry's dimensions.

+
+ + dd371762 + GetRect + GetRect + void ID2D1RectangleGeometry::GetRect([Out] D2D_RECT_F* rect) +
+ + +

Describes a rounded rectangle.

+
+ + dd316914 + ID2D1RoundedRectangleGeometry + ID2D1RoundedRectangleGeometry +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a rounded rectangle that describes this rounded rectangle geometry.

+
+

A reference that receives a rounded rectangle that describes this rounded rectangle geometry. You must allocate storage for this parameter.

+ + dd316917 + void ID2D1RoundedRectangleGeometry::GetRoundedRect([Out] D2D1_ROUNDED_RECT* roundedRect) + ID2D1RoundedRectangleGeometry::GetRoundedRect +
+ + + Creates an . + + an instance of + The coordinates and corner radii of the rounded rectangle geometry. + + + +

Retrieves a rounded rectangle that describes this rounded rectangle geometry.

+
+ + dd316917 + GetRoundedRect + GetRoundedRect + void ID2D1RoundedRectangleGeometry::GetRoundedRect([Out] D2D1_ROUNDED_RECT* roundedRect) +
+ + +

Paints an area with a solid color.

+
+ + dd372207 + ID2D1SolidColorBrush + ID2D1SolidColorBrush +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies the color of this solid-color brush.

+
+

The color of this solid-color brush.

+ +

To help create colors, Direct2D provides the ColorF class. It offers several helper methods for creating colors and provides a set or predefined colors.

+
+ + dd372215 + void ID2D1SolidColorBrush::SetColor([In] const D2D_COLOR_F* color) + ID2D1SolidColorBrush::SetColor +
+ + +

Retrieves the color of the solid color brush.

+
+

The color of this solid color brush.

+ + dd372209 + D2D_COLOR_F ID2D1SolidColorBrush::GetColor() + ID2D1SolidColorBrush::GetColor +
+ + + Creates a new that has the specified color and opacity. + + an instance of + The red, green, blue, and alpha values of the brush's color. + + + + Creates a new that has the specified color and opacity. + + an instance of + The red, green, blue, and alpha values of the brush's color. + The base opacity of the brush. + + + +

Retrieves or sets the color of the solid color brush.

+
+ + dd372209 + GetColor / SetColor + GetColor + D2D_COLOR_F ID2D1SolidColorBrush::GetColor() +
+ + +

Describes the caps, miter limit, line join, and dash information for a stroke.

+
+ + dd372217 + ID2D1StrokeStyle + ID2D1StrokeStyle +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the type of shape used at the beginning of a stroke.

+
+

The type of shape used at the beginning of a stroke.

+ + dd372244 + D2D1_CAP_STYLE ID2D1StrokeStyle::GetStartCap() + ID2D1StrokeStyle::GetStartCap +
+ + +

Retrieves the type of shape used at the end of a stroke.

+
+

The type of shape used at the end of a stroke.

+ + dd372238 + D2D1_CAP_STYLE ID2D1StrokeStyle::GetEndCap() + ID2D1StrokeStyle::GetEndCap +
+ + +

Gets a value that specifies how the ends of each dash are drawn.

+
+

A value that specifies how the ends of each dash are drawn.

+ + dd372218 + D2D1_CAP_STYLE ID2D1StrokeStyle::GetDashCap() + ID2D1StrokeStyle::GetDashCap +
+ + +

Retrieves the limit on the ratio of the miter length to half the stroke's thickness.

+
+

A positive number greater than or equal to 1.0f that describes the limit on the ratio of the miter length to half the stroke's thickness.

+ + dd372242 + float ID2D1StrokeStyle::GetMiterLimit() + ID2D1StrokeStyle::GetMiterLimit +
+ + +

Retrieves the type of joint used at the vertices of a shape's outline.

+
+

A value that specifies the type of joint used at the vertices of a shape's outline.

+ + dd372240 + D2D1_LINE_JOIN ID2D1StrokeStyle::GetLineJoin() + ID2D1StrokeStyle::GetLineJoin +
+ + +

Retrieves a value that specifies how far in the dash sequence the stroke will start.

+
+

A value that specifies how far in the dash sequence the stroke will start.

+ + dd372234 + float ID2D1StrokeStyle::GetDashOffset() + ID2D1StrokeStyle::GetDashOffset +
+ + +

Gets a value that describes the stroke's dash pattern.

+
+

A value that describes the predefined dash pattern used, or if a custom dash style is used.

+ +

If a custom dash style is specified, the dash pattern is described by the dashes array, which can be retrieved by calling the GetDashes method.

+
+ + dd372236 + D2D1_DASH_STYLE ID2D1StrokeStyle::GetDashStyle() + ID2D1StrokeStyle::GetDashStyle +
+ + +

Retrieves the number of entries in the dashes array.

+
+

The number of entries in the dashes array if the stroke is dashed; otherwise, 0.

+ + dd372232 + unsigned int ID2D1StrokeStyle::GetDashesCount() + ID2D1StrokeStyle::GetDashesCount +
+ + +

Copies the dash pattern to the specified array.

+
+

A reference to an array that will receive the dash pattern. The array must be able to contain at least as many elements as specified by dashesCount. You must allocate storage for this array.

+

The number of dashes to copy. If this value is less than the number of dashes in the stroke style's dashes array, the returned dashes are truncated to dashesCount. If this value is greater than the number of dashes in the stroke style's dashes array, the extra dashes are set to 0.0f. To obtain the actual number of dashes in the stroke style's dashes array, use the GetDashesCount method.

+ +

The dashes are specified in units that are a multiple of the stroke width, with subsequent members of the array indicating the dashes and gaps between dashes: the first entry indicates a filled dash, the second a gap, and so on.

+
+ + dd372230 + void ID2D1StrokeStyle::GetDashes([Out, Buffer] float* dashes,[In] unsigned int dashesCount) + ID2D1StrokeStyle::GetDashes +
+ + + Creates an that describes start cap, dash pattern, and other features of a stroke. + + an instance of + a definition for this render target + + + + Creates an that describes start cap, dash pattern, and other features of a stroke. + + an instance of + A structure that describes the stroke's line cap, dash offset, and other details of a stroke. + An array whose elements are set to the length of each dash and space in the dash pattern. The first element sets the length of a dash, the second element sets the length of a space, the third element sets the length of a dash, and so on. The length of each dash and space in the dash pattern is the product of the element value in the array and the stroke width. + + + +

Retrieves the type of shape used at the beginning of a stroke.

+
+ + dd372244 + GetStartCap + GetStartCap + D2D1_CAP_STYLE ID2D1StrokeStyle::GetStartCap() +
+ + +

Retrieves the type of shape used at the end of a stroke.

+
+ + dd372238 + GetEndCap + GetEndCap + D2D1_CAP_STYLE ID2D1StrokeStyle::GetEndCap() +
+ + +

Gets a value that specifies how the ends of each dash are drawn.

+
+ + dd372218 + GetDashCap + GetDashCap + D2D1_CAP_STYLE ID2D1StrokeStyle::GetDashCap() +
+ + +

Retrieves the limit on the ratio of the miter length to half the stroke's thickness.

+
+ + dd372242 + GetMiterLimit + GetMiterLimit + float ID2D1StrokeStyle::GetMiterLimit() +
+ + +

Retrieves the type of joint used at the vertices of a shape's outline.

+
+ + dd372240 + GetLineJoin + GetLineJoin + D2D1_LINE_JOIN ID2D1StrokeStyle::GetLineJoin() +
+ + +

Retrieves a value that specifies how far in the dash sequence the stroke will start.

+
+ + dd372234 + GetDashOffset + GetDashOffset + float ID2D1StrokeStyle::GetDashOffset() +
+ + +

Gets a value that describes the stroke's dash pattern.

+
+ +

If a custom dash style is specified, the dash pattern is described by the dashes array, which can be retrieved by calling the GetDashes method.

+
+ + dd372236 + GetDashStyle + GetDashStyle + D2D1_DASH_STYLE ID2D1StrokeStyle::GetDashStyle() +
+ + +

Retrieves the number of entries in the dashes array.

+
+ + dd372232 + GetDashesCount + GetDashesCount + unsigned int ID2D1StrokeStyle::GetDashesCount() +
+ + +

Populates an object with triangles.

+
+ + dd372245 + ID2D1TessellationSink + ID2D1TessellationSink +
+ + + Copies the specified triangles to the sink. + + An array of structures that describe the triangles to add to the sink. + void AddTriangles([In, Buffer] const D2D1_TRIANGLE* triangles,[None] UINT trianglesCount) + + + + Closes the sink. + + HRESULT Close() + + + +

Populates an object with triangles.

+
+ + dd372245 + ID2D1TessellationSink + ID2D1TessellationSink +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Copies the specified triangles to the sink.

+
+

An array of structures that describe the triangles to add to the sink.

+

The number of triangles to copy from the triangles array.

+ + dd372248 + void ID2D1TessellationSink::AddTriangles([In, Buffer] const D2D1_TRIANGLE* triangles,[In] unsigned int trianglesCount) + ID2D1TessellationSink::AddTriangles +
+ + +

Closes the sink and returns its error status.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd372250 + HRESULT ID2D1TessellationSink::Close() + ID2D1TessellationSink::Close +
+ + +

Represents a geometry that has been transformed.

+
+ +

Using an rather than transforming a geometry by using a render target's transform enables you to transform a geometry without transforming its stroke.

+
+ + dd372252 + ID2D1TransformedGeometry + ID2D1TransformedGeometry +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the source geometry of this transformed geometry object.

+
+

When this method returns, contains a reference to a reference to the source geometry for this transformed geometry object. This parameter is passed uninitialized.

+ + dd372255 + void ID2D1TransformedGeometry::GetSourceGeometry([Out] ID2D1Geometry** sourceGeometry) + ID2D1TransformedGeometry::GetSourceGeometry +
+ + +

Retrieves the matrix used to transform the object's source geometry.

+
+ No documentation. + + dd372256 + void ID2D1TransformedGeometry::GetTransform([Out] D2D_MATRIX_3X2_F* transform) + ID2D1TransformedGeometry::GetTransform +
+ + + Default Constructor for a . + + an instance of + + + + + +

Retrieves the source geometry of this transformed geometry object.

+
+ + dd372255 + GetSourceGeometry + GetSourceGeometry + void ID2D1TransformedGeometry::GetSourceGeometry([Out] ID2D1Geometry** sourceGeometry) +
+ + +

Retrieves the matrix used to transform the object's source geometry.

+
+ + dd372256 + GetTransform + GetTransform + void ID2D1TransformedGeometry::GetTransform([Out] D2D_MATRIX_3X2_F* transform) +
+ + +

Renders drawing instructions to a window.

+
+ +

As is the case with other render targets, you must call BeginDraw before issuing drawing commands. After you've finished drawing, call EndDraw to indicate that drawing is finished and to release access to the buffer backing the render target. For , the only side effect of BeginDraw is changing the state of the render target to allow drawing commands to be issued. EndDraw flushes any batched drawing commands. If no errors have occurred, then it also presents the buffer, causing it to appear on the associated window. Finally, EndDraw returns the of the first error that occurred in drawing or presenting, as well as the tag state at the time the error occurred.

objects are double buffered, so drawing commands issued do not appear immediately, but rather are performed on an offscreen surface. When EndDraw is called, if there have been no rendering errors, the offscreen buffer is presented. If there have been rendering errors in the batch flushed by EndDraw, then the buffer is not presented, and the application must call BeginDraw and re-draw the frame. Flush can be used to check for errors before calling EndDraw if an application wants the frame to be presented regardless of errors.

A hardware render target's back-buffer is the size specified by GetPixelSize. If EndDraw presents the buffer, this bitmap is stretched to cover the surface where it is presented: the entire client area of the window. This stretch is performed using bilinear filtering if the render target is rendering in hardware and using nearest-neighbor filtering if the rendering target is using software. (Typically, an application will call Resize to ensure the pixel size of the render target and the pixel size of the destination match, and no scaling is necessary, though this is not a requirement.)

In the case where a window straddles adapters, Direct2D ensures that the portion of the off-screen render target is copied from the adapter where rendering is occurring to the adapter that needs to display the contents. If the adapter a render target is on has been removed or the driver upgraded while the application is running, this is returned as an error in the EndDraw call. In this case, the application should create a new render target and resources as necessary. +

+
+ + dd371461 + ID2D1HwndRenderTarget + ID2D1HwndRenderTarget +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Indicates whether the associated with this render target is occluded.

+
+

A value that indicates whether the associated with this render target is occluded.

+ +

Note??If the window was occluded the last time that EndDraw was called, the next time that the render target calls CheckWindowState, it will return regardless of the current window state. If you want to use CheckWindowState to determine the current window state, you should call CheckWindowState after every EndDraw call and ignore its return value. This call will ensure that your next call to CheckWindowState state will return the actual window state.

+
+ + dd371466 + D2D1_WINDOW_STATE ID2D1HwndRenderTarget::CheckWindowState() + ID2D1HwndRenderTarget::CheckWindowState +
+ + +

Changes the size of the render target to the specified pixel size.

+
+

The new size of the render target in device pixels.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

After this method is called, the contents of the render target's back-buffer are not defined, even if the option was specified when the render target was created.

+
+ + dd371479 + HRESULT ID2D1HwndRenderTarget::Resize([In] const D2D_SIZE_U* pixelSize) + ID2D1HwndRenderTarget::Resize +
+ + +

Returns the associated with this render target.

+
+

The associated with this render target.

+ + dd371470 + HWND ID2D1HwndRenderTarget::GetHwnd() + ID2D1HwndRenderTarget::GetHwnd +
+ + + Creates an , a render target that renders to a window. + + + When you create a render target and hardware acceleration is available, you allocate resources on the computer's GPU. By creating a render target once and retaining it as long as possible, you gain performance benefits. Your application should create render targets once and hold onto them for the life of the application or until the {{D2DERR_RECREATE_TARGET}} error is received. When you receive this error, you need to recreate the render target (and any resources it created). + + an instance of + The rendering mode, pixel format, remoting options, DPI information, and the minimum DirectX support required for hardware rendering. For information about supported pixel formats, see {{Supported Pixel Formats and Alpha Modes}}. + The window handle, initial size (in pixels), and present options. + + + +

Returns the associated with this render target.

+
+ + dd371470 + GetHwnd + GetHwnd + HWND ID2D1HwndRenderTarget::GetHwnd() +
+ + +

Describes an elliptical arc between two points.

+
+ + dd368065 + D2D1_ARC_SEGMENT + D2D1_ARC_SEGMENT +
+ + +

The end point of the arc.

+
+ + dd368065 + D2D_POINT_2F point + D2D_POINT_2F point +
+ + +

The x-radius and y-radius of the arc.

+
+ + dd368065 + D2D_SIZE_F size + D2D_SIZE_F size +
+ + +

A value that specifies how many degrees in the clockwise direction the ellipse is rotated relative to the current coordinate system.

+
+ + dd368065 + float rotationAngle + float rotationAngle +
+ + +

A value that specifies whether the arc sweep is clockwise or counterclockwise.

+
+ + dd368065 + D2D1_SWEEP_DIRECTION sweepDirection + D2D1_SWEEP_DIRECTION sweepDirection +
+ + +

A value that specifies whether the given arc is larger than 180 degrees.

+
+ + dd368065 + D2D1_ARC_SIZE arcSize + D2D1_ARC_SIZE arcSize +
+ + +

Represents a cubic bezier segment drawn between two points.

+
+ +

A cubic Bezier curve is defined by four points: a start point, an end point (point3), and two control points (point1 and point2). A Bezier segment does not contain a property for the starting point of the curve; it defines only the end point. The beginning point of the curve is the current point of the path to which the Bezier curve is added.

The two control points of a cubic Bezier curve behave like magnets, attracting portions of what would otherwise be a straight line toward themselves and producing a curve. The first control point, point1, affects the beginning portion of the curve; the second control point, point2, affects the ending portion of the curve.

Note??The curve doesn't necessarily pass through either of the control points; each control point moves its portion of the line toward itself, but not through itself.

+
+ + dd368070 + D2D1_BEZIER_SEGMENT + D2D1_BEZIER_SEGMENT +
+ + +

The first control point for the Bezier segment.

+
+ + dd368070 + D2D_POINT_2F point1 + D2D_POINT_2F point1 +
+ + +

The second control point for the Bezier segment.

+
+ + dd368070 + D2D_POINT_2F point2 + D2D_POINT_2F point2 +
+ + +

The end point for the Bezier segment.

+
+ + dd368070 + D2D_POINT_2F point3 + D2D_POINT_2F point3 +
+ + +

Describes the extend modes and the interpolation mode of an .

+
+ + dd368071 + D2D1_BITMAP_BRUSH_PROPERTIES + D2D1_BITMAP_BRUSH_PROPERTIES +
+ + + No documentation. + + + dd368071 + D2D1_EXTEND_MODE extendModeX + D2D1_EXTEND_MODE extendModeX + + + + No documentation. + + + dd368071 + D2D1_EXTEND_MODE extendModeY + D2D1_EXTEND_MODE extendModeY + + + + No documentation. + + + dd368071 + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode + D2D1_BITMAP_INTERPOLATION_MODE interpolationMode + + + +

Describes the opacity and transformation of a brush.

+
+ +

This structure is used when creating a brush. For convenience, Direct2D provides the D2D1::BrushProperties function for creating structures.

After creating a brush, you can change its opacity or transform by calling the SetOpacity or SetTransform methods.

+
+ + dd368077 + D2D1_BRUSH_PROPERTIES + D2D1_BRUSH_PROPERTIES +
+ + +

A value between 0.0f and 1.0f, inclusive, that specifies the degree of opacity of the brush.

+
+ + dd368077 + float opacity + float opacity +
+ + +

The transformation that is applied to the brush.

+
+ + dd368077 + D2D_MATRIX_3X2_F transform + D2D_MATRIX_3X2_F transform +
+ + +

Describes the drawing state of a render target.

+
+ + dd368093 + D2D1_DRAWING_STATE_DESCRIPTION + D2D1_DRAWING_STATE_DESCRIPTION +
+ + +

The antialiasing mode for subsequent nontext drawing operations.

+
+ + dd368093 + D2D1_ANTIALIAS_MODE antialiasMode + D2D1_ANTIALIAS_MODE antialiasMode +
+ + +

The antialiasing mode for subsequent text and glyph drawing operations.

+
+ + dd368093 + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode + D2D1_TEXT_ANTIALIAS_MODE textAntialiasMode +
+ + +

A label for subsequent drawing operations.

+
+ + dd368093 + unsigned longlong tag1 + unsigned longlong tag1 +
+ + +

A label for subsequent drawing operations.

+
+ + dd368093 + unsigned longlong tag2 + unsigned longlong tag2 +
+ + +

The transformation to apply to subsequent drawing operations.

+
+ + dd368093 + D2D_MATRIX_3X2_F transform + D2D_MATRIX_3X2_F transform +
+ + +

Contains the debugging level of an object.

+
+ +

To enable debugging, you must install the Direct2D Debug Layer.

+
+ + dd368102 + D2D1_FACTORY_OPTIONS + D2D1_FACTORY_OPTIONS +
+ + + No documentation. + + + dd368102 + D2D1_DEBUG_LEVEL debugLevel + D2D1_DEBUG_LEVEL debugLevel + + + +

Contains the position and color of a gradient stop.

+
+ +

Gradient stops can be specified in any order if they are at different positions. Two stops may share a position. In this case, the first stop specified is treated as the "low" stop (nearer 0.0f) and subsequent stops are treated as "higher" (nearer 1.0f). This behavior is useful if a caller wants an instant transition in the middle of a stop.

Typically, there are at least two points in a collection, although creation with only one stop is permitted. For example, one point is at position 0.0f, another point is at position 1.0f, and additional points are distributed in the [0, 1] range. Where the gradient progression is beyond the range of [0, 1], the stops are stored, but may affect the gradient.

When drawn, the [0, 1] range of positions is mapped to the brush, in a brush-dependent way. For details, see and .

Gradient stops with a position outside the [0, 1] range cannot be seen explicitly, but they can still affect the colors produced in the [0, 1] range. For example, a two-stop gradient 0.0f, Black}, {2.0f, White is indistinguishable visually from 0.0f, Black}, {1.0f, Mid-level gray. Also, the colors are clamped before interpolation.

+
+ + dd368119 + D2D1_GRADIENT_STOP + D2D1_GRADIENT_STOP +
+ + +

A value that indicates the relative position of the gradient stop in the brush. This value must be in the [0.0f, 1.0f] range if the gradient stop is to be seen explicitly.

+
+ + dd368119 + float position + float position +
+ + +

The color of the gradient stop.

+
+ + dd368119 + D2D_COLOR_F color + D2D_COLOR_F color +
+ + +

Contains the , pixel size, and presentation options for an .

+
+ +

Use this structure when you call the CreateHwndRenderTarget method to create a new .

For convenience, Direct2D provides the D2D1::HwndRenderTargetProperties function for creating new structures.

+
+ + dd368122 + D2D1_HWND_RENDER_TARGET_PROPERTIES + D2D1_HWND_RENDER_TARGET_PROPERTIES +
+ + + No documentation. + + + dd368122 + HWND hwnd + HWND hwnd + + + + No documentation. + + + dd368122 + D2D_SIZE_U pixelSize + D2D_SIZE_U pixelSize + + + + No documentation. + + + dd368122 + D2D1_PRESENT_OPTIONS presentOptions + D2D1_PRESENT_OPTIONS presentOptions + + + +

Contains the starting point and endpoint of the gradient axis for an .

+
+ +

Use this method when creating new objects with the CreateLinearGradientBrush method. For convenience, Direct2D provides the D2D1::LinearGradientBrushProperties helper function for creating new structures.

The following illustration shows how a linear gradient changes as you change its start and end points. For the first gradient, the start point is set to (0,0) and the end point to (150, 50); this creates a diagonal gradient that starts at the upper-left corner and extends to the lower-right corner of the area being painted. When you set the start point to (0, 25) and the end point to (150, 25), a horizontal gradient is created. Similarly, setting the start point to (75, 0) and the end point to (75, 50) creates a vertical gradient. Setting the start point to (0, 50) and the end point to (150, 0) creates a diagonal gradient that starts at the lower-left corner and extends to the upper-right corner of the area being painted.

+
+ + dd368128 + D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES + D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES +
+ + + No documentation. + + + dd368128 + D2D_POINT_2F startPoint + D2D_POINT_2F startPoint + + + + No documentation. + + + dd368128 + D2D_POINT_2F endPoint + D2D_POINT_2F endPoint + + + +

Contains the data format and alpha mode for a bitmap or render target.

+
+ +

For more information about the pixel formats and alpha modes supported by each render target, see Supported Pixel Formats and Alpha Modes.

+
+ + dd368138 + D2D1_PIXEL_FORMAT + D2D1_PIXEL_FORMAT +
+ + +

A value that specifies the size and arrangement of channels in each pixel.

+
+ + dd368138 + DXGI_FORMAT format + DXGI_FORMAT format +
+ + +

A value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unkown.

+
+ + dd368138 + D2D1_ALPHA_MODE alphaMode + D2D1_ALPHA_MODE alphaMode +
+ + + Initializes a new instance of the struct. + + A value that specifies the size and arrangement of channels in each pixel. + A value that specifies whether the alpha channel is using pre-multiplied alpha, straight alpha, whether it should be ignored and considered opaque, or whether it is unknown. + + + +

Contains the control point and end point for a quadratic Bezier segment.

+
+ + dd368147 + D2D1_QUADRATIC_BEZIER_SEGMENT + D2D1_QUADRATIC_BEZIER_SEGMENT +
+ + +

The control point of the quadratic Bezier segment.

+
+ + dd368147 + D2D_POINT_2F point1 + D2D_POINT_2F point1 +
+ + +

The end point of the quadratic Bezier segment.

+
+ + dd368147 + D2D_POINT_2F point2 + D2D_POINT_2F point2 +
+ + +

Contains the gradient origin offset and the size and position of the gradient ellipse for an .

+
+ +

Different values for center, gradientOriginOffset, radiusX and/or radiusY produce different gradients. The following illustration shows several radial gradients that have different gradient origin offsets, creating the appearance of the light illuminating the circles from different angles.

For convenience, Direct2D provides the D2D1::RadialGradientBrushProperties function for creating new D2D1_RADIAL_GRADIENT_BRUSH structures.

+
+ + dd368149 + D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES + D2D1_RADIAL_GRADIENT_BRUSH_PROPERTIES +
+ + + No documentation. + + + dd368149 + D2D_POINT_2F center + D2D_POINT_2F center + + + + No documentation. + + + dd368149 + D2D_POINT_2F gradientOriginOffset + D2D_POINT_2F gradientOriginOffset + + + + No documentation. + + + dd368149 + float radiusX + float radiusX + + + + No documentation. + + + dd368149 + float radiusY + float radiusY + + + +

Contains rendering options (hardware or software), pixel format, DPI information, remoting options, and Direct3D support requirements for a render target.

+
+ +

Use this structure when creating a render target, or use it with the method to check the properties supported by an existing render target.

As a convenience, Direct2D provides the D2D1::RenderTargetProperties helper function for creating structures. An easy way to create a structure that works for most render targets is to call the function without specifying any parameters. Doing so creates a structure that has its fields set to default values. For more information, see D2D1::RenderTargetProperties.

Not all render targets support hardware rendering. For a list, see the Render Targets Overview.

+
+ + dd368155 + D2D1_RENDER_TARGET_PROPERTIES + D2D1_RENDER_TARGET_PROPERTIES +
+ + +

A value that specifies whether the render target should force hardware or software rendering. A value of specifies that the render target should use hardware rendering if it is available; otherwise, it uses software rendering. Note that WIC bitmap render targets do not support hardware rendering.

+
+ + dd368155 + D2D1_RENDER_TARGET_TYPE type + D2D1_RENDER_TARGET_TYPE type +
+ + +

The pixel format and alpha mode of the render target. You can use the D2D1::PixelFormat function to create a pixel format that specifies that Direct2D should select the pixel format and alpha mode for you. For a list of pixel formats and alpha modes supported by each render target, see Supported Pixel Formats and Alpha Modes.

+
+ + dd368155 + D2D1_PIXEL_FORMAT pixelFormat + D2D1_PIXEL_FORMAT pixelFormat +
+ + +

The horizontal DPI of the render target. To use the default DPI, set dpiX and dpiY to 0. For more information, see the Remarks section.

+
+ + dd368155 + float dpiX + float dpiX +
+ + +

The vertical DPI of the render target. To use the default DPI, set dpiX and dpiY to 0. For more information, see the Remarks section.

+
+ + dd368155 + float dpiY + float dpiY +
+ + +

A value that specifies how the render target is remoted and whether it should be GDI-compatible. Set to to create a render target that is not compatible with GDI and uses Direct3D command-stream remoting if it is available.

+
+ + dd368155 + D2D1_RENDER_TARGET_USAGE usage + D2D1_RENDER_TARGET_USAGE usage +
+ + +

A value that specifies the minimum Direct3D feature level required for hardware rendering. If the specified minimum level is not available, the render target uses software rendering if the type member is set to ; if type is set to to , render target creation fails. A value of indicates that Direct2D should determine whether the Direct3D feature level of the device is adequate. This field is used only when creating and objects.

+
+ + dd368155 + D2D1_FEATURE_LEVEL minLevel + D2D1_FEATURE_LEVEL minLevel +
+ + + Initializes a new instance of the struct. + + The pixel format and alpha mode of the render target. You can use the {{D2D1::PixelFormat}} function to create a pixel format that specifies that Direct2D should select the pixel format and alpha mode for you. For a list of pixel formats and alpha modes supported by each render target, see {{Supported Pixel Formats and Alpha Modes}}. + + + + Initializes a new instance of the struct. + + A value that specifies whether the render target should force hardware or software rendering. A value of specifies that the render target should use hardware rendering if it is available; otherwise, it uses software rendering. Note that WIC bitmap render targets do not support hardware rendering. + The pixel format and alpha mode of the render target. You can use the {{D2D1::PixelFormat}} function to create a pixel format that specifies that Direct2D should select the pixel format and alpha mode for you. For a list of pixel formats and alpha modes supported by each render target, see {{Supported Pixel Formats and Alpha Modes}}. + The horizontal DPI of the render target. To use the default DPI, set dpiX and dpiY to 0. For more information, see the Remarks section. + The vertical DPI of the render target. To use the default DPI, set dpiX and dpiY to 0. For more information, see the Remarks section. + A value that specifies how the render target is remoted and whether it should be GDI-compatible. Set to to create a render target that is not compatible with GDI and uses Direct3D command-stream remoting if it is available. + A value that specifies the minimum Direct3D feature level required for hardware rendering. If the specified minimum level is not available, the render target uses software rendering if the type member is set to ; if type is set to to D2D1_RENDER_TARGET_TYPE_HARDWARE, render target creation fails. A value of indicates that Direct2D should determine whether the Direct3D feature level of the device is adequate. This field is used only when creating and objects. + + + +

Contains the dimensions and corner radii of a rounded rectangle.

+
+ +

Each corner of the rectangle specified by the rect is replaced with a quarter ellipse, with a radius in each direction specified by radiusX and radiusY.

If the radiusX is greater than or equal to half the width of the rectangle, and the radiusY is greater than or equal to one-half the height, the rounded rectangle is an ellipse with the same width and height of the rect.

Even when both radiuX and radiusY are zero, the rounded rectangle is different from a rectangle., When stroked, the corners of the rounded rectangle are roundly joined, not mitered (square).

+
+ + dd368158 + D2D1_ROUNDED_RECT + D2D1_ROUNDED_RECT +
+ + +

The coordinates of the rectangle.

+
+ + dd368158 + D2D_RECT_F rect + D2D_RECT_F rect +
+ + +

The x-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.

+
+ + dd368158 + float radiusX + float radiusX +
+ + +

The y-radius for the quarter ellipse that is drawn to replace every corner of the rectangle.

+
+ + dd368158 + float radiusY + float radiusY +
+ + +

Describes the stroke that outlines a shape.

+
+ +

The following illustration shows different dashOffset values for the same custom dash style.

+
+ + dd368164 + D2D1_STROKE_STYLE_PROPERTIES + D2D1_STROKE_STYLE_PROPERTIES +
+ + +

The cap applied to the start of all the open figures in a stroked geometry.

+
+ + dd368164 + D2D1_CAP_STYLE startCap + D2D1_CAP_STYLE startCap +
+ + +

The cap applied to the end of all the open figures in a stroked geometry.

+
+ + dd368164 + D2D1_CAP_STYLE endCap + D2D1_CAP_STYLE endCap +
+ + +

The shape at either end of each dash segment.

+
+ + dd368164 + D2D1_CAP_STYLE dashCap + D2D1_CAP_STYLE dashCap +
+ + +

A value that describes how segments are joined. This value is ignored for a vertex if the segment flags specify that the segment should have a smooth join.

+
+ + dd368164 + D2D1_LINE_JOIN lineJoin + D2D1_LINE_JOIN lineJoin +
+ + +

The limit of the thickness of the join on a mitered corner. This value is always treated as though it is greater than or equal to 1.0f.

+
+ + dd368164 + float miterLimit + float miterLimit +
+ + +

A value that specifies whether the stroke has a dash pattern and, if so, the dash style.

+
+ + dd368164 + D2D1_DASH_STYLE dashStyle + D2D1_DASH_STYLE dashStyle +
+ + +

A value that specifies an offset in the dash sequence. A positive dash offset value shifts the dash pattern, in units of stroke width, toward the start of the stroked geometry. A negative dash offset value shifts the dash pattern, in units of stroke width, toward the end of the stroked geometry.

+
+ + dd368164 + float dashOffset + float dashOffset +
+ + +

Contains the three vertices that describe a triangle.

+
+ + dd368172 + D2D1_TRIANGLE + D2D1_TRIANGLE +
+ + +

The first vertex of a triangle.

+
+ + dd368172 + D2D_POINT_2F point1 + D2D_POINT_2F point1 +
+ + +

The second vertex of a triangle.

+
+ + dd368172 + D2D_POINT_2F point2 + D2D_POINT_2F point2 +
+ + +

The third vertex of a triangle.

+
+ + dd368172 + D2D_POINT_2F point3 + D2D_POINT_2F point3 +
+ + + Internal GeometrySink Callback + + + + + Internal SimplifiedGeometrySink Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + Get a native callback pointer from a managed callback. + + The geometry sink. + A pointer to the unmanaged geometry sink counterpart + + + + Internal TessellationSink Callback + + + + + Get a native callback pointer from a managed callback. + + The geometry sink. + A pointer to the unmanaged geometry sink counterpart + + + + BitmapEncoderOptions used for encoding. + + + + + Initializes a new instance of the class. + + The property bag pointer. + + + + Gets or sets the image quality. + + + The image quality. + + + Range value: 0-1.0f + Applicable Codecs: JPEG, HDPhoto + + + + + Gets or sets the compression quality. + + + The compression quality. + + + Range value: 0-1.0f + Applicable Codecs: TIFF + + + + + Gets or sets a value indicating whether loss less compression is enabled. + + + true if [loss less]; otherwise, false. + + + Range value: true-false + Applicable Codecs: HDPhoto + + + + + Gets or sets the bitmap transform. + + + The bitmap transform. + + + Range value: + Applicable Codecs: JPEG + + + + + Gets or sets a value indicating whether [interlace option]. + + + true if [interlace option]; otherwise, false. + + + Range value: true-false + Applicable Codecs: PNG + + + + + Gets or sets the filter option. + + + The filter option. + + + Range value: + Applicable Codecs: PNG + + + + + Gets or sets the TIFF compression method. + + + The TIFF compression method. + + + Range value: + Applicable Codecs: TIFF + + + + + Gets or sets the luminance. + + + The luminance. + + + Range value: 64 Entries (DCT) + Applicable Codecs: JPEG + + + + + Gets or sets the chrominance. + + + The chrominance. + + + Range value: 64 Entries (DCT) + Applicable Codecs: JPEG + + + + + Gets or sets the JPEG Y Cr Cb subsampling. + + + The JPEG Y Cr Cb subsampling. + + + Range value: + Applicable Codecs: JPEG + + + + + Gets or sets a value indicating whether [suppress app0]. + + + true if [suppress app0]; otherwise, false. + + + Range value: true-false + Applicable Codecs: JPEG + + + + + Bmp bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + + + + Bmp bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Gif bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + + + + Gif bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Tiff bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + + + + Tiff bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + The namespace provides a managed WIC API. + + ee719902 + WIC + WIC + + + + Png bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + + + + Png bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Tiff bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + + + + Tiff bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Wmp bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + + + + WMP bitmap encoder using initialized with default guid . + + + + + Initializes a new instance of the class. + + The native PTR. + + + + Initializes a new instance of the class. + + The factory. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The output stream. + + + + Initializes a new instance of the class. + + The factory. + The GUID vendor ref. + The output stream. + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D11.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D11.dll new file mode 100644 index 0000000..a07984f Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D11.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D11.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D11.xml new file mode 100644 index 0000000..9a1d834 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D11.xml @@ -0,0 +1,22957 @@ + + + + SharpDX.Direct3D11 + + + + + The assembly provides managed Direct3D11 API. + + ff476080 + Direct3D11 + Direct3D11 + + + +

The blend-state interface holds a description for blending state that you can bind to the output-merger stage.

+
+ +

Blending applies a simple function to combine output values from a pixel shader with data in a render target. You have control over how the pixels are blended by using a predefined set of blending operations and preblending operations.

To create a blend-state object, call . To bind the blend-state object to the output-merger stage, call .

Windows?Phone?8: This API is supported.

+
+ + ff476349 + ID3D11BlendState + ID3D11BlendState +
+ + +

A device-child interface accesses data used by a device.

+
+ +

There are several types of device child interfaces, all of which inherit this interface. They include shaders, state objects, and input layouts.

Windows?Phone?8: This API is supported.

+
+ + ff476380 + ID3D11DeviceChild + ID3D11DeviceChild +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a reference to the device that created this interface.

+
+

Address of a reference to a device (see ).

+ +

Any returned interfaces will have their reference count incremented by one, so be sure to call ::release() on the returned reference(s) before they are freed or else you will have a memory leak.

Windows?Phone?8: This API is supported.

+
+ + ff476381 + void ID3D11DeviceChild::GetDevice([Out] ID3D11Device** ppDevice) + ID3D11DeviceChild::GetDevice +
+ + +

Get application-defined data from a device child.

+
+

Guid associated with the data.

+

A reference to a variable that on input contains the size, in bytes, of the buffer that pData points to, and on output contains the size, in bytes, of the amount of data that GetPrivateData retrieved.

+

A reference to a buffer that GetPrivateData fills with data from the device child if pDataSize points to a value that specifies a buffer large enough to hold the data.

+

This method returns one of the codes described in the topic Direct3D 11 Return Codes.

+ +

The data stored in the device child is set by calling .

Windows?Phone?8: This API is supported.

+
+ + ff476382 + HRESULT ID3D11DeviceChild::GetPrivateData([In] const GUID& guid,[InOut] unsigned int* pDataSize,[Out, Buffer, Optional] void* pData) + ID3D11DeviceChild::GetPrivateData +
+ + +

Set application-defined data to a device child and associate that data with an application-defined guid.

+
+

Guid associated with the data.

+

Size of the data.

+

Pointer to the data to be stored with this device child. If pData is null, DataSize must also be 0, and any data previously associated with the specified guid will be destroyed.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

The data stored in the device child with this method can be retrieved with .

The debug layer reports memory leaks by outputting a list of object interface references along with their friendly names. The default friendly name is "<unnamed>". You can set the friendly name so that you can determine if the corresponding object interface reference caused the leak. To set the friendly name, use the SetPrivateData method and the that is in D3Dcommon.h. For example, to give pContext a friendly name of My name, use the following code:

 static const char c_szName[] = "My name";	
+            hr = pContext->SetPrivateData( , sizeof( c_szName ) - 1, c_szName );	
+            

Windows?Phone?8: This API is supported.

+
+ + ff476383 + HRESULT ID3D11DeviceChild::SetPrivateData([In] const GUID& guid,[In] unsigned int DataSize,[In, Buffer, Optional] const void* pData) + ID3D11DeviceChild::SetPrivateData +
+ + +

Associate an -derived interface with this device child and associate that interface with an application-defined guid.

+
+

Guid associated with the interface.

+

Pointer to an -derived interface to be associated with the device child.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

When this method is called ::addref() will be called on the -derived interface, and when the device child is detroyed ::release() will be called on the -derived interface.

Windows?Phone?8: This API is supported.

+
+ + ff476384 + HRESULT ID3D11DeviceChild::SetPrivateDataInterface([In] const GUID& guid,[In, Optional] const IUnknown* pData) + ID3D11DeviceChild::SetPrivateDataInterface +
+ + + Gets or sets the debug-name for this object. + + + The debug name. + + + + +

Get a reference to the device that created this interface.

+
+ +

Any returned interfaces will have their reference count incremented by one, so be sure to call ::release() on the returned reference(s) before they are freed or else you will have a memory leak.

Windows?Phone?8: This API is supported.

+
+ + ff476381 + GetDevice + GetDevice + void ID3D11DeviceChild::GetDevice([Out] ID3D11Device** ppDevice) +
+ + + Constructs a new based on the specified description. + + The device with which to associate the state object. + The state description. + The newly created object. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the description for blending state that you used to create the blend-state object.

+
+

A reference to a structure that receives a description of the blend state.

+ +

You use the description for blending state in a call to the method to create the blend-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476350 + void ID3D11BlendState::GetDesc([Out] D3D11_BLEND_DESC* pDesc) + ID3D11BlendState::GetDesc +
+ + +

Gets the description for blending state that you used to create the blend-state object.

+
+ +

You use the description for blending state in a call to the method to create the blend-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476350 + GetDesc + GetDesc + void ID3D11BlendState::GetDesc([Out] D3D11_BLEND_DESC* pDesc) +
+ + +

Describes the blend state that you use in a call to to create a blend-state object.

+
+ +

Here are the default values for blend state.

StateDefault Value
AlphaToCoverageEnable
IndependentBlendEnable
RenderTarget[0].BlendEnable
RenderTarget[0].SrcBlend
RenderTarget[0].DestBlend
RenderTarget[0].BlendOp
RenderTarget[0].SrcBlendAlpha
RenderTarget[0].DestBlendAlpha
RenderTarget[0].BlendOpAlpha
RenderTarget[0].RenderTargetWriteMask

?

Note?? is identical to .

If the driver type is set to , the feature level is set to less than or equal to , and the pixel format of the render target is set to , , or , the display device performs the blend in standard RGB (sRGB) space and not in linear space. However, if the feature level is set to greater than , the display device performs the blend in linear space, which is ideal.

+
+ + ff476087 + D3D11_BLEND_DESC + D3D11_BLEND_DESC +
+ + + Returns default values for . + + + See MSDN documentation for default values. + + + + + Clones this instance. + + A copy of this instance. + + Because this structure contains an array, it is not possible to modify it without making an explicit clone method. + + + + + No documentation. + + + ff476087 + BOOL AlphaToCoverageEnable + BOOL AlphaToCoverageEnable + + + + No documentation. + + + ff476087 + BOOL IndependentBlendEnable + BOOL IndependentBlendEnable + + + + No documentation. + + + ff476087 + D3D11_RENDER_TARGET_BLEND_DESC RenderTarget[8] + D3D11_RENDER_TARGET_BLEND_DESC RenderTarget + + + +

A buffer interface accesses a buffer resource, which is unstructured memory. Buffers typically store vertex or index data.

+
+ +

There are three types of buffers: vertex, index, or a shader-constant buffer. Create a buffer resource by calling .

A buffer must be bound to the pipeline before it can be accessed. Buffers can be bound to the input-assembler stage by calls to and , to the stream-output stage by a call to , and to a shader stage by calling the appropriate shader method (such as for example).

Buffers can be bound to multiple pipeline stages simultaneously for reading. A buffer can also be bound to a single pipeline stage for writing; however, the same buffer cannot be bound for reading and writing simultaneously.

Windows?Phone?8: This API is supported.

+
+ + ff476351 + ID3D11Buffer + ID3D11Buffer +
+ + +

A resource interface provides common actions on all resources.

+
+ +

You don't directly create a resource interface; instead, you create buffers and textures that inherit from a resource interface. For more info, see How to: Create a Vertex Buffer, How to: Create an Index Buffer, How to: Create a Constant Buffer, and How to: Create a Texture.

Windows?Phone?8: This API is supported.

+
+ + ff476584 + ID3D11Resource + ID3D11Resource +
+ + Constant MaximumMipLevels. + D3D11_REQ_MIP_LEVELS + + + Constant ResourceSizeInMegabytes. + D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM + + + Constant MaximumTexture1DArraySize. + D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION + + + Constant MaximumTexture2DArraySize. + D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION + + + Constant MaximumTexture1DSize. + D3D11_REQ_TEXTURE1D_U_DIMENSION + + + Constant MaximumTexture2DSize. + D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION + + + Constant MaximumTexture3DSize. + D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION + + + Constant MaximumTextureCubeSize. + D3D11_REQ_TEXTURECUBE_DIMENSION + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the type of the resource.

+
+

Pointer to the resource type (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476586 + void ID3D11Resource::GetType([Out] D3D11_RESOURCE_DIMENSION* pResourceDimension) + ID3D11Resource::GetType +
+ + +

Set the eviction priority of a resource.

+
+

Eviction priority for the resource, which is one of the following values:

+ +

Resource priorities determine which resource to evict from video memory when the system has run out of video memory. The resource will not be lost; it will be removed from video memory and placed into system memory, or possibly placed onto the hard drive. The resource will be loaded back into video memory when it is required.

A resource that is set to the maximum priority, , is only evicted if there is no other way of resolving the incoming memory request. The Windows Display Driver Model (WDDM) tries to split an incoming memory request to its minimum size and evict lower-priority resources before evicting a resource with maximum priority.

Changing the priorities of resources should be done carefully. The wrong eviction priorities could be a detriment to performance rather than an improvement.

Windows?Phone?8: This API is supported.

+
+ + ff476587 + void ID3D11Resource::SetEvictionPriority([In] unsigned int EvictionPriority) + ID3D11Resource::SetEvictionPriority +
+ + +

Get the eviction priority of a resource.

+
+

One of the following values, which specifies the eviction priority for the resource:

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476585 + unsigned int ID3D11Resource::GetEvictionPriority() + ID3D11Resource::GetEvictionPriority +
+ + + Gets a swap chain back buffer. + + The type of the buffer. + The swap chain to get the buffer from. + The index of the desired buffer. + The buffer interface, or null on failure. + + + + Loads a texture from an image file. + + The device used to load the texture. + Path to the file on disk. + The loaded texture object. + + + + Loads a texture from an image file. + + The device used to load the texture. + Path to the file on disk. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from an image file. + + The device used to load the texture. + Path to the file on disk. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from an image file. + + The device used to load the texture. + Path to the file on disk. + The loaded texture object. + + + + Load a texture from a texture. + + A reference to a valid + Pointer to the source texture. See . + Pointer to the destination texture. See . + Pointer to texture loading parameters. See . + The return value is one of the values listed in {{Direct3D 10 Return Codes}}. + HRESULT D3DX10LoadTextureFromTexture([None] ID3D10Resource* pSrcTexture,[None] D3DX10_TEXTURE_LOAD_INFO* pLoadInfo,[None] ID3D10Resource* pDstTexture) + + + + Generates mipmap chain using a particular texture filter for this texture instance. + + A reference to an object. + The mipmap level whose data is used to generate the rest of the mipmap chain. + Flags controlling how each miplevel is filtered (or D3DX11_DEFAULT for ). See . + The return value is one of the values listed in Direct3D 11 Return Codes. + HRESULT D3DX11FilterTexture([In] ID3D11DeviceContext* pContext,[In] ID3D11Resource* pTexture,[In] unsigned int SrcLevel,[In] unsigned int MipFilter) + + + + Saves a texture to file. + + The device used to save the texture. + The texture to save. + The format the texture will be saved as. + Name of the destination output file where the texture will be saved. + A object describing the result of the operation. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Array of memory containing the image data to load. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Array of memory containing the image data to load. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Pointer to unmanaged memory containing the image data to load. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Pointer to unmanaged memory containing the image data to load. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Array of memory containing the image data to load. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Array of memory containing the image data to load. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Pointer to unmanaged memory containing the image data to load. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from an image in memory. + + The device used to load the texture. + Pointer to unmanaged memory containing the image data to load. + The loaded texture object. + + + + Loads a texture from a stream of data. + + The device used to load the texture. + A stream containing the image data to load. + Size of the image to load. + The loaded texture object. + + + + Loads a texture from a stream of data. + + The device used to load the texture. + A stream containing the image data to load. + Size of the image to load. + Specifies information used to load the texture. + The loaded texture object. + + + + Loads a texture from a stream of data. + + The device used to load the texture. + A stream containing the image data to load. + Size of the image to load. + The loaded texture object. + + + + Loads a texture from a stream of data. + + The device used to load the texture. + A stream containing the image data to load. + Size of the image to load. + Specifies information used to load the texture. + The loaded texture object. + + + + Saves a texture to a stream. + + The device used to save the texture. + The texture to save. + The format the texture will be saved as. + Destination memory stream where the image will be saved. + A object describing the result of the operation. + + + + Calculates the sub resource index from a miplevel. + + A zero-based index for the mipmap level to address; 0 indicates the first, most detailed mipmap level. + The zero-based index for the array level to address; always use 0 for volume (3D) textures. + Number of mipmap levels in the resource. + + The index which equals MipSlice + (ArraySlice * MipLevels). + + D3D11CalcSubresource + + + + Calculates the resulting size at a single level for an original size. + + The mip level to get the size. + Size of the base. + + Size of the mipLevel + + + + + Calculates the sub resource index for a particular mipSlice and arraySlice. + + The mip slice. + The array slice. + The size of slice. This values is resource dependent. Texture1D -> mipSize of the Width. Texture2D -> mipSize of the Height. Texture3D -> mipsize of the Depth + The resulting miplevel calulated for this instance with this mipSlice and arraySlice. + + + +

Get the type of the resource.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476586 + GetType + GetType + void ID3D11Resource::GetType([Out] D3D11_RESOURCE_DIMENSION* pResourceDimension) +
+ + +

Get or sets the eviction priority of a resource.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476585 + GetEvictionPriority / SetEvictionPriority + GetEvictionPriority + unsigned int ID3D11Resource::GetEvictionPriority() +
+ + + Initializes a new instance of the class. + + The device with which to associate the buffer. + The description of the buffer. + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Initializes a new instance of the class. + + The device with which to associate the buffer. + Initial data used to initialize the buffer. + The description of the buffer. + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Initializes a new instance of the class. + + The device with which to associate the buffer. + The data pointer. + The description of the buffer. + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Initializes a new instance of the class. + + The device with which to associate the buffer. + The size, in bytes, of the buffer. + The usage pattern for the buffer. + Flags specifying how the buffer will be bound to the pipeline. + Flags specifying how the buffer will be accessible from the CPU. + Miscellaneous resource options. + The size (in bytes) of the structure element for structured buffers. + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Initializes a new instance of the class. + + The device with which to associate the buffer. + Initial data used to initialize the buffer. + The size, in bytes, of the buffer. + The usage pattern for the buffer. + Flags specifying how the buffer will be bound to the pipeline. + Flags specifying how the buffer will be accessible from the CPU. + Miscellaneous resource options. + The size (in bytes) of the structure element for structured buffers. + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Creates a new instance of the class. + + Type of the data to upload + The device with which to associate the buffer. + Flags specifying how the buffer will be bound to the pipeline. + Initial data used to initialize the buffer. + The size, in bytes, of the buffer. If 0 is specified, sizeof(T) is used. + The usage pattern for the buffer. + Flags specifying how the buffer will be accessible from the CPU. + Miscellaneous resource options. + The size (in bytes) of the structure element for structured buffers. + An initialized buffer + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Creates a new instance of the class. + + Type of the data to upload + The device with which to associate the buffer. + Flags specifying how the buffer will be bound to the pipeline. + Initial data used to initialize the buffer. + The size, in bytes, of the buffer. If 0 is specified, sizeof(T) * data.Length is used. + The usage pattern for the buffer. + Flags specifying how the buffer will be accessible from the CPU. + Miscellaneous resource options. + The size (in bytes) of the structure element for structured buffers. + An initialized buffer + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Creates a new instance of the class. + + Type of the data to upload + The device with which to associate the buffer. + Initial data used to initialize the buffer. + The description. + + An initialized buffer + + + If the is at 0, sizeof(T) is used. + + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Creates a new instance of the class. + + Type of the data to upload + The device with which to associate the buffer. + Initial data used to initialize the buffer. + The description. + + An initialized buffer + + + If the is at 0, sizeof(T) * data.Length is used. + + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the properties of a buffer resource.

+
+

Pointer to a resource description (see ) filled in by the method.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476352 + void ID3D11Buffer::GetDesc([Out] D3D11_BUFFER_DESC* pDesc) + ID3D11Buffer::GetDesc +
+ + +

Get the properties of a buffer resource.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476352 + GetDesc + GetDesc + void ID3D11Buffer::GetDesc([Out] D3D11_BUFFER_DESC* pDesc) +
+ + +

Describes a buffer resource.

+
+ +

This structure is used by to create buffer resources.

In addition to this structure, you can also use the CD3D11_BUFFER_DESC derived structure, which is defined in D3D11.h and behaves like an inherited class, to help create a buffer description.

If the bind flag is , you must set the ByteWidth value in multiples of 16, and less than or equal to D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT.

+
+ + ff476092 + D3D11_BUFFER_DESC + D3D11_BUFFER_DESC +
+ + + Initializes a new instance of the struct. + + The size in bytes. + The usage. + The bind flags. + The CPU access flags. + The option flags. + The structure byte stride. + + + +

Size of the buffer in bytes.

+
+ + ff476092 + unsigned int ByteWidth + unsigned int ByteWidth +
+ + +

Identify how the buffer is expected to be read from and written to. Frequency of update is a key factor. The most common value is typically ; see for all possible values.

+
+ + ff476092 + D3D11_USAGE Usage + D3D11_USAGE Usage +
+ + +

Identify how the buffer will be bound to the pipeline. Flags (see ) can be combined with a logical OR.

+
+ + ff476092 + D3D11_BIND_FLAG BindFlags + D3D11_BIND_FLAG BindFlags +
+ + +

CPU access flags (see ) or 0 if no CPU access is necessary. Flags can be combined with a logical OR.

+
+ + ff476092 + D3D11_CPU_ACCESS_FLAG CPUAccessFlags + D3D11_CPU_ACCESS_FLAG CPUAccessFlags +
+ + +

Miscellaneous flags (see ) or 0 if unused. Flags can be combined with a logical OR.

+
+ + ff476092 + D3D11_RESOURCE_MISC_FLAG MiscFlags + D3D11_RESOURCE_MISC_FLAG MiscFlags +
+ + +

The size of each element in the buffer structure (in bytes) when the buffer represents a structured buffer. For more info about structured buffers, see Structured Buffer.

The size value in StructureByteStride must match the size of the format that you use for views of the buffer. For example, if you use a shader resource view (SRV) to read a buffer in a pixel shader, the SRV format size must match the size value in StructureByteStride.

+
+ + ff476092 + unsigned int StructureByteStride + unsigned int StructureByteStride +
+ + +

This interface encapsulates an HLSL class.

+
+ +

This interface is created by calling . The interface is used when binding shader resources to the pipeline using APIs such as .

Windows?Phone?8: This API is supported.

+
+ + ff476353 + ID3D11ClassInstance + ID3D11ClassInstance +
+ + + Initializes a class-instance object that represents an HLSL class instance. + + + Instances can be created (or gotten) before or after a shader is created. Use the same shader linkage object to acquire a class instance and create the shader the instance is going to be used in. For more information about using the interface, see {{Dynamic Linking}}. + + An instance of . + The type name of a class to initialize. + Identifies the constant buffer that contains the class data. + The four-component vector offset from the start of the constant buffer where the class data will begin. Consequently, this is not a byte offset. + The texture slot for the first texture; there may be multiple textures following the offset. + The sampler slot for the first sampler; there may be multiple samplers following the offset. + Returns S_OK if successful; otherwise, returns one of the following {{Direct3D 11 Return Codes}}. + HRESULT ID3D11ClassLinkage::CreateClassInstance([In] const char* pClassTypeName,[In] int ConstantBufferOffset,[In] int ConstantVectorOffset,[In] int TextureOffset,[In] int SamplerOffset,[Out] ID3D11ClassInstance** ppInstance) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the object associated with the current HLSL class.

+
+ No documentation. + +

For more information about using the interface, see Dynamic Linking.

Windows?Phone?8: This API is supported.

+
+ + ff476354 + void ID3D11ClassInstance::GetClassLinkage([Out] ID3D11ClassLinkage** ppLinkage) + ID3D11ClassInstance::GetClassLinkage +
+ + +

Gets a description of the current HLSL class.

+
+

A reference to a structure that describes the current HLSL class.

+ +

For more information about using the interface, see Dynamic Linking.

An instance is not restricted to being used for a single type in a single shader. An instance is flexible and can be used for any shader that used the same type name or instance name when the instance was generated.

  • A created instance will work for any shader that contains a type of the same type name. For instance, a class instance created with the type name DefaultShader would work in any shader that contained a type DefaultShader even though several shaders could describe a different type.
  • A gotten instance maps directly to an instance name/index in a shader. A class instance aquired using GetClassInstance will work for any shader that contains a class instance of the name used to generate the runtime instance, the instance does not have to be the same type in all of the shaders it's used in.

An instance does not replace the importance of reflection for a particular shader since a gotten instance will not know its slot location and a created instance only specifies a type name.

Windows?Phone?8: This API is supported.

+
+ + ff476355 + void ID3D11ClassInstance::GetDesc([Out] D3D11_CLASS_INSTANCE_DESC* pDesc) + ID3D11ClassInstance::GetDesc +
+ + +

Gets the instance name of the current HLSL class.

+
+

The instance name of the current HLSL class.

+

The length of the pInstanceName parameter.

+ +

GetInstanceName will return a valid name only for instances acquired using .

For more information about using the interface, see Dynamic Linking.

Windows?Phone?8: This API is supported.

+
+ + ff476356 + void ID3D11ClassInstance::GetInstanceName([Out, Buffer, Optional] char* pInstanceName,[InOut] SIZE_T* pBufferLength) + ID3D11ClassInstance::GetInstanceName +
+ + +

Gets the type of the current HLSL class.

+
+

Type of the current HLSL class.

+

The length of the pTypeName parameter.

+ +

GetTypeName will return a valid name only for instances acquired using .

For more information about using the interface, see Dynamic Linking.

Windows?Phone?8: This API is supported.

+
+ + ff476357 + void ID3D11ClassInstance::GetTypeName([Out, Buffer, Optional] char* pTypeName,[InOut] SIZE_T* pBufferLength) + ID3D11ClassInstance::GetTypeName +
+ + + Gets the instance name of the current HLSL class. + + + GetInstanceName will return a valid name only for instances acquired using .For more information about using the interface, see {{Dynamic Linking}}. + + The instance name of the current HLSL class. + void GetInstanceName([Out, Buffer, Optional] LPSTR pInstanceName,[InOut] SIZE_T* pBufferLength) + + + + Gets the type of the current HLSL class. + + + GetTypeName will return a valid name only for instances acquired using .For more information about using the interface, see {{Dynamic Linking}}. + + Type of the current HLSL class. + void GetTypeName([Out, Buffer, Optional] LPSTR pTypeName,[InOut] SIZE_T* pBufferLength) + + + +

Gets the object associated with the current HLSL class.

+
+ +

For more information about using the interface, see Dynamic Linking.

Windows?Phone?8: This API is supported.

+
+ + ff476354 + GetClassLinkage + GetClassLinkage + void ID3D11ClassInstance::GetClassLinkage([Out] ID3D11ClassLinkage** ppLinkage) +
+ + +

Gets a description of the current HLSL class.

+
+ +

For more information about using the interface, see Dynamic Linking.

An instance is not restricted to being used for a single type in a single shader. An instance is flexible and can be used for any shader that used the same type name or instance name when the instance was generated.

  • A created instance will work for any shader that contains a type of the same type name. For instance, a class instance created with the type name DefaultShader would work in any shader that contained a type DefaultShader even though several shaders could describe a different type.
  • A gotten instance maps directly to an instance name/index in a shader. A class instance aquired using GetClassInstance will work for any shader that contains a class instance of the name used to generate the runtime instance, the instance does not have to be the same type in all of the shaders it's used in.

An instance does not replace the importance of reflection for a particular shader since a gotten instance will not know its slot location and a created instance only specifies a type name.

Windows?Phone?8: This API is supported.

+
+ + ff476355 + GetDesc + GetDesc + void ID3D11ClassInstance::GetDesc([Out] D3D11_CLASS_INSTANCE_DESC* pDesc) +
+ + +

This interface encapsulates an HLSL dynamic linkage.

+
+ +

A class linkage object can hold up to 64K gotten instances. A gotten instance is a handle that references a variable name in any shader that is created with that linkage object. When you create a shader with a class linkage object, the runtime gathers these instances and stores them in the class linkage object. For more information about how a class linkage object is used, see Storing Variables and Types for Shaders to Share.

An object is created using the method.

Windows?Phone?8: This API is supported.

+
+ + ff476358 + ID3D11ClassLinkage + ID3D11ClassLinkage +
+ + + Create a new instance of . + + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the class-instance object that represents the specified HLSL class.

+
+

The name of a class for which to get the class instance.

+

The index of the class instance.

+

The address of a reference to an interface to initialize.

+ +

For more information about using the interface, see Dynamic Linking.

A class instance must have at least 1 data member in order to be available for the runtime to use with . Any instance with no members will be optimized out of a compiled shader blob as a zero-sized object. If you have a class with no data members, use instead.

Windows?Phone?8: This API is supported.

+
+ + ff476360 + HRESULT ID3D11ClassLinkage::GetClassInstance([In] const char* pClassInstanceName,[In] unsigned int InstanceIndex,[Out] ID3D11ClassInstance** ppInstance) + ID3D11ClassLinkage::GetClassInstance +
+ + +

Initializes a class-instance object that represents an HLSL class instance.

+
+

The type name of a class to initialize.

+

Identifies the constant buffer that contains the class data.

+

The four-component vector offset from the start of the constant buffer where the class data will begin. Consequently, this is not a byte offset.

+

The texture slot for the first texture; there may be multiple textures following the offset.

+

The sampler slot for the first sampler; there may be multiple samplers following the offset.

+

The address of a reference to an interface to initialize.

+

Returns if successful; otherwise, returns one of the following Direct3D 11 Return Codes.

+ +

Instances can be created (or gotten) before or after a shader is created. Use the same shader linkage object to acquire a class instance and create the shader the instance is going to be used in.

For more information about using the interface, see Dynamic Linking.

Windows?Phone?8: This API is supported.

+
+ + ff476359 + HRESULT ID3D11ClassLinkage::CreateClassInstance([In] const char* pClassTypeName,[In] unsigned int ConstantBufferOffset,[In] unsigned int ConstantVectorOffset,[In] unsigned int TextureOffset,[In] unsigned int SamplerOffset,[Out, Fast] ID3D11ClassInstance** ppInstance) + ID3D11ClassLinkage::CreateClassInstance +
+ + +

A compute-shader interface manages an executable program (a compute shader) that controls the compute-shader stage.

+
+ +

The compute-shader interface has no methods; use HLSL to implement your shader functionality. All shaders are implemented from a common set of features referred to as the common-shader core..

To create a compute-shader interface, call . Before using a compute shader you must bind it to the device by calling .

This interface is defined in D3D11.h.

+
+ + ff476363 + ID3D11ComputeShader + ID3D11ComputeShader +
+ + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + A dynamic class linkage interface. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Describes depth-stencil state.

+
+ +

Pass a reference to to the method to create the depth-stencil state object.

Depth-stencil state controls how depth-stencil testing is performed by the output-merger stage.

The following table shows the default values of depth-stencil states.

StateDefault Value
DepthEnableTRUE
DepthWriteMask
DepthFunc
StencilEnable
StencilReadMaskD3D11_DEFAULT_STENCIL_READ_MASK
StencilWriteMaskD3D11_DEFAULT_STENCIL_WRITE_MASK

FrontFace.StencilFunc

and

BackFace.StencilFunc

FrontFace.StencilDepthFailOp

and

BackFace.StencilDepthFailOp

FrontFace.StencilPassOp

and

BackFace.StencilPassOp

FrontFace.StencilFailOp

and

BackFace.StencilFailOp

?

The formats that support stenciling are and .

+
+ + ff476110 + D3D11_DEPTH_STENCIL_DESC + D3D11_DEPTH_STENCIL_DESC +
+ + + Returns default values for . + + + See MSDN documentation for default values. + + + + +

Enable depth testing.

+
+ + ff476110 + BOOL DepthEnable + BOOL DepthEnable +
+ + +

Identify a portion of the depth-stencil buffer that can be modified by depth data (see ).

+
+ + ff476110 + D3D11_DEPTH_WRITE_MASK DepthWriteMask + D3D11_DEPTH_WRITE_MASK DepthWriteMask +
+ + +

A function that compares depth data against existing depth data. The function options are listed in .

+
+ + ff476110 + D3D11_COMPARISON_FUNC DepthFunc + D3D11_COMPARISON_FUNC DepthFunc +
+ + +

Enable stencil testing.

+
+ + ff476110 + BOOL StencilEnable + BOOL StencilEnable +
+ + +

Identify a portion of the depth-stencil buffer for reading stencil data.

+
+ + ff476110 + unsigned char StencilReadMask + unsigned char StencilReadMask +
+ + +

Identify a portion of the depth-stencil buffer for writing stencil data.

+
+ + ff476110 + unsigned char StencilWriteMask + unsigned char StencilWriteMask +
+ + +

Identify how to use the results of the depth test and the stencil test for pixels whose surface normal is facing towards the camera (see ).

+
+ + ff476110 + D3D11_DEPTH_STENCILOP_DESC FrontFace + D3D11_DEPTH_STENCILOP_DESC FrontFace +
+ + +

Identify how to use the results of the depth test and the stencil test for pixels whose surface normal is facing away from the camera (see ).

+
+ + ff476110 + D3D11_DEPTH_STENCILOP_DESC BackFace + D3D11_DEPTH_STENCILOP_DESC BackFace +
+ + + The namespace provides a managed Direct3D11 API. + + ff476080 + Direct3D11 + Direct3D11 + + + +

Describes rasterizer state.

+
+ +

Rasterizer state defines the behavior of the rasterizer stage. To create a rasterizer-state object, call . To set rasterizer state, call .

If you do not specify some rasterizer state, the Direct3D runtime uses the following default values for rasterizer state.

StateDefault Value
FillModeSolid
CullModeBack
FrontCounterClockwise
DepthBias0
SlopeScaledDepthBias0.0f
DepthBiasClamp0.0f
DepthClipEnableTRUE
ScissorEnable
MultisampleEnable
AntialiasedLineEnable

?

Note??For feature levels 9.1, 9.2, 9.3, and 10.0, if you set MultisampleEnable to , the runtime renders all points, lines, and triangles without anti-aliasing even for render targets with a sample count greater than 1. For feature levels 10.1 and higher, the setting of MultisampleEnable has no effect on points and triangles with regard to MSAA and impacts only the selection of the line-rendering algorithm as shown in this table:

Line-rendering algorithmMultisampleEnableAntialiasedLineEnable
Aliased
Alpha antialiasedTRUE
QuadrilateralTRUE
QuadrilateralTRUETRUE

?

The settings of the MultisampleEnable and AntialiasedLineEnable members apply only to multisample antialiasing (MSAA) render targets (that is, render targets with sample counts greater than 1). Because of the differences in feature-level behavior and as long as you aren?t performing any line drawing or don?t mind that lines render as quadrilaterals, we recommend that you always set MultisampleEnable to TRUE whenever you render on MSAA render targets.

+
+ + ff476198 + D3D11_RASTERIZER_DESC + D3D11_RASTERIZER_DESC +
+ + + Returns default values for . + + + See MSDN documentation for default values. + + + + +

Determines the fill mode to use when rendering (see ).

+
+ + ff476198 + D3D11_FILL_MODE FillMode + D3D11_FILL_MODE FillMode +
+ + +

Indicates triangles facing the specified direction are not drawn (see ).

+
+ + ff476198 + D3D11_CULL_MODE CullMode + D3D11_CULL_MODE CullMode +
+ + +

Determines if a triangle is front- or back-facing. If this parameter is TRUE, a triangle will be considered front-facing if its vertices are counter-clockwise on the render target and considered back-facing if they are clockwise. If this parameter is , the opposite is true.

+
+ + ff476198 + BOOL FrontCounterClockwise + BOOL FrontCounterClockwise +
+ + +

Depth value added to a given pixel. For info about depth bias, see Depth Bias.

+
+ + ff476198 + int DepthBias + int DepthBias +
+ + +

Maximum depth bias of a pixel. For info about depth bias, see Depth Bias.

+
+ + ff476198 + float DepthBiasClamp + float DepthBiasClamp +
+ + +

Scalar on a given pixel's slope. For info about depth bias, see Depth Bias.

+
+ + ff476198 + float SlopeScaledDepthBias + float SlopeScaledDepthBias +
+ + +

Enable clipping based on distance.

The hardware always performs x and y clipping of rasterized coordinates. When DepthClipEnable is set to the default?TRUE, the hardware also clips the z value (that is, the hardware performs the last step of the following algorithm). +

0 < w + -w <= x <= w (or arbitrarily wider range if implementation uses a guard band to reduce clipping burden) + -w <= y <= w (or arbitrarily wider range if implementation uses a guard band to reduce clipping burden) + 0 <= z <= w +

When you set DepthClipEnable to , the hardware skips the z clipping (that is, the last step in the preceding algorithm). However, the hardware still performs the "0 < w" clipping. When z clipping is disabled, improper depth ordering at the pixel level might result. However, when z clipping is disabled, stencil shadow implementations are simplified. In other words, you can avoid complex special-case handling for geometry that goes beyond the back clipping plane. +

+
+ + ff476198 + BOOL DepthClipEnable + BOOL DepthClipEnable +
+ + +

Enable scissor-rectangle culling. All pixels outside an active scissor rectangle are culled.

+
+ + ff476198 + BOOL ScissorEnable + BOOL ScissorEnable +
+ + +

Specifies whether to use the quadrilateral or alpha line anti-aliasing algorithm on multisample antialiasing (MSAA) render targets. Set to TRUE to use the quadrilateral line anti-aliasing algorithm and to to use the alpha line anti-aliasing algorithm. For more info about this member, see Remarks.

+
+ + ff476198 + BOOL MultisampleEnable + BOOL MultisampleEnable +
+ + +

Specifies whether to enable line antialiasing; only applies if doing line drawing and MultisampleEnable is . For more info about this member, see Remarks.

+
+ + ff476198 + BOOL AntialiasedLineEnable + BOOL AntialiasedLineEnable +
+ + +

This interface encapsulates methods for measuring GPU performance.

+
+ +

A counter can be created with .

This is a derived class of .

Counter data is gathered by issuing an command, issuing some graphics commands, issuing an command, and then calling to get data about what happened in between the Begin and End calls. The data returned by GetData will be different depending on the type of counter. The call to End causes the data returned by GetData to be accurate up until the last call to End.

Counters are best suited for profiling.

For a list of the types of performance counters, see .

Windows?Phone?8: This API is supported.

+
+ + ff476364 + ID3D11Counter + ID3D11Counter +
+ + +

This interface encapsulates methods for retrieving data from the GPU asynchronously.

+
+ +

There are three types of asynchronous interfaces, all of which inherit this interface:

  • - Queries information from the GPU.
  • - Determines whether a piece of geometry should be processed or not depending on the results of a previous draw call.
  • - Measures GPU performance.

Windows?Phone?8: This API is supported.

+
+ + ff476347 + ID3D11Asynchronous + ID3D11Asynchronous +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the size of the data (in bytes) that is output when calling .

+
+

Size of the data (in bytes) that is output when calling GetData.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476348 + unsigned int ID3D11Asynchronous::GetDataSize() + ID3D11Asynchronous::GetDataSize +
+ + +

Get the size of the data (in bytes) that is output when calling .

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476348 + GetDataSize + GetDataSize + unsigned int ID3D11Asynchronous::GetDataSize() +
+ + + Constructs a new based on the specified description. + + The device with which to associate the state object. + The counter description. + The newly created object. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a counter description.

+
+

Pointer to a counter description (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476365 + void ID3D11Counter::GetDesc([Out] D3D11_COUNTER_DESC* pDesc) + ID3D11Counter::GetDesc +
+ + +

Get a counter description.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476365 + GetDesc + GetDesc + void ID3D11Counter::GetDesc([Out] D3D11_COUNTER_DESC* pDesc) +
+ + + Counter metadata that contains the type, name, units of measure, and a description of an existing counter. + + + + + Gets the data type of a counter (see ). + + The type. + + + + Gets the number of hardware counters that are needed for this counter type to be created. All instances of the same counter type use the same hardware counters. + + The hardware counter count. + + + + Gets a brief name for the counter. + + The name. + + + + Gets the units a counter measures. + + The units. + + + + Gets a description of the counter. + + The description. + + + +

A debug interface controls debug settings, validates pipeline state and can only be used if the debug layer is turned on.

+
+ +

This interface is obtained by querying it from the using IUnknown::QueryInterface.

For more information about the debug layer, see Debug Layer.

Windows?Phone?8: This API is supported.

+
+ + ff476366 + ID3D11Debug + ID3D11Debug +
+ + + Initializes a new instance of the class. + + The device. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Set a bit field of flags that will turn debug features on and off.

+
+

A combination of feature-mask flags that are combined by using a bitwise OR operation. If a flag is present, that feature will be set to on, otherwise the feature will be set to off. For descriptions of the feature-mask flags, see Remarks.

+

This method returns one of the Direct3D 11 Return Codes.

+ +

Note??If you call this API in a Session 0 process, it returns .

Setting one of the following feature-mask flags will cause a rendering-operation method (listed below) to do some extra task when called.

(0x2)Application will wait for the GPU to finish processing the rendering operation before continuing.
(0x1)Runtime will additionally call .
(0x4)Runtime will call . Presentation of render buffers will occur according to the settings established by prior calls to and .

?

These feature-mask flags apply to the following rendering-operation methods:

By setting one of the following feature-mask flags, you can control the behavior of the IDXGIDevice2::OfferResources and IDXGIDevice2::ReclaimResources methods to aid in testing and debugging.

Note??These flags are supported by the Direct3D 11.1 runtime, which is available starting with Windows?8.

D3D11_DEBUG_FEATURE_ALWAYS_DISCARD_OFFERED_RESOURCE (0x8)When you call IDXGIDevice2::OfferResources to offer resources while this flag is enabled, their content is always discarded. Use this flag to test code paths that regenerate resource content on reclaim. You cannot use this flag in combination with D3D11_DEBUG_FEATURE_NEVER_DISCARD_OFFERED_RESOURCE.
D3D11_DEBUG_FEATURE_NEVER_DISCARD_OFFERED_RESOURCE (0x10)When you call IDXGIDevice2::OfferResources to offer resources while this flag is enabled, their content is never discarded. Use this flag to test code paths that do not need to regenerate resource content on reclaim. You cannot use this flag in combination with D3D11_DEBUG_FEATURE_ALWAYS_DISCARD_OFFERED_RESOURCE.

?

The behavior of the IDXGIDevice2::OfferResources and IDXGIDevice2::ReclaimResources methods depends on system-wide memory pressure. Therefore, the scenario where content is lost and must be regenerated is uncommon for most applications. The preceding new options in the Direct3D debug layer let you simulate that scenario consistently and test code paths.

The following flag is supported by the Direct3D 11.1 runtime.

D3D11_DEBUG_FEATURE_AVOID_BEHAVIOR_CHANGING_DEBUG_AIDS (0x40)Disables the following default debugging behavior.

?

When the debug layer is enabled, it performs certain actions to reveal application problems. By setting the D3D11_DEBUG_FEATURE_AVOID_BEHAVIOR_CHANGING_DEBUG_AIDS feature-mask flag, you can enable the debug layer without getting the following default debugging behavior:

  • If an application calls ID3D11DeviceContext1::DiscardView, the runtime fills in the resource with a random color.
  • If an application calls IDXGISwapChain1::Present1 with partial presentation parameters, the runtime ignores the partial presentation information.

The following flag is supported by the Direct3D 11.2 runtime.

D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION (0x80)Disables the following default debugging behavior.

?

By default (that is, without D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION set), the debug layer validates the proper usage of all tile mappings for tiled resources for bound resources for every operation performed on the device context (for example, draw, copy, and so on). Depending on the size of the tiled resources used (if any), this validation can be processor intensive and slow. Apps might want to initially run with tiled resource tile mapping validation on; then, when they determine that the calling pattern is safe, they can disable the validation by setting D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION.

If D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION is set when a tiled resource is created, the debug layer never performs the tracking of tile mapping for that resource for its entire lifetime. Alternatively, if D3D11_DEBUG_FEATURE_DISABLE_TILED_RESOURCE_MAPPING_TRACKING_AND_VALIDATION is set for any given device context method call (like draw or copy calls) involving tiled resources, the debug layer skips all tile mapping validation for the call.

Windows?Phone?8: This API is supported.

+
+ + ff476371 + HRESULT ID3D11Debug::SetFeatureMask([In] unsigned int Mask) + ID3D11Debug::SetFeatureMask +
+ + +

Get a bitfield of flags that indicates which debug features are on or off.

+
+

Mask of feature-mask flags bitwise ORed together. If a flag is present, then that feature will be set to on, otherwise the feature will be set to off. See for a list of possible feature-mask flags.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476367 + unsigned int ID3D11Debug::GetFeatureMask() + ID3D11Debug::GetFeatureMask +
+ + +

Set the number of milliseconds to sleep after is called.

+
+ No documentation. +

This method returns one of the following Direct3D 11 Return Codes.

+ +

Note??If you call this API in a Session 0 process, it returns .

The application will only sleep if is a set in the feature mask. If that flag is not set the number of milliseconds is set but ignored and the application does not sleep. 10ms is used as a default value if this method is never called.

Windows?Phone?8: This API is supported.

+
+ + ff476372 + HRESULT ID3D11Debug::SetPresentPerRenderOpDelay([In] unsigned int Milliseconds) + ID3D11Debug::SetPresentPerRenderOpDelay +
+ + +

Get the number of milliseconds to sleep after is called.

+
+

Number of milliseconds to sleep after Present is called.

+ +

Value is set with .

Windows?Phone?8: This API is supported.

+
+ + ff476368 + unsigned int ID3D11Debug::GetPresentPerRenderOpDelay() + ID3D11Debug::GetPresentPerRenderOpDelay +
+ + +

Sets a swap chain that the runtime will use for automatically calling .

+
+ No documentation. +

This method returns one of the following Direct3D 11 Return Codes.

+ +

Note??If you call this API in a Session 0 process, it returns .

The swap chain set by this method will only be used if is set in the feature mask.

Windows?Phone?8: This API is supported.

+
+ + ff476373 + HRESULT ID3D11Debug::SetSwapChain([In, Optional] IDXGISwapChain* pSwapChain) + ID3D11Debug::SetSwapChain +
+ + +

Get the swap chain that the runtime will use for automatically calling .

+
+ No documentation. +

This method returns one of the following Direct3D 11 Return Codes.

+ +

The swap chain retrieved by this method will only be used if is set in the feature mask.

Windows?Phone?8: This API is supported.

+
+ + ff476369 + HRESULT ID3D11Debug::GetSwapChain([Out] IDXGISwapChain** ppSwapChain) + ID3D11Debug::GetSwapChain +
+ + +

Check to see if the draw pipeline state is valid.

+
+

A reference to the , that represents a device context.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Use validate prior to calling a draw method (for example, ); validation requires the debug layer.

Windows?Phone?8: This API is supported.

+
+ + ff476374 + HRESULT ID3D11Debug::ValidateContext([In] ID3D11DeviceContext* pContext) + ID3D11Debug::ValidateContext +
+ + +

Report information about a device object's lifetime.

+
+

A value from the enumeration.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

ReportLiveDeviceObjects uses the value in Flags to determine the amount of information to report about a device object's lifetime.

Windows?Phone?8: This API is supported.

+
+ + ff476370 + HRESULT ID3D11Debug::ReportLiveDeviceObjects([In] D3D11_RLDO_FLAGS Flags) + ID3D11Debug::ReportLiveDeviceObjects +
+ + +

Verifies whether the dispatch pipeline state is valid.

+
+

A reference to the that represents a device context.

+

This method returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

Use this method before you call a dispatch method (for example, ). Validation requires the debug layer.

Windows?Phone?8: This API is supported.

+
+ + ff728740 + HRESULT ID3D11Debug::ValidateContextForDispatch([In] ID3D11DeviceContext* pContext) + ID3D11Debug::ValidateContextForDispatch +
+ + + Gets or sets the feature flags that indicates which debug features are on or off. + + The feature flags. + + + +

Get or sets the number of milliseconds to sleep after is called.

+
+ +

Value is set with .

Windows?Phone?8: This API is supported.

+
+ + ff476368 + GetPresentPerRenderOpDelay / SetPresentPerRenderOpDelay + GetPresentPerRenderOpDelay + unsigned int ID3D11Debug::GetPresentPerRenderOpDelay() +
+ + +

Get or sets the swap chain that the runtime will use for automatically calling .

+
+ +

The swap chain retrieved by this method will only be used if is set in the feature mask.

Windows?Phone?8: This API is supported.

+
+ + ff476369 + GetSwapChain / SetSwapChain + GetSwapChain + HRESULT ID3D11Debug::GetSwapChain([Out] IDXGISwapChain** ppSwapChain) +
+ + +

The depth-stencil-state interface holds a description for depth-stencil state that you can bind to the output-merger stage.

+
+ +

To create a depth-stencil-state object, call . To bind the depth-stencil-state object to the output-merger stage, call .

Windows?Phone?8: This API is supported.

+
+ + ff476375 + ID3D11DepthStencilState + ID3D11DepthStencilState +
+ + + Constructs a new based on the specified description. + + The device with which to associate the state object. + The state description. + The newly created object. + ff476506 + HRESULT ID3D11Device::CreateDepthStencilState([In] const D3D11_DEPTH_STENCIL_DESC* pDepthStencilDesc,[Out, Fast] ID3D11DepthStencilState** ppDepthStencilState) + ID3D11Device::CreateDepthStencilState + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the description for depth-stencil state that you used to create the depth-stencil-state object.

+
+

A reference to a structure that receives a description of the depth-stencil state.

+ +

You use the description for depth-stencil state in a call to the method to create the depth-stencil-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476376 + void ID3D11DepthStencilState::GetDesc([Out] D3D11_DEPTH_STENCIL_DESC* pDesc) + ID3D11DepthStencilState::GetDesc +
+ + +

Gets the description for depth-stencil state that you used to create the depth-stencil-state object.

+
+ +

You use the description for depth-stencil state in a call to the method to create the depth-stencil-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476376 + GetDesc + GetDesc + void ID3D11DepthStencilState::GetDesc([Out] D3D11_DEPTH_STENCIL_DESC* pDesc) +
+ + +

A depth-stencil-view interface accesses a texture resource during depth-stencil testing.

+
+ +

To create a depth-stencil view, call .

To bind a depth-stencil view to the pipeline, call .

Windows?Phone?8: This API is supported.

+
+ + ff476377 + ID3D11DepthStencilView + ID3D11DepthStencilView +
+ + +

A view interface specifies the parts of a resource the pipeline can access during rendering.

+
+ +

A view interface is the base interface for all views. There are four types of views; a depth-stencil view, a render-target view, a shader-resource view, and an unordered-access view.

  • To create a render-target view, call .
  • To create a depth-stencil view, call .
  • To create a shader-resource view, call .
  • To create an unordered-access view, call .

All resources must be bound to the pipeline before they can be accessed.

  • To bind a render-target view or a depth-stencil view, call .
  • To bind a shader resource, call .

Windows?Phone?8: This API is supported.

+
+ + ff476642 + ID3D11View + ID3D11View +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the resource that is accessed through this view.

+
+

Address of a reference to the resource that is accessed through this view. (See .)

+ +

This function increments the reference count of the resource by one, so it is necessary to call Release on the returned reference when the application is done with it. Destroying (or losing) the returned reference before Release is called will result in a memory leak.

Windows?Phone?8: This API is supported.

+
+ + ff476643 + void ID3D11View::GetResource([Out] void** ppResource) + ID3D11View::GetResource +
+ + +

Get the resource that is accessed through this view.

+
+ +

This function increments the reference count of the resource by one, so it is necessary to call Dispose on the returned reference when the application is done with it. Destroying (or losing) the returned reference before Release is called will result in a memory leak.

+
+ ff476643 + GetResource + GetResource + void ID3D11View::GetResource([Out] ID3D11Resource** ppResource) +
+ + +

Get the resource that is accessed through this view.

+
+ +

This function increments the reference count of the resource by one, so it is necessary to call Release on the returned reference when the application is done with it. Destroying (or losing) the returned reference before Release is called will result in a memory leak.

+
+ ff476643 + GetResource + GetResource + void ID3D11View::GetResource([Out] ID3D11Resource** ppResource) +
+ + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the DepthStencil flag. + ID3D11Device::CreateDepthStencilView + + + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the DepthStencil flag. + A structure describing the to be created. + ID3D11Device::CreateDepthStencilView + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the depth-stencil view.

+
+

Pointer to a depth-stencil-view description (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476378 + void ID3D11DepthStencilView::GetDesc([Out] D3D11_DEPTH_STENCIL_VIEW_DESC* pDesc) + ID3D11DepthStencilView::GetDesc +
+ + +

Get the depth-stencil view.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476378 + GetDesc + GetDesc + void ID3D11DepthStencilView::GetDesc([Out] D3D11_DEPTH_STENCIL_VIEW_DESC* pDesc) +
+ + +

The device interface represents a virtual adapter; it is used to create resources.

+
+ +

A device is created using .

Windows?Phone?8: This API is supported.

+
+ + ff476379 + ID3D11Device + ID3D11Device +
+ + Constant MultisampleCountMaximum. + D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT + + + + Initializes a new instance of the class. + + + Type of the driver. + + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice + + + + Initializes a new instance of the class. + + + The adapter. + + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice + + + + Constructor for a D3D11 Device. See for more information. + + Type of the driver. + The flags. + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice + + + + Constructor for a D3D11 Device. See for more information. + + + + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice + + + + Constructor for a D3D11 Device. See for more information. + + + + + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice + + + + Constructor for a D3D11 Device. See for more information. + + + + + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice + + + + Initializes a new instance of the class along with a new used for rendering. + + The type of device to create. + A list of runtime layers to enable. + Details used to create the swap chain. + When the method completes, contains the created device instance. + When the method completes, contains the created swap chain instance. + A object describing the result of the operation. + + + + Initializes a new instance of the class along with a new used for rendering. + + The video adapter on which the device should be created. + A list of runtime layers to enable. + Details used to create the swap chain. + When the method completes, contains the created device instance. + When the method completes, contains the created swap chain instance. + A object describing the result of the operation. + + + + Initializes a new instance of the class along with a new used for rendering. + + The type of device to create. + A list of runtime layers to enable. + A list of feature levels which determine the order of feature levels to attempt to create. + Details used to create the swap chain. + When the method completes, contains the created device instance. + When the method completes, contains the created swap chain instance. + A object describing the result of the operation. + + + + Initializes a new instance of the class along with a new used for rendering. + + The video adapter on which the device should be created. + A list of runtime layers to enable. + A list of feature levels which determine the order of feature levels to attempt to create. + Details used to create the swap chain. + When the method completes, contains the created device instance. + When the method completes, contains the created swap chain instance. + A object describing the result of the operation. + + + + This overload has been deprecated. Use one of the alternatives that does not take both an adapter and a driver type. + + + + + Get the type, name, units of measure, and a description of an existing counter. + + The counter description. + Description of the counter + + + + Give a device access to a shared resource created on a different Direct3d device. + + The type of the resource we are gaining access to. + A resource handle. See remarks. + + This method returns a reference to the resource we are gaining access to. + + + To share a resource between two Direct3D 10 devices the resource must have been created with the flag, if it was created using the ID3D10Device interface. If it was created using the IDXGIDevice interface, then the resource is always shared. The REFIID, or GUID, of the interface to the resource can be obtained by using the __uuidof() macro. For example, __uuidof(ID3D10Buffer) will get the GUID of the interface to a buffer resource. When sharing a resource between two Direct3D 10 devices the unique handle of the resource can be obtained by querying the resource for the interface and then calling {{GetSharedHandle}}. + IDXGIResource* pOtherResource(NULL); + hr = pOtherDeviceResource->QueryInterface( __uuidof(IDXGIResource), (void**)&pOtherResource ); + HANDLE sharedHandle; + pOtherResource->GetSharedHandle(&sharedHandle); + The only resources that can be shared are 2D non-mipmapped textures. To share a resource between a Direct3D 9 device and a Direct3D 10 device the texture must have been created using the pSharedHandle argument of {{CreateTexture}}. The shared Direct3D 9 handle is then passed to OpenSharedResource in the hResource argument. The following code illustrates the method calls involved. + sharedHandle = NULL; // must be set to NULL to create, can use a valid handle here to open in D3D9 + pDevice9->CreateTexture(..., pTex2D_9, &sharedHandle); + ... + pDevice10->OpenSharedResource(sharedHandle, __uuidof(ID3D10Resource), (void**)(&tempResource10)); + tempResource10->QueryInterface(__uuidof(ID3D10Texture2D), (void**)(&pTex2D_10)); + tempResource10->Release(); + // now use pTex2D_10 with pDevice10 + Textures being shared from D3D9 to D3D10 have the following restrictions. Textures must be 2D Only 1 mip level is allowed Texture must have default usage Texture must be write only MSAA textures are not allowed Bind flags must have SHADER_RESOURCE and RENDER_TARGET set Only R10G10B10A2_UNORM, R16G16B16A16_FLOAT and R8G8B8A8_UNORM formats are allowed If a shared texture is updated on one device must be called on that device. + + HRESULT ID3D10Device::OpenSharedResource([In] void* hResource,[In] GUID* ReturnedInterface,[Out, Optional] void** ppResource) + + + + Check if this device is supporting compute shaders for the specified format. + + The format for which to check support. + Flags indicating usage contexts in which the specified format is supported. + + + + Check if this device is supporting a feature. + + The feature to check. + + Returns true if this device supports this feature, otherwise false. + + + + + Check if this device is supporting threading. + + Support concurrent resources. + Support command lists. + + A object describing the result of the operation. + + + + + Check if a feature level is supported by a primary adapter. + + The feature level. + true if the primary adapter is supporting this feature level; otherwise, false. + + + + Check if a feature level is supported by a particular adapter. + + The adapter. + The feature level. + true if the specified adapter is supporting this feature level; otherwise, false. + + + + Gets the highest supported hardware feature level of the primary adapter. + + The highest supported hardware feature level. + + + + Gets the highest supported hardware feature level of the primary adapter. + + The adapter. + + The highest supported hardware feature level. + + + + + Internal CreateDevice + + + + + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a buffer (vertex buffer, index buffer, or shader-constant buffer).

+
+

A reference to a structure that describes the buffer.

+

A reference to a structure that describes the initialization data; use null to allocate space only (with the exception that it cannot be null if the usage flag is ).

If you don't pass anything to pInitialData, the initial content of the memory for the buffer is undefined. In this case, you need to write the buffer content some other way before the resource is read.

+

Address of a reference to the interface for the buffer object created. Set this parameter to null to validate the other input parameters (S_FALSE indicates a pass).

+

This method returns E_OUTOFMEMORY if there is insufficient memory to create the buffer. See Direct3D 11 Return Codes for other possible return values.

+ +

For example code, see How to: Create a Vertex Buffer, How to: Create an Index Buffer or How to: Create a Constant Buffer.

For a constant buffer (BindFlags of set to ), you must set the ByteWidth value of in multiples of 16, and less than or equal to D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT.

The Direct3D 11.1 runtime, which is available on Windows?8 and later operating systems, provides the following new functionality for CreateBuffer.

You can create a constant buffer that is larger than the maximum constant buffer size that a shader can access (4096 32-bit*4-component constants ? 64KB). When you bind the constant buffer to the pipeline (for example, via PSSetConstantBuffers or PSSetConstantBuffers1), you can define a range of the buffer that the shader can access that fits within the 4096 constant limit.

The runtime will emulate this feature for feature level 9.1, 9.2, and 9.3; therefore, this feature is supported for feature level 9.1, 9.2, and 9.3. This feature is always available on new drivers for feature level 10 and higher. On existing drivers that are implemented to feature level 10 and higher, a call to CreateBuffer to request a constant buffer that is larger than 4096 fails.

Windows?Phone?8: This API is supported.

+
+ + ff476501 + HRESULT ID3D11Device::CreateBuffer([In] const D3D11_BUFFER_DESC* pDesc,[In, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Buffer** ppBuffer) + ID3D11Device::CreateBuffer +
+ + +

Create an array of 2D textures.

+
+ No documentation. + No documentation. + No documentation. +

If the method succeeds, the return code is . See Direct3D 11 Return Codes for failing error codes.

+ +

CreateTexture2D creates a 2D texture resource, which can contain a number of 2D subresources. The number of textures is specified in the texture description. All textures in a resource must have the same format, size, and number of mipmap levels.

All resources are made up of one or more subresources. To load data into the texture, applications can supply the data initially as an array of structures pointed to by pInitialData, or it may use one of the D3DX texture functions such as .

For a 32 x 32 texture with a full mipmap chain, the pInitialData array has the following 6 elements: +

  • pInitialData[0] = 32x32
  • pInitialData[1] = 16x16
  • pInitialData[2] = 8x8
  • pInitialData[3] = 4x4 +
  • pInitialData[4] = 2x2 +
  • pInitialData[5] = 1x1 +

Windows?Phone?8: This API is supported.

+
+ + ff476521 + HRESULT ID3D11Device::CreateTexture1D([In] const D3D11_TEXTURE1D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture1D** ppTexture1D) + ID3D11Device::CreateTexture1D +
+ + +

Create an array of 2D textures.

+
+ No documentation. + No documentation. + No documentation. +

If the method succeeds, the return code is . See Direct3D 11 Return Codes for failing error codes.

+ +

CreateTexture2D creates a 2D texture resource, which can contain a number of 2D subresources. The number of textures is specified in the texture description. All textures in a resource must have the same format, size, and number of mipmap levels.

All resources are made up of one or more subresources. To load data into the texture, applications can supply the data initially as an array of structures pointed to by pInitialData, or it may use one of the D3DX texture functions such as .

For a 32 x 32 texture with a full mipmap chain, the pInitialData array has the following 6 elements: +

  • pInitialData[0] = 32x32
  • pInitialData[1] = 16x16
  • pInitialData[2] = 8x8
  • pInitialData[3] = 4x4 +
  • pInitialData[4] = 2x2 +
  • pInitialData[5] = 1x1 +

Windows?Phone?8: This API is supported.

+
+ + ff476521 + HRESULT ID3D11Device::CreateTexture2D([In] const D3D11_TEXTURE2D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture2D** ppTexture2D) + ID3D11Device::CreateTexture2D +
+ + +

Create a single 3D texture.

+
+ No documentation. + No documentation. + No documentation. +

If the method succeeds, the return code is . See Direct3D 11 Return Codes for failing error codes.

+ +

CreateTexture3D creates a 3D texture resource, which can contain a number of 3D subresources. The number of textures is specified in the texture description. All textures in a resource must have the same format, size, and number of mipmap levels.

All resources are made up of one or more subresources. To load data into the texture, applications can supply the data initially as an array of structures pointed to by pInitialData, or they can use one of the D3DX texture functions such as .

Each element of pInitialData provides all of the slices that are defined for a given miplevel. For example, for a 32 x 32 x 4 volume texture with a full mipmap chain, the array has the following 6 elements:

  • pInitialData[0] = 32x32 with 4 slices
  • pInitialData[1] = 16x16 with 2 slices
  • pInitialData[2] = 8x8 with 1 slice
  • pInitialData[3] = 4x4 + with 1 slice
  • pInitialData[4] = 2x2 + with 1 slice
  • pInitialData[5] = 1x1 + with 1 slice

Windows?Phone?8: This API is supported.

+
+ + ff476522 + HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D) + ID3D11Device::CreateTexture3D +
+ + +

Create a shader-resource view for accessing data in a resource.

+
+

Pointer to the resource that will serve as input to a shader. This resource must have been created with the flag.

+

Pointer to a shader-resource view description (see ). Set this parameter to null to create a view that accesses the entire resource (using the format the resource was created with).

+

Address of a reference to an . Set this parameter to null to validate the other input parameters (the method will return S_FALSE if the other input parameters pass validation).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

A resource is made up of one or more subresources; a view identifies which subresources to allow the pipeline to access. In addition, each resource is bound to the pipeline using a view. A shader-resource view is designed to bind any buffer or texture resource to the shader stages using the following API methods: , and .

Because a view is fully typed, this means that typeless resources become fully typed when bound to the pipeline.

Note??To successfully create a shader-resource view from a typeless buffer (for example, ), you must set the flag when you create the buffer.

The Direct3D 11.1 runtime, which is available starting with Windows?8, allows you to use CreateShaderResourceView for the following new purpose.

You can create shader-resource views of video resources so that Direct3D shaders can process those shader-resource views. These video resources are either Texture2D or Texture2DArray. The value in the ViewDimension member of the structure for a created shader-resource view must match the type of video resource, D3D11_SRV_DIMENSION_TEXTURE2D for Texture2D and D3D11_SRV_DIMENSION_TEXTURE2DARRAY for Texture2DArray. Additionally, the format of the underlying video resource restricts the formats that the view can use. The video resource format values on the reference page specify the format values that views are restricted to.

The runtime read+write conflict prevention logic (which stops a resource from being bound as an SRV and RTV or UAV at the same time) treats views of different parts of the same video surface as conflicting for simplicity. Therefore, the runtime does not allow an application to read from luma while the application simultaneously renders to chroma in the same surface even though the hardware might allow these simultaneous operations.

Windows?Phone?8: This API is supported.

+
+ + ff476519 + HRESULT ID3D11Device::CreateShaderResourceView([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc,[Out, Fast] ID3D11ShaderResourceView** ppSRView) + ID3D11Device::CreateShaderResourceView +
+ + +

Creates a view for accessing an unordered access resource.

+
+ No documentation. + No documentation. + No documentation. +

This method returns one of the Direct3D 11 Return Codes.

+ +

The Direct3D 11.1 runtime, which is available starting with Windows?8, allows you to use CreateUnorderedAccessView for the following new purpose.

You can create unordered-access views of video resources so that Direct3D shaders can process those unordered-access views. These video resources are either Texture2D or Texture2DArray. The value in the ViewDimension member of the structure for a created unordered-access view must match the type of video resource, for Texture2D and for Texture2DArray. Additionally, the format of the underlying video resource restricts the formats that the view can use. The video resource format values on the reference page specify the format values that views are restricted to.

The runtime read+write conflict prevention logic (which stops a resource from being bound as an SRV and RTV or UAV at the same time) treats views of different parts of the same video surface as conflicting for simplicity. Therefore, the runtime does not allow an application to read from luma while the application simultaneously renders to chroma in the same surface even though the hardware might allow these simultaneous operations.

Windows?Phone?8: This API is supported.

+
+ + ff476523 + HRESULT ID3D11Device::CreateUnorderedAccessView([In] ID3D11Resource* pResource,[In, Optional] const D3D11_UNORDERED_ACCESS_VIEW_DESC* pDesc,[Out, Fast] ID3D11UnorderedAccessView** ppUAView) + ID3D11Device::CreateUnorderedAccessView +
+ + +

Creates a render-target view for accessing resource data.

+
+

Pointer to a that represents a render target. This resource must have been created with the flag.

+

Pointer to a that represents a render-target view description. Set this parameter to null to create a view that accesses all of the subresources in mipmap level 0.

+

Address of a reference to an . Set this parameter to null to validate the other input parameters (the method will return S_FALSE if the other input parameters pass validation).

+

This method returns one of the Direct3D 11 Return Codes.

+ +

A render-target view can be bound to the output-merger stage by calling .

The Direct3D 11.1 runtime, which is available starting with Windows?8, allows you to use CreateRenderTargetView for the following new purpose.

You can create render-target views of video resources so that Direct3D shaders can process those render-target views. These video resources are either Texture2D or Texture2DArray. The value in the ViewDimension member of the structure for a created render-target view must match the type of video resource, for Texture2D and for Texture2DArray. Additionally, the format of the underlying video resource restricts the formats that the view can use. The video resource format values on the reference page specify the format values that views are restricted to.

The runtime read+write conflict prevention logic (which stops a resource from being bound as an SRV and RTV or UAV at the same time) treats views of different parts of the same video surface as conflicting for simplicity. Therefore, the runtime does not allow an application to read from luma while the application simultaneously renders to chroma in the same surface even though the hardware might allow these simultaneous operations.

Windows?Phone?8: This API is supported.

+
+ + ff476517 + HRESULT ID3D11Device::CreateRenderTargetView([In] ID3D11Resource* pResource,[In, Optional] const D3D11_RENDER_TARGET_VIEW_DESC* pDesc,[Out, Fast] ID3D11RenderTargetView** ppRTView) + ID3D11Device::CreateRenderTargetView +
+ + +

Create a depth-stencil view for accessing resource data.

+
+

Pointer to the resource that will serve as the depth-stencil surface. This resource must have been created with the flag.

+

Pointer to a depth-stencil-view description (see ). Set this parameter to null to create a view that accesses mipmap level 0 of the entire resource (using the format the resource was created with).

+

Address of a reference to an . Set this parameter to null to validate the other input parameters (the method will return S_FALSE if the other input parameters pass validation).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

A depth-stencil view can be bound to the output-merger stage by calling .

Windows?Phone?8: This API is supported.

+
+ + ff476507 + HRESULT ID3D11Device::CreateDepthStencilView([In] ID3D11Resource* pResource,[In, Optional] const D3D11_DEPTH_STENCIL_VIEW_DESC* pDesc,[Out, Fast] ID3D11DepthStencilView** ppDepthStencilView) + ID3D11Device::CreateDepthStencilView +
+ + +

Create an input-layout object to describe the input-buffer data for the input-assembler stage.

+
+

An array of the input-assembler stage input data types; each type is described by an element description (see ).

+

The number of input-data types in the array of input-elements.

+

A reference to the compiled shader. The compiled shader code contains a input signature which is validated against the array of elements. See remarks.

+

Size of the compiled shader.

+

A reference to the input-layout object created (see ). To validate the other input parameters, set this reference to be null and verify that the method returns S_FALSE.

+

If the method succeeds, the return code is . See Direct3D 11 Return Codes for failing error codes.

+ +

After creating an input layout object, it must be bound to the input-assembler stage before calling a draw API.

Once an input-layout object is created from a shader signature, the input-layout object can be reused with any other shader that has an identical input signature (semantics included). This can simplify the creation of input-layout objects when you are working with many shaders with identical inputs.

If a data type in the input-layout declaration does not match the data type in a shader-input signature, CreateInputLayout will generate a warning during compilation. The warning is simply to call attention to the fact that the data may be reinterpreted when read from a register. You may either disregard this warning (if reinterpretation is intentional) or make the data types match in both declarations to eliminate the warning.

Windows?Phone?8: This API is supported.

+
+ + ff476512 + HRESULT ID3D11Device::CreateInputLayout([In, Buffer] const D3D11_INPUT_ELEMENT_DESC* pInputElementDescs,[In] unsigned int NumElements,[In] const void* pShaderBytecodeWithInputSignature,[In] SIZE_T BytecodeLength,[Out, Fast] ID3D11InputLayout** ppInputLayout) + ID3D11Device::CreateInputLayout +
+ + +

Create a vertex-shader object from a compiled shader.

+
+

A reference to the compiled shader.

+

Size of the compiled vertex shader.

+

A reference to a class linkage interface (see ); the value can be null.

+

Address of a reference to a interface. If this is null, all other parameters will be validated, and if all parameters pass validation this API will return S_FALSE instead of .

+

This method returns one of the Direct3D 11 Return Codes.

+ +

The Direct3D 11.1 runtime, which is available starting with Windows?8, provides the following new functionality for CreateVertexShader.

The following shader model 5.0 instructions are available to just pixel shaders and compute shaders in the Direct3D 11.0 runtime. For the Direct3D 11.1 runtime, because unordered access views (UAV) are available at all shader stages, you can use these instructions in all shader stages.

Therefore, if you use the following shader model 5.0 instructions in a vertex shader, you can successfully pass the compiled vertex shader to pShaderBytecode. That is, the call to CreateVertexShader succeeds.

If you pass a compiled shader to pShaderBytecode that uses any of the following instructions on a device that doesn?t support UAVs at every shader stage (including existing drivers that are not implemented to support UAVs at every shader stage), CreateVertexShader fails. CreateVertexShader also fails if the shader tries to use a UAV slot beyond the set of UAV slots that the hardware supports.

  • dcl_uav_typed
  • dcl_uav_raw
  • dcl_uav_structured
  • ld_raw
  • ld_structured
  • ld_uav_typed
  • store_raw
  • store_structured
  • store_uav_typed
  • sync_uglobal
  • All atomics and immediate atomics (for example, atomic_and and imm_atomic_and)

Windows?Phone?8: This API is supported.

+
+ + ff476524 + HRESULT ID3D11Device::CreateVertexShader([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11VertexShader** ppVertexShader) + ID3D11Device::CreateVertexShader +
+ + +

Create a geometry shader.

+
+

A reference to the compiled shader.

+

Size of the compiled geometry shader.

+

A reference to a class linkage interface (see ); the value can be null.

+

Address of a reference to a interface. If this is null, all other parameters will be validated, and if all parameters pass validation this API will return S_FALSE instead of .

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

After it is created, the shader can be set to the device by calling .

The Direct3D 11.1 runtime, which is available starting with Windows?8, provides the following new functionality for CreateGeometryShader.

The following shader model 5.0 instructions are available to just pixel shaders and compute shaders in the Direct3D 11.0 runtime. For the Direct3D 11.1 runtime, because unordered access views (UAV) are available at all shader stages, you can use these instructions in all shader stages.

Therefore, if you use the following shader model 5.0 instructions in a geometry shader, you can successfully pass the compiled geometry shader to pShaderBytecode. That is, the call to CreateGeometryShader succeeds.

If you pass a compiled shader to pShaderBytecode that uses any of the following instructions on a device that doesn?t support UAVs at every shader stage (including existing drivers that are not implemented to support UAVs at every shader stage), CreateGeometryShader fails. CreateGeometryShader also fails if the shader tries to use a UAV slot beyond the set of UAV slots that the hardware supports.

  • dcl_uav_typed
  • dcl_uav_raw
  • dcl_uav_structured
  • ld_raw
  • ld_structured
  • ld_uav_typed
  • store_raw
  • store_structured
  • store_uav_typed
  • sync_uglobal
  • All atomics and immediate atomics (for example, atomic_and and imm_atomic_and)

Windows?Phone?8: This API is supported.

+
+ + ff476509 + HRESULT ID3D11Device::CreateGeometryShader([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11GeometryShader** ppGeometryShader) + ID3D11Device::CreateGeometryShader +
+ + +

Creates a geometry shader that can write to streaming output buffers.

+
+

A reference to the compiled geometry shader for a standard geometry shader plus stream output. For info on how to get this reference, see Getting a Pointer to a Compiled Shader.

To create the stream output without using a geometry shader, pass a reference to the output signature for the prior stage. To obtain this output signature, call the compiler function. You can also pass a reference to the compiled shader for the prior stage (for example, the vertex-shader stage or domain-shader stage). This compiled shader provides the output signature for the data.

+

Size of the compiled geometry shader.

+

Pointer to a array. Cannot be null if NumEntries > 0.

+

The number of entries in the stream output declaration ( ranges from 0 to * ).

+

An array of buffer strides; each stride is the size of an element for that buffer.

+

The number of strides (or buffers) in pBufferStrides (ranges from 0 to ).

+

The index number of the stream to be sent to the rasterizer stage (ranges from 0 to - 1). Set to if no stream is to be rasterized.

+

A reference to a class linkage interface (see ); the value can be null.

+

Address of a reference to an interface, representing the geometry shader that was created. Set this to null to validate the other parameters; if validation passes, the method will return S_FALSE instead of .

+

This method returns one of the Direct3D 11 Return Codes.

+ +

For more info about using CreateGeometryShaderWithStreamOutput, see Create a Geometry-Shader Object with Stream Output.

The Direct3D 11.1 runtime, which is available starting with Windows?8, provides the following new functionality for CreateGeometryShaderWithStreamOutput.

The following shader model 5.0 instructions are available to just pixel shaders and compute shaders in the Direct3D 11.0 runtime. For the Direct3D 11.1 runtime, because unordered access views (UAV) are available at all shader stages, you can use these instructions in all shader stages.

Therefore, if you use the following shader model 5.0 instructions in a geometry shader, you can successfully pass the compiled geometry shader to pShaderBytecode. That is, the call to CreateGeometryShaderWithStreamOutput succeeds.

If you pass a compiled shader to pShaderBytecode that uses any of the following instructions on a device that doesn?t support UAVs at every shader stage (including existing drivers that are not implemented to support UAVs at every shader stage), CreateGeometryShaderWithStreamOutput fails. CreateGeometryShaderWithStreamOutput also fails if the shader tries to use a UAV slot beyond the set of UAV slots that the hardware supports.

  • dcl_uav_typed
  • dcl_uav_raw
  • dcl_uav_structured
  • ld_raw
  • ld_structured
  • ld_uav_typed
  • store_raw
  • store_structured
  • store_uav_typed
  • sync_uglobal
  • All atomics and immediate atomics (for example, atomic_and and imm_atomic_and)

Windows?Phone?8: This API is supported.

+
+ + ff476510 + HRESULT ID3D11Device::CreateGeometryShaderWithStreamOutput([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Buffer, Optional] const D3D11_SO_DECLARATION_ENTRY* pSODeclaration,[In] unsigned int NumEntries,[In, Buffer, Optional] const unsigned int* pBufferStrides,[In] unsigned int NumStrides,[In] unsigned int RasterizedStream,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11GeometryShader** ppGeometryShader) + ID3D11Device::CreateGeometryShaderWithStreamOutput +
+ + +

Create a pixel shader.

+
+

A reference to the compiled shader.

+

Size of the compiled pixel shader.

+

A reference to a class linkage interface (see ); the value can be null.

+

Address of a reference to a interface. If this is null, all other parameters will be validated, and if all parameters pass validation this API will return S_FALSE instead of .

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

After creating the pixel shader, you can set it to the device using .

Windows?Phone?8: This API is supported.

+
+ + ff476513 + HRESULT ID3D11Device::CreatePixelShader([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11PixelShader** ppPixelShader) + ID3D11Device::CreatePixelShader +
+ + +

Create a hull shader.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

This method returns one of the Direct3D 11 Return Codes.

+ +

The Direct3D 11.1 runtime, which is available starting with Windows?8, provides the following new functionality for CreateHullShader.

The following shader model 5.0 instructions are available to just pixel shaders and compute shaders in the Direct3D 11.0 runtime. For the Direct3D 11.1 runtime, because unordered access views (UAV) are available at all shader stages, you can use these instructions in all shader stages.

Therefore, if you use the following shader model 5.0 instructions in a hull shader, you can successfully pass the compiled hull shader to pShaderBytecode. That is, the call to CreateHullShader succeeds.

If you pass a compiled shader to pShaderBytecode that uses any of the following instructions on a device that doesn?t support UAVs at every shader stage (including existing drivers that are not implemented to support UAVs at every shader stage), CreateHullShader fails. CreateHullShader also fails if the shader tries to use a UAV slot beyond the set of UAV slots that the hardware supports.

  • dcl_uav_typed
  • dcl_uav_raw
  • dcl_uav_structured
  • ld_raw
  • ld_structured
  • ld_uav_typed
  • store_raw
  • store_structured
  • store_uav_typed
  • sync_uglobal
  • All atomics and immediate atomics (for example, atomic_and and imm_atomic_and)

Windows?Phone?8: This API is supported.

+
+ + ff476511 + HRESULT ID3D11Device::CreateHullShader([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11HullShader** ppHullShader) + ID3D11Device::CreateHullShader +
+ + +

Create a domain shader .

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

This method returns one of the following Direct3D 11 Return Codes.

+ +

The Direct3D 11.1 runtime, which is available starting with Windows?8, provides the following new functionality for CreateDomainShader.

The following shader model 5.0 instructions are available to just pixel shaders and compute shaders in the Direct3D 11.0 runtime. For the Direct3D 11.1 runtime, because unordered access views (UAV) are available at all shader stages, you can use these instructions in all shader stages.

Therefore, if you use the following shader model 5.0 instructions in a domain shader, you can successfully pass the compiled domain shader to pShaderBytecode. That is, the call to CreateDomainShader succeeds.

If you pass a compiled shader to pShaderBytecode that uses any of the following instructions on a device that doesn?t support UAVs at every shader stage (including existing drivers that are not implemented to support UAVs at every shader stage), CreateDomainShader fails. CreateDomainShader also fails if the shader tries to use a UAV slot beyond the set of UAV slots that the hardware supports.

  • dcl_uav_typed
  • dcl_uav_raw
  • dcl_uav_structured
  • ld_raw
  • ld_structured
  • ld_uav_typed
  • store_raw
  • store_structured
  • store_uav_typed
  • sync_uglobal
  • All atomics and immediate atomics (for example, atomic_and and imm_atomic_and)

Windows?Phone?8: This API is supported.

+
+ + ff476508 + HRESULT ID3D11Device::CreateDomainShader([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11DomainShader** ppDomainShader) + ID3D11Device::CreateDomainShader +
+ + +

Create a compute shader.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

This method returns E_OUTOFMEMORY if there is insufficient memory to create the compute shader. See Direct3D 11 Return Codes for other possible return values.

+ +

For an example, see How To: Create a Compute Shader and HDRToneMappingCS11 Sample.

Windows?Phone?8: This API is supported.

+
+ + ff476503 + HRESULT ID3D11Device::CreateComputeShader([In] const void* pShaderBytecode,[In] SIZE_T BytecodeLength,[In, Optional] ID3D11ClassLinkage* pClassLinkage,[Out, Fast] ID3D11ComputeShader** ppComputeShader) + ID3D11Device::CreateComputeShader +
+ + +

Creates class linkage libraries to enable dynamic shader linkage.

+
+

A reference to a class-linkage interface reference (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

The interface returned in ppLinkage is associated with a shader by passing it as a parameter to one of the create shader methods such as .

Windows?Phone?8: This API is supported.

+
+ + ff476502 + HRESULT ID3D11Device::CreateClassLinkage([Out, Fast] ID3D11ClassLinkage** ppLinkage) + ID3D11Device::CreateClassLinkage +
+ + +

Create a blend-state object that encapsules blend state for the output-merger stage.

+
+

Pointer to a blend-state description (see ).

+

Address of a reference to the blend-state object created (see ).

+

This method returns E_OUTOFMEMORY if there is insufficient memory to create the blend-state object. See Direct3D 11 Return Codes for other possible return values.

+ +

An application can create up to 4096 unique blend-state objects. For each object created, the runtime checks to see if a previous object has the same state. If such a previous object exists, the runtime will return a reference to previous instance instead of creating a duplicate object.

Windows?Phone?8: This API is supported.

+
+ + ff476500 + HRESULT ID3D11Device::CreateBlendState([In] const D3D11_BLEND_DESC* pBlendStateDesc,[Out, Fast] ID3D11BlendState** ppBlendState) + ID3D11Device::CreateBlendState +
+ + +

Create a depth-stencil state object that encapsulates depth-stencil test information for the output-merger stage.

+
+

Pointer to a depth-stencil state description (see ).

+

Address of a reference to the depth-stencil state object created (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

4096 unique depth-stencil state objects can be created on a device at a time.

If an application attempts to create a depth-stencil-state interface with the same state as an existing interface, the same interface will be returned and the total number of unique depth-stencil state objects will stay the same.

Windows?Phone?8: This API is supported.

+
+ + ff476506 + HRESULT ID3D11Device::CreateDepthStencilState([In] const D3D11_DEPTH_STENCIL_DESC* pDepthStencilDesc,[Out, Fast] ID3D11DepthStencilState** ppDepthStencilState) + ID3D11Device::CreateDepthStencilState +
+ + +

Create a rasterizer state object that tells the rasterizer stage how to behave.

+
+

Pointer to a rasterizer state description (see ).

+

Address of a reference to the rasterizer state object created (see ).

+

This method returns E_OUTOFMEMORY if there is insufficient memory to create the compute shader. See Direct3D 11 Return Codes for other possible return values.

+ +

4096 unique rasterizer state objects can be created on a device at a time.

If an application attempts to create a rasterizer-state interface with the same state as an existing interface, the same interface will be returned and the total number of unique rasterizer state objects will stay the same.

Windows?Phone?8: This API is supported.

+
+ + ff476516 + HRESULT ID3D11Device::CreateRasterizerState([In] const D3D11_RASTERIZER_DESC* pRasterizerDesc,[Out, Fast] ID3D11RasterizerState** ppRasterizerState) + ID3D11Device::CreateRasterizerState +
+ + +

Create a sampler-state object that encapsulates sampling information for a texture.

+
+

Pointer to a sampler state description (see ).

+

Address of a reference to the sampler state object created (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

4096 unique sampler state objects can be created on a device at a time.

If an application attempts to create a sampler-state interface with the same state as an existing interface, the same interface will be returned and the total number of unique sampler state objects will stay the same.

Windows?Phone?8: This API is supported.

+
+ + ff476518 + HRESULT ID3D11Device::CreateSamplerState([In] const D3D11_SAMPLER_DESC* pSamplerDesc,[Out, Fast] ID3D11SamplerState** ppSamplerState) + ID3D11Device::CreateSamplerState +
+ + +

This interface encapsulates methods for querying information from the GPU.

+
+

Pointer to a query description (see ).

+

Address of a reference to the query object created (see ).

+

This method returns E_OUTOFMEMORY if there is insufficient memory to create the query object. See Direct3D 11 Return Codes for other possible return values.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476515 + HRESULT ID3D11Device::CreateQuery([In] const D3D11_QUERY_DESC* pQueryDesc,[Out, Fast] ID3D11Query** ppQuery) + ID3D11Device::CreateQuery +
+ + +

Creates a predicate.

+
+

Pointer to a query description where the type of query must be a or (see ).

+

Address of a reference to a predicate (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476514 + HRESULT ID3D11Device::CreatePredicate([In] const D3D11_QUERY_DESC* pPredicateDesc,[Out, Fast] ID3D11Predicate** ppPredicate) + ID3D11Device::CreatePredicate +
+ + +

Create a counter object for measuring GPU performance.

+
+

Pointer to a counter description (see ).

+

Address of a reference to a counter (see ).

+

If this function succeeds, it will return . If it fails, possible return values are: S_FALSE, E_OUTOFMEMORY, , , or E_INVALIDARG.

is returned whenever the application requests to create a well-known counter, but the current device does not support it.

indicates that another device object is currently using the counters, so they cannot be used by this device at the moment.

E_INVALIDARG is returned whenever an out-of-range well-known or device-dependent counter is requested, or when the simulataneously active counters have been exhausted.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476504 + HRESULT ID3D11Device::CreateCounter([In] const D3D11_COUNTER_DESC* pCounterDesc,[Out, Fast] ID3D11Counter** ppCounter) + ID3D11Device::CreateCounter +
+ + +

Creates a deferred context, which can record command lists.

+
+

Reserved for future use. Pass 0.

+

Upon completion of the method, the passed reference to an interface reference is initialized.

+

Returns if successful; otherwise, returns one of the following:

  • Returns if the video card has been physically removed from the system, or a driver upgrade for the video card has occurred. If this error occurs, you should destroy and recreate the device.
  • Returns if the CreateDeferredContext method cannot be called from the current context. For example, if the device was created with the value, CreateDeferredContext returns .
  • Returns E_INVALIDARG if the ContextFlags parameter is invalid.
  • Returns E_OUTOFMEMORY if the application has exhausted available memory.
+ +

A deferred context is a thread-safe context that you can use to record graphics commands on a thread other than the main rendering thread. Using a deferred context, you can record graphics commands into a command list that is encapsulated by the interface. After all scene items are recorded, you can then submit them to the main render thread for final rendering. In this manner, you can perform rendering tasks concurrently across multiple threads and potentially improve performance in multi-core CPU scenarios.

You can create multiple deferred contexts.

Note??If you use the value to create the device that is represented by , the CreateDeferredContext method will fail, and you will not be able to create a deferred context.

For more information about deferred contexts, see Immediate and Deferred Rendering.

Windows?Phone?8: This API is supported.

+
+ + ff476505 + HRESULT ID3D11Device::CreateDeferredContext([In] unsigned int ContextFlags,[Out, Fast] ID3D11DeviceContext** ppDeferredContext) + ID3D11Device::CreateDeferredContext +
+ + +

Give a device access to a shared resource created on a different device.

+
+

A resource handle. See remarks.

+

The globally unique identifier () for the resource interface. See remarks.

+

Address of a reference to the resource we are gaining access to.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

The REFIID, or , of the interface to the resource can be obtained by using the __uuidof() macro. For example, __uuidof() will get the of the interface to a buffer resource.

The unique handle of the resource is obtained differently depending on the type of device that originally created the resource.

To share a resource between two Direct3D 11 devices the resource must have been created with the flag, if it was created using the interface. If it was created using a DXGI device interface, then the resource is always shared.

The REFIID, or , of the interface to the resource can be obtained by using the __uuidof() macro. For example, __uuidof() will get the of the interface to a buffer resource.

When sharing a resource between two Direct3D 10/11 devices the unique handle of the resource can be obtained by querying the resource for the interface and then calling GetSharedHandle.

 * pOtherResource(null);	
+            hr = pOtherDeviceResource->QueryInterface( __uuidof(), (void**)&pOtherResource );	
+            HANDLE sharedHandle;	
+            pOtherResource->GetSharedHandle(&sharedHandle); 

The only resources that can be shared are 2D non-mipmapped textures.

To share a resource between a Direct3D 9 device and a Direct3D 11 device the texture must have been created using the pSharedHandle argument of CreateTexture. The shared Direct3D 9 handle is then passed to OpenSharedResource in the hResource argument.

The following code illustrates the method calls involved.

 sharedHandle = null; // must be set to null to create, can use a valid handle here to open in D3D9 	
+            pDevice9->CreateTexture(..., pTex2D_9, &sharedHandle); 	
+            ... 	
+            pDevice11->OpenSharedResource(sharedHandle, __uuidof(), (void**)(&tempResource11)); 	
+            tempResource11->QueryInterface(__uuidof(), (void**)(&pTex2D_11)); 	
+            tempResource11->Release(); 	
+            // now use pTex2D_11 with pDevice11    

Textures being shared from D3D9 to D3D11 have the following restrictions.

  • Textures must be 2D
  • Only 1 mip level is allowed
  • Texture must have default usage
  • Texture must be write only
  • MSAA textures are not allowed
  • Bind flags must have SHADER_RESOURCE and RENDER_TARGET set
  • Only R10G10B10A2_UNORM, R16G16B16A16_FLOAT and R8G8B8A8_UNORM formats are allowed

If a shared texture is updated on one device must be called on that device.

Windows?Phone?8: This API is supported.

+
+ + ff476531 + HRESULT ID3D11Device::OpenSharedResource([In] void* hResource,[In] const GUID& ReturnedInterface,[Out, Optional] void** ppResource) + ID3D11Device::OpenSharedResource +
+ + +

Get the support of a given format on the installed video device.

+
+

A enumeration that describes a format for which to check for support.

+

A bitfield of enumeration values describing how the specified format is supported on the installed device. The values are ORed together.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476498 + HRESULT ID3D11Device::CheckFormatSupport([In] DXGI_FORMAT Format,[Out] D3D11_FORMAT_SUPPORT* pFormatSupport) + ID3D11Device::CheckFormatSupport +
+ + +

Get the number of quality levels available during multisampling.

+
+

The texture format. See .

+

The number of samples during multisampling.

+

Number of quality levels supported by the adapter. See remarks.

+ +

When multisampling a texture, the number of quality levels available for an adapter is dependent on the texture format used and the number of samples requested. The maximum number of quality levels is defined by in D3D11.h. If this method returns 0, the format and sample count combination is not supported for the installed adapter.

Furthermore, the definition of a quality level is up to each hardware vendor to define, however no facility is provided by Direct3D to help discover this information.

Note that FEATURE_LEVEL_10_1 devices are required to support 4x MSAA for all render targets except R32G32B32A32 and R32G32B32. FEATURE_LEVEL_11_0 devices are required to support 4x MSAA for all render target formats, and 8x MSAA for all render target formats except R32G32B32A32 formats.

Windows?Phone?8: This API is supported.

+
+ + ff476499 + HRESULT ID3D11Device::CheckMultisampleQualityLevels([In] DXGI_FORMAT Format,[In] unsigned int SampleCount,[Out] unsigned int* pNumQualityLevels) + ID3D11Device::CheckMultisampleQualityLevels +
+ + +

Get a counter's information.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476496 + void ID3D11Device::CheckCounterInfo([Out] D3D11_COUNTER_INFO* pCounterInfo) + ID3D11Device::CheckCounterInfo +
+ + +

Get the type, name, units of measure, and a description of an existing counter.

+
+

Pointer to a counter description (see ). Specifies which counter information is to be retrieved about.

+

Pointer to the data type of a counter (see ). Specifies the data type of the counter being retrieved.

+

Pointer to the number of hardware counters that are needed for this counter type to be created. All instances of the same counter type use the same hardware counters.

+

String to be filled with a brief name for the counter. May be null if the application is not interested in the name of the counter.

+

Length of the string returned to szName. Can be null.

+

Name of the units a counter measures, provided the memory the reference points to has enough room to hold the string. Can be null. The returned string will always be in English.

+

Length of the string returned to szUnits. Can be null.

+

A description of the counter, provided the memory the reference points to has enough room to hold the string. Can be null. The returned string will always be in English.

+

Length of the string returned to szDescription. Can be null.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Length parameters can be null, which indicates the application is not interested in the length nor the corresponding string value. When a length parameter is non-null and the corresponding string is null, the input value of the length parameter is ignored, and the length of the corresponding string (including terminating null) will be returned through the length parameter. When length and the corresponding parameter are both non-null, the input value of length is checked to ensure there is enough room, and then the length of the string (including terminating null character) is passed out through the length parameter.

Windows?Phone?8: This API is supported.

+
+ + ff476495 + HRESULT ID3D11Device::CheckCounter([In] const D3D11_COUNTER_DESC* pDesc,[Out] D3D11_COUNTER_TYPE* pType,[Out] unsigned int* pActiveCounters,[Out, Buffer, Optional] char* szName,[InOut, Optional] unsigned int* pNameLength,[Out, Buffer, Optional] char* szUnits,[InOut, Optional] unsigned int* pUnitsLength,[Out, Buffer, Optional] char* szDescription,[InOut, Optional] unsigned int* pDescriptionLength) + ID3D11Device::CheckCounter +
+ + +

Gets information about the features that are supported by the current graphics driver.

+
+

A member of the enumerated type that describes which feature to query for support.

+

Upon completion of the method, the passed structure is filled with data that describes the feature support.

+

The size of the structure passed to the pFeatureSupportData parameter.

+

Returns if successful; otherwise, returns E_INVALIDARG if an unsupported data type is passed to the pFeatureSupportData parameter or a size mismatch is detected for the FeatureSupportDataSize parameter.

+ +

To query for multi-threading support, pass the value to the Feature parameter, pass the structure to the pFeatureSupportData parameter, and pass the size of the structure to the FeatureSupportDataSize parameter.

Calling CheckFeatureSupport with Feature set to causes the method to return the same information that would be returned by .

Windows?Phone?8: This API is supported.

+
+ + ff476497 + HRESULT ID3D11Device::CheckFeatureSupport([In] D3D11_FEATURE Feature,[Out, Buffer] void* pFeatureSupportData,[In] unsigned int FeatureSupportDataSize) + ID3D11Device::CheckFeatureSupport +
+ + +

Get application-defined data from a device.

+
+

Guid associated with the data.

+

A reference to a variable that on input contains the size, in bytes, of the buffer that pData points to, and on output contains the size, in bytes, of the amount of data that GetPrivateData retrieved.

+

A reference to a buffer that GetPrivateData fills with data from the device if pDataSize points to a value that specifies a buffer large enough to hold the data.

+

This method returns one of the codes described in the topic Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476530 + HRESULT ID3D11Device::GetPrivateData([In] const GUID& guid,[InOut] unsigned int* pDataSize,[Out, Buffer, Optional] void* pData) + ID3D11Device::GetPrivateData +
+ + +

Set data to a device and associate that data with a guid.

+
+

Guid associated with the data.

+

Size of the data.

+

Pointer to the data to be stored with this device. If pData is null, DataSize must also be 0, and any data previously associated with the guid will be destroyed.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

The data stored in the device with this method can be retrieved with .

The data and guid set with this method will typically be application-defined.

The debug layer reports memory leaks by outputting a list of object interface references along with their friendly names. The default friendly name is "<unnamed>". You can set the friendly name so that you can determine if the corresponding object interface reference caused the leak. To set the friendly name, use the SetPrivateData method and the that is in D3Dcommon.h. For example, to give pContext a friendly name of My name, use the following code:

 static const char c_szName[] = "My name";	
+            hr = pContext->SetPrivateData( , sizeof( c_szName ) - 1, c_szName );	
+            

Windows?Phone?8: This API is supported.

+
+ + ff476533 + HRESULT ID3D11Device::SetPrivateData([In] const GUID& guid,[In] unsigned int DataSize,[In, Buffer, Optional] const void* pData) + ID3D11Device::SetPrivateData +
+ + +

Associate an -derived interface with this device child and associate that interface with an application-defined guid.

+
+

Guid associated with the interface.

+

Pointer to an -derived interface to be associated with the device child.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476534 + HRESULT ID3D11Device::SetPrivateDataInterface([In] const GUID& guid,[In, Optional] const IUnknown* pData) + ID3D11Device::SetPrivateDataInterface +
+ + +

Gets the feature level of the hardware device.

+
+

A member of the enumerated type that describes the feature level of the hardware device.

+ +

Feature levels determine the capabilities of your device.

Windows?Phone?8: This API is supported.

+
+ + ff476528 + D3D_FEATURE_LEVEL ID3D11Device::GetFeatureLevel() + ID3D11Device::GetFeatureLevel +
+ + +

Get the flags used during the call to create the device with .

+
+

A bitfield containing the flags used to create the device. See .

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476525 + unsigned int ID3D11Device::GetCreationFlags() + ID3D11Device::GetCreationFlags +
+ + +

Get the reason why the device was removed.

+
+

Possible return values include:

For more detail on these return codes, see DXGI_ERROR.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476526 + HRESULT ID3D11Device::GetDeviceRemovedReason() + ID3D11Device::GetDeviceRemovedReason +
+ + +

Gets an immediate context, which can play back command lists.

+
+

Upon completion of the method, the passed reference to an interface reference is initialized.

+ +

The GetImmediateContext method returns an object that represents an immediate context which is used to perform rendering that you want immediately submitted to a device. For most applications, an immediate context is the primary object that is used to draw your scene.

The GetImmediateContext method increments the reference count of the immediate context by one. Therefore, you must call Release on the returned interface reference when you are done with it to avoid a memory leak.

Windows?Phone?8: This API is supported.

+
+ + ff476529 + void ID3D11Device::GetImmediateContext([Out] ID3D11DeviceContext** ppImmediateContext) + ID3D11Device::GetImmediateContext +
+ + +

Get the exception-mode flags.

+
+

A value that contains one or more exception flags; each flag specifies a condition which will cause an exception to be raised. The flags are listed in D3D11_RAISE_FLAG. A default value of 0 means there are no flags.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Set an exception-mode flag to elevate an error condition to a non-continuable exception.

Whenever an error occurs, a Direct3D device enters the DEVICEREMOVED state and if the appropriate exception flag has been set, an exception is raised. A raised exception is designed to terminate an application. Before termination, the last chance an application has to persist data is by using an UnhandledExceptionFilter (see Structured Exception Handling). In general, UnhandledExceptionFilters are leveraged to try to persist data when an application is crashing (to disk, for example). Any code that executes during an UnhandledExceptionFilter is not guaranteed to reliably execute (due to possible process corruption). Any data that the UnhandledExceptionFilter manages to persist, before the UnhandledExceptionFilter crashes again, should be treated as suspect, and therefore inspected by a new, non-corrupted process to see if it is usable.

Windows?Phone?8: This API is supported.

+
+ + ff476532 + HRESULT ID3D11Device::SetExceptionMode([In] unsigned int RaiseFlags) + ID3D11Device::SetExceptionMode +
+ + +

Get the exception-mode flags.

+
+

A value that contains one or more exception flags; each flag specifies a condition which will cause an exception to be raised. The flags are listed in D3D11_RAISE_FLAG. A default value of 0 means there are no flags.

+ +

An exception-mode flag is used to elevate an error condition to a non-continuable exception.

Windows?Phone?8: This API is supported.

+
+ + ff476527 + unsigned int ID3D11Device::GetExceptionMode() + ID3D11Device::GetExceptionMode +
+ + + Gets a value indicating whether the current device is using the reference rasterizer. + + + + + Gets or sets the debug-name for this object. + + + The debug name. + + + + +

Gets the feature level of the hardware device.

+
+ +

Feature levels determine the capabilities of your device.

Windows?Phone?8: This API is supported.

+
+ + ff476528 + GetFeatureLevel + GetFeatureLevel + D3D_FEATURE_LEVEL ID3D11Device::GetFeatureLevel() +
+ + +

Get the flags used during the call to create the device with .

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476525 + GetCreationFlags + GetCreationFlags + unsigned int ID3D11Device::GetCreationFlags() +
+ + +

Get the reason why the device was removed.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476526 + GetDeviceRemovedReason + GetDeviceRemovedReason + HRESULT ID3D11Device::GetDeviceRemovedReason() +
+ + +

Gets an immediate context, which can play back command lists.

+
+ +

The GetImmediateContext method returns an object that represents an immediate context which is used to perform rendering that you want immediately submitted to a device. For most applications, an immediate context is the primary object that is used to draw your scene.

The GetImmediateContext method increments the reference count of the immediate context by one. Therefore, you must call Release on the returned interface reference when you are done with it to avoid a memory leak.

Windows?Phone?8: This API is supported.

+
+ + ff476529 + GetImmediateContext + GetImmediateContext + void ID3D11Device::GetImmediateContext([Out] ID3D11DeviceContext** ppImmediateContext) +
+ + +

Get or sets the exception-mode flags.

+
+ +

An exception-mode flag is used to elevate an error condition to a non-continuable exception.

Windows?Phone?8: This API is supported.

+
+ + ff476527 + GetExceptionMode / SetExceptionMode + GetExceptionMode + unsigned int ID3D11Device::GetExceptionMode() +
+ + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + +

Set the target output buffers for the stream-output stage of the pipeline.

+
+

The number of buffer to bind to the device. A maximum of four output buffers can be set. If less than four are defined by the call, the remaining buffer slots are set to null. See Remarks.

+

The array of output buffers (see ) to bind to the device. The buffers must have been created with the flag.

+

Array of offsets to the output buffers from ppSOTargets, one offset for each buffer. The offset values must be in bytes.

+ +

An offset of -1 will cause the stream output buffer to be appended, continuing after the last location written to the buffer in a previous stream output pass.

Calling this method using a buffer that is currently bound for writing will effectively bind null instead because a buffer cannot be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

+
+ ff476484 + void ID3D11DeviceContext::SOSetTargets([In] unsigned int NumBuffers,[In, Buffer, Optional] const ID3D11Buffer** ppSOTargets,[In, Buffer, Optional] const unsigned int* pOffsets) + ID3D11DeviceContext::SOSetTargets +
+ + + Sets the stream output targets bound to the StreamOutput stage. + + The buffer to bind on the first stream output slot. + An offset of -1 will cause the stream output buffer to be appended, continuing after the last location written to the buffer in a previous stream output pass. + ff476484 + void ID3D11DeviceContext::SOSetTargets([In] unsigned int NumBuffers,[In, Buffer, Optional] const ID3D11Buffer** ppSOTargets,[In, Buffer, Optional] const unsigned int* pOffsets) + ID3D11DeviceContext::SOSetTargets + + + + Set the target output {{buffers}} for the {{StreamOutput}} stage, which enables/disables the pipeline to stream-out data. + + + Call ID3D10Device::SOSetTargets (before any draw calls) to stream data out; call SOSetTargets with NULL to stop streaming data out. For an example, see Exercise 01 from the GDC 2007 workshop, which sets the stream output render targets before calling draw methods in the RenderInstanceToStream function. An offset of -1 will cause the stream output buffer to be appended, continuing after the last location written to the buffer in a previous stream output pass. Calling this method using a buffer that is currently bound for writing will effectively bind NULL instead because a buffer cannot be bound as both an input and an output at the same time. The {{DeviceDebug Layer}} will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime. The method will not hold a reference to the interfaces passed in. For that reason, applications should be careful not to release an interface currently in use by the device. + + an array of output buffers (see ) to bind to the device. The buffers must have been created with the flag. + void SOSetTargets([In] int NumBuffers,[In, Buffer, Optional] const ID3D10Buffer** ppSOTargets,[In, Buffer, Optional] const int* pOffsets) + ff476484 + void ID3D11DeviceContext::SOSetTargets([In] unsigned int NumBuffers,[In, Buffer, Optional] const ID3D11Buffer** ppSOTargets,[In, Buffer, Optional] const unsigned int* pOffsets) + ID3D11DeviceContext::SOSetTargets + + + + Get the target output {{buffers}} for the {{StreamOutput}} stage of the pipeline. + + + Any returned interfaces will have their reference count incremented by one. Applications should call {{IUnknown::Release}} on the returned interfaces when they are no longer needed to avoid memory leaks. + + Number of buffers to get. A maximum of four output buffers can be retrieved. + an array of output buffers (see ) to bind to the device. + void SOGetTargets([In] int NumBuffers,[Out, Buffer, Optional] ID3D10Buffer** ppSOTargets,[Out, Buffer, Optional] int* pOffsets) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Set the target output buffers for the stream-output stage of the pipeline.

+
+

The number of buffer to bind to the device. A maximum of four output buffers can be set. If less than four are defined by the call, the remaining buffer slots are set to null. See Remarks.

+

The array of output buffers (see ) to bind to the device. The buffers must have been created with the flag.

+

Array of offsets to the output buffers from ppSOTargets, one offset for each buffer. The offset values must be in bytes.

+ +

An offset of -1 will cause the stream output buffer to be appended, continuing after the last location written to the buffer in a previous stream output pass.

Calling this method using a buffer that is currently bound for writing will effectively bind null instead because a buffer cannot be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476484 + void ID3D11DeviceContext::SOSetTargets([In] unsigned int NumBuffers,[In, Buffer, Optional] const void** ppSOTargets,[In, Buffer, Optional] const void* pOffsets) + ID3D11DeviceContext::SOSetTargets +
+ + +

Get the target output buffers for the stream-output stage of the pipeline.

+
+

Number of buffers to get.

+

An array of output buffers (see ) to be retrieved from the device.

+ +

A maximum of four output buffers can be retrieved.

The offsets to the output buffers pointed to in the returned ppSOTargets array may be assumed to be -1 (append), as defined for use in .

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476483 + void ID3D11DeviceContext::SOGetTargets([In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppSOTargets) + ID3D11DeviceContext::SOGetTargets +
+ + + Common Shader class. Provides a common set of methods for a Shader Stage. + TODO: check if usage of abstract is not introducing an unacceptable overhead... + + Type of the shader + + Functions + + + + + Constant SamplerRegisterComponents. + D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS + + + Constant SamplerRegisterCount. + D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT + + + Constant ConstantBufferComponentBitCount. + D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT + + + Constant TextureCoordRangeReductionMinimum. + D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN + + + Constant InputResourceSlotCount. + D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT + + + Constant TempRegisterComponents. + D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS + + + Constant ImmediateValueComponentBitCount. + D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT + + + Constant ImmediateConstantBufferRegisterCount. + D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT + + + Constant TextureElOffsetMaximumPositive. + D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE + + + Constant ConstantBufferComponents. + D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS + + + Constant TempRegisterReadsPerInst. + D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST + + + Constant SubRoutineNestingLimit. + D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT + + + Constant ImmediateConstantBufferRegisterReadPorts. + D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS + + + Constant ConstantBufferApiSlotCount. + D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT + + + Constant InputResourceRegisterReadPorts. + D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS + + + Constant ImmediateConstantBufferRegisterReadsPerInst. + D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST + + + Constant InputResourceRegisterCount. + D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT + + + Constant InputResourceRegisterReadsPerInst. + D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST + + + Constant ConstantBufferRegisterReadPorts. + D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS + + + Constant FlowcontrolNestingLimit. + D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT + + + Constant SamplerRegisterReadsPerInst. + D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST + + + Constant TempRegisterComponentBitCount. + D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT + + + Constant SamplerRegisterReadPorts. + D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS + + + Constant TextureElOffsetMaximumNegative. + D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE + + + Constant TextureCoordRangeReductionMaximum. + D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX + + + Constant TempRegisterCount. + D3D11_COMMONSHADER_TEMP_REGISTER_COUNT + + + Constant ConstantBufferRegisterCount. + D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT + + + Constant ImmediateConstantBufferRegisterComponents. + D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS + + + Constant InputResourceRegisterComponents. + D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS + + + Constant TempRegisterReadPorts. + D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS + + + Constant ConstantBufferRegisterComponents. + D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS + + + Constant ConstantBufferHwSlotCount. + D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT + + + Constant SamplerSlotCount. + D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT + + + Constant ConstantBufferRegisterReadsPerInst. + D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST + + + + Initializes a new instance of the class. + + The pointer. + + + + Gets the constant buffers used by the shader stage. + + Index into the device's zero-based array from which to begin retrieving constant buffers. + Number of buffers to retrieve. + An array of constant buffers. + + + + Gets the sampler states used by the shader stage. + + Index into the device's zero-based array from which to begin retrieving samplers. + Number of samplers to retrieve. + An array of sampler states. + + + + Gets the shader resources used by the shader stage. + + Index into the device's zero-based array from which to begin retrieving shader resources. + Number of resources to retrieve. + An array of shader resources. + + + + Sets a single constant buffer to be used by the shader stage. + + Index into the device's zero-based array to which to set the constant buffer. + constant buffer to set + + + + Sets an array of constant buffers to be used by the shader stage. + + Index into the device's zero-based array to which to set the array of constant buffers. + An array of constant buffer to set + + + + Sets an array of constant buffers to be used by the shader stage. + + Index into the device's zero-based array to which to set the array of constant buffers. + An array of constant buffer to set + + + + Sets a single sampler to be used by the shader stage. + + Index into the device's zero-based array to which to set the sampler. + sampler state to set + + + + Sets an array of samplers to be used by the shader stage. + + Index into the device's zero-based array to which to set the array of sampler states. + An array of sampler state to set + + + + Sets an array of samplers to be used by the shader stage. + + Index into the device's zero-based array to which to set the array of sampler states. + An array of sampler state to set + + + + Sets a single shader resource to be used by the shader stage. + + Index into the device's zero-based array to which to set the resource. + Resource view to attach + + + + Bind an array of shader resources to the shader stage. + + + If an overlapping resource view is already bound to an output slot, such as a render target, then this API will fill the destination shader resource slot with NULL.For information about creating shader-resource views, see . The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1). + Array of {{shader resource view}} interfaces to set to the device. + + + + Bind an array of shader resources to the shader stage. + + + If an overlapping resource view is already bound to an output slot, such as a render target, then this API will fill the destination shader resource slot with NULL.For information about creating shader-resource views, see . The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1). + Array of {{shader resource view}} interfaces to set to the device. + + + + Get the shader resources. + + + Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks. + + Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1). + The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot). + Array of {{shader resource view}} interfaces to be returned by the device. + void PSGetShaderResources([In] UINT StartSlot,[In] UINT NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + + + + Get an array of sampler states from the shader pipeline stage. + + + Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks. + + Index into a zero-based array to begin getting samplers from (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1). + Number of samplers to get from a device context. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot). + Array of sampler-state interface pointers (see ) to be returned by the device. + void PSGetSamplers([In] UINT StartSlot,[In] UINT NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + + + + Get the constant buffers used by the shader pipeline stage. + + + Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks. + + Index into the device's zero-based array to begin retrieving constant buffers from (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1). + Number of buffers to retrieve (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot). + Array of constant buffer interface pointers (see ) to be returned by the method. + void PSGetConstantBuffers([In] UINT StartSlot,[In] UINT NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + + + + Bind an array of shader resources to the shader stage. + + + If an overlapping resource view is already bound to an output slot, such as a render target, then this API will fill the destination shader resource slot with NULL.For information about creating shader-resource views, see . The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1). + Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot). + Array of {{shader resource view}} interfaces to set to the device. + void PSSetShaderResources([In] UINT StartSlot,[In] UINT NumViews,[In, Buffer] const ID3D11ShaderResourceView** ppShaderResourceViews) + + + + Bind an array of shader resources to the shader stage. + + + If an overlapping resource view is already bound to an output slot, such as a render target, then this API will fill the destination shader resource slot with NULL.For information about creating shader-resource views, see . The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1). + Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot). + Array of {{shader resource view}} interfaces to set to the device. + void PSSetShaderResources([In] UINT StartSlot,[In] UINT NumViews,[In, Buffer] const ID3D11ShaderResourceView** ppShaderResourceViews) + + + + Bind an array of shader resources to the shader stage. + + + If an overlapping resource view is already bound to an output slot, such as a render target, then this API will fill the destination shader resource slot with NULL.For information about creating shader-resource views, see . The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - 1). + Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT - StartSlot). + Array of {{shader resource view}} interfaces to set to the device. + void PSSetShaderResources([In] UINT StartSlot,[In] UINT NumViews,[In, Buffer] const ID3D11ShaderResourceView** ppShaderResourceViews) + + + + Set an array of sampler states to the shader pipeline stage. + + + Any sampler may be set to NULL; this invokes the default state, which is defined to be the following.StateDefault ValueFilterD3D11_FILTER_MIN_MAG_MIP_LINEARAddressUD3D11_TEXTURE_ADDRESS_CLAMPAddressVD3D11_TEXTURE_ADDRESS_CLAMPAddressWD3D11_TEXTURE_ADDRESS_CLAMPMipLODBias0MaxAnisotropy1ComparisonFuncD3D11_COMPARISON_NEVERBorderColor[0]1.0fBorderColor[1]1.0fBorderColor[2]1.0fBorderColor[3]1.0fMinLOD-FLT_MAXMaxLODFLT_MAX The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting samplers to (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1). + Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot). + Pointer to an array of sampler-state interfaces (see ). See Remarks. + void PSSetSamplers([In] UINT StartSlot,[In] UINT NumSamplers,[In, Buffer] const ID3D11SamplerState** ppSamplers) + + + + Set an array of sampler states to the shader pipeline stage. + + + Any sampler may be set to NULL; this invokes the default state, which is defined to be the following.StateDefault ValueFilterD3D11_FILTER_MIN_MAG_MIP_LINEARAddressUD3D11_TEXTURE_ADDRESS_CLAMPAddressVD3D11_TEXTURE_ADDRESS_CLAMPAddressWD3D11_TEXTURE_ADDRESS_CLAMPMipLODBias0MaxAnisotropy1ComparisonFuncD3D11_COMPARISON_NEVERBorderColor[0]1.0fBorderColor[1]1.0fBorderColor[2]1.0fBorderColor[3]1.0fMinLOD-FLT_MAXMaxLODFLT_MAX The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting samplers to (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - 1). + Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT - StartSlot). + Pointer to an array of sampler-state interfaces (see ). See Remarks. + void PSSetSamplers([In] UINT StartSlot,[In] UINT NumSamplers,[In, Buffer] const ID3D11SamplerState** ppSamplers) + + + + Set the constant buffers used by the shader pipeline stage. + + + The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1). + Number of buffers to set (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot). + Array of constant buffers (see ) being given to the device. + void PSSetConstantBuffers([In] UINT StartSlot,[In] UINT NumBuffers,[In, Buffer] const ID3D11Buffer** ppConstantBuffers) + + + + Set the constant buffers used by the shader pipeline stage. + + + The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - 1). + Number of buffers to set (ranges from 0 to D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT - StartSlot). + Array of constant buffers (see ) being given to the device. + void PSSetConstantBuffers([In] UINT StartSlot,[In] UINT NumBuffers,[In, Buffer] const ID3D11Buffer** ppConstantBuffers) + + + + Common Shader class. Provides a common set of methods for a Shader Stage. + TODO: check if usage of abstract is not introducing an unacceptable overhead... + + Type of the shader + + + + Initializes a new instance of the class. + + The pointer. + + + + Gets the shader currently assigned to the device. + + The shader (null if no shader is assigned). + + + + Gets the shader currently assigned to the device. + + An array that will be used to contain any class instances currently active. + The shader (null if no shader is assigned). + + + + Assigns a compute shader to the device. + + The shader to assign to the device. Assign null to disable the compute shader. + + + + Assigns a compute shader to the device. + + The shader to assign to the device. Assign null to disable the compute shader. + An array of class-instance interfaces. Each interface used by a shader must have a corresponding class instance or the shader will get disabled. + + + + Assigns a compute shader to the device. + + The shader to assign to the device. Assign null to disable the compute shader. + An array of class-instance interfaces. Each interface used by a shader must have a corresponding class instance or the shader will get disabled. + + + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + Constant UnorderedAccessViewSlotCount. + D3D11_PS_CS_UAV_REGISTER_COUNT + + + Constant DispatchMaximumThreadGroupsPerDimension. + D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION + + + Constant ThreadLocalTempRegisterPool. + D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL + + + Constant ThreadGroupSharedMemoryRegisterCount. + D3D11_CS_TGSM_REGISTER_COUNT + + + Constant ThreadGroupMaximumY. + D3D11_CS_THREAD_GROUP_MAX_Y + + + Constant ThreadGroupSharedMemoryResourceRegisterReadPorts. + D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS + + + Constant ThreadGroupMinimumY. + D3D11_CS_THREAD_GROUP_MIN_Y + + + Constant ThreadGroupSharedMemoryRegisterReadsPerInst. + D3D11_CS_TGSM_REGISTER_READS_PER_INST + + + Constant ThreadGroupMaximumZ. + D3D11_CS_THREAD_GROUP_MAX_Z + + + Constant ThreadGroupMinimumX. + D3D11_CS_THREAD_GROUP_MIN_X + + + Constant ThreadGroupSharedMemoryResourceRegisterComponents. + D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS + + + Constant ThreadGroupMaximumX. + D3D11_CS_THREAD_GROUP_MAX_X + + + Constant ThreadGroupMaximumThreadsPerGroup. + D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP + + + Constant ThreadGroupMinimumZ. + D3D11_CS_THREAD_GROUP_MIN_Z + + + + Gets an array of views for an unordered resource. + + + Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks. + + Index of the first element in the zero-based array to return (ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - 1). + Number of views to get (ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - StartSlot). + void CSGetUnorderedAccessViews([In] int StartSlot,[In] int NumUAVs,[Out, Buffer] ID3D11UnorderedAccessView** ppUnorderedAccessViews) + + + + Sets an array of views for an unordered resource. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an references to be set by the method. + void CSSetUnorderedAccessViews([In] int StartSlot,[In] int NumUAVs,[In, Buffer] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer] const int* pUAVInitialCounts) + + + + Sets an array of views for an unordered resource. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an references to be set by the method. + An Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. uAVInitialCount is only relevant for UAVs which have the flag, otherwise the argument is ignored. + void CSSetUnorderedAccessViews([In] int StartSlot,[In] int NumUAVs,[In, Buffer] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer] const int* pUAVInitialCounts) + + + + Sets an array of views for an unordered resource. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an array of references to be set by the method. + void CSSetUnorderedAccessViews([In] int StartSlot,[In] int NumUAVs,[In, Buffer] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer] const int* pUAVInitialCounts) + + + + Sets an array of views for an unordered resource. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an array of references to be set by the method. + An array of Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. pUAVInitialCounts is only relevant for UAVs which have the flag, otherwise the argument is ignored. + void CSSetUnorderedAccessViews([In] int StartSlot,[In] int NumUAVs,[In, Buffer] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer] const int* pUAVInitialCounts) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Bind an array of shader resources to the compute-shader stage.

+
+

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to - 1).

+

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources(ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to set to the device.

+ +

If an overlapping resource view is already bound to an output slot, such as a render target, then the method will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. +

Windows?Phone?8: This API is supported.

+
+ + ff476403 + void ID3D11DeviceContext::CSSetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[In, Buffer] const void** ppShaderResourceViews) + ID3D11DeviceContext::CSSetShaderResources +
+ + +

Sets an array of views for an unordered resource.

+
+

Index of the first element in the zero-based array to begin setting (ranges from 0 to D3D11_1_UAV_SLOT_COUNT - 1). D3D11_1_UAV_SLOT_COUNT is defined as 64.

+

Number of views to set (ranges from 0 to D3D11_1_UAV_SLOT_COUNT - StartSlot).

+

A reference to an array of references to be set by the method.

+

An array of append and consume buffer offsets. A value of -1 indicates to keep the current offset. Any other values set the hidden counter for that appendable and consumable UAV. pUAVInitialCounts is only relevant for UAVs that were created with either or specified when the UAV was created; otherwise, the argument is ignored.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476404 + void ID3D11DeviceContext::CSSetUnorderedAccessViews([In] unsigned int StartSlot,[In] unsigned int NumUAVs,[In, Buffer] const void** ppUnorderedAccessViews,[In, Buffer] const void* pUAVInitialCounts) + ID3D11DeviceContext::CSSetUnorderedAccessViews +
+ + +

Set a compute shader to the device.

+
+

Pointer to a compute shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476402 + void ID3D11DeviceContext::CSSetShader([In, Optional] ID3D11ComputeShader* pComputeShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::CSSetShader +
+ + +

Set a compute shader to the device.

+
+

Pointer to a compute shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476402 + void ID3D11DeviceContext::CSSetShader([In, Optional] ID3D11ComputeShader* pComputeShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::CSSetShader +
+ + +

Set an array of sampler states to the compute-shader stage.

+
+

Index into the device's zero-based array to begin setting samplers to (ranges from 0 to - 1).

+

Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ). See Remarks.

+ +

Any sampler may be set to null; this invokes the default state, which is defined to be the following.

 //Default sampler state:	
+             SamplerDesc;	
+            SamplerDesc.Filter = ;	
+            SamplerDesc.AddressU = ;	
+            SamplerDesc.AddressV = ;	
+            SamplerDesc.AddressW = ;	
+            SamplerDesc.MipLODBias = 0;	
+            SamplerDesc.MaxAnisotropy = 1;	
+            SamplerDesc.ComparisonFunc = ;	
+            SamplerDesc.BorderColor[0] = 1.0f;	
+            SamplerDesc.BorderColor[1] = 1.0f;	
+            SamplerDesc.BorderColor[2] = 1.0f;	
+            SamplerDesc.BorderColor[3] = 1.0f;	
+            SamplerDesc.MinLOD = -FLT_MAX;	
+            SamplerDesc.MaxLOD = FLT_MAX; 

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476401 + void ID3D11DeviceContext::CSSetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[In, Buffer] const void** ppSamplers) + ID3D11DeviceContext::CSSetSamplers +
+ + +

Sets the constant buffers used by the compute-shader stage.

+
+

Index into the zero-based array to begin setting constant buffers to (ranges from 0 to - 1).

+

Number of buffers to set (ranges from 0 to - StartSlot).

+

Array of constant buffers (see ) being given to the device.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The Direct3D 11.1 runtime, which is available starting with Windows?8, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the CSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476400 + void ID3D11DeviceContext::CSSetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void** ppConstantBuffers) + ID3D11DeviceContext::CSSetConstantBuffers +
+ + +

Get the compute-shader resources.

+
+

Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to - 1).

+

The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476398 + void ID3D11DeviceContext::CSGetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + ID3D11DeviceContext::CSGetShaderResources +
+ + +

Gets an array of views for an unordered resource.

+
+

Index of the first element in the zero-based array to return (ranges from 0 to - 1).

+

Number of views to get (ranges from 0 to - StartSlot).

+

A reference to an array of interface references (see ) to get.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476399 + void ID3D11DeviceContext::CSGetUnorderedAccessViews([In] unsigned int StartSlot,[In] unsigned int NumUAVs,[Out, Buffer] ID3D11UnorderedAccessView** ppUnorderedAccessViews) + ID3D11DeviceContext::CSGetUnorderedAccessViews +
+ + +

Get the compute shader currently set on the device.

+
+

Address of a reference to a Compute shader (see ) to be returned by the method.

+

Pointer to an array of class instance interfaces (see ).

+

The number of class-instance elements in the array.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476397 + void ID3D11DeviceContext::CSGetShader([Out] ID3D11ComputeShader** ppComputeShader,[Out, Buffer, Optional] ID3D11ClassInstance** ppClassInstances,[InOut] unsigned int* pNumClassInstances) + ID3D11DeviceContext::CSGetShader +
+ + +

Get an array of sampler state interfaces from the compute-shader stage.

+
+

Index into a zero-based array to begin getting samplers from (ranges from 0 to - 1).

+

Number of samplers to get from a device context. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ).

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476396 + void ID3D11DeviceContext::CSGetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + ID3D11DeviceContext::CSGetSamplers +
+ + +

Get the constant buffers used by the compute-shader stage.

+
+

Index into the device's zero-based array to begin retrieving constant buffers from (ranges from 0 to - 1).

+

Number of buffers to retrieve (ranges from 0 to - StartSlot).

+

Array of constant buffer interface references (see ) to be returned by the method.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476395 + void ID3D11DeviceContext::CSGetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + ID3D11DeviceContext::CSGetConstantBuffers +
+ + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + + Constructs a new deferred context . + + The device with which to associate the state object. + The newly created object. + + + + Create a command list and record graphics commands into it. + + A flag indicating whether the immediate context state is saved (prior) and restored (after) the execution of a command list. + The created command list containing the queued rendering commands. + + + + Determines whether asynchronous query data is available. + + The data. + + true if asynchronous query data is available; otherwise, false. + + HRESULT ID3D11DeviceContext::GetData([In] ID3D11Asynchronous* pAsync,[Out, Buffer, Optional] void* pData,[In] unsigned int DataSize,[In] D3D11_ASYNC_GETDATA_FLAG GetDataFlags) + + + + Determines whether asynchronous query data is available. + + The data. + Optional flags + + true if asynchronous query data is available; otherwise, false. + + HRESULT ID3D11DeviceContext::GetData([In] ID3D11Asynchronous* pAsync,[Out, Buffer, Optional] void* pData,[In] unsigned int DataSize,[In] D3D11_ASYNC_GETDATA_FLAG GetDataFlags) + + + + Gets data from the GPU asynchronously. + + The asynchronous data provider. + The data retrieved from the GPU. + + + + Gets data from the GPU asynchronously. + + The asynchronous data provider. + The data retrieved from the GPU. + + + + Gets data from the GPU asynchronously. + + + The asynchronous data provider. + The data retrieved from the GPU. + + True if result contains valid data, false otherwise. + + + + + Gets data from the GPU asynchronously. + + The asynchronous data provider. + Flags specifying how the command should operate. + The data retrieved from the GPU. + + + + Gets data from the GPU asynchronously. + + The asynchronous data provider. + Flags specifying how the command should operate. + The data retrieved from the GPU. + + + + Gets data from the GPU asynchronously. + + + The asynchronous data provider. + Flags specifying how the command should operate. + The data retrieved from the GPU. + + True if result contains valid data, false otherwise. + + + + + Copy the entire contents of the source resource to the destination resource using the GPU. + + + This method is unusual in that it causes the GPU to perform the copy operation (similar to a memcpy by the CPU). As a result, it has a few restrictions designed for improving performance. For instance, the source and destination resources: Must be different resources. Must be the same type. Must have identical dimensions (including width, height, depth, and size as appropriate). Will only be copied. CopyResource does not support any stretch, color key, blend, or format conversions. Must have compatible DXGI formats, which means the formats must be identical or at least from the same type group. For example, a DXGI_FORMAT_R32G32B32_FLOAT texture can be copied to an DXGI_FORMAT_R32G32B32_UINT texture since both of these formats are in the DXGI_FORMAT_R32G32B32_TYPELESS group. Might not be currently mapped. You cannot use an {{Immutable}} resource as a destination. You can use a {{depth-stencil}} resource as either a source or a destination. Resources created with multisampling capability (see ) can be used as source and destination only if both source and destination have identical multisampled count and quality. If source and destination differ in multisampled count and quality or if one is multisampled and the other is not multisampled the call to ID3D11DeviceContext::CopyResource fails. The method is an asynchronous call which may be added to the command-buffer queue. This attempts to remove pipeline stalls that may occur when copying data. An application that only needs to copy a portion of the data in a resource should use instead. + + A reference to the source resource (see ). + A reference to the destination resource (see ). + void ID3D11DeviceContext::CopyResource([In] ID3D11Resource* pDstResource,[In] ID3D11Resource* pSrcResource) + ff476392 + void ID3D11DeviceContext::CopyResource([In] ID3D11Resource* pDstResource,[In] ID3D11Resource* pSrcResource) + ID3D11DeviceContext::CopyResource + + + + Copy a region from a source resource to a destination resource. + + + The source box must be within the size of the source resource. The destination offsets, (x, y, and z) allow the source box to be offset when writing into the destination resource; however, the dimensions of the source box and the offsets must be within the size of the resource. If the resources are buffers, all coordinates are in bytes; if the resources are textures, all coordinates are in texels. {{D3D11CalcSubresource}} is a helper function for calculating subresource indexes. CopySubresourceRegion performs the copy on the GPU (similar to a memcpy by the CPU). As a consequence, the source and destination resources: Must be different subresources (although they can be from the same resource). Must be the same type. Must have compatible DXGI formats (identical or from the same type group). For example, a DXGI_FORMAT_R32G32B32_FLOAT texture can be copied to an DXGI_FORMAT_R32G32B32_UINT texture since both of these formats are in the DXGI_FORMAT_R32G32B32_TYPELESS group. May not be currently mapped. CopySubresourceRegion only supports copy; it does not support any stretch, color key, blend, or format conversions. An application that needs to copy an entire resource should use instead. CopySubresourceRegion is an asynchronous call which may be added to the command-buffer queue, this attempts to remove pipeline stalls that may occur when copying data. See performance considerations for more details. Note??If you use CopySubresourceRegion with a depth-stencil buffer or a multisampled resource, you must copy the whole subresource. In this situation, you must pass 0 to the DstX, DstY, and DstZ parameters and NULL to the pSrcBox parameter. In addition, source and destination resources, which are represented by the pSrcResource and pDstResource parameters, should have identical sample count values. Example The following code snippet copies a box (located at (120,100),(200,220)) from a source texture into a region (10,20),(90,140) in a destination texture. + D3D11_BOX sourceRegion; + sourceRegion.left = 120; + sourceRegion.right = 200; + sourceRegion.top = 100; + sourceRegion.bottom = 220; + sourceRegion.front = 0; + sourceRegion.back = 1; pd3dDeviceContext->CopySubresourceRegion( pDestTexture, 0, 10, 20, 0, pSourceTexture, 0, &sourceRegion ); + + Notice, that for a 2D texture, front and back are set to 0 and 1 respectively. + + A reference to the source resource (see ). + Source subresource index. + A reference to a 3D box (see ) that defines the source subresources that can be copied. If NULL, the entire source subresource is copied. The box must fit within the source resource. + A reference to the destination resource (see ). + Destination subresource index. + The x-coordinate of the upper left corner of the destination region. + The y-coordinate of the upper left corner of the destination region. For a 1D subresource, this must be zero. + The z-coordinate of the upper left corner of the destination region. For a 1D or 2D subresource, this must be zero. + ff476394 + void ID3D11DeviceContext::CopySubresourceRegion([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In] unsigned int DstX,[In] unsigned int DstY,[In] unsigned int DstZ,[In] ID3D11Resource* pSrcResource,[In] unsigned int SrcSubresource,[In, Optional] const D3D11_BOX* pSrcBox) + ID3D11DeviceContext::CopySubresourceRegion + + + + Copy a multisampled resource into a non-multisampled resource. + + + This API is most useful when re-using the resulting render target of one render pass as an input to a second render pass. The source and destination resources must be the same resource type and have the same dimensions. In addition, they must have compatible formats. There are three scenarios for this: ScenarioRequirements Source and destination are prestructured and typedBoth the source and destination must have identical formats and that format must be specified in the Format parameter. One resource is prestructured and typed and the other is prestructured and typelessThe typed resource must have a format that is compatible with the typeless resource (i.e. the typed resource is DXGI_FORMAT_R32_FLOAT and the typeless resource is DXGI_FORMAT_R32_TYPELESS). The format of the typed resource must be specified in the Format parameter. Source and destination are prestructured and typelessBoth the source and destination must have the same typeless format (i.e. both must have DXGI_FORMAT_R32_TYPELESS), and the Format parameter must specify a format that is compatible with the source and destination (i.e. if both are DXGI_FORMAT_R32_TYPELESS then DXGI_FORMAT_R32_FLOAT could be specified in the Format parameter). For example, given the DXGI_FORMAT_R16G16B16A16_TYPELESS format: The source (or dest) format could be DXGI_FORMAT_R16G16B16A16_UNORM The dest (or source) format could be DXGI_FORMAT_R16G16B16A16_FLOAT ? + + Source resource. Must be multisampled. + >The source subresource of the source resource. + Destination resource. Must be a created with the flag and be single-sampled. See . + A zero-based index, that identifies the destination subresource. Use {{D3D11CalcSubresource}} to calculate the index. + A that indicates how the multisampled resource will be resolved to a single-sampled resource. See remarks. + void ID3D11DeviceContext::ResolveSubresource([In] ID3D11Resource* pDstResource,[In] int DstSubresource,[In] ID3D11Resource* pSrcResource,[In] int SrcSubresource,[In] DXGI_FORMAT Format) + + + + Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource. + + The resource. + The mip slice. + The array slice. + The mode. + The flags. + The output stream containing the pointer. + + The locked + + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + + + + Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource. + + The resource. + The mip slice. + The array slice. + The mode. + The flags. + The output stream containing the pointer. + + The locked + + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + + + + Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource. + + The resource. + The mip slice. + The array slice. + The mode. + The flags. + The output stream containing the pointer. + + The locked + + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + + + + Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource. + + The resource. + The mode. + The flags. + The output stream containing the pointer. + + The locked + + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + + + + Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource. + + The resource. + The mip slice. + The array slice. + The mode. + The flags. + Size of the selected miplevel. + + The locked + + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + + + + Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource. + + The resource. + The subresource. + The mode. + The flags. + The output stream containing the pointer. + The locked + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + + + +

Gets a reference to the data contained in a subresource, and denies the GPU access to that subresource.

+
+

A reference to a interface.

+

Index number of the subresource.

+

Specifies the CPU's read and write permissions for a resource. For possible values, see .

+

Flag that specifies what the CPU should do when the GPU is busy. This flag is optional.

+

A reference to the mapped subresource (see ).

+ The mapped subresource (see ). If is used and the resource is still being used by the GPU, this method return an empty DataBox whose property returns true.

This method also throws an exception with the code if MapType allows any CPU read access and the video card has been removed.

For more information about these error codes, see DXGI_ERROR.

+ +

If you call Map on a deferred context, you can only pass , , or both to the MapType parameter. Other -typed values are not supported for a deferred context.

The Direct3D 11.1 runtime, which is available starting with Windows Developer Preview, can map shader resource views (SRVs) of dynamic buffers with . The Direct3D 11 and earlier runtimes limited mapping to vertex or index buffers.

+ If is used and the resource is still being used by the GPU, this method return an empty DataBox whose property returns true. +
+ ff476457 + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + ID3D11DeviceContext::Map +
+ + + Copies data from the CPU to to a non-mappable subresource region. + + Type of the data to upload + A reference to the data to upload. + The destination resource. + The destination subresource. + The row pitch. + The depth pitch. + The region + + This method is implementing the workaround for deferred context. + + ff476486 + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + ID3D11DeviceContext::UpdateSubresource + + + + Copies data from the CPU to to a non-mappable subresource region. + + Type of the data to upload + A reference to the data to upload. + The destination resource. + The destination subresource. + The row pitch. + The depth pitch. + A region that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures. + ff476486 + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + ID3D11DeviceContext::UpdateSubresource + This method is implementing the workaround for deferred context. + + + + Copies data from the CPU to to a non-mappable subresource region. + + The source data. + The destination resource. + The destination subresource. + + This method is implementing the workaround for deferred context. + + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + + + + Copies data from the CPU to to a non-mappable subresource region. + + The source data. + The destination resource. + The destination subresource. + The destination region within the resource. + + This method is implementing the workaround for deferred context. + + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + + + + Copies data from the CPU to to a non-mappable subresource region. + + Type of the data to upload + A reference to the data to upload. + The destination resource. + The size in bytes per pixel/block element. + The destination subresource. + The row pitch. + The depth pitch. + if set to true the resource is a block/compressed resource + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + + This method is implementing the workaround for deferred context. + + + + + Copies data from the CPU to to a non-mappable subresource region. + + Type of the data to upload + A reference to the data to upload. + The destination resource. + The size in bytes per pixel/block element. + The destination subresource. + The row pitch. + The depth pitch. + if set to true the resource is a block/compressed resource + + This method is implementing the workaround for deferred context. + + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + + + + Copies data from the CPU to to a non-mappable subresource region. + + The source data. + The destination resource. + The size in bytes per pixel/block element. + The destination subresource. + if set to true the resource is a block/compressed resource + + This method is implementing the workaround for deferred context. + + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + + + + Copies data from the CPU to to a non-mappable subresource region. + + The source data. + The destination resource. + The size in bytes per pixel/block element. + The destination subresource. + The destination region within the resource. + if set to true the resource is a block/compressed resource + + This method is implementing the workaround for deferred context. + + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + + + + Updates the subresource safe method. + + The DST resource ref. + The DST subresource. + The DST box ref. + The p SRC data. + The SRC row pitch. + The SRC depth pitch. + The size in bytes per pixel/block element. + if set to true the resource is a block/compressed resource + + + This method is implementing the workaround for deferred context. + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + Update nested inner interfaces pointer + + + +

Draw indexed, non-instanced primitives.

+
+

Number of indices to draw.

+

The location of the first index read by the GPU from the index buffer.

+

A value added to each index before reading a vertex from the vertex buffer.

+ +

A draw API submits work to the rendering pipeline.

If the sum of both indices is negative, the result of the function call is undefined.

Windows?Phone?8: This API is supported.

+
+ + ff476409 + void ID3D11DeviceContext::DrawIndexed([In] unsigned int IndexCount,[In] unsigned int StartIndexLocation,[In] int BaseVertexLocation) + ID3D11DeviceContext::DrawIndexed +
+ + +

Draw non-indexed, non-instanced primitives.

+
+

Number of vertices to draw.

+

Index of the first vertex, which is usually an offset in a vertex buffer.

+ +

Draw submits work to the rendering pipeline.

The vertex data for a draw call normally comes from a vertex buffer that is bound to the pipeline.

Even without any vertex buffer bound to the pipeline, you can generate your own vertex data in your vertex shader by using the SV_VertexID system-value semantic to determine the current vertex that the runtime is processing.

Windows?Phone?8: This API is supported.

+
+ + ff476407 + void ID3D11DeviceContext::Draw([In] unsigned int VertexCount,[In] unsigned int StartVertexLocation) + ID3D11DeviceContext::Draw +
+ + +

Gets a reference to the data contained in a subresource, and denies the GPU access to that subresource.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

This method returns one of the Direct3D 11 Return Codes.

This method also returns if MapFlags specifies and the GPU is not yet finished with the resource.

This method also returns if MapType allows any CPU read access and the video card has been removed.

For more information about these error codes, see DXGI_ERROR.

+ +

If you call Map on a deferred context, you can only pass , , or both to the MapType parameter. Other -typed values are not supported for a deferred context.

Note??The Direct3D 11.1 runtime, which is available starting with Windows?8, enables mapping dynamic constant buffers and shader resource views (SRVs) of dynamic buffers with . The Direct3D 11 and earlier runtimes limited mapping to vertex or index buffers. To determine if a Direct3D device supports these features, call with D3D11_FEATURE_D3D11_OPTIONS. CheckFeatureSupport fills members of a D3D11_FEATURE_DATA_D3D11_OPTIONS structure with the device's features. The relevant members here are MapNoOverwriteOnDynamicConstantBuffer and MapNoOverwriteOnDynamicBufferSRV.

For info about how to use Map, see How to: Use dynamic resources.

+
+ + ff476457 + HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource) + ID3D11DeviceContext::Map +
+ + +

Invalidate the reference to a resource and reenable the GPU's access to that resource.

+
+

A reference to a interface.

+

A subresource to be unmapped.

+ +

For info about how to use Unmap, see How to: Use dynamic resources.

Windows?Phone?8: This API is supported.

+
+ + ff476485 + void ID3D11DeviceContext::Unmap([In] ID3D11Resource* pResource,[In] unsigned int Subresource) + ID3D11DeviceContext::Unmap +
+ + +

Draw indexed, instanced primitives.

+
+

Number of indices read from the index buffer for each instance.

+

Number of instances to draw.

+

The location of the first index read by the GPU from the index buffer.

+

A value added to each index before reading a vertex from the vertex buffer.

+

A value added to each index before reading per-instance data from a vertex buffer.

+ +

A draw API submits work to the rendering pipeline.

Instancing may extend performance by reusing the same geometry to draw multiple objects in a scene. One example of instancing could be to draw the same object with different positions and colors. Instancing requires multiple vertex buffers: at least one for per-vertex data and a second buffer for per-instance data.

Windows?Phone?8: This API is supported.

+
+ + ff476410 + void ID3D11DeviceContext::DrawIndexedInstanced([In] unsigned int IndexCountPerInstance,[In] unsigned int InstanceCount,[In] unsigned int StartIndexLocation,[In] int BaseVertexLocation,[In] unsigned int StartInstanceLocation) + ID3D11DeviceContext::DrawIndexedInstanced +
+ + +

Draw non-indexed, instanced primitives.

+
+

Number of vertices to draw.

+

Number of instances to draw.

+

Index of the first vertex.

+

A value added to each index before reading per-instance data from a vertex buffer.

+ +

A draw API submits work to the rendering pipeline.

Instancing may extend performance by reusing the same geometry to draw multiple objects in a scene. One example of instancing could be to draw the same object with different positions and colors.

The vertex data for an instanced draw call normally comes from a vertex buffer that is bound to the pipeline. However, you could also provide the vertex data from a shader that has instanced data identified with a system-value semantic (SV_InstanceID).

Windows?Phone?8: This API is supported.

+
+ + ff476412 + void ID3D11DeviceContext::DrawInstanced([In] unsigned int VertexCountPerInstance,[In] unsigned int InstanceCount,[In] unsigned int StartVertexLocation,[In] unsigned int StartInstanceLocation) + ID3D11DeviceContext::DrawInstanced +
+ + +

Mark the beginning of a series of commands.

+
+

A reference to an interface.

+ +

Use to mark the ending of the series of commands.

Windows?Phone?8: This API is supported.

+
+ + ff476386 + void ID3D11DeviceContext::Begin([In] ID3D11Asynchronous* pAsync) + ID3D11DeviceContext::Begin +
+ + +

Mark the end of a series of commands.

+
+

A reference to an interface.

+ +

Use to mark the beginning of the series of commands.

Windows?Phone?8: This API is supported.

+
+ + ff476422 + void ID3D11DeviceContext::End([In] ID3D11Asynchronous* pAsync) + ID3D11DeviceContext::End +
+ + +

Get data from the graphics processing unit (GPU) asynchronously.

+
+

A reference to an interface for the object about which GetData retrieves data.

+

Address of memory that will receive the data. If null, GetData will be used only to check status. The type of data output depends on the type of asynchronous interface.

+

Size of the data to retrieve or 0. Must be 0 when pData is null.

+

Optional flags. Can be 0 or any combination of the flags enumerated by .

+

This method returns one of the Direct3D 11 Return Codes. A return value of indicates that the data at pData is available for the calling application to access. A return value of S_FALSE indicates that the data is not yet available. If the data is not yet available, the application must call GetData until the data is available.

+ +

Queries in a deferred context are limited to predicated drawing. That is, you cannot call on a deferred context to get data about a query; you can only call GetData on the immediate context to get data about a query. For predicated drawing, the results of a predication-type query are used by the GPU and not returned to an application. For more information about predication and predicated drawing, see D3D11DeviceContext::SetPredication.

GetData retrieves the data that the runtime collected between calls to and . Certain queries only require a call to in which case the data returned by GetData is accurate up to the last call to . For information about the queries that only require a call to and about the type of data that GetData retrieves for each query, see .

If DataSize is 0, GetData is only used to check status.

An application gathers counter data by calling , issuing some graphics commands, calling , and then calling to get data about what happened in between the Begin and End calls. For information about performance counter types, see .

Windows?Phone?8: This API is supported.

+
+ + ff476428 + HRESULT ID3D11DeviceContext::GetData([In] ID3D11Asynchronous* pAsync,[Out, Buffer, Optional] void* pData,[In] unsigned int DataSize,[In] D3D11_ASYNC_GETDATA_FLAG GetDataFlags) + ID3D11DeviceContext::GetData +
+ + +

Set a rendering predicate.

+
+

A reference to the interface that represents the rendering predicate. A null value indicates "no" predication; in this case, the value of PredicateValue is irrelevant but will be preserved for .

+

If TRUE, rendering will be affected by when the predicate's conditions are met. If , rendering will be affected when the conditions are not met.

+ +

The predicate must be in the "issued" or "signaled" state to be used for predication. While the predicate is set for predication, calls to and are invalid.

Use this method to denote that subsequent rendering and resource manipulation commands are not actually performed if the resulting predicate data of the predicate is equal to the PredicateValue. However, some predicates are only hints, so they may not actually prevent operations from being performed.

The primary usefulness of predication is to allow an application to issue rendering and resource manipulation commands without taking the performance hit of spinning, waiting for to return. So, predication can occur while returns S_FALSE. Another way to think of it: an application can also use predication as a fallback, if it is possible that returns S_FALSE. If returns , the application can skip calling the rendering and resource manipulation commands manually with it's own application logic.

Rendering and resource manipulation commands for Direct3D?11 include these Draw, Dispatch, Copy, Update, Clear, Generate, and Resolve operations.

  • Draw
  • DrawAuto
  • DrawIndexed
  • DrawIndexedInstanced
  • DrawIndexedInstancedIndirect
  • DrawInstanced
  • DrawInstancedIndirect
  • Dispatch
  • DispatchIndirect
  • CopyResource
  • CopyStructureCount
  • CopySubresourceRegion
  • CopySubresourceRegion1
  • CopyTiles
  • CopyTileMappings
  • UpdateSubresource
  • UpdateSubresource1
  • UpdateTiles
  • UpdateTileMappings
  • ClearRenderTargetView
  • ClearUnorderedAccessViewFloat
  • ClearUnorderedAccessViewUint
  • ClearView
  • GenerateMips
  • ResolveSubresource

You can set a rendering predicate on an immediate or a deferred context. For info about immediate and deferred contexts, see Immediate and Deferred Rendering.

Windows?Phone?8: This API is supported.

+
+ + ff476481 + void ID3D11DeviceContext::SetPredication([In, Optional] ID3D11Predicate* pPredicate,[In] BOOL PredicateValue) + ID3D11DeviceContext::SetPredication +
+ + +

Draw geometry of an unknown size.

+
+ +

A draw API submits work to the rendering pipeline. This API submits work of an unknown size that was processed by the input assembler, vertex shader, and stream-output stages; the work may or may not have gone through the geometry-shader stage.

After data has been streamed out to stream-output stage buffers, those buffers can be again bound to the Input Assembler stage at input slot 0 and DrawAuto will draw them without the application needing to know the amount of data that was written to the buffers. A measurement of the amount of data written to the SO stage buffers is maintained internally when the data is streamed out. This means that the CPU does not need to fetch the measurement before re-binding the data that was streamed as input data. Although this amount is tracked internally, it is still the responsibility of applications to use input layouts to describe the format of the data in the SO stage buffers so that the layouts are available when the buffers are again bound to the input assembler.

The following diagram shows the DrawAuto process.

Calling DrawAuto does not change the state of the streaming-output buffers that were bound again as inputs.

DrawAuto only works when drawing with one input buffer bound as an input to the IA stage at slot 0. Applications must create the SO buffer resource with both binding flags, and .

This API does not support indexing or instancing.

If an application needs to retrieve the size of the streaming-output buffer, it can query for statistics on streaming output by using .

Windows?Phone?8: This API is supported.

+
+ + ff476408 + void ID3D11DeviceContext::DrawAuto() + ID3D11DeviceContext::DrawAuto +
+ + +

Draw indexed, instanced, GPU-generated primitives.

+
+

A reference to an , which is a buffer containing the GPU generated primitives.

+

Offset in pBufferForArgs to the start of the GPU generated primitives.

+ +

When an application creates a buffer that is associated with the interface that pBufferForArgs points to, the application must set the flag in the MiscFlags member of the structure that describes the buffer. To create the buffer, the application calls the method and in this call passes a reference to in the pDesc parameter.

Windows?Phone?8: This API is supported.

+
+ + ff476411 + void ID3D11DeviceContext::DrawIndexedInstancedIndirect([In] ID3D11Buffer* pBufferForArgs,[In] unsigned int AlignedByteOffsetForArgs) + ID3D11DeviceContext::DrawIndexedInstancedIndirect +
+ + +

Draw instanced, GPU-generated primitives.

+
+

A reference to an , which is a buffer containing the GPU generated primitives.

+

Offset in pBufferForArgs to the start of the GPU generated primitives.

+ +

When an application creates a buffer that is associated with the interface that pBufferForArgs points to, the application must set the flag in the MiscFlags member of the structure that describes the buffer. To create the buffer, the application calls the method and in this call passes a reference to in the pDesc parameter.

Windows?Phone?8: This API is supported.

+
+ + ff476413 + void ID3D11DeviceContext::DrawInstancedIndirect([In] ID3D11Buffer* pBufferForArgs,[In] unsigned int AlignedByteOffsetForArgs) + ID3D11DeviceContext::DrawInstancedIndirect +
+ + +

Execute a command list from a thread group.

+
+

The number of groups dispatched in the x direction. ThreadGroupCountX must be less than or equal to (65535).

+

The number of groups dispatched in the y direction. ThreadGroupCountY must be less than or equal to (65535).

+

The number of groups dispatched in the z direction. ThreadGroupCountZ must be less than or equal to (65535). In feature level 10 the value for ThreadGroupCountZ must be 1.

+ +

You call the Dispatch method to execute commands in a compute shader. A compute shader can be run on many threads in parallel, within a thread group. Index a particular thread, within a thread group using a 3D vector given by (x,y,z).

In the following illustration, assume a thread group with 50 threads where the size of the group is given by (5,5,2). A single thread is identified from a thread group with 50 threads in it, using the vector (4,1,1).

The following illustration shows the relationship between the parameters passed to , Dispatch(5,3,2), the values specified in the numthreads attribute, numthreads(10,8,3), and values that will passed to the compute shader for the thread-related system values + (SV_GroupIndex,SV_DispatchThreadID,SV_GroupThreadID,SV_GroupID).

Windows?Phone?8: This API is supported.

+
+ + ff476405 + void ID3D11DeviceContext::Dispatch([In] unsigned int ThreadGroupCountX,[In] unsigned int ThreadGroupCountY,[In] unsigned int ThreadGroupCountZ) + ID3D11DeviceContext::Dispatch +
+ + +

Execute a command list over one or more thread groups.

+
+

A reference to an , which must be loaded with data that matches the argument list for .

+

A byte-aligned offset between the start of the buffer and the arguments.

+ +

You call the DispatchIndirect method to execute commands in a compute shader.

When an application creates a buffer that is associated with the interface that pBufferForArgs points to, the application must set the flag in the MiscFlags member of the structure that describes the buffer. To create the buffer, the application calls the method and in this call passes a reference to in the pDesc parameter.

Windows?Phone?8: This API is supported.

+
+ + ff476406 + void ID3D11DeviceContext::DispatchIndirect([In] ID3D11Buffer* pBufferForArgs,[In] unsigned int AlignedByteOffsetForArgs) + ID3D11DeviceContext::DispatchIndirect +
+ + +

Copy a region from a source resource to a destination resource.

+
+

A reference to the destination resource (see ).

+

Destination subresource index.

+

The x-coordinate of the upper left corner of the destination region.

+

The y-coordinate of the upper left corner of the destination region. For a 1D subresource, this must be zero.

+

The z-coordinate of the upper left corner of the destination region. For a 1D or 2D subresource, this must be zero.

+

A reference to the source resource (see ).

+

Source subresource index.

+

A reference to a 3D box (see ) that defines the source subresource that can be copied. If null, the entire source subresource is copied. The box must fit within the source resource.

An empty box results in a no-op. A box is empty if the top value is greater than or equal to the bottom value, or the left value is greater than or equal to the right value, or the front value is greater than or equal to the back value. When the box is empty, CopySubresourceRegion doesn't perform a copy operation.

+ +

The source box must be within the size of the source resource. The destination offsets, (x, y, and z), allow the source box to be offset when writing into the destination resource; however, the dimensions of the source box and the offsets must be within the size of the resource. If you try and copy outside the destination resource or specify a source box that is larger than the source resource, the behavior of CopySubresourceRegion is undefined. If you created a device that supports the debug layer, the debug output reports an error on this invalid CopySubresourceRegion call. Invalid parameters to CopySubresourceRegion cause undefined behavior and might result in incorrect rendering, clipping, no copy, or even the removal of the rendering device.

If the resources are buffers, all coordinates are in bytes; if the resources are textures, all coordinates are in texels. D3D11CalcSubresource is a helper function for calculating subresource indexes.

CopySubresourceRegion performs the copy on the GPU (similar to a memcpy by the CPU). As a consequence, the source and destination resources:

  • Must be different subresources (although they can be from the same resource).
  • Must be the same type.
  • Must have compatible DXGI formats (identical or from the same type group). For example, a texture can be copied to an texture since both of these formats are in the group. CopySubresourceRegion can copy between a few format types. For more info, see Format Conversion using Direct3D 10.1.
  • May not be currently mapped.

CopySubresourceRegion only supports copy; it does not support any stretch, color key, or blend. CopySubresourceRegion can reinterpret the resource data between a few format types. For more info, see Format Conversion using Direct3D 10.1.

If your app needs to copy an entire resource, we recommend to use instead.

CopySubresourceRegion is an asynchronous call, which may be added to the command-buffer queue, this attempts to remove pipeline stalls that may occur when copying data. For more information about pipeline stalls, see performance considerations.

Note??Applies only to feature level 9_x hardware If you use or CopySubresourceRegion to copy from a staging resource to a default resource, you can corrupt the destination contents. This occurs if you pass a null source box and if the source resource has different dimensions from those of the destination resource or if you use destination offsets, (x, y, and z). In this situation, always pass a source box that is the full size of the source resource.

Note??Applies only to feature level 9_x hardware You can't use CopySubresourceRegion to copy mipmapped volume textures.

Note??Applies only to feature levels 9_x Subresources created with the flag can only be used as a source for CopySubresourceRegion.

Note??If you use CopySubresourceRegion with a depth-stencil buffer or a multisampled resource, you must copy the whole subresource. In this situation, you must pass 0 to the DstX, DstY, and DstZ parameters and null to the pSrcBox parameter. In addition, source and destination resources, which are represented by the pSrcResource and pDstResource parameters, should have identical sample count values.

+
+ + ff476394 + void ID3D11DeviceContext::CopySubresourceRegion([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In] unsigned int DstX,[In] unsigned int DstY,[In] unsigned int DstZ,[In] ID3D11Resource* pSrcResource,[In] unsigned int SrcSubresource,[In, Optional] const D3D11_BOX* pSrcBox) + ID3D11DeviceContext::CopySubresourceRegion +
+ + +

Copy the entire contents of the source resource to the destination resource using the GPU.

+
+

A reference to the interface that represents the destination resource.

+

A reference to the interface that represents the source resource.

+ +

This method is unusual in that it causes the GPU to perform the copy operation (similar to a memcpy by the CPU). As a result, it has a few restrictions designed for improving performance. For instance, the source and destination resources:

  • Must be different resources.
  • Must be the same type.
  • Must have identical dimensions (including width, height, depth, and size as appropriate).
  • Must have compatible DXGI formats, which means the formats must be identical or at least from the same type group. For example, a texture can be copied to an texture since both of these formats are in the group. CopyResource can copy between a few format types. For more info, see Format Conversion using Direct3D 10.1.
  • Can't be currently mapped.

CopyResource only supports copy; it doesn't support any stretch, color key, or blend. CopyResource can reinterpret the resource data between a few format types. For more info, see Format Conversion using Direct3D 10.1.

You can't use an Immutable resource as a destination. You can use a depth-stencil resource as either a source or a destination provided that the feature level is or greater. For feature levels 9_x, resources created with the flag can only be used as a source for CopyResource. Resources created with multisampling capability (see ) can be used as source and destination only if both source and destination have identical multisampled count and quality. If source and destination differ in multisampled count and quality or if one is multisampled and the other is not multisampled, the call to fails. Use to resolve a multisampled resource to a resource that is not multisampled.

The method is an asynchronous call, which may be added to the command-buffer queue. This attempts to remove pipeline stalls that may occur when copying data. For more info, see performance considerations.

We recommend to use instead if you only need to copy a portion of the data in a resource.

Windows?Phone?8: This API is supported.

+
+ + ff476392 + void ID3D11DeviceContext::CopyResource([In] ID3D11Resource* pDstResource,[In] ID3D11Resource* pSrcResource) + ID3D11DeviceContext::CopyResource +
+ + +

The CPU copies data from memory to a subresource created in non-mappable memory.

+
+

A reference to the destination resource (see ).

+

A zero-based index, that identifies the destination subresource. See D3D11CalcSubresource for more details.

+

A reference to a box that defines the portion of the destination subresource to copy the resource data into. Coordinates are in bytes for buffers and in texels for textures. If null, the data is written to the destination subresource with no offset. The dimensions of the source must fit the destination (see ).

An empty box results in a no-op. A box is empty if the top value is greater than or equal to the bottom value, or the left value is greater than or equal to the right value, or the front value is greater than or equal to the back value. When the box is empty, UpdateSubresource doesn't perform an update operation.

+

A reference to the source data in memory.

+

The size of one row of the source data.

+

The size of one depth slice of source data.

+ +

For a shader-constant buffer; set pDstBox to null. It is not possible to use this method to partially update a shader-constant buffer.

A resource cannot be used as a destination if:

  • the resource is created with immutable or dynamic usage.
  • the resource is created as a depth-stencil resource.
  • the resource is created with multisampling capability (see ).

When UpdateSubresource returns, the application is free to change or even free the data pointed to by pSrcData because the method has already copied/snapped away the original contents.

The performance of UpdateSubresource depends on whether or not there is contention for the destination resource. For example, contention for a vertex buffer resource occurs when the application executes a Draw call and later calls UpdateSubresource on the same vertex buffer before the Draw call is actually executed by the GPU.

  • When there is contention for the resource, UpdateSubresource will perform 2 copies of the source data. First, the data is copied by the CPU to a temporary storage space accessible by the command buffer. This copy happens before the method returns. A second copy is then performed by the GPU to copy the source data into non-mappable memory. This second copy happens asynchronously because it is executed by GPU when the command buffer is flushed.
  • When there is no resource contention, the behavior of UpdateSubresource is dependent on which is faster (from the CPU's perspective): copying the data to the command buffer and then having a second copy execute when the command buffer is flushed, or having the CPU copy the data to the final resource location. This is dependent on the architecture of the underlying system.

Note??Applies only to feature level 9_x hardware If you use UpdateSubresource or to copy from a staging resource to a default resource, you can corrupt the destination contents. This occurs if you pass a null source box and if the source resource has different dimensions from those of the destination resource or if you use destination offsets, (x, y, and z). In this situation, always pass a source box that is the full size of the source resource.

To better understand the source row pitch and source depth pitch parameters, the following illustration shows a 3D volume texture.

Each block in this visual represents an element of data, and the size of each element is dependent on the resource's format. For example, if the resource format is , the size of each element would be 128 bits, or 16 bytes. This 3D volume texture has a width of two, a height of three, and a depth of four.

To calculate the source row pitch and source depth pitch for a given resource, use the following formulas:

  • Source Row Pitch = [size of one element in bytes] * [number of elements in one row]
  • Source Depth Pitch = [Source Row Pitch] * [number of rows (height)]

In the case of this example 3D volume texture where the size of each element is 16 bytes, the formulas are as follows:

  • Source Row Pitch = 16 * 2 = 32
  • Source Depth Pitch = 16 * 2 * 3 = 96

The following illustration shows the resource as it is laid out in memory.

For example, the following code snippet shows how to specify a destination region in a 2D texture. Assume the destination texture is 512x512 and the operation will copy the data pointed to by pData to [(120,100)..(200,220)] in the destination texture. Also assume that rowPitch has been initialized with the proper value (as explained above). front and back are set to 0 and 1 respectively, because by having front equal to back, the box is technically empty.

  destRegion;	
+            destRegion.left = 120;	
+            destRegion.right = 200;	
+            destRegion.top = 100;	
+            destRegion.bottom = 220;	
+            destRegion.front = 0;	
+            destRegion.back = 1; pd3dDeviceContext->UpdateSubresource( pDestTexture, 0, &destRegion, pData, rowPitch, 0 );	
+            

The 1D case is similar. The following snippet shows how to specify a destination region in a 1D texture. Use the same assumptions as above, except that the texture is 512 in length.

  destRegion;	
+            destRegion.left = 120;	
+            destRegion.right = 200;	
+            destRegion.top = 0;	
+            destRegion.bottom = 1;	
+            destRegion.front = 0;	
+            destRegion.back = 1; pd3dDeviceContext->UpdateSubresource( pDestTexture, 0, &destRegion, pData, rowPitch, 0 );	
+            

For info about various resource types and how UpdateSubresource might work with each resource type, see Introduction to a Resource in Direct3D 11.

+
+ + ff476486 + void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch) + ID3D11DeviceContext::UpdateSubresource +
+ + +

Copies data from a buffer holding variable length data.

+
+

Pointer to . This can be any buffer resource that other copy commands, such as or , are able to write to.

+

Offset from the start of pDstBuffer to write 32-bit UINT structure (vertex) count from pSrcView.

+

Pointer to an of a Structured Buffer resource created with either or specified when the UAV was created. These types of resources have hidden counters tracking "how many" records have been written.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476393 + void ID3D11DeviceContext::CopyStructureCount([In] ID3D11Buffer* pDstBuffer,[In] unsigned int DstAlignedByteOffset,[In] ID3D11UnorderedAccessView* pSrcView) + ID3D11DeviceContext::CopyStructureCount +
+ + +

Set all the elements in a render target to one value.

+
+

Pointer to the render target.

+

A 4-component array that represents the color to fill the render target with.

+ +

Applications that wish to clear a render target to a specific integer value bit pattern should render a screen-aligned quad instead of using this method. The reason for this is because this method accepts as input a floating point value, which may not have the same bit pattern as the original integer.

Differences between Direct3D 9 and Direct3D 11/10:

Unlike Direct3D 9, the full extent of the resource view is always cleared. Viewport and scissor settings are not applied.

?

When using D3D_FEATURE_LEVEL_9_x, ClearRenderTargetView only clears the first array slice in the render target view. This can impact (for example) cube map rendering scenarios. Applications should create a render target view for each face or array slice, then clear each view individually.

Windows?Phone?8: This API is supported.

+
+ + ff476388 + void ID3D11DeviceContext::ClearRenderTargetView([In] ID3D11RenderTargetView* pRenderTargetView,[In] const SHARPDX_COLOR4* ColorRGBA) + ID3D11DeviceContext::ClearRenderTargetView +
+ + +

Clears an unordered access resource with bit-precise values.

+
+ No documentation. + No documentation. + +

This API copies the lower ni bits from each array element i to the corresponding channel, where ni is the number of bits in the ith channel of the resource format (for example, R8G8B8_FLOAT has 8 bits for the first 3 channels). This works on any UAV with no format conversion. For a raw or structured buffer view, only the first array element value is used.

Windows?Phone?8: This API is supported.

+
+ + ff476391 + void ID3D11DeviceContext::ClearUnorderedAccessViewUint([In] ID3D11UnorderedAccessView* pUnorderedAccessView,[In] const SHARPDX_INT4* Values) + ID3D11DeviceContext::ClearUnorderedAccessViewUint +
+ + +

Clears an unordered access resource with a float value.

+
+ No documentation. + No documentation. + +

This API works on FLOAT, UNORM, and SNORM unordered access views (UAVs), with format conversion from FLOAT to *NORM where appropriate. On other UAVs, the operation is invalid and the call will not reach the driver.

Windows?Phone?8: This API is supported.

+
+ + ff476390 + void ID3D11DeviceContext::ClearUnorderedAccessViewFloat([In] ID3D11UnorderedAccessView* pUnorderedAccessView,[In] const SHARPDX_VECTOR4* Values) + ID3D11DeviceContext::ClearUnorderedAccessViewFloat +
+ + +

Clears the depth-stencil resource.

+
+

Pointer to the depth stencil to be cleared.

+

Identify the type of data to clear (see ).

+

Clear the depth buffer with this value. This value will be clamped between 0 and 1.

+

Clear the stencil buffer with this value.

+ +

Differences between Direct3D 9 and Direct3D 11/10:

Unlike Direct3D 9, the full extent of the resource view is always cleared. Viewport and scissor settings are not applied.

?

Windows?Phone?8: This API is supported.

+
+ + ff476387 + void ID3D11DeviceContext::ClearDepthStencilView([In] ID3D11DepthStencilView* pDepthStencilView,[In] D3D11_CLEAR_FLAG ClearFlags,[In] float Depth,[In] unsigned char Stencil) + ID3D11DeviceContext::ClearDepthStencilView +
+ + +

Generates mipmaps for the given shader resource.

+
+

A reference to an interface that represents the shader resource.

+ +

You can call GenerateMips on any shader-resource view to generate the lower mipmap levels for the shader resource. GenerateMips uses the largest mipmap level of the view to recursively generate the lower levels of the mip and stops with the smallest level that is specified by the view. If the base resource wasn't created with , , and , the call to GenerateMips has no effect.

Feature levels 9.1, 9.2, and 9.3 can't support automatic generation of mipmaps for 3D (volume) textures.

Video adapters that support feature level 9.1 and higher support generating mipmaps if you use any of these formats:

 	
+            	
+            	
+            	
+            	
+            	
+            	
+            

Video adapters that support feature level 9.2 and higher support generating mipmaps if you use any of these formats in addition to any of the formats for feature level 9.1:

 	
+            	
+            	
+            	
+            	
+            

Video adapters that support feature level 9.3 and higher support generating mipmaps if you use any of these formats in addition to any of the formats for feature levels 9.1 and 9.2:

 	
+            DXGI_FORMAT_B4G4R4A4 (optional)	
+            

Video adapters that support feature level 10 and higher support generating mipmaps if you use any of these formats in addition to any of the formats for feature levels 9.1, 9.2, and 9.3:

  (optional)	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+            	
+             (optional)	
+            

For all other unsupported formats, GenerateMips will silently fail.

Windows?Phone?8: This API is supported.

+
+ + ff476426 + void ID3D11DeviceContext::GenerateMips([In] ID3D11ShaderResourceView* pShaderResourceView) + ID3D11DeviceContext::GenerateMips +
+ + +

Sets the minimum level-of-detail (LOD) for a resource.

+
+

A reference to an that represents the resource.

+

The level-of-detail, which ranges between 0 and the maximum number of mipmap levels of the resource. For example, the maximum number of mipmap levels of a 1D texture is specified in the MipLevels member of the structure.

+ +

To use a resource with SetResourceMinLOD, you must set the flag when you create that resource.

For Direct3D 10 and Direct3D 10.1, when sampling from a texture resource in a shader, the sampler can define a minimum LOD clamp to force sampling from less detailed mip levels. For Direct3D 11, this functionality is extended from the sampler to the entire resource. Therefore, the application can specify the highest-resolution mip level of a resource that is available for access. This restricts the set of mip levels that are required to be resident in GPU memory, thereby saving memory.

The set of mip levels resident per-resource in GPU memory can be specified by the user.

Minimum LOD affects all of the resident mip levels. Therefore, only the resident mip levels can be updated and read from.

All methods that access texture resources must adhere to minimum LOD clamps.

Empty-set accesses are handled as out-of-bounds cases.

Windows?Phone?8: This API is supported.

+
+ + ff476482 + void ID3D11DeviceContext::SetResourceMinLOD([In] ID3D11Resource* pResource,[In] float MinLOD) + ID3D11DeviceContext::SetResourceMinLOD +
+ + +

Gets the minimum level-of-detail (LOD).

+
+

A reference to an which represents the resource.

+

Returns the minimum LOD.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476430 + float ID3D11DeviceContext::GetResourceMinLOD([In] ID3D11Resource* pResource) + ID3D11DeviceContext::GetResourceMinLOD +
+ + +

Copy a multisampled resource into a non-multisampled resource.

+
+

Destination resource. Must be a created with the flag and be single-sampled. See .

+

A zero-based index, that identifies the destination subresource. Use D3D11CalcSubresource to calculate the index.

+

Source resource. Must be multisampled.

+

The source subresource of the source resource.

+

A that indicates how the multisampled resource will be resolved to a single-sampled resource. See remarks.

+ +

This API is most useful when re-using the resulting rendertarget of one render pass as an input to a second render pass.

The source and destination resources must be the same resource type and have the same dimensions. In addition, they must have compatible formats. There are three scenarios for this:

ScenarioRequirements
Source and destination are prestructured and typedBoth the source and destination must have identical formats and that format must be specified in the Format parameter.
One resource is prestructured and typed and the other is prestructured and typelessThe typed resource must have a format that is compatible with the typeless resource (i.e. the typed resource is and the typeless resource is ). The format of the typed resource must be specified in the Format parameter.
Source and destination are prestructured and typelessBoth the source and desintation must have the same typeless format (i.e. both must have ), and the Format parameter must specify a format that is compatible with the source and destination (i.e. if both are then could be specified in the Format parameter).

For example, given the format:

  • The source (or dest) format could be
  • The dest (or source) format could be

?

Windows?Phone?8: This API is supported.

+
+ + ff476474 + void ID3D11DeviceContext::ResolveSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In] ID3D11Resource* pSrcResource,[In] unsigned int SrcSubresource,[In] DXGI_FORMAT Format) + ID3D11DeviceContext::ResolveSubresource +
+ + +

Queues commands from a command list onto a device.

+
+

A reference to an interface that encapsulates a command list.

+

A Boolean flag that determines whether the target context state is saved prior to and restored after the execution of a command list. Use TRUE to indicate that the runtime needs to save and restore the state. Use to indicate that no state shall be saved or restored, which causes the target context to return to its default state after the command list executes. Applications should typically use unless they will restore the state to be nearly equivalent to the state that the runtime would restore if TRUE were passed. When applications use , they can avoid unnecessary and inefficient state transitions.

+ +

Use this method to play back a command list that was recorded by a deferred context on any thread.

A call to ExecuteCommandList of a command list from a deferred context onto the immediate context is required for the recorded commands to be executed on the graphics processing unit (GPU). A call to ExecuteCommandList of a command list from a deferred context onto another deferred context can be used to merge recorded lists. But to run the commands from the merged deferred command list on the GPU, you need to execute them on the immediate context.

This method performs some runtime validation related to queries. Queries that are begun in a device context cannot be manipulated indirectly by executing a command list (that is, Begin or End was invoked against the same query by the deferred context which generated the command list). If such a condition occurs, the ExecuteCommandList method does not execute the command list. However, the state of the device context is still maintained, as would be expected ( is performed, unless the application indicates to preserve the device context state).

Windows?Phone?8: This API is supported.

+
+ + ff476423 + void ID3D11DeviceContext::ExecuteCommandList([In] ID3D11CommandList* pCommandList,[In] BOOL RestoreContextState) + ID3D11DeviceContext::ExecuteCommandList +
+ + +

Get the rendering predicate state.

+
+

Address of a boolean to fill with the predicate comparison value. upon device creation.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476429 + void ID3D11DeviceContext::GetPredication([Out, Optional] ID3D11Predicate** ppPredicate,[Out, Optional] BOOL* pPredicateValue) + ID3D11DeviceContext::GetPredication +
+ + +

Restore all default settings.

+
+ +

This method resets any device context to the default settings. This sets all input/output resource slots, shaders, input layouts, predications, scissor rectangles, depth-stencil state, rasterizer state, blend state, sampler state, and viewports to null. The primitive topology is set to UNDEFINED.

For a scenario where you would like to clear a list of commands recorded so far, call and throw away the resulting .

Windows?Phone?8: This API is supported.

+
+ + ff476389 + void ID3D11DeviceContext::ClearState() + ID3D11DeviceContext::ClearState +
+ + +

Sends queued-up commands in the command buffer to the graphics processing unit (GPU).

+
+ +

Most applications don't need to call this method. If an application calls this method when not necessary, it incurs a performance penalty. Each call to Flush incurs a significant amount of overhead.

When Microsoft Direct3D state-setting, present, or draw commands are called by an application, those commands are queued into an internal command buffer. Flush sends those commands to the GPU for processing. Typically, the Direct3D runtime sends these commands to the GPU automatically whenever the runtime determines that they need to be sent, such as when the command buffer is full or when an application maps a resource. Flush sends the commands manually.

We recommend that you use Flush when the CPU waits for an arbitrary amount of time (such as when you call the Sleep function).

Because Flush operates asynchronously, it can return either before or after the GPU finishes executing the queued graphics commands. However, the graphics commands eventually always complete. You can call the method with the value to create an event query; you can then use that event query in a call to the method to determine when the GPU is finished processing the graphics commands. +

Microsoft Direct3D?11 defers the destruction of objects. Therefore, an application can't rely upon objects immediately being destroyed. By calling Flush, you destroy any objects whose destruction was deferred. If an application requires synchronous destruction of an object, we recommend that the application release all its references, call , and then call Flush.

+
+ + ff476425 + void ID3D11DeviceContext::Flush() + ID3D11DeviceContext::Flush +
+ + +

Gets the type of device context.

+
+

A member of that indicates the type of device context.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476431 + D3D11_DEVICE_CONTEXT_TYPE ID3D11DeviceContext::GetType() + ID3D11DeviceContext::GetType +
+ + +

Gets the initialization flags associated with the current deferred context.

+
+ No documentation. + +

The GetContextFlags method gets the flags that were supplied to the ContextFlags parameter of ; however, the context flag is reserved for future use.

Windows?Phone?8: This API is supported.

+
+ + ff476427 + unsigned int ID3D11DeviceContext::GetContextFlags() + ID3D11DeviceContext::GetContextFlags +
+ + +

Create a command list and record graphics commands into it.

+
+

A Boolean flag that determines whether the runtime saves deferred context state before it executes FinishCommandList and restores it afterwards. Use TRUE to indicate that the runtime needs to save and restore the state. Use to indicate that the runtime will not save or restore any state. In this case, the deferred context will return to its default state after the call to FinishCommandList completes. For information about default state, see . Typically, use unless you restore the state to be nearly equivalent to the state that the runtime would restore if you passed TRUE. When you use , you can avoid unnecessary and inefficient state transitions.

Note??This parameter does not affect the command list that the current call to FinishCommandList returns. However, this parameter affects the command list of the next call to FinishCommandList on the same deferred context.

+

Upon completion of the method, the passed reference to an interface reference is initialized with the recorded command list information. The resulting object is immutable and can only be used with .

+

Returns if successful; otherwise, returns one of the following:

  • Returns if the video card has been physically removed from the system, or a driver upgrade for the video card has occurred. If this error occurs, you should destroy and recreate the device.
  • Returns if FinishCommandList cannot be called from the current context. See remarks.
  • Returns E_OUTOFMEMORY if the application has exhausted available memory.
+ +

Create a command list from a deferred context and record commands into it by calling FinishCommandList. Play back a command list with an immediate context by calling .

Immediate context state is cleared before and after a command list is executed. A command list has no concept of inheritance. Each call to FinishCommandList will record only the state set since any previous call to FinishCommandList.

For example, the state of a device context is its render state or pipeline state. To retrieve device context state, an application can call or .

For more information about how to use FinishCommandList, see How to: Record a Command List.

Windows?Phone?8: This API is supported.

+
+ + ff476424 + HRESULT ID3D11DeviceContext::FinishCommandList([In] BOOL RestoreDeferredContextState,[Out, Optional] ID3D11CommandList** ppCommandList) + ID3D11DeviceContext::FinishCommandList +
+ + Inner interface giving access to VertexShaderStage methods. + + + Inner interface giving access to PixelShaderStage methods. + + + Inner interface giving access to InputAssemblerStage methods. + + + Inner interface giving access to GeometryShaderStage methods. + + + Inner interface giving access to OutputMergerStage methods. + + + Inner interface giving access to StreamOutputStage methods. + + + Inner interface giving access to RasterizerStage methods. + + + Inner interface giving access to HullShaderStage methods. + + + Inner interface giving access to DomainShaderStage methods. + + + Inner interface giving access to ComputeShaderStage methods. + + + +

Gets the type of device context.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476431 + GetType + GetType + D3D11_DEVICE_CONTEXT_TYPE ID3D11DeviceContext::GetType() +
+ + +

Gets the initialization flags associated with the current deferred context.

+
+ +

The GetContextFlags method gets the flags that were supplied to the ContextFlags parameter of ; however, the context flag is reserved for future use.

Windows?Phone?8: This API is supported.

+
+ + ff476427 + GetContextFlags + GetContextFlags + unsigned int ID3D11DeviceContext::GetContextFlags() +
+ + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + Constant IndexInputResourceSlotCount. + D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT + + + Constant VertexIdBitCount. + D3D11_IA_VERTEX_ID_BIT_COUNT + + + Constant DefaultIndexBufferOffsetInBytes. + D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES + + + Constant DefaultPrimitiveTopology. + D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY + + + Constant IntegerArithmeticBitCount. + D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT + + + Constant VertexInputStructureElementsComponents. + D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS + + + Constant VertexInputStructureElementCount. + D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT + + + Constant PatchMaximumControlPointCount. + D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT + + + Constant DefaultVertexBufferOffsetInBytes. + D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES + + + Constant InstanceIdBitCount. + D3D11_IA_INSTANCE_ID_BIT_COUNT + + + Constant VertexInputResourceSlotCount. + D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT + + + Constant PrimitiveIdBitCount. + D3D11_IA_PRIMITIVE_ID_BIT_COUNT + + + +

Bind a single vertex buffer to the input-assembler stage.

+
+

The first input slot for binding. The first vertex buffer is explicitly bound to the start slot; this causes each additional vertex buffer in the array to be implicitly bound to each subsequent input slot. The maximum of 16 or 32 input slots (ranges from 0 to - 1) are available; the maximum number of input slots depends on the feature level.

+

A . The vertex buffer must have been created with the flag.

/// +

For information about creating vertex buffers, see Create a Vertex Buffer.

Calling this method using a buffer that is currently bound for writing (i.e. bound to the stream output pipeline stage) will effectively bind null instead because a buffer cannot be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

+
+ ff476456 + void ID3D11DeviceContext::IASetVertexBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void* ppVertexBuffers,[In, Buffer] const void* pStrides,[In, Buffer] const void* pOffsets) + ID3D11DeviceContext::IASetVertexBuffers +
+ + +

Bind an array of vertex buffers to the input-assembler stage.

+
+

The first input slot for binding. The first vertex buffer is explicitly bound to the start slot; this causes each additional vertex buffer in the array to be implicitly bound to each subsequent input slot. The maximum of 16 or 32 input slots (ranges from 0 to - 1) are available; the maximum number of input slots depends on the feature level.

+

A reference to an array of . The vertex buffers must have been created with the flag.

/// +

For information about creating vertex buffers, see Create a Vertex Buffer.

Calling this method using a buffer that is currently bound for writing (i.e. bound to the stream output pipeline stage) will effectively bind null instead because a buffer cannot be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

+
+ ff476456 + void ID3D11DeviceContext::IASetVertexBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void* ppVertexBuffers,[In, Buffer] const void* pStrides,[In, Buffer] const void* pOffsets) + ID3D11DeviceContext::IASetVertexBuffers +
+ + +

Bind an array of vertex buffers to the input-assembler stage.

+
+

The first input slot for binding. The first vertex buffer is explicitly bound to the start slot; this causes each additional vertex buffer in the array to be implicitly bound to each subsequent input slot. The maximum of 16 or 32 input slots (ranges from 0 to - 1) are available; the maximum number of input slots depends on the feature level.

+

A reference to an array of vertex buffers (see ). The vertex buffers must have been created with the flag.

+

Pointer to an array of stride values; one stride value for each buffer in the vertex-buffer array. Each stride is the size (in bytes) of the elements that are to be used from that vertex buffer.

+

Pointer to an array of offset values; one offset value for each buffer in the vertex-buffer array. Each offset is the number of bytes between the first element of a vertex buffer and the first element that will be used.

+ +

For information about creating vertex buffers, see Create a Vertex Buffer.

Calling this method using a buffer that is currently bound for writing (i.e. bound to the stream output pipeline stage) will effectively bind null instead because a buffer cannot be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

+
+ ff476456 + void ID3D11DeviceContext::IASetVertexBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void* ppVertexBuffers,[In, Buffer] const void* pStrides,[In, Buffer] const void* pOffsets) + ID3D11DeviceContext::IASetVertexBuffers +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Bind an input-layout object to the input-assembler stage.

+
+

A reference to the input-layout object (see ), which describes the input buffers that will be read by the IA stage.

+ +

Input-layout objects describe how vertex buffer data is streamed into the IA pipeline stage. To create an input-layout object, call .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476454 + void ID3D11DeviceContext::IASetInputLayout([In, Optional] ID3D11InputLayout* pInputLayout) + ID3D11DeviceContext::IASetInputLayout +
+ + +

Bind an array of vertex buffers to the input-assembler stage.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + +

For info about creating vertex buffers, see How to: Create a Vertex Buffer.

Calling this method using a buffer that is currently bound for writing (that is, bound to the stream output pipeline stage) will effectively bind null instead because a buffer can't be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476456 + void ID3D11DeviceContext::IASetVertexBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void* ppVertexBuffers,[In, Buffer] const void* pStrides,[In, Buffer] const void* pOffsets) + ID3D11DeviceContext::IASetVertexBuffers +
+ + +

Bind an index buffer to the input-assembler stage.

+
+

A reference to an object, that contains indices. The index buffer must have been created with the flag.

+

A that specifies the format of the data in the index buffer. The only formats allowed for index buffer data are 16-bit () and 32-bit () integers.

+

Offset (in bytes) from the start of the index buffer to the first index to use.

+ +

For information about creating index buffers, see How to: Create an Index Buffer.

Calling this method using a buffer that is currently bound for writing (i.e. bound to the stream output pipeline stage) will effectively bind null instead because a buffer cannot be bound as both an input and an output at the same time.

The debug layer will generate a warning whenever a resource is prevented from being bound simultaneously as an input and an output, but this will not prevent invalid data from being used by the runtime.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476453 + void ID3D11DeviceContext::IASetIndexBuffer([In, Optional] ID3D11Buffer* pIndexBuffer,[In] DXGI_FORMAT Format,[In] unsigned int Offset) + ID3D11DeviceContext::IASetIndexBuffer +
+ + +

Bind information about the primitive type, and data order that describes input data for the input assembler stage.

+
+

The type of primitive and ordering of the primitive data (see D3D11_PRIMITIVE_TOPOLOGY).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476455 + void ID3D11DeviceContext::IASetPrimitiveTopology([In] D3D_PRIMITIVE_TOPOLOGY Topology) + ID3D11DeviceContext::IASetPrimitiveTopology +
+ + +

Get a reference to the input-layout object that is bound to the input-assembler stage.

+
+

A reference to the input-layout object (see ), which describes the input buffers that will be read by the IA stage.

+ +

For information about creating an input-layout object, see Creating the Input-Layout Object.

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476450 + void ID3D11DeviceContext::IAGetInputLayout([Out] ID3D11InputLayout** ppInputLayout) + ID3D11DeviceContext::IAGetInputLayout +
+ + +

Get the vertex buffers bound to the input-assembler stage.

+
+

The input slot of the first vertex buffer to get. The first vertex buffer is explicitly bound to the start slot; this causes each additional vertex buffer in the array to be implicitly bound to each subsequent input slot. The maximum of 16 or 32 input slots (ranges from 0 to - 1) are available; the maximum number of input slots depends on the feature level.

+

The number of vertex buffers to get starting at the offset. The number of buffers (plus the starting slot) cannot exceed the total number of IA-stage input slots.

+

A reference to an array of vertex buffers returned by the method (see ).

+

Pointer to an array of stride values returned by the method; one stride value for each buffer in the vertex-buffer array. Each stride value is the size (in bytes) of the elements that are to be used from that vertex buffer.

+

Pointer to an array of offset values returned by the method; one offset value for each buffer in the vertex-buffer array. Each offset is the number of bytes between the first element of a vertex buffer and the first element that will be used.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476452 + void ID3D11DeviceContext::IAGetVertexBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer, Optional] ID3D11Buffer** ppVertexBuffers,[Out, Buffer, Optional] unsigned int* pStrides,[Out, Buffer, Optional] unsigned int* pOffsets) + ID3D11DeviceContext::IAGetVertexBuffers +
+ + +

Get a reference to the index buffer that is bound to the input-assembler stage.

+
+

A reference to an index buffer returned by the method (see ).

+

Specifies format of the data in the index buffer (see ). These formats provide the size and type of the data in the buffer. The only formats allowed for index buffer data are 16-bit () and 32-bit () integers.

+

Offset (in bytes) from the start of the index buffer, to the first index to use.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476449 + void ID3D11DeviceContext::IAGetIndexBuffer([Out, Optional] ID3D11Buffer** pIndexBuffer,[Out, Optional] DXGI_FORMAT* Format,[Out, Optional] unsigned int* Offset) + ID3D11DeviceContext::IAGetIndexBuffer +
+ + +

Get information about the primitive type, and data order that describes input data for the input assembler stage.

+
+

A reference to the type of primitive, and ordering of the primitive data (see D3D11_PRIMITIVE_TOPOLOGY).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476451 + void ID3D11DeviceContext::IAGetPrimitiveTopology([Out] D3D_PRIMITIVE_TOPOLOGY* pTopology) + ID3D11DeviceContext::IAGetPrimitiveTopology +
+ + +

Get or sets a reference to the input-layout object that is bound to the input-assembler stage.

+
+ +

For information about creating an input-layout object, see Creating the Input-Layout Object.

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476450 + IAGetInputLayout / IASetInputLayout + IAGetInputLayout + void ID3D11DeviceContext::IAGetInputLayout([Out] ID3D11InputLayout** ppInputLayout) +
+ + +

Get or sets information about the primitive type, and data order that describes input data for the input assembler stage.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476451 + IAGetPrimitiveTopology / IASetPrimitiveTopology + IAGetPrimitiveTopology + void ID3D11DeviceContext::IAGetPrimitiveTopology([Out] D3D_PRIMITIVE_TOPOLOGY* pTopology) +
+ + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + Constant SimultaneousRenderTargetCount. + D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT + + + + Get references to the render targets that are available to the {{output-merger stage}}. + + + Any returned interfaces will have their reference count incremented by one. Applications should call {{IUnknown::Release}} on the returned interfaces when they are no longer needed to avoid memory leaks. + + a depth-stencil view (see ) to be filled with the depth-stencil information from the device. + void OMGetRenderTargets([In] int NumViews,[Out, Buffer, Optional] ID3D10RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D10DepthStencilView** ppDepthStencilView) + + + + Get references to the render targets that are available to the {{output-merger stage}}. + + + Any returned interfaces will have their reference count incremented by one. Applications should call {{IUnknown::Release}} on the returned interfaces when they are no longer needed to avoid memory leaks. + + Number of render targets to retrieve. + an array of render targets views (see ) to be filled with the render targets from the device. + void OMGetRenderTargets([In] int NumViews,[Out, Buffer, Optional] ID3D10RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D10DepthStencilView** ppDepthStencilView) + + + + Get references to the render targets and the depth-stencil buffer that are available to the {{output-merger stage}}. + + + Any returned interfaces will have their reference count incremented by one. Applications should call {{IUnknown::Release}} on the returned interfaces when they are no longer needed to avoid memory leaks. + + Number of render targets to retrieve. + Pointer to a depth-stencil view (see ) to be filled with the depth-stencil information from the device. + an array of render targets views (see ) to be filled with the render targets from the device. + void OMGetRenderTargets([In] int NumViews,[Out, Buffer, Optional] ID3D10RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D10DepthStencilView** ppDepthStencilView) + + + + Get the {{blend state}} of the output-merger stage. + + + The reference count of the returned interface will be incremented by one when the blend state is retrieved. Applications must release returned reference(s) when they are no longer needed, or else there will be a memory leak. + + Array of blend factors, one for each RGBA component. + Pointer to a {{sample mask}}. + a reference to a blend-state interface (see ). + void OMGetBlendState([Out, Optional] ID3D10BlendState** ppBlendState,[Out, Optional] float BlendFactor[4],[Out, Optional] int* pSampleMask) + + + + Gets the {{depth-stencil}} state of the output-merger stage. + + + Any returned interfaces will have their reference count incremented by one. Applications should call {{IUnknown::Release}} on the returned interfaces when they are no longer needed to avoid memory leaks. + + Pointer to the stencil reference value used in the {{depth-stencil}} test. + a reference to a depth-stencil state interface (see ) to be filled with information from the device. + void OMGetDepthStencilState([Out, Optional] ID3D10DepthStencilState** ppDepthStencilState,[Out, Optional] int* pStencilRef) + + + + Gets an array of views for an unordered resource. + + + Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks. + + Index of the first element in the zero-based array to return (ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - 1). + Number of views to get (ranges from 0 to D3D11_PS_CS_UAV_REGISTER_COUNT - StartSlot). + void OMGetRenderTargetsAndUnorderedAccessViews([In] int NumRTVs,[Out, Buffer, Optional] ID3D11RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D11DepthStencilView** ppDepthStencilView,[In] int UAVStartSlot,[In] int NumUAVs,[Out, Buffer, Optional] ID3D11UnorderedAccessView** ppUnorderedAccessViews) + + + + Unbinds all depth-stencil buffer and render targets from the output-merger stage. + + ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets + + + +

Bind one or more render targets atomically and the depth-stencil buffer to the output-merger stage.

+
+ A set of render target views to bind. + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + + Binds a single render target to the output-merger stage. + + A view of the render target to bind. + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + + Binds a depth-stencil buffer and a set of render targets to the output-merger stage. + + A view of the depth-stencil buffer to bind. + A set of render target views to bind. + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + + Binds a depth-stencil buffer and a set of render targets to the output-merger stage. + + A view of the depth-stencil buffer to bind. + The render target count. + A set of render target views to bind. + ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ + + Binds a depth-stencil buffer and a single render target to the output-merger stage. + + A view of the depth-stencil buffer to bind. + A view of the render target to bind. + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + + Binds a depth-stencil buffer and a set of render targets to the output-merger stage. + + A view of the depth-stencil buffer to bind. + A set of render target views to bind. + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + + Binds a set of render targets to the output-merger stage and clear the depth stencil view. + + A set of render target views to bind. + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT. It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, then all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

+
+ ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + + Binds a set of unordered access views and a single render target to the output-merger stage. + + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A view of the render target to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a set of unordered access views and a set of render targets to the output-merger stage. + + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A set of render target views to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a depth-stencil buffer, a set of unordered access views, and a single render target to the output-merger stage. + + A view of the depth-stencil buffer to bind. + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A view of the render target to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a depth-stencil buffer, a set of unordered access views, and a set of render targets to the output-merger stage. + + A view of the depth-stencil buffer to bind. + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A set of render target views to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a set of unordered access views and a single render target to the output-merger stage. + + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A view of the render target to bind. + An array of Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a set of unordered access views and a set of render targets to the output-merger stage. + + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A set of render target views to bind. + An array of Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a depth-stencil buffer, a set of unordered access views, and a single render target to the output-merger stage. + + A view of the depth-stencil buffer to bind. + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A view of the render target to bind. + An array of Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a depth-stencil buffer, a set of unordered access views, and a set of render targets to the output-merger stage. + + A view of the depth-stencil buffer to bind. + Index into a zero-based array to begin setting unordered access views. + A set of unordered access views to bind. + A set of render target views to bind. + An array of Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + + + + Binds a depth stencil view and a render target view to the output-merger stage keeping existing unordered access views bindings. + + A view of the depth-stencil buffer to bind. + A view to a render target to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a render target view to the output-merger stage keeping existing unordered access views bindings. + + A view to a render target to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Binds a depth stencil view and a render target view to the output-merger stage keeping existing unordered access views bindings. + + A view of the depth-stencil buffer to bind. + A set of render target views to bind. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Sets an array of views for an unordered resource keeping existing render targets bindings. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an references to be set by the method. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Sets an array of views for an unordered resource keeping existing render targets bindings. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an references to be set by the method. + An Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. uAVInitialCount is only relevant for UAVs which have the flag, otherwise the argument is ignored. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Sets an array of views for an unordered resource keeping existing render targets bindings. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an array of references to be set by the method. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + + Sets an array of views for an unordered resource keeping existing render targets bindings. + + + + Index of the first element in the zero-based array to begin setting. + A reference to an array of references to be set by the method. + An array of Append/Consume buffer offsets. A value of -1 indicates the current offset should be kept. Any other values set the hidden counter for that Appendable/Consumable UAV. pUAVInitialCounts is only relevant for UAVs which have the flag, otherwise the argument is ignored. + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews + + + +

Binds resources to the output-merger stage.

+
+

Number of render-target views (ppRenderTargetViews) and depth-stencil view (ppDepthStencilView) to bind. If you set NumViews to D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL (0xffffffff), this method does not modify the currently bound render-target views (RTVs) and also does not modify depth-stencil view (DSV).

+

Pointer to an array of s, which represent render-target views. Specify null to set none.

+

Pointer to a , which represents a depth-stencil view. Specify null to set none.

+

Index into a zero-based array to begin setting unordered-access views (ranges from 0 to - 1).

For the Direct3D 11.1 runtime, which is available starting with Windows Developer Preview, this value can range from 0 to D3D11_1_UAV_SLOT_COUNT - 1. D3D11_1_UAV_SLOT_COUNT is defined as 64.

For pixel shaders, UAVStartSlot should be equal to the number of render-target views being bound.

+

Number of unordered-access views (UAVs) in ppUnorderedAccessView. If you set NumUAVs to D3D11_KEEP_UNORDERED_ACCESS_VIEWS (0xffffffff), this method does not modify the currently bound unordered-access views.

For the Direct3D 11.1 runtime, which is available starting with Windows Developer Preview, this value can range from 0 to D3D11_1_UAV_SLOT_COUNT - UAVStartSlot.

+

Pointer to an array of s, which represent unordered-access views.

+

An array of append and consume buffer offsets. A value of -1 indicates to keep the current offset. Any other values set the hidden counter for that appendable and consumable UAV. pUAVInitialCounts is relevant only for UAVs that were created with either or specified when the UAV was created; otherwise, the argument is ignored.

+ +

For pixel shaders, the render targets and unordered-access views share the same resource slots when being written out. This means that UAVs must be given an offset so that they are placed in the slots after the render target views that are being bound.

Note??RTVs, DSV, and UAVs cannot be set independently; they all need to be set at the same time.

Two RTVs conflict if they share a subresource (and therefore share the same resource).

Two UAVs conflict if they share a subresource (and therefore share the same resource).

An RTV conflicts with a UAV if they share a subresource or share a bind point.

OMSetRenderTargetsAndUnorderedAccessViews operates properly in the following situations:

  1. NumViews != D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL and NumUAVs != D3D11_KEEP_UNORDERED_ACCESS_VIEWS

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • NumViews <= 8
    • UAVStartSlot >= NumViews
    • UAVStartSlot + NumUAVs <= 8
    • There must be no conflicts in the set of all ppRenderTargetViews and ppUnorderedAccessView.
    • ppDepthStencilView must match the render-target views. For more information about resource views, see Introduction to a Resource in Direct3D 11.

    OMSetRenderTargetsAndUnorderedAccessViews performs the following tasks:

    • Unbinds all currently bound conflicting resources (stream-output target resources (SOTargets), compute shader (CS) UAVs, shader-resource views (SRVs)).
    • Binds ppRenderTargetViews, ppDepthStencilView, and ppUnorderedAccessView.
  2. NumViews == D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL

    In this situation, OMSetRenderTargetsAndUnorderedAccessViews binds only UAVs.

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • UAVStartSlot + NumUAVs <= 8
    • There must be no conflicts in ppUnorderedAccessView.

    OMSetRenderTargetsAndUnorderedAccessViews unbinds the following items:

    • All RTVs in slots >= UAVStartSlot
    • All RTVs that conflict with any UAVs in ppUnorderedAccessView
    • All currently bound resources (SOTargets, CS UAVs, SRVs) that conflict with ppUnorderedAccessView

    OMSetRenderTargetsAndUnorderedAccessViews binds ppUnorderedAccessView.

    OMSetRenderTargetsAndUnorderedAccessViews ignores ppDepthStencilView, and the current depth-stencil view remains bound.

  3. NumUAVs == D3D11_KEEP_UNORDERED_ACCESS_VIEWS

    In this situation, OMSetRenderTargetsAndUnorderedAccessViews binds only RTVs and DSV.

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • NumViews <= 8
    • There must be no conflicts in ppRenderTargetViews.
    • ppDepthStencilView must match the render-target views. For more information about resource views, see Introduction to a Resource in Direct3D 11.

    OMSetRenderTargetsAndUnorderedAccessViews unbinds the following items:

    • All UAVs in slots < NumViews
    • All UAVs that conflict with any RTVs in ppRenderTargetViews
    • All currently bound resources (SOTargets, CS UAVs, SRVs) that conflict with ppRenderTargetViews

    OMSetRenderTargetsAndUnorderedAccessViews binds ppRenderTargetViews and ppDepthStencilView.

    OMSetRenderTargetsAndUnorderedAccessViews ignores UAVStartSlot.

+
+ ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews +
+ + +

Binds resources to the output-merger stage.

+
+

Number of render-target views (ppRenderTargetViews) and depth-stencil view (ppDepthStencilView) to bind. If you set NumViews to D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL (0xffffffff), this method does not modify the currently bound render-target views (RTVs) and also does not modify depth-stencil view (DSV).

+

Pointer to an array of s, which represent render-target views. Specify null to set none.

+

Pointer to a , which represents a depth-stencil view. Specify null to set none.

+

Index into a zero-based array to begin setting unordered-access views (ranges from 0 to - 1).

For the Direct3D 11.1 runtime, which is available starting with Windows Developer Preview, this value can range from 0 to D3D11_1_UAV_SLOT_COUNT - 1. D3D11_1_UAV_SLOT_COUNT is defined as 64.

For pixel shaders, UAVStartSlot should be equal to the number of render-target views being bound.

+

Number of unordered-access views (UAVs) in ppUnorderedAccessView. If you set NumUAVs to D3D11_KEEP_UNORDERED_ACCESS_VIEWS (0xffffffff), this method does not modify the currently bound unordered-access views.

For the Direct3D 11.1 runtime, which is available starting with Windows Developer Preview, this value can range from 0 to D3D11_1_UAV_SLOT_COUNT - UAVStartSlot.

+

Pointer to an array of s, which represent unordered-access views.

+

An array of append and consume buffer offsets. A value of -1 indicates to keep the current offset. Any other values set the hidden counter for that appendable and consumable UAV. pUAVInitialCounts is relevant only for UAVs that were created with either or specified when the UAV was created; otherwise, the argument is ignored.

+ +

For pixel shaders, the render targets and unordered-access views share the same resource slots when being written out. This means that UAVs must be given an offset so that they are placed in the slots after the render target views that are being bound.

Note??RTVs, DSV, and UAVs cannot be set independently; they all need to be set at the same time.

Two RTVs conflict if they share a subresource (and therefore share the same resource).

Two UAVs conflict if they share a subresource (and therefore share the same resource).

An RTV conflicts with a UAV if they share a subresource or share a bind point.

OMSetRenderTargetsAndUnorderedAccessViews operates properly in the following situations:

  1. NumViews != D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL and NumUAVs != D3D11_KEEP_UNORDERED_ACCESS_VIEWS

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • NumViews <= 8
    • UAVStartSlot >= NumViews
    • UAVStartSlot + NumUAVs <= 8
    • There must be no conflicts in the set of all ppRenderTargetViews and ppUnorderedAccessView.
    • ppDepthStencilView must match the render-target views. For more information about resource views, see Introduction to a Resource in Direct3D 11.

    OMSetRenderTargetsAndUnorderedAccessViews performs the following tasks:

    • Unbinds all currently bound conflicting resources (stream-output target resources (SOTargets), compute shader (CS) UAVs, shader-resource views (SRVs)).
    • Binds ppRenderTargetViews, ppDepthStencilView, and ppUnorderedAccessView.
  2. NumViews == D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL

    In this situation, OMSetRenderTargetsAndUnorderedAccessViews binds only UAVs.

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • UAVStartSlot + NumUAVs <= 8
    • There must be no conflicts in ppUnorderedAccessView.

    OMSetRenderTargetsAndUnorderedAccessViews unbinds the following items:

    • All RTVs in slots >= UAVStartSlot
    • All RTVs that conflict with any UAVs in ppUnorderedAccessView
    • All currently bound resources (SOTargets, CS UAVs, SRVs) that conflict with ppUnorderedAccessView

    OMSetRenderTargetsAndUnorderedAccessViews binds ppUnorderedAccessView.

    OMSetRenderTargetsAndUnorderedAccessViews ignores ppDepthStencilView, and the current depth-stencil view remains bound.

  3. NumUAVs == D3D11_KEEP_UNORDERED_ACCESS_VIEWS

    In this situation, OMSetRenderTargetsAndUnorderedAccessViews binds only RTVs and DSV.

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • NumViews <= 8
    • There must be no conflicts in ppRenderTargetViews.
    • ppDepthStencilView must match the render-target views. For more information about resource views, see Introduction to a Resource in Direct3D 11.

    OMSetRenderTargetsAndUnorderedAccessViews unbinds the following items:

    • All UAVs in slots < NumViews
    • All UAVs that conflict with any RTVs in ppRenderTargetViews
    • All currently bound resources (SOTargets, CS UAVs, SRVs) that conflict with ppRenderTargetViews

    OMSetRenderTargetsAndUnorderedAccessViews binds ppRenderTargetViews and ppDepthStencilView.

    OMSetRenderTargetsAndUnorderedAccessViews ignores UAVStartSlot.

+
+ ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const ID3D11RenderTargetView** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const ID3D11UnorderedAccessView** ppUnorderedAccessViews,[In, Buffer, Optional] const unsigned int* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews +
+ + + Set the blend state of the output-merger stage. + + Pointer to a blend-state interface (see ). Passing in null implies a default blend state. See remarks for further details. + Array of blend factors, one for each RGBA component. This requires a blend state object that specifies the option. + 32-bit sample coverage. The default value is 0xffffffff. See remarks. + + Blend state is used by the output-merger stage to determine how to blend together two pixel values. The two values are commonly the current pixel value and the pixel value already in the output render target. Use the blend operation to control where the two pixel values come from and how they are mathematically combined.To create a blend-state interface, call .Passing in null for the blend-state interface indicates to the runtime to set a default blending state. The following table indicates the default blending parameters.StateDefault Value AlphaToCoverageEnableFALSE BlendEnableFALSE[8] SrcBlendD3D11_BLEND_ONE DstBlendD3D11_BLEND_ZERO BlendOpD3D11_BLEND_OP_ADD SrcBlendAlphaD3D11_BLEND_ONE DstBlendAlphaD3D11_BLEND_ZERO BlendOpAlphaD3D11_BLEND_OP_ADD RenderTargetWriteMask[8][8]?A sample mask determines which samples get updated in all the active render targets. The mapping of bits in a sample mask to samples in a multisample render target is the responsibility of an individual application. A sample mask is always applied; it is independent of whether multisampling is enabled, and does not depend on whether an application uses multisample render targets.The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10. + + void ID3D11DeviceContext::OMSetBlendState([In, Optional] ID3D11BlendState* pBlendState,[In, Optional] const SHARPDX_COLOR4* BlendFactor,[In] unsigned int SampleMask) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Bind one or more render targets atomically and the depth-stencil buffer to the output-merger stage.

+
+ No documentation. + No documentation. + No documentation. + +

The maximum number of active render targets a device can have active at any given time is set by a #define in D3D11.h called . It is invalid to try to set the same subresource to multiple render target slots. Any render targets not defined by this call are set to null.

If any subresources are also currently bound for reading in a different stage or writing (perhaps in a different part of the pipeline), those bind points will be set to null, in order to prevent the same subresource from being read and written simultaneously in a single rendering operation.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

If the render-target views were created from an array resource type, all of the render-target views must have the same array size. This restriction also applies to the depth-stencil view, its array size must match that of the render-target views being bound.

The pixel shader must be able to simultaneously render to at least eight separate render targets. All of these render targets must access the same type of resource: Buffer, Texture1D, Texture1DArray, Texture2D, Texture2DArray, Texture3D, or TextureCube. All render targets must have the same size in all dimensions (width and height, and depth for 3D or array size for *Array types). If render targets use multisample anti-aliasing, all bound render targets and depth buffer must be the same form of multisample resource (that is, the sample counts must be the same). Each render target can have a different data format. These render target formats are not required to have identical bit-per-element counts.

Any combination of the eight slots for render targets can have a render target set or not set.

The same resource view cannot be bound to multiple render target slots simultaneously. However, you can set multiple non-overlapping resource views of a single resource as simultaneous multiple render targets.

Windows?Phone?8: This API is supported.

+
+ + ff476464 + void ID3D11DeviceContext::OMSetRenderTargets([In] unsigned int NumViews,[In] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView) + ID3D11DeviceContext::OMSetRenderTargets +
+ + +

Binds resources to the output-merger stage.

+
+

Number of render targets to bind (ranges between 0 and ). If this parameter is nonzero, the number of entries in the array to which ppRenderTargetViews points must equal the number in this parameter. If you set NumViews to D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL (0xffffffff), this method does not modify the currently bound render-target views (RTVs) and also does not modify depth-stencil view (DSV).

+

Pointer to an array of s that represent the render targets to bind to the device. If this parameter is null and NumViews is 0, no render targets are bound.

+

Pointer to a that represents the depth-stencil view to bind to the device. If this parameter is null, the depth-stencil state is not bound.

+

Index into a zero-based array to begin setting unordered-access views (ranges from 0 to - 1).

For the Direct3D 11.1 runtime, which is available starting with Windows?8, this value can range from 0 to D3D11_1_UAV_SLOT_COUNT - 1. D3D11_1_UAV_SLOT_COUNT is defined as 64.

For pixel shaders, UAVStartSlot should be equal to the number of render-target views being bound.

+

Number of unordered-access views (UAVs) in ppUnorderedAccessView. If you set NumUAVs to D3D11_KEEP_UNORDERED_ACCESS_VIEWS (0xffffffff), this method does not modify the currently bound unordered-access views.

For the Direct3D 11.1 runtime, which is available starting with Windows?8, this value can range from 0 to D3D11_1_UAV_SLOT_COUNT - UAVStartSlot.

+

Pointer to an array of s that represent the unordered-access views to bind to the device. If this parameter is null and NumUAVs is 0, no unordered-access views are bound.

+

An array of append and consume buffer offsets. A value of -1 indicates to keep the current offset. Any other values set the hidden counter for that appendable and consumable UAV. pUAVInitialCounts is relevant only for UAVs that were created with either or specified when the UAV was created; otherwise, the argument is ignored.

+ +

For pixel shaders, the render targets and unordered-access views share the same resource slots when being written out. This means that UAVs must be given an offset so that they are placed in the slots after the render target views that are being bound.

Note??RTVs, DSV, and UAVs cannot be set independently; they all need to be set at the same time.

Two RTVs conflict if they share a subresource (and therefore share the same resource).

Two UAVs conflict if they share a subresource (and therefore share the same resource).

An RTV conflicts with a UAV if they share a subresource or share a bind point.

OMSetRenderTargetsAndUnorderedAccessViews operates properly in the following situations:

  1. NumViews != D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL and NumUAVs != D3D11_KEEP_UNORDERED_ACCESS_VIEWS

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • NumViews <= 8
    • UAVStartSlot >= NumViews
    • UAVStartSlot + NumUAVs <= 8
    • There must be no conflicts in the set of all ppRenderTargetViews and ppUnorderedAccessView.
    • ppDepthStencilView must match the render-target views. For more information about resource views, see Introduction to a Resource in Direct3D 11.

    OMSetRenderTargetsAndUnorderedAccessViews performs the following tasks:

    • Unbinds all currently bound conflicting resources (stream-output target resources (SOTargets), compute shader (CS) UAVs, shader-resource views (SRVs)).
    • Binds ppRenderTargetViews, ppDepthStencilView, and ppUnorderedAccessView.
  2. NumViews == D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL

    In this situation, OMSetRenderTargetsAndUnorderedAccessViews binds only UAVs.

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • UAVStartSlot + NumUAVs <= 8
    • There must be no conflicts in ppUnorderedAccessView.

    OMSetRenderTargetsAndUnorderedAccessViews unbinds the following items:

    • All RTVs in slots >= UAVStartSlot
    • All RTVs that conflict with any UAVs in ppUnorderedAccessView
    • All currently bound resources (SOTargets, CS UAVs, SRVs) that conflict with ppUnorderedAccessView

    OMSetRenderTargetsAndUnorderedAccessViews binds ppUnorderedAccessView.

    OMSetRenderTargetsAndUnorderedAccessViews ignores ppDepthStencilView, and the current depth-stencil view remains bound.

  3. NumUAVs == D3D11_KEEP_UNORDERED_ACCESS_VIEWS

    In this situation, OMSetRenderTargetsAndUnorderedAccessViews binds only RTVs and DSV.

    The following conditions must be true for OMSetRenderTargetsAndUnorderedAccessViews to succeed and for the runtime to pass the bind information to the driver:

    • NumViews <= 8
    • There must be no conflicts in ppRenderTargetViews.
    • ppDepthStencilView must match the render-target views. For more information about resource views, see Introduction to a Resource in Direct3D 11.

    OMSetRenderTargetsAndUnorderedAccessViews unbinds the following items:

    • All UAVs in slots < NumViews
    • All UAVs that conflict with any RTVs in ppRenderTargetViews
    • All currently bound resources (SOTargets, CS UAVs, SRVs) that conflict with ppRenderTargetViews

    OMSetRenderTargetsAndUnorderedAccessViews binds ppRenderTargetViews and ppDepthStencilView.

    OMSetRenderTargetsAndUnorderedAccessViews ignores UAVStartSlot.

Windows?Phone?8: This API is supported.

+
+ + ff476465 + void ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[In, Buffer, Optional] const void** ppRenderTargetViews,[In, Optional] ID3D11DepthStencilView* pDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[In, Buffer, Optional] const void** ppUnorderedAccessViews,[In, Buffer, Optional] const void* pUAVInitialCounts) + ID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews +
+ + +

Set the blend state of the output-merger stage.

+
+

Pointer to a blend-state interface (see ). Pass null for a default blend state. For more info about default blend state, see Remarks.

+

Array of blend factors, one for each RGBA component. The blend factors modulate values for the pixel shader, render target, or both. If you created the blend-state object with or , the blending stage uses the non-null array of blend factors. If you didn't create the blend-state object with or , the blending stage does not use the non-null array of blend factors; the runtime stores the blend factors, and you can later call to retrieve the blend factors. If you pass null, the runtime uses or stores a blend factor equal to { 1, 1, 1, 1 }.

+

32-bit sample coverage. The default value is 0xffffffff. See remarks.

+ +

Blend state is used by the output-merger stage to determine how to blend together two RGB pixel values and two alpha values. The two RGB pixel values and two alpha values are the RGB pixel value and alpha value that the pixel shader outputs and the RGB pixel value and alpha value already in the output render target. The blend option controls the data source that the blending stage uses to modulate values for the pixel shader, render target, or both. The blend operation controls how the blending stage mathematically combines these modulated values.

To create a blend-state interface, call .

Passing in null for the blend-state interface indicates to the runtime to set a default blending state. The following table indicates the default blending parameters.

StateDefault Value
AlphaToCoverageEnable
IndependentBlendEnable
RenderTarget[0].BlendEnable
RenderTarget[0].SrcBlend
RenderTarget[0].DestBlend
RenderTarget[0].BlendOp
RenderTarget[0].SrcBlendAlpha
RenderTarget[0].DestBlendAlpha
RenderTarget[0].BlendOpAlpha
RenderTarget[0].RenderTargetWriteMask

?

A sample mask determines which samples get updated in all the active render targets. The mapping of bits in a sample mask to samples in a multisample render target is the responsibility of an individual application. A sample mask is always applied; it is independent of whether multisampling is enabled, and does not depend on whether an application uses multisample render targets.

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476462 + void ID3D11DeviceContext::OMSetBlendState([In, Optional] ID3D11BlendState* pBlendState,[In, Optional] const SHARPDX_COLOR4* BlendFactor,[In] unsigned int SampleMask) + ID3D11DeviceContext::OMSetBlendState +
+ + +

Sets the depth-stencil state of the output-merger stage.

+
+

Pointer to a depth-stencil state interface (see ) to bind to the device. Set this to null to use the default state listed in .

+

Reference value to perform against when doing a depth-stencil test. See remarks.

+ +

To create a depth-stencil state interface, call .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476463 + void ID3D11DeviceContext::OMSetDepthStencilState([In, Optional] ID3D11DepthStencilState* pDepthStencilState,[In] unsigned int StencilRef) + ID3D11DeviceContext::OMSetDepthStencilState +
+ + +

Get references to the resources bound to the output-merger stage.

+
+

Number of render targets to retrieve.

+

Pointer to an array of s which represent render target views. Specify null for this parameter when retrieval of a render target is not needed.

+

Pointer to a , which represents a depth-stencil view. Specify null for this parameter when retrieval of the depth-stencil view is not needed.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476460 + void ID3D11DeviceContext::OMGetRenderTargets([In] unsigned int NumViews,[Out, Buffer, Optional] ID3D11RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D11DepthStencilView** ppDepthStencilView) + ID3D11DeviceContext::OMGetRenderTargets +
+ + +

Get references to the resources bound to the output-merger stage.

+
+

The number of render-target views to retrieve.

+

Pointer to an array of s, which represent render-target views. Specify null for this parameter when retrieval of render-target views is not required.

+

Pointer to a , which represents a depth-stencil view. Specify null for this parameter when retrieval of the depth-stencil view is not required.

+

Index into a zero-based array to begin retrieving unordered-access views (ranges from 0 to - 1). For pixel shaders UAVStartSlot should be equal to the number of render-target views that are bound.

+

Number of unordered-access views to return in ppUnorderedAccessViews. This number ranges from 0 to - UAVStartSlot.

+

Pointer to an array of s, which represent unordered-access views that are retrieved. Specify null for this parameter when retrieval of unordered-access views is not required.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476461 + void ID3D11DeviceContext::OMGetRenderTargetsAndUnorderedAccessViews([In] unsigned int NumRTVs,[Out, Buffer, Optional] ID3D11RenderTargetView** ppRenderTargetViews,[Out, Optional] ID3D11DepthStencilView** ppDepthStencilView,[In] unsigned int UAVStartSlot,[In] unsigned int NumUAVs,[Out, Buffer, Optional] ID3D11UnorderedAccessView** ppUnorderedAccessViews) + ID3D11DeviceContext::OMGetRenderTargetsAndUnorderedAccessViews +
+ + +

Get the blend state of the output-merger stage.

+
+

Address of a reference to a blend-state interface (see ).

+

Array of blend factors, one for each RGBA component.

+

Pointer to a sample mask.

+ +

The reference count of the returned interface will be incremented by one when the blend state is retrieved. Applications must release returned reference(s) when they are no longer needed, or else there will be a memory leak.

Windows?Phone?8: This API is supported.

+
+ + ff476458 + void ID3D11DeviceContext::OMGetBlendState([Out, Optional] ID3D11BlendState** ppBlendState,[Out, Optional] SHARPDX_COLOR4* BlendFactor,[Out, Optional] unsigned int* pSampleMask) + ID3D11DeviceContext::OMGetBlendState +
+ + +

Gets the depth-stencil state of the output-merger stage.

+
+

Address of a reference to a depth-stencil state interface (see ) to be filled with information from the device.

+

Pointer to the stencil reference value used in the depth-stencil test.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476459 + void ID3D11DeviceContext::OMGetDepthStencilState([Out, Optional] ID3D11DepthStencilState** ppDepthStencilState,[Out, Optional] unsigned int* pStencilRef) + ID3D11DeviceContext::OMGetDepthStencilState +
+ + + Gets or sets the blend factor. + + The blend factor. + + + + Gets or sets the blend sample mask. + + The blend sample mask. + + + + Gets or sets the state of the blend. + + The state of the blend. + + + + Gets or sets the depth stencil reference. + + The depth stencil reference. + + + + Gets or sets the state of the depth stencil. + + The state of the depth stencil. + + + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + + Get the array of {{viewports}} bound to the {{rasterizer stage}} + + An array of viewports (see ). + void RSGetViewports([InOut] int* NumViewports,[Out, Buffer, Optional] D3D10_VIEWPORT* pViewports) + ff476477 + void ID3D11DeviceContext::RSGetViewports([InOut] unsigned int* pNumViewports,[Out, Buffer, Optional] D3D11_VIEWPORT* pViewports) + ID3D11DeviceContext::RSGetViewports + + + + Get the array of {{viewports}} bound to the {{rasterizer stage}} + + An array of viewports (see ). + void RSGetViewports([InOut] int* NumViewports,[Out, Buffer, Optional] D3D10_VIEWPORT* pViewports) + ff476477 + void ID3D11DeviceContext::RSGetViewports([InOut] unsigned int* pNumViewports,[Out, Buffer, Optional] D3D11_VIEWPORT* pViewports) + ID3D11DeviceContext::RSGetViewports + + + + Get the array of {{scissor rectangles}} bound to the {{rasterizer stage}}. + + An array of scissor rectangles (see ). + void RSGetScissorRects([InOut] int* NumRects,[Out, Buffer, Optional] D3D10_RECT* pRects) + ff476475 + void ID3D11DeviceContext::RSGetScissorRects([InOut] unsigned int* pNumRects,[Out, Buffer, Optional] RECT* pRects) + ID3D11DeviceContext::RSGetScissorRects + + + + Get the array of {{scissor rectangles}} bound to the {{rasterizer stage}}. + + An array of scissor rectangles (see ). + void RSGetScissorRects([InOut] int* NumRects,[Out, Buffer, Optional] D3D10_RECT* pRects) + ff476475 + void ID3D11DeviceContext::RSGetScissorRects([InOut] unsigned int* pNumRects,[Out, Buffer, Optional] RECT* pRects) + ID3D11DeviceContext::RSGetScissorRects + + + + Binds a single scissor rectangle to the rasterizer stage. + + The left. + The top. + The right. + The bottom. + +

All scissor rects must be set atomically as one operation. Any scissor rects not defined by the call are disabled.

The scissor rectangles will only be used if ScissorEnable is set to true in the rasterizer state (see ).

Which scissor rectangle to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader (see shader semantic syntax). If a geometry shader does not make use of the SV_ViewportArrayIndex semantic then Direct3D will use the first scissor rectangle in the array.

Each scissor rectangle in the array corresponds to a viewport in an array of viewports (see ).

+
+ ff476478 + void ID3D11DeviceContext::RSSetScissorRects([In] unsigned int NumRects,[In, Buffer, Optional] const void* pRects) + ID3D11DeviceContext::RSSetScissorRects +
+ + + Binds a set of scissor rectangles to the rasterizer stage. + + The set of scissor rectangles to bind. + +

All scissor rects must be set atomically as one operation. Any scissor rects not defined by the call are disabled.

The scissor rectangles will only be used if ScissorEnable is set to true in the rasterizer state (see ).

Which scissor rectangle to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader (see shader semantic syntax). If a geometry shader does not make use of the SV_ViewportArrayIndex semantic then Direct3D will use the first scissor rectangle in the array.

Each scissor rectangle in the array corresponds to a viewport in an array of viewports (see ).

+
+ ff476478 + void ID3D11DeviceContext::RSSetScissorRects([In] unsigned int NumRects,[In, Buffer, Optional] const void* pRects) + ID3D11DeviceContext::RSSetScissorRects +
+ + + Binds a single viewport to the rasterizer stage. + + The x coordinate of the viewport. + The y coordinate of the viewport. + The width. + The height. + The min Z. + The max Z. + +

All viewports must be set atomically as one operation. Any viewports not defined by the call are disabled.

Which viewport to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader; if a geometry shader does not specify the semantic, Direct3D will use the first viewport in the array.

+
+ ff476480 + void ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports) + ID3D11DeviceContext::RSSetViewports +
+ + + Binds a single viewport to the rasterizer stage. + + The viewport. + +

All viewports must be set atomically as one operation. Any viewports not defined by the call are disabled.

Which viewport to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader; if a geometry shader does not specify the semantic, Direct3D will use the first viewport in the array.

+
+ ff476480 + void ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports) + ID3D11DeviceContext::RSSetViewports +
+ + + Binds a set of viewports to the rasterizer stage. + + The set of viewports to bind. + The number of viewport to set. + ff476480 + void ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports) + ID3D11DeviceContext::RSSetViewports +

All viewports must be set atomically as one operation. Any viewports not defined by the call are disabled.

Which viewport to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader; if a geometry shader does not specify the semantic, Direct3D will use the first viewport in the array.

+
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Set the rasterizer state for the rasterizer stage of the pipeline.

+
+ No documentation. + +

To create a rasterizer state interface, call .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476479 + void ID3D11DeviceContext::RSSetState([In, Optional] ID3D11RasterizerState* pRasterizerState) + ID3D11DeviceContext::RSSetState +
+ + +

Bind an array of viewports to the rasterizer stage of the pipeline.

+
+

Number of viewports to bind.

+

An array of structures to bind to the device. See the structure page for details about how the viewport size is dependent on the device feature level which has changed between Direct3D 11 and Direct3D 10.

+ +

All viewports must be set atomically as one operation. Any viewports not defined by the call are disabled.

Which viewport to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader; if a geometry shader does not specify the semantic, Direct3D will use the first viewport in the array.

Note??Even though you specify float values to the members of the structure for the pViewports array in a call to for feature levels 9_x, RSSetViewports uses DWORDs internally. Because of this behavior, when you use a negative top left corner for the viewport, the call to RSSetViewports for feature levels 9_x fails. This failure occurs because RSSetViewports for 9_x casts the floating point values into unsigned integers without validation, which results in integer overflow.

Windows?Phone?8: This API is supported.

+
+ + ff476480 + void ID3D11DeviceContext::RSSetViewports([In] unsigned int NumViewports,[In, Buffer, Optional] const void* pViewports) + ID3D11DeviceContext::RSSetViewports +
+ + +

Bind an array of scissor rectangles to the rasterizer stage.

+
+

Number of scissor rectangles to bind.

+

An array of scissor rectangles (see D3D11_RECT).

+ +

All scissor rects must be set atomically as one operation. Any scissor rects not defined by the call are disabled.

The scissor rectangles will only be used if ScissorEnable is set to true in the rasterizer state (see ).

Which scissor rectangle to use is determined by the SV_ViewportArrayIndex semantic output by a geometry shader (see shader semantic syntax). If a geometry shader does not make use of the SV_ViewportArrayIndex semantic then Direct3D will use the first scissor rectangle in the array.

Each scissor rectangle in the array corresponds to a viewport in an array of viewports (see ).

Windows?Phone?8: This API is supported.

+
+ + ff476478 + void ID3D11DeviceContext::RSSetScissorRects([In] unsigned int NumRects,[In, Buffer, Optional] const void* pRects) + ID3D11DeviceContext::RSSetScissorRects +
+ + +

Get the rasterizer state from the rasterizer stage of the pipeline.

+
+ No documentation. + +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476476 + void ID3D11DeviceContext::RSGetState([Out] ID3D11RasterizerState** ppRasterizerState) + ID3D11DeviceContext::RSGetState +
+ + +

Gets the array of viewports bound to the rasterizer stage.

+
+

A reference to a variable that, on input, specifies the number of viewports (ranges from 0 to D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) in the pViewports array; on output, the variable contains the actual number of viewports that are bound to the rasterizer stage. If pViewports is null, RSGetViewports fills the variable with the number of viewports currently bound.

Note??In some versions of the Windows SDK, a debug device will raise an exception if the input value in the variable to which pNumViewports points is greater than D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE even if pViewports is null. The regular runtime ignores the value in the variable to which pNumViewports points when pViewports is null. This behavior of a debug device might be corrected in a future release of the Windows SDK.

+

An array of structures for the viewports that are bound to the rasterizer stage. If the number of viewports (in the variable to which pNumViewports points) is greater than the actual number of viewports currently bound, unused elements of the array contain 0. For info about how the viewport size depends on the device feature level, which has changed between Direct3D 11 and Direct3D 10, see .

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476477 + void ID3D11DeviceContext::RSGetViewports([InOut] unsigned int* pNumViewports,[Out, Buffer, Optional] D3D11_VIEWPORT* pViewports) + ID3D11DeviceContext::RSGetViewports +
+ + +

Get the array of scissor rectangles bound to the rasterizer stage.

+
+

The number of scissor rectangles (ranges between 0 and D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) bound; set pRects to null to use pNumRects to see how many rectangles would be returned.

+

An array of scissor rectangles (see D3D11_RECT). If NumRects is greater than the number of scissor rects currently bound, then unused members of the array will contain 0.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476475 + void ID3D11DeviceContext::RSGetScissorRects([InOut] unsigned int* pNumRects,[Out, Buffer, Optional] RECT* pRects) + ID3D11DeviceContext::RSGetScissorRects +
+ + +

Get or sets the rasterizer state from the rasterizer stage of the pipeline.

+
+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476476 + RSGetState / RSSetState + RSGetState + void ID3D11DeviceContext::RSGetState([Out] ID3D11RasterizerState** ppRasterizerState) +
+ + +

A domain-shader interface manages an executable program (a domain shader) that controls the domain-shader stage.

+
+ +

The domain-shader interface has no methods; use HLSL to implement your shader functionality. All shaders are implemented from a common set of features referred to as the common-shader core..

To create a domain-shader interface, call . Before using a domain shader you must bind it to the device by calling .

This interface is defined in D3D11.h.

+
+ + ff476535 + ID3D11DomainShader + ID3D11DomainShader +
+ + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + A dynamic class linkage interface. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Encapsulates forward and inverse FFTs.

+
+ + ff476846 + ID3DX11FFT + ID3DX11FFT +
+ + + Initializes a new instance of the class. + + The device context used to create the FFT. + Information that describes the shape of the FFT data as well as the scaling factors that should be used for forward and inverse transforms. + + + + Initializes a new instance of the class. + + The device context used to create the FFT. + Information that describes the shape of the FFT data as well as the scaling factors that should be used for forward and inverse transforms. + Flag affecting the behavior of the FFT. + + + + Attaches buffers to an FFT context and performs any required precomputations. + + + The buffers must be no smaller than the corresponding buffer sizes returned by D3DX11CreateFFT*(). Temporary buffers can be shared between multiple contexts, though care should be taken not to concurrently execute multiple FFTs which share temp buffers. + + Temporary buffers to attach. + Buffers to hold precomputed data. + Returns one of the return codes described in the topic {{Direct3D 11 Return Codes}}. + HRESULT ID3DX11FFT::AttachBuffersAndPrecompute([In] int NumTempBuffers,[In, Buffer] const ID3D11UnorderedAccessView** ppTempBuffers,[In] int NumPrecomputeBuffers,[In, Buffer] const ID3D11UnorderedAccessView** ppPrecomputeBufferSizes) + + + + Creates a new one-dimensional complex FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + an interface reference. + HRESULT D3DX11CreateFFT1DComplex([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new one-dimensional complex FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Flag affecting the behavior of the FFT, can be 0 or a combination of flags from . + an interface reference. + HRESULT D3DX11CreateFFT1DComplex([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new one-dimensional real FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new one-dimensional real FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Flag affecting the behavior of the FFT, can be 0 or a combination of flags from . + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new two-dimensional complex FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new two-dimensional complex FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + Flag affecting the behavior of the FFT, can be 0 or a combination of flags from . + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new two-dimensional real FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new two-dimensional real FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + Flag affecting the behavior of the FFT, can be 0 or a combination of flags from . + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new three-dimensional complex FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + Length of the third dimension of the FFT. + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new three-dimensional complex FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + Length of the third dimension of the FFT. + Flag affecting the behavior of the FFT, can be 0 or a combination of flags from . + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new three-dimensional real FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + Length of the third dimension of the FFT. + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Creates a new three-dimensional real FFT. + + Pointer to the interface to use for the FFT. + Length of the first dimension of the FFT. + Length of the second dimension of the FFT. + Length of the third dimension of the FFT. + Flag affecting the behavior of the FFT, can be 0 or a combination of flags from . + an interface reference. + HRESULT D3DX11CreateFFT1DReal([None] ID3D11DeviceContext* pDeviceContext,[None] int X,[None] int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + + + + Performs a forward FFT. + + Pointer to onto the input buffer. + + Returns the computation in a temp buffers; in addition, the last buffer written to is returned. + + HRESULT ID3DX11FFT::ForwardTransform([In] const ID3D11UnorderedAccessView* pInputBuffer,[InOut] void** ppOutputBuffer) + + ForwardTransform can be called after buffers have been attached to the context using . The combination of pInputBuffer and *ppOuputBuffer can be one of the temp buffers.The format of complex data is interleaved components (for example, (Real0, Imag0), (Real1, Imag1) ... , and so on). Data is stored in row major order. + + + + + Performs an inverse FFT. + + Pointer to onto the input buffer. + + Returns the computation in a temp buffers; in addition, the last buffer written to is returned. + + HRESULT ID3DX11FFT::InverseTransform([In] const ID3D11UnorderedAccessView* pInputBuffer,[InOut] void** ppOutputBuffer) + + + + Performs a forward FFT. + + Pointer to onto the input buffer. + Buffer reference used as the output buffer. + Returns one of the return codes described in the topic Direct3D 11 Return Codes. + HRESULT ID3DX11FFT::ForwardTransform([In] const ID3D11UnorderedAccessView* pInputBuffer,[InOut] void** ppOutputBuffer) + + ForwardTransform can be called after buffers have been attached to the context using . The combination of pInputBuffer and *ppOuputBuffer can be one of the temp buffers.The format of complex data is interleaved components (for example, (Real0, Imag0), (Real1, Imag1) ... , and so on). Data is stored in row major order. + + + + + Performs an inverse FFT. + + Pointer to onto the input buffer. + Buffer reference used as the output buffer. + Returns one of the return codes described in the topic Direct3D 11 Return Codes. + HRESULT ID3DX11FFT::InverseTransform([In] const ID3D11UnorderedAccessView* pInputBuffer,[InOut] void** ppOutputBuffer) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the scale used for forward transforms.

+
+

The scale to use for forward transforms. Setting ForwardScale to 0 causes the default values of 1 to be used.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

SetForwardScale sets the scale used by .

+
+ + ff476852 + HRESULT ID3DX11FFT::SetForwardScale([In] float ForwardScale) + ID3DX11FFT::SetForwardScale +
+ + +

Gets the scale for forward transforms.

+
+

Scale for forward transforms.

+ + ff476849 + float ID3DX11FFT::GetForwardScale() + ID3DX11FFT::GetForwardScale +
+ + +

Sets the scale used for inverse transforms.

+
+

Scale used for inverse transforms. Setting InverseScale to 0 causes the default value of 1/N to be used, where N is the product of the transformed dimension lengths.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

SetInverseScale sets the scale used by .

+
+ + ff476853 + HRESULT ID3DX11FFT::SetInverseScale([In] float InverseScale) + ID3DX11FFT::SetInverseScale +
+ + +

Get the scale for inverse transforms.

+
+

Scale for inverse transforms.

+ + ff476850 + float ID3DX11FFT::GetInverseScale() + ID3DX11FFT::GetInverseScale +
+ + +

Attaches buffers to an FFT context and performs any required precomputations.

+
+

Number of buffers in ppTempBuffers.

+

A reference to an array of references for the temporary buffers to attach. The FFT object might use these temporary buffers for its algorithm.

+

Number of buffers in ppPrecomputeBuffers.

+

A reference to an array of references for the precompute buffers to attach. The FFT object might store precomputed data in these buffers.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

The structure is initialized by a call to one of the create-FFT functions (for example, ). For more create-FFT functions, see D3DCSX 11 Functions.

Use the info in to allocate raw buffers of the specified (or larger) sizes and then call the AttachBuffersAndPrecompute to register the buffers with the FFT object.

Although you can share temporary buffers between multiple device contexts, we recommend not to concurrently execute multiple FFT objects that share temporary buffers.

Some FFT algorithms benefit from precomputing sin and cos. The FFT object might store precomputed data in the user-supplied precompute buffers.

+
+ + ff476847 + HRESULT ID3DX11FFT::AttachBuffersAndPrecompute([In] unsigned int NumTempBuffers,[In, Buffer] const ID3D11UnorderedAccessView** ppTempBuffers,[In] unsigned int NumPrecomputeBuffers,[In, Buffer] const ID3D11UnorderedAccessView** ppPrecomputeBufferSizes) + ID3DX11FFT::AttachBuffersAndPrecompute +
+ + +

Attaches buffers to an FFT context and performs any required precomputations.

+
+

Number of buffers in ppTempBuffers.

+

A reference to an array of references for the temporary buffers to attach. The FFT object might use these temporary buffers for its algorithm.

+

Number of buffers in ppPrecomputeBuffers.

+

A reference to an array of references for the precompute buffers to attach. The FFT object might store precomputed data in these buffers.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

The structure is initialized by a call to one of the create-FFT functions (for example, ). For more create-FFT functions, see D3DCSX 11 Functions.

Use the info in to allocate raw buffers of the specified (or larger) sizes and then call the AttachBuffersAndPrecompute to register the buffers with the FFT object.

Although you can share temporary buffers between multiple device contexts, we recommend not to concurrently execute multiple FFT objects that share temporary buffers.

Some FFT algorithms benefit from precomputing sin and cos. The FFT object might store precomputed data in the user-supplied precompute buffers.

+
+ + ff476847 + HRESULT ID3DX11FFT::AttachBuffersAndPrecompute([In] unsigned int NumTempBuffers,[In, Buffer] const ID3D11UnorderedAccessView** ppTempBuffers,[In] unsigned int NumPrecomputeBuffers,[In, Buffer] const ID3D11UnorderedAccessView** ppPrecomputeBufferSizes) + ID3DX11FFT::AttachBuffersAndPrecompute +
+ + +

Performs a forward FFT.

+
+

Pointer to onto the input buffer.

+

Pointer to a reference. If *ppOutputBuffer is null, the computation will switch between temp buffers; in addition, the last buffer written to is stored at *ppOutputBuffer. Otherwise, *ppOutputBuffer is used as the output buffer (which might incur an extra copy).

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

ForwardTransform can be called after buffers have been attached to the context using . The combination of pInputBuffer and *ppOuputBuffer can be one of the temp buffers.

The format of complex data is interleaved components (for example, (Real0, Imag0), (Real1, Imag1) ... , and so on). Data is stored in row major order.

+
+ + ff476848 + HRESULT ID3DX11FFT::ForwardTransform([In] const ID3D11UnorderedAccessView* pInputBuffer,[InOut] void** ppOutputBuffer) + ID3DX11FFT::ForwardTransform +
+ + +

Performs an inverse FFT.

+
+

Pointer to onto the input buffer.

+

Pointer to a reference. If *ppOutput is null, then the computation will switch between temp buffers; in addition, the last buffer written to is stored at *ppOutput. Otherwise, *ppOutput is used as the output buffer (which might incur an extra copy).

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ + ff476851 + HRESULT ID3DX11FFT::InverseTransform([In] const ID3D11UnorderedAccessView* pInputBuffer,[InOut] void** ppOutputBuffer) + ID3DX11FFT::InverseTransform +
+ + + Gets the buffer requirements. + + The buffer requirements. + + + +

Gets or sets the scale for forward transforms.

+
+ + ff476849 + GetForwardScale / SetForwardScale + GetForwardScale + float ID3DX11FFT::GetForwardScale() +
+ + +

Get or sets the scale for inverse transforms.

+
+ + ff476850 + GetInverseScale / SetInverseScale + GetInverseScale + float ID3DX11FFT::GetInverseScale() +
+ + +

Optional flags that control the behavior of .

+
+ + ff476084 + D3D11_ASYNC_GETDATA_FLAG + D3D11_ASYNC_GETDATA_FLAG +
+ + + No documentation. + + + ff476084 + D3D11_ASYNC_GETDATA_DONOTFLUSH + D3D11_ASYNC_GETDATA_DONOTFLUSH + + + + None. + + + None + None + + + +

Identifies how to bind a resource to the pipeline.

+
+ +

In general, binding flags can be combined using a logical OR (except the constant-buffer flag); however, you should use a single flag to allow the device to optimize the resource usage.

This enumeration is used by a:

  • Buffer description when creating a buffer.
  • Texture description when creating a texture (see or or ).

A shader-resource buffer is NOT a constant buffer; rather, it is a texture or buffer resource that is bound to a shader, that contains texture or buffer data (it is not limited to a single element type in the buffer). A shader-resource buffer is created with the flag and is bound to the pipeline using one of these APIs: , , or . Furthermore, a shader-resource buffer cannot use the flag.

Note??The Direct3D 11.1 runtime, which is available starting with Windows?8, enables mapping dynamic constant buffers and shader resource views (SRVs) of dynamic buffers with . The Direct3D 11 and earlier runtimes limited mapping to vertex or index buffers. To determine if a Direct3D device supports these features, call with D3D11_FEATURE_D3D11_OPTIONS. CheckFeatureSupport fills members of a D3D11_FEATURE_DATA_D3D11_OPTIONS structure with the device's features. The relevant members here are MapNoOverwriteOnDynamicConstantBuffer and MapNoOverwriteOnDynamicBufferSRV.

+
+ + ff476085 + D3D11_BIND_FLAG + D3D11_BIND_FLAG +
+ + +

Bind a buffer as a vertex buffer to the input-assembler stage.

+
+ + ff476085 + D3D11_BIND_VERTEX_BUFFER + D3D11_BIND_VERTEX_BUFFER +
+ + +

Bind a buffer as an index buffer to the input-assembler stage.

+
+ + ff476085 + D3D11_BIND_INDEX_BUFFER + D3D11_BIND_INDEX_BUFFER +
+ + +

Bind a buffer as a constant buffer to a shader stage; this flag may NOT be combined with any other bind flag.

+
+ + ff476085 + D3D11_BIND_CONSTANT_BUFFER + D3D11_BIND_CONSTANT_BUFFER +
+ + +

Bind a buffer or texture to a shader stage; this flag cannot be used with the flag.

Note??The Direct3D 11.1 runtime, which is available starting with Windows?8, enables mapping dynamic constant buffers and shader resource views (SRVs) of dynamic buffers with . The Direct3D 11 and earlier runtimes limited mapping to vertex or index buffers. To determine if a Direct3D device supports these features, call with D3D11_FEATURE_D3D11_OPTIONS. CheckFeatureSupport fills members of a D3D11_FEATURE_DATA_D3D11_OPTIONS structure with the device's features. The relevant members here are MapNoOverwriteOnDynamicConstantBuffer and MapNoOverwriteOnDynamicBufferSRV.

+
+ + ff476085 + D3D11_BIND_SHADER_RESOURCE + D3D11_BIND_SHADER_RESOURCE +
+ + +

Bind an output buffer for the stream-output stage.

+
+ + ff476085 + D3D11_BIND_STREAM_OUTPUT + D3D11_BIND_STREAM_OUTPUT +
+ + +

Bind a texture as a render target for the output-merger stage.

+
+ + ff476085 + D3D11_BIND_RENDER_TARGET + D3D11_BIND_RENDER_TARGET +
+ + +

Bind a texture as a depth-stencil target for the output-merger stage.

+
+ + ff476085 + D3D11_BIND_DEPTH_STENCIL + D3D11_BIND_DEPTH_STENCIL +
+ + +

Bind an unordered access resource.

+
+ + ff476085 + D3D11_BIND_UNORDERED_ACCESS + D3D11_BIND_UNORDERED_ACCESS +
+ + + None. + + + None + None + + + +

RGB or alpha blending operation.

+
+ +

The runtime implements RGB blending and alpha blending separately. Therefore, blend state requires separate blend operations for RGB data and alpha data. These blend operations are specified in a blend description. The two sources ?source 1 and source 2? are shown in the blending block diagram.

Blend state is used by the output-merger stage to determine how to blend together two RGB pixel values and two alpha values. The two RGB pixel values and two alpha values are the RGB pixel value and alpha value that the pixel shader outputs and the RGB pixel value and alpha value already in the output render target. The blend option controls the data source that the blending stage uses to modulate values for the pixel shader, render target, or both. The blend operation controls how the blending stage mathematically combines these modulated values.

+
+ + ff476088 + D3D11_BLEND_OP + D3D11_BLEND_OP +
+ + +

Add source 1 and source 2.

+
+ + ff476088 + D3D11_BLEND_OP_ADD + D3D11_BLEND_OP_ADD +
+ + +

Subtract source 1 from source 2.

+
+ + ff476088 + D3D11_BLEND_OP_SUBTRACT + D3D11_BLEND_OP_SUBTRACT +
+ + +

Subtract source 2 from source 1.

+
+ + ff476088 + D3D11_BLEND_OP_REV_SUBTRACT + D3D11_BLEND_OP_REV_SUBTRACT +
+ + +

Find the minimum of source 1 and source 2.

+
+ + ff476088 + D3D11_BLEND_OP_MIN + D3D11_BLEND_OP_MIN +
+ + +

Find the maximum of source 1 and source 2.

+
+ + ff476088 + D3D11_BLEND_OP_MAX + D3D11_BLEND_OP_MAX +
+ + +

Describes the blend state that you use in a call to to create a blend-state object.

+
+ +

Here are the default values for blend state.

StateDefault Value
AlphaToCoverageEnable
IndependentBlendEnable
RenderTarget[0].BlendEnable
RenderTarget[0].SrcBlend
RenderTarget[0].DestBlend
RenderTarget[0].BlendOp
RenderTarget[0].SrcBlendAlpha
RenderTarget[0].DestBlendAlpha
RenderTarget[0].BlendOpAlpha
RenderTarget[0].RenderTargetWriteMask

?

Note?? is identical to .

If the driver type is set to , the feature level is set to less than or equal to , and the pixel format of the render target is set to , , or , the display device performs the blend in standard RGB (sRGB) space and not in linear space. However, if the feature level is set to greater than , the display device performs the blend in linear space, which is ideal.

+
+ + ff476087 + D3D11_BLEND + D3D11_BLEND +
+ + + No documentation. + + + ff476087 + D3D11_BLEND_ZERO + D3D11_BLEND_ZERO + + + + No documentation. + + + ff476087 + D3D11_BLEND_ONE + D3D11_BLEND_ONE + + + + No documentation. + + + ff476087 + D3D11_BLEND_SRC_COLOR + D3D11_BLEND_SRC_COLOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_SRC_COLOR + D3D11_BLEND_INV_SRC_COLOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_SRC_ALPHA + D3D11_BLEND_SRC_ALPHA + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_SRC_ALPHA + D3D11_BLEND_INV_SRC_ALPHA + + + + No documentation. + + + ff476087 + D3D11_BLEND_DEST_ALPHA + D3D11_BLEND_DEST_ALPHA + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_DEST_ALPHA + D3D11_BLEND_INV_DEST_ALPHA + + + + No documentation. + + + ff476087 + D3D11_BLEND_DEST_COLOR + D3D11_BLEND_DEST_COLOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_DEST_COLOR + D3D11_BLEND_INV_DEST_COLOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_SRC_ALPHA_SAT + D3D11_BLEND_SRC_ALPHA_SAT + + + + No documentation. + + + ff476087 + D3D11_BLEND_BLEND_FACTOR + D3D11_BLEND_BLEND_FACTOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_BLEND_FACTOR + D3D11_BLEND_INV_BLEND_FACTOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_SRC1_COLOR + D3D11_BLEND_SRC1_COLOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_SRC1_COLOR + D3D11_BLEND_INV_SRC1_COLOR + + + + No documentation. + + + ff476087 + D3D11_BLEND_SRC1_ALPHA + D3D11_BLEND_SRC1_ALPHA + + + + No documentation. + + + ff476087 + D3D11_BLEND_INV_SRC1_ALPHA + D3D11_BLEND_INV_SRC1_ALPHA + + + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

These flags are used by functions which operate on one or more channels in a texture.

+
+ + ff476302 + D3DX11_CHANNEL_FLAG + D3DX11_CHANNEL_FLAG +
+ + +

Indicates the red channel should be used.

+
+ + ff476302 + D3DX11_CHANNEL_RED + D3DX11_CHANNEL_RED +
+ + +

Indicates the blue channel should be used.

+
+ + ff476302 + D3DX11_CHANNEL_BLUE + D3DX11_CHANNEL_BLUE +
+ + +

Indicates the green channel should be used.

+
+ + ff476302 + D3DX11_CHANNEL_GREEN + D3DX11_CHANNEL_GREEN +
+ + +

Indicates the alpha channel should be used.

+
+ + ff476302 + D3DX11_CHANNEL_ALPHA + D3DX11_CHANNEL_ALPHA +
+ + +

Indicates the luminaces of the red, green, and blue channels should be used.

+
+ + ff476302 + D3DX11_CHANNEL_LUMINANCE + D3DX11_CHANNEL_LUMINANCE +
+ + + None. + + + None + None + + + +

Identify which components of each pixel of a render target are writable during blending.

+
+ +

These flags can be combined with a bitwise OR.

+
+ + ff476100 + D3D11_COLOR_WRITE_ENABLE + D3D11_COLOR_WRITE_ENABLE +
+ + +

Allow data to be stored in the red component.

+
+ + ff476100 + D3D11_COLOR_WRITE_ENABLE_RED + D3D11_COLOR_WRITE_ENABLE_RED +
+ + +

Allow data to be stored in the green component.

+
+ + ff476100 + D3D11_COLOR_WRITE_ENABLE_GREEN + D3D11_COLOR_WRITE_ENABLE_GREEN +
+ + +

Allow data to be stored in the blue component.

+
+ + ff476100 + D3D11_COLOR_WRITE_ENABLE_BLUE + D3D11_COLOR_WRITE_ENABLE_BLUE +
+ + +

Allow data to be stored in the alpha component.

+
+ + ff476100 + D3D11_COLOR_WRITE_ENABLE_ALPHA + D3D11_COLOR_WRITE_ENABLE_ALPHA +
+ + +

Allow data to be stored in all components.

+
+ + ff476100 + D3D11_COLOR_WRITE_ENABLE_ALL + D3D11_COLOR_WRITE_ENABLE_ALL +
+ + +

Comparison options.

+
+ +

A comparison option determines whether how the runtime compares source (new) data against destination (existing) data before storing the new data. The comparison option is declared in a description before an object is created. The API allows you to set a comparison option for a depth-stencil buffer (see ), depth-stencil operations (see ), or sampler state (see ).

+
+ + ff476101 + D3D11_COMPARISON_FUNC + D3D11_COMPARISON_FUNC +
+ + +

Never pass the comparison.

+
+ + ff476101 + D3D11_COMPARISON_NEVER + D3D11_COMPARISON_NEVER +
+ + +

If the source data is less than the destination data, the comparison passes.

+
+ + ff476101 + D3D11_COMPARISON_LESS + D3D11_COMPARISON_LESS +
+ + +

If the source data is equal to the destination data, the comparison passes.

+
+ + ff476101 + D3D11_COMPARISON_EQUAL + D3D11_COMPARISON_EQUAL +
+ + +

If the source data is less than or equal to the destination data, the comparison passes.

+
+ + ff476101 + D3D11_COMPARISON_LESS_EQUAL + D3D11_COMPARISON_LESS_EQUAL +
+ + +

If the source data is greater than the destination data, the comparison passes.

+
+ + ff476101 + D3D11_COMPARISON_GREATER + D3D11_COMPARISON_GREATER +
+ + +

If the source data is not equal to the destination data, the comparison passes.

+
+ + ff476101 + D3D11_COMPARISON_NOT_EQUAL + D3D11_COMPARISON_NOT_EQUAL +
+ + +

If the source data is greater than or equal to the destination data, the comparison passes.

+
+ + ff476101 + D3D11_COMPARISON_GREATER_EQUAL + D3D11_COMPARISON_GREATER_EQUAL +
+ + +

Always pass the comparison.

+
+ + ff476101 + D3D11_COMPARISON_ALWAYS + D3D11_COMPARISON_ALWAYS +
+ + +

Unordered resource support options for a compute shader resource (see ).

+
+ + ff476135 + D3D11_FORMAT_SUPPORT2 + D3D11_FORMAT_SUPPORT2 +
+ + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_ADD + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_BITWISE_OPS + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_COMPARE_STORE_OR_COMPARE_EXCHANGE + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_EXCHANGE + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_SIGNED_MIN_OR_MAX + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX + D3D11_FORMAT_SUPPORT2_UAV_ATOMIC_UNSIGNED_MIN_OR_MAX + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD + D3D11_FORMAT_SUPPORT2_UAV_TYPED_LOAD + + + + No documentation. + + + ff476135 + D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE + D3D11_FORMAT_SUPPORT2_UAV_TYPED_STORE + + + + None. + + + None + None + + + +

Options for performance counters.

+
+ +

Independent hardware vendors may define their own set of performance counters for their devices, by giving the enumeration value a number that is greater than the value for .

This enumeration is used by and .

+
+ + ff476102 + D3D11_COUNTER + D3D11_COUNTER +
+ + +

Define a performance counter that is dependent on the hardware device.

+
+ + ff476102 + D3D11_COUNTER_DEVICE_DEPENDENT_0 + D3D11_COUNTER_DEVICE_DEPENDENT_0 +
+ + +

Data type of a performance counter.

+
+ +

These flags are an output parameter in .

+
+ + ff476105 + D3D11_COUNTER_TYPE + D3D11_COUNTER_TYPE +
+ + +

32-bit floating point.

+
+ + ff476105 + D3D11_COUNTER_TYPE_FLOAT32 + D3D11_COUNTER_TYPE_FLOAT32 +
+ + +

16-bit unsigned integer.

+
+ + ff476105 + D3D11_COUNTER_TYPE_UINT16 + D3D11_COUNTER_TYPE_UINT16 +
+ + +

32-bit unsigned integer.

+
+ + ff476105 + D3D11_COUNTER_TYPE_UINT32 + D3D11_COUNTER_TYPE_UINT32 +
+ + +

64-bit unsigned integer.

+
+ + ff476105 + D3D11_COUNTER_TYPE_UINT64 + D3D11_COUNTER_TYPE_UINT64 +
+ + +

Specifies the types of CPU access allowed for a resource.

+
+ +

This enumeration is used in , , , .

Applications may combine one or more of these flags with a logical OR. When possible, create resources with no CPU access flags, as this enables better resource optimization.

The cannot be used when creating resources with D3D11_CPU_ACCESS flags.

+
+ + ff476106 + D3D11_CPU_ACCESS_FLAG + D3D11_CPU_ACCESS_FLAG +
+ + +

The resource is to be mappable so that the CPU can change its contents. Resources created with this flag cannot be set as outputs of the pipeline and must be created with either dynamic or staging usage (see ).

+
+ + ff476106 + D3D11_CPU_ACCESS_WRITE + D3D11_CPU_ACCESS_WRITE +
+ + +

The resource is to be mappable so that the CPU can read its contents. Resources created with this flag cannot be set as either inputs or outputs to the pipeline and must be created with staging usage (see ).

+
+ + ff476106 + D3D11_CPU_ACCESS_READ + D3D11_CPU_ACCESS_READ +
+ + + None. + + + None + None + + + +

Indicates triangles facing a particular direction are not drawn.

+
+ +

This enumeration is part of a rasterizer-state object description (see ).

+
+ + ff476108 + D3D11_CULL_MODE + D3D11_CULL_MODE +
+ + +

Always draw all triangles.

+
+ + ff476108 + D3D11_CULL_NONE + D3D11_CULL_NONE +
+ + +

Do not draw triangles that are front-facing.

+
+ + ff476108 + D3D11_CULL_FRONT + D3D11_CULL_FRONT +
+ + +

Do not draw triangles that are back-facing.

+
+ + ff476108 + D3D11_CULL_BACK + D3D11_CULL_BACK +
+ + + No documentation. + + + D3D11_DEBUG_FEATURE_FLAGS + D3D11_DEBUG_FEATURE_FLAGS + + + + No documentation. + + + D3D11_DEBUG_FEATURE_FLUSH_PER_RENDER_OP + D3D11_DEBUG_FEATURE_FLUSH_PER_RENDER_OP + + + + No documentation. + + + D3D11_DEBUG_FEATURE_FINISH_PER_RENDER_OP + D3D11_DEBUG_FEATURE_FINISH_PER_RENDER_OP + + + + No documentation. + + + D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP + D3D11_DEBUG_FEATURE_PRESENT_PER_RENDER_OP + + + +

Specifies the parts of the depth stencil to clear.

+
+ +

These flags are used when calling ; the flags can be combined with a bitwise OR.

+
+ + ff476099 + D3D11_CLEAR_FLAG + D3D11_CLEAR_FLAG +
+ + +

Clear the depth buffer.

+
+ + ff476099 + D3D11_CLEAR_DEPTH + D3D11_CLEAR_DEPTH +
+ + +

Clear the stencil buffer.

+
+ + ff476099 + D3D11_CLEAR_STENCIL + D3D11_CLEAR_STENCIL +
+ + +

Specifies how to access a resource used in a depth-stencil view.

+
+ +

This enumeration is used in to create a depth-stencil view.

+
+ + ff476115 + D3D11_DSV_DIMENSION + D3D11_DSV_DIMENSION +
+ + +

is not a valid value for and is not used.

+
+ + ff476115 + D3D11_DSV_DIMENSION_UNKNOWN + D3D11_DSV_DIMENSION_UNKNOWN +
+ + +

The resource will be accessed as a 1D texture.

+
+ + ff476115 + D3D11_DSV_DIMENSION_TEXTURE1D + D3D11_DSV_DIMENSION_TEXTURE1D +
+ + +

The resource will be accessed as an array of 1D textures.

+
+ + ff476115 + D3D11_DSV_DIMENSION_TEXTURE1DARRAY + D3D11_DSV_DIMENSION_TEXTURE1DARRAY +
+ + +

The resource will be accessed as a 2D texture.

+
+ + ff476115 + D3D11_DSV_DIMENSION_TEXTURE2D + D3D11_DSV_DIMENSION_TEXTURE2D +
+ + +

The resource will be accessed as an array of 2D textures.

+
+ + ff476115 + D3D11_DSV_DIMENSION_TEXTURE2DARRAY + D3D11_DSV_DIMENSION_TEXTURE2DARRAY +
+ + +

The resource will be accessed as a 2D texture with multisampling.

+
+ + ff476115 + D3D11_DSV_DIMENSION_TEXTURE2DMS + D3D11_DSV_DIMENSION_TEXTURE2DMS +
+ + +

The resource will be accessed as an array of 2D textures with multisampling.

+
+ + ff476115 + D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY + D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY +
+ + +

Depth-stencil view options.

+
+ +

This enumeration is used by .

Limiting a depth-stencil buffer to read-only access allows more than one depth-stencil view to be bound to the pipeline simultaneously, since it is not possible to have a read/write conflicts between separate views.

+
+ + ff476116 + D3D11_DSV_FLAG + D3D11_DSV_FLAG +
+ + +

Indicates that depth values are read only.

+
+ + ff476116 + D3D11_DSV_READ_ONLY_DEPTH + D3D11_DSV_READ_ONLY_DEPTH +
+ + +

Indicates that stencil values are read only.

+
+ + ff476116 + D3D11_DSV_READ_ONLY_STENCIL + D3D11_DSV_READ_ONLY_STENCIL +
+ + + None. + + + None + None + + + +

Identify the portion of a depth-stencil buffer for writing depth data.

+
+ + ff476113 + D3D11_DEPTH_WRITE_MASK + D3D11_DEPTH_WRITE_MASK +
+ + +

Turn off writes to the depth-stencil buffer.

+
+ + ff476113 + D3D11_DEPTH_WRITE_MASK_ZERO + D3D11_DEPTH_WRITE_MASK_ZERO +
+ + +

Turn on writes to the depth-stencil buffer.

+
+ + ff476113 + D3D11_DEPTH_WRITE_MASK_ALL + D3D11_DEPTH_WRITE_MASK_ALL +
+ + +

Device context options.

+
+ +

This enumeration is used by .

+
+ + ff476114 + D3D11_DEVICE_CONTEXT_TYPE + D3D11_DEVICE_CONTEXT_TYPE +
+ + +

The device context is an immediate context.

+
+ + ff476114 + D3D11_DEVICE_CONTEXT_IMMEDIATE + D3D11_DEVICE_CONTEXT_IMMEDIATE +
+ + +

The device context is a deferred context.

+
+ + ff476114 + D3D11_DEVICE_CONTEXT_DEFERRED + D3D11_DEVICE_CONTEXT_DEFERRED +
+ + +

Describes parameters that are used to create a device.

+
+ +

Device creation flags are used by and .

An application might dynamically create (and destroy) threads to improve performance especially on a machine with multiple CPU cores. There may be cases, however, when an application needs to prevent extra threads from being created. This can happen when you want to simplify debugging, profile code or develop a tool for instance. For these cases, use to request that the runtime and video driver not create any additional threads that might interfere with the application.

+
+ + ff476107 + D3D11_CREATE_DEVICE_FLAG + D3D11_CREATE_DEVICE_FLAG +
+ + +

Use this flag if your application will only call methods of Direct3D?11 interfaces from a single thread. By default, the object is thread-safe. By using this flag, you can increase performance. However, if you use this flag and your application calls methods of Direct3D?11 interfaces from multiple threads, undefined behavior might result.

+
+ + ff476107 + D3D11_CREATE_DEVICE_SINGLETHREADED + D3D11_CREATE_DEVICE_SINGLETHREADED +
+ + +

Creates a device that supports the debug layer.

To use this flag, you must have D3D11*SDKLayers.dll installed; otherwise, device creation fails. To get D3D11_1SDKLayers.dll, install the SDK for Windows?8.

+
+ + ff476107 + D3D11_CREATE_DEVICE_DEBUG + D3D11_CREATE_DEVICE_DEBUG +
+ + +

Note??This flag is not supported in Direct3D?11.

+
+ + ff476107 + D3D11_CREATE_DEVICE_SWITCH_TO_REF + D3D11_CREATE_DEVICE_SWITCH_TO_REF +
+ + +

Prevents multiple threads from being created. When this flag is used with a Windows Advanced Rasterization Platform (WARP) device, no additional threads will be created by WARP and all rasterization will occur on the calling thread. This flag is not recommended for general use. See remarks.

+
+ + ff476107 + D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS + D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS +
+ + +

Required for Direct2D interoperability with Direct3D resources.

+
+ + ff476107 + D3D11_CREATE_DEVICE_BGRA_SUPPORT + D3D11_CREATE_DEVICE_BGRA_SUPPORT +
+ + + None. + + + None + None + + + +

FFT creation flags.

+
+ + ff476309 + D3DX11_FFT_CREATE_FLAG + D3DX11_FFT_CREATE_FLAG +
+ + +

Do not AddRef or Release temp and precompute buffers, caller is responsible for holding references to these buffers.

+
+ + ff476309 + D3DX11_FFT_CREATE_FLAG_NO_PRECOMPUTE_BUFFERS + D3DX11_FFT_CREATE_FLAG_NO_PRECOMPUTE_BUFFERS +
+ + + None. + + + None + None + + + +

FFT data types.

+
+ + ff476310 + D3DX11_FFT_DATA_TYPE + D3DX11_FFT_DATA_TYPE +
+ + +

Real numbers.

+
+ + ff476310 + D3DX11_FFT_DATA_TYPE_REAL + D3DX11_FFT_DATA_TYPE_REAL +
+ + +

Complex numbers.

+
+ + ff476310 + D3DX11_FFT_DATA_TYPE_COMPLEX + D3DX11_FFT_DATA_TYPE_COMPLEX +
+ + +

Number of dimensions for FFT data.

+
+ + ff476312 + D3DX11_FFT_DIM_MASK + D3DX11_FFT_DIM_MASK +
+ + +

One dimension.

+
+ + ff476312 + D3DX11_FFT_DIM_MASK_1D + D3DX11_FFT_DIM_MASK_1D +
+ + +

Two dimensions.

+
+ + ff476312 + D3DX11_FFT_DIM_MASK_2D + D3DX11_FFT_DIM_MASK_2D +
+ + +

Three dimensions.

+
+ + ff476312 + D3DX11_FFT_DIM_MASK_3D + D3DX11_FFT_DIM_MASK_3D +
+ + +

Direct3D 11 feature options.

+
+ +

This enumeration is used when querying a driver about support for these features by calling . Each value in this enumeration has a corresponding data structure that is required to be passed to the pFeatureSupportData parameter of .

The following table shows the structures associated with each enumeration value.

EnumerantAssociated Structure
D3D11_FEATURE_D3D11_OPTIONS D3D11_FEATURE_DATA_D3D11_OPTIONS
D3D11_FEATURE_ARCHITECTURE_INFO D3D11_FEATURE_DATA_ARCHITECTURE_INFO
D3D11_FEATURE_D3D9_OPTIONS D3D11_FEATURE_DATA_D3D9_OPTIONS
D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT
D3D11_FEATURE_D3D9_SHADOW_SUPPORT D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT
D3D11_FEATURE_D3D11_OPTIONS1 D3D11_FEATURE_DATA_D3D11_OPTIONS1
D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT
D3D11_FEATURE_MARKER_SUPPORT + D3D11_FEATURE_DATA_MARKER_SUPPORT
D3D11_FEATURE_D3D9_OPTIONS1 D3D11_FEATURE_DATA_D3D9_OPTIONS1

?

+
+ + ff476124 + D3D11_FEATURE + D3D11_FEATURE +
+ + +

The driver supports multithreading. To see an example of testing a driver for multithread support, see How To: Check for Driver Support.

+
+ + ff476124 + D3D11_FEATURE_THREADING + D3D11_FEATURE_THREADING +
+ + +

Supports the use of the double-precision shaders in HLSL.

+
+ + ff476124 + D3D11_FEATURE_DOUBLES + D3D11_FEATURE_DOUBLES +
+ + +

Supports the formats in .

+
+ + ff476124 + D3D11_FEATURE_FORMAT_SUPPORT + D3D11_FEATURE_FORMAT_SUPPORT +
+ + +

Supports the formats in .

+
+ + ff476124 + D3D11_FEATURE_FORMAT_SUPPORT2 + D3D11_FEATURE_FORMAT_SUPPORT2 +
+ + +

Supports compute shaders and raw and structured buffers.

+
+ + ff476124 + D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS + D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS +
+ + +

Determines the fill mode to use when rendering triangles.

+
+ +

This enumeration is part of a rasterizer-state object description (see ).

+
+ + ff476131 + D3D11_FILL_MODE + D3D11_FILL_MODE +
+ + +

Draw lines connecting the vertices. Adjacent vertices are not drawn.

+
+ + ff476131 + D3D11_FILL_WIREFRAME + D3D11_FILL_WIREFRAME +
+ + +

Fill the triangles formed by the vertices. Adjacent vertices are not drawn.

+
+ + ff476131 + D3D11_FILL_SOLID + D3D11_FILL_SOLID +
+ + +

Filtering options during texture sampling.

+
+ +

Note??If you use different filter types for min versus mag filter, undefined behavior occurs in certain cases where the choice between whether magnification or minification happens is ambiguous. To prevent this undefined behavior, use filter modes that use similar filter operations for both min and mag (or use anisotropic filtering, which avoids the issue as well).

During texture sampling, one or more texels are read and combined (this is calling filtering) to produce a single value. Point sampling reads a single texel while linear sampling reads two texels (endpoints) and linearly interpolates a third value between the endpoints.

HLSL texture-sampling functions also support comparison filtering during texture sampling. Comparison filtering compares each sampled texel against a comparison value. The boolean result is blended the same way that normal texture filtering is blended.

You can use HLSL intrinsic texture-sampling functions that implement texture filtering only or companion functions that use texture filtering with comparison filtering.

Texture Sampling FunctionTexture Sampling Function with Comparison Filtering
samplesamplecmp or samplecmplevelzero

?

Comparison filters only work with textures that have the following DXGI formats: R32_FLOAT_X8X24_TYPELESS, R32_FLOAT, R24_UNORM_X8_TYPELESS, R16_UNORM.

+
+ + ff476132 + D3D11_FILTER + D3D11_FILTER +
+ + +

Use point sampling for minification, magnification, and mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_MAG_MIP_POINT + D3D11_FILTER_MIN_MAG_MIP_POINT +
+ + +

Use point sampling for minification and magnification; use linear interpolation for mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR + D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR +
+ + +

Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT + D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT +
+ + +

Use point sampling for minification; use linear interpolation for magnification and mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR + D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR +
+ + +

Use linear interpolation for minification; use point sampling for magnification and mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT + D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT +
+ + +

Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR + D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR +
+ + +

Use linear interpolation for minification and magnification; use point sampling for mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT + D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT +
+ + +

Use linear interpolation for minification, magnification, and mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_MIN_MAG_MIP_LINEAR + D3D11_FILTER_MIN_MAG_MIP_LINEAR +
+ + +

Use anisotropic interpolation for minification, magnification, and mip-level sampling.

+
+ + ff476132 + D3D11_FILTER_ANISOTROPIC + D3D11_FILTER_ANISOTROPIC +
+ + +

Use point sampling for minification, magnification, and mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT +
+ + +

Use point sampling for minification and magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR + D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR +
+ + +

Use point sampling for minification; use linear interpolation for magnification; use point sampling for mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT +
+ + +

Use point sampling for minification; use linear interpolation for magnification and mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR + D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR +
+ + +

Use linear interpolation for minification; use point sampling for magnification and mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT +
+ + +

Use linear interpolation for minification; use point sampling for magnification; use linear interpolation for mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR + D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR +
+ + +

Use linear interpolation for minification and magnification; use point sampling for mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT + D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT +
+ + +

Use linear interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR + D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR +
+ + +

Use anisotropic interpolation for minification, magnification, and mip-level sampling. Compare the result to the comparison value.

+
+ + ff476132 + D3D11_FILTER_COMPARISON_ANISOTROPIC + D3D11_FILTER_COMPARISON_ANISOTROPIC +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Texture filtering flags.

+
+ +

D3DX11 automatically performs gamma correction (to convert color data from RGB space to standard RGB space) when loading texture data. This is automatically done for instance when RGB data is loaded from a .png file into an sRGB texture. Use the SRGB filter flags to indicate if the data does not need to be converted into sRGB space.

+
+ + ff476313 + D3DX11_FILTER_FLAG + D3DX11_FILTER_FLAG +
+ + +

No scaling or filtering will take place. Pixels outside the bounds of the source image are assumed to be transparent black.

+
+ + ff476313 + D3DX11_FILTER_NONE + D3DX11_FILTER_NONE +
+ + +

Each destination pixel is computed by sampling the nearest pixel from the source image.

+
+ + ff476313 + D3DX11_FILTER_POINT + D3DX11_FILTER_POINT +
+ + +

Each destination pixel is computed by sampling the four nearest pixels from the source image. This filter works best when the scale on both axes is less than two.

+
+ + ff476313 + D3DX11_FILTER_LINEAR + D3DX11_FILTER_LINEAR +
+ + +

Every pixel in the source image contributes equally to the destination image. This is the slowest of the filters.

+
+ + ff476313 + D3DX11_FILTER_TRIANGLE + D3DX11_FILTER_TRIANGLE +
+ + +

Each pixel is computed by averaging a 2x2(x2) box of pixels from the source image. This filter works only when the dimensions of the destination are half those of the source, as is the case with mipmaps.

+
+ + ff476313 + D3DX11_FILTER_BOX + D3DX11_FILTER_BOX +
+ + +

Pixels off the edge of the texture on the u-axis should be mirrored, not wrapped.

+
+ + ff476313 + D3DX11_FILTER_MIRROR_U + D3DX11_FILTER_MIRROR_U +
+ + +

Pixels off the edge of the texture on the v-axis should be mirrored, not wrapped.

+
+ + ff476313 + D3DX11_FILTER_MIRROR_V + D3DX11_FILTER_MIRROR_V +
+ + +

Pixels off the edge of the texture on the w-axis should be mirrored, not wrapped.

+
+ + ff476313 + D3DX11_FILTER_MIRROR_W + D3DX11_FILTER_MIRROR_W +
+ + +

Specifying this flag is the same as specifying the , , and flags.

+
+ + ff476313 + D3DX11_FILTER_MIRROR + D3DX11_FILTER_MIRROR +
+ + +

The resulting image must be dithered using a 4x4 ordered dither algorithm. This happens when converting from one format to another.

+
+ + ff476313 + D3DX11_FILTER_DITHER + D3DX11_FILTER_DITHER +
+ + +

Do diffuse dithering on the image when changing from one format to another.

+
+ + ff476313 + D3DX11_FILTER_DITHER_DIFFUSION + D3DX11_FILTER_DITHER_DIFFUSION +
+ + +

Input data is in standard RGB (sRGB) color space. See remarks.

+
+ + ff476313 + D3DX11_FILTER_SRGB_IN + D3DX11_FILTER_SRGB_IN +
+ + +

Output data is in standard RGB (sRGB) color space. See remarks.

+
+ + ff476313 + D3DX11_FILTER_SRGB_OUT + D3DX11_FILTER_SRGB_OUT +
+ + +

Same as specifying | . See remarks.

+
+ + ff476313 + D3DX11_FILTER_SRGB + D3DX11_FILTER_SRGB +
+ + +

Types of magnification or minification sampler filters.

+
+ + ff476133 + D3D11_FILTER_TYPE + D3D11_FILTER_TYPE +
+ + +

Point filtering used as a texture magnification or minification filter. The texel with coordinates nearest to the desired pixel value is used. The texture filter to be used between mipmap levels is nearest-point mipmap filtering. The rasterizer uses the color from the texel of the nearest mipmap texture.

+
+ + ff476133 + D3D11_FILTER_TYPE_POINT + D3D11_FILTER_TYPE_POINT +
+ + +

Bilinear interpolation filtering used as a texture magnification or minification filter. A weighted average of a 2 x 2 area of texels surrounding the desired pixel is used. The texture filter to use between mipmap levels is trilinear mipmap interpolation. The rasterizer linearly interpolates pixel color, using the texels of the two nearest mipmap textures.

+
+ + ff476133 + D3D11_FILTER_TYPE_LINEAR + D3D11_FILTER_TYPE_LINEAR +
+ + +

Which resources are supported for a given format and given device (see and ).

+
+ + ff476134 + D3D11_FORMAT_SUPPORT + D3D11_FORMAT_SUPPORT +
+ + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_BUFFER + D3D11_FORMAT_SUPPORT_BUFFER + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER + D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER + D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SO_BUFFER + D3D11_FORMAT_SUPPORT_SO_BUFFER + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_TEXTURE1D + D3D11_FORMAT_SUPPORT_TEXTURE1D + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_TEXTURE2D + D3D11_FORMAT_SUPPORT_TEXTURE2D + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_TEXTURE3D + D3D11_FORMAT_SUPPORT_TEXTURE3D + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_TEXTURECUBE + D3D11_FORMAT_SUPPORT_TEXTURECUBE + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SHADER_LOAD + D3D11_FORMAT_SUPPORT_SHADER_LOAD + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT + D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_MONO_TEXT + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_MIP + D3D11_FORMAT_SUPPORT_MIP + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_MIP_AUTOGEN + D3D11_FORMAT_SUPPORT_MIP_AUTOGEN + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_RENDER_TARGET + D3D11_FORMAT_SUPPORT_RENDER_TARGET + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_BLENDABLE + D3D11_FORMAT_SUPPORT_BLENDABLE + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_DEPTH_STENCIL + D3D11_FORMAT_SUPPORT_DEPTH_STENCIL + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_CPU_LOCKABLE + D3D11_FORMAT_SUPPORT_CPU_LOCKABLE + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RESOLVE + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_DISPLAY + D3D11_FORMAT_SUPPORT_DISPLAY + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT + D3D11_FORMAT_SUPPORT_CAST_WITHIN_BIT_LAYOUT + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET + D3D11_FORMAT_SUPPORT_MULTISAMPLE_RENDERTARGET + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD + D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SHADER_GATHER + D3D11_FORMAT_SUPPORT_SHADER_GATHER + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST + D3D11_FORMAT_SUPPORT_BACK_BUFFER_CAST + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW + D3D11_FORMAT_SUPPORT_TYPED_UNORDERED_ACCESS_VIEW + + + + No documentation. + + + ff476134 + D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON + D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON + + + + None. + + + None + None + + + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Image file formats supported by D3DX11Createxxx and D3DX11Savexxx functions.

+
+ +

See Types of Bitmaps (GDI+) for more information on some of these formats.

+
+ + ff476315 + D3DX11_IMAGE_FILE_FORMAT + D3DX11_IMAGE_FILE_FORMAT +
+ + +

Windows bitmap (BMP) file format. Contains a header that describes the resolution of the device on which the rectangle of pixels was created, the dimensions of the rectangle, the size of the array of bits, a logical palette, and an array of bits that defines the relationship between pixels in the bitmapped image and entries in the logical palette. The file extension for this format is .bmp.

+
+ + ff476315 + D3DX11_IFF_BMP + D3DX11_IFF_BMP +
+ + +

Joint Photographic Experts Group (JPEG) compressed file format. Specifies variable compression of 24-bit RGB color and 8-bit gray-scale Tagged Image File Format (TIFF) image document files. The file extension for this format is .jpg.

+
+ + ff476315 + D3DX11_IFF_JPG + D3DX11_IFF_JPG +
+ + +

Portable Network Graphics (PNG) file format. A non-proprietary bitmap format using lossless compression. The file extension for this format is .png.

+
+ + ff476315 + D3DX11_IFF_PNG + D3DX11_IFF_PNG +
+ + +

DirectDraw surface (DDS) file format. Stores textures, volume textures, and cubic environment maps, with or without mipmap levels, and with or without pixel compression. The file extension for this format is .dds.

+
+ + ff476315 + D3DX11_IFF_DDS + D3DX11_IFF_DDS +
+ + +

Tagged Image File Format (TIFF). The file extensions for this format are .tif and .tiff.

+
+ + ff476315 + D3DX11_IFF_TIFF + D3DX11_IFF_TIFF +
+ + +

Graphics Interchange Format (GIF). The file extension for this format is .gif.

+
+ + ff476315 + D3DX11_IFF_GIF + D3DX11_IFF_GIF +
+ + +

Windows Media Photo format (WMP). This format is also known as HD Photo and JPEG XR. The file extensions for this format are .hdp, .jxr, and .wdp.

To work properly, requires that you initialize COM. Therefore, call CoInitialize or CoInitializeEx in your application before you call D3DX.

+
+ + ff476315 + D3DX11_IFF_WMP + D3DX11_IFF_WMP +
+ + +

Type of data contained in an input slot.

+
+ +

Use these values to specify the type of data for a particular input element (see ) of an input-layout object.

+
+ + ff476179 + D3D11_INPUT_CLASSIFICATION + D3D11_INPUT_CLASSIFICATION +
+ + +

Input data is per-vertex data.

+
+ + ff476179 + D3D11_INPUT_PER_VERTEX_DATA + D3D11_INPUT_PER_VERTEX_DATA +
+ + +

Input data is per-instance data.

+
+ + ff476179 + D3D11_INPUT_PER_INSTANCE_DATA + D3D11_INPUT_PER_INSTANCE_DATA +
+ + +

Specifies how the CPU should respond when an application calls the method on a resource that is being used by the GPU.

+
+ +

This enumeration is used by .

cannot be used with or D3D11_MAP_WRITE_NOOVERWRITE.

+
+ + ff476183 + D3D11_MAP_FLAG + D3D11_MAP_FLAG +
+ + + No documentation. + + + ff476183 + D3D11_MAP_FLAG_DO_NOT_WAIT + D3D11_MAP_FLAG_DO_NOT_WAIT + + + + None. + + + None + None + + + +

Identifies a resource to be accessed for reading and writing by the CPU. Applications may combine one or more of these flags.

+
+ +

This enumeration is used in .

These remarks are divided into the following topics:

  • Meaning
  • Common
+
+ + ff476181 + D3D11_MAP + D3D11_MAP +
+ + +

Resource is mapped for reading. The resource must have been created with read access (see ).

+
+ + ff476181 + D3D11_MAP_READ + D3D11_MAP_READ +
+ + +

Resource is mapped for writing. The resource must have been created with write access (see ).

+
+ + ff476181 + D3D11_MAP_WRITE + D3D11_MAP_WRITE +
+ + +

Resource is mapped for reading and writing. The resource must have been created with read and write access (see and ).

+
+ + ff476181 + D3D11_MAP_READ_WRITE + D3D11_MAP_READ_WRITE +
+ + +

Resource is mapped for writing; the previous contents of the resource will be undefined. The resource must have been created with write access and dynamic usage (See and ).

+
+ + ff476181 + D3D11_MAP_WRITE_DISCARD + D3D11_MAP_WRITE_DISCARD +
+ + +

Resource is mapped for writing; the existing contents of the resource cannot be overwritten (see Remarks). This flag is only valid on vertex and index buffers. The resource must have been created with write access (see ). Cannot be used on a resource created with the flag.

Note??The Direct3D 11.1 runtime, which is available starting with Windows?8, enables mapping dynamic constant buffers and shader resource views (SRVs) of dynamic buffers with . The Direct3D 11 and earlier runtimes limited mapping to vertex or index buffers. To determine if a Direct3D device supports these features, call with D3D11_FEATURE_D3D11_OPTIONS. CheckFeatureSupport fills members of a D3D11_FEATURE_DATA_D3D11_OPTIONS structure with the device's features. The relevant members here are MapNoOverwriteOnDynamicConstantBuffer and MapNoOverwriteOnDynamicBufferSRV.

+
+ + ff476181 + D3D11_MAP_WRITE_NO_OVERWRITE + D3D11_MAP_WRITE_NO_OVERWRITE +
+ + +

Categories of debug messages. This will identify the category of a message when retrieving a message with and when adding a message with . When creating an info queue filter, these values can be used to allow or deny any categories of messages to pass through the storage and retrieval filters.

+
+ +

This is part of the Information Queue feature. See Interface.

+
+ + ff476185 + D3D11_MESSAGE_CATEGORY + D3D11_MESSAGE_CATEGORY +
+ + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED + D3D11_MESSAGE_CATEGORY_APPLICATION_DEFINED + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_MISCELLANEOUS + D3D11_MESSAGE_CATEGORY_MISCELLANEOUS + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_INITIALIZATION + D3D11_MESSAGE_CATEGORY_INITIALIZATION + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_CLEANUP + D3D11_MESSAGE_CATEGORY_CLEANUP + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_COMPILATION + D3D11_MESSAGE_CATEGORY_COMPILATION + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_STATE_CREATION + D3D11_MESSAGE_CATEGORY_STATE_CREATION + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_STATE_SETTING + D3D11_MESSAGE_CATEGORY_STATE_SETTING + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_STATE_GETTING + D3D11_MESSAGE_CATEGORY_STATE_GETTING + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + D3D11_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + + + + No documentation. + + + ff476185 + D3D11_MESSAGE_CATEGORY_EXECUTION + D3D11_MESSAGE_CATEGORY_EXECUTION + + + +

A debug message in the Information Queue.

+
+ +

This structure is returned from as part of the Information Queue feature (see Interface).

+
+ + ff476184 + D3D11_MESSAGE_ID + D3D11_MESSAGE_ID +
+ + +

The category of the message. See .

+
+ + ff476184 + D3D11_MESSAGE_ID_UNKNOWN + D3D11_MESSAGE_ID_UNKNOWN +
+ + +

The severity of the message. See .

+
+ + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_HAZARD +
+ + +

The ID of the message. See .

+
+ + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_HAZARD +
+ + +

The message string.

+
+ + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_HAZARD +
+ + +

The length of pDescription in bytes.

+
+ + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_HAZARD +
+ + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_STRING_FROM_APPLICATION + D3D11_MESSAGE_ID_STRING_FROM_APPLICATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_THIS + D3D11_MESSAGE_ID_CORRUPTED_THIS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER1 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER1 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER2 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER2 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER3 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER3 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER4 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER4 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER5 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER5 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER6 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER6 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER7 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER7 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER8 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER8 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER9 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER9 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER10 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER10 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER11 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER11 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER12 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER12 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER13 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER13 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER14 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER14 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER15 + D3D11_MESSAGE_ID_CORRUPTED_PARAMETER15 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CORRUPTED_MULTITHREADING + D3D11_MESSAGE_ID_CORRUPTED_MULTITHREADING + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY + D3D11_MESSAGE_ID_MESSAGE_REPORTING_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_IASETINPUTLAYOUT_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_IASETINDEXBUFFER_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_VSSETSHADER_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_VSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_VSSETSAMPLERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_GSSETSHADER_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_GSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_GSSETSAMPLERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_SOSETTARGETS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_PSSETSHADER_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_PSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_PSSETSAMPLERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_RSSETSTATE_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_OMSETBLENDSTATE_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_OMSETDEPTHSTENCILSTATE_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_SETPREDICATION_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GETPRIVATEDATA_MOREDATA + D3D11_MESSAGE_ID_GETPRIVATEDATA_MOREDATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFREEDATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDIUNKNOWN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS + D3D11_MESSAGE_ID_SETPRIVATEDATA_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS + D3D11_MESSAGE_ID_SETPRIVATEDATA_CHANGINGPARAMS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY + D3D11_MESSAGE_ID_SETPRIVATEDATA_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSAMPLES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDUSAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS + D3D11_MESSAGE_ID_CREATEBUFFER_UNRECOGNIZEDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDINITIALDATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMIPLEVELS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATEBUFFER_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_NULLDESC + D3D11_MESSAGE_ID_CREATEBUFFER_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDCONSTANTBUFFERBINDINGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION + D3D11_MESSAGE_ID_CREATEBUFFER_LARGEALLOCATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNSUPPORTEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDSAMPLES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDUSAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE1D_UNRECOGNIZEDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDINITIALDATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMIPLEVELS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATETEXTURE1D_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATETEXTURE1D_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_NULLDESC + D3D11_MESSAGE_ID_CREATETEXTURE1D_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION + D3D11_MESSAGE_ID_CREATETEXTURE1D_LARGEALLOCATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNSUPPORTEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDSAMPLES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDUSAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE2D_UNRECOGNIZEDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDINITIALDATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMIPLEVELS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATETEXTURE2D_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATETEXTURE2D_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_NULLDESC + D3D11_MESSAGE_ID_CREATETEXTURE2D_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION + D3D11_MESSAGE_ID_CREATETEXTURE2D_LARGEALLOCATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNSUPPORTEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDSAMPLES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDUSAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE3D_UNRECOGNIZEDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDCPUACCESSFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDBINDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDINITIALDATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMIPLEVELS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATETEXTURE3D_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATETEXTURE3D_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_NULLDESC + D3D11_MESSAGE_ID_CREATETEXTURE3D_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION + D3D11_MESSAGE_ID_CREATETEXTURE3D_LARGEALLOCATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_UNSUPPORTEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATERENDERTARGETVIEW_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TOOMANYELEMENTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INCOMPATIBLEFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDINPUTSLOTCLASS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_STEPRATESLOTCLASSMISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSLOTCLASSCHANGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDSTEPRATECHANGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_INVALIDALIGNMENT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_DUPLICATESEMANTIC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNPARSEABLEINPUTSIGNATURE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLSEMANTIC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_MISSINGELEMENT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMENTRIES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSTREAMSTRIDEUNUSED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDDECL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_EXPECTEDDECL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_OUTPUTSLOT0EXPECTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSLOT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_ONLYONEELEMENTPERSLOT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCOMPONENTCOUNT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTARTCOMPONENTANDCOMPONENTCOUNT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDGAPDEFINITION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_REPEATEDOUTPUT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDOUTPUTSTREAMSTRIDE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGSEMANTIC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MASKMISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_CANTHAVEONLYGAPS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DECLTOOCOMPLEX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_MISSINGOUTPUTSIGNATURE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEPIXELSHADER_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDFILLMODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDCULLMODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDDEPTHBIASCLAMP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_INVALIDSLOPESCALEDDEPTHBIAS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHWRITEMASK + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDDEPTHFUNC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFAILOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILZFAILOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILPASSOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDFRONTFACESTENCILFUNC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFAILOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILZFAILOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILPASSOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_INVALIDBACKFACESTENCILFUNC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLEND + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLEND + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDSRCBLENDALPHA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDDESTBLENDALPHA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDBLENDOPALPHA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK + D3D11_MESSAGE_ID_CREATEBLENDSTATE_INVALIDRENDERTARGETWRITEMASK + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATEBLENDSTATE_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDFILTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSU + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSV + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDADDRESSW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMIPLODBIAS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXANISOTROPY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDCOMPARISONFUNC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMINLOD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_INVALIDMAXLOD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDQUERY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_INVALIDMISCFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_UNEXPECTEDMISCFLAG + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC + D3D11_MESSAGE_ID_CREATEQUERYORPREDICATE_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNRECOGNIZED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNDEFINED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_OFFSET_TOO_LARGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER + D3D11_MESSAGE_ID_IASETINDEXBUFFER_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_FORMAT_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_TOO_LARGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_IASETINDEXBUFFER_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_VSSETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_VSSETCONSTANTBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_VSSETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_VSSETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_GSSETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_GSSETCONSTANTBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_GSSETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_GSSETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER + D3D11_MESSAGE_ID_SOSETTARGETS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_SOSETTARGETS_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_PSSETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_PSSETCONSTANTBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_PSSETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_PSSETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_INVALIDVIEWPORT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_INVALIDSCISSOR + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH + D3D11_MESSAGE_ID_CLEARRENDERTARGETVIEW_DENORMFLUSH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DENORMFLUSH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_IAGETVERTEXBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_VSGETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_VSGETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_VSGETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_GSGETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_GSGETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_GSGETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_SOGETTARGETS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_PSGETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_PSGETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_PSGETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY + D3D11_MESSAGE_ID_DEVICE_RSGETVIEWPORTS_VIEWPORTS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY + D3D11_MESSAGE_ID_DEVICE_RSGETSCISSORRECTS_RECTS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID + D3D11_MESSAGE_ID_DEVICE_GENERATEMIPS_RESOURCE_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCEBOX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDDESTINATIONSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE + D3D11_MESSAGE_ID_COPYSUBRESOURCEREGION_INVALIDSOURCESTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDDESTINATIONSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE + D3D11_MESSAGE_ID_COPYRESOURCE_INVALIDSOURCESTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONBOX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE + D3D11_MESSAGE_ID_UPDATESUBRESOURCE_INVALIDDESTINATIONSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_DESTINATION_SUBRESOURCE_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_SOURCE_SUBRESOURCE_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID + D3D11_MESSAGE_ID_DEVICE_RESOLVESUBRESOURCE_FORMAT_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDMAPTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS + D3D11_MESSAGE_ID_BUFFER_MAP_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED + D3D11_MESSAGE_ID_BUFFER_MAP_ALREADYMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN + D3D11_MESSAGE_ID_BUFFER_MAP_DEVICEREMOVED_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED + D3D11_MESSAGE_ID_BUFFER_UNMAP_NOTMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDMAPTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS + D3D11_MESSAGE_ID_TEXTURE1D_MAP_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED + D3D11_MESSAGE_ID_TEXTURE1D_MAP_ALREADYMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN + D3D11_MESSAGE_ID_TEXTURE1D_MAP_DEVICEREMOVED_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED + D3D11_MESSAGE_ID_TEXTURE1D_UNMAP_NOTMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDMAPTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS + D3D11_MESSAGE_ID_TEXTURE2D_MAP_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED + D3D11_MESSAGE_ID_TEXTURE2D_MAP_ALREADYMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN + D3D11_MESSAGE_ID_TEXTURE2D_MAP_DEVICEREMOVED_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED + D3D11_MESSAGE_ID_TEXTURE2D_UNMAP_NOTMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDMAPTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS + D3D11_MESSAGE_ID_TEXTURE3D_MAP_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED + D3D11_MESSAGE_ID_TEXTURE3D_MAP_ALREADYMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN + D3D11_MESSAGE_ID_TEXTURE3D_MAP_DEVICEREMOVED_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED + D3D11_MESSAGE_ID_TEXTURE3D_UNMAP_NOTMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_DEPRECATED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED + D3D11_MESSAGE_ID_CHECKMULTISAMPLEQUALITYLEVELS_FORMAT_DEPRECATED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_UNRECOGNIZEDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN + D3D11_MESSAGE_ID_SETEXCEPTIONMODE_DEVICEREMOVED_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE + D3D11_MESSAGE_ID_REF_SIMULATING_INFINITELY_FAST_HARDWARE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_THREADING_MODE + D3D11_MESSAGE_ID_REF_THREADING_MODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_UMDRIVER_EXCEPTION + D3D11_MESSAGE_ID_REF_UMDRIVER_EXCEPTION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_KMDRIVER_EXCEPTION + D3D11_MESSAGE_ID_REF_KMDRIVER_EXCEPTION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_HARDWARE_EXCEPTION + D3D11_MESSAGE_ID_REF_HARDWARE_EXCEPTION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE + D3D11_MESSAGE_ID_REF_ACCESSING_INDEXABLE_TEMP_OUT_OF_RANGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER + D3D11_MESSAGE_ID_REF_PROBLEM_PARSING_SHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_OUT_OF_MEMORY + D3D11_MESSAGE_ID_REF_OUT_OF_MEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_INFO + D3D11_MESSAGE_ID_REF_INFO + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEXPOS_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXED_INDEXPOS_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_VERTEXPOS_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAWINSTANCED_INSTANCEPOS_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INSTANCEPOS_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAWINDEXEDINSTANCED_INDEXPOS_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_SHADER_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SEMANTICNAME_NOT_FOUND + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERINDEX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_COMPONENTTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_REGISTERMASK + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_SYSTEMVALUE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS + D3D11_MESSAGE_ID_DEVICE_SHADER_LINKAGE_NEVERWRITTEN_ALWAYSREADS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_INPUTLAYOUT_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL + D3D11_MESSAGE_ID_DEVICE_DRAW_CONSTANT_BUFFER_TOO_SMALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEW_DIMENSION_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_STRIDE_TOO_SMALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_BUFFER_TOO_SMALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_FORMAT_INVALID + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_GS_INPUT_PRIMITIVE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_RETURN_TYPE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT + D3D11_MESSAGE_ID_DEVICE_DRAW_POSITION_NOT_PRESENT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED + D3D11_MESSAGE_ID_DEVICE_DRAW_BOUND_RESOURCE_MAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_PRIMITIVETOPOLOGY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_DRAW_VERTEX_STRIDE_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_DRAW_OUTPUT_STREAM_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_LD_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_SAMPLE_C_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_MULTISAMPLE_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_TARGETS_BOUND_WITHOUT_SOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER + D3D11_MESSAGE_ID_DEVICE_DRAW_SO_STRIDE_LARGER_THAN_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_RENDER_TARGET_DOES_NOT_SUPPORT_BLENDING + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 + D3D11_MESSAGE_ID_DEVICE_DRAW_OM_DUAL_SOURCE_BLENDING_CAN_ONLY_HAVE_RENDER_TARGET_0 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_AT_FAULT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT + D3D11_MESSAGE_ID_DEVICE_REMOVAL_PROCESS_NOT_AT_FAULT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN + D3D11_MESSAGE_ID_DEVICE_OPEN_SHARED_RESOURCE_BADINTERFACE_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET + D3D11_MESSAGE_ID_DEVICE_DRAW_VIEWPORT_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TRAILING_DIGIT_IN_SEMANTIC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_TRAILING_DIGIT_IN_SEMANTIC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_DENORMFLUSH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_DEVICE_SETTEXTFILTERSIZE_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_SAMPLER_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_TYPE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY + D3D11_MESSAGE_ID_BLENDSTATE_GETDESC_LEGACY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY + D3D11_MESSAGE_ID_SHADERRESOURCEVIEW_GETDESC_LEGACY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATEQUERY_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATEPREDICATE_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFRANGE_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED + D3D11_MESSAGE_ID_CREATECOUNTER_SIMULTANEOUS_ACTIVE_COUNTERS_EXHAUSTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + D3D11_MESSAGE_ID_CREATECOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATECOUNTER_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN + D3D11_MESSAGE_ID_CREATECOUNTER_NONEXCLUSIVE_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOUNTER_NULLDESC + D3D11_MESSAGE_ID_CREATECOUNTER_NULLDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER + D3D11_MESSAGE_ID_CHECKCOUNTER_OUTOFRANGE_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + D3D11_MESSAGE_ID_CHECKCOUNTER_UNSUPPORTED_WELLKNOWN_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE + D3D11_MESSAGE_ID_SETPREDICATION_INVALID_PREDICATE_STATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED + D3D11_MESSAGE_ID_QUERY_BEGIN_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION + D3D11_MESSAGE_ID_PREDICATE_BEGIN_DURING_PREDICATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_BEGIN_DUPLICATE + D3D11_MESSAGE_ID_QUERY_BEGIN_DUPLICATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS + D3D11_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION + D3D11_MESSAGE_ID_PREDICATE_END_DURING_PREDICATION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS + D3D11_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN + D3D11_MESSAGE_ID_QUERY_END_WITHOUT_BEGIN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_DATASIZE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_FLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL + D3D11_MESSAGE_ID_QUERY_GETDATA_INVALID_CALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_PS_OUTPUT_TYPE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_FORMAT_GATHER_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN + D3D11_MESSAGE_ID_DEVICE_DRAW_INVALID_USE_OF_CENTER_MULTISAMPLE_PATTERN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_STRIDE_TOO_LARGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE + D3D11_MESSAGE_ID_DEVICE_IASETVERTEXBUFFERS_INVALIDRANGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_RESOURCE_SAMPLE_COUNT_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_D3D10_MESSAGES_END + D3D11_MESSAGE_ID_D3D10_MESSAGES_END + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_START + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_START + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILSTATE_STENCIL_NO_TWO_SIDED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthBiasClamp_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_COMPARISON_SUPPORT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_EXCESSIVE_ANISOTROPY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_OUT_OF_RANGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED + D3D11_MESSAGE_ID_VSSETSAMPLERS_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS + D3D11_MESSAGE_ID_VSSETSAMPLERS_TOO_MANY_SAMPLERS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS + D3D11_MESSAGE_ID_PSSETSAMPLERS_TOO_MANY_SAMPLERS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS + D3D11_MESSAGE_ID_CREATERESOURCE_NO_ARRAYS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND + D3D11_MESSAGE_ID_CREATERESOURCE_NO_VB_AND_IB_BIND + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D + D3D11_MESSAGE_ID_CREATERESOURCE_NO_TEXTURE_1D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_OUT_OF_RANGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_SHADER_RESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_TOO_MANY_RENDER_TARGETS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_DIFFERING_BIT_DEPTHS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX + D3D11_MESSAGE_ID_IASETVERTEXBUFFERS_BAD_BUFFER_INDEX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS + D3D11_MESSAGE_ID_DEVICE_RSSETVIEWPORTS_TOO_MANY_VIEWPORTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_ADJACENCY_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_TOO_MANY_SCISSORS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY + D3D11_MESSAGE_ID_COPYRESOURCE_ONLY_TEXTURE_2D_WITHIN_GPU_MEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_3D_READBACK + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK + D3D11_MESSAGE_ID_COPYRESOURCE_NO_TEXTURE_ONLY_READBACK + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT + D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_UNSUPPORTED_FORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_ALPHA_TO_COVERAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE + D3D11_MESSAGE_ID_CREATERASTERIZERSTATE_DepthClipEnable_MUST_BE_TRUE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE + D3D11_MESSAGE_ID_DRAWINDEXED_STARTINDEXLOCATION_MUST_BE_POSITIVE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_MUST_USE_LOWEST_LOD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MINLOD_MUST_NOT_BE_FRACTIONAL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_MAXLOD_MUST_BE_FLT_MAX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_FIRSTARRAYSLICE_MUST_BE_ZERO + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_CUBES_MUST_HAVE_6_SIDES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET + D3D11_MESSAGE_ID_CREATERESOURCE_NOT_BINDABLE_AS_RENDER_TARGET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER + D3D11_MESSAGE_ID_CREATERESOURCE_NO_DWORD_INDEX_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE + D3D11_MESSAGE_ID_CREATERESOURCE_MSAA_PRECLUDES_SHADER_RESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE + D3D11_MESSAGE_ID_CREATERESOURCE_PRESENTATION_PRECLUDES_SHADER_RESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_BLEND_ENABLE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_INDEPENDENT_WRITE_MASKS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT + D3D11_MESSAGE_ID_CREATERESOURCE_NO_STREAM_OUT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_VB_IB_FOR_BUFFERS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES + D3D11_MESSAGE_ID_CREATERESOURCE_NO_AUTOGEN_FOR_VOLUMES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED + D3D11_MESSAGE_ID_CREATERESOURCE_DXGI_FORMAT_R8G8B8A8_CANNOT_BE_SHARED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED + D3D11_MESSAGE_ID_VSSHADERRESOURCES_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED + D3D11_MESSAGE_ID_GEOMETRY_SHADER_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED + D3D11_MESSAGE_ID_STREAM_OUT_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED + D3D11_MESSAGE_ID_TEXT_FILTER_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_SEPARATE_ALPHA_BLEND + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND + D3D11_MESSAGE_ID_CREATEBLENDSTATE_NO_MRT_BLEND + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED + D3D11_MESSAGE_ID_CREATEBLENDSTATE_OPERATION_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_NO_MIRRORONCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED + D3D11_MESSAGE_ID_DRAWINSTANCED_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 + D3D11_MESSAGE_ID_DRAWINDEXEDINSTANCED_NOT_SUPPORTED_BELOW_9_3 + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED + D3D11_MESSAGE_ID_DRAWINDEXED_POINTLIST_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO + D3D11_MESSAGE_ID_SETBLENDSTATE_SAMPLE_MASK_CANNOT_BE_ZERO + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION + D3D11_MESSAGE_ID_CREATERESOURCE_DIMENSION_EXCEEDS_FEATURE_LEVEL_DEFINITION + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED + D3D11_MESSAGE_ID_CREATERESOURCE_ONLY_SINGLE_MIP_LEVEL_DEPTH_STENCIL_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR + D3D11_MESSAGE_ID_DEVICE_RSSETSCISSORRECTS_NEGATIVESCISSOR + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA + D3D11_MESSAGE_ID_SLOT_ZERO_MUST_BE_D3D10_INPUT_PER_VERTEX_DATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP + D3D11_MESSAGE_ID_CREATERESOURCE_NON_POW_2_MIPMAP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED + D3D11_MESSAGE_ID_CREATESAMPLERSTATE_BORDER_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT + D3D11_MESSAGE_ID_OMSETRENDERTARGETS_NO_SRGB_MRT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_END + D3D11_MESSAGE_ID_D3D10L9_MESSAGES_END + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_D3D11_MESSAGES_START + D3D11_MESSAGE_ID_D3D11_MESSAGES_START + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS + D3D11_MESSAGE_ID_CREATEDEPTHSTENCILVIEW_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATEVERTEXSHADER_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADER_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTREAMS + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTREAMS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAMTORASTERIZER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTREAMS + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTREAMS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATEPIXELSHADER_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_COMMANDLISTFLAGS + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_COMMANDLISTFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_SINGLETHREADED + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_SINGLETHREADED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_CALL_RETURN + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_INVALID_CALL_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATEDEFERREDCONTEXT_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_ONIMMEDIATECONTEXT + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_ONIMMEDIATECONTEXT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_INVALID_CALL_RETURN + D3D11_MESSAGE_ID_FINISHDISPLAYLIST_INVALID_CALL_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDSTREAM + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDENTRIES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_UNEXPECTEDSTRIDES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES + D3D11_MESSAGE_ID_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_INVALIDNUMSTRIDES + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_HAZARD + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_HSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_HSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCALL + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEHULLSHADER_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATEHULLSHADER_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_HSSETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_HSSETCONSTANTBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_HSSETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSSETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_HSSETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSGETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_HSGETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSGETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_HSGETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_HSGETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_HSGETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_HAZARD + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_DSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCALL + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATEDOMAINSHADER_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_DSSETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_DSSETCONSTANTBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_DSSETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSSETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_DSSETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSGETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_DSGETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSGETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_DSGETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DSGETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_DSGETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_XOR_DS_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_XOR_DS_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEFERRED_CONTEXT_REMOVAL_PROCESS_AT_FAULT + D3D11_MESSAGE_ID_DEFERRED_CONTEXT_REMOVAL_PROCESS_AT_FAULT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_INVALID_ARG_BUFFER + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_INVALID_ARG_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DRAWINDIRECT_OFFSET_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDMAPTYPE + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDMAPTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDFLAGS + D3D11_MESSAGE_ID_RESOURCE_MAP_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_ALREADYMAPPED + D3D11_MESSAGE_ID_RESOURCE_MAP_ALREADYMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_DEVICEREMOVED_RETURN + D3D11_MESSAGE_ID_RESOURCE_MAP_DEVICEREMOVED_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_RESOURCE_MAP_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_MAP_WITHOUT_INITIAL_DISCARD + D3D11_MESSAGE_ID_RESOURCE_MAP_WITHOUT_INITIAL_DISCARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_UNMAP_INVALIDSUBRESOURCE + D3D11_MESSAGE_ID_RESOURCE_UNMAP_INVALIDSUBRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED + D3D11_MESSAGE_ID_RESOURCE_UNMAP_NOTMAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_RASTERIZING_CONTROL_POINTS + D3D11_MESSAGE_ID_DEVICE_DRAW_RASTERIZING_CONTROL_POINTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_IASETPRIMITIVETOPOLOGY_TOPOLOGY_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_SIGNATURE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_SIGNATURE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_HULL_SHADER_INPUT_TOPOLOGY_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_CONTROL_POINT_COUNT_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_CONTROL_POINT_COUNT_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_TESSELLATOR_DOMAIN_MISMATCH + D3D11_MESSAGE_ID_DEVICE_DRAW_HS_DS_TESSELLATOR_DOMAIN_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_CONTEXT + D3D11_MESSAGE_ID_CREATE_CONTEXT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_CONTEXT + D3D11_MESSAGE_ID_LIVE_CONTEXT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_CONTEXT + D3D11_MESSAGE_ID_DESTROY_CONTEXT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_BUFFER + D3D11_MESSAGE_ID_CREATE_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_BUFFER + D3D11_MESSAGE_ID_LIVE_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_BUFFER + D3D11_MESSAGE_ID_DESTROY_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_TEXTURE1D + D3D11_MESSAGE_ID_CREATE_TEXTURE1D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_TEXTURE1D + D3D11_MESSAGE_ID_LIVE_TEXTURE1D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_TEXTURE1D + D3D11_MESSAGE_ID_DESTROY_TEXTURE1D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_TEXTURE2D + D3D11_MESSAGE_ID_CREATE_TEXTURE2D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_TEXTURE2D + D3D11_MESSAGE_ID_LIVE_TEXTURE2D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_TEXTURE2D + D3D11_MESSAGE_ID_DESTROY_TEXTURE2D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_TEXTURE3D + D3D11_MESSAGE_ID_CREATE_TEXTURE3D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_TEXTURE3D + D3D11_MESSAGE_ID_LIVE_TEXTURE3D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_TEXTURE3D + D3D11_MESSAGE_ID_DESTROY_TEXTURE3D + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_SHADERRESOURCEVIEW + D3D11_MESSAGE_ID_CREATE_SHADERRESOURCEVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW + D3D11_MESSAGE_ID_LIVE_SHADERRESOURCEVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_SHADERRESOURCEVIEW + D3D11_MESSAGE_ID_DESTROY_SHADERRESOURCEVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_RENDERTARGETVIEW + D3D11_MESSAGE_ID_CREATE_RENDERTARGETVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW + D3D11_MESSAGE_ID_LIVE_RENDERTARGETVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_RENDERTARGETVIEW + D3D11_MESSAGE_ID_DESTROY_RENDERTARGETVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILVIEW + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILVIEW + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_VERTEXSHADER + D3D11_MESSAGE_ID_CREATE_VERTEXSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_VERTEXSHADER + D3D11_MESSAGE_ID_LIVE_VERTEXSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_VERTEXSHADER + D3D11_MESSAGE_ID_DESTROY_VERTEXSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_HULLSHADER + D3D11_MESSAGE_ID_CREATE_HULLSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_HULLSHADER + D3D11_MESSAGE_ID_LIVE_HULLSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_HULLSHADER + D3D11_MESSAGE_ID_DESTROY_HULLSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_DOMAINSHADER + D3D11_MESSAGE_ID_CREATE_DOMAINSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_DOMAINSHADER + D3D11_MESSAGE_ID_LIVE_DOMAINSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_DOMAINSHADER + D3D11_MESSAGE_ID_DESTROY_DOMAINSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_GEOMETRYSHADER + D3D11_MESSAGE_ID_CREATE_GEOMETRYSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER + D3D11_MESSAGE_ID_LIVE_GEOMETRYSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_GEOMETRYSHADER + D3D11_MESSAGE_ID_DESTROY_GEOMETRYSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_PIXELSHADER + D3D11_MESSAGE_ID_CREATE_PIXELSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_PIXELSHADER + D3D11_MESSAGE_ID_LIVE_PIXELSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_PIXELSHADER + D3D11_MESSAGE_ID_DESTROY_PIXELSHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_INPUTLAYOUT + D3D11_MESSAGE_ID_CREATE_INPUTLAYOUT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT + D3D11_MESSAGE_ID_LIVE_INPUTLAYOUT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_INPUTLAYOUT + D3D11_MESSAGE_ID_DESTROY_INPUTLAYOUT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_SAMPLER + D3D11_MESSAGE_ID_CREATE_SAMPLER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_SAMPLER + D3D11_MESSAGE_ID_LIVE_SAMPLER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_SAMPLER + D3D11_MESSAGE_ID_DESTROY_SAMPLER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_BLENDSTATE + D3D11_MESSAGE_ID_CREATE_BLENDSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_BLENDSTATE + D3D11_MESSAGE_ID_LIVE_BLENDSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_BLENDSTATE + D3D11_MESSAGE_ID_DESTROY_BLENDSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILSTATE + D3D11_MESSAGE_ID_CREATE_DEPTHSTENCILSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE + D3D11_MESSAGE_ID_LIVE_DEPTHSTENCILSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILSTATE + D3D11_MESSAGE_ID_DESTROY_DEPTHSTENCILSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_RASTERIZERSTATE + D3D11_MESSAGE_ID_CREATE_RASTERIZERSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE + D3D11_MESSAGE_ID_LIVE_RASTERIZERSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_RASTERIZERSTATE + D3D11_MESSAGE_ID_DESTROY_RASTERIZERSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_QUERY + D3D11_MESSAGE_ID_CREATE_QUERY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_QUERY + D3D11_MESSAGE_ID_LIVE_QUERY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_QUERY + D3D11_MESSAGE_ID_DESTROY_QUERY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_PREDICATE + D3D11_MESSAGE_ID_CREATE_PREDICATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_PREDICATE + D3D11_MESSAGE_ID_LIVE_PREDICATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_PREDICATE + D3D11_MESSAGE_ID_DESTROY_PREDICATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_COUNTER + D3D11_MESSAGE_ID_CREATE_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_COUNTER + D3D11_MESSAGE_ID_LIVE_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_COUNTER + D3D11_MESSAGE_ID_DESTROY_COUNTER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_COMMANDLIST + D3D11_MESSAGE_ID_CREATE_COMMANDLIST + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_COMMANDLIST + D3D11_MESSAGE_ID_LIVE_COMMANDLIST + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_COMMANDLIST + D3D11_MESSAGE_ID_DESTROY_COMMANDLIST + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_CLASSINSTANCE + D3D11_MESSAGE_ID_CREATE_CLASSINSTANCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_CLASSINSTANCE + D3D11_MESSAGE_ID_LIVE_CLASSINSTANCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_CLASSINSTANCE + D3D11_MESSAGE_ID_DESTROY_CLASSINSTANCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_CLASSLINKAGE + D3D11_MESSAGE_ID_CREATE_CLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_CLASSLINKAGE + D3D11_MESSAGE_ID_LIVE_CLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_CLASSLINKAGE + D3D11_MESSAGE_ID_DESTROY_CLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_DEVICE + D3D11_MESSAGE_ID_LIVE_DEVICE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY + D3D11_MESSAGE_ID_LIVE_OBJECT_SUMMARY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_COMPUTESHADER + D3D11_MESSAGE_ID_CREATE_COMPUTESHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_COMPUTESHADER + D3D11_MESSAGE_ID_LIVE_COMPUTESHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_COMPUTESHADER + D3D11_MESSAGE_ID_DESTROY_COMPUTESHADER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATE_UNORDEREDACCESSVIEW + D3D11_MESSAGE_ID_CREATE_UNORDEREDACCESSVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_LIVE_UNORDEREDACCESSVIEW + D3D11_MESSAGE_ID_LIVE_UNORDEREDACCESSVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DESTROY_UNORDEREDACCESSVIEW + D3D11_MESSAGE_ID_DESTROY_UNORDEREDACCESSVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACES_FEATURELEVEL + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACES_FEATURELEVEL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACE_COUNT_MISMATCH + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INTERFACE_COUNT_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_INDEX + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_INDEX + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_TYPE + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_TYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_DATA + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INVALID_INSTANCE_DATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_UNBOUND_INSTANCE_DATA + D3D11_MESSAGE_ID_DEVICE_SETSHADER_UNBOUND_INSTANCE_DATA + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INSTANCE_DATA_BINDINGS + D3D11_MESSAGE_ID_DEVICE_SETSHADER_INSTANCE_DATA_BINDINGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATESHADER_CLASSLINKAGE_FULL + D3D11_MESSAGE_ID_DEVICE_CREATESHADER_CLASSLINKAGE_FULL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_UNRECOGNIZED_FEATURE + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_UNRECOGNIZED_FEATURE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_MISMATCHED_DATA_SIZE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_INVALIDARG_RETURN + D3D11_MESSAGE_ID_DEVICE_CHECKFEATURESUPPORT_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_HAZARD + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_HAZARD + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_CSSETSHADERRESOURCES_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCALL + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCALL + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_OUTOFMEMORY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERBYTECODE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERTYPE + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDSHADERTYPE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE + D3D11_MESSAGE_ID_CREATECOMPUTESHADER_INVALIDCLASSLINKAGE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSSETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFER + D3D11_MESSAGE_ID_CSSETCONSTANTBUFFERS_INVALIDBUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSSETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSSETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSGETSHADERRESOURCES_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSGETSHADERRESOURCES_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSGETCONSTANTBUFFERS_BUFFERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSGETCONSTANTBUFFERS_BUFFERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSGETSAMPLERS_SAMPLERS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSGETSAMPLERS_SAMPLERS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATEVERTEXSHADER_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATEHULLSHADER_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATEDOMAINSHADER_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADER_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATEGEOMETRYSHADERWITHSTREAMOUTPUT_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATEPIXELSHADER_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED + D3D11_MESSAGE_ID_DEVICE_CREATECOMPUTESHADER_DOUBLEFLOATOPSNOTSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSTRUCTURESTRIDE + D3D11_MESSAGE_ID_CREATEBUFFER_INVALIDSTRUCTURESTRIDE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFLAGS + D3D11_MESSAGE_ID_CREATESHADERRESOURCEVIEW_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDESC + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDDIMENSIONS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_UNRECOGNIZEDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_HAZARD + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_OVERLAPPING_OLD_SLOTS + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_OVERLAPPING_OLD_SLOTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NO_OP + D3D11_MESSAGE_ID_DEVICE_OMSETRENDERTARGETSANDUNORDEREDACCESSVIEWS_NO_OP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_CSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_PSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_PSSETUNORDEREDACCESSVIEWS_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDARG_RETURN + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDARG_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_OUTOFMEMORY_RETURN + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_OUTOFMEMORY_RETURN + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_HAZARD + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_HAZARD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_DENORMFLUSH + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEW_DENORMFLUSH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSS_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSS_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSGETUNORDEREDACCESSS_VIEWS_EMPTY + D3D11_MESSAGE_ID_DEVICE_CSGETUNORDEREDACCESSS_VIEWS_EMPTY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS + D3D11_MESSAGE_ID_CREATEUNORDEREDACCESSVIEW_INVALIDFLAGS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CREATESHADERRESESOURCEVIEW_TOOMANYOBJECTS + D3D11_MESSAGE_ID_CREATESHADERRESESOURCEVIEW_TOOMANYOBJECTS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_INVALID_ARG_BUFFER + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_INVALID_ARG_BUFFER + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_UNALIGNED + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_UNALIGNED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_OFFSET_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDCONTEXT + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDCONTEXT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDRESOURCE + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDMINLOD + D3D11_MESSAGE_ID_DEVICE_SETRESOURCEMINLOD_INVALIDMINLOD + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDCONTEXT + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDCONTEXT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDRESOURCE + D3D11_MESSAGE_ID_DEVICE_GETRESOURCEMINLOD_INVALIDRESOURCE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_OMSETDEPTHSTENCIL_UNBINDDELETINGOBJECT + D3D11_MESSAGE_ID_OMSETDEPTHSTENCIL_UNBINDDELETINGOBJECT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DEPTH_READONLY + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_DEPTH_READONLY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_STENCIL_READONLY + D3D11_MESSAGE_ID_CLEARDEPTHSTENCILVIEW_STENCIL_READONLY + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CHECKFEATURESUPPORT_FORMAT_DEPRECATED + D3D11_MESSAGE_ID_CHECKFEATURESUPPORT_FORMAT_DEPRECATED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RETURN_TYPE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RETURN_TYPE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_NOT_SET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DRAW_UNORDEREDACCESSVIEW_RENDERTARGETVIEW_OVERLAP + D3D11_MESSAGE_ID_DEVICE_DRAW_UNORDEREDACCESSVIEW_RENDERTARGETVIEW_OVERLAP + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_DIMENSION_MISMATCH + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_DIMENSION_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_APPEND_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_APPEND_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMICS_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMICS_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_STRUCTURE_STRIDE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_STRUCTURE_STRIDE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_BUFFER_TYPE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_BUFFER_TYPE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RAW_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_RAW_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_LD_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_LD_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_STORE_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_FORMAT_STORE_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_ADD_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_ADD_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_BITWISE_OPS_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_BITWISE_OPS_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_CMPSTORE_CMPEXCHANGE_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_CMPSTORE_CMPEXCHANGE_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_EXCHANGE_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_EXCHANGE_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_SIGNED_MINMAX_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_SIGNED_MINMAX_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_UNSIGNED_MINMAX_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_ATOMIC_UNSIGNED_MINMAX_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCH_BOUND_RESOURCE_MAPPED + D3D11_MESSAGE_ID_DEVICE_DISPATCH_BOUND_RESOURCE_MAPPED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_OVERFLOW + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_OVERFLOW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_ZERO + D3D11_MESSAGE_ID_DEVICE_DISPATCH_THREADGROUPCOUNT_ZERO + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_STRUCTURE_STRIDE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_STRUCTURE_STRIDE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_BUFFER_TYPE_MISMATCH + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_BUFFER_TYPE_MISMATCH + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_RAW_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_SHADERRESOURCEVIEW_RAW_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCH_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DISPATCH_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_DISPATCHINDIRECT_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDOFFSET + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDOFFSET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_LARGEOFFSET + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_LARGEOFFSET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDDESTINATIONSTATE + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDDESTINATIONSTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDSOURCESTATE + D3D11_MESSAGE_ID_COPYSTRUCTURECOUNT_INVALIDSOURCESTATE + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_NOT_SUPPORTED + D3D11_MESSAGE_ID_CHECKFORMATSUPPORT_FORMAT_NOT_SUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDVIEW + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDVIEW + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDOFFSET + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_INVALIDOFFSET + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_TOOMANYVIEWS + D3D11_MESSAGE_ID_DEVICE_CSSETUNORDEREDACCESSVIEWS_TOOMANYVIEWS + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_INVALIDFORMAT + D3D11_MESSAGE_ID_CLEARUNORDEREDACCESSVIEWFLOAT_INVALIDFORMAT + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_COUNTER_UNSUPPORTED + D3D11_MESSAGE_ID_DEVICE_UNORDEREDACCESSVIEW_COUNTER_UNSUPPORTED + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_REF_WARNING + D3D11_MESSAGE_ID_REF_WARNING + + + + No documentation. + + + ff476184 + D3D11_MESSAGE_ID_D3D11_MESSAGES_END + D3D11_MESSAGE_ID_D3D11_MESSAGES_END + + + +

Debug message severity levels for an information queue.

+
+ +

Use these values to allow or deny message categories to pass through the storage and retrieval filters for an information queue (see ). This API is used by .

+
+ + ff476187 + D3D11_MESSAGE_SEVERITY + D3D11_MESSAGE_SEVERITY +
+ + +

Defines some type of corruption which has occurred.

+
+ + ff476187 + D3D11_MESSAGE_SEVERITY_CORRUPTION + D3D11_MESSAGE_SEVERITY_CORRUPTION +
+ + +

Defines an error message.

+
+ + ff476187 + D3D11_MESSAGE_SEVERITY_ERROR + D3D11_MESSAGE_SEVERITY_ERROR +
+ + +

Defines a warning message.

+
+ + ff476187 + D3D11_MESSAGE_SEVERITY_WARNING + D3D11_MESSAGE_SEVERITY_WARNING +
+ + +

Defines an information message.

+
+ + ff476187 + D3D11_MESSAGE_SEVERITY_INFO + D3D11_MESSAGE_SEVERITY_INFO +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Normal map options. You can combine any number of these flags by using a bitwise OR operation.

+
+ +

These flags are used by .

+
+ + ff476318 + D3DX11_NORMALMAP_FLAG + D3DX11_NORMALMAP_FLAG +
+ + +

Indicates that pixels off the edge of the texture on the U-axis should be mirrored, not wraped.

+
+ + ff476318 + D3DX11_NORMALMAP_MIRROR_U + D3DX11_NORMALMAP_MIRROR_U +
+ + +

Indicates that pixels off the edge of the texture on the V-axis should be mirrored, not wraped.

+
+ + ff476318 + D3DX11_NORMALMAP_MIRROR_V + D3DX11_NORMALMAP_MIRROR_V +
+ + +

Same as | .

+
+ + ff476318 + D3DX11_NORMALMAP_MIRROR + D3DX11_NORMALMAP_MIRROR +
+ + +

Inverts the direction of each normal.

+
+ + ff476318 + D3DX11_NORMALMAP_INVERTSIGN + D3DX11_NORMALMAP_INVERTSIGN +
+ + +

Computes the per pixel occlusion term and encodes it into the alpha. An Alpha of 1 means that the pixel is not obscured in any way, and an alpha of 0 would mean that the pixel is completly obscured.

+
+ + ff476318 + D3DX11_NORMALMAP_COMPUTE_OCCLUSION + D3DX11_NORMALMAP_COMPUTE_OCCLUSION +
+ + + None. + + + None + None + + + +

Flags that describe miscellaneous query behavior.

+
+ +

This flag is part of a query description (see ).

+
+ + ff476196 + D3D11_QUERY_MISC_FLAG + D3D11_QUERY_MISC_FLAG +
+ + +

Tell the hardware that if it is not yet sure if something is hidden or not to draw it anyway. This is only used with an occlusion predicate. Predication data cannot be returned to your application via when using this flag.

+
+ + ff476196 + D3D11_QUERY_MISC_PREDICATEHINT + D3D11_QUERY_MISC_PREDICATEHINT +
+ + + None. + + + None + None + + + +

Query types.

+
+ +

Create a query with .

+
+ + ff476191 + D3D11_QUERY + D3D11_QUERY +
+ + +

Determines whether or not the GPU is finished processing commands. When the GPU is finished processing commands will return , and pData will point to a with a value of TRUE. When using this type of query, is disabled.

+
+ + ff476191 + D3D11_QUERY_EVENT + D3D11_QUERY_EVENT +
+ + +

Get the number of samples that passed the depth and stencil tests in between and . returns a UINT64. If a depth or stencil test is disabled, then each of those tests will be counted as a pass.

+
+ + ff476191 + D3D11_QUERY_OCCLUSION + D3D11_QUERY_OCCLUSION +
+ + +

Get a timestamp value where returns a UINT64. This kind of query is only useful if two timestamp queries are done in the middle of a query. The difference of two timestamps can be used to determine how many ticks have elapsed, and the query will determine if that difference is a reliable value and also has a value that shows how to convert the number of ticks into seconds. See . When using this type of query, is disabled.

+
+ + ff476191 + D3D11_QUERY_TIMESTAMP + D3D11_QUERY_TIMESTAMP +
+ + +

Determines whether or not a is returning reliable values, and also gives the frequency of the processor enabling you to convert the number of elapsed ticks into seconds. will return a . This type of query should only be invoked once per frame or less.

+
+ + ff476191 + D3D11_QUERY_TIMESTAMP_DISJOINT + D3D11_QUERY_TIMESTAMP_DISJOINT +
+ + +

Get pipeline statistics, such as the number of pixel shader invocations in between and . will return a .

+
+ + ff476191 + D3D11_QUERY_PIPELINE_STATISTICS + D3D11_QUERY_PIPELINE_STATISTICS +
+ + +

Similar to , except returns a indicating whether or not any samples passed the depth and stencil tests - TRUE meaning at least one passed, meaning none passed.

+
+ + ff476191 + D3D11_QUERY_OCCLUSION_PREDICATE + D3D11_QUERY_OCCLUSION_PREDICATE +
+ + +

Get streaming output statistics, such as the number of primitives streamed out in between and . will return a structure.

+
+ + ff476191 + D3D11_QUERY_SO_STATISTICS + D3D11_QUERY_SO_STATISTICS +
+ + +

Determines whether or not any of the streaming output buffers overflowed in between and . returns a - TRUE meaning there was an overflow, meaning there was not an overflow. If streaming output writes to multiple buffers, and one of the buffers overflows, then it will stop writing to all the output buffers. When an overflow is detected by Direct3D it is prevented from happening - no memory is corrupted. This predication may be used in conjunction with an SO_STATISTICS query so that when an overflow occurs the SO_STATISTIC query will let the application know how much memory was needed to prevent an overflow.

+
+ + ff476191 + D3D11_QUERY_SO_OVERFLOW_PREDICATE + D3D11_QUERY_SO_OVERFLOW_PREDICATE +
+ + +

Get streaming output statistics for stream 0, such as the number of primitives streamed out in between and . will return a structure.

+
+ + ff476191 + D3D11_QUERY_SO_STATISTICS_STREAM0 + D3D11_QUERY_SO_STATISTICS_STREAM0 +
+ + +

Determines whether or not the stream 0 output buffers overflowed in between and . returns a - TRUE meaning there was an overflow, meaning there was not an overflow. If streaming output writes to multiple buffers, and one of the buffers overflows, then it will stop writing to all the output buffers. When an overflow is detected by Direct3D it is prevented from happening - no memory is corrupted. This predication may be used in conjunction with an SO_STATISTICS query so that when an overflow occurs the SO_STATISTIC query will let the application know how much memory was needed to prevent an overflow.

+
+ + ff476191 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM0 +
+ + +

Get streaming output statistics for stream 1, such as the number of primitives streamed out in between and . will return a structure.

+
+ + ff476191 + D3D11_QUERY_SO_STATISTICS_STREAM1 + D3D11_QUERY_SO_STATISTICS_STREAM1 +
+ + +

Determines whether or not the stream 1 output buffers overflowed in between and . returns a - TRUE meaning there was an overflow, meaning there was not an overflow. If streaming output writes to multiple buffers, and one of the buffers overflows, then it will stop writing to all the output buffers. When an overflow is detected by Direct3D it is prevented from happening - no memory is corrupted. This predication may be used in conjunction with an SO_STATISTICS query so that when an overflow occurs the SO_STATISTIC query will let the application know how much memory was needed to prevent an overflow.

+
+ + ff476191 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM1 +
+ + +

Get streaming output statistics for stream 2, such as the number of primitives streamed out in between and . will return a structure.

+
+ + ff476191 + D3D11_QUERY_SO_STATISTICS_STREAM2 + D3D11_QUERY_SO_STATISTICS_STREAM2 +
+ + +

Determines whether or not the stream 2 output buffers overflowed in between and . returns a - TRUE meaning there was an overflow, meaning there was not an overflow. If streaming output writes to multiple buffers, and one of the buffers overflows, then it will stop writing to all the output buffers. When an overflow is detected by Direct3D it is prevented from happening - no memory is corrupted. This predication may be used in conjunction with an SO_STATISTICS query so that when an overflow occurs the SO_STATISTIC query will let the application know how much memory was needed to prevent an overflow.

+
+ + ff476191 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM2 +
+ + +

Get streaming output statistics for stream 3, such as the number of primitives streamed out in between and . will return a structure.

+
+ + ff476191 + D3D11_QUERY_SO_STATISTICS_STREAM3 + D3D11_QUERY_SO_STATISTICS_STREAM3 +
+ + +

Determines whether or not the stream 3 output buffers overflowed in between and . returns a - TRUE meaning there was an overflow, meaning there was not an overflow. If streaming output writes to multiple buffers, and one of the buffers overflows, then it will stop writing to all the output buffers. When an overflow is detected by Direct3D it is prevented from happening - no memory is corrupted. This predication may be used in conjunction with an SO_STATISTICS query so that when an overflow occurs the SO_STATISTIC query will let the application know how much memory was needed to prevent an overflow.

+
+ + ff476191 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3 + D3D11_QUERY_SO_OVERFLOW_PREDICATE_STREAM3 +
+ + +

These flags identify the type of resource that will be viewed as a render target.

+
+ +

This enumeration is used in to create a render-target view.

+
+ + ff476206 + D3D11_RTV_DIMENSION + D3D11_RTV_DIMENSION +
+ + +

Do not use this value, as it will cause to fail.

+
+ + ff476206 + D3D11_RTV_DIMENSION_UNKNOWN + D3D11_RTV_DIMENSION_UNKNOWN +
+ + +

The resource will be accessed as a buffer.

+
+ + ff476206 + D3D11_RTV_DIMENSION_BUFFER + D3D11_RTV_DIMENSION_BUFFER +
+ + +

The resource will be accessed as a 1D texture.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE1D + D3D11_RTV_DIMENSION_TEXTURE1D +
+ + +

The resource will be accessed as an array of 1D textures.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE1DARRAY + D3D11_RTV_DIMENSION_TEXTURE1DARRAY +
+ + +

The resource will be accessed as a 2D texture.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE2D + D3D11_RTV_DIMENSION_TEXTURE2D +
+ + +

The resource will be accessed as an array of 2D textures.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE2DARRAY + D3D11_RTV_DIMENSION_TEXTURE2DARRAY +
+ + +

The resource will be accessed as a 2D texture with multisampling.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE2DMS + D3D11_RTV_DIMENSION_TEXTURE2DMS +
+ + +

The resource will be accessed as an array of 2D textures with multisampling.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY + D3D11_RTV_DIMENSION_TEXTURE2DMSARRAY +
+ + +

The resource will be accessed as a 3D texture.

+
+ + ff476206 + D3D11_RTV_DIMENSION_TEXTURE3D + D3D11_RTV_DIMENSION_TEXTURE3D +
+ + +

Options for the amount of information to report about a device object's lifetime.

+
+ +

This enumeration is used by .

Several inline functions exist to combine the options using operators, see the D3D11SDKLayers.h header file for details.

+
+ + ff476205 + D3D11_RLDO_FLAGS + D3D11_RLDO_FLAGS +
+ + +

Specifies to obtain a summary about a device object's lifetime.

+
+ + ff476205 + D3D11_RLDO_SUMMARY + D3D11_RLDO_SUMMARY +
+ + +

Specifies to obtain detailed information about a device object's lifetime.

+
+ + ff476205 + D3D11_RLDO_DETAIL + D3D11_RLDO_DETAIL +
+ + + None. + + + None + None + + + +

Identifies the type of resource being used.

+
+ +

This enumeration is used in .

+
+ + ff476202 + D3D11_RESOURCE_DIMENSION + D3D11_RESOURCE_DIMENSION +
+ + +

Resource is of unknown type.

+
+ + ff476202 + D3D11_RESOURCE_DIMENSION_UNKNOWN + D3D11_RESOURCE_DIMENSION_UNKNOWN +
+ + +

Resource is a buffer.

+
+ + ff476202 + D3D11_RESOURCE_DIMENSION_BUFFER + D3D11_RESOURCE_DIMENSION_BUFFER +
+ + +

Resource is a 1D texture.

+
+ + ff476202 + D3D11_RESOURCE_DIMENSION_TEXTURE1D + D3D11_RESOURCE_DIMENSION_TEXTURE1D +
+ + +

Resource is a 2D texture.

+
+ + ff476202 + D3D11_RESOURCE_DIMENSION_TEXTURE2D + D3D11_RESOURCE_DIMENSION_TEXTURE2D +
+ + +

Resource is a 3D texture.

+
+ + ff476202 + D3D11_RESOURCE_DIMENSION_TEXTURE3D + D3D11_RESOURCE_DIMENSION_TEXTURE3D +
+ + +

Identifies options for resources.

+
+ +

This enumeration is used in , , , .

These flags can be combined by bitwise OR.

The cannot be used when creating resources with D3D11_CPU_ACCESS flags.

+
+ + ff476203 + D3D11_RESOURCE_MISC_FLAG + D3D11_RESOURCE_MISC_FLAG +
+ + +

Enables MIP map generation by using on a texture resource. The resource must be created with the bind flags that specify that the resource is a render target and a shader resource.

+
+ + ff476203 + D3D11_RESOURCE_MISC_GENERATE_MIPS + D3D11_RESOURCE_MISC_GENERATE_MIPS +
+ + +

Enables resource data sharing between two or more Direct3D devices. The only resources that can be shared are 2D non-mipmapped textures.

and are mutually exclusive.

WARP and REF devices do not support shared resources. If you try to create a resource with this flag on either a WARP or REF device, the create method will return an E_OUTOFMEMORY error code.

Note??Starting with Windows?8, WARP devices fully support shared resources.

Note??Starting with Windows?8, we recommend that you enable resource data sharing between two or more Direct3D devices by using a combination of the D3D11_RESOURCE_MISC_SHARED_NTHANDLE and flags instead.

+
+ + ff476203 + D3D11_RESOURCE_MISC_SHARED + D3D11_RESOURCE_MISC_SHARED +
+ + +

Sets a resource to be a cube texture created from a Texture2DArray that contains 6 textures.

+
+ + ff476203 + D3D11_RESOURCE_MISC_TEXTURECUBE + D3D11_RESOURCE_MISC_TEXTURECUBE +
+ + +

Enables instancing of GPU-generated content.

+
+ + ff476203 + D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS + D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS +
+ + +

Enables a resource as a byte address buffer.

+
+ + ff476203 + D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS + D3D11_RESOURCE_MISC_BUFFER_ALLOW_RAW_VIEWS +
+ + +

Enables a resource as a structured buffer.

+
+ + ff476203 + D3D11_RESOURCE_MISC_BUFFER_STRUCTURED + D3D11_RESOURCE_MISC_BUFFER_STRUCTURED +
+ + +

Enables a resource with MIP map clamping for use with .

+
+ + ff476203 + D3D11_RESOURCE_MISC_RESOURCE_CLAMP + D3D11_RESOURCE_MISC_RESOURCE_CLAMP +
+ + +

Enables the resource to be synchronized by using the and APIs. The following Direct3D?11 resource creation APIs, that take parameters, have been extended to support the new flag.

If you call any of these methods with the flag set, the interface returned will support the interface. You can retrieve a reference to the interface from the resource by using IUnknown::QueryInterface. The interface implements the and APIs to synchronize access to the surface. The device that creates the surface, and any other device that opens the surface by using OpenSharedResource, must call before they issue any rendering commands to the surface. When those devices finish rendering, they must call .

and are mutually exclusive.

WARP and REF devices do not support shared resources. If you try to create a resource with this flag on either a WARP or REF device, the create method will return an E_OUTOFMEMORY error code.

Note??Starting with Windows?8, WARP devices fully support shared resources.

+
+ + ff476203 + D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX + D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX +
+ + +

Enables a resource compatible with GDI. You must set the flag on surfaces that you use with GDI. Setting the flag allows GDI rendering on the surface via . +

Consider the following programming tips for using when you create a texture or use that texture in a swap chain:

  • and are mutually exclusive. Therefore, do not use them together.
  • and are mutually exclusive. Therefore, do not use them together.
  • You must bind the texture as a render target for the output-merger stage. For example, set the flag in the BindFlags member of the structure.
  • You must set the maximum number of MIP map levels to 1. For example, set the MipLevels member of the structure to 1.
  • You must specify that the texture requires read and write access by the GPU. For example, set the Usage member of the structure to .
  • You must set the texture format to one of the following types.

    • +
    • +
    For example, set the Format member of the structure to one of these types.
  • You cannot use with multisampling. Therefore, set the Count member of the structure to 1. Then, set the SampleDesc member of the structure to this structure.
+
+ + ff476203 + D3D11_RESOURCE_MISC_GDI_COMPATIBLE + D3D11_RESOURCE_MISC_GDI_COMPATIBLE +
+ + + None. + + + None + None + + + +

Identifies expected resource use during rendering. The usage directly reflects whether a resource is accessible by the CPU and/or the graphics processing unit (GPU).

+
+ +

An application identifies the way a resource is intended to be used (its usage) in a resource description. There are several structures for creating resources including: , , , and .

Differences between Direct3D 9 and Direct3D 10/11:

In Direct3D 9, you specify the type of memory a resource should be created in at resource creation time (using ). It was an application's job to decide what memory pool would provide the best combination of functionality and performance.

In Direct3D 10/11, an application no longer specifies what type of memory (the pool) to create a resource in. Instead, you specify the intended usage of the resource, and let the runtime (in concert with the driver and a memory manager) choose the type of memory that will achieve the best performance.

?

+
+ + ff476259 + D3D11_USAGE + D3D11_USAGE +
+ + +

A resource that requires read and write access by the GPU. This is likely to be the most common usage choice.

+
+ + ff476259 + D3D11_USAGE_DEFAULT + D3D11_USAGE_DEFAULT +
+ + +

A resource that can only be read by the GPU. It cannot be written by the GPU, and cannot be accessed at all by the CPU. This type of resource must be initialized when it is created, since it cannot be changed after creation.

+
+ + ff476259 + D3D11_USAGE_IMMUTABLE + D3D11_USAGE_IMMUTABLE +
+ + +

A resource that is accessible by both the GPU (read only) and the CPU (write only). A dynamic resource is a good choice for a resource that will be updated by the CPU at least once per frame. To update a dynamic resource, use a Map method.

For info about how to use dynamic resources, see How to: Use dynamic resources.

+
+ + ff476259 + D3D11_USAGE_DYNAMIC + D3D11_USAGE_DYNAMIC +
+ + +

A resource that supports data transfer (copy) from the GPU to the CPU.

+
+ + ff476259 + D3D11_USAGE_STAGING + D3D11_USAGE_STAGING +
+ + +

Type for scan data.

+
+ + ff476322 + D3DX11_SCAN_DATA_TYPE + D3DX11_SCAN_DATA_TYPE +
+ + +

FLOAT data.

+
+ + ff476322 + D3DX11_SCAN_DATA_TYPE_FLOAT + D3DX11_SCAN_DATA_TYPE_FLOAT +
+ + +

INT data.

+
+ + ff476322 + D3DX11_SCAN_DATA_TYPE_INT + D3DX11_SCAN_DATA_TYPE_INT +
+ + +

UINT data.

+
+ + ff476322 + D3DX11_SCAN_DATA_TYPE_UINT + D3DX11_SCAN_DATA_TYPE_UINT +
+ + +

Direction to perform scan in.

+
+ + ff476323 + D3DX11_SCAN_DIRECTION + D3DX11_SCAN_DIRECTION +
+ + +

Scan forward.

+
+ + ff476323 + D3DX11_SCAN_DIRECTION_FORWARD + D3DX11_SCAN_DIRECTION_FORWARD +
+ + +

Scan backward.

+
+ + ff476323 + D3DX11_SCAN_DIRECTION_BACKWARD + D3DX11_SCAN_DIRECTION_BACKWARD +
+ + +

Scan opcodes.

+
+ + ff476324 + D3DX11_SCAN_OPCODE + D3DX11_SCAN_OPCODE +
+ + +

Add values.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_ADD + D3DX11_SCAN_OPCODE_ADD +
+ + +

Take the minimum value.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_MIN + D3DX11_SCAN_OPCODE_MIN +
+ + +

Take the maximum value.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_MAX + D3DX11_SCAN_OPCODE_MAX +
+ + +

Multiply the values.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_MUL + D3DX11_SCAN_OPCODE_MUL +
+ + +

Perform a logical AND on the values.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_AND + D3DX11_SCAN_OPCODE_AND +
+ + +

Perform a logical OR on the values.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_OR + D3DX11_SCAN_OPCODE_OR +
+ + +

Perform a logical XOR on the values.

+
+ + ff476324 + D3DX11_SCAN_OPCODE_XOR + D3DX11_SCAN_OPCODE_XOR +
+ + +

Identifies how to view a buffer resource.

+
+ +

This enumeration is used by

+
+ + ff476091 + D3D11_BUFFEREX_SRV_FLAG + D3D11_BUFFEREX_SRV_FLAG +
+ + +

View the buffer as raw. For more info about raw viewing of buffers, see Raw Views of Buffers.

+
+ + ff476091 + D3D11_BUFFEREX_SRV_FLAG_RAW + D3D11_BUFFEREX_SRV_FLAG_RAW +
+ + + None. + + + None + None + + + +

Specifies a multi-sample pattern type.

+
+ +

An app calls to get the number of quality levels available during multisampling. A 0 quality level means the hardware does not support multisampling for the particular format. If the number of quality levels is greater than 0 and the hardware supports the fixed sample patterns for the sample count, the app can request the fixed patterns by specifying quality level as either or . The app can call to check for support of the standard fixed patterns. If the hardware only supports the fixed patterns but no additional vendor-specific patterns, the runtime can report the number of quality levels as 1, and the hardware can pretend 0 quality level behaves the same as quality level equal to .

The runtime defines the following standard sample patterns for 1(trivial), 2, 4, 8, and 16 sample counts. Hardware must support 1, 4, and 8 sample counts. Hardware vendors can expose more sample counts beyond these. However, if vendors support 2, 4(required), 8(required), or 16, they must also support the corresponding standard pattern or center pattern for each of those sample counts.

+
+ + ff476218 + D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS + D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS +
+ + +

Pre-defined multi-sample patterns required for Direct3D?11 and Direct3D?10.1 hardware.

+
+ + ff476218 + D3D11_STANDARD_MULTISAMPLE_PATTERN + D3D11_STANDARD_MULTISAMPLE_PATTERN +
+ + +

Pattern where all of the samples are located at the pixel center.

+
+ + ff476218 + D3D11_CENTER_MULTISAMPLE_PATTERN + D3D11_CENTER_MULTISAMPLE_PATTERN +
+ + +

The stencil operations that can be performed during depth-stencil testing.

+
+ + ff476219 + D3D11_STENCIL_OP + D3D11_STENCIL_OP +
+ + +

Keep the existing stencil data.

+
+ + ff476219 + D3D11_STENCIL_OP_KEEP + D3D11_STENCIL_OP_KEEP +
+ + +

Set the stencil data to 0.

+
+ + ff476219 + D3D11_STENCIL_OP_ZERO + D3D11_STENCIL_OP_ZERO +
+ + +

Set the stencil data to the reference value set by calling .

+
+ + ff476219 + D3D11_STENCIL_OP_REPLACE + D3D11_STENCIL_OP_REPLACE +
+ + +

Increment the stencil value by 1, and clamp the result.

+
+ + ff476219 + D3D11_STENCIL_OP_INCR_SAT + D3D11_STENCIL_OP_INCR_SAT +
+ + +

Decrement the stencil value by 1, and clamp the result.

+
+ + ff476219 + D3D11_STENCIL_OP_DECR_SAT + D3D11_STENCIL_OP_DECR_SAT +
+ + +

Invert the stencil data.

+
+ + ff476219 + D3D11_STENCIL_OP_INVERT + D3D11_STENCIL_OP_INVERT +
+ + +

Increment the stencil value by 1, and wrap the result if necessary.

+
+ + ff476219 + D3D11_STENCIL_OP_INCR + D3D11_STENCIL_OP_INCR +
+ + +

Decrement the stencil value by 1, and wrap the result if necessary.

+
+ + ff476219 + D3D11_STENCIL_OP_DECR + D3D11_STENCIL_OP_DECR +
+ + +

Identify a technique for resolving texture coordinates that are outside of the boundaries of a texture.

+
+ + ff476256 + D3D11_TEXTURE_ADDRESS_MODE + D3D11_TEXTURE_ADDRESS_MODE +
+ + +

Tile the texture at every (u,v) integer junction. For example, for u values between 0 and 3, the texture is repeated three times.

+
+ + ff476256 + D3D11_TEXTURE_ADDRESS_WRAP + D3D11_TEXTURE_ADDRESS_WRAP +
+ + +

Flip the texture at every (u,v) integer junction. For u values between 0 and 1, for example, the texture is addressed normally; between 1 and 2, the texture is flipped (mirrored); between 2 and 3, the texture is normal again; and so on.

+
+ + ff476256 + D3D11_TEXTURE_ADDRESS_MIRROR + D3D11_TEXTURE_ADDRESS_MIRROR +
+ + +

Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively.

+
+ + ff476256 + D3D11_TEXTURE_ADDRESS_CLAMP + D3D11_TEXTURE_ADDRESS_CLAMP +
+ + +

Texture coordinates outside the range [0.0, 1.0] are set to the border color specified in or HLSL code.

+
+ + ff476256 + D3D11_TEXTURE_ADDRESS_BORDER + D3D11_TEXTURE_ADDRESS_BORDER +
+ + +

Similar to and . Takes the absolute value of the texture coordinate (thus, mirroring around 0), and then clamps to the maximum value.

+
+ + ff476256 + D3D11_TEXTURE_ADDRESS_MIRROR_ONCE + D3D11_TEXTURE_ADDRESS_MIRROR_ONCE +
+ + +

The different faces of a cube texture.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE + D3D11_TEXTURECUBE_FACE +
+ + +

Positive X face.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE_POSITIVE_X + D3D11_TEXTURECUBE_FACE_POSITIVE_X +
+ + +

Negative X face.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE_NEGATIVE_X + D3D11_TEXTURECUBE_FACE_NEGATIVE_X +
+ + +

Positive Y face.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE_POSITIVE_Y + D3D11_TEXTURECUBE_FACE_POSITIVE_Y +
+ + +

Negative Y face.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE_NEGATIVE_Y + D3D11_TEXTURECUBE_FACE_NEGATIVE_Y +
+ + +

Positive Z face.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE_POSITIVE_Z + D3D11_TEXTURECUBE_FACE_POSITIVE_Z +
+ + +

Negative Z face.

+
+ + ff476255 + D3D11_TEXTURECUBE_FACE_NEGATIVE_Z + D3D11_TEXTURECUBE_FACE_NEGATIVE_Z +
+ + +

Identifies unordered-access view options for a buffer resource.

+
+ + ff476096 + D3D11_BUFFER_UAV_FLAG + D3D11_BUFFER_UAV_FLAG +
+ + +

Resource contains raw, unstructured data. Requires the UAV format to be . For more info about raw viewing of buffers, see Raw Views of Buffers.

+
+ + ff476096 + D3D11_BUFFER_UAV_FLAG_RAW + D3D11_BUFFER_UAV_FLAG_RAW +
+ + +

Allow data to be appended to the end of the buffer. flag must also be used for any view that will be used as a AppendStructuredBuffer or a ConsumeStructuredBuffer. Requires the UAV format to be .

+
+ + ff476096 + D3D11_BUFFER_UAV_FLAG_APPEND + D3D11_BUFFER_UAV_FLAG_APPEND +
+ + +

Adds a counter to the unordered-access-view buffer. can only be used on a UAV that is a RWStructuredBuffer and it enables the functionality needed for the IncrementCounter and DecrementCounter methods in HLSL. Requires the UAV format to be .

+
+ + ff476096 + D3D11_BUFFER_UAV_FLAG_COUNTER + D3D11_BUFFER_UAV_FLAG_COUNTER +
+ + + None. + + + None + None + + + +

Unordered-access view options.

+
+ +

This enumeration is used by a unordered access-view description (see ).

+
+ + ff476257 + D3D11_UAV_DIMENSION + D3D11_UAV_DIMENSION +
+ + +

The view type is unknown.

+
+ + ff476257 + D3D11_UAV_DIMENSION_UNKNOWN + D3D11_UAV_DIMENSION_UNKNOWN +
+ + +

View the resource as a buffer.

+
+ + ff476257 + D3D11_UAV_DIMENSION_BUFFER + D3D11_UAV_DIMENSION_BUFFER +
+ + +

View the resource as a 1D texture.

+
+ + ff476257 + D3D11_UAV_DIMENSION_TEXTURE1D + D3D11_UAV_DIMENSION_TEXTURE1D +
+ + +

View the resource as a 1D texture array.

+
+ + ff476257 + D3D11_UAV_DIMENSION_TEXTURE1DARRAY + D3D11_UAV_DIMENSION_TEXTURE1DARRAY +
+ + +

View the resource as a 2D texture.

+
+ + ff476257 + D3D11_UAV_DIMENSION_TEXTURE2D + D3D11_UAV_DIMENSION_TEXTURE2D +
+ + +

View the resource as a 2D texture array.

+
+ + ff476257 + D3D11_UAV_DIMENSION_TEXTURE2DARRAY + D3D11_UAV_DIMENSION_TEXTURE2DARRAY +
+ + +

View the resource as a 3D texture array.

+
+ + ff476257 + D3D11_UAV_DIMENSION_TEXTURE3D + D3D11_UAV_DIMENSION_TEXTURE3D +
+ + + Functions + + + + + Constant SdkVersion. + D3D11_SDK_VERSION + + + +

Creates a device that represents the display adapter.

+
+

A reference to the video adapter to use when creating a device. Pass null to use the default adapter, which is the first adapter that is enumerated by IDXGIFactory1::EnumAdapters.

Note??Do not mix the use of DXGI 1.0 () and DXGI 1.1 () in an application. Use or , but not both in an application.

+

The , which represents the driver type to create.

+

A handle to a DLL that implements a software rasterizer. If DriverType is , Software must not be null. Get the handle by calling LoadLibrary, LoadLibraryEx , or GetModuleHandle.

+

The runtime layers to enable (see ); values can be bitwise OR'd together.

+

A reference to an array of s, which determine the order of feature levels to attempt to create. If pFeatureLevels is set to null, this function uses the following array of feature levels:

 { , , , , , ,}; 

Note??If the Direct3D 11.1 runtime is present on the computer and pFeatureLevels is set to null, this function won't create a D3D_FEATURE_LEVEL_11_1 device. To create a D3D_FEATURE_LEVEL_11_1 device, you must explicitly provide a array that includes D3D_FEATURE_LEVEL_11_1. If you provide a array that contains D3D_FEATURE_LEVEL_11_1 on a computer that doesn't have the Direct3D 11.1 runtime installed, this function immediately fails with E_INVALIDARG.

+

The number of elements in pFeatureLevels.

+

The SDK version; use .

+

Returns the address of a reference to an object that represents the device created.

+

If successful, returns the first from the pFeatureLevels array which succeeded. Otherwise, returns 0.

+

Returns the address of a reference to an object that represents the device context.

+

This method can return one of the Direct3D 11 Return Codes.

This method returns E_INVALIDARG if you set the pAdapter parameter to a non-null value and the DriverType parameter to the value.

+ +

This entry-point is supported by the Direct3D 11 runtime, which is available on Windows 7, Windows Server 2008 R2, and as an update to Windows Vista (KB971644).

To create a Direct3D 11.1 device (ID3D11Device1), which is available on Windows?8, Windows Server?2012, and Windows?7 and Windows Server?2008?R2 with the Platform Update for Windows 7 installed, you first create a with this function, and then call the QueryInterface method on the object to obtain the ID3D11Device1 interface. +

To create a Direct3D 11.2 device (ID3D11Device2), which is available on Windows?8.1 and Windows Server?2012?R2, you first create a with this function, and then call the QueryInterface method on the object to obtain the ID3D11Device2 interface. +

Set ppDevice and ppImmediateContext to null to determine which feature level is supported by looking at pFeatureLevel without creating a device.

For an example, see How To: Create a Device and Immediate Context; to create a device and a swap chain at the same time, use .

If you set the pAdapter parameter to a non-null value, you must also set the DriverType parameter to the value. If you set the pAdapter parameter to a non-null value and the DriverType parameter to the value, returns an of E_INVALIDARG.

Differences between Direct3D 10 and Direct3D 11:

In Direct3D 10, the presence of pAdapter dictated which adapter to use and the DriverType could mismatch what the adapter was.

In Direct3D 11, if you are trying to create a hardware or a software device, set pAdapter != null which constrains the other inputs to be:

  • DriverType must be
  • Software must be null.

On the other hand, if pAdapter == null, the DriverType cannot be set to ; it can be set to either:

  • If DriverType == , Software cannot be null.
  • If DriverType == , the adapter used will be the default adapter, which is the first adapter that is enumerated by IDXGIFactory1::EnumAdapters

?

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ff476082 + HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDevice +
+ + +

Creates a device that represents the display adapter and a swap chain used for rendering.

+
+

A reference to the video adapter to use when creating a device. Pass null to use the default adapter, which is the first adapter enumerated by IDXGIFactory1::EnumAdapters.

Note??Do not mix the use of DXGI 1.0 () and DXGI 1.1 () in an application. Use or , but not both in an application.

+

The , which represents the driver type to create.

+

A handle to a DLL that implements a software rasterizer. If DriverType is , Software must not be null. Get the handle by calling LoadLibrary, LoadLibraryEx , or GetModuleHandle. The value should be non-null when is and null otherwise.

+

The runtime layers to enable (see ); values can be bitwise OR'd together.

+

A reference to an array of s, which determine the order of feature levels to attempt to create. If pFeatureLevels is set to null, this function uses the following array of feature levels:

 { , , , , , ,}; 

Note??If the Direct3D 11.1 runtime is present on the computer and pFeatureLevels is set to null, this function won't create a D3D_FEATURE_LEVEL_11_1 device. To create a D3D_FEATURE_LEVEL_11_1 device, you must explicitly provide a array that includes D3D_FEATURE_LEVEL_11_1. If you provide a array that contains D3D_FEATURE_LEVEL_11_1 on a computer that doesn't have the Direct3D 11.1 runtime installed, this function immediately fails with E_INVALIDARG.

+

The number of elements in pFeatureLevels.

+

The SDK version; use .

+

A reference to a swap chain description (see ) that contains initialization parameters for the swap chain.

+

Returns the address of a reference to the object that represents the swap chain used for rendering.

+

Returns the address of a reference to an object that represents the device created. Supply null as an input to return the highest supported feature level in pFeatureLevel.

+

Returns a reference to a , which represents the first element in an array of feature levels supported by the device.

+

Returns the address of a reference to an object that represents the device context.

+

This method can return one of the Direct3D 11 Return Codes.

This method returns if you call it in a Session 0 process.

This method returns E_INVALIDARG if you set the pAdapter parameter to a non-null value and the DriverType parameter to the value.

+ +

Note??If you call this method in a Session 0 process, it returns .

This entry-point is supported by the Direct3D 11 runtime, which is available on Windows 7, Windows Server 2008 R2, and as an update to Windows Vista (KB971644).

To create a Direct3D 11.1 device (ID3D11Device1), which is available on Windows?8, Windows Server?2012, and Windows?7 and Windows Server?2008?R2 with the Platform Update for Windows 7 installed, you first create a with this function, and then call the QueryInterface method on the object to obtain the ID3D11Device1 interface. +

To create a Direct3D 11.2 device (ID3D11Device2), which is available on Windows?8.1 and Windows Server?2012?R2, you first create a with this function, and then call the QueryInterface method on the object to obtain the ID3D11Device2 interface. +

Also, see the remarks section in for details about input parameter dependencies. To create a device without creating a swap chain, use the function.

If you set the pAdapter parameter to a non-null value, you must also set the DriverType parameter to the value. If you set the pAdapter parameter to a non-null value and the DriverType parameter to the value, returns an of E_INVALIDARG.

+
+ + ff476083 + HRESULT D3D11CreateDeviceAndSwapChain([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[In] const DXGI_SWAP_CHAIN_DESC* pSwapChainDesc,[Out, Optional] IDXGISwapChain** ppSwapChain,[Out, Optional] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext) + D3D11CreateDeviceAndSwapChain +
+ + + Functions + + + + + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476277 + HRESULT D3DX11CreateFFT2DComplex([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int X,[In] unsigned int Y,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + D3DX11CreateFFT2DComplex +
+ + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476276 + HRESULT D3DX11CreateFFT1DReal([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int X,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + D3DX11CreateFFT1DReal +
+ + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476274 + HRESULT D3DX11CreateFFT([In] ID3D11DeviceContext* pDeviceContext,[In] const D3DX11_FFT_DESC* pDesc,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out, Fast] ID3DX11FFT** ppFFT) + D3DX11CreateFFT +
+ + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476278 + HRESULT D3DX11CreateFFT2DReal([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int X,[In] unsigned int Y,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + D3DX11CreateFFT2DReal +
+ + +

Creates a scan context.

+
+

The the scan is associated with.

+

Maximum single scan size, in elements (FLOAT, UINT, or INT)

+

Maximum number of scans in multiscan.

+

Pointer to a Interface reference that will be set to the created interface object.

+

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476281 + HRESULT D3DX11CreateScan([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int MaxElementScanSize,[In] unsigned int MaxScanCount,[Out, Fast] ID3DX11Scan** ppScan) + D3DX11CreateScan +
+ + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476279 + HRESULT D3DX11CreateFFT3DComplex([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int X,[In] unsigned int Y,[In] unsigned int Z,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + D3DX11CreateFFT3DComplex +
+ + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476275 + HRESULT D3DX11CreateFFT1DComplex([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int X,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + D3DX11CreateFFT1DComplex +
+ + +

Creates a segmented scan context.

+
+

Pointer to an interface.

+

Maximum single scan size, in elements (FLOAT, UINT, or INT).

+

Pointer to a Interface reference that will be set to the created interface object.

+

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476282 + HRESULT D3DX11CreateSegmentedScan([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int MaxElementScanSize,[Out, Fast] ID3DX11SegmentedScan** ppScan) + D3DX11CreateSegmentedScan +
+ + +

Creates an COM interface object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476280 + HRESULT D3DX11CreateFFT3DReal([In] ID3D11DeviceContext* pDeviceContext,[In] unsigned int X,[In] unsigned int Y,[In] unsigned int Z,[In] unsigned int Flags,[Out] D3DX11_FFT_BUFFER_INFO* pBufferInfo,[Out] ID3DX11FFT** ppFFT) + D3DX11CreateFFT3DReal +
+ + + Functions + + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT D3DX11CheckVersion([In] unsigned int D3DSdkVersion,[In] unsigned int D3DX11SdkVersion) + D3DX11CheckVersion + + + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use these:

  • DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
  • DirectXTex library (tools), + LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateShaderResourceView

Create a shader-resource view from a file in memory.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476284 + HRESULT D3DX11CreateShaderResourceViewFromMemory([In] ID3D11Device* pDevice,[In] const void* pSrcData,[In] SIZE_T SrcDataSize,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[In] ID3DX11ThreadPump* pPump,[In] ID3D11ShaderResourceView** ppShaderResourceView,[Out] HRESULT* pHResult) + D3DX11CreateShaderResourceViewFromMemory +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the Spherical Harmonics Math library, SHProjectCubeMap.

Projects a function represented in a cube map into spherical harmonics.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476300 + HRESULT D3DX11SHProjectCubeMap([In] ID3D11DeviceContext* pContext,[In] unsigned int Order,[In] ID3D11Texture2D* pCubeMap,[Out, Buffer] float* pROut,[Out, Buffer, Optional] float* pGOut,[Out, Buffer, Optional] float* pBOut) + D3DX11SHProjectCubeMap +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use resource functions, then these:

  • DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
  • DirectXTex library (tools), + LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateTexture

Create a texture from another resource.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476288 + HRESULT D3DX11CreateTextureFromResourceW([In] ID3D11Device* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[In] ID3DX11ThreadPump* pPump,[Out] void** ppTexture,[Out] HRESULT* pHResult) + D3DX11CreateTextureFromResourceW +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, CaptureTexture then SaveToXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).

Save a texture to memory.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476299 + HRESULT D3DX11SaveTextureToMemory([In] ID3D11DeviceContext* pContext,[In] ID3D11Resource* pSrcTexture,[In] D3DX11_IMAGE_FILE_FORMAT DestFormat,[Out] ID3D10Blob** ppDestBuf,[In] unsigned int Flags) + D3DX11SaveTextureToMemory +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use resource functions, then use DirectXTex library (tools), + LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).

Retrieves information about a given image in a resource.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be the following:

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DX11GetImageInfoFromResourceA because ANSI strings are being used.

+
+ + ff476293 + HRESULT D3DX11GetImageInfoFromResourceW([In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] ID3DX11ThreadPump* pPump,[In] D3DX11_IMAGE_INFO* pSrcInfo,[Out] HRESULT* pHResult) + D3DX11GetImageInfoFromResourceW +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use these:

  • DirectXTK library (runtime), CreateXXXTextureFromFile (where XXX is DDS or WIC)
  • DirectXTex library (tools), + LoadFromXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateShaderResourceView

Create a shader-resource view from a file.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ +

For a list of supported image formats, see .

+
+ + ff476283 + HRESULT D3DX11CreateShaderResourceViewFromFileW([In] ID3D11Device* pDevice,[In] const wchar_t* pSrcFile,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[In] ID3DX11ThreadPump* pPump,[In] ID3D11ShaderResourceView** ppShaderResourceView,[Out] HRESULT* pHResult) + D3DX11CreateShaderResourceViewFromFileW +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use these:

  • DirectXTK library (runtime), CreateXXXTextureFromFile (where XXX is DDS or WIC)
  • DirectXTex library (tools), + LoadFromXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateTexture

Create a texture resource from a file.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476286 + HRESULT D3DX11CreateTextureFromFileW([In] ID3D11Device* pDevice,[In] const wchar_t* pSrcFile,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[In] ID3DX11ThreadPump* pPump,[Out] void** ppTexture,[Out] HRESULT* pHResult) + D3DX11CreateTextureFromFileW +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, GenerateMipMaps and GenerateMipMaps3D.

Generates mipmap chain using a particular texture filter.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476290 + HRESULT D3DX11FilterTexture([In] ID3D11DeviceContext* pContext,[In] ID3D11Resource* pTexture,[In] unsigned int SrcLevel,[In] unsigned int MipFilter) + D3DX11FilterTexture +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, GetMetadataFromXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).

Retrieves information about a given image file.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be the following:

+ +

This function supports both Unicode and ANSI strings.

+
+ + ff476291 + HRESULT D3DX11GetImageInfoFromFileW([In] const wchar_t* pSrcFile,[In] ID3DX11ThreadPump* pPump,[In] D3DX11_IMAGE_INFO* pSrcInfo,[Out] HRESULT* pHResult) + D3DX11GetImageInfoFromFileW +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use resource functions, then these:

  • DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
  • DirectXTex library (tools), + LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateShaderResourceView

Create a shader-resource view from a resource.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476285 + HRESULT D3DX11CreateShaderResourceViewFromResourceW([In] ID3D11Device* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[In] ID3DX11ThreadPump* pPump,[In] ID3D11ShaderResourceView** ppShaderResourceView,[Out] HRESULT* pHResult) + D3DX11CreateShaderResourceViewFromResourceW +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, Resize, Convert, Compress, Decompress, and/or CopyRectangle.

Load a texture from a texture.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476294 + HRESULT D3DX11LoadTextureFromTexture([In] ID3D11DeviceContext* pContext,[In] ID3D11Resource* pSrcTexture,[In] D3DX11_TEXTURE_LOAD_INFO* pLoadInfo,[In] ID3D11Resource* pDstTexture) + D3DX11LoadTextureFromTexture +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, GetMetadataFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).

Get information about an image already loaded into memory.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476292 + HRESULT D3DX11GetImageInfoFromMemory([In] const void* pSrcData,[In] SIZE_T SrcDataSize,[In] ID3DX11ThreadPump* pPump,[In] D3DX11_IMAGE_INFO* pSrcInfo,[Out] HRESULT* pHResult) + D3DX11GetImageInfoFromMemory +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use these:

  • DirectXTK library (runtime), CreateXXXTextureFromMemory (where XXX is DDS or WIC)
  • DirectXTex library (tools), + LoadFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games) then CreateTexture

Create a texture resource from a file residing in system memory.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes.

+ + ff476287 + HRESULT D3DX11CreateTextureFromMemory([In] ID3D11Device* pDevice,[In] const void* pSrcData,[In] SIZE_T SrcDataSize,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[In] ID3DX11ThreadPump* pPump,[Out] void** ppTexture,[Out] HRESULT* pHResult) + D3DX11CreateTextureFromMemory +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, ComputeNormalMap.

Converts a height map into a normal map. The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be the following value: .

+ +

This method computes the normal by using the central difference with a kernel size of 3x3. RGB channels in the destination contain biased (x,y,z) components of the normal. The central differencing denominator is hardcoded to 2.0.

+
+ + ff476264 + HRESULT D3DX11ComputeNormalMap([In] ID3D11DeviceContext* pContext,[In] ID3D11Texture2D* pSrcTexture,[In] D3DX11_NORMALMAP_FLAG Flags,[In] D3DX11_CHANNEL_FLAG Channel,[In] float Amplitude,[In] ID3D11Texture2D* pDestTexture) + D3DX11ComputeNormalMap +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Note??Instead of using this function, we recommend that you use the DirectXTex library, CaptureTexture then SaveToXXXFile (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games). For the simplified scenario of creating a screen shot from a render target texture, we recommend that you use the DirectXTK library, SaveDDSTextureToFile or SaveWICTextureToFile.

Save a texture to a file.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The return value is one of the values listed in Direct3D 11 Return Codes; use the return value to see if the DestFormat is supported.

+ +

writes out the extra DDS_HEADER_DXT10 structure for the input texture only if necessary (for example, because the input texture is in standard RGB (sRGB) format). If writes out the DDS_HEADER_DXT10 structure, it sets the dwFourCC member of the DDS_PIXELFORMAT structure for the texture to DX10 to indicate the prescense of the DDS_HEADER_DXT10 extended header.

+
+ + ff476298 + HRESULT D3DX11SaveTextureToFileW([In] ID3D11DeviceContext* pContext,[In] ID3D11Resource* pSrcTexture,[In] D3DX11_IMAGE_FILE_FORMAT DestFormat,[In] const wchar_t* pDestFile) + D3DX11SaveTextureToFileW +
+ + + Functions + + + + + Constant TooManyUniqueViewObjects. + D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS + + + Constant DeferredContextMapWithoutInitialDiscard. + D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD + + + Constant TooManyUniqueStateObjects. + D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS + + + Constant FileNotFound. + D3D11_ERROR_FILE_NOT_FOUND + + + Constant CannotModifyIndexBuffer. + D3DX11_ERR_CANNOT_MODIFY_INDEX_BUFFER + + + Constant CannotAttrSort. + D3DX11_ERR_CANNOT_ATTR_SORT + + + Constant SkinningNotSupported. + D3DX11_ERR_SKINNING_NOT_SUPPORTED + + + Constant LoadedMeshHasNoData. + D3DX11_ERR_LOADED_MESH_HAS_NO_DATA + + + Constant CannotRemoveLastItem. + D3DX11_ERR_CANNOT_REMOVE_LAST_ITEM + + + Constant DuplicateNamedFragment. + D3DX11_ERR_DUPLICATE_NAMED_FRAGMENT + + + Constant InvalidMesh. + D3DX11_ERR_INVALID_MESH + + + Constant InvalidData. + D3DX11_ERR_INVALID_DATA + + + Constant TooManyInfluences. + D3DX11_ERR_TOO_MANY_INFLUENCES + + + +

The interface encapsulates a list of graphics commands for play back.

+
+ +

There is no explicit creation method, simply declare an interface, then call to record commands or to play back commands.

+
+ + ff476361 + ID3D11CommandList + ID3D11CommandList +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the initialization flags associated with the deferred context that created the command list.

+
+

The context flag is reserved for future use and is always 0.

+ +

The GetContextFlags method gets the flags that were supplied to the ContextFlags parameter of ; however, the context flag is reserved for future use.

+
+ + ff476362 + unsigned int ID3D11CommandList::GetContextFlags() + ID3D11CommandList::GetContextFlags +
+ + +

Gets the initialization flags associated with the deferred context that created the command list.

+
+ +

The GetContextFlags method gets the flags that were supplied to the ContextFlags parameter of ; however, the context flag is reserved for future use.

+
+ + ff476362 + GetContextFlags + GetContextFlags + unsigned int ID3D11CommandList::GetContextFlags() +
+ + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Bind an array of shader resources to the domain-shader stage.

+
+

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to - 1).

+

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources(ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to set to the device.

+ +

If an overlapping resource view is already bound to an output slot, such as a render target, then the method will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476421 + void ID3D11DeviceContext::DSSetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[In, Buffer] const void** ppShaderResourceViews) + ID3D11DeviceContext::DSSetShaderResources +
+ + +

Set a domain shader to the device.

+
+

Pointer to a domain shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476420 + void ID3D11DeviceContext::DSSetShader([In, Optional] ID3D11DomainShader* pDomainShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::DSSetShader +
+ + +

Set a domain shader to the device.

+
+

Pointer to a domain shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476420 + void ID3D11DeviceContext::DSSetShader([In, Optional] ID3D11DomainShader* pDomainShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::DSSetShader +
+ + +

Set an array of sampler states to the domain-shader stage.

+
+

Index into the device's zero-based array to begin setting samplers to (ranges from 0 to - 1).

+

Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ). See Remarks.

+ +

Any sampler may be set to null; this invokes the default state, which is defined to be the following.

 //Default sampler state:	
+             SamplerDesc;	
+            SamplerDesc.Filter = ;	
+            SamplerDesc.AddressU = ;	
+            SamplerDesc.AddressV = ;	
+            SamplerDesc.AddressW = ;	
+            SamplerDesc.MipLODBias = 0;	
+            SamplerDesc.MaxAnisotropy = 1;	
+            SamplerDesc.ComparisonFunc = ;	
+            SamplerDesc.BorderColor[0] = 1.0f;	
+            SamplerDesc.BorderColor[1] = 1.0f;	
+            SamplerDesc.BorderColor[2] = 1.0f;	
+            SamplerDesc.BorderColor[3] = 1.0f;	
+            SamplerDesc.MinLOD = -FLT_MAX;	
+            SamplerDesc.MaxLOD = FLT_MAX; 

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476419 + void ID3D11DeviceContext::DSSetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[In, Buffer] const void** ppSamplers) + ID3D11DeviceContext::DSSetSamplers +
+ + +

Sets the constant buffers used by the domain-shader stage.

+
+

Index into the zero-based array to begin setting constant buffers to (ranges from 0 to - 1).

+

Number of buffers to set (ranges from 0 to - StartSlot).

+

Array of constant buffers (see ) being given to the device.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The Direct3D 11.1 runtime, which is available starting with Windows?8, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the DSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476418 + void ID3D11DeviceContext::DSSetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void** ppConstantBuffers) + ID3D11DeviceContext::DSSetConstantBuffers +
+ + +

Get the domain-shader resources.

+
+

Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to - 1).

+

The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476417 + void ID3D11DeviceContext::DSGetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + ID3D11DeviceContext::DSGetShaderResources +
+ + +

Get the domain shader currently set on the device.

+
+

Address of a reference to a domain shader (see ) to be returned by the method.

+

Pointer to an array of class instance interfaces (see ).

+

The number of class-instance elements in the array.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476416 + void ID3D11DeviceContext::DSGetShader([Out] ID3D11DomainShader** ppDomainShader,[Out, Buffer, Optional] ID3D11ClassInstance** ppClassInstances,[InOut] unsigned int* pNumClassInstances) + ID3D11DeviceContext::DSGetShader +
+ + +

Get an array of sampler state interfaces from the domain-shader stage.

+
+

Index into a zero-based array to begin getting samplers from (ranges from 0 to - 1).

+

Number of samplers to get from a device context. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ).

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476415 + void ID3D11DeviceContext::DSGetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + ID3D11DeviceContext::DSGetSamplers +
+ + +

Get the constant buffers used by the domain-shader stage.

+
+

Index into the device's zero-based array to begin retrieving constant buffers from (ranges from 0 to - 1).

+

Number of buffers to retrieve (ranges from 0 to - StartSlot).

+

Array of constant buffer interface references (see ) to be returned by the method.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476414 + void ID3D11DeviceContext::DSGetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + ID3D11DeviceContext::DSGetConstantBuffers +
+ + +

A geometry-shader interface manages an executable program (a geometry shader) that controls the geometry-shader stage.

+
+ +

The geometry-shader interface has no methods; use HLSL to implement your shader functionality. All shaders are implemented from a common set of features referred to as the common-shader core..

To create a geometry shader interface, call either or . Before using a geometry shader you must bind it to the device by calling .

This interface is defined in D3D11.h.

+
+ + ff476536 + ID3D11GeometryShader + ID3D11GeometryShader +
+ + Constant StreamOutputNoRasterizedStream. + D3D11_SO_NO_RASTERIZED_STREAM + + + Constant StreamOutputStreamCount. + D3D11_SO_STREAM_COUNT + + + Constant StreamOutputOutputComponentCount. + D3D11_SO_OUTPUT_COMPONENT_COUNT + + + Constant StreamOutputBufferSlotCount. + D3D11_SO_BUFFER_SLOT_COUNT + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + A dynamic class linkage interface. + + + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + An array of instances describing the layout of the output buffers. + An array of buffer strides; each stride is the size of an element for that buffer. + The index number of the stream to be sent to the rasterizer stage. Set to NoRasterizedStream if no stream is to be rasterized. + A dynamic class linkage interface. + + + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the constant buffers used by the geometry shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to - 1).

+

Number of buffers to set (ranges from 0 to - StartSlot).

+

Array of constant buffers (see ) being given to the device.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

You can't use the interface to get information about what is currently bound to the pipeline in the device context. But you can use to get information from a compiled shader. For example, you can use and to determine the slot in which a geometry shader expects a constant buffer. You can then pass this slot number to GSSetConstantBuffers to set the constant buffer. You can call the D3D11Reflect function to retrieve the address of a reference to the interface and then call to get a reference to .

The Direct3D 11.1 runtime, which is available starting with Windows?8, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the GSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476436 + void ID3D11DeviceContext::GSSetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void** ppConstantBuffers) + ID3D11DeviceContext::GSSetConstantBuffers +
+ + +

Set a geometry shader to the device.

+
+

Pointer to a geometry shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476438 + void ID3D11DeviceContext::GSSetShader([In, Optional] ID3D11GeometryShader* pShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::GSSetShader +
+ + +

Set a geometry shader to the device.

+
+

Pointer to a geometry shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476438 + void ID3D11DeviceContext::GSSetShader([In, Optional] ID3D11GeometryShader* pShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::GSSetShader +
+ + +

Bind an array of shader resources to the geometry shader stage.

+
+

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to - 1).

+

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources(ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to set to the device.

+ +

If an overlapping resource view is already bound to an output slot, such as a render target, then the method will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476439 + void ID3D11DeviceContext::GSSetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[In, Buffer] const void** ppShaderResourceViews) + ID3D11DeviceContext::GSSetShaderResources +
+ + +

Set an array of sampler states to the geometry shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting samplers to (ranges from 0 to - 1).

+

Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ). See Remarks.

+ +

Any sampler may be set to null; this invokes the default state, which is defined to be the following.

 //Default sampler state:	
+             SamplerDesc;	
+            SamplerDesc.Filter = ;	
+            SamplerDesc.AddressU = ;	
+            SamplerDesc.AddressV = ;	
+            SamplerDesc.AddressW = ;	
+            SamplerDesc.MipLODBias = 0;	
+            SamplerDesc.MaxAnisotropy = 1;	
+            SamplerDesc.ComparisonFunc = ;	
+            SamplerDesc.BorderColor[0] = 1.0f;	
+            SamplerDesc.BorderColor[1] = 1.0f;	
+            SamplerDesc.BorderColor[2] = 1.0f;	
+            SamplerDesc.BorderColor[3] = 1.0f;	
+            SamplerDesc.MinLOD = -FLT_MAX;	
+            SamplerDesc.MaxLOD = FLT_MAX; 

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476437 + void ID3D11DeviceContext::GSSetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[In, Buffer] const void** ppSamplers) + ID3D11DeviceContext::GSSetSamplers +
+ + +

Get the constant buffers used by the geometry shader pipeline stage.

+
+

Index into the device's zero-based array to begin retrieving constant buffers from (ranges from 0 to - 1).

+

Number of buffers to retrieve (ranges from 0 to - StartSlot).

+

Array of constant buffer interface references (see ) to be returned by the method.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476432 + void ID3D11DeviceContext::GSGetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + ID3D11DeviceContext::GSGetConstantBuffers +
+ + +

Get the geometry shader currently set on the device.

+
+

Address of a reference to a geometry shader (see ) to be returned by the method.

+

Pointer to an array of class instance interfaces (see ).

+

The number of class-instance elements in the array.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476434 + void ID3D11DeviceContext::GSGetShader([Out] ID3D11GeometryShader** ppGeometryShader,[Out, Buffer, Optional] ID3D11ClassInstance** ppClassInstances,[InOut] unsigned int* pNumClassInstances) + ID3D11DeviceContext::GSGetShader +
+ + +

Get the geometry shader resources.

+
+

Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to - 1).

+

The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476435 + void ID3D11DeviceContext::GSGetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + ID3D11DeviceContext::GSGetShaderResources +
+ + +

Get an array of sampler state interfaces from the geometry shader pipeline stage.

+
+

Index into a zero-based array to begin getting samplers from (ranges from 0 to - 1).

+

Number of samplers to get from a device context. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ).

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476433 + void ID3D11DeviceContext::GSGetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + ID3D11DeviceContext::GSGetSamplers +
+ + +

A hull-shader interface manages an executable program (a hull shader) that controls the hull-shader stage.

+
+ +

The hull-shader interface has no methods; use HLSL to implement your shader functionality. All shaders are implemented from a common set of features referred to as the common-shader core..

To create a hull-shader interface, call . Before using a hull shader you must bind it to the device by calling .

This interface is defined in D3D11.h.

+
+ + ff476537 + ID3D11HullShader + ID3D11HullShader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + A dynamic class linkage interface. + + + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Bind an array of shader resources to the hull-shader stage.

+
+ No documentation. + No documentation. + No documentation. + +

If an overlapping resource view is already bound to an output slot, such as a render target, then the method will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476448 + void ID3D11DeviceContext::HSSetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[In, Buffer] const void** ppShaderResourceViews) + ID3D11DeviceContext::HSSetShaderResources +
+ + +

Set a hull shader to the device.

+
+

Pointer to a hull shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476447 + void ID3D11DeviceContext::HSSetShader([In, Optional] ID3D11HullShader* pHullShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::HSSetShader +
+ + +

Set a hull shader to the device.

+
+

Pointer to a hull shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476447 + void ID3D11DeviceContext::HSSetShader([In, Optional] ID3D11HullShader* pHullShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::HSSetShader +
+ + +

Set an array of sampler states to the hull-shader stage.

+
+ No documentation. + No documentation. + No documentation. + +

Any sampler may be set to null; this invokes the default state, which is defined to be the following.

 //Default sampler state:	
+             SamplerDesc;	
+            SamplerDesc.Filter = ;	
+            SamplerDesc.AddressU = ;	
+            SamplerDesc.AddressV = ;	
+            SamplerDesc.AddressW = ;	
+            SamplerDesc.MipLODBias = 0;	
+            SamplerDesc.MaxAnisotropy = 1;	
+            SamplerDesc.ComparisonFunc = ;	
+            SamplerDesc.BorderColor[0] = 1.0f;	
+            SamplerDesc.BorderColor[1] = 1.0f;	
+            SamplerDesc.BorderColor[2] = 1.0f;	
+            SamplerDesc.BorderColor[3] = 1.0f;	
+            SamplerDesc.MinLOD = -FLT_MAX;	
+            SamplerDesc.MaxLOD = FLT_MAX; 

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476446 + void ID3D11DeviceContext::HSSetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[In, Buffer] const void** ppSamplers) + ID3D11DeviceContext::HSSetSamplers +
+ + +

Set the constant buffers used by the hull-shader stage.

+
+ No documentation. + No documentation. + No documentation. + +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The Direct3D 11.1 runtime, which is available starting with Windows?8, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the HSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476445 + void ID3D11DeviceContext::HSSetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void** ppConstantBuffers) + ID3D11DeviceContext::HSSetConstantBuffers +
+ + +

Get the hull-shader resources.

+
+

Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to - 1).

+

The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476443 + void ID3D11DeviceContext::HSGetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + ID3D11DeviceContext::HSGetShaderResources +
+ + +

Get the hull shader currently set on the device.

+
+

Address of a reference to a hull shader (see ) to be returned by the method.

+

Pointer to an array of class instance interfaces (see ).

+

The number of class-instance elements in the array.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476442 + void ID3D11DeviceContext::HSGetShader([Out] ID3D11HullShader** ppHullShader,[Out, Buffer, Optional] ID3D11ClassInstance** ppClassInstances,[InOut] unsigned int* pNumClassInstances) + ID3D11DeviceContext::HSGetShader +
+ + +

Get an array of sampler state interfaces from the hull-shader stage.

+
+ No documentation. + No documentation. + No documentation. + +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476441 + void ID3D11DeviceContext::HSGetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + ID3D11DeviceContext::HSGetSamplers +
+ + +

Get the constant buffers used by the hull-shader stage.

+
+ No documentation. + No documentation. + No documentation. + +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476440 + void ID3D11DeviceContext::HSGetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + ID3D11DeviceContext::HSGetConstantBuffers +
+ + +

An information-queue interface stores, retrieves, and filters debug messages. The queue consists of a message queue, an optional storage filter stack, and a optional retrieval filter stack.

+
+ +

To get this interface, turn on debug layer and use IUnknown::QueryInterface from the .

Windows?Phone?8: This API is supported.

+
+ + ff476538 + ID3D11InfoQueue + ID3D11InfoQueue +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Set the maximum number of messages that can be added to the message queue.

+
+

Maximum number of messages that can be added to the message queue. -1 means no limit.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

When the number of messages in the message queue has reached the maximum limit, new messages coming in will push old messages out.

Windows?Phone?8: This API is supported.

+
+ + ff476573 + HRESULT ID3D11InfoQueue::SetMessageCountLimit([In] unsigned longlong MessageCountLimit) + ID3D11InfoQueue::SetMessageCountLimit +
+ + +

Clear all messages from the message queue.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476545 + void ID3D11InfoQueue::ClearStoredMessages() + ID3D11InfoQueue::ClearStoredMessages +
+ + +

Get a message from the message queue.

+
+

Index into message queue after an optional retrieval filter has been applied. This can be between 0 and the number of messages in the message queue that pass through the retrieval filter (which can be obtained with ). 0 is the message at the front of the message queue.

+

Returned message (see ).

+

Size of pMessage in bytes, including the size of the message string that the pMessage points to.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

This method does not remove any messages from the message queue.

This method gets messages from the message queue after an optional retrieval filter has been applied.

Applications should call this method twice to retrieve a message - first to obtain the size of the message and second to get the message. Here is a typical example:

 // Get the size of the message	
+             messageLength = 0;	
+             hr = pInfoQueue->GetMessage(0, null, &messageLength); // Allocate space and get the message	
+             * pMessage = (*)malloc(messageLength);	
+            hr = pInfoQueue->GetMessage(0, pMessage, &messageLength);	
+            

For an overview see Information Queue Overview.

Windows?Phone?8: This API is supported.

+
+ + ff476549 + HRESULT ID3D11InfoQueue::GetMessageW([In] unsigned longlong MessageIndex,[In] void* pMessage,[InOut] SIZE_T* pMessageByteLength) + ID3D11InfoQueue::GetMessageW +
+ + +

Get the number of messages that were allowed to pass through a storage filter.

+
+

Number of messages allowed by a storage filter.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476552 + unsigned longlong ID3D11InfoQueue::GetNumMessagesAllowedByStorageFilter() + ID3D11InfoQueue::GetNumMessagesAllowedByStorageFilter +
+ + +

Get the number of messages that were denied passage through a storage filter.

+
+

Number of messages denied by a storage filter.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476553 + unsigned longlong ID3D11InfoQueue::GetNumMessagesDeniedByStorageFilter() + ID3D11InfoQueue::GetNumMessagesDeniedByStorageFilter +
+ + +

Get the number of messages currently stored in the message queue.

+
+

Number of messages currently stored in the message queue.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476556 + unsigned longlong ID3D11InfoQueue::GetNumStoredMessages() + ID3D11InfoQueue::GetNumStoredMessages +
+ + +

Get the number of messages that are able to pass through a retrieval filter.

+
+

Number of messages allowed by a retrieval filter.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476557 + unsigned longlong ID3D11InfoQueue::GetNumStoredMessagesAllowedByRetrievalFilter() + ID3D11InfoQueue::GetNumStoredMessagesAllowedByRetrievalFilter +
+ + +

Get the number of messages that were discarded due to the message count limit.

+
+

Number of messages discarded.

+ +

Get and set the message count limit with and , respectively.

Windows?Phone?8: This API is supported.

+
+ + ff476554 + unsigned longlong ID3D11InfoQueue::GetNumMessagesDiscardedByMessageCountLimit() + ID3D11InfoQueue::GetNumMessagesDiscardedByMessageCountLimit +
+ + +

Get the maximum number of messages that can be added to the message queue.

+
+

Maximum number of messages that can be added to the queue. -1 means no limit.

+ +

When the number of messages in the message queue has reached the maximum limit, new messages coming in will push old messages out.

Windows?Phone?8: This API is supported.

+
+ + ff476550 + unsigned longlong ID3D11InfoQueue::GetMessageCountLimit() + ID3D11InfoQueue::GetMessageCountLimit +
+ + +

Add storage filters to the top of the storage-filter stack.

+
+

Array of storage filters (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476542 + HRESULT ID3D11InfoQueue::AddStorageFilterEntries([In] D3D11_INFO_QUEUE_FILTER* pFilter) + ID3D11InfoQueue::AddStorageFilterEntries +
+ + +

Get the storage filter at the top of the storage-filter stack.

+
+

Storage filter at the top of the storage-filter stack.

+

Size of the storage filter in bytes. If pFilter is null, the size of the storage filter will be output to this parameter.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476560 + HRESULT ID3D11InfoQueue::GetStorageFilter([In] void* pFilter,[InOut] SIZE_T* pFilterByteLength) + ID3D11InfoQueue::GetStorageFilter +
+ + +

Remove a storage filter from the top of the storage-filter stack.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476544 + void ID3D11InfoQueue::ClearStorageFilter() + ID3D11InfoQueue::ClearStorageFilter +
+ + +

Push an empty storage filter onto the storage-filter stack.

+
+

This method returns one of the following Direct3D 11 Return Codes.

+ +

An empty storage filter allows all messages to pass through.

Windows?Phone?8: This API is supported.

+
+ + ff476567 + HRESULT ID3D11InfoQueue::PushEmptyStorageFilter() + ID3D11InfoQueue::PushEmptyStorageFilter +
+ + +

Push a copy of storage filter currently on the top of the storage-filter stack onto the storage-filter stack.

+
+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476565 + HRESULT ID3D11InfoQueue::PushCopyOfStorageFilter() + ID3D11InfoQueue::PushCopyOfStorageFilter +
+ + +

Push a storage filter onto the storage-filter stack.

+
+

Pointer to a storage filter (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476569 + HRESULT ID3D11InfoQueue::PushStorageFilter([In] D3D11_INFO_QUEUE_FILTER* pFilter) + ID3D11InfoQueue::PushStorageFilter +
+ + +

Pop a storage filter from the top of the storage-filter stack.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476563 + void ID3D11InfoQueue::PopStorageFilter() + ID3D11InfoQueue::PopStorageFilter +
+ + +

Get the size of the storage-filter stack in bytes.

+
+

Size of the storage-filter stack in bytes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476561 + unsigned int ID3D11InfoQueue::GetStorageFilterStackSize() + ID3D11InfoQueue::GetStorageFilterStackSize +
+ + +

Add storage filters to the top of the retrieval-filter stack.

+
+

Array of retrieval filters (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

The following code example shows how to use :

  cats[] = { ..., ..., ... };	
+             sevs[] = { ..., ..., ... };	
+            UINT ids[] = { ..., ..., ... };  filter;	
+            memset( &filter, 0, sizeof(filter) ); // To set the type of messages to allow, 	
+            // set filter.AllowList as follows:	
+            filter.AllowList.NumCategories = sizeof(cats / sizeof()); 	
+            filter.AllowList.pCategoryList = cats;	
+            filter.AllowList.NumSeverities = sizeof(sevs / sizeof()); 	
+            filter.AllowList.pSeverityList = sevs;	
+            filter.AllowList.NumIDs = sizeof(ids) / sizeof(UINT);	
+            filter.AllowList.pIDList = ids; // To set the type of messages to deny, set filter.DenyList 	
+            // similarly to the preceding filter.AllowList. // The following single call sets all of the preceding information.	
+            hr = infoQueue->AddRetrievalFilterEntries( &filter );	
+            

Windows?Phone?8: This API is supported.

+
+ + ff476541 + HRESULT ID3D11InfoQueue::AddRetrievalFilterEntries([In] D3D11_INFO_QUEUE_FILTER* pFilter) + ID3D11InfoQueue::AddRetrievalFilterEntries +
+ + +

Get the retrieval filter at the top of the retrieval-filter stack.

+
+

Retrieval filter at the top of the retrieval-filter stack.

+

Size of the retrieval filter in bytes. If pFilter is null, the size of the retrieval filter will be output to this parameter.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476558 + HRESULT ID3D11InfoQueue::GetRetrievalFilter([In] void* pFilter,[InOut] SIZE_T* pFilterByteLength) + ID3D11InfoQueue::GetRetrievalFilter +
+ + +

Remove a retrieval filter from the top of the retrieval-filter stack.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476543 + void ID3D11InfoQueue::ClearRetrievalFilter() + ID3D11InfoQueue::ClearRetrievalFilter +
+ + +

Push an empty retrieval filter onto the retrieval-filter stack.

+
+

This method returns one of the following Direct3D 11 Return Codes.

+ +

An empty retrieval filter allows all messages to pass through.

Windows?Phone?8: This API is supported.

+
+ + ff476566 + HRESULT ID3D11InfoQueue::PushEmptyRetrievalFilter() + ID3D11InfoQueue::PushEmptyRetrievalFilter +
+ + +

Push a copy of retrieval filter currently on the top of the retrieval-filter stack onto the retrieval-filter stack.

+
+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476564 + HRESULT ID3D11InfoQueue::PushCopyOfRetrievalFilter() + ID3D11InfoQueue::PushCopyOfRetrievalFilter +
+ + +

Push a retrieval filter onto the retrieval-filter stack.

+
+

Pointer to a retrieval filter (see ).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476568 + HRESULT ID3D11InfoQueue::PushRetrievalFilter([In] D3D11_INFO_QUEUE_FILTER* pFilter) + ID3D11InfoQueue::PushRetrievalFilter +
+ + +

Pop a retrieval filter from the top of the retrieval-filter stack.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476562 + void ID3D11InfoQueue::PopRetrievalFilter() + ID3D11InfoQueue::PopRetrievalFilter +
+ + +

Get the size of the retrieval-filter stack in bytes.

+
+

Size of the retrieval-filter stack in bytes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476559 + unsigned int ID3D11InfoQueue::GetRetrievalFilterStackSize() + ID3D11InfoQueue::GetRetrievalFilterStackSize +
+ + +

Add a debug message to the message queue and send that message to debug output.

+
+

Category of a message (see ).

+

Severity of a message (see ).

+

Unique identifier of a message (see ).

+

User-defined message.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

This method is used by the runtime's internal mechanisms to add debug messages to the message queue and send them to debug output. For applications to add their own custom messages to the message queue and send them to debug output, call .

Windows?Phone?8: This API is supported.

+
+ + ff476540 + HRESULT ID3D11InfoQueue::AddMessage([In] D3D11_MESSAGE_CATEGORY Category,[In] D3D11_MESSAGE_SEVERITY Severity,[In] D3D11_MESSAGE_ID ID,[In] const char* pDescription) + ID3D11InfoQueue::AddMessage +
+ + +

Add a user-defined message to the message queue and send that message to debug output.

+
+

Severity of a message (see ).

+

Message string.

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476539 + HRESULT ID3D11InfoQueue::AddApplicationMessage([In] D3D11_MESSAGE_SEVERITY Severity,[In] const char* pDescription) + ID3D11InfoQueue::AddApplicationMessage +
+ + +

Set a message category to break on when a message with that category passes through the storage filter.

+
+

Message category to break on (see ).

+

Turns this breaking condition on or off (true for on, false for off).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476570 + HRESULT ID3D11InfoQueue::SetBreakOnCategory([In] D3D11_MESSAGE_CATEGORY Category,[In] BOOL bEnable) + ID3D11InfoQueue::SetBreakOnCategory +
+ + +

Set a message severity level to break on when a message with that severity level passes through the storage filter.

+
+

A , which represents a message severity level to break on.

+

Turns this breaking condition on or off (true for on, false for off).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476572 + HRESULT ID3D11InfoQueue::SetBreakOnSeverity([In] D3D11_MESSAGE_SEVERITY Severity,[In] BOOL bEnable) + ID3D11InfoQueue::SetBreakOnSeverity +
+ + +

Set a message identifier to break on when a message with that identifier passes through the storage filter.

+
+

Message identifier to break on (see ).

+

Turns this breaking condition on or off (true for on, false for off).

+

This method returns one of the following Direct3D 11 Return Codes.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476571 + HRESULT ID3D11InfoQueue::SetBreakOnID([In] D3D11_MESSAGE_ID ID,[In] BOOL bEnable) + ID3D11InfoQueue::SetBreakOnID +
+ + +

Get a message category to break on when a message with that category passes through the storage filter.

+
+

Message category to break on (see ).

+

Whether this breaking condition is turned on or off (true for on, false for off).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476546 + BOOL ID3D11InfoQueue::GetBreakOnCategory([In] D3D11_MESSAGE_CATEGORY Category) + ID3D11InfoQueue::GetBreakOnCategory +
+ + +

Get a message severity level to break on when a message with that severity level passes through the storage filter.

+
+

Message severity level to break on (see ).

+

Whether this breaking condition is turned on or off (true for on, false for off).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476548 + BOOL ID3D11InfoQueue::GetBreakOnSeverity([In] D3D11_MESSAGE_SEVERITY Severity) + ID3D11InfoQueue::GetBreakOnSeverity +
+ + +

Get a message identifier to break on when a message with that identifier passes through the storage filter.

+
+

Message identifier to break on (see ).

+

Whether this breaking condition is turned on or off (true for on, false for off).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476547 + BOOL ID3D11InfoQueue::GetBreakOnID([In] D3D11_MESSAGE_ID ID) + ID3D11InfoQueue::GetBreakOnID +
+ + +

Set a boolean that turns the debug output on or off.

+
+

Disable/Enable the debug output (TRUE to disable or mute the output, to enable the output).

+ +

This will stop messages that pass the storage filter from being printed out in the debug output, however those messages will still be added to the message queue.

Windows?Phone?8: This API is supported.

+
+ + ff476574 + void ID3D11InfoQueue::SetMuteDebugOutput([In] BOOL bMute) + ID3D11InfoQueue::SetMuteDebugOutput +
+ + +

Get a boolean that turns the debug output on or off.

+
+

Whether the debug output is on or off (true for on, false for off).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476551 + BOOL ID3D11InfoQueue::GetMuteDebugOutput() + ID3D11InfoQueue::GetMuteDebugOutput +
+ + +

Get a message from the message queue.

+
+

Index into message queue after an optional retrieval filter has been applied. This can be between 0 and the number of messages in the message queue that pass through the retrieval filter (which can be obtained with ). 0 is the message at the front of the message queue.

+ Returned message (see ) + ff476549 + HRESULT ID3D11InfoQueue::GetMessageW([In] unsigned longlong MessageIndex,[In] void* pMessage,[InOut] SIZE_T* pMessageByteLength) + ID3D11InfoQueue::GetMessageW +
+ + +

Get the storage filter at the top of the storage-filter stack.

+
+ The storage filter at the top of the storage-filter stack. + ff476560 + HRESULT ID3D11InfoQueue::GetStorageFilter([In] void* pFilter,[InOut] SIZE_T* pFilterByteLength) + ID3D11InfoQueue::GetStorageFilter +
+ + +

Get the retrieval filter at the top of the retrieval-filter stack.

+
+ The retrieval filter at the top of the retrieval-filter stack. + ff476558 + HRESULT ID3D11InfoQueue::GetRetrievalFilter([In] void* pFilter,[InOut] SIZE_T* pFilterByteLength) + ID3D11InfoQueue::GetRetrievalFilter +
+ + +

Get or sets the maximum number of messages that can be added to the message queue.

+
+ +

When the number of messages in the message queue has reached the maximum limit, new messages coming in will push old messages out.

Windows?Phone?8: This API is supported.

+
+ + ff476550 + GetMessageCountLimit / SetMessageCountLimit + GetMessageCountLimit + unsigned longlong ID3D11InfoQueue::GetMessageCountLimit() +
+ + +

Get the number of messages that were allowed to pass through a storage filter.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476552 + GetNumMessagesAllowedByStorageFilter + GetNumMessagesAllowedByStorageFilter + unsigned longlong ID3D11InfoQueue::GetNumMessagesAllowedByStorageFilter() +
+ + +

Get the number of messages that were denied passage through a storage filter.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476553 + GetNumMessagesDeniedByStorageFilter + GetNumMessagesDeniedByStorageFilter + unsigned longlong ID3D11InfoQueue::GetNumMessagesDeniedByStorageFilter() +
+ + +

Get the number of messages currently stored in the message queue.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476556 + GetNumStoredMessages + GetNumStoredMessages + unsigned longlong ID3D11InfoQueue::GetNumStoredMessages() +
+ + +

Get the number of messages that are able to pass through a retrieval filter.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476557 + GetNumStoredMessagesAllowedByRetrievalFilter + GetNumStoredMessagesAllowedByRetrievalFilter + unsigned longlong ID3D11InfoQueue::GetNumStoredMessagesAllowedByRetrievalFilter() +
+ + +

Get the number of messages that were discarded due to the message count limit.

+
+ +

Get and set the message count limit with and , respectively.

Windows?Phone?8: This API is supported.

+
+ + ff476554 + GetNumMessagesDiscardedByMessageCountLimit + GetNumMessagesDiscardedByMessageCountLimit + unsigned longlong ID3D11InfoQueue::GetNumMessagesDiscardedByMessageCountLimit() +
+ + +

Get the size of the storage-filter stack in bytes.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476561 + GetStorageFilterStackSize + GetStorageFilterStackSize + unsigned int ID3D11InfoQueue::GetStorageFilterStackSize() +
+ + +

Get the size of the retrieval-filter stack in bytes.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476559 + GetRetrievalFilterStackSize + GetRetrievalFilterStackSize + unsigned int ID3D11InfoQueue::GetRetrievalFilterStackSize() +
+ + +

Get or sets a boolean that turns the debug output on or off.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476551 + GetMuteDebugOutput / SetMuteDebugOutput + GetMuteDebugOutput + BOOL ID3D11InfoQueue::GetMuteDebugOutput() +
+ + +

An input-layout interface holds a definition of how to feed vertex data that is laid out in memory into the input-assembler stage of the graphics pipeline.

+
+ +

To create an input-layout object, call . To bind the input-layout object to the input-assembler stage, call .

Windows?Phone?8: This API is supported.

+
+ + ff476575 + ID3D11InputLayout + ID3D11InputLayout +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Initializes a new instance of the object to describe the + input-buffer data for the input-assembler stage. + + ID3D11Device::CreateInputLayout + The device used to create the layout. + An array of input elements describing the layout of the input data. + The compiled shader used to validate the input elements. + + + +

A pixel-shader interface manages an executable program (a pixel shader) that controls the pixel-shader stage.

+
+ +

The pixel-shader interface has no methods; use HLSL to implement your shader functionality. All shaders in are implemented from a common set of features referred to as the common-shader core..

To create a pixel shader interface, call . Before using a pixel shader you must bind it to the device by calling .

This interface is defined in D3D11.h.

Windows?Phone?8: This API is supported.

+
+ + ff476576 + ID3D11PixelShader + ID3D11PixelShader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + A dynamic class linkage interface. + + + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + Constant InputRegisterComponentBitCount. + D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT + + + Constant OutputRegisterComponentBitCount. + D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT + + + Constant PixelCenterFractionalComponent. + D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT + + + Constant OutputRegisterComponents. + D3D11_PS_OUTPUT_REGISTER_COMPONENTS + + + Constant OutputMaskRegisterComponents. + D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS + + + Constant InputRegisterComponents. + D3D11_PS_INPUT_REGISTER_COMPONENTS + + + Constant LegacyPixelCenterFractionalComponent. + D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT + + + Constant OutputMaskRegisterComponentBitCount. + D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT + + + Constant OutputMaskRegisterCount. + D3D11_PS_OUTPUT_MASK_REGISTER_COUNT + + + Constant FrontfacingTrueValue. + D3D11_PS_FRONTFACING_TRUE_VALUE + + + Constant OutputDepthRegisterCount. + D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT + + + Constant OutputDepthRegisterComponents. + D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS + + + Constant InputRegisterReadsPerInst. + D3D11_PS_INPUT_REGISTER_READS_PER_INST + + + Constant OutputRegisterCount. + D3D11_PS_OUTPUT_REGISTER_COUNT + + + Constant OutputDepthRegisterComponentBitCount. + D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT + + + Constant FrontfacingDefaultValue. + D3D11_PS_FRONTFACING_DEFAULT_VALUE + + + Constant FrontfacingFalseValue. + D3D11_PS_FRONTFACING_FALSE_VALUE + + + Constant InputRegisterCount. + D3D11_PS_INPUT_REGISTER_COUNT + + + Constant InputRegisterReadPorts. + D3D11_PS_INPUT_REGISTER_READ_PORTS + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Bind an array of shader resources to the pixel shader stage.

+
+

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to - 1).

+

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to set to the device.

+ +

If an overlapping resource view is already bound to an output slot, such as a rendertarget, then this API will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476473 + void ID3D11DeviceContext::PSSetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[In, Buffer] const void** ppShaderResourceViews) + ID3D11DeviceContext::PSSetShaderResources +
+ + +

Sets a pixel shader to the device.

+
+

Pointer to a pixel shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Set ppClassInstances to null if no interfaces are used in the shader. If it is not null, the number of class instances must match the number of interfaces used in the shader. Furthermore, each interface reference must have a corresponding class instance or the assigned shader will be disabled.

Windows?Phone?8: This API is supported.

+
+ + ff476472 + void ID3D11DeviceContext::PSSetShader([In, Optional] ID3D11PixelShader* pPixelShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::PSSetShader +
+ + +

Sets a pixel shader to the device.

+
+

Pointer to a pixel shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Set ppClassInstances to null if no interfaces are used in the shader. If it is not null, the number of class instances must match the number of interfaces used in the shader. Furthermore, each interface reference must have a corresponding class instance or the assigned shader will be disabled.

Windows?Phone?8: This API is supported.

+
+ + ff476472 + void ID3D11DeviceContext::PSSetShader([In, Optional] ID3D11PixelShader* pPixelShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::PSSetShader +
+ + +

Set an array of sampler states to the pixel shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting samplers to (ranges from 0 to - 1).

+

Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ). See Remarks.

+ +

Any sampler may be set to null; this invokes the default state, which is defined to be the following.

StateDefault Value
Filter
AddressU
AddressV
AddressW
MipLODBias0
MaxAnisotropy1
ComparisonFunc
BorderColor[0]1.0f
BorderColor[1]1.0f
BorderColor[2]1.0f
BorderColor[3]1.0f
MinLOD-FLT_MAX
MaxLODFLT_MAX

?

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476471 + void ID3D11DeviceContext::PSSetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[In, Buffer] const void** ppSamplers) + ID3D11DeviceContext::PSSetSamplers +
+ + +

Sets the constant buffers used by the pixel shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to - 1).

+

Number of buffers to set (ranges from 0 to - StartSlot).

+

Array of constant buffers (see ) being given to the device.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The Direct3D 11.1 runtime, which is available on Windows?8 and later operating systems, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the PSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476470 + void ID3D11DeviceContext::PSSetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void** ppConstantBuffers) + ID3D11DeviceContext::PSSetConstantBuffers +
+ + +

Bind an array of shader resources to the pixel shader stage.

+
+

Index into the device's zero-based array to begin setting shader resources to (ranges from 0 to - 1).

+

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to set to the device.

+ +

If an overlapping resource view is already bound to an output slot, such as a rendertarget, then this API will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476473 + void ID3D11DeviceContext::PSGetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + ID3D11DeviceContext::PSGetShaderResources +
+ + +

Get the pixel shader currently set on the device.

+
+

Address of a reference to a pixel shader (see ) to be returned by the method.

+

Pointer to an array of class instance interfaces (see ).

+

The number of class-instance elements in the array.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476468 + void ID3D11DeviceContext::PSGetShader([Out] ID3D11PixelShader** ppPixelShader,[Out, Buffer, Optional] ID3D11ClassInstance** ppClassInstances,[InOut] unsigned int* pNumClassInstances) + ID3D11DeviceContext::PSGetShader +
+ + +

Get an array of sampler states from the pixel shader pipeline stage.

+
+

Index into a zero-based array to begin getting samplers from (ranges from 0 to - 1).

+

Number of samplers to get from a device context. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Arry of sampler-state interface references (see ) to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476467 + void ID3D11DeviceContext::PSGetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + ID3D11DeviceContext::PSGetSamplers +
+ + +

Get the constant buffers used by the pixel shader pipeline stage.

+
+

Index into the device's zero-based array to begin retrieving constant buffers from (ranges from 0 to - 1).

+

Number of buffers to retrieve (ranges from 0 to - StartSlot).

+

Array of constant buffer interface references (see ) to be returned by the method.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476466 + void ID3D11DeviceContext::PSGetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + ID3D11DeviceContext::PSGetConstantBuffers +
+ + +

A predicate interface determines whether geometry should be processed depending on the results of a previous draw call.

+
+ +

To create a predicate object, call . To set the predicate object, call .

There are two types of predicates: stream-output-overflow predicates and occlusion predicates. Stream-output-overflow predicates cause any geometry residing in stream-output buffers that were overflowed to not be processed. Occlusion predicates cause any geometry that did not have a single sample pass the depth/stencil tests to not be processed.

Windows?Phone?8: This API is supported.

+
+ + ff476577 + ID3D11Predicate + ID3D11Predicate +
+ + +

A query interface queries information from the GPU.

+
+ +

A query can be created with .

Query data is typically gathered by issuing an command, issuing some graphics commands, issuing an command, and then calling to get data about what happened in between the Begin and End calls. The data returned by GetData will be different depending on the type of query.

There are, however, some queries that do not require calls to Begin. For a list of possible queries see .

A query is typically executed as shown in the following code:

  queryDesc;	
+            ... // Fill out queryDesc structure	
+             * pQuery;	
+            pDevice->CreateQuery(&queryDesc, &pQuery);	
+            pDeviceContext->Begin(pQuery); ... // Issue graphics commands pDeviceContext->End(pQuery);	
+            UINT64 queryData; // This data type is different depending on the query type while(  != pDeviceContext->GetData(pQuery, &queryData, sizeof(UINT64), 0) )	
+            {	
+            }	
+            

When using a query that does not require a call to Begin, it still requires a call to End. The call to End causes the data returned by GetData to be accurate up until the last call to End.

Windows?Phone?8: This API is supported.

+
+ + ff476578 + ID3D11Query + ID3D11Query +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a query description.

+
+

Pointer to a query description (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476579 + void ID3D11Query::GetDesc([Out] D3D11_QUERY_DESC* pDesc) + ID3D11Query::GetDesc +
+ + + Constructs a new based on the specified description. + + The device with which to associate the state object. + The query description. + The newly created object. + + + +

Get a query description.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476579 + GetDesc + GetDesc + void ID3D11Query::GetDesc([Out] D3D11_QUERY_DESC* pDesc) +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Constructs a new based on the specified description. + + The device with which to associate the state object. + The query description. + The newly created object. + + + +

The rasterizer-state interface holds a description for rasterizer state that you can bind to the rasterizer stage.

+
+ +

To create a rasterizer-state object, call . To bind the rasterizer-state object to the rasterizer stage, call .

Windows?Phone?8: This API is supported.

+
+ + ff476580 + ID3D11RasterizerState + ID3D11RasterizerState +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the description for rasterizer state that you used to create the rasterizer-state object.

+
+

A reference to a structure that receives a description of the rasterizer state.

+ +

You use the description for rasterizer state in a call to the method to create the rasterizer-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476581 + void ID3D11RasterizerState::GetDesc([Out] D3D11_RASTERIZER_DESC* pDesc) + ID3D11RasterizerState::GetDesc +
+ + +

Create a rasterizer state object that tells the rasterizer stage how to behave.

+
+ The device with which to associate the state object. + A rasterizer state description + +

4096 unique rasterizer state objects can be created on a device at a time.

If an application attempts to create a rasterizer-state interface with the same state as an existing interface, the same interface will be returned and the total number of unique rasterizer state objects will stay the same.

+
+ ff476516 + HRESULT ID3D11Device::CreateRasterizerState([In] const D3D11_RASTERIZER_DESC* pRasterizerDesc,[Out, Fast] ID3D11RasterizerState** ppRasterizerState) + ID3D11Device::CreateRasterizerState +
+ + +

Gets the description for rasterizer state that you used to create the rasterizer-state object.

+
+ +

You use the description for rasterizer state in a call to the method to create the rasterizer-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476581 + GetDesc + GetDesc + void ID3D11RasterizerState::GetDesc([Out] D3D11_RASTERIZER_DESC* pDesc) +
+ + +

A render-target-view interface identifies the render-target subresources that can be accessed during rendering.

+
+ +

To create a render-target view, call . To bind a render-target view to the pipeline, call .

A rendertarget is a resource that can be written by the output-merger stage at the end of a render pass. Each render-target should also have a corresponding depth-stencil view.

Windows?Phone?8: This API is supported.

+
+ + ff476582 + ID3D11RenderTargetView + ID3D11RenderTargetView +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the properties of a render target view.

+
+

Pointer to the description of a render target view (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476583 + void ID3D11RenderTargetView::GetDesc([Out] D3D11_RENDER_TARGET_VIEW_DESC* pDesc) + ID3D11RenderTargetView::GetDesc +
+ + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the RenderTarget flag. + ID3D11Device::CreateRenderTargetView + + + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the RenderTarget flag. + A structure describing the to be created. + ID3D11Device::CreateRenderTargetView + + + +

Get the properties of a render target view.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476583 + GetDesc + GetDesc + void ID3D11RenderTargetView::GetDesc([Out] D3D11_RENDER_TARGET_VIEW_DESC* pDesc) +
+ + +

The sampler-state interface holds a description for sampler state that you can bind to any shader stage of the pipeline for reference by texture sample operations.

+
+ +

To create a sampler-state object, call .

To bind a sampler-state object to any pipeline shader stage, call the following methods:

You can bind the same sampler-state object to multiple shader stages simultaneously.

Windows?Phone?8: This API is supported.

+
+ + ff476588 + ID3D11SamplerState + ID3D11SamplerState +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the description for sampler state that you used to create the sampler-state object.

+
+

A reference to a structure that receives a description of the sampler state.

+ +

You use the description for sampler state in a call to the method to create the sampler-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476589 + void ID3D11SamplerState::GetDesc([Out] D3D11_SAMPLER_DESC* pDesc) + ID3D11SamplerState::GetDesc +
+ + + Constructs a new based on the specified description. + + The device with which to associate the state object. + The state description. + The newly created object. + ff476518 + HRESULT ID3D11Device::CreateSamplerState([In] const D3D11_SAMPLER_DESC* pSamplerDesc,[Out, Fast] ID3D11SamplerState** ppSamplerState) + ID3D11Device::CreateSamplerState + + + +

Gets the description for sampler state that you used to create the sampler-state object.

+
+ +

You use the description for sampler state in a call to the method to create the sampler-state object.

Windows?Phone?8: This API is supported.

+
+ + ff476589 + GetDesc + GetDesc + void ID3D11SamplerState::GetDesc([Out] D3D11_SAMPLER_DESC* pDesc) +
+ + +

Sets which direction to perform scans in.

+
+ +

SetScanDirection sets the direction and will performed scans in.

+
+ + ff476857 + ID3DX11Scan + ID3DX11Scan +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets which direction to perform scans in.

+
+

Direction to perform scans in. See .

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

SetScanDirection sets the direction and will performed scans in.

+
+ + ff476857 + HRESULT ID3DX11Scan::SetScanDirection([In] D3DX11_SCAN_DIRECTION Direction) + ID3DX11Scan::SetScanDirection +
+ + +

Performs an unsegmented scan of a sequence.

+
+

The type of element in the sequence. See for more information.

+

The binary operation to perform. See for more information.

+

Size of scan in elements.

+

Input sequence on the device. Set pSrc and pDst to the same value for in-place scans.

+

Output sequence on the device.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

You must point the parameters pSrc and pDst to typed buffers (and not to raw or structured buffers). For information about buffer types, see Types of Resources. The format of these typed buffers must be , , or DXGI_FORMAT_R32_INT. In addition, the format of these typed buffers must match the scan data type that you specify in the ElementType parameter. For example, if the scan data type is , the buffer formats must be .

+
+ + ff476856 + HRESULT ID3DX11Scan::Scan([In] D3DX11_SCAN_DATA_TYPE ElementType,[In] D3DX11_SCAN_OPCODE OpCode,[In] unsigned int ElementScanSize,[In] ID3D11UnorderedAccessView* pSrc,[In] ID3D11UnorderedAccessView* pDst) + ID3DX11Scan::Scan +
+ + +

Performs a multiscan of a sequence.

+
+

The type of element in the sequence. See for more information.

+

The binary operation to perform. See for more information.

+

Size of scan in elements.

+

Pitch of the next scan in elements.

+

Number of scans in the multiscan.

+

Input sequence on the device. Set pSrc and pDst to the same value for in-place scans.

+

Output sequence on the device.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

You must point the parameters pSrc and pDst to typed buffers (and not to raw or structured buffers). For information about buffer types, see Types of Resources. The format of these typed buffers must be , , or DXGI_FORMAT_R32_INT. In addition, the format of these typed buffers must match the scan data type that you specify in the ElementType parameter. For example, if the scan data type is , the buffer formats must be .

+
+ + ff476855 + HRESULT ID3DX11Scan::Multiscan([In] D3DX11_SCAN_DATA_TYPE ElementType,[In] D3DX11_SCAN_OPCODE OpCode,[In] unsigned int ElementScanSize,[In] unsigned int ElementScanPitch,[In] unsigned int ScanCount,[In] ID3D11UnorderedAccessView* pSrc,[In] ID3D11UnorderedAccessView* pDst) + ID3DX11Scan::Multiscan +
+ + + Creates a scan context. + + The the scan is associated with. + Maximum single scan size, in elements (FLOAT, UINT, or INT) + Maximum number of scans in multiscan. + HRESULT D3DX11CreateScan([In] ID3D11DeviceContext* pDeviceContext,[None] int MaxElementScanSize,[None] int MaxScanCount,[Out] ID3DX11Scan** ppScan) + + + +

Performs a segmented scan of a sequence.

+
+ +

You must point the parameters pSrc and pDst to typed buffers (and not to raw or structured buffers). For information about buffer types, see Types of Resources. The format of these typed buffers must be , , or DXGI_FORMAT_R32_INT. In addition, the format of these typed buffers must match the scan data type that you specify in the ElementType parameter. For example, if the scan data type is , the buffer formats must be .

The format of the resource view to which the pSrcElementFlags parameter points must be .

+
+ + ff476859 + ID3DX11SegmentedScan + ID3DX11SegmentedScan +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets which direction to perform scans in.

+
+

Direction to perform scans in. See .

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

SetScanDirection sets the direction will performed scans in.

+
+ + ff476860 + HRESULT ID3DX11SegmentedScan::SetScanDirection([In] D3DX11_SCAN_DIRECTION Direction) + ID3DX11SegmentedScan::SetScanDirection +
+ + +

Performs a segmented scan of a sequence.

+
+

The type of element in the sequence. See for more information.

+

The binary operation to perform. See for more information.

+

Size of scan in elements.

+

Input sequence on the device. Set pSrc and pDst to the same value for in-place scans.

+

Compact array of bits with one bit per element of pSrc. A set value indicates the start of a new segment.

+

Output sequence on the device.

+

Returns one of the return codes described in the topic Direct3D 11 Return Codes.

+ +

You must point the parameters pSrc and pDst to typed buffers (and not to raw or structured buffers). For information about buffer types, see Types of Resources. The format of these typed buffers must be , , or DXGI_FORMAT_R32_INT. In addition, the format of these typed buffers must match the scan data type that you specify in the ElementType parameter. For example, if the scan data type is , the buffer formats must be .

The format of the resource view to which the pSrcElementFlags parameter points must be .

+
+ + ff476859 + HRESULT ID3DX11SegmentedScan::SegScan([In] D3DX11_SCAN_DATA_TYPE ElementType,[In] D3DX11_SCAN_OPCODE OpCode,[In] unsigned int ElementScanSize,[In, Optional] ID3D11UnorderedAccessView* pSrc,[In] ID3D11UnorderedAccessView* pSrcElementFlags,[In] ID3D11UnorderedAccessView* pDst) + ID3DX11SegmentedScan::SegScan +
+ + + Creates a segmented scan context. + + Pointer to an interface. + Maximum single scan size, in elements (FLOAT, UINT, or INT). + HRESULT D3DX11CreateSegmentedScan([In] ID3D11DeviceContext* pDeviceContext,[None] int MaxElementScanSize,[Out] ID3DX11SegmentedScan** ppScan) + + + +

A shader-resource-view interface specifies the subresources a shader can access during rendering. Examples of shader resources include a constant buffer, a texture buffer, and a texture.

+
+ +

To create a shader-resource view, call .

A shader-resource view is required when binding a resource to a shader stage; the binding occurs by calling , or .

Windows?Phone?8: This API is supported.

+
+ + ff476628 + ID3D11ShaderResourceView + ID3D11ShaderResourceView +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the shader resource view's description.

+
+

A reference to a structure to be filled with data about the shader resource view.

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476629 + void ID3D11ShaderResourceView::GetDesc([Out] D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc) + ID3D11ShaderResourceView::GetDesc +
+ + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the ShaderResource flag. + ff476519 + HRESULT ID3D11Device::CreateShaderResourceView([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc,[Out, Fast] ID3D11ShaderResourceView** ppSRView) + ID3D11Device::CreateShaderResourceView + + + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the ShaderResource flag. + A structure describing the to be created. + ff476519 + HRESULT ID3D11Device::CreateShaderResourceView([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc,[Out, Fast] ID3D11ShaderResourceView** ppSRView) + ID3D11Device::CreateShaderResourceView + + + + Create a shader-resource view from a file. Read the characteristics of a texture when the texture is loaded. + + A reference to the device (see ) that will use the resource. + Name of the file that contains the shader-resource view. + Returns a reference to the shader-resource view (see ). + HRESULT D3DX11CreateShaderResourceViewFromFileW([None] ID3D10Device* pDevice,[None] const wchar_t* pSrcFile,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[None] ID3DX11ThreadPump* pPump,[None] ID3D10ShaderResourceView** ppShaderResourceView,[None] HRESULT* pHResult) + + + + Create a shader-resource view from a file. + + A reference to the device (see ) that will use the resource. + Name of the file that contains the shader-resource view. + Identifies the characteristics of a texture (see ) when the data processor is created. + Returns a reference to the shader-resource view (see ). + HRESULT D3DX11CreateShaderResourceViewFromFileW([None] ID3D10Device* pDevice,[None] const wchar_t* pSrcFile,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[None] ID3DX11ThreadPump* pPump,[None] ID3D10ShaderResourceView** ppShaderResourceView,[None] HRESULT* pHResult) + + + + Create a shader-resource view from a file in memory. + + A reference to the device (see ) that will use the resource. + Pointer to a memory location that contains the shader-resource view. + Returns a reference to the shader-resource view (see ). + HRESULT D3DX11CreateShaderResourceViewFromMemory([None] ID3D10Device* pDevice,[None] const void* pSrcData,[None] SIZE_T SrcDataSize,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[None] ID3DX11ThreadPump* pPump,[None] ID3D10ShaderResourceView** ppShaderResourceView,[None] HRESULT* pHResult) + + + + Create a shader-resource view from a file in memory. + + A reference to the device (see ) that will use the resource. + Pointer to a memory location that contains the shader-resource view. + Identifies the characteristics of a texture (see ) when the data processor is created. + Returns a reference to the shader-resource view (see ). + HRESULT D3DX11CreateShaderResourceViewFromMemory([None] ID3D10Device* pDevice,[None] const void* pSrcData,[None] SIZE_T SrcDataSize,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[None] ID3DX11ThreadPump* pPump,[None] ID3D10ShaderResourceView** ppShaderResourceView,[None] HRESULT* pHResult) + + + + Create a shader-resource view from a file in a stream.. + + A reference to the device (see ) that will use the resource. + Pointer to the file in memory that contains the shader-resource view. + Size of the file to read from the stream + Returns a reference to the shader-resource view (see ). + HRESULT D3DX11CreateShaderResourceViewFromMemory([None] ID3D10Device* pDevice,[None] const void* pSrcData,[None] SIZE_T SrcDataSize,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[None] ID3DX11ThreadPump* pPump,[None] ID3D10ShaderResourceView** ppShaderResourceView,[None] HRESULT* pHResult) + + + + Create a shader-resource view from a file in a stream.. + + A reference to the device (see ) that will use the resource. + Pointer to the file in memory that contains the shader-resource view. + Size of the file to read from the stream + Identifies the characteristics of a texture (see ) when the data processor is created. + Returns a reference to the shader-resource view (see ). + HRESULT D3DX11CreateShaderResourceViewFromMemory([None] ID3D10Device* pDevice,[None] const void* pSrcData,[None] SIZE_T SrcDataSize,[In, Optional] D3DX11_IMAGE_LOAD_INFO* pLoadInfo,[None] ID3DX11ThreadPump* pPump,[None] ID3D10ShaderResourceView** ppShaderResourceView,[None] HRESULT* pHResult) + + + +

Get the shader resource view's description.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476629 + GetDesc + GetDesc + void ID3D11ShaderResourceView::GetDesc([Out] D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc) +
+ + +

Note??The interface and its methods are not supported in Direct3D 11.

+
+ + ff476630 + ID3D11SwitchToRef + ID3D11SwitchToRef +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Note??The interface and its methods are not supported in Direct3D 11.

+
+ No documentation. +

Reserved.

+ + ff476632 + BOOL ID3D11SwitchToRef::SetUseRef([In] BOOL UseRef) + ID3D11SwitchToRef::SetUseRef +
+ + +

Note??The interface and its methods are not supported in Direct3D 11.

+
+

Reserved.

+ + ff476631 + BOOL ID3D11SwitchToRef::GetUseRef() + ID3D11SwitchToRef::GetUseRef +
+ + +

Note??The interface and its methods are not supported in Direct3D 11.

+
+ + ff476631 + GetUseRef + GetUseRef + BOOL ID3D11SwitchToRef::GetUseRef() +
+ + +

A 1D texture interface accesses texel data, which is structured memory.

+
+ +

To create an empty 1D texture, call . For info about how to create a 2D texture, which is similar to creating a 1D texture, see How to: Create a Texture.

Textures cannot be bound directly to the pipeline; instead, a view must be created and bound. Using a view, texture data can be interpreted at run time within certain restrictions. To use the texture as a render target or depth-stencil resource, call , and , respectively. To use the texture as an input to a shader, create a by calling .

Windows?Phone?8: This API is supported.

+
+ + ff476633 + ID3D11Texture1D + ID3D11Texture1D +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the properties of the texture resource.

+
+

Pointer to a resource description (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476634 + void ID3D11Texture1D::GetDesc([Out] D3D11_TEXTURE1D_DESC* pDesc) + ID3D11Texture1D::GetDesc +
+ + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + ff476520 + HRESULT ID3D11Device::CreateTexture1D([In] const D3D11_TEXTURE1D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture1D** ppTexture1D) + ID3D11Device::CreateTexture1D + + + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + An array of initial texture data for each subresource. + ff476520 + HRESULT ID3D11Device::CreateTexture1D([In] const D3D11_TEXTURE1D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture1D** ppTexture1D) + ID3D11Device::CreateTexture1D + + + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + An array of initial texture data for each subresource. + ff476520 + HRESULT ID3D11Device::CreateTexture1D([In] const D3D11_TEXTURE1D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture1D** ppTexture1D) + ID3D11Device::CreateTexture1D + + + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + An array of initial texture data for each subresource. + ff476520 + HRESULT ID3D11Device::CreateTexture1D([In] const D3D11_TEXTURE1D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture1D** ppTexture1D) + ID3D11Device::CreateTexture1D + + + + + + +

Get the properties of the texture resource.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476634 + GetDesc + GetDesc + void ID3D11Texture1D::GetDesc([Out] D3D11_TEXTURE1D_DESC* pDesc) +
+ + +

A 2D texture interface manages texel data, which is structured memory.

+
+ +

To create an empty Texture2D resource, call . For info about how to create a 2D texture, see How to: Create a Texture.

Textures cannot be bound directly to the pipeline; instead, a view must be created and bound. Using a view, texture data can be interpreted at run time within certain restrictions. To use the texture as a render target or depth-stencil resource, call , and , respectively. To use the texture as an input to a shader, create a by calling .

Windows?Phone?8: This API is supported.

+
+ + ff476635 + ID3D11Texture2D + ID3D11Texture2D +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the properties of the texture resource.

+
+

Pointer to a resource description (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476636 + void ID3D11Texture2D::GetDesc([Out] D3D11_TEXTURE2D_DESC* pDesc) + ID3D11Texture2D::GetDesc +
+ + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + ff476521 + HRESULT ID3D11Device::CreateTexture2D([In] const D3D11_TEXTURE2D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture2D** ppTexture2D) + ID3D11Device::CreateTexture2D + + + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + An array of initial texture data for each subresource. + ff476521 + HRESULT ID3D11Device::CreateTexture2D([In] const D3D11_TEXTURE2D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture2D** ppTexture2D) + ID3D11Device::CreateTexture2D + + + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + An array of initial texture data for each subresource. + ff476521 + HRESULT ID3D11Device::CreateTexture2D([In] const D3D11_TEXTURE2D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture2D** ppTexture2D) + ID3D11Device::CreateTexture2D + + + + + + + Converts a height map into a normal map. The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture. + + The device used to create the normal map. + The source height map texture. + The destination texture. + One or more flags that control generation of normal maps. + One or more flag specifying the source of height information. + Constant value multiplier that increases (or decreases) the values in the normal map. Higher values usually make bumps more visible, lower values usually make bumps less visible. + A object describing the result of the operation. + + + + Projects a function represented in a cube map into spherical harmonics. + + A reference to an object. + A reference to an that represents a cubemap that is going to be projected into spherical harmonics. + Order of the SH evaluation, generates Order^2 coefficients whose degree is Order-1. Valid range is between 2 and 6. + An array of SH Vector for red, green and blue components with a length Order^2. + HRESULT D3DX11SHProjectCubeMap([In] ID3D11DeviceContext* pContext,[In] unsigned int Order,[In] ID3D11Texture2D* pCubeMap,[Out, Buffer] float* pROut,[Out, Buffer, Optional] float* pGOut,[Out, Buffer, Optional] float* pBOut) + + + +

Get the properties of the texture resource.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476636 + GetDesc + GetDesc + void ID3D11Texture2D::GetDesc([Out] D3D11_TEXTURE2D_DESC* pDesc) +
+ + +

A 3D texture interface accesses texel data, which is structured memory.

+
+ +

To create an empty Texture3D resource, call . For info about how to create a 2D texture, which is similar to creating a 3D texture, see How to: Create a Texture.

Textures cannot be bound directly to the pipeline; instead, a view must be created and bound. Using a view, texture data can be interpreted at run time within certain restrictions. To use the texture as a render target or depth-stencil resource, call , and , respectively. To use the texture as an input to a shader, create a by calling .

Windows?Phone?8: This API is supported.

+
+ + ff476637 + ID3D11Texture3D + ID3D11Texture3D +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the properties of the texture resource.

+
+

Pointer to a resource description (see ).

+ +

Windows?Phone?8: This API is supported.

+
+ + ff476636 + void ID3D11Texture3D::GetDesc([Out] D3D11_TEXTURE3D_DESC* pDesc) + ID3D11Texture3D::GetDesc +
+ + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + + + + Initializes a new instance of the class. + + The device with which to associate the texture. + The description of the texture. + An array of initial texture data for each subresource. + + + + + + +

Get the properties of the texture resource.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476636 + GetDesc + GetDesc + void ID3D11Texture3D::GetDesc([Out] D3D11_TEXTURE3D_DESC* pDesc) +
+ + +

A view interface specifies the parts of a resource the pipeline can access during rendering.

+
+ +

To create a view for an unordered access resource, call .

All resources must be bound to the pipeline before they can be accessed. Call to bind an unordered access view to a compute shader; call to bind an unordered access view to a pixel shader.

+
+ + ff476639 + ID3D11UnorderedAccessView + ID3D11UnorderedAccessView +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a description of the resource.

+
+

Pointer to a resource description (see .)

+ + ff476640 + void ID3D11UnorderedAccessView::GetDesc([Out] D3D11_UNORDERED_ACCESS_VIEW_DESC* pDesc) + ID3D11UnorderedAccessView::GetDesc +
+ + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the UnorderedAccess flag. + ID3D11Device::CreateUnorderedAccessView + + + + Creates a for accessing resource data. + + The device to use when creating this . + The resource that represents the render-target surface. This surface must have been created with the UnorderedAccess flag. + A structure describing the to be created. + ID3D11Device::CreateUnorderedAccessView + + + +

Get a description of the resource.

+
+ + ff476640 + GetDesc + GetDesc + void ID3D11UnorderedAccessView::GetDesc([Out] D3D11_UNORDERED_ACCESS_VIEW_DESC* pDesc) +
+ + +

A vertex-shader interface manages an executable program (a vertex shader) that controls the vertex-shader stage.

+
+ +

The vertex-shader interface has no methods; use HLSL to implement your shader functionality. All shaders are implemented from a common set of features referred to as the common-shader core..

To create a vertex shader interface, call . Before using a vertex shader you must bind it to the device by calling .

This interface is defined in D3D11.h.

Windows?Phone?8: This API is supported.

+
+ + ff476641 + ID3D11VertexShader + ID3D11VertexShader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Initializes a new instance of the class. + + The device used to create the shader. + The compiled shader bytecode. + A dynamic class linkage interface. + + + +

The interface represents a device context which generates rendering commands.

+
+ +

Windows?Phone?8: This API is supported.

+
+ + ff476385 + ID3D11DeviceContext + ID3D11DeviceContext +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the constant buffers used by the vertex shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to - 1).

+

Number of buffers to set (ranges from 0 to - StartSlot).

+

Array of constant buffers (see ) being given to the device.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The Direct3D 11.1 runtime, which is available starting with Windows?8, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the VSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476491 + void ID3D11DeviceContext::VSSetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[In, Buffer] const void** ppConstantBuffers) + ID3D11DeviceContext::VSSetConstantBuffers +
+ + +

Set a vertex shader to the device.

+
+

Pointer to a vertex shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476493 + void ID3D11DeviceContext::VSSetShader([In, Optional] ID3D11VertexShader* pVertexShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::VSSetShader +
+ + +

Set a vertex shader to the device.

+
+

Pointer to a vertex shader (see ). Passing in null disables the shader for this pipeline stage.

+

A reference to an array of class-instance interfaces (see ). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to null if the shader does not use any interfaces.

+

The number of class-instance interfaces in the array.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows?Phone?8: This API is supported.

+
+ + ff476493 + void ID3D11DeviceContext::VSSetShader([In, Optional] ID3D11VertexShader* pVertexShader,[In, Buffer, Optional] const ID3D11ClassInstance** ppClassInstances,[In] unsigned int NumClassInstances) + ID3D11DeviceContext::VSSetShader +
+ + +

Bind an array of shader resources to the vertex-shader stage.

+
+

Index into the device's zero-based array to begin setting shader resources to (range is from 0 to - 1).

+

Number of shader resources to set. Up to a maximum of 128 slots are available for shader resources (range is from 0 to - StartSlot).

+

Array of shader resource view interfaces to set to the device.

+ +

If an overlapping resource view is already bound to an output slot, such as a rendertarget, then this API will fill the destination shader resource slot with null.

For information about creating shader-resource views, see .

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476494 + void ID3D11DeviceContext::VSSetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[In, Buffer] const void** ppShaderResourceViews) + ID3D11DeviceContext::VSSetShaderResources +
+ + +

Set an array of sampler states to the vertex shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting samplers to (ranges from 0 to - 1).

+

Number of samplers in the array. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Pointer to an array of sampler-state interfaces (see ). See Remarks.

+ +

Any sampler may be set to null; this invokes the default state, which is defined to be the following.

 //Default sampler state:	
+             SamplerDesc;	
+            SamplerDesc.Filter = ;	
+            SamplerDesc.AddressU = ;	
+            SamplerDesc.AddressV = ;	
+            SamplerDesc.AddressW = ;	
+            SamplerDesc.MipLODBias = 0;	
+            SamplerDesc.MaxAnisotropy = 1;	
+            SamplerDesc.ComparisonFunc = ;	
+            SamplerDesc.BorderColor[0] = 1.0f;	
+            SamplerDesc.BorderColor[1] = 1.0f;	
+            SamplerDesc.BorderColor[2] = 1.0f;	
+            SamplerDesc.BorderColor[3] = 1.0f;	
+            SamplerDesc.MinLOD = -FLT_MAX;	
+            SamplerDesc.MaxLOD = FLT_MAX; 

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

Windows?Phone?8: This API is supported.

+
+ + ff476492 + void ID3D11DeviceContext::VSSetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[In, Buffer] const void** ppSamplers) + ID3D11DeviceContext::VSSetSamplers +
+ + +

Sets the constant buffers used by the vertex shader pipeline stage.

+
+

Index into the device's zero-based array to begin setting constant buffers to (ranges from 0 to - 1).

+

Number of buffers to set (ranges from 0 to - StartSlot).

+

Array of constant buffers (see ) being given to the device.

+ +

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The Direct3D 11.1 runtime, which is available starting with Windows?8, can bind a larger number of resources to the shader than the maximum constant buffer size that is supported by shaders (4096 constants ? 4*32-bit components each). When you bind such a large buffer, the shader can access only the first 4096 4*32-bit component constants in the buffer, as if 4096 constants is the full size of the buffer.

If the application wants the shader to access other parts of the buffer, it must call the VSSetConstantBuffers1 method instead.

Windows?Phone?8: This API is supported.

+
+ + ff476491 + void ID3D11DeviceContext::VSGetConstantBuffers([In] unsigned int StartSlot,[In] unsigned int NumBuffers,[Out, Buffer] ID3D11Buffer** ppConstantBuffers) + ID3D11DeviceContext::VSGetConstantBuffers +
+ + +

Get the vertex shader currently set on the device.

+
+

Address of a reference to a vertex shader (see ) to be returned by the method.

+

Pointer to an array of class instance interfaces (see ).

+

The number of class-instance elements in the array.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476489 + void ID3D11DeviceContext::VSGetShader([Out] ID3D11VertexShader** ppVertexShader,[Out, Buffer, Optional] ID3D11ClassInstance** ppClassInstances,[InOut] unsigned int* pNumClassInstances) + ID3D11DeviceContext::VSGetShader +
+ + +

Get the vertex shader resources.

+
+

Index into the device's zero-based array to begin getting shader resources from (ranges from 0 to - 1).

+

The number of resources to get from the device. Up to a maximum of 128 slots are available for shader resources (ranges from 0 to - StartSlot).

+

Array of shader resource view interfaces to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476490 + void ID3D11DeviceContext::VSGetShaderResources([In] unsigned int StartSlot,[In] unsigned int NumViews,[Out, Buffer] ID3D11ShaderResourceView** ppShaderResourceViews) + ID3D11DeviceContext::VSGetShaderResources +
+ + +

Get an array of sampler states from the vertex shader pipeline stage.

+
+

Index into a zero-based array to begin getting samplers from (ranges from 0 to - 1).

+

Number of samplers to get from a device context. Each pipeline stage has a total of 16 sampler slots available (ranges from 0 to - StartSlot).

+

Arry of sampler-state interface references (see ) to be returned by the device.

+ +

Any returned interfaces will have their reference count incremented by one. Applications should call IUnknown::Release on the returned interfaces when they are no longer needed to avoid memory leaks.

Windows?Phone?8: This API is supported.

+
+ + ff476488 + void ID3D11DeviceContext::VSGetSamplers([In] unsigned int StartSlot,[In] unsigned int NumSamplers,[Out, Buffer] ID3D11SamplerState** ppSamplers) + ID3D11DeviceContext::VSGetSamplers +
+ + +

Describes an HLSL class instance.

+
+ +

The structure is returned by the method.

The members of this structure except InstanceIndex are valid (non default values) if they describe a class instance aquired using . The InstanceIndex member is only valid when the class instance is aquired using .

+
+ + ff476098 + D3D11_CLASS_INSTANCE_DESC + D3D11_CLASS_INSTANCE_DESC +
+ + +

The instance ID of an HLSL class; the default value is 0.

+
+ + ff476098 + unsigned int InstanceId + unsigned int InstanceId +
+ + +

The instance index of an HLSL class; the default value is 0.

+
+ + ff476098 + unsigned int InstanceIndex + unsigned int InstanceIndex +
+ + +

The type ID of an HLSL class; the default value is 0.

+
+ + ff476098 + unsigned int TypeId + unsigned int TypeId +
+ + +

Describes the constant buffer associated with an HLSL class; the default value is 0.

+
+ + ff476098 + unsigned int ConstantBuffer + unsigned int ConstantBuffer +
+ + +

The base constant buffer offset associated with an HLSL class; the default value is 0.

+
+ + ff476098 + unsigned int BaseConstantBufferOffset + unsigned int BaseConstantBufferOffset +
+ + +

The base texture associated with an HLSL class; the default value is 127.

+
+ + ff476098 + unsigned int BaseTexture + unsigned int BaseTexture +
+ + +

The base sampler associated with an HLSL class; the default value is 15.

+
+ + ff476098 + unsigned int BaseSampler + unsigned int BaseSampler +
+ + +

True if the class was created; the default value is false.

+
+ + ff476098 + BOOL Created + BOOL Created +
+ + +

Information about the video card's performance counter capabilities.

+
+ +

This structure is returned by .

+
+ + ff476104 + D3D11_COUNTER_INFO + D3D11_COUNTER_INFO +
+ + +

Largest device-dependent counter ID that the device supports. If none are supported, this value will be 0. Otherwise it will be greater than or equal to . See .

+
+ + ff476104 + D3D11_COUNTER LastDeviceDependentCounter + D3D11_COUNTER LastDeviceDependentCounter +
+ + +

Number of counters that can be simultaneously supported.

+
+ + ff476104 + unsigned int NumSimultaneousCounters + unsigned int NumSimultaneousCounters +
+ + +

Number of detectable parallel units that the counter is able to discern. Values are 1 ~ 4. Use NumDetectableParallelUnits to interpret the values of the VERTEX_PROCESSING, GEOMETRY_PROCESSING, PIXEL_PROCESSING, and OTHER_GPU_PROCESSING counters.

+
+ + ff476104 + unsigned char NumDetectableParallelUnits + unsigned char NumDetectableParallelUnits +
+ + +

Describes a counter.

+
+ +

This structure is used by , and .

+
+ + ff476103 + D3D11_COUNTER_DESC + D3D11_COUNTER_DESC +
+ + +

Type of counter (see ).

+
+ + ff476103 + D3D11_COUNTER Counter + D3D11_COUNTER Counter +
+ + +

Reserved.

+
+ + ff476103 + unsigned int MiscFlags + unsigned int MiscFlags +
+ + +

Stencil operations that can be performed based on the results of stencil test.

+
+ +

All stencil operations are specified as a . The stencil operation can be set differently based on the outcome of the stencil test (which is referred to as StencilFunc in the stencil test portion of depth-stencil testing.

This structure is a member of a depth-stencil description.

+
+ + ff476109 + D3D11_DEPTH_STENCILOP_DESC + D3D11_DEPTH_STENCILOP_DESC +
+ + +

The stencil operation to perform when stencil testing fails.

+
+ + ff476109 + D3D11_STENCIL_OP StencilFailOp + D3D11_STENCIL_OP StencilFailOp +
+ + +

The stencil operation to perform when stencil testing passes and depth testing fails.

+
+ + ff476109 + D3D11_STENCIL_OP StencilDepthFailOp + D3D11_STENCIL_OP StencilDepthFailOp +
+ + +

The stencil operation to perform when stencil testing and depth testing both pass.

+
+ + ff476109 + D3D11_STENCIL_OP StencilPassOp + D3D11_STENCIL_OP StencilPassOp +
+ + +

A function that compares stencil data against existing stencil data. The function options are listed in .

+
+ + ff476109 + D3D11_COMPARISON_FUNC StencilFunc + D3D11_COMPARISON_FUNC StencilFunc +
+ + +

Specifies the subresources of a texture that are accessible from a depth-stencil view.

+
+ +

These are valid formats for a depth-stencil view:

A depth-stencil view cannot use a typeless format. If the format chosen is , then the format of the parent resource is used.

A depth-stencil-view description is needed when calling .

+
+ + ff476112 + D3D11_DEPTH_STENCIL_VIEW_DESC + D3D11_DEPTH_STENCIL_VIEW_DESC +
+ + +

Resource data format (see ). See remarks for allowable formats.

+
+ + ff476112 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

Type of resource (see ). Specifies how a depth-stencil resource will be accessed; the value is stored in the union in this structure.

+
+ + ff476112 + D3D11_DSV_DIMENSION ViewDimension + D3D11_DSV_DIMENSION ViewDimension +
+ + +

A value that describes whether the texture is read only. Pass 0 to specify that it is not read only; otherwise, pass one of the members of the enumerated type.

+
+ + ff476112 + D3D11_DSV_FLAG Flags + D3D11_DSV_FLAG Flags +
+ + +

Specifies a 1D texture subresource (see ).

+
+ + ff476112 + D3D11_TEX1D_DSV Texture1D + D3D11_TEX1D_DSV Texture1D +
+ + +

Specifies an array of 1D texture subresources (see ).

+
+ + ff476112 + D3D11_TEX1D_ARRAY_DSV Texture1DArray + D3D11_TEX1D_ARRAY_DSV Texture1DArray +
+ + +

Specifies a 2D texture subresource (see ).

+
+ + ff476112 + D3D11_TEX2D_DSV Texture2D + D3D11_TEX2D_DSV Texture2D +
+ + +

Specifies an array of 2D texture subresources (see ).

+
+ + ff476112 + D3D11_TEX2D_ARRAY_DSV Texture2DArray + D3D11_TEX2D_ARRAY_DSV Texture2DArray +
+ + +

Specifies a multisampled 2D texture (see ).

+
+ + ff476112 + D3D11_TEX2DMS_DSV Texture2DMS + D3D11_TEX2DMS_DSV Texture2DMS +
+ + +

Specifies an array of multisampled 2D textures (see ).

+
+ + ff476112 + D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray + D3D11_TEX2DMS_ARRAY_DSV Texture2DMSArray +
+ + +

Specifies the subresource from a 2D texture that is accessible to a depth-stencil view.

+
+ +

This structure is one member of a depth-stencil-view description (see ).

+
+ + ff476243 + D3D11_TEX2D_DSV + D3D11_TEX2D_DSV +
+ + +

The index of the first mipmap level to use.

+
+ + ff476243 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

Specifies the subresources from an array of 1D textures to use in a depth-stencil view.

+
+ +

This structure is one member of a depth-stencil-view description (see ).

+
+ + ff476225 + D3D11_TEX1D_ARRAY_DSV + D3D11_TEX1D_ARRAY_DSV +
+ + +

The index of the first mipmap level to use.

+
+ + ff476225 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476225 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures to use.

+
+ + ff476225 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Specifies the subresource from a 1D texture that is accessible to a depth-stencil view.

+
+ +

This structure is one member of a depth-stencil-view description (see ).

+
+ + ff476229 + D3D11_TEX1D_DSV + D3D11_TEX1D_DSV +
+ + +

The index of the first mipmap level to use.

+
+ + ff476229 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

Specifies the subresources from an array 2D textures that are accessible to a depth-stencil view.

+
+ +

This structure is one member of a depth-stencil-view description (see ).

+
+ + ff476239 + D3D11_TEX2D_ARRAY_DSV + D3D11_TEX2D_ARRAY_DSV +
+ + +

The index of the first mipmap level to use.

+
+ + ff476239 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476239 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures to use.

+
+ + ff476239 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Specifies the subresource from a multisampled 2D texture that is accessible to a depth-stencil view.

+
+ +

Because a multisampled 2D texture contains a single subtexture, there is nothing to specify; this unused member is included so that this structure will compile in C.

+
+ + ff476236 + D3D11_TEX2DMS_DSV + D3D11_TEX2DMS_DSV +
+ + +

Unused.

+
+ + ff476236 + unsigned int UnusedField_NothingToDefine + unsigned int UnusedField_NothingToDefine +
+ + +

Specifies the subresources from an array of multisampled 2D textures for a depth-stencil view.

+
+ +

This structure is one member of a depth-stencil-view description (see ).

+
+ + ff476233 + D3D11_TEX2DMS_ARRAY_DSV + D3D11_TEX2DMS_ARRAY_DSV +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476233 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures to use.

+
+ + ff476233 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Describes buffer requirements for an FFT.

+
+ +

The structure is initialized by a call to one of the create-FFT functions (for example, ). For more create-FFT functions, see D3DCSX 11 Functions.

Use the info in to allocate raw buffers of the specified (or larger) sizes and then call the method to register the buffers with the FFT object.

Some FFT algorithms benefit from precomputing sin and cos. The FFT object might store precomputed data in the user-supplied buffers.

+
+ + ff476308 + D3DX11_FFT_BUFFER_INFO + D3DX11_FFT_BUFFER_INFO +
+ + +

Number of temporary buffers needed. Allowed range is 0 to D3DX11_FFT_MAX_TEMP_BUFFERS.

+
+ + ff476308 + unsigned int NumTempBufferSizes + unsigned int NumTempBufferSizes +
+ + +

Number of precompute buffers required. Allowed range is 0 to D3DX11_FFT_MAX_PRECOMPUTE_BUFFERS.

+
+ + ff476308 + unsigned int NumPrecomputeBufferSizes + unsigned int NumPrecomputeBufferSizes +
+ + +

Minimum sizes (in FLOATs) of temporary buffers.

+
+ + ff476308 + unsigned int TempBufferFloatSizes[4] + unsigned int TempBufferFloatSizes +
+ + +

Minimum sizes (in FLOATs) for precompute buffers.

+
+ + ff476308 + unsigned int PrecomputeBufferFloatSizes[4] + unsigned int PrecomputeBufferFloatSizes +
+ + +

Describes an FFT.

+
+ + ff476311 + D3DX11_FFT_DESC + D3DX11_FFT_DESC +
+ + +

Number of dimension in the FFT.

+
+ + ff476311 + unsigned int NumDimensions + unsigned int NumDimensions +
+ + +

Combination of flags indicating the dimensions to transform.

+
+ + ff476311 + D3DX11_FFT_DIM_MASK DimensionMask + D3DX11_FFT_DIM_MASK DimensionMask +
+ + +

flag indicating the type of data being transformed.

+
+ + ff476311 + D3DX11_FFT_DATA_TYPE Type + D3DX11_FFT_DATA_TYPE Type +
+ + +

Length of each dimension in the FFT.

+
+ + ff476311 + unsigned int ElementLengths[32] + unsigned int ElementLengths +
+ + +

Describes compute shader and raw and structured buffer support in the current graphics driver.

+
+ +

Direct3D 11 devices () are required to support Compute Shader model 5.0. Direct3D 10.x devices (, ) can optionally support Compute Shader model 4.0 or 4.1.

+
+ + ff476126 + D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS + D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS +
+ + +

TRUE if compute shaders and raw and structured buffers are supported; otherwise .

+
+ + ff476126 + BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x + BOOL ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x +
+ + +

Describes double data type support in the current graphics driver.

+
+ +

If the runtime sets DoublePrecisionFloatShaderOps to TRUE, the hardware and driver support the following Shader Model 5 instructions:

  • dadd
  • dmax
  • dmin
  • dmul
  • deq
  • dge
  • dlt
  • dne
  • dmov
  • dmovc
  • dtof
  • ftod

Note??If DoublePrecisionFloatShaderOps is TRUE, the hardware and driver do not necessarily support double-precision division.

+
+ + ff476127 + D3D11_FEATURE_DATA_DOUBLES + D3D11_FEATURE_DATA_DOUBLES +
+ + +

Specifies whether double types are allowed. If TRUE, double types are allowed; otherwise . The runtime must set DoublePrecisionFloatShaderOps to TRUE in order for you to use any HLSL shader that is compiled with a double type.

+
+ + ff476127 + BOOL DoublePrecisionFloatShaderOps + BOOL DoublePrecisionFloatShaderOps +
+ + +

Describes which resources are supported by the current graphics driver for a given format.

+
+ + ff476128 + D3D11_FEATURE_DATA_FORMAT_SUPPORT + D3D11_FEATURE_DATA_FORMAT_SUPPORT +
+ + +

to return information on.

+
+ + ff476128 + DXGI_FORMAT InFormat + DXGI_FORMAT InFormat +
+ + +

Combination of flags indicating which resources are supported.

+
+ + ff476128 + D3D11_FORMAT_SUPPORT OutFormatSupport + D3D11_FORMAT_SUPPORT OutFormatSupport +
+ + +

Describes which unordered resource options are supported by the current graphics driver for a given format.

+
+ + ff476129 + D3D11_FEATURE_DATA_FORMAT_SUPPORT2 + D3D11_FEATURE_DATA_FORMAT_SUPPORT2 +
+ + +

to return information on.

+
+ + ff476129 + DXGI_FORMAT InFormat + DXGI_FORMAT InFormat +
+ + +

Combination of flags indicating which unordered resource options are supported.

+
+ + ff476129 + D3D11_FORMAT_SUPPORT2 OutFormatSupport2 + D3D11_FORMAT_SUPPORT2 OutFormatSupport2 +
+ + +

Describes the multi-threading features that are supported by the current graphics driver.

+
+ +

Use the structure with the method to determine multi-threading support.

+
+ + ff476130 + D3D11_FEATURE_DATA_THREADING + D3D11_FEATURE_DATA_THREADING +
+ + +

TRUE means resources can be created concurrently on multiple threads while drawing; means that the presence of coarse synchronization will prevent concurrency.

+
+ + ff476130 + BOOL DriverConcurrentCreates + BOOL DriverConcurrentCreates +
+ + +

TRUE means command lists are supported by the current driver; means that the API will emulate deferred contexts and command lists with software.

+
+ + ff476130 + BOOL DriverCommandLists + BOOL DriverCommandLists +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Optionally provide information to texture loader APIs to control how textures get loaded. A value of D3DX11_DEFAULT for any of these parameters will cause D3DX to automatically use the value from the source file.

+
+ +

When initializing the structure, you may set any member to D3DX11_DEFAULT and D3DX will initialize it with a default value from the source texture when the texture is loaded.

This structure can be used by APIs that:

  • Create resources, such as and .
  • Create data processors, such as D3DX11CreateAsyncTextureInfoProcessor or + D3DX11CreateAsyncShaderResourceViewProcessor.

The default values are:

 Width = D3DX11_DEFAULT; Height = D3DX11_DEFAULT; Depth = D3DX11_DEFAULT; FirstMipLevel = D3DX11_DEFAULT; MipLevels = D3DX11_DEFAULT; Usage = () D3DX11_DEFAULT; BindFlags = D3DX11_DEFAULT; CpuAccessFlags = D3DX11_DEFAULT; MiscFlags = D3DX11_DEFAULT; Format = DXGI_FORMAT_FROM_FILE; Filter = D3DX11_DEFAULT; MipFilter = D3DX11_DEFAULT; pSrcInfo = null;	
+            

Here is a brief example that uses this structure to supply the pixel format when loading a texture. For the complete code, see HDRFormats10.cpp in HDRToneMappingCS11 Sample.

 * pCubeRV = null;	
+            WCHAR strPath[MAX_PATH];	
+             LoadInfo; DXUTFindDXSDKMediaFileCch( strPath, MAX_PATH,  L"Light Probes\\uffizi_cross.dds" ); LoadInfo.Format = ; hr = ( pd3dDevice, strPath,  &LoadInfo, null, &pCubeRV, null );	
+            
+
+ + ff476317 + D3DX11_IMAGE_INFO + D3DX11_IMAGE_INFO +
+ + +

The target width of the texture. If the actual width of the texture is larger or smaller than this value then the texture will be scaled up or down to fit this target width.

+
+ + ff476317 + unsigned int Width + unsigned int Width +
+ + +

The target height of the texture. If the actual height of the texture is larger or smaller than this value then the texture will be scaled up or down to fit this target height.

+
+ + ff476317 + unsigned int Height + unsigned int Height +
+ + +

The depth of the texture. This only applies to volume textures.

+
+ + ff476317 + unsigned int Depth + unsigned int Depth +
+ + +

The highest resolution mipmap level of the texture. If this is greater than 0, then after the texture is loaded FirstMipLevel will be mapped to mipmap level 0.

+
+ + ff476317 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

The maximum number of mipmap levels in the texture. See the remarks in . Using 0 or D3DX11_DEFAULT will cause a full mipmap chain to be created.

+
+ + ff476317 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Miscellaneous resource properties (see ).

+
+ + ff476317 + D3D11_RESOURCE_MISC_FLAG MiscFlags + D3D11_RESOURCE_MISC_FLAG MiscFlags +
+ + +

A enumeration indicating the format the texture will be in after it is loaded.

+
+ + ff476317 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

The access permissions the cpu will have for the texture resource. See .

+
+ + ff476317 + D3D11_RESOURCE_DIMENSION ResourceDimension + D3D11_RESOURCE_DIMENSION ResourceDimension +
+ + +

Miscellaneous resource properties (see ).

+
+ + ff476317 + D3DX11_IMAGE_FILE_FORMAT ImageFileFormat + D3DX11_IMAGE_FILE_FORMAT ImageFileFormat +
+ + + Retrieves information about a given image file. + + File name of image to retrieve information about. + If the function succeeds, returns a filled with the description of the data in the source file. else returns null + HRESULT D3DX11GetImageInfoFromFileW([None] const wchar_t* pSrcFile,[None] ID3DX11ThreadPump* pPump,[None] D3DX11_IMAGE_INFO* pSrcInfo,[None] HRESULT* pHResult) + + + + Retrieves information about a given image file from a memory location. + + an array to the image in memory + If the function succeeds, returns a filled with the description of the data from the image memory. else returns null + HRESULT D3DX11GetImageInfoFromFileW([None] const wchar_t* pSrcFile,[None] ID3DX11ThreadPump* pPump,[None] D3DX11_IMAGE_INFO* pSrcInfo,[None] HRESULT* pHResult) + + + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Optionally provide information to texture loader APIs to control how textures get loaded. A value of D3DX11_DEFAULT for any of these parameters will cause D3DX to automatically use the value from the source file.

+
+ +

When initializing the structure, you may set any member to D3DX11_DEFAULT and D3DX will initialize it with a default value from the source texture when the texture is loaded.

This structure can be used by APIs that:

  • Create resources, such as and .
  • Create data processors, such as D3DX11CreateAsyncTextureInfoProcessor or + D3DX11CreateAsyncShaderResourceViewProcessor.

The default values are:

 Width = D3DX11_DEFAULT; Height = D3DX11_DEFAULT; Depth = D3DX11_DEFAULT; FirstMipLevel = D3DX11_DEFAULT; MipLevels = D3DX11_DEFAULT; Usage = () D3DX11_DEFAULT; BindFlags = D3DX11_DEFAULT; CpuAccessFlags = D3DX11_DEFAULT; MiscFlags = D3DX11_DEFAULT; Format = DXGI_FORMAT_FROM_FILE; Filter = D3DX11_DEFAULT; MipFilter = D3DX11_DEFAULT; pSrcInfo = null;	
+            

Here is a brief example that uses this structure to supply the pixel format when loading a texture. For the complete code, see HDRFormats10.cpp in HDRToneMappingCS11 Sample.

 * pCubeRV = null;	
+            WCHAR strPath[MAX_PATH];	
+             LoadInfo; DXUTFindDXSDKMediaFileCch( strPath, MAX_PATH,  L"Light Probes\\uffizi_cross.dds" ); LoadInfo.Format = ; hr = ( pd3dDevice, strPath,  &LoadInfo, null, &pCubeRV, null );	
+            
+
+ + ff476317 + D3DX11_IMAGE_LOAD_INFO + D3DX11_IMAGE_LOAD_INFO +
+ + + The default value for load options. + + + + +

The target width of the texture. If the actual width of the texture is larger or smaller than this value then the texture will be scaled up or down to fit this target width.

+
+ + ff476317 + unsigned int Width + unsigned int Width +
+ + +

The target height of the texture. If the actual height of the texture is larger or smaller than this value then the texture will be scaled up or down to fit this target height.

+
+ + ff476317 + unsigned int Height + unsigned int Height +
+ + +

The depth of the texture. This only applies to volume textures.

+
+ + ff476317 + unsigned int Depth + unsigned int Depth +
+ + +

The highest resolution mipmap level of the texture. If this is greater than 0, then after the texture is loaded FirstMipLevel will be mapped to mipmap level 0.

+
+ + ff476317 + unsigned int FirstMipLevel + unsigned int FirstMipLevel +
+ + +

The maximum number of mipmap levels in the texture. See the remarks in . Using 0 or D3DX11_DEFAULT will cause a full mipmap chain to be created.

+
+ + ff476317 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

The way the texture resource is intended to be used. See .

+
+ + ff476317 + D3D11_USAGE Usage + D3D11_USAGE Usage +
+ + +

The pipeline stages that the texture will be allowed to bind to. See .

+
+ + ff476317 + D3D11_BIND_FLAG BindFlags + D3D11_BIND_FLAG BindFlags +
+ + +

The access permissions the cpu will have for the texture resource. See .

+
+ + ff476317 + D3D11_CPU_ACCESS_FLAG CpuAccessFlags + D3D11_CPU_ACCESS_FLAG CpuAccessFlags +
+ + +

Miscellaneous resource properties (see ).

+
+ + ff476317 + D3D11_RESOURCE_MISC_FLAG MiscFlags + D3D11_RESOURCE_MISC_FLAG MiscFlags +
+ + +

A enumeration indicating the format the texture will be in after it is loaded.

+
+ + ff476317 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

Filter the texture using the specified filter (only when resampling). See .

+
+ + ff476317 + D3DX11_FILTER_FLAG Filter + D3DX11_FILTER_FLAG Filter +
+ + +

Filter the texture mip levels using the specified filter (only if generating mipmaps). Valid values are , , , or . See .

+
+ + ff476317 + D3DX11_FILTER_FLAG MipFilter + D3DX11_FILTER_FLAG MipFilter +
+ + +

Information about the original image. See . Can be obtained with , , or .

+
+ + ff476317 + D3DX11_IMAGE_INFO* pSrcInfo + D3DX11_IMAGE_INFO pSrcInfo +
+ + + Gets an ImageLoadInformation that is setup with all default values (). + + + + +

Debug message filter; contains a lists of message types to allow or deny.

+
+ +

For use with an Interface.

+
+ + ff476177 + D3D11_INFO_QUEUE_FILTER + D3D11_INFO_QUEUE_FILTER +
+ + +

Types of messages that you want to allow. See .

+
+ + ff476177 + D3D11_INFO_QUEUE_FILTER_DESC AllowList + D3D11_INFO_QUEUE_FILTER_DESC AllowList +
+ + +

Types of messages that you want to deny.

+
+ + ff476177 + D3D11_INFO_QUEUE_FILTER_DESC DenyList + D3D11_INFO_QUEUE_FILTER_DESC DenyList +
+ + +

Allow or deny certain types of messages to pass through a filter.

+
+ + ff476178 + D3D11_INFO_QUEUE_FILTER_DESC + D3D11_INFO_QUEUE_FILTER_DESC +
+ + +

Number of message categories to allow or deny.

+
+ + ff476178 + unsigned int NumCategories + unsigned int NumCategories +
+ + +

Array of message categories to allow or deny. Array must have at least NumCategories members (see ).

+
+ + ff476178 + D3D11_MESSAGE_CATEGORY* pCategoryList + D3D11_MESSAGE_CATEGORY pCategoryList +
+ + +

Number of message severity levels to allow or deny.

+
+ + ff476178 + unsigned int NumSeverities + unsigned int NumSeverities +
+ + +

Array of message severity levels to allow or deny. Array must have at least NumSeverities members (see ).

+
+ + ff476178 + D3D11_MESSAGE_SEVERITY* pSeverityList + D3D11_MESSAGE_SEVERITY pSeverityList +
+ + +

Number of message IDs to allow or deny.

+
+ + ff476178 + unsigned int NumIDs + unsigned int NumIDs +
+ + +

Array of message IDs to allow or deny. Array must have at least NumIDs members (see ).

+
+ + ff476178 + D3D11_MESSAGE_ID* pIDList + D3D11_MESSAGE_ID pIDList +
+ + + Gets or sets the categories. + + + The categories. + + + + + Gets or sets the severities. + + + The severities. + + + + + Gets or sets the ids. + + + The ids. + + + + +

Type of data contained in an input slot.

+
+ +

Use these values to specify the type of data for a particular input element (see ) of an input-layout object.

+
+ + ff476179 + D3D11_INPUT_ELEMENT_DESC + D3D11_INPUT_ELEMENT_DESC +
+ + +

Input data is per-vertex data.

+
+ + ff476179 + const char* SemanticName + char SemanticName +
+ + +

Input data is per-instance data.

+
+ + ff476179 + unsigned int SemanticIndex + unsigned int SemanticIndex +
+ + + No documentation. + + + ff476179 + DXGI_FORMAT Format + DXGI_FORMAT Format + + + + No documentation. + + + ff476179 + unsigned int InputSlot + unsigned int InputSlot + + + + No documentation. + + + ff476179 + unsigned int AlignedByteOffset + unsigned int AlignedByteOffset + + + + No documentation. + + + ff476179 + D3D11_INPUT_CLASSIFICATION InputSlotClass + D3D11_INPUT_CLASSIFICATION InputSlotClass + + + + No documentation. + + + ff476179 + unsigned int InstanceDataStepRate + unsigned int InstanceDataStepRate + + + + Initializes a new instance of the struct. + + The HLSL semantic associated with this element in a shader input-signature. + The semantic index for the element. A semantic index modifies a semantic, with an integer index number. A semantic index is only needed in a case where there is more than one element with the same semantic. For example, a 4x4 matrix would have four components each with the semantic name matrix, however each of the four component would have different semantic indices (0, 1, 2, and 3). + The data type of the element data. + Offset (in bytes) between each element. Use AppendAligned for convenience to define the current element directly after the previous one, including any packing if necessary. + An integer value that identifies the input-assembler. Valid values are between 0 and 15. + Identifies the input data class for a single input slot. + The number of instances to draw using the same per-instance data before advancing in the buffer by one element. This value must be 0 for an element that contains per-vertex data. + + + + Initializes a new instance of the struct. + + The HLSL semantic associated with this element in a shader input-signature. + The semantic index for the element. A semantic index modifies a semantic, with an integer index number. A semantic index is only needed in a case where there is more than one element with the same semantic. For example, a 4x4 matrix would have four components each with the semantic name matrix, however each of the four component would have different semantic indices (0, 1, 2, and 3). + The data type of the element data. + Offset (in bytes) between each element. Use AppendAligned for convenience to define the current element directly after the previous one, including any packing if necessary. + An integer value that identifies the input-assembler. Valid values are between 0 and 15. + + + + Initializes a new instance of the struct. + + The HLSL semantic associated with this element in a shader input-signature. + The semantic index for the element. A semantic index modifies a semantic, with an integer index number. A semantic index is only needed in a case where there is more than one element with the same semantic. For example, a 4x4 matrix would have four components each with the semantic name matrix, however each of the four component would have different semantic indices (0, 1, 2, and 3). + The data type of the element data. + An integer value that identifies the input-assembler. Valid values are between 0 and 15. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + + + + Implements the operator ==. + + The left. + The right. + + The result of the operator. + + + + + Implements the operator !=. + + The left. + The right. + + The result of the operator. + + + + + Returns a value that can be used for the offset parameter of an InputElement to indicate that the element + should be aligned directly after the previous element, including any packing if neccessary. + + A value used to align input elements. + D3D11_APPEND_ALIGNED_ELEMENT + + + +

A debug message in the Information Queue.

+
+ +

This structure is returned from as part of the Information Queue feature (see Interface).

+
+ + ff476184 + D3D11_MESSAGE + D3D11_MESSAGE +
+ + +

The category of the message. See .

+
+ + ff476184 + D3D11_MESSAGE_CATEGORY Category + D3D11_MESSAGE_CATEGORY Category +
+ + +

The severity of the message. See .

+
+ + ff476184 + D3D11_MESSAGE_SEVERITY Severity + D3D11_MESSAGE_SEVERITY Severity +
+ + +

The ID of the message. See .

+
+ + ff476184 + D3D11_MESSAGE_ID ID + D3D11_MESSAGE_ID ID +
+ + +

The message string.

+
+ + ff476184 + const char* pDescription + char pDescription +
+ + +

The length of pDescription in bytes.

+
+ + ff476184 + SIZE_T DescriptionByteLength + SIZE_T DescriptionByteLength +
+ + +

Query information about graphics-pipeline activity in between calls to and .

+
+ + ff476192 + D3D11_QUERY_DATA_PIPELINE_STATISTICS + D3D11_QUERY_DATA_PIPELINE_STATISTICS +
+ + + No documentation. + + + ff476192 + unsigned longlong IAVertices + unsigned longlong IAVertices + + + + No documentation. + + + ff476192 + unsigned longlong IAPrimitives + unsigned longlong IAPrimitives + + + + No documentation. + + + ff476192 + unsigned longlong VSInvocations + unsigned longlong VSInvocations + + + + No documentation. + + + ff476192 + unsigned longlong GSInvocations + unsigned longlong GSInvocations + + + + No documentation. + + + ff476192 + unsigned longlong GSPrimitives + unsigned longlong GSPrimitives + + + + No documentation. + + + ff476192 + unsigned longlong CInvocations + unsigned longlong CInvocations + + + + No documentation. + + + ff476192 + unsigned longlong CPrimitives + unsigned longlong CPrimitives + + + + No documentation. + + + ff476192 + unsigned longlong PSInvocations + unsigned longlong PSInvocations + + + + No documentation. + + + ff476192 + unsigned longlong HSInvocations + unsigned longlong HSInvocations + + + + No documentation. + + + ff476192 + unsigned longlong DSInvocations + unsigned longlong DSInvocations + + + + No documentation. + + + ff476192 + unsigned longlong CSInvocations + unsigned longlong CSInvocations + + + +

Query information about the reliability of a timestamp query.

+
+ +

For a list of query types see .

+
+ + ff476194 + D3D11_QUERY_DATA_TIMESTAMP_DISJOINT + D3D11_QUERY_DATA_TIMESTAMP_DISJOINT +
+ + +

How frequently the GPU counter increments in Hz.

+
+ + ff476194 + unsigned longlong Frequency + unsigned longlong Frequency +
+ + +

If this is TRUE, something occurred in between the query's and calls that caused the timestamp counter to become discontinuous or disjoint, such as unplugging the AC cord on a laptop, overheating, or throttling up/down due to laptop savings events. The timestamp returned by for a timestamp query is only reliable if Disjoint is .

+
+ + ff476194 + BOOL Disjoint + BOOL Disjoint +
+ + +

Describes a query.

+
+ + ff476195 + D3D11_QUERY_DESC + D3D11_QUERY_DESC +
+ + +

Type of query (see ).

+
+ + ff476195 + D3D11_QUERY Query + D3D11_QUERY Query +
+ + +

Miscellaneous flags (see ).

+
+ + ff476195 + D3D11_QUERY_MISC_FLAG MiscFlags + D3D11_QUERY_MISC_FLAG MiscFlags +
+ + +

Describes the blend state for a render target.

+
+ +

You specify an array of structures in the RenderTarget member of the structure to describe the blend states for render targets; you can bind up to eight render targets to the output-merger stage at one time.

For info about how blending is done, see the output-merger stage.

Here are the default values for blend state.

StateDefault Value
BlendEnable
SrcBlend
DestBlend
BlendOp
SrcBlendAlpha
DestBlendAlpha
BlendOpAlpha
RenderTargetWriteMask

?

+
+ + ff476200 + D3D11_RENDER_TARGET_BLEND_DESC + D3D11_RENDER_TARGET_BLEND_DESC +
+ + +

Enable (or disable) blending.

+
+ + ff476200 + BOOL BlendEnable + BOOL BlendEnable +
+ + +

This blend option specifies the operation to perform on the RGB value that the pixel shader outputs. The BlendOp member defines how to combine the SrcBlend and DestBlend operations.

+
+ + ff476200 + D3D11_BLEND SrcBlend + D3D11_BLEND SrcBlend +
+ + +

This blend option specifies the operation to perform on the current RGB value in the render target. The BlendOp member defines how to combine the SrcBlend and DestBlend operations.

+
+ + ff476200 + D3D11_BLEND DestBlend + D3D11_BLEND DestBlend +
+ + +

This blend operation defines how to combine the SrcBlend and DestBlend operations.

+
+ + ff476200 + D3D11_BLEND_OP BlendOp + D3D11_BLEND_OP BlendOp +
+ + +

This blend option specifies the operation to perform on the alpha value that the pixel shader outputs. Blend options that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

+
+ + ff476200 + D3D11_BLEND SrcBlendAlpha + D3D11_BLEND SrcBlendAlpha +
+ + +

This blend option specifies the operation to perform on the current alpha value in the render target. Blend options that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

+
+ + ff476200 + D3D11_BLEND DestBlendAlpha + D3D11_BLEND DestBlendAlpha +
+ + +

This blend operation defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

+
+ + ff476200 + D3D11_BLEND_OP BlendOpAlpha + D3D11_BLEND_OP BlendOpAlpha +
+ + +

A write mask.

+
+ + ff476200 + D3D11_COLOR_WRITE_ENABLE RenderTargetWriteMask + D3D11_COLOR_WRITE_ENABLE RenderTargetWriteMask +
+ + + Initializes a new instance of the struct. + + The is blend enabled. + The source blend. + The destination blend. + The blend operation. + The source alpha blend. + The destination alpha blend. + The alpha blend operation. + The render target write mask. + + + +

Specifies the subresources from a resource that are accessible using a render-target view.

+
+ +

A render-target-view description is passed into to create a render target.

A render-target-view cannot use the following formats:

  • Any typeless format.
  • DXGI_FORMAT_R32G32B32 if the view will be used to bind a buffer (vertex, index, constant, or stream-output).

If the format is set to , then the format of the resource that the view binds to the pipeline will be used.

+
+ + ff476201 + D3D11_RENDER_TARGET_VIEW_DESC + D3D11_RENDER_TARGET_VIEW_DESC +
+ + +

The data format (see ).

+
+ + ff476201 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

The resource type (see ), which specifies how the render-target resource will be accessed.

+
+ + ff476201 + D3D11_RTV_DIMENSION ViewDimension + D3D11_RTV_DIMENSION ViewDimension +
+ + +

Specifies which buffer elements can be accessed (see ).

+
+ + ff476201 + D3D11_BUFFER_RTV Buffer + D3D11_BUFFER_RTV Buffer +
+ + +

Specifies the subresources in a 1D texture that can be accessed (see ).

+
+ + ff476201 + D3D11_TEX1D_RTV Texture1D + D3D11_TEX1D_RTV Texture1D +
+ + +

Specifies the subresources in a 1D texture array that can be accessed (see ).

+
+ + ff476201 + D3D11_TEX1D_ARRAY_RTV Texture1DArray + D3D11_TEX1D_ARRAY_RTV Texture1DArray +
+ + +

Specifies the subresources in a 2D texture that can be accessed (see ).

+
+ + ff476201 + D3D11_TEX2D_RTV Texture2D + D3D11_TEX2D_RTV Texture2D +
+ + +

Specifies the subresources in a 2D texture array that can be accessed (see ).

+
+ + ff476201 + D3D11_TEX2D_ARRAY_RTV Texture2DArray + D3D11_TEX2D_ARRAY_RTV Texture2DArray +
+ + +

Specifies a single subresource because a multisampled 2D texture only contains one subresource (see ).

+
+ + ff476201 + D3D11_TEX2DMS_RTV Texture2DMS + D3D11_TEX2DMS_RTV Texture2DMS +
+ + +

Specifies the subresources in a multisampled 2D texture array that can be accessed (see ).

+
+ + ff476201 + D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray + D3D11_TEX2DMS_ARRAY_RTV Texture2DMSArray +
+ + +

Specifies subresources in a 3D texture that can be accessed (see ).

+
+ + ff476201 + D3D11_TEX3D_RTV Texture3D + D3D11_TEX3D_RTV Texture3D +
+ + +

Specifies the subresource from a multisampled 2D texture to use in a render-target view.

+
+ +

Since a multisampled 2D texture contains a single subresource, there is actually nothing to specify in . Consequently, UnusedField_NothingToDefine is included so that this structure will compile in C.

+
+ + ff476237 + D3D11_TEX2DMS_RTV + D3D11_TEX2DMS_RTV +
+ + +

Integer of any value. See remarks.

+
+ + ff476237 + unsigned int UnusedField_NothingToDefine + unsigned int UnusedField_NothingToDefine +
+ + +

Specifies the subresources from a an array of multisampled 2D textures to use in a render-target view.

+
+ +

This structure is one member of a render-target-view description (see ).

+
+ + ff476234 + D3D11_TEX2DMS_ARRAY_RTV + D3D11_TEX2DMS_ARRAY_RTV +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476234 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures to use.

+
+ + ff476234 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Specifies the subresource from a 1D texture to use in a render-target view.

+
+ +

This structure is one member of a render-target-view description (see ).

+
+ + ff476230 + D3D11_TEX1D_RTV + D3D11_TEX1D_RTV +
+ + +

The index of the mipmap level to use mip slice.

+
+ + ff476230 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

Specifies the subresource from a 2D texture to use in a render-target view.

+
+ +

This structure is one member of a render-target-view description (see ).

+
+ + ff476244 + D3D11_TEX2D_RTV + D3D11_TEX2D_RTV +
+ + +

The index of the mipmap level to use mip slice.

+
+ + ff476244 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

Specifies the subresources from an array of 1D textures to use in a render-target view.

+
+ +

This structure is one member of a render-target-view description (see ).

+
+ + ff476226 + D3D11_TEX1D_ARRAY_RTV + D3D11_TEX1D_ARRAY_RTV +
+ + +

The index of the mipmap level to use mip slice.

+
+ + ff476226 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476226 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures to use.

+
+ + ff476226 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Specifies the elements in a buffer resource to use in a render-target view.

+
+ +

A render-target view is a member of a render-target-view description (see ). Create a render-target view by calling .

+
+ + ff476093 + D3D11_BUFFER_RTV + D3D11_BUFFER_RTV +
+ + +

Number of bytes between the beginning of the buffer and the first element to access.

+
+ + ff476093 + unsigned int FirstElement + unsigned int FirstElement +
+ + +

The offset of the first element in the view to access, relative to element 0.

+
+ + ff476093 + unsigned int ElementOffset + unsigned int ElementOffset +
+ + +

The total number of elements in the view.

+
+ + ff476093 + unsigned int NumElements + unsigned int NumElements +
+ + +

The width of each element (in bytes). This can be determined from the format stored in the render-target-view description.

+
+ + ff476093 + unsigned int ElementWidth + unsigned int ElementWidth +
+ + +

Specifies the subresources from a 3D texture to use in a render-target view.

+
+ +

This structure is one member of a render target view. See .

+
+ + ff476247 + D3D11_TEX3D_RTV + D3D11_TEX3D_RTV +
+ + +

The index of the mipmap level to use mip slice.

+
+ + ff476247 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

First depth level to use.

+
+ + ff476247 + unsigned int FirstWSlice + unsigned int FirstWSlice +
+ + +

Number of depth levels to use in the render-target view, starting from FirstWSlice. A value of -1 indicates all of the slices along the w axis, starting from FirstWSlice.

+
+ + ff476247 + unsigned int WSize + unsigned int WSize +
+ + +

Specifies the subresources from an array of 2D textures to use in a render-target view.

+
+ +

This structure is one member of a render-target-view description (see ).

+
+ + ff476240 + D3D11_TEX2D_ARRAY_RTV + D3D11_TEX2D_ARRAY_RTV +
+ + +

The index of the mipmap level to use mip slice.

+
+ + ff476240 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476240 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures in the array to use in the render target view, starting from FirstArraySlice.

+
+ + ff476240 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Defines a 3D box.

+
+ +

The following diagram shows a 3D box, where the origin is the left, front, top corner.

The values for right, bottom, and back are each one pixel past the end of the pixels that are included in the box region. That is, the values for left, top, and front are included in the box region while the values for right, bottom, and back are excluded from the box region. For example, for a box that is one pixel wide, (right - left) == 1; the box region includes the left pixel but not the right pixel.

Coordinates of a box are in bytes for buffers and in texels for textures.

+
+ + ff476089 + D3D11_BOX + D3D11_BOX +
+ + +

The x position of the left hand side of the box.

+
+ + ff476089 + unsigned int left + unsigned int left +
+ + +

The y position of the top of the box.

+
+ + ff476089 + unsigned int top + unsigned int top +
+ + +

The z position of the front of the box.

+
+ + ff476089 + unsigned int front + unsigned int front +
+ + +

The x position of the right hand side of the box.

+
+ + ff476089 + unsigned int right + unsigned int right +
+ + +

The y position of the bottom of the box.

+
+ + ff476089 + unsigned int bottom + unsigned int bottom +
+ + +

The z position of the back of the box.

+
+ + ff476089 + unsigned int back + unsigned int back +
+ + + Initialize a new instance of struct. + + Left coordinates (inclusive) + Top coordinates (inclusive) + Front coordinates (inclusive) + Right coordinates (exclusive) + Bottom coordinates (exclusive) + Back coordinates (exclusive) + +
    +
  • For a Width of 1 pixels, (right - left) = 1. If left = 0, right = Width.
  • +
  • For a Height of 1 pixels, (bottom - top) = 1. If top = 0, bottom = Height.
  • +
  • For a Depth of 1 pixels, (back - front) = 1. If front = 0, back = Depth.
  • +
+
+
+ + +

Describes a sampler state.

+
+ +

These are the default values for sampler state.

StateDefault Value
Filter
AddressU
AddressV
AddressW
MinLOD-3.402823466e+38F (-FLT_MAX)
MaxLOD3.402823466e+38F (FLT_MAX)
MipMapLODBias0.0f
MaxAnisotropy1
ComparisonFunc
BorderColorfloat4(1.0f,1.0f,1.0f,1.0f)
TextureN/A

?

+
+ + ff476207 + D3D11_SAMPLER_DESC + D3D11_SAMPLER_DESC +
+ + +

Filtering method to use when sampling a texture (see ).

+
+ + ff476207 + D3D11_FILTER Filter + D3D11_FILTER Filter +
+ + +

Method to use for resolving a u texture coordinate that is outside the 0 to 1 range (see ).

+
+ + ff476207 + D3D11_TEXTURE_ADDRESS_MODE AddressU + D3D11_TEXTURE_ADDRESS_MODE AddressU +
+ + +

Method to use for resolving a v texture coordinate that is outside the 0 to 1 range.

+
+ + ff476207 + D3D11_TEXTURE_ADDRESS_MODE AddressV + D3D11_TEXTURE_ADDRESS_MODE AddressV +
+ + +

Method to use for resolving a w texture coordinate that is outside the 0 to 1 range.

+
+ + ff476207 + D3D11_TEXTURE_ADDRESS_MODE AddressW + D3D11_TEXTURE_ADDRESS_MODE AddressW +
+ + +

Offset from the calculated mipmap level. For example, if Direct3D calculates that a texture should be sampled at mipmap level 3 and MipLODBias is 2, then the texture will be sampled at mipmap level 5.

+
+ + ff476207 + float MipLODBias + float MipLODBias +
+ + +

Clamping value used if or is specified in Filter. Valid values are between 1 and 16.

+
+ + ff476207 + unsigned int MaxAnisotropy + unsigned int MaxAnisotropy +
+ + +

A function that compares sampled data against existing sampled data. The function options are listed in .

+
+ + ff476207 + D3D11_COMPARISON_FUNC ComparisonFunc + D3D11_COMPARISON_FUNC ComparisonFunc +
+ + +

Border color to use if is specified for AddressU, AddressV, or AddressW. Range must be between 0.0 and 1.0 inclusive.

+
+ + ff476207 + SHARPDX_COLOR4 BorderColor + SHARPDX_COLOR4 BorderColor +
+ + +

Lower end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level and any level higher than that is less detailed.

+
+ + ff476207 + float MinLOD + float MinLOD +
+ + +

Upper end of the mipmap range to clamp access to, where 0 is the largest and most detailed mipmap level and any level higher than that is less detailed. This value must be greater than or equal to MinLOD. To have no upper limit on LOD set this to a large value such as D3D11_FLOAT32_MAX.

+
+ + ff476207 + float MaxLOD + float MaxLOD +
+ + + Returns default values for . + + + See MSDN documentation for default values. + + + + +

Describes a shader-resource view.

+
+ +

A view is a format-specific way to look at the data in a resource. The view determines what data to look at, and how it is cast when read.

When viewing a resource, the resource-view description must specify a typed format, that is compatible with the resource format. So that means that you cannot create a resource-view description using any format with _TYPELESS in the name. You can however view a typeless resource by specifying a typed format for the view. For example, a resource can be viewed with one of these typed formats: , , and , since these typed formats are compatible with the typeless resource.

Create a shader-resource-view description by calling . To view a shader-resource-view description, call .

+
+ + ff476211 + D3D11_SHADER_RESOURCE_VIEW_DESC + D3D11_SHADER_RESOURCE_VIEW_DESC +
+ + +

A specifying the viewing format. See remarks.

+
+ + ff476211 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

The resource type of the view. See D3D11_SRV_DIMENSION. This should be the same as the resource type of the underlying resource. This parameter also determines which _SRV to use in the union below.

+
+ + ff476211 + D3D_SRV_DIMENSION ViewDimension + D3D_SRV_DIMENSION ViewDimension +
+ + +

View the resource as a buffer using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_BUFFER_SRV Buffer + D3D11_BUFFER_SRV Buffer +
+ + +

View the resource as a 1D texture using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX1D_SRV Texture1D + D3D11_TEX1D_SRV Texture1D +
+ + +

View the resource as a 1D-texture array using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX1D_ARRAY_SRV Texture1DArray + D3D11_TEX1D_ARRAY_SRV Texture1DArray +
+ + +

View the resource as a 2D-texture using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX2D_SRV Texture2D + D3D11_TEX2D_SRV Texture2D +
+ + +

View the resource as a 2D-texture array using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX2D_ARRAY_SRV Texture2DArray + D3D11_TEX2D_ARRAY_SRV Texture2DArray +
+ + +

View the resource as a 2D-multisampled texture using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX2DMS_SRV Texture2DMS + D3D11_TEX2DMS_SRV Texture2DMS +
+ + +

View the resource as a 2D-multisampled-texture array using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray + D3D11_TEX2DMS_ARRAY_SRV Texture2DMSArray +
+ + +

View the resource as a 3D texture using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEX3D_SRV Texture3D + D3D11_TEX3D_SRV Texture3D +
+ + +

View the resource as a 3D-cube texture using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEXCUBE_SRV TextureCube + D3D11_TEXCUBE_SRV TextureCube +
+ + +

View the resource as a 3D-cube-texture array using information from a shader-resource view (see ).

+
+ + ff476211 + D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray + D3D11_TEXCUBE_ARRAY_SRV TextureCubeArray +
+ + +

View the resource as a raw buffer using information from a shader-resource view (see ). For more info about raw viewing of buffers, see Raw Views of Buffers.

+
+ + ff476211 + D3D11_BUFFEREX_SRV BufferEx + D3D11_BUFFEREX_SRV BufferEx +
+ + +

Specifies the elements in a buffer resource to use in a shader-resource view.

+
+ +

The structure is a member of the structure, which represents a shader-resource view description. You can create a shader-resource view by calling the method.

+
+ + ff476094 + D3D11_BUFFER_SRV + D3D11_BUFFER_SRV +
+ + +

Number of bytes between the beginning of the buffer and the first element to access.

+
+ + ff476094 + unsigned int FirstElement + unsigned int FirstElement +
+ + +

The offset of the first element in the view to access, relative to element 0.

+
+ + ff476094 + unsigned int ElementOffset + unsigned int ElementOffset +
+ + +

The total number of elements in the view.

+
+ + ff476094 + unsigned int NumElements + unsigned int NumElements +
+ + +

The width of each element (in bytes). This can be determined from the format stored in the shader-resource-view description.

+
+ + ff476094 + unsigned int ElementWidth + unsigned int ElementWidth +
+ + +

Specifies the subresource from a cube texture to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476251 + D3D11_TEXCUBE_SRV + D3D11_TEXCUBE_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original TextureCube for which creates a view) -1.

+
+ + ff476251 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks in .

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476251 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Specifies the subresource from a 1D texture to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

As an example, assuming MostDetailedMip = 6 and MipLevels = 2, the view will have access to 2 mipmap levels, 6 and 7, of the original texture for which creates the view. In this situation, MostDetailedMip is greater than the MipLevels in the view. However, MostDetailedMip is not greater than the MipLevels in the original resource.

+
+ + ff476231 + D3D11_TEX1D_SRV + D3D11_TEX1D_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original Texture1D for which creates a view) -1.

+
+ + ff476231 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks.

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476231 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Specifies the subresources from a multisampled 2D texture to use in a shader-resource view.

+
+ +

Since a multisampled 2D texture contains a single subresource, there is actually nothing to specify in . Consequently, UnusedField_NothingToDefine is included so that this structure will compile in C.

+
+ + ff476238 + D3D11_TEX2DMS_SRV + D3D11_TEX2DMS_SRV +
+ + +

Integer of any value. See remarks.

+
+ + ff476238 + unsigned int UnusedField_NothingToDefine + unsigned int UnusedField_NothingToDefine +
+ + +

Specifies the subresources from an array of cube textures to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476250 + D3D11_TEXCUBE_ARRAY_SRV + D3D11_TEXCUBE_ARRAY_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original TextureCube for which creates a view) -1.

+
+ + ff476250 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks in .

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476250 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Index of the first 2D texture to use.

+
+ + ff476250 + unsigned int First2DArrayFace + unsigned int First2DArrayFace +
+ + +

Number of cube textures in the array.

+
+ + ff476250 + unsigned int NumCubes + unsigned int NumCubes +
+ + +

Specifies the subresources from a 3D texture to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476248 + D3D11_TEX3D_SRV + D3D11_TEX3D_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original Texture3D for which creates a view) -1.

+
+ + ff476248 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks in .

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476248 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Specifies the subresource from a 2D texture to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476245 + D3D11_TEX2D_SRV + D3D11_TEX2D_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original Texture2D for which creates a view) -1.

+
+ + ff476245 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks in .

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476245 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Specifies the subresources from an array of 1D textures to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476227 + D3D11_TEX1D_ARRAY_SRV + D3D11_TEX1D_ARRAY_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original Texture1D for which creates a view) -1.

+
+ + ff476227 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks in .

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476227 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476227 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures in the array.

+
+ + ff476227 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Specifies the subresources from an array of 2D textures to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476241 + D3D11_TEX2D_ARRAY_SRV + D3D11_TEX2D_ARRAY_SRV +
+ + +

Index of the most detailed mipmap level to use; this number is between 0 and MipLevels (from the original Texture2D for which creates a view) -1.

+
+ + ff476241 + unsigned int MostDetailedMip + unsigned int MostDetailedMip +
+ + +

The maximum number of mipmap levels for the view of the texture. See the remarks in .

Set to -1 to indicate all the mipmap levels from MostDetailedMip on down to least detailed.

+
+ + ff476241 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476241 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures in the array.

+
+ + ff476241 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Specifies the subresources from an array of multisampled 2D textures to use in a shader-resource view.

+
+ +

This structure is one member of a shader-resource-view description (see ).

+
+ + ff476235 + D3D11_TEX2DMS_ARRAY_SRV + D3D11_TEX2DMS_ARRAY_SRV +
+ + +

The index of the first texture to use in an array of textures.

+
+ + ff476235 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

Number of textures to use.

+
+ + ff476235 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Describes the elements in a raw buffer resource to use in a shader-resource view.

+
+ +

This structure is used by to create a raw view of a buffer.

+
+ + ff476090 + D3D11_BUFFEREX_SRV + D3D11_BUFFEREX_SRV +
+ + +

The index of the first element to be accessed by the view.

+
+ + ff476090 + unsigned int FirstElement + unsigned int FirstElement +
+ + +

The number of elements in the resource.

+
+ + ff476090 + unsigned int NumElements + unsigned int NumElements +
+ + +

A -typed value that identifies view options for the buffer. Currently, the only option is to identify a raw view of the buffer. For more info about raw viewing of buffers, see Raw Views of Buffers.

+
+ + ff476090 + D3D11_BUFFEREX_SRV_FLAG Flags + D3D11_BUFFEREX_SRV_FLAG Flags +
+ + +

Description of a vertex element in a vertex buffer in an output slot.

+
+ + ff476216 + D3D11_SO_DECLARATION_ENTRY + D3D11_SO_DECLARATION_ENTRY +
+ + +

Zero-based, stream number.

+
+ + ff476216 + unsigned int Stream + unsigned int Stream +
+ + +

Type of output element; possible values include: "POSITION", "NORMAL", or "TEXCOORD0". Note that if SemanticName is null then ComponentCount can be greater than 4 and the described entry will be a gap in the stream out where no data will be written.

+
+ + ff476216 + const char* SemanticName + char SemanticName +
+ + +

Output element's zero-based index. Should be used if, for example, you have more than one texture coordinate stored in each vertex.

+
+ + ff476216 + unsigned int SemanticIndex + unsigned int SemanticIndex +
+ + +

Which component of the entry to begin writing out to. Valid values are 0 to 3. For example, if you only wish to output to the y and z components of a position, then StartComponent should be 1 and ComponentCount should be 2.

+
+ + ff476216 + unsigned char StartComponent + unsigned char StartComponent +
+ + +

The number of components of the entry to write out to. Valid values are 1 to 4. For example, if you only wish to output to the y and z components of a position, then StartComponent should be 1 and ComponentCount should be 2. Note that if SemanticName is null then ComponentCount can be greater than 4 and the described entry will be a gap in the stream out where no data will be written.

+
+ + ff476216 + unsigned char ComponentCount + unsigned char ComponentCount +
+ + +

The associated stream output buffer that is bound to the pipeline (see ). The valid range for OutputSlot is 0 to 3.

+
+ + ff476216 + unsigned char OutputSlot + unsigned char OutputSlot +
+ + + Initializes a new instance of the struct. + + Zero-based, stream number + Name of the semantic. + Index of the semantic. + The start component. + The component count. + The output slot. + + + +

Query information about the amount of data streamed out to the stream-output buffers in between and .

+
+ + ff476193 + D3D11_QUERY_DATA_SO_STATISTICS + D3D11_QUERY_DATA_SO_STATISTICS +
+ + + No documentation. + + + ff476193 + unsigned longlong NumPrimitivesWritten + unsigned longlong NumPrimitivesWritten + + + + No documentation. + + + ff476193 + unsigned longlong PrimitivesStorageNeeded + unsigned longlong PrimitivesStorageNeeded + + + +

Describes a 1D texture.

+
+ +

This structure is used in a call to .

In addition to this structure, you can also use the CD3D11_TEXTURE1D_DESC derived structure, which is defined in D3D11.h and behaves like an inherited class, to help create a texture description.

The texture size range is determined by the feature level at which you create the device and not the Microsoft Direct3D interface version. For example, if you use Microsoft Direct3D?10 hardware at feature level 10 () and call to create an , you must constrain the maximum texture size to (8192) when you create your 1D texture.

+
+ + ff476252 + D3D11_TEXTURE1D_DESC + D3D11_TEXTURE1D_DESC +
+ + +

Texture width (in texels). The range is from 1 to (16384). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476252 + unsigned int Width + unsigned int Width +
+ + +

The maximum number of mipmap levels in the texture. See the remarks in . Use 1 for a multisampled texture; or 0 to generate a full set of subtextures.

+
+ + ff476252 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Number of textures in the array. The range is from 1 to (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476252 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Texture format (see ).

+
+ + ff476252 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

Value that identifies how the texture is to be read from and written to. The most common value is ; see for all possible values.

+
+ + ff476252 + D3D11_USAGE Usage + D3D11_USAGE Usage +
+ + +

Flags (see ) for binding to pipeline stages. The flags can be combined by a logical OR. For a 1D texture, the allowable values are: , and .

+
+ + ff476252 + D3D11_BIND_FLAG BindFlags + D3D11_BIND_FLAG BindFlags +
+ + +

Flags (see ) to specify the types of CPU access allowed. Use 0 if CPU access is not required. These flags can be combined with a logical OR.

+
+ + ff476252 + D3D11_CPU_ACCESS_FLAG CPUAccessFlags + D3D11_CPU_ACCESS_FLAG CPUAccessFlags +
+ + +

Flags (see ) that identify other, less common resource options. Use 0 if none of these flags apply. These flags can be combined with a logical OR.

+
+ + ff476252 + D3D11_RESOURCE_MISC_FLAG MiscFlags + D3D11_RESOURCE_MISC_FLAG MiscFlags +
+ + +

Describes a 2D texture.

+
+ +

This structure is used in a call to .

In addition to this structure, you can also use the CD3D11_TEXTURE2D_DESC derived structure, which is defined in D3D11.h and behaves like an inherited class, to help create a texture description.

The device places some size restrictions (must be multiples of a minimum size) for a subsampled, block compressed, or bit-format resource.

The texture size range is determined by the feature level at which you create the device and not the Microsoft Direct3D interface version. For example, if you use Microsoft Direct3D?10 hardware at feature level 10 () and call to create an , you must constrain the maximum texture size to (8192) when you create your 2D texture.

+
+ + ff476253 + D3D11_TEXTURE2D_DESC + D3D11_TEXTURE2D_DESC +
+ + +

Texture width (in texels). The range is from 1 to (16384). For a texture cube-map, the range is from 1 to (16384). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476253 + unsigned int Width + unsigned int Width +
+ + +

Texture height (in texels). The range is from 1 to (16384). For a texture cube-map, the range is from 1 to (16384). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476253 + unsigned int Height + unsigned int Height +
+ + +

The maximum number of mipmap levels in the texture. See the remarks in . Use 1 for a multisampled texture; or 0 to generate a full set of subtextures.

+
+ + ff476253 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Number of textures in the texture array. The range is from 1 to (2048). For a texture cube-map, this value is a multiple of 6 (that is, 6 times the value in the NumCubes member of ), and the range is from 6 to 2046. The range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476253 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Texture format (see ).

+
+ + ff476253 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

Structure that specifies multisampling parameters for the texture. See .

+
+ + ff476253 + DXGI_SAMPLE_DESC SampleDesc + DXGI_SAMPLE_DESC SampleDesc +
+ + +

Value that identifies how the texture is to be read from and written to. The most common value is ; see for all possible values.

+
+ + ff476253 + D3D11_USAGE Usage + D3D11_USAGE Usage +
+ + +

Flags (see ) for binding to pipeline stages. The flags can be combined by a logical OR.

+
+ + ff476253 + D3D11_BIND_FLAG BindFlags + D3D11_BIND_FLAG BindFlags +
+ + +

Flags (see ) to specify the types of CPU access allowed. Use 0 if CPU access is not required. These flags can be combined with a logical OR.

+
+ + ff476253 + D3D11_CPU_ACCESS_FLAG CPUAccessFlags + D3D11_CPU_ACCESS_FLAG CPUAccessFlags +
+ + +

Flags (see ) that identify other, less common resource options. Use 0 if none of these flags apply. These flags can be combined by using a logical OR. For a texture cube-map, set the flag. Cube-map arrays (that is, ArraySize > 6) require feature level or higher.

+
+ + ff476253 + D3D11_RESOURCE_MISC_FLAG MiscFlags + D3D11_RESOURCE_MISC_FLAG MiscFlags +
+ + +

Describes a 3D texture.

+
+ +

This structure is used in a call to .

In addition to this structure, you can also use the CD3D11_TEXTURE3D_DESC derived structure, which is defined in D3D11.h and behaves like an inherited class, to help create a texture description.

The device restricts the size of subsampled, block compressed, and bit format resources to be multiples of sizes specific to each format.

The texture size range is determined by the feature level at which you create the device and not the Microsoft Direct3D interface version. For example, if you use Microsoft Direct3D?10 hardware at feature level 10 () and call to create an , you must constrain the maximum texture size to (2048) when you create your 3D texture.

+
+ + ff476254 + D3D11_TEXTURE3D_DESC + D3D11_TEXTURE3D_DESC +
+ + +

Texture width (in texels). The range is from 1 to (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476254 + unsigned int Width + unsigned int Width +
+ + +

Texture height (in texels). The range is from 1 to (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476254 + unsigned int Height + unsigned int Height +
+ + +

Texture depth (in texels). The range is from 1 to (2048). However, the range is actually constrained by the feature level at which you create the rendering device. For more information about restrictions, see Remarks.

+
+ + ff476254 + unsigned int Depth + unsigned int Depth +
+ + +

The maximum number of mipmap levels in the texture. See the remarks in . Use 1 for a multisampled texture; or 0 to generate a full set of subtextures.

+
+ + ff476254 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Texture format (see ).

+
+ + ff476254 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

Value that identifies how the texture is to be read from and written to. The most common value is ; see for all possible values.

+
+ + ff476254 + D3D11_USAGE Usage + D3D11_USAGE Usage +
+ + +

Flags (see ) for binding to pipeline stages. The flags can be combined by a logical OR.

+
+ + ff476254 + D3D11_BIND_FLAG BindFlags + D3D11_BIND_FLAG BindFlags +
+ + +

Flags (see ) to specify the types of CPU access allowed. Use 0 if CPU access is not required. These flags can be combined with a logical OR.

+
+ + ff476254 + D3D11_CPU_ACCESS_FLAG CPUAccessFlags + D3D11_CPU_ACCESS_FLAG CPUAccessFlags +
+ + +

Flags (see ) that identify other, less common resource options. Use 0 if none of these flags apply. These flags can be combined with a logical OR.

+
+ + ff476254 + D3D11_RESOURCE_MISC_FLAG MiscFlags + D3D11_RESOURCE_MISC_FLAG MiscFlags +
+ + +

Note??The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows?8 and is not supported for Windows Store apps.

Describes parameters used to load a texture from another texture.

+
+ +

This structure is used in a call to .

The default values are:

 pSrcBox = null; pDstBox = null; SrcFirstMip = 0; DstFirstMip = 0; NumMips = D3DX11_DEFAULT; SrcFirstElement = 0; DstFirstElement = 0; NumElements = D3DX11_DEFAULT; Filter = D3DX11_DEFAULT; MipFilter = D3DX11_DEFAULT;	
+            
+
+ + ff476327 + D3DX11_TEXTURE_LOAD_INFO + D3DX11_TEXTURE_LOAD_INFO +
+ + +

Source texture box (see ).

+
+ + ff476327 + D3D11_BOX* pSrcBox + D3D11_BOX pSrcBox +
+ + +

Destination texture box (see ).

+
+ + ff476327 + D3D11_BOX* pDstBox + D3D11_BOX pDstBox +
+ + +

Source texture mipmap level, see D3D11CalcSubresource for more detail.

+
+ + ff476327 + unsigned int SrcFirstMip + unsigned int SrcFirstMip +
+ + +

Destination texture mipmap level, see D3D11CalcSubresource for more detail.

+
+ + ff476327 + unsigned int DstFirstMip + unsigned int DstFirstMip +
+ + +

Number of mipmap levels in the source texture.

+
+ + ff476327 + unsigned int NumMips + unsigned int NumMips +
+ + +

First element of the source texture.

+
+ + ff476327 + unsigned int SrcFirstElement + unsigned int SrcFirstElement +
+ + +

First element of the destination texture.

+
+ + ff476327 + unsigned int DstFirstElement + unsigned int DstFirstElement +
+ + +

Number of elements to load.

+
+ + ff476327 + unsigned int NumElements + unsigned int NumElements +
+ + +

Filtering options during resampling (see ).

+
+ + ff476327 + D3DX11_FILTER_FLAG Filter + D3DX11_FILTER_FLAG Filter +
+ + +

Filtering options when generating mip levels (see ).

+
+ + ff476327 + D3DX11_FILTER_FLAG MipFilter + D3DX11_FILTER_FLAG MipFilter +
+ + + Source texture box (see ). + + D3D11_BOX* pSrcBox + + + + Destination texture box (see ). + + D3D11_BOX* pDstBox + + + +

Specifies the subresources from a resource that are accessible using an unordered-access view.

+
+ +

An unordered-access-view description is passed into to create a view.

+
+ + ff476258 + D3D11_UNORDERED_ACCESS_VIEW_DESC + D3D11_UNORDERED_ACCESS_VIEW_DESC +
+ + +

The data format (see ).

+
+ + ff476258 + DXGI_FORMAT Format + DXGI_FORMAT Format +
+ + +

The resource type (see ), which specifies how the resource will be accessed.

+
+ + ff476258 + D3D11_UAV_DIMENSION ViewDimension + D3D11_UAV_DIMENSION ViewDimension +
+ + +

Specifies which buffer elements can be accessed (see ).

+
+ + ff476258 + D3D11_BUFFER_UAV Buffer + D3D11_BUFFER_UAV Buffer +
+ + +

Specifies the subresources in a 1D texture that can be accessed (see ).

+
+ + ff476258 + D3D11_TEX1D_UAV Texture1D + D3D11_TEX1D_UAV Texture1D +
+ + +

Specifies the subresources in a 1D texture array that can be accessed (see ).

+
+ + ff476258 + D3D11_TEX1D_ARRAY_UAV Texture1DArray + D3D11_TEX1D_ARRAY_UAV Texture1DArray +
+ + +

Specifies the subresources in a 2D texture that can be accessed (see ).

+
+ + ff476258 + D3D11_TEX2D_UAV Texture2D + D3D11_TEX2D_UAV Texture2D +
+ + +

Specifies the subresources in a 2D texture array that can be accessed (see ).

+
+ + ff476258 + D3D11_TEX2D_ARRAY_UAV Texture2DArray + D3D11_TEX2D_ARRAY_UAV Texture2DArray +
+ + +

Specifies subresources in a 3D texture that can be accessed (see ).

+
+ + ff476258 + D3D11_TEX3D_UAV Texture3D + D3D11_TEX3D_UAV Texture3D +
+ + +

Describes an array of unordered-access 1D texture resources.

+
+ +

This structure is used by a .

+
+ + ff476228 + D3D11_TEX1D_ARRAY_UAV + D3D11_TEX1D_ARRAY_UAV +
+ + +

The mipmap slice index.

+
+ + ff476228 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The zero-based index of the first array slice to be accessed.

+
+ + ff476228 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

The number of slices in the array.

+
+ + ff476228 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Describes the elements in a buffer to use in a unordered-access view.

+
+ +

This structure is used by a .

+
+ + ff476095 + D3D11_BUFFER_UAV + D3D11_BUFFER_UAV +
+ + +

The zero-based index of the first element to be accessed.

+
+ + ff476095 + unsigned int FirstElement + unsigned int FirstElement +
+ + +

The number of elements in the resource. For structured buffers, this is the number of structures in the buffer.

+
+ + ff476095 + unsigned int NumElements + unsigned int NumElements +
+ + +

View options for the resource (see ).

+
+ + ff476095 + D3D11_BUFFER_UAV_FLAG Flags + D3D11_BUFFER_UAV_FLAG Flags +
+ + +

Describes a unordered-access 2D texture resource.

+
+ +

This structure is used by a .

+
+ + ff476246 + D3D11_TEX2D_UAV + D3D11_TEX2D_UAV +
+ + +

The mipmap slice index.

+
+ + ff476246 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

Describes a unordered-access 1D texture resource.

+
+ +

This structure is used by a .

+
+ + ff476232 + D3D11_TEX1D_UAV + D3D11_TEX1D_UAV +
+ + +

The mipmap slice index.

+
+ + ff476232 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

Describes an array of unordered-access 2D texture resources.

+
+ +

This structure is used by a .

+
+ + ff476242 + D3D11_TEX2D_ARRAY_UAV + D3D11_TEX2D_ARRAY_UAV +
+ + +

The mipmap slice index.

+
+ + ff476242 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The zero-based index of the first array slice to be accessed.

+
+ + ff476242 + unsigned int FirstArraySlice + unsigned int FirstArraySlice +
+ + +

The number of slices in the array.

+
+ + ff476242 + unsigned int ArraySize + unsigned int ArraySize +
+ + +

Describes a unordered-access 3D texture resource.

+
+ +

This structure is used by a .

+
+ + ff476249 + D3D11_TEX3D_UAV + D3D11_TEX3D_UAV +
+ + +

The mipmap slice index.

+
+ + ff476249 + unsigned int MipSlice + unsigned int MipSlice +
+ + +

The zero-based index of the first depth slice to be accessed.

+
+ + ff476249 + unsigned int FirstWSlice + unsigned int FirstWSlice +
+ + +

The number of depth slices.

+
+ + ff476249 + unsigned int WSize + unsigned int WSize +
+ + + Internal class used to initialize this assembly. + + + + + Initializes this assembly. + + + This method is called when the assembly is loaded. + + + + + Properties defining the way a buffer is bound to the pipeline as a target for stream output operations. + + + + + Initializes a new instance of the struct. + + The buffer being bound. + The offset to the first vertex (in bytes). + + + + Gets or sets the buffer being bound. + + + + + Gets or sets the offset from the start of the buffer of the first vertex to use (in bytes). + + + + + Properties defining the way a buffer (containing vertex data) is bound + to the pipeline for rendering. + + + + + Initializes a new instance of the struct. + + The buffer being bound. + The stride between vertex element (in bytes). + The offset to the first vertex (in bytes). + + + + Gets or sets the buffer being bound. + + + + + Gets or sets the stride between vertex elements in the buffer (in bytes). + + + + + Gets or sets the offset from the start of the buffer of the first vertex to use (in bytes). + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D9.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D9.dll new file mode 100644 index 0000000..6fda0fd Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D9.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D9.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D9.xml new file mode 100644 index 0000000..fe7e604 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.Direct3D9.xml @@ -0,0 +1,36476 @@ + + + + SharpDX.Direct3D9 + + + + + A collection of . + + + + +

Contains information identifying the adapter.

+
+ +

The following pseudocode example illustrates the version format encoded in the DriverVersion, DriverVersionLowPart, and DriverVersionHighPart members.

 Product = HIWORD(DriverVersion.HighPart)	
+            Version = LOWORD(DriverVersion.HighPart)	
+            SubVersion = HIWORD(DriverVersion.LowPart)	
+            Build = LOWORD(DriverVersion.LowPart)	
+            

See the Platform SDK for more information about the HIWORD macro, the LOWORD macro, and the structure.

MAX_DEVICE_IDENTIFIER_STRING is a constant with the following definition.

#define MAX_DEVICE_IDENTIFIER_STRING        512

The VendorId, DeviceId, SubSysId, and Revision members can be used in tandem to identify particular chip sets. However, use these members with caution.

+
+ + bb172505 + D3DADAPTER_IDENTIFIER9 + D3DADAPTER_IDENTIFIER9 +
+ + +

Used for presentation to the user. This should not be used to identify particular drivers, because many different strings might be associated with the same device and driver from different vendors.

+
+ + bb172505 + char Driver[512] + char Driver +
+ + +

Used for presentation to the user.

+
+ + bb172505 + char Description[512] + char Description +
+ + +

Device name for GDI.

+
+ + bb172505 + char DeviceName[32] + char DeviceName +
+ + +

Identify the version of the Direct3D driver. It is legal to do less than and greater than comparisons on the 64-bit signed integer value. However, exercise caution if you use this element to identify problematic drivers. Instead, you should use DeviceIdentifier. See Remarks.

+
+ + bb172505 + LARGE_INTEGER DriverVersion + LARGE_INTEGER DriverVersion +
+ + +

Can be used to help identify a particular chip set. Query this member to identify the manufacturer. The value can be zero if unknown.

+
+ + bb172505 + unsigned int VendorId + unsigned int VendorId +
+ + +

Can be used to help identify a particular chip set. Query this member to identify the type of chip set. The value can be zero if unknown.

+
+ + bb172505 + unsigned int DeviceId + unsigned int DeviceId +
+ + +

Can be used to help identify a particular chip set. Query this member to identify the subsystem, typically the particular board. The value can be zero if unknown.

+
+ + bb172505 + unsigned int SubSysId + unsigned int SubSysId +
+ + +

Can be used to help identify a particular chip set. Query this member to identify the revision level of the chip set. The value can be zero if unknown.

+
+ + bb172505 + unsigned int Revision + unsigned int Revision +
+ + +

Can be queried to check changes in the driver and chip set. This is a unique identifier for the driver and chip set pair. Query this member to track changes to the driver and chip set in order to generate a new profile for the graphics subsystem. DeviceIdentifier can also be used to identify particular problematic drivers.

+
+ + bb172505 + GUID DeviceIdentifier + GUID DeviceIdentifier +
+ + +

Used to determine the Windows Hardware Quality Labs (WHQL) validation level for this driver and device pair. The DWORD is a packed date structure defining the date of the release of the most recent WHQL test passed by the driver. It is legal to perform < and > operations on this value. The following illustrates the date format.

Bits
31-16The year, a decimal number from 1999 upwards.
15-8The month, a decimal number from 1 to 12.
7-0The day, a decimal number from 1 to 31.

?

The following values are also used.

0Not certified.
1WHQL validated, but no date information is available.

?

Differences between Direct3D 9 and Direct3D 9Ex:

For Direct3D9Ex running on Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2 (or more current operating system), returns 1 for the WHQL level without checking the status of the driver.

+
+ + bb172505 + unsigned int WHQLLevel + unsigned int WHQLLevel +
+ + + Gets a value indicating whether the adapter is WHQL certified. + + + true if certified; otherwise, false. + + + + + Gets the driver version. + + + + + Gets the certification date. + + + + + Adapter information. + + + + + Gets the capabilities of this adapter. + + The type. + The capabilities + + + + Gets the display modes supported by this adapter. + + The format. + The display modes supported by this adapter. + + + + Gets the adapter ordinal. + + + + + Gets the current display mode. + + + + + Gets the details. + + + + + Gets the monitor. + + + + + The assembly provides managed Direct3D9 API. + + bb219837 + Direct3D9 + Direct3D9 + + + + No documentation. + + + bb280470 + ID3DXBaseEffect + ID3DXBaseEffect + + + + Gets the string. + + The parameter. + + HRESULT ID3DXBaseEffect::GetString([In] D3DXHANDLE hParameter,[Out] const void** ppString) + + + + Gets the value of the specified parameter. + + Handle of the parameter. + The value of the parameter. + HRESULT ID3DXBaseEffect::GetValue([In] D3DXHANDLE hParameter,[In] void* pData,[In] unsigned int Bytes) + + + + Gets the value of the specified parameter. + + + Handle of the parameter. + The count. + + The value of the parameter. + + HRESULT ID3DXBaseEffect::GetValue([In] D3DXHANDLE hParameter,[In] void* pData,[In] unsigned int Bytes) + + + + Sets a bool value. + + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetBool([In] D3DXHANDLE hConstant,[In] BOOL b) + + + + Sets a float value. + + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetFloat([In] D3DXHANDLE hConstant,[In] float f) + + + + Sets an int value. + + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetInt([In] D3DXHANDLE hConstant,[In] int n) + + + + Sets a matrix. + + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetMatrix([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix) + + + + Sets a 4D vector. + + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetVector([In] D3DXHANDLE hConstant,[In] const D3DXVECTOR4* pVector) + + + + Sets a typed value. + + Type of the value to set + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetValue([In] D3DXHANDLE hConstant,[In] const void* pData,[In] unsigned int Bytes) + + + + Sets an array of bools. + + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetBoolArray([In] D3DXHANDLE hConstant,[In, Buffer] const BOOL* pb,[In] unsigned int Count) + + + + Sets an array of floats. + + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetFloatArray([In] D3DXHANDLE hConstant,[In, Buffer] const float* pf,[In] unsigned int Count) + + + + Sets an array of ints. + + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetIntArray([In] D3DXHANDLE hConstant,[In, Buffer] const int* pn,[In] unsigned int Count) + + + + Sets an array of matrices. + + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetMatrixArray([In] D3DXHANDLE hConstant,[In, Buffer] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + + + + Sets an array of 4D vectors. + + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetVectorArray([In] D3DXHANDLE hConstant,[In, Buffer] const D3DXVECTOR4* pVector,[In] unsigned int Count) + + + + Sets an array of elements. + + Type of the array element + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXBaseEffect::SetValue([In] D3DXHANDLE hConstant,[In] const void* pData,[In] unsigned int Bytes) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the effect description.

+
+

Returns a description of the effect. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205681 + HRESULT ID3DXBaseEffect::GetDesc([Out] D3DXEFFECT_DESC* pDesc) + ID3DXBaseEffect::GetDesc +
+ + +

Gets a parameter or annotation description.

+
+

Parameter or annotation handle. See Handles (Direct3D 9).

+

Returns a description of the specified parameter or annotation. See .

+ + bb205698 + HRESULT ID3DXBaseEffect::GetParameterDesc([In] D3DXHANDLE hParameter,[Out] D3DXPARAMETER_DESC* pDesc) + ID3DXBaseEffect::GetParameterDesc +
+ + +

Gets a technique description.

+
+

Technique handle. See Handles (Direct3D 9).

+

Returns a description of the technique. See .

+ + bb205707 + HRESULT ID3DXBaseEffect::GetTechniqueDesc([In] D3DXHANDLE hTechnique,[Out] D3DXTECHNIQUE_DESC* pDesc) + ID3DXBaseEffect::GetTechniqueDesc +
+ + +

Gets a pass description.

+
+

Pass handle. See Handles (Direct3D 9).

+

Returns a description of the specified pass. See .

+ +

Note??If an effect is created with , this method will return null references (in ) to the shader functions.

+
+ + bb205702 + HRESULT ID3DXBaseEffect::GetPassDesc([In] D3DXHANDLE hPass,[Out] D3DXPASS_DESC* pDesc) + ID3DXBaseEffect::GetPassDesc +
+ + +

Gets a function description.

+
+

Function handle. See Handles (Direct3D 9).

+

Returns a description of the function. See .

+ + bb205686 + HRESULT ID3DXBaseEffect::GetFunctionDesc([In] D3DXHANDLE hShader,[Out] D3DXFUNCTION_DESC* pDesc) + ID3DXBaseEffect::GetFunctionDesc +
+ + +

Gets the handle of a top-level parameter or a structure member parameter.

+
+

Handle of the parameter, or null for top-level parameters. See Handles (Direct3D 9).

+

Parameter index.

+

Returns the handle of the specified parameter, or null if the index was invalid. See Handles (Direct3D 9).

+ + bb205695 + D3DXHANDLE ID3DXBaseEffect::GetParameter([In] D3DXHANDLE hParameter,[In] unsigned int Index) + ID3DXBaseEffect::GetParameter +
+ + +

Gets the handle of a top-level parameter or a structure member parameter by looking up its name.

+
+

Handle of the parameter, or null for top-level parameters. See Handles (Direct3D 9).

+

String containing the parameter name.

+

Returns the handle of the specified parameter, or null if the index was invalid. See Handles (Direct3D 9).

+ + bb205696 + D3DXHANDLE ID3DXBaseEffect::GetParameterByName([In] D3DXHANDLE hParameter,[In] const char* pName) + ID3DXBaseEffect::GetParameterByName +
+ + +

Gets the handle of a top-level parameter or a structure member parameter by looking up its semantic with a case-insensitive search.

+
+

Handle of the parameter, or null for top-level parameters. See Handles (Direct3D 9).

+

String containing the semantic name.

+

Returns the handle of the first parameter that matches the specified semantic, or null if the semantic was not found. See Handles (Direct3D 9).

+ + bb205697 + D3DXHANDLE ID3DXBaseEffect::GetParameterBySemantic([In] D3DXHANDLE hParameter,[In] const char* pSemantic) + ID3DXBaseEffect::GetParameterBySemantic +
+ + +

Get the handle of an array element parameter.

+
+

Handle of the array. See Handles (Direct3D 9).

+

Array element index.

+

Returns the handle of the specified parameter, or null if either hParameter or ElementIndex is invalid. See Handles (Direct3D 9).

+ +

This method is used to get an element of a parameter that is an array.

+
+ + bb205699 + D3DXHANDLE ID3DXBaseEffect::GetParameterElement([In] D3DXHANDLE hParameter,[In] unsigned int Index) + ID3DXBaseEffect::GetParameterElement +
+ + +

Gets the handle of a technique.

+
+

Technique index.

+

Returns the handle of the specified technique, or null if the index was invalid. See Handles (Direct3D 9).

+ + bb205705 + D3DXHANDLE ID3DXBaseEffect::GetTechnique([In] unsigned int Index) + ID3DXBaseEffect::GetTechnique +
+ + +

Gets the handle of a technique by looking up its name.

+
+

String containing the technique name.

+

Returns the handle of the first technique that has the specified name, or null if the name was not found. See Handles (Direct3D 9).

+ + bb205706 + D3DXHANDLE ID3DXBaseEffect::GetTechniqueByName([In] const char* pName) + ID3DXBaseEffect::GetTechniqueByName +
+ + +

Gets the handle of a pass.

+
+

Handle of the parent technique. See Handles (Direct3D 9).

+

Index for the pass.

+

Returns the handle of the specified pass inside the specified technique, or null if the index was invalid. See Handles (Direct3D 9).

+ + bb205700 + D3DXHANDLE ID3DXBaseEffect::GetPass([In] D3DXHANDLE hTechnique,[In] unsigned int Index) + ID3DXBaseEffect::GetPass +
+ + +

Gets the handle of a pass by looking up its name.

+
+

Handle of the parent technique. See Handles (Direct3D 9).

+

String containing the pass name.

+

Returns the handle of the first pass inside the specified technique that has the specified name, or null if the name was not found. See Handles (Direct3D 9).

+ + bb205701 + D3DXHANDLE ID3DXBaseEffect::GetPassByName([In] D3DXHANDLE hTechnique,[In] const char* pName) + ID3DXBaseEffect::GetPassByName +
+ + +

Gets the handle of a function.

+
+

Function index.

+

Returns the handle of the specified function, or null if the index was invalid. See Handles (Direct3D 9).

+ + bb205684 + D3DXHANDLE ID3DXBaseEffect::GetFunction([In] unsigned int Index) + ID3DXBaseEffect::GetFunction +
+ + +

Gets the handle of a function by looking up its name.

+
+

String containing the function name.

+

Returns the handle of the specified function, or null if the name was not found. See Handles (Direct3D 9).

+ + bb205685 + D3DXHANDLE ID3DXBaseEffect::GetFunctionByName([In] const char* pName) + ID3DXBaseEffect::GetFunctionByName +
+ + +

Gets the handle of an annotation.

+
+

Handle of a technique, pass, or top-level parameter. See Handles (Direct3D 9).

+

Annotation index.

+

Returns the handle of the specified annotation, or null if the index was invalid. See Handles (Direct3D 9).

+ +

Annotations are user-specific data that can be attached to any technique, pass, or parameter. See Handles (Direct3D 9).

+
+ + bb205677 + D3DXHANDLE ID3DXBaseEffect::GetAnnotation([In] D3DXHANDLE hObject,[In] unsigned int Index) + ID3DXBaseEffect::GetAnnotation +
+ + +

Gets the handle of an annotation by looking up its name.

+
+

Handle of a technique, pass, or top-level parameter. See Handles (Direct3D 9).

+

String containing the annotation name.

+

Returns the handle of the specified annotation, or null if the name was not found. See Handles (Direct3D 9).

+ + bb205678 + D3DXHANDLE ID3DXBaseEffect::GetAnnotationByName([In] D3DXHANDLE hObject,[In] const char* pName) + ID3DXBaseEffect::GetAnnotationByName +
+ + +

Set the value of an arbitrary parameter or annotation, including simple types, structs, arrays, strings, shaders and textures.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Pointer to a buffer containing data.

+

[in] Number of bytes in the buffer. Pass in D3DX_DEFAULT if you know your buffer is large enough to contain the entire parameter, and you want to skip size validation.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method can be used in place of nearly all the effect set API calls.

+
+ + bb205728 + HRESULT ID3DXBaseEffect::SetValue([In] D3DXHANDLE hParameter,[In] const void* pData,[In] unsigned int Bytes) + ID3DXBaseEffect::SetValue +
+ + +

Get the value of an arbitrary parameter or annotation, including simple types, structs, arrays, strings, shaders and textures. This method can be used in place of nearly all the Getxxx calls in .

+
+ No documentation. + No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205709 + HRESULT ID3DXBaseEffect::GetValue([In] D3DXHANDLE hParameter,[In] void* pData,[In] unsigned int Bytes) + ID3DXBaseEffect::GetValue +
+ + +

Sets a value.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Boolean value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205714 + HRESULT ID3DXBaseEffect::SetBool([In] D3DXHANDLE hParameter,[In] BOOL b) + ID3DXBaseEffect::SetBool +
+ + +

Gets a value.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a Boolean value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205679 + HRESULT ID3DXBaseEffect::GetBool([In] D3DXHANDLE hParameter,[Out] BOOL* pb) + ID3DXBaseEffect::GetBool +
+ + +

Sets an array of Boolean values.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of Boolean values.

+

Number of Boolean values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205715 + HRESULT ID3DXBaseEffect::SetBoolArray([In] D3DXHANDLE hParameter,[In, Buffer] const BOOL* pb,[In] unsigned int Count) + ID3DXBaseEffect::SetBoolArray +
+ + +

Gets an array of values.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an array of Boolean values.

+

Number of Boolean values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205680 + HRESULT ID3DXBaseEffect::GetBoolArray([In] D3DXHANDLE hParameter,[Out, Buffer] BOOL* pb,[In] unsigned int Count) + ID3DXBaseEffect::GetBoolArray +
+ + +

Sets an integer.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Integer value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205718 + HRESULT ID3DXBaseEffect::SetInt([In] D3DXHANDLE hParameter,[In] int n) + ID3DXBaseEffect::SetInt +
+ + +

Gets an integer.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an integer.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205687 + HRESULT ID3DXBaseEffect::GetInt([In] D3DXHANDLE hParameter,[Out] int* pn) + ID3DXBaseEffect::GetInt +
+ + +

Sets an array of integers.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of integers.

+

Number of integers in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205719 + HRESULT ID3DXBaseEffect::SetIntArray([In] D3DXHANDLE hParameter,[In, Buffer] const int* pn,[In] unsigned int Count) + ID3DXBaseEffect::SetIntArray +
+ + +

Gets an array of integers.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an array of integers.

+

Number of integers in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205688 + HRESULT ID3DXBaseEffect::GetIntArray([In] D3DXHANDLE hParameter,[Out, Buffer] int* pn,[In] unsigned int Count) + ID3DXBaseEffect::GetIntArray +
+ + +

Sets a floating point value.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Floating point value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205716 + HRESULT ID3DXBaseEffect::SetFloat([In] D3DXHANDLE hParameter,[In] float f) + ID3DXBaseEffect::SetFloat +
+ + +

Gets a floating point value.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a floating point value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205682 + HRESULT ID3DXBaseEffect::GetFloat([In] D3DXHANDLE hParameter,[Out] float* pf) + ID3DXBaseEffect::GetFloat +
+ + +

Sets an array of floating point values.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of floating point values.

+

Number of floating point values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205717 + HRESULT ID3DXBaseEffect::SetFloatArray([In] D3DXHANDLE hParameter,[In, Buffer] const float* pf,[In] unsigned int Count) + ID3DXBaseEffect::SetFloatArray +
+ + +

Gets an array of floating point values.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an array of floating point values.

+

Number of floating point values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205683 + HRESULT ID3DXBaseEffect::GetFloatArray([In] D3DXHANDLE hParameter,[Out, Buffer] float* pf,[In] unsigned int Count) + ID3DXBaseEffect::GetFloatArray +
+ + +

Sets a vector.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Pointer to a 4D vector.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If the destination vector is smaller than the source vector, the additional components of the source vector will be ignored.

+
+ + bb205729 + HRESULT ID3DXBaseEffect::SetVector([In] D3DXHANDLE hParameter,[In] const D3DXVECTOR4* pVector) + ID3DXBaseEffect::SetVector +
+ + +

Gets a vector.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a 4D vector.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If the destination vector is larger than the source vector, only the initial components of the destination vector will be filled, and the remaining components will be set to zero.

+
+ + bb205710 + HRESULT ID3DXBaseEffect::GetVector([In] D3DXHANDLE hParameter,[Out] D3DXVECTOR4* pVector) + ID3DXBaseEffect::GetVector +
+ + +

Sets an array of vectors.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of 4D floating point vectors.

+

Number of vectors in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If the destination vectors are smaller than the source vectors, the additional components of the source vectors will be ignored.

+
+ + bb205730 + HRESULT ID3DXBaseEffect::SetVectorArray([In] D3DXHANDLE hParameter,[In, Buffer] const D3DXVECTOR4* pVector,[In] unsigned int Count) + ID3DXBaseEffect::SetVectorArray +
+ + +

Gets an array of vectors.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an array of 4D floating point vectors.

+

Number of vectors in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If the destination vectors are larger than the source vectors, only the initial components of each destination vector will be filled, and the remaining destination vector components will be set to zero.

+
+ + bb205711 + HRESULT ID3DXBaseEffect::GetVectorArray([In] D3DXHANDLE hParameter,[Out, Buffer] D3DXVECTOR4* pVector,[In] unsigned int Count) + ID3DXBaseEffect::GetVectorArray +
+ + +

Sets a non-transposed matrix.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Pointer to a nontransposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A non-transposed matrix contains row-major data. In other words, each vector is contained in a row.

If the destination matrix is smaller than the source matrix, the additional components of the source matrix will be ignored.

+
+ + bb205720 + HRESULT ID3DXBaseEffect::SetMatrix([In] D3DXHANDLE hParameter,[In] const D3DXMATRIX* pMatrix) + ID3DXBaseEffect::SetMatrix +
+ + +

Gets a nontransposed matrix.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a nontransposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A nontransposed matrix contains row-major data; that is, each vector is contained in a row.

If the destination matrix is larger than the source matrix, only the upper-left components of the destination matrix will be filled, and the remaining components will be set to zero.

+
+ + bb205689 + HRESULT ID3DXBaseEffect::GetMatrix([In] D3DXHANDLE hParameter,[Out] D3DXMATRIX* pMatrix) + ID3DXBaseEffect::GetMatrix +
+ + +

Sets an array of nontransposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of nontransposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A nontransposed matrix contains row-major data; that is, each vector is contained in a row.

If the destination matrices are smaller than the source matrices, the additional components of the source matrices will be ignored.

+
+ + bb205721 + HRESULT ID3DXBaseEffect::SetMatrixArray([In] D3DXHANDLE hParameter,[In, Buffer] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXBaseEffect::SetMatrixArray +
+ + +

Gets an array of nontransposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an array of nontransposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A nontransposed matrix contains row-major data; that is, each vector is contained in a row.

If the destination matrices are larger than the source matrices, only the upper-left components of each destination matrix will be filled, and the remaining destination matrix components will be set to zero.

+
+ + bb205690 + HRESULT ID3DXBaseEffect::GetMatrixArray([In] D3DXHANDLE hParameter,[Out, Buffer] D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXBaseEffect::GetMatrixArray +
+ + +

Sets an array of references to nontransposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of references to nontransposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A nontransposed matrix contains row-major data; that is, each vector is contained in a row.

If the destination matrices are smaller than the source matrices, the additional components of the source matrices will be ignored.

+
+ + bb205722 + HRESULT ID3DXBaseEffect::SetMatrixPointerArray([In] D3DXHANDLE hParameter,[In] const D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXBaseEffect::SetMatrixPointerArray +
+ + +

Gets an array of references to nontransposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of references to nontransposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A nontransposed matrix contains row-major data; that is, each vector is contained in a row.

If the destination matrices are larger than the source matrices, only the upper-left components of each destination matrix will be filled, and the remaining destination matrix components will be set to zero.

+
+ + bb205691 + HRESULT ID3DXBaseEffect::GetMatrixPointerArray([In] D3DXHANDLE hParameter,[Out] D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXBaseEffect::GetMatrixPointerArray +
+ + +

Sets a transposed matrix.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Pointer to a transposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

If the destination matrix is smaller than the source matrix, the additional components of the source matrix will be ignored.

+
+ + bb205723 + HRESULT ID3DXBaseEffect::SetMatrixTranspose([In] D3DXHANDLE hParameter,[In] const D3DXMATRIX* pMatrix) + ID3DXBaseEffect::SetMatrixTranspose +
+ + +

Gets a transposed matrix.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a transposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

If the destination matrix is larger than the source matrix, only the upper-left elements of the destination matrix will be filled, and the remaining destination matrix components will be set to zero.

+
+ + bb205692 + HRESULT ID3DXBaseEffect::GetMatrixTranspose([In] D3DXHANDLE hParameter,[Out] D3DXMATRIX* pMatrix) + ID3DXBaseEffect::GetMatrixTranspose +
+ + +

Sets an array of transposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

If the destination matrices are smaller than the source matrices, the additional components of the source matrices will be ignored.

+
+ + bb205724 + HRESULT ID3DXBaseEffect::SetMatrixTransposeArray([In] D3DXHANDLE hParameter,[In, Buffer] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXBaseEffect::SetMatrixTransposeArray +
+ + +

Gets an array of transposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns an array of transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

If the destination matrices are larger than the source matrices, only the upper-left components of each destination matrix will be filled, and the remaining destination matrix components will be set to zero.

+
+ + bb205693 + HRESULT ID3DXBaseEffect::GetMatrixTransposeArray([In] D3DXHANDLE hParameter,[Out, Buffer] D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXBaseEffect::GetMatrixTransposeArray +
+ + +

Sets an array of references to transposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of references to transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

If the destination matrices are smaller than the source matrices, the additional components of the source matrices will be ignored.

+
+ + bb205725 + HRESULT ID3DXBaseEffect::SetMatrixTransposePointerArray([In] D3DXHANDLE hParameter,[In] const D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXBaseEffect::SetMatrixTransposePointerArray +
+ + +

Gets an array of references to transposed matrices.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Array of references to transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

If the destination matrices are larger than the source matrices, only the upper-left components of each destination matrix will be filled, and the remaining destination matrix components will be set to zero.

+
+ + bb205694 + HRESULT ID3DXBaseEffect::GetMatrixTransposePointerArray([In] D3DXHANDLE hParameter,[Out] D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXBaseEffect::GetMatrixTransposePointerArray +
+ + +

Sets a string.

+
+

Unique identifier. See Handles (Direct3D 9).

+

String to set.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205726 + HRESULT ID3DXBaseEffect::SetString([In] D3DXHANDLE hParameter,[In] const char* pString) + ID3DXBaseEffect::SetString +
+ + +

Gets a string.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a string identified by hParameter.

+ + bb205704 + HRESULT ID3DXBaseEffect::GetString([In] D3DXHANDLE hParameter,[Out] const void** ppString) + ID3DXBaseEffect::GetString +
+ + +

Sets a texture.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Texture object. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205727 + HRESULT ID3DXBaseEffect::SetTexture([In] D3DXHANDLE hParameter,[In] IDirect3DBaseTexture9* pTexture) + ID3DXBaseEffect::SetTexture +
+ + +

Gets a texture.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a texture object. See .

+ + bb205708 + HRESULT ID3DXBaseEffect::GetTexture([In] D3DXHANDLE hParameter,[Out] IDirect3DBaseTexture9** ppTexture) + ID3DXBaseEffect::GetTexture +
+ + +

Gets a pixel shader.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a pixel shader object. See object.

+ + bb205703 + HRESULT ID3DXBaseEffect::GetPixelShader([In] D3DXHANDLE hParameter,[Out] IDirect3DPixelShader9** ppPShader) + ID3DXBaseEffect::GetPixelShader +
+ + +

Gets a vertex shader.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Returns a vertex shader object. See .

+ + bb205712 + HRESULT ID3DXBaseEffect::GetVertexShader([In] D3DXHANDLE hParameter,[Out] IDirect3DVertexShader9** ppVShader) + ID3DXBaseEffect::GetVertexShader +
+ + +

Set the range of an array to pass to the device.

+
+

Unique identifier. See Handles (Direct3D 9).

+

Start index.

+

Stop index.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205713 + HRESULT ID3DXBaseEffect::SetArrayRange([In] D3DXHANDLE hParameter,[In] unsigned int uStart,[In] unsigned int uEnd) + ID3DXBaseEffect::SetArrayRange +
+ + +

Gets the effect description.

+
+ + bb205681 + GetDesc + GetDesc + HRESULT ID3DXBaseEffect::GetDesc([Out] D3DXEFFECT_DESC* pDesc) +
+ + +

Applications use the methods of the interface to manipulate texture resources including cube and volume textures.

+
+ +

The interface assigned to a particular stage for a device is obtained by calling the GetTexture method.

The LPDIRECT3DBASETEXTURE9 and PDIRECT3DBASETEXTURE9 types are defined as references to the interface.

typedef struct  *LPDIRECT3DBASETEXTURE9, *PDIRECT3DBASETEXTURE9;
+
+ + bb174322 + IDirect3DBaseTexture9 + IDirect3DBaseTexture9 +
+ + +

Applications use the methods of the interface to query and prepare resources.

+
+ +

To create a texture resource, you can call one of the following methods.

To create a geometry-oriented resource, you can call one of the following methods.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DRESOURCE9 and PDIRECT3DRESOURCE9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;	
+            
+
+ + bb205878 + IDirect3DResource9 + IDirect3DResource9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the device associated with a resource.

+
+

Address of a reference to an interface to fill with the device reference, if the query succeeds.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method allows navigation to the owning device object.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205880 + HRESULT IDirect3DResource9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DResource9::GetDevice +
+ + +

Associates data with the resource that is intended for use by the application, not by Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.

+
+

Reference to the globally unique identifier that identifies the private data to set.

+

Pointer to a buffer that contains the data to be associated with the resource.

+

Size of the buffer at pData, in bytes.

+

Value that describes the type of data being passed, or indicates to the application that the data should be invalidated when the resource changes.

ItemDescription

(none)

If no flags are specified, Direct3D allocates memory to hold the data within the buffer and copies the data into the new buffer. The buffer allocated by Direct3D is automatically freed, as appropriate.

D3DSPD_IUNKNOWN

The data at pData is a reference to an interface. SizeOfData must be set to the size of a reference to , that is, sizeof(*). Direct3D automatically callsIUnknown through pData when the private data is destroyed. Private data will be destroyed by a subsequent call to with the same , a subsequent call to , or when the object is released. For more information, see Remarks.

?

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Direct3D does not manage the memory at pData. If this buffer was dynamically allocated, it is the calling application's responsibility to free the memory.

+
+ + bb205886 + HRESULT IDirect3DResource9::SetPrivateData([In] const GUID& refguid,[In] const void* pData,[In] unsigned int SizeOfData,[In] unsigned int Flags) + IDirect3DResource9::SetPrivateData +
+ + +

Copies the private data associated with the resource to a provided buffer.

+
+

The globally unique identifier that identifies the private data to retrieve.

+

Pointer to a previously allocated buffer to fill with the requested private data if the call succeeds. The application calling this method is responsible for allocating and releasing this buffer. If this parameter is null, this method will return the buffer size in pSizeOfData.

+

Pointer to the size of the buffer at pData, in bytes. If this value is less than the actual size of the private data (such as 0), the method sets this parameter to the required buffer size and the method returns .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , .

+ +

This method is inherited by the following interfaces: , , , , , , .

+
+ + bb205882 + HRESULT IDirect3DResource9::GetPrivateData([In] const GUID& refguid,[In] void* pData,[InOut] unsigned int* pSizeOfData) + IDirect3DResource9::GetPrivateData +
+ + +

Frees the specified private data associated with this resource.

+
+

Reference to the globally unique identifier that identifies the private data to free.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , .

+ +

Direct3D calls this method automatically when a resource is released.

+
+ + bb205879 + HRESULT IDirect3DResource9::FreePrivateData([In] const GUID& refguid) + IDirect3DResource9::FreePrivateData +
+ + +

Assigns the priority of a resource for scheduling purposes.

+
+

Priority to assign to a resource.

Differences between Direct3D 9 and Direct3D 9 for Windows Vista

The priority can be any DWORD value; Direct3D 9 for Windows Vista also supports any of these pre-defined values D3D9_RESOURCE_PRIORITY.

?

+

Returns the previous priority value for the resource.

+ +

This method is used to change the priority of managed resources (resources created with the flag). This method returns 0 on non-managed resources.

Priorities are used to determine when managed resources are to be removed from memory. A resource assigned a low priority is removed before a resource with a high priority. If two resources have the same priority, the resource that was used more recently is kept in memory; the other resource is removed. Managed resources have a default priority of 0.

Windows Vista only - When this method is called using an interface, only resources created with the flag will be affected.

+
+ + bb205885 + unsigned int IDirect3DResource9::SetPriority([In] unsigned int PriorityNew) + IDirect3DResource9::SetPriority +
+ + +

Retrieves the priority for this resource.

+
+

Returns a DWORD value, indicating the priority of the resource.

+ +

is used for priority control of managed resources. This method returns 0 on nonmanaged resources.

Priorities are used to determine when managed resources are to be removed from memory. A resource assigned a low priority is removed before a resource with a high priority. If two resources have the same priority, the resource that was used more recently is kept in memory; the other resource is removed. Managed resources have a default priority of 0.

+
+ + bb205881 + unsigned int IDirect3DResource9::GetPriority() + IDirect3DResource9::GetPriority +
+ + +

Preloads a managed resource.

+
+ +

Calling this method indicates that the application will need this managed resource shortly. This method has no effect on nonmanaged resources.

detects "thrashing" conditions where more resources are being used in each frame than can fit in video memory simultaneously. Under such circumstances silently does nothing.

+
+ + bb205884 + void IDirect3DResource9::PreLoad() + IDirect3DResource9::PreLoad +
+ + +

Returns the type of the resource.

+
+

Returns a member of the enumerated type, identifying the type of the resource.

+ + bb205883 + D3DRESOURCETYPE IDirect3DResource9::GetType() + IDirect3DResource9::GetType +
+ + +

Retrieves the device associated with a resource.

+
+ +

This method allows navigation to the owning device object.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205880 + GetDevice + GetDevice + HRESULT IDirect3DResource9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Retrieves the priority for this resource.

+
+ +

is used for priority control of managed resources. This method returns 0 on nonmanaged resources.

Priorities are used to determine when managed resources are to be removed from memory. A resource assigned a low priority is removed before a resource with a high priority. If two resources have the same priority, the resource that was used more recently is kept in memory; the other resource is removed. Managed resources have a default priority of 0.

+
+ + bb205881 + GetPriority + GetPriority + unsigned int IDirect3DResource9::GetPriority() +
+ + +

Returns the type of the resource.

+
+ + bb205883 + GetType + GetType + D3DRESOURCETYPE IDirect3DResource9::GetType() +
+ + + Gets or sets the debug-name for this object. + + + The debug name. + + + + + Filters mipmap levels of a texture. + + The source level. + The filter. + + A object describing the result of the operation. + + HRESULT D3DXFilterTexture([In] IDirect3DBaseTexture9* pBaseTexture,[In, Buffer] const PALETTEENTRY* pPalette,[In] unsigned int SrcLevel,[In] D3DX_FILTER Filter) + + + + Filters mipmap levels of a texture. + + The source level. + The filter. + The palette. + + A object describing the result of the operation. + + HRESULT D3DXFilterTexture([In] IDirect3DBaseTexture9* pBaseTexture,[In, Buffer] const PALETTEENTRY* pPalette,[In] unsigned int SrcLevel,[In] D3DX_FILTER Filter) + + + + Saves a texture to a file. + + The texture. + Name of the file. + The format. + + A object describing the result of the operation. + + HRESULT D3DXSaveTextureToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DBaseTexture9* pSrcTexture,[In, Buffer] const PALETTEENTRY* pSrcPalette) + + + + Saves a texture to a file. + + The texture. + Name of the file. + The format. + The palette. + A object describing the result of the operation. + HRESULT D3DXSaveTextureToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DBaseTexture9* pSrcTexture,[In, Buffer] const PALETTEENTRY* pSrcPalette) + + + + Saves a texture to a stream. + + The texture. + The format. + A containing the saved texture. + HRESULT D3DXSaveTextureToFileInMemory([Out] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DBaseTexture9* pSrcTexture,[In, Buffer] const PALETTEENTRY* pSrcPalette) + + + + Saves a texture to a stream. + + The texture. + The format. + The palette. + A containing the saved texture. + HRESULT D3DXSaveTextureToFileInMemory([Out] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DBaseTexture9* pSrcTexture,[In, Buffer] const PALETTEENTRY* pSrcPalette) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the most detailed level-of-detail for a managed texture.

+
+

Most detailed level-of-detail value to set for the mipmap chain.

+

A DWORD value, clamped to the maximum level-of-detail value (one less than the total number of levels). Subsequent calls to this method will return the clamped value, not the level-of-detail value that was previously set.

+ +

This method applies to the following interfaces, which inherit from .

SetLOD is used for level-of-detail control of managed textures. This method returns 0 on nonmanaged textures.

SetLOD communicates to the Direct3D texture manager the most detailed mipmap in the chain that should be loaded into local video memory. For example, in a five-level mipmap chain, setting LODNew to 2 indicates that the texture manager should load only mipmap levels 2 through 4 into local video memory at any given time.

More specifically, if the texture was created with the dimensions of 256x256, setting the most detailed level to 0 indicates that 256 x 256 is the largest mipmap available, setting the most detailed level to 1 indicates that 128 x 128 is the largest mipmap available, and so on, up to the most detailed mip level (the smallest texture size) for the chain.

+
+ + bb174328 + unsigned int IDirect3DBaseTexture9::SetLOD([In] unsigned int LODNew) + IDirect3DBaseTexture9::SetLOD +
+ + +

Returns a value clamped to the maximum level-of-detail set for a managed texture (this method is not supported for an unmanaged texture).

+
+

A DWORD value, clamped to the maximum level-of-detail value (one less than the total number of levels). Calling GetLOD on an unmanaged texture is not supported and will result in a D3DERR error code being returned.

+ + bb174326 + unsigned int IDirect3DBaseTexture9::GetLOD() + IDirect3DBaseTexture9::GetLOD +
+ + +

Returns the number of texture levels in a multilevel texture.

+
+

A DWORD value that indicates the number of texture levels in a multilevel texture.

+ +

Warning??If you create a texture with to make that texture automatically generate sublevels, GetLevelCount always returns 1 for the number of levels.

This method applies to the following interfaces, which inherit from .

+
+ + bb174325 + unsigned int IDirect3DBaseTexture9::GetLevelCount() + IDirect3DBaseTexture9::GetLevelCount +
+ + +

Set the filter type that is used for automatically generated mipmap sublevels.

+
+

Filter type. See . This method will fail if the filter type is invalid or not supported.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Changing the filter type "dirties" the mipmap sublevels and causes them to be regenerated.

The (default) filter type set at texture creation time is . If the driver does not support a linear filter, the filter type will be set to . All filter types supported by the driver for regular texture filtering are supported for autogeneration except . SetAutoGenFilterType will fail unless the driver sets the appropriate D3DPTFILTERCAPS_MINFxxx caps. These values are specified in the TextureFilterCaps and/or CubeTextureFilterCaps members of . For more information about texture filter types, see .

This method has no effect if the texture is not created with . In this case, no failure is returned. For more information about usage constants, see .

+
+ + bb174327 + HRESULT IDirect3DBaseTexture9::SetAutoGenFilterType([In] D3DTEXTUREFILTERTYPE FilterType) + IDirect3DBaseTexture9::SetAutoGenFilterType +
+ + +

Get the filter type that is used for automatically generated mipmap sublevels.

+
+

Filter type. See . A texture must be created with to use this method. Any other usage value will cause this method to return .

+ +

Changing the filter type "dirties" the mipmap sublevels and causes them to be regenerated.

The (default) filter type set at texture creation time is . If the driver doesn't support a linear filter, the filter type will be set to . All filter types supported by the driver for regular texture filtering are supported for autogeneration except . For each resource type, drivers should support all the filter types reported in the corresponding texture, CubeTexture, and volumetexture filter caps. For more information about texture types, see .

This method has no effect if the texture is not created with .

+
+ + bb174324 + D3DTEXTUREFILTERTYPE IDirect3DBaseTexture9::GetAutoGenFilterType() + IDirect3DBaseTexture9::GetAutoGenFilterType +
+ + +

Generate mipmap sublevels.

+
+ +

An application can generate mipmap sublevels at any time by calling GenerateMipSubLevels. To have mipmap sublevels generated automatically at texture creation time (see Automatic Generation of Mipmaps (Direct3D 9)), specify during CreateTexture, CreateCubeTexture, and CreateVolumeTexture. For more information about usage constants, see .

+
+ + bb174323 + void IDirect3DBaseTexture9::GenerateMipSubLevels() + IDirect3DBaseTexture9::GenerateMipSubLevels +
+ + + Gets or sets the level of details. + + + The level of details. + + unsigned int IDirect3DBaseTexture9::GetLOD() + unsigned int IDirect3DBaseTexture9::SetLOD([In] unsigned int LODNew) + + + +

Returns the number of texture levels in a multilevel texture.

+
+ +

Warning??If you create a texture with to make that texture automatically generate sublevels, GetLevelCount always returns 1 for the number of levels.

This method applies to the following interfaces, which inherit from .

+
+ + bb174325 + GetLevelCount + GetLevelCount + unsigned int IDirect3DBaseTexture9::GetLevelCount() +
+ + +

Get or sets the filter type that is used for automatically generated mipmap sublevels.

+
+ +

Changing the filter type "dirties" the mipmap sublevels and causes them to be regenerated.

The (default) filter type set at texture creation time is . If the driver doesn't support a linear filter, the filter type will be set to . All filter types supported by the driver for regular texture filtering are supported for autogeneration except . For each resource type, drivers should support all the filter types reported in the corresponding texture, CubeTexture, and volumetexture filter caps. For more information about texture types, see .

This method has no effect if the texture is not created with .

+
+ + bb174324 + GetAutoGenFilterType / SetAutoGenFilterType + GetAutoGenFilterType + D3DTEXTUREFILTERTYPE IDirect3DBaseTexture9::GetAutoGenFilterType() +
+ + + No documentation. + + + bb280322 + D3DXBONECOMBINATION + D3DXBONECOMBINATION + + + + Get the bone identifiers. + + + + + No documentation. + + + bb280322 + unsigned int AttribId + unsigned int AttribId + + + + No documentation. + + + bb280322 + unsigned int FaceStart + unsigned int FaceStart + + + + No documentation. + + + bb280322 + unsigned int FaceCount + unsigned int FaceCount + + + + No documentation. + + + bb280322 + unsigned int VertexStart + unsigned int VertexStart + + + + No documentation. + + + bb280322 + unsigned int VertexCount + unsigned int VertexCount + + + + No documentation. + + + bb280322 + unsigned int* BoneId + unsigned int BoneId + + + +

Represents the capabilities of the hardware exposed through the Direct3D object.

+
+ +

The MaxTextureBlendStages and MaxSimultaneousTextures members might seem similar, but they contain different information. The MaxTextureBlendStages member contains the total number of texture-blending stages supported by the current device, and the MaxSimultaneousTextures member describes how many of those stages can have textures bound to them by using the SetTexture method.

When the driver fills this structure, it can set values for execute-buffer capabilities, even when the interface being used to retrieve the capabilities (such as ) does not support execute buffers.

In general, performance problems may occur if you use a texture and then modify it during a scene. Ensure that no texture used in the current BeginScene and EndScene block is evicted unless absolutely necessary. In the case of extremely high texture usage within a scene, the results are undefined. This occurs when you modify a texture that you have used in the scene and there is no spare texture memory available. For such systems, the contents of the z-buffer become invalid at EndScene. Applications should not call UpdateSurface to or from the back buffer on this type of hardware inside a BeginScene/EndScene pair. In addition, applications should not try to access the z-buffer if the capability flag is set. Finally, applications should not lock the back buffer or the z-buffer inside a BeginScene/EndScene pair.

The following flags concerning mipmapped textures are not supported in Direct3D 9.

  • D3DPTFILTERCAPS_LINEAR
  • D3DPTFILTERCAPS_LINEARMIPLINEAR
  • D3DPTFILTERCAPS_LINEARMIPNEAREST
  • D3DPTFILTERCAPS_MIPNEAREST
  • D3DPTFILTERCAPS_NEAREST
+
+ + bb172513 + D3DCAPS9 + D3DCAPS9 +
+ + +

Member of the enumerated type, which identifies what type of resources are used for processing vertices.

+
+ + bb172513 + D3DDEVTYPE DeviceType + D3DDEVTYPE DeviceType +
+ + +

Adapter on which this Direct3D device was created. This ordinal is valid only to pass to methods of the interface that created this Direct3D device. The interface can always be retrieved by calling GetDirect3D.

+
+ + bb172513 + unsigned int AdapterOrdinal + unsigned int AdapterOrdinal +
+ + +

The following driver-specific capability.

ValueMeaning

Display hardware is capable of returning the current scan line.

The display driver supports an overlay DDI that allows for verification of overlay capabilities. For more information about the overlay DDI, see Overlay DDI.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

?

+
+ + bb172513 + D3DCAPS Caps + D3DCAPS Caps +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DCAPS2 Caps2 + D3DCAPS2 Caps2 +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DCAPS3 Caps3 + D3DCAPS3 Caps3 +
+ + +

Bit mask of values representing what presentation swap intervals are available.

ValueMeaning

The driver supports an immediate presentation swap interval.

The driver supports a presentation swap interval of every screen refresh.

The driver supports a presentation swap interval of every second screen refresh.

The driver supports a presentation swap interval of every third screen refresh.

The driver supports a presentation swap interval of every fourth screen refresh.

?

+
+ + bb172513 + D3DPRESENT_INTERVAL PresentationIntervals + D3DPRESENT_INTERVAL PresentationIntervals +
+ + +

Bit mask indicating what hardware support is available for cursors. Direct3D 9 does not define alpha-blending cursor capabilities.

ValueMeaning

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports at least a hardware color cursor in high-resolution modes (with scan lines greater than or equal to 400).

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports a hardware color cursor in both high-resolution and low-resolution modes (with scan lines less than 400).

?

+
+ + bb172513 + D3DCURSORCAPS CursorCaps + D3DCURSORCAPS CursorCaps +
+ + +

Flags identifying the capabilities of the device.

ValueMeaning

Device supports blits from system-memory textures to nonlocal video-memory textures.

Device can queue rendering commands after a page flip. Applications do not change their behavior if this flag is set; this capability means that the device is relatively fast.

Device can support at least a DirectX 5-compliant driver.

Device can support at least a DirectX 7-compliant driver.

Device exports an -aware hal.

Device can use execute buffers from system memory.

Device can use execute buffers from video memory.

Device has hardware acceleration for scene rasterization.

Device can support transformation and lighting in hardware.

Device supports N patches.

Device can support rasterization, transform, lighting, and shading in hardware.

Device supports quintic B?zier curves and B-splines.

Device supports rectangular and triangular patches.

When this device capability is set, the hardware architecture does not require caching of any information, and uncached patches (handle zero) will be drawn as efficiently as cached ones. Note that setting does not mean that a patch with handle zero can be drawn. A handle-zero patch can always be drawn whether this cap is set or not.

Device is texturing from separate memory pools.

Device can retrieve textures from non-local video memory.

Device can retrieve textures from system memory.

Device can retrieve textures from device memory.

Device can use buffers from system memory for transformed and lit vertices.

Device can use buffers from video memory for transformed and lit vertices.

?

+
+ + bb172513 + D3DDEVCAPS DevCaps + D3DDEVCAPS DevCaps +
+ + +

Miscellaneous driver primitive capabilities. See .

+
+ + bb172513 + D3DPMISCCAPS PrimitiveMiscCaps + D3DPMISCCAPS PrimitiveMiscCaps +
+ + +

Information on raster-drawing capabilities. This member can be one or more of the following flags.

ValueMeaning

Device supports anisotropic filtering.

Device iterates colors perspective correctly.

Device can dither to improve color resolution.

Device supports legacy depth bias. For true depth bias, see .

Device supports range-based fog. In range-based fog, the distance of an object from the viewer is used to compute fog effects, not the depth of the object (that is, the z-coordinate) in the scene.

Device calculates the fog value by referring to a lookup table containing fog values that are indexed to the depth of a given pixel.

Device calculates the fog value during the lighting operation and interpolates the fog value during rasterization.

Device supports level-of-detail bias adjustments. These bias adjustments enable an application to make a mipmap appear crisper or less sharp than it normally would. For more information about level-of-detail bias in mipmaps, see .

Device supports toggling multisampling on and off between and (using ).

Device supports scissor test. See Scissor Test (Direct3D 9).

Device performs true slope-scale based depth bias. This is in contrast to the legacy style depth bias.

Device supports depth buffering using w.

Device supports w-based fog. W-based fog is used when a perspective projection matrix is specified, but affine projections still use z-based fog. The system considers a projection matrix that contains a nonzero value in the [3][4] element to be a perspective projection matrix.

Device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth-buffer. This leaves more video memory for textures. The method used to perform HSR is hardware-dependent and is transparent to the application.

Z-bufferless HSR is performed if no depth-buffer surface is associated with the rendering-target surface and the depth-buffer comparison test is enabled (that is, when the state value associated with the enumeration constant is set to TRUE).

Device supports z-based fog.

Device can perform z-test operations. This effectively renders a primitive and indicates whether any z pixels have been rendered.

?

+
+ + bb172513 + D3DPRASTERCAPS RasterCaps + D3DPRASTERCAPS RasterCaps +
+ + +

Z-buffer comparison capabilities. This member can be one or more of the following flags.

ValueMeaning

Always pass the z-test.

Pass the z-test if the new z equals the current z.

Pass the z-test if the new z is greater than the current z.

Pass the z-test if the new z is greater than or equal to the current z.

Pass the z-test if the new z is less than the current z.

Pass the z-test if the new z is less than or equal to the current z.

Always fail the z-test.

Pass the z-test if the new z does not equal the current z.

?

+
+ + bb172513 + D3DPCMPCAPS ZCmpCaps + D3DPCMPCAPS ZCmpCaps +
+ + +

Source-blending capabilities. This member can be one or more of the following flags. (The RGBA values of the source and destination are indicated by the subscripts s and d.)

ValueMeaning

The driver supports both and . See .

Source blend factor is (1 - As, 1 - As, 1 - As, 1 - As) and destination blend factor is (As, As, As, As); the destination blend selection is overridden.

The driver supports the blend mode. (This blend mode is obsolete. For more information, see .)

Blend factor is (Ad, Ad, Ad, Ad).

Blend factor is (Rd, Gd, Bd, Ad).

Blend factor is (1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad).

Blend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad).

Blend factor is (1 - As, 1 - As, 1 - As, 1 - As).

Blend factor is (1 - Rs, 1 - Gs, 1 - Bs, 1 - As).

Blend factor is (1 - PSOutColor[1]r, 1 - PSOutColor[1]g, 1 - PSOutColor[1]b, not used)). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (1, 1, 1, 1).

Blend factor is (As, As, As, As).

Blend factor is (f, f, f, 1); f = min(As, 1 - Ad).

Blend factor is (Rs, Gs, Bs, As).

Blend factor is (PSOutColor[1]r, PSOutColor[1]g, PSOutColor[1]b, not used). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (0, 0, 0, 0).

?

+
+ + bb172513 + D3DPBLENDCAPS SrcBlendCaps + D3DPBLENDCAPS SrcBlendCaps +
+ + +

Destination-blending capabilities. This member can be the same capabilities that are defined for the SrcBlendCaps member.

+
+ + bb172513 + D3DPBLENDCAPS DestBlendCaps + D3DPBLENDCAPS DestBlendCaps +
+ + +

Alpha-test comparison capabilities. This member can include the same capability flags defined for the ZCmpCaps member. If this member contains only the capability or only the capability, the driver does not support alpha tests. Otherwise, the flags identify the individual comparisons that are supported for alpha testing.

+
+ + bb172513 + D3DPCMPCAPS AlphaCmpCaps + D3DPCMPCAPS AlphaCmpCaps +
+ + +

Shading operations capabilities. It is assumed, in general, that if a device supports a given command at all, it supports the mode (as specified in the enumerated type). This flag specifies whether the driver can also support Gouraud shading and whether alpha color components are supported. When alpha components are not supported, the alpha value of colors generated is implicitly 255. This is the maximum possible alpha (that is, the alpha component is at full intensity).

The color, specular highlights, fog, and alpha interpolants of a triangle each have capability flags that an application can use to find out how they are implemented by the device driver.

This member can be one or more of the following flags.

ValueMeaning

Device can support an alpha component for Gouraud-blended transparency (the state for the enumerated type). In this mode, the alpha color component of a primitive is provided at vertices and interpolated across a face along with the other color components.

Device can support colored Gouraud shading. In this mode, the per-vertex color components (red, green, and blue) are interpolated across a triangle face.

Device can support fog in the Gouraud shading mode.

Device supports Gouraud shading of specular highlights.

?

+
+ + bb172513 + D3DPSHADECAPS ShadeCaps + D3DPSHADECAPS ShadeCaps +
+ + +

Miscellaneous texture-mapping capabilities. This member can be one or more of the following flags.

ValueMeaning

Alpha in texture pixels is supported.

Device can draw alpha from texture palettes.

Supports cube textures.

Device requires that cube texture maps have dimensions specified as powers of two.

Device supports mipmapped cube textures.

Device supports mipmapped textures.

Device supports mipmapped volume textures.

is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. A device that exposes this capability can use such a texture if all of the following requirements are met.

  • The texture addressing mode for the texture stage is set to .
  • Texture wrapping for the texture stage is disabled (D3DRS_WRAP n set to 0).
  • Mipmapping is not in use (use magnification filter only).
  • Texture formats must not be through .

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

A texture that is not a power of two cannot be set at a stage that will be read based on a shader computation (such as the bem - ps and texm3x3 - ps instructions in pixel shaders versions 1_0 to 1_3). For example, these textures can be used to store bumps that will be fed into texture reads, but not the environment maps that are used in texbem - ps, texbeml - ps, and texm3x3spec - ps. This means that a texture with dimensions that are not powers of two cannot be addressed or sampled using texture coordinates computed within the shader. This type of operation is known as a dependent read and cannot be performed on these types of textures.

Device does not support a projected bump-environment loopkup operation in programmable and fixed function shaders.

Perspective correction texturing is supported.

If is not set, all textures must have widths and heights specified as powers of two. This requirement does not apply to either cube textures or volume textures.

If is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. See description.

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

Supports the texture transformation flag. When applied, the device divides transformed texture coordinates by the last texture coordinate. If this capability is present, then the projective divide occurs per pixel. If this capability is not present, but the projective divide needs to occur anyway, then it is performed on a per-vertex basis by the Direct3D runtime.

All textures must be square.

Texture indices are not scaled by the texture size prior to interpolation.

Device supports volume textures.

Device requires that volume texture maps have dimensions specified as powers of two.

?

+
+ + bb172513 + D3DPTEXTURECAPS TextureCaps + D3DPTEXTURECAPS TextureCaps +
+ + +

Texture-filtering capabilities for a texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DPTFILTERCAPS TextureFilterCaps + D3DPTFILTERCAPS TextureFilterCaps +
+ + +

Texture-filtering capabilities for a cube texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DPTFILTERCAPS CubeTextureFilterCaps + D3DPTFILTERCAPS CubeTextureFilterCaps +
+ + +

Texture-filtering capabilities for a volume texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DPTFILTERCAPS VolumeTextureFilterCaps + D3DPTFILTERCAPS VolumeTextureFilterCaps +
+ + +

Texture-addressing capabilities for texture objects. This member can be one or more of the following flags.

ValueMeaning

Device supports setting coordinates outside the range [0.0, 1.0] to the border color, as specified by the texture-stage state.

Device can clamp textures to addresses.

Device can separate the texture-addressing modes of the u and v coordinates of the texture. This ability corresponds to the and render-state values.

Device can mirror textures to addresses.

Device can take the absolute value of the texture coordinate (thus, mirroring around 0) and then clamp to the maximum value.

Device can wrap textures to addresses.

?

+
+ + bb172513 + D3DPTADDRESSCAPS TextureAddressCaps + D3DPTADDRESSCAPS TextureAddressCaps +
+ + +

Texture-addressing capabilities for a volume texture. This member can be one or more of the flags defined for the TextureAddressCaps member.

+
+ + bb172513 + D3DPTADDRESSCAPS VolumeTextureAddressCaps + D3DPTADDRESSCAPS VolumeTextureAddressCaps +
+ + +

Defines the capabilities for line-drawing primitives.

ValueMeaning

Supports alpha-test comparisons.

Antialiased lines are supported.

Supports source-blending.

Supports fog.

Supports texture-mapping.

Supports z-buffer comparisons.

?

+
+ + bb172513 + D3DLINECAPS LineCaps + D3DLINECAPS LineCaps +
+ + +

Maximum texture width for this device.

+
+ + bb172513 + unsigned int MaxTextureWidth + unsigned int MaxTextureWidth +
+ + +

Maximum texture height for this device.

+
+ + bb172513 + unsigned int MaxTextureHeight + unsigned int MaxTextureHeight +
+ + +

Maximum value for any of the three dimensions (width, height, and depth) of a volume texture.

+
+ + bb172513 + unsigned int MaxVolumeExtent + unsigned int MaxVolumeExtent +
+ + +

This number represents the maximum range of the integer bits of the post-normalized texture coordinates. A texture coordinate is stored as a 32-bit signed integer using 27 bits to store the integer part and 5 bits for the floating point fraction. The maximum integer index, 227, is used to determine the maximum texture coordinate, depending on how the hardware does texture-coordinate scaling.

Some hardware reports the cap . For this case, the device defers scaling texture coordinates by the texture size until after interpolation and application of the texture address mode, so the number of times a texture can be wrapped is given by the integer value in MaxTextureRepeat.

Less desirably, on some hardware is not set and the device scales the texture coordinates by the texture size (using the highest level of detail) prior to interpolation. This limits the number of times a texture can be wrapped to MaxTextureRepeat / texture size.

For example, assume that MaxTextureRepeat is equal to 32k and the size of the texture is 4k. If the hardware sets , then the number of times a texture can be wrapped is equal to MaxTextureRepeat, which is 32k in this example. Otherwise, the number of times a texture can be wrapped is equal to MaxTextureRepeat divided by texture size, which is 32k/4k in this example.

+
+ + bb172513 + unsigned int MaxTextureRepeat + unsigned int MaxTextureRepeat +
+ + +

Maximum texture aspect ratio supported by the hardware, typically a power of 2.

+
+ + bb172513 + unsigned int MaxTextureAspectRatio + unsigned int MaxTextureAspectRatio +
+ + +

Maximum valid value for the texture-stage state.

+
+ + bb172513 + unsigned int MaxAnisotropy + unsigned int MaxAnisotropy +
+ + +

Maximum W-based depth value that the device supports.

+
+ + bb172513 + float MaxVertexW + float MaxVertexW +
+ + +

Screen-space coordinate of the guard-band clipping region. Coordinates inside this rectangle but outside the viewport rectangle are automatically clipped.

+
+ + bb172513 + float GuardBandLeft + float GuardBandLeft +
+ + +

Screen-space coordinate of the guard-band clipping region. Coordinates inside this rectangle but outside the viewport rectangle are automatically clipped.

+
+ + bb172513 + float GuardBandTop + float GuardBandTop +
+ + +

Screen-space coordinate of the guard-band clipping region. Coordinates inside this rectangle but outside the viewport rectangle are automatically clipped.

+
+ + bb172513 + float GuardBandRight + float GuardBandRight +
+ + +

Screen-space coordinate of the guard-band clipping region. Coordinates inside this rectangle but outside the viewport rectangle are automatically clipped.

+
+ + bb172513 + float GuardBandBottom + float GuardBandBottom +
+ + +

Number of pixels to adjust the extents rectangle outward to accommodate antialiasing kernels.

+
+ + bb172513 + float ExtentsAdjust + float ExtentsAdjust +
+ + +

Flags specifying supported stencil-buffer operations. Stencil operations are assumed to be valid for all three stencil-buffer operation render states (, , and ).

For more information, see .

+
+ + bb172513 + D3DSTENCILCAPS StencilCaps + D3DSTENCILCAPS StencilCaps +
+ + +

Flexible vertex format capabilities.

ValueMeaning

It is preferable that vertex elements not be stripped. That is, if the vertex format contains elements that are not used with the current render states, there is no need to regenerate the vertices. If this capability flag is not present, stripping extraneous elements from the vertex format provides better performance.

Point size is determined by either the render state or the vertex data. If an FVF is used, point size can come from point size data in the vertex declaration. Otherwise, point size is determined by the render state . If the application provides point size in both (the render state and the vertex declaration), the vertex data overrides the render-state data.

Masks the low WORD of FVFCaps. These bits, cast to the WORD data type, describe the total number of texture coordinate sets that the device can simultaneously use for multiple texture blending. (You can use up to eight texture coordinate sets for any vertex, but the device can blend using only the specified number of texture coordinate sets.)

?

+
+ + bb172513 + D3DFVFCAPS FVFCaps + D3DFVFCAPS FVFCaps +
+ + +

Combination of flags describing the texture operations supported by this device. The following flags are defined.

ValueMeaning

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

The texture-blending operation is supported.

?

+
+ + bb172513 + D3DTEXOPCAPS TextureOpCaps + D3DTEXOPCAPS TextureOpCaps +
+ + +

Maximum number of texture-blending stages supported in the fixed function pipeline. This value is the number of blenders available. In the programmable pixel pipeline, this corresponds to the number of unique texture registers used by pixel shader instructions.

+
+ + bb172513 + unsigned int MaxTextureBlendStages + unsigned int MaxTextureBlendStages +
+ + +

Maximum number of textures that can be simultaneously bound to the fixed-function pipeline sampler stages. If the same texture is bound to two sampler stages, it counts as two textures.

This value has no meaning in the programmable pipeline where the number of sampler stages is determined by each pixel shader version. Each pixel shader version also determines the number of texture declaration instructions. See Pixel Shaders.

+
+ + bb172513 + unsigned int MaxSimultaneousTextures + unsigned int MaxSimultaneousTextures +
+ + +

Vertex processing capabilities. For a given physical device, this capability might vary across Direct3D devices depending on the parameters supplied to CreateDevice. See .

+
+ + bb172513 + D3DVTXPCAPS VertexProcessingCaps + D3DVTXPCAPS VertexProcessingCaps +
+ + +

Maximum number of lights that can be active simultaneously. For a given physical device, this capability might vary across Direct3D devices depending on the parameters supplied to CreateDevice.

+
+ + bb172513 + unsigned int MaxActiveLights + unsigned int MaxActiveLights +
+ + +

Maximum number of user-defined clipping planes supported. This member can be 0. For a given physical device, this capability may vary across Direct3D devices depending on the parameters supplied to CreateDevice.

+
+ + bb172513 + unsigned int MaxUserClipPlanes + unsigned int MaxUserClipPlanes +
+ + +

Maximum number of matrices that this device can apply when performing multimatrix vertex blending. For a given physical device, this capability may vary across Direct3D devices depending on the parameters supplied to CreateDevice.

+
+ + bb172513 + unsigned int MaxVertexBlendMatrices + unsigned int MaxVertexBlendMatrices +
+ + +

DWORD value that specifies the maximum matrix index that can be indexed into using the per-vertex indices. The number of matrices is MaxVertexBlendMatrixIndex + 1, which is the size of the matrix palette. If normals are present in the vertex data that needs to be blended for lighting, then the number of matrices is half the number specified by this capability flag. If MaxVertexBlendMatrixIndex is set to zero, the driver does not support indexed vertex blending. If this value is not zero then the valid range of indices is zero through MaxVertexBlendMatrixIndex.

A zero value for MaxVertexBlendMatrixIndex indicates that the driver does not support indexed matrices.

When software vertex processing is used, 256 matrices could be used for indexed vertex blending, with or without normal blending.

For a given physical device, this capability may vary across Direct3D devices depending on the parameters supplied to CreateDevice.

+
+ + bb172513 + unsigned int MaxVertexBlendMatrixIndex + unsigned int MaxVertexBlendMatrixIndex +
+ + +

Maximum size of a point primitive. If set to 1.0f then device does not support point size control. The range is greater than or equal to 1.0f.

+
+ + bb172513 + float MaxPointSize + float MaxPointSize +
+ + +

Maximum number of primitives for each DrawPrimitive call. There are two cases: +

  • If MaxPrimitiveCount is not equal to 0xffff, you can draw at most MaxPrimitiveCount primitives with each draw call.
  • However, if MaxPrimitiveCount equals 0xffff, you can still draw at most MaxPrimitiveCount primitive, but you may also use no more than MaxPrimitiveCount unique vertices (since each primitive can potentially use three different vertices).
+
+ + bb172513 + unsigned int MaxPrimitiveCount + unsigned int MaxPrimitiveCount +
+ + +

Maximum size of indices supported for hardware vertex processing. It is possible to create 32-bit index buffers; however, you will not be able to render with the index buffer unless this value is greater than 0x0000FFFF.

+
+ + bb172513 + unsigned int MaxVertexIndex + unsigned int MaxVertexIndex +
+ + +

Maximum number of concurrent data streams for SetStreamSource. The valid range is 1 to 16. Note that if this value is 0, then the driver is not a Direct3D 9 driver.

+
+ + bb172513 + unsigned int MaxStreams + unsigned int MaxStreams +
+ + +

Maximum stride for SetStreamSource.

+
+ + bb172513 + unsigned int MaxStreamStride + unsigned int MaxStreamStride +
+ + +

Two numbers that represent the vertex shader main and sub versions. For more information about the instructions supported for each vertex shader version, see Version 1_x, Version 2_0, Version 2_0 Extended, or Version 3_0.

+
+ + bb172513 + unsigned int VertexShaderVersion + unsigned int VertexShaderVersion +
+ + +

The number of vertex shader Vertex Shader Registers that are reserved for constants.

+
+ + bb172513 + unsigned int MaxVertexShaderConst + unsigned int MaxVertexShaderConst +
+ + +

Two numbers that represent the pixel shader main and sub versions. For more information about the instructions supported for each pixel shader version, see Version 1_x, Version 2_0, Version 2_0 Extended, or Version 3_0.

+
+ + bb172513 + unsigned int PixelShaderVersion + unsigned int PixelShaderVersion +
+ + +

Maximum value of pixel shader arithmetic component. This value indicates the internal range of values supported for pixel color blending operations. Within the range that they report to, implementations must allow data to pass through pixel processing unmodified (unclamped). Normally, the value of this member is an absolute value. For example, a 1.0 indicates that the range is -1.0 to 1, and an 8.0 indicates that the range is -8.0 to 8.0. The value must be >= 1.0 for any hardware that supports pixel shaders.

+
+ + bb172513 + float PixelShader1xMaxValue + float PixelShader1xMaxValue +
+ + +

Device driver capabilities for adaptive tessellation. For more information, see

+
+ + bb172513 + D3DDEVCAPS2 DevCaps2 + D3DDEVCAPS2 DevCaps2 +
+ + +

This number indicates which device is the master for this subordinate. This number is taken from the same space as the adapter values.

For multihead support, one head will be denoted the master head, and all other heads on the same card will be denoted subordinate heads. If more than one multihead adapter is present in a system, the master and its subordinates from one multihead adapter are called a group.

+
+ + bb172513 + float MaxNpatchTessellationLevel + float MaxNpatchTessellationLevel +
+ + +

This number indicates the order in which heads are referenced by the API. The value for the master adapter is always 0. These values do not correspond to the adapter ordinals. They apply only to heads within a group.

+
+ + bb172513 + unsigned int Reserved5 + unsigned int Reserved5 +
+ + +

This number indicates which device is the master for this subordinate. This number is taken from the same space as the adapter values.

For multihead support, one head will be denoted the master head, and all other heads on the same card will be denoted subordinate heads. If more than one multihead adapter is present in a system, the master and its subordinates from one multihead adapter are called a group.

+
+ + bb172513 + unsigned int MasterAdapterOrdinal + unsigned int MasterAdapterOrdinal +
+ + +

This number indicates the order in which heads are referenced by the API. The value for the master adapter is always 0. These values do not correspond to the adapter ordinals. They apply only to heads within a group.

+
+ + bb172513 + unsigned int AdapterOrdinalInGroup + unsigned int AdapterOrdinalInGroup +
+ + +

Number of adapters in this adapter group (only if master). This will be 1 for conventional adapters. The value will be greater than 1 for the master adapter of a multihead card. The value will be 0 for a subordinate adapter of a multihead card. Each card can have at most one master, but may have many subordinates.

+
+ + bb172513 + unsigned int NumberOfAdaptersInGroup + unsigned int NumberOfAdaptersInGroup +
+ + +

A combination of one or more data types contained in a vertex declaration. See .

+
+ + bb172513 + D3DDTCAPS DeclTypes + D3DDTCAPS DeclTypes +
+ + +

Number of simultaneous render targets. This number must be at least one.

+
+ + bb172513 + unsigned int NumSimultaneousRTs + unsigned int NumSimultaneousRTs +
+ + +

Combination of constants that describe the operations supported by StretchRect. The flags that may be set in this field are:

ConstantDescription
Device supports point-sample filtering for minifying rectangles. This filter type is requested by calling StretchRect using .
Device supports point-sample filtering for magnifying rectangles. This filter type is requested by calling StretchRect using .
Device supports bilinear interpolation filtering for minifying rectangles. This filter type is requested by calling StretchRect using .
Device supports bilinear interpolation filtering for magnifying rectangles. This filter type is requested by calling StretchRect using .

?

For more information, see and .

+
+ + bb172513 + D3DPTFILTERCAPS StretchRectFilterCaps + D3DPTFILTERCAPS StretchRectFilterCaps +
+ + +

Device supports vertex shader version 2_0 extended capability. See .

+
+ + bb172513 + D3DVSHADERCAPS2_0 VS20Caps + D3DVSHADERCAPS2_0 VS20Caps +
+ + +

Device supports pixel shader version 2_0 extended capability. See .

+
+ + bb172513 + D3DPSHADERCAPS2_0 PS20Caps + D3DPSHADERCAPS2_0 PS20Caps +
+ + +

Device supports vertex shader texture filter capability. See .

+
+ + bb172513 + D3DPTFILTERCAPS VertexTextureFilterCaps + D3DPTFILTERCAPS VertexTextureFilterCaps +
+ + +

Maximum number of vertex shader instructions that can be run when using flow control. The maximum number of instructions that can be programmed is MaxVertexShader30InstructionSlots.

+
+ + bb172513 + unsigned int MaxVShaderInstructionsExecuted + unsigned int MaxVShaderInstructionsExecuted +
+ + +

Maximum number of pixel shader instructions that can be run when using flow control. The maximum number of instructions that can be programmed is MaxPixelShader30InstructionSlots.

+
+ + bb172513 + unsigned int MaxPShaderInstructionsExecuted + unsigned int MaxPShaderInstructionsExecuted +
+ + +

Maximum number of vertex shader instruction slots supported. The maximum value that can be set on this cap is 32768. Devices that support vs_3_0 are required to support at least 512 instruction slots.

+
+ + bb172513 + unsigned int MaxVertexShader30InstructionSlots + unsigned int MaxVertexShader30InstructionSlots +
+ + +

Maximum number of pixel shader instruction slots supported. The maximum value that can be set on this cap is 32768. Devices that support ps_3_0 are required to support at least 512 instruction slots.

+
+ + bb172513 + unsigned int MaxPixelShader30InstructionSlots + unsigned int MaxPixelShader30InstructionSlots +
+ + + Gets the pixel shader version. + + + + + Gets the vertex shader version. + + + + + Shader compilation results. + + + + + Initializes a new instance of the class. + + The bytecode. + The result code. + The message. + + + + Performs an implicit conversion from to . + + The input. + + The result of the conversion. + + + + +

The interface is used to access the constant table. This table contains the variables that are used by high-level language shaders and effects.

+
+ +

The LPD3DXCONSTANTTABLE type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXCONSTANTTABLE;	
+            
+
+ + bb205762 + ID3DXConstantTable + ID3DXConstantTable +
+ + + Gets a single constant description in the constant table. + + The effect handle. + The constant description + HRESULT ID3DXConstantTable::GetConstantDesc([In] D3DXHANDLE hConstant,[Out, Buffer] D3DXCONSTANT_DESC* pConstantDesc,[InOut] unsigned int* pCount) + + + + Gets an array of constant descriptions in the constant table. + + The effect handle. + An array of constant descriptions + HRESULT ID3DXConstantTable::GetConstantDesc([In] D3DXHANDLE hConstant,[Out, Buffer] D3DXCONSTANT_DESC* pConstantDesc,[InOut] unsigned int* pCount) + + + + Sets a bool value. + + The device. + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetBool([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] BOOL b) + + + + Sets a float value. + + The device. + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetFloat([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] float f) + + + + Sets an int value. + + The device. + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetInt([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] int n) + + + + Sets a matrix. + + The device. + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetMatrix([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix) + + + + Sets a 4D vector. + + The device. + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetVector([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXVECTOR4* pVector) + + + + Sets a typed value. + + Type of the value to set + The device. + The effect handle. + The value. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetValue([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const void* pData,[In] unsigned int Bytes) + + + + Sets an array of bools. + + The device. + The effect handle. + The values. + A object describing the result of the operation. + HRESULT ID3DXConstantTable::SetBoolArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const BOOL* pb,[In] unsigned int Count) + + + + Sets an array of floats. + + The device. + The effect handle. + The values. + A object describing the result of the operation. + HRESULT ID3DXConstantTable::SetFloatArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const float* pf,[In] unsigned int Count) + + + + Sets an array of ints. + + The device. + The effect handle. + The values. + A object describing the result of the operation. + HRESULT ID3DXConstantTable::SetIntArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const int* pn,[In] unsigned int Count) + + + + Sets an array of matrices. + + The device. + The effect handle. + The values. + A object describing the result of the operation. + HRESULT ID3DXConstantTable::SetMatrixArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + + + + Sets an array of 4D vectors. + + The device. + The effect handle. + The values. + A object describing the result of the operation. + HRESULT ID3DXConstantTable::SetVectorArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const D3DXVECTOR4* pVector,[In] unsigned int Count) + + + + Sets an array of elements. + + Type of the array element + The device. + The effect handle. + The values. + + A object describing the result of the operation. + + HRESULT ID3DXConstantTable::SetValue([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const void* pData,[In] unsigned int Bytes) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets a reference to the buffer that contains the constant table.

+
+

Returns a reference the buffer.

+ + bb205763 + void* ID3DXConstantTable::GetBufferPointer() + ID3DXConstantTable::GetBufferPointer +
+ + +

Gets the buffer size of the constant table.

+
+

Returns the size of the buffer, in bytes.

+ + bb205764 + unsigned int ID3DXConstantTable::GetBufferSize() + ID3DXConstantTable::GetBufferSize +
+ + +

Gets a description of the constant table.

+
+

Description of the constant table. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb205769 + HRESULT ID3DXConstantTable::GetDesc([Out] D3DXCONSTANTTABLE_DESC* pDesc) + ID3DXConstantTable::GetDesc +
+ + +

Gets a reference to an array of constant descriptions in the constant table.

+
+

Unique identifier to a constant. See .

+

Returns a reference to an array of descriptions. See .

+

The input supplied must be the maximum size of the array. The output is the number of elements that are filled in the array when the function returns.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

will sometimes return a with a Register_Count of 0. This will happen with a constant appears in more than one Register_Set but does not have space in that register set allocated.

Because a sampler can appear more than once in a constant table, this method can return an array of descriptions, each one with a different register index.

+
+ + bb205767 + HRESULT ID3DXConstantTable::GetConstantDesc([In] D3DXHANDLE hConstant,[Out, Buffer] D3DXCONSTANT_DESC* pConstantDesc,[InOut] unsigned int* pCount) + ID3DXConstantTable::GetConstantDesc +
+ + +

Returns the sampler index.

+
+

The sampler handle.

+

Returns the sampler index number from the constant table.

+ + bb205770 + unsigned int ID3DXConstantTable::GetSamplerIndex([In] D3DXHANDLE hConstant) + ID3DXConstantTable::GetSamplerIndex +
+ + +

Gets a constant by looking up its index.

+
+

Unique identifier to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use null.

+

Zero-based index of the constant.

+

Returns a unique identifier to the constant.

+ +

To get a constant from an array of constants, use .

+
+ + bb205765 + D3DXHANDLE ID3DXConstantTable::GetConstant([In] D3DXHANDLE hConstant,[In] unsigned int Index) + ID3DXConstantTable::GetConstant +
+ + +

Gets a constant by looking up its name.

+
+

Unique identifier to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use null.

+

Name of the constant.

+

Returns a unique identifier to the constant.

+ + bb205766 + D3DXHANDLE ID3DXConstantTable::GetConstantByName([In] D3DXHANDLE hConstant,[In] const char* pName) + ID3DXConstantTable::GetConstantByName +
+ + +

Gets a constant from an array of constants. An array is made up of elements.

+
+

Unique identifier to the array of constants. This value may not be null.

+

Zero-based index of the element in the array.

+

Returns a unique identifier to the element constant.

+ +

To get a constant that is not part of an array, use or .

+
+ + bb205768 + D3DXHANDLE ID3DXConstantTable::GetConstantElement([In] D3DXHANDLE hConstant,[In] unsigned int Index) + ID3DXConstantTable::GetConstantElement +
+ + +

Sets the constants to their default values. The default values are declared in the variable declarations in the shader.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205773 + HRESULT ID3DXConstantTable::SetDefaults([In] IDirect3DDevice9* pDevice) + ID3DXConstantTable::SetDefaults +
+ + +

Sets the contents of the buffer to the constant table.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to a constant. See .

+

Buffer containing data.

+

Size of the buffer, in bytes.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205785 + HRESULT ID3DXConstantTable::SetValue([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const void* pData,[In] unsigned int Bytes) + ID3DXConstantTable::SetValue +
+ + +

Sets a Boolean value.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the constant. See .

+

Boolean value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205771 + HRESULT ID3DXConstantTable::SetBool([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] BOOL b) + ID3DXConstantTable::SetBool +
+ + +

Sets an array of Boolean values.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of constants. See .

+

Array of Boolean values.

+

Number of Boolean values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205772 + HRESULT ID3DXConstantTable::SetBoolArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const BOOL* pb,[In] unsigned int Count) + ID3DXConstantTable::SetBoolArray +
+ + +

Sets an integer value.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the constant. See .

+

Integer.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205776 + HRESULT ID3DXConstantTable::SetInt([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] int n) + ID3DXConstantTable::SetInt +
+ + +

Sets an array of integers.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of constants. See .

+

Array of integers.

+

Number of integers in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205778 + HRESULT ID3DXConstantTable::SetIntArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const int* pn,[In] unsigned int Count) + ID3DXConstantTable::SetIntArray +
+ + +

Sets a floating-point number.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the constant. See .

+

Floating-point number.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205774 + HRESULT ID3DXConstantTable::SetFloat([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] float f) + ID3DXConstantTable::SetFloat +
+ + +

Sets an array of floating-point numbers.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of constants. See .

+

Array of floating-point numbers.

+

Number of floating-point values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205775 + HRESULT ID3DXConstantTable::SetFloatArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const float* pf,[In] unsigned int Count) + ID3DXConstantTable::SetFloatArray +
+ + +

Sets a 4D vector.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the vector constant. See .

+

Pointer to a 4D vector.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205786 + HRESULT ID3DXConstantTable::SetVector([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXVECTOR4* pVector) + ID3DXConstantTable::SetVector +
+ + +

Sets an array of 4D vectors.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of vector constants. See .

+

Array of 4D vectors.

+

Number of vectors in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205787 + HRESULT ID3DXConstantTable::SetVectorArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const D3DXVECTOR4* pVector,[In] unsigned int Count) + ID3DXConstantTable::SetVectorArray +
+ + +

Sets a nontransposed matrix.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the matrix of constants. See .

+

Pointer to a nontransposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205779 + HRESULT ID3DXConstantTable::SetMatrix([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix) + ID3DXConstantTable::SetMatrix +
+ + +

Sets an array of nontransposed matrices.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of constant matrices. See .

+

Array of nontransposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205780 + HRESULT ID3DXConstantTable::SetMatrixArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXConstantTable::SetMatrixArray +
+ + +

Sets an array of references to nontransposed matrices.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to an array of constant matrices. See .

+

Array of references to nontransposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A nontransposed matrix contains row-major data; that is, each vector is contained in a row.

+
+ + bb205781 + HRESULT ID3DXConstantTable::SetMatrixPointerArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXConstantTable::SetMatrixPointerArray +
+ + +

Sets a transposed matrix.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the matrix of constants. See .

+

Pointer to a transposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205782 + HRESULT ID3DXConstantTable::SetMatrixTranspose([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix) + ID3DXConstantTable::SetMatrixTranspose +
+ + +

Sets an array of transposed matrices.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of matrix constants. See .

+

Array of transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205783 + HRESULT ID3DXConstantTable::SetMatrixTransposeArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In, Buffer] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXConstantTable::SetMatrixTransposeArray +
+ + +

Sets an array of references to transposed matrices.

+
+

Pointer to an interface, representing the device associated with the constant table.

+

Unique identifier to the array of matrix constants. See .

+

Array of references to transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

+
+ + bb205784 + HRESULT ID3DXConstantTable::SetMatrixTransposePointerArray([In] IDirect3DDevice9* pDevice,[In] D3DXHANDLE hConstant,[In] const D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXConstantTable::SetMatrixTransposePointerArray +
+ + + Gets the buffer. + + + + +

Gets a reference to the buffer that contains the constant table.

+
+ + bb205763 + GetBufferPointer + GetBufferPointer + void* ID3DXConstantTable::GetBufferPointer() +
+ + +

Gets the buffer size of the constant table.

+
+ + bb205764 + GetBufferSize + GetBufferSize + unsigned int ID3DXConstantTable::GetBufferSize() +
+ + +

Gets a description of the constant table.

+
+ + bb205769 + GetDesc + GetDesc + HRESULT ID3DXConstantTable::GetDesc([Out] D3DXCONSTANTTABLE_DESC* pDesc) +
+ + + A collection of . + + + + + Adapter information. + + + + + Gets the capabilities of this adapter. + + The type. + The capabilities + + + + Gets the display modes supported by this adapter. + + The filter. + + The display modes supported by this adapter. + + + + + Gets the adapter ordinal. + + + + + Gets the current display mode. + + + + + Gets the details. + + + + + Gets the monitor. + + + + +

Information about the properties of a display mode.

+
+ +

This structure is used in various methods to create and manage Direct3D 9Ex devices () and swapchains ().

+
+ + bb172549 + D3DDISPLAYMODEEX + D3DDISPLAYMODEEX +
+ + + Initializes a new instance of the class. + + + + +

The size of this structure. This should always be set to sizeof().

+
+ + bb172549 + unsigned int Size + unsigned int Size +
+ + +

Width of the display mode.

+
+ + bb172549 + unsigned int Width + unsigned int Width +
+ + +

Height of the display mode.

+
+ + bb172549 + unsigned int Height + unsigned int Height +
+ + +

Refresh rate of the display mode.

+
+ + bb172549 + unsigned int RefreshRate + unsigned int RefreshRate +
+ + +

Format of the display mode. See .

+
+ + bb172549 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Indicates whether the scanline order is progressive or interlaced. See .

+
+ + bb172549 + D3DSCANLINEORDERING ScanLineOrdering + D3DSCANLINEORDERING ScanLineOrdering +
+ + + Gets the aspect ratio. + + + + +

Describes the display mode.

+
+ + bb172548 + D3DDISPLAYMODE + D3DDISPLAYMODE +
+ + +

Screen width, in pixels.

+
+ + bb172548 + unsigned int Width + unsigned int Width +
+ + +

Screen height, in pixels.

+
+ + bb172548 + unsigned int Height + unsigned int Height +
+ + +

Refresh rate. The value of 0 indicates an adapter default.

+
+ + bb172548 + unsigned int RefreshRate + unsigned int RefreshRate +
+ + +

Member of the enumerated type, describing the surface format of the display mode.

+
+ + bb172548 + D3DFORMAT Format + D3DFORMAT Format +
+ + + Gets the aspect ratio. + + + + + A collection of + + + + +

Applications use the methods of the interface to manipulate a cube texture resource.

+
+ +

The interface can be obtained by calling the method or one of the xxx functions.

This interface inherits additional functionality from the interface.

This interface, like all COM interfaces, inherits additional functionality from the interface.

The LPDIRECT3DCUBETEXTURE9 and PDIRECT3DCubeTexture9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DCUBETEXTURE9, *PDIRECT3DCubeTexture9;	
+            
+
+ + bb174329 + IDirect3DCubeTexture9 + IDirect3DCubeTexture9 +
+ + + Initializes a new instance of the class. + + The device. + Length of the edge. + The level count. + The usage. + The format. + The pool. + + + + Initializes a new instance of the class. + + The device. + Length of the edge. + The level count. + The usage. + The format. + The pool. + The shared handle. + + + + Checks texture-creation parameters. + + Device associated with the texture. + Requested size of the texture. Null if + Requested number of mipmap levels for the texture. + The requested usage for the texture. + Requested format for the texture. + Memory class where the resource will be placed. + A value type containing the proposed values to pass to the texture creation functions. + HRESULT D3DXCheckCubeTextureRequirements([In] IDirect3DDevice9* pDevice,[InOut] unsigned int* pSize,[InOut] unsigned int* pNumMipLevels,[In] unsigned int Usage,[InOut] D3DFORMAT* pFormat,[In] D3DPOOL Pool) + + + + Uses a user-provided function to fill each texel of each mip level of a given cube texture. + + A function that is used to fill the texture. + A object describing the result of the operation. + + + + Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture. + + A texture shader object that is used to fill the texture. + A object describing the result of the operation. + + + + Locks a rectangle on a cube texture resource. + + Type of the face. + The level. + The flags. + + A describing the region locked. + + HRESULT IDirect3DCubeTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[In] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a cube texture resource. + + Type of the face. + The level. + The flags. + The stream pointing to the locked region. + + A describing the region locked. + + HRESULT IDirect3DCubeTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[In] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a cube texture resource. + + Type of the face. + The level. + The rectangle. + The flags. + + A describing the region locked. + + HRESULT IDirect3DCubeTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[In] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a cube texture resource. + + Type of the face. + The level. + The rectangle. + The flags. + The stream pointing to the locked region. + + A describing the region locked. + + HRESULT IDirect3DCubeTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[In] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Adds a dirty region to a cube texture resource. + + Type of the face. + A object describing the result of the operation. + HRESULT IDirect3DCubeTexture9::AddDirtyRect([In] D3DCUBEMAP_FACES FaceType,[In] const void* pDirtyRect) + + + + Adds a dirty region to a cube texture resource. + + Type of the face. + The dirty rect ref. + A object describing the result of the operation. + HRESULT IDirect3DCubeTexture9::AddDirtyRect([In] D3DCUBEMAP_FACES FaceType,[In] const void* pDirtyRect) + + + + Creates a from a file + + The device. + The filename. + + A + + HRESULT D3DXCreateCubeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a file + + The device. + The filename. + The usage. + The pool. + + A + + HRESULT D3DXCreateCubeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a file + + The device. + The filename. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateCubeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a file + + The device. + The filename. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateCubeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a file + + The device. + The filename. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateCubeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The usage. + The pool. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + A + HRESULT D3DXCreateCubeTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The usage. + The pool. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The buffer. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + A + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + The pointer. + The size in bytes. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Creates a from a stream. + + The device. + Name of the file. + The size. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a description of one face of the specified cube texture level.

+
+

Specifies a level of a mipmapped cube texture.

+

Pointer to a structure, describing one face of the specified cube texture level.

+ +

The structure contains Width and Height members, which describe the size of one face in the cube. To get the size of the entire cube, multiply six (the number of cube faces) by the product of Width and Height.

+
+ + bb174332 + HRESULT IDirect3DCubeTexture9::GetLevelDesc([In] unsigned int Level,[Out] D3DSURFACE_DESC* pDesc) + IDirect3DCubeTexture9::GetLevelDesc +
+ + +

Retrieves a cube texture map surface.

+
+

Member of the enumerated type, identifying a cube map face.

+

Specifies a level of a mipmapped cube texture.

+

Address of a reference to an interface, representing the returned cube texture map surface.

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174331 + HRESULT IDirect3DCubeTexture9::GetCubeMapSurface([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[Out] IDirect3DSurface9** ppCubeMapSurface) + IDirect3DCubeTexture9::GetCubeMapSurface +
+ + +

Locks a rectangle on a cube texture resource.

+
+

Member of the enumerated type, identifying a cube map face.

+

Specifies a level of a mipmapped cube texture.

+

Pointer to a structure, describing the region to lock.

+

Pointer to a rectangle to lock. Specified by a reference to a structure. Specifying null for this parameter expands the dirty region to cover the entire cube texture.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

You may not specify a subrect when using . For a description of the flags, see .

+

If the method succeeds, the return value is . is returned if one or more of the arguments is invalid.

+ +

For performance reasons, dirty regions are only recorded for level zero of a texture. Dirty regions are automatically recorded when is called without or . See for more information.

Cube textures created with are not lockable. Cube textures created in video memory are lockable when created with USAGE_DYNAMIC.

The only lockable format for a depth-stencil texture is .

+
+ + bb174334 + HRESULT IDirect3DCubeTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + IDirect3DCubeTexture9::LockRect +
+ + +

Unlocks a rectangle on a cube texture resource.

+
+

Member of the enumerated type, identifying a cube map face.

+

Specifies a level of a mipmapped cube texture.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ + bb174335 + HRESULT IDirect3DCubeTexture9::UnlockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level) + IDirect3DCubeTexture9::UnlockRect +
+ + +

Adds a dirty region to a cube texture resource.

+
+

Member of the enumerated type, identifying the cube map face.

+

Pointer to a structure, specifying the dirty region. Specifying null expands the dirty region to cover the entire cube texture.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

For performance reasons, dirty regions are only recorded for level zero of a texture. For sublevels, it is assumed that the corresponding (scaled) rectangle or box is also dirty. Dirty regions are automatically recorded when is called without or . The destination surface of is also marked dirty automatically.

Using and explicitly specifying dirty regions can be used to increase the efficiency of . Using this method, applications can optimize what subset of a resource is copied by specifying dirty regions on the resource. However, the dirty regions may be expanded to optimize alignment.

+
+ + bb174330 + HRESULT IDirect3DCubeTexture9::AddDirtyRect([In] D3DCUBEMAP_FACES FaceType,[In] const void* pDirtyRect) + IDirect3DCubeTexture9::AddDirtyRect +
+ + + A Cube Texture requirement. + + + + + The corrected size of the texture, in pixels. + + + + + The corrected surface format. + + + + + The corrected mip level count. + + + + + D3DX constants and methods + + + + + The value used to signify that the default value for a parameter should be used. + + D3DX_DEFAULT + + + + The default value for non power-of-two textures. + + D3DX_DEFAULT_NONPOW2 + + + + Indicates that the method should format from file. + + D3DFMT_FROM_FILE + + + + Indicates that the method should load from file. + + D3DX_FROM_FILE + + + + Checks the D3DX runtime version against this compiled version. + + True if version are compatible + BOOL D3DXCheckVersion([In] unsigned int D3DSdkVersion,[In] unsigned int D3DXSdkVersion) + + + + Get and set debug mute mode. + + if set to true [mute]. + Return the debug mute mode + BOOL D3DXDebugMute([In] BOOL Mute) + + + + Converts a declarator from a flexible vertex format (FVF) code. + + Combination of that describes the FVF from which to generate the returned declarator array.. + + A declarator from a flexible vertex format (FVF) code. + + HRESULT D3DXDeclaratorFromFVF([In] D3DFVF FVF,[In, Buffer] D3DVERTEXELEMENT9* pDeclarator) + + + + Converts a flexible vertex format (FVF) code from a declarator. + + The declarator array. + A that describes the vertex format returned from the declarator. + HRESULT D3DXFVFFromDeclarator([In, Buffer] const D3DVERTEXELEMENT9* pDeclarator,[Out] D3DFVF* pFVF) + + + + Generates an output vertex declaration from the input declaration. The output declaration is intended for use by the mesh tessellation functions. + + The input declaration. + The output declaration + HRESULT D3DXGenerateOutputDecl([In, Buffer] D3DVERTEXELEMENT9* pOutput,[In, Buffer] const D3DVERTEXELEMENT9* pInput) + + + + Gets the number of elements in the vertex declaration. + + The declaration. + The number of elements in the vertex declaration. + unsigned int D3DXGetDeclLength([In, Buffer] const D3DVERTEXELEMENT9* pDecl) + + + + Gets the size of a vertex from the vertex declaration. + + The elements. + The stream. + The vertex declaration size, in bytes. + unsigned int D3DXGetDeclVertexSize([In, Buffer] const D3DVERTEXELEMENT9* pDecl,[In] unsigned int Stream) + + + + Returns the size of a vertex for a flexible vertex format (FVF). + + The vertex format. + The FVF vertex size, in bytes. + unsigned int D3DXGetFVFVertexSize([In] D3DFVF FVF) + + + + Gets the size of the rectangle patch. + + The segment count. + The triangle count. + The vertex count. + A object describing the result of the operation. + HRESULT D3DXRectPatchSize([In] const float* pfNumSegs,[In] unsigned int* pdwTriangles,[In] unsigned int* pdwVertices) + + + + Gets the size of the triangle patch. + + The segment count. + The triangle count. + The vertex count. + A object describing the result of the operation. + HRESULT D3DXTriPatchSize([In] const float* pfNumSegs,[In] unsigned int* pdwTriangles,[In] unsigned int* pdwVertices) + + + + Gets an array of from a . + + The stream. + The vertex count. + The format. + An array of + + + + Gets an array of from a . + + The stream. + The vertex count. + The stride. + An array of + + + + Creates a FOURCC Format code from bytes description. + + The c1. + The c2. + The c3. + The c4. + A Format FourCC + MAKEFOURCC + + + + Generates an optimized face remapping for a triangle list. + + The indices. + The face count. + The vertex count. + The original mesh face that was split to generate the current face. + HRESULT D3DXOptimizeFaces([In] const void* pbIndices,[In] unsigned int cFaces,[In] unsigned int cVertices,[In] BOOL b32BitIndices,[In, Buffer] int* pFaceRemap) + + + + Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by D3DXOptimizeFaces. + + The indices. + The face count. + The vertex count. + The original mesh face that was split to generate the current face. + HRESULT D3DXOptimizeFaces([In] const void* pbIndices,[In] unsigned int cFaces,[In] unsigned int cVertices,[In] BOOL b32BitIndices,[In, Buffer] int* pFaceRemap) + + + + Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by . + + The indices. + The face count. + The vertex count. + A buffer that will contain the new index for each vertex. The value stored in pVertexRemap for a given element is the source vertex location in the new vertex ordering. + HRESULT D3DXOptimizeVertices([In] const void* pbIndices,[In] unsigned int cFaces,[In] unsigned int cVertices,[In] BOOL b32BitIndices,[In, Buffer] int* pVertexRemap) + + + + Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by . + + The indices. + The face count. + The vertex count. + A buffer that will contain the new index for each vertex. The value stored in pVertexRemap for a given element is the source vertex location in the new vertex ordering. + HRESULT D3DXOptimizeVertices([In] const void* pbIndices,[In] unsigned int cFaces,[In] unsigned int cVertices,[In] BOOL b32BitIndices,[In, Buffer] int* pVertexRemap) + + + +

Applications use the methods of the interface to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.

+
+ +

The interface is obtained by calling the method.

This interface, like all COM interfaces, inherits the interface methods.

The LPDIRECT3DDEVICE9 and PDIRECT3DDEVICE9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DDEVICE9, *PDIRECT3DDEVICE9;	
+            
+
+ + bb174336 + IDirect3DDevice9 + IDirect3DDevice9 +
+ + + Creates a device to represent the display adapter. + + + This method returns a fully working device interface, set to the required display mode (or windowed), and allocated with the appropriate back buffers. To begin rendering, the application needs only to create and set a depth buffer (assuming EnableAutoDepthStencil is FALSE in ). When you create a Direct3D device, you supply two different window parameters: a focus window (hFocusWindow) and a device window (the hDeviceWindow in ). The purpose of each window is: The focus window alerts Direct3D when an application switches from foreground mode to background mode (via Alt-Tab, a mouse click, or some other method). A single focus window is shared by each device created by an application. The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during {{Present}}. This method should not be run during the handling of WM_CREATE. An application should never pass a window handle to Direct3D while handling WM_CREATE. Any call to create, release, or reset the device must be done using the same thread as the window procedure of the focus window. Note that D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_MIXED_VERTEXPROCESSING, and D3DCREATE_SOFTWARE_VERTEXPROCESSING are mutually exclusive flags, and at least one of these vertex processing flags must be specified when calling this method. Back buffers created as part of the device are only lockable if D3DPRESENTFLAG_LOCKABLE_BACKBUFFER is specified in the presentation parameters. (Multisampled back buffers and depth surfaces are never lockable.) The methods {{Reset}}, , and {{TestCooperativeLevel}} must be called from the same thread that used this method to create a device. D3DFMT_UNKNOWN can be specified for the windowed mode back buffer format when calling CreateDevice, {{Reset}}, and {{CreateAdditionalSwapChain}}. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified. If you attempt to create a device on a 0x0 sized window, CreateDevice will fail. + + an instance of + Ordinal number that denotes the display adapter. {{D3DADAPTER_DEFAULT}} is always the primary display adapter. + Member of the enumerated type that denotes the desired device type. If the desired device type is not available, the method will fail. + The focus window alerts Direct3D when an application switches from foreground mode to background mode. See Remarks. For full-screen mode, the window specified must be a top-level window. For windowed mode, this parameter may be NULL only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-NULL value. + Combination of one or more options that control device creation. For more information, see {{D3DCREATE}}. + Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies {{D3DCREATE_ADAPTERGROUP_DEVICE}}, pPresentationParameters is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created. For Windows 2000 and Windows XP, the full-screen device display refresh rate is set in the following order: User-specified nonzero ForcedRefreshRate registry key, if supported by the device. Application-specified nonzero refresh rate value in the presentation parameter. Refresh rate of the latest desktop mode, if supported by the device. 75 hertz if supported by the device. 60 hertz if supported by the device. Device default. An unsupported refresh rate will default to the closest supported refresh rate below it. For example, if the application specifies 63 hertz, 60 hertz will be used. There are no supported refresh rates below 57 hertz. pPresentationParameters is both an input and an output parameter. Calling this method may change several members including: If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns. If BackBufferFormat equals before the method is called, it will be changed when the method returns. + If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_DEVICELOST, D3DERR_INVALIDCALL, D3DERR_NOTAVAILABLE, D3DERR_OUTOFVIDEOMEMORY. + HRESULT CreateDevice([None] UINT Adapter,[None] D3DDEVTYPE DeviceType,[None] HWND hFocusWindow,[None] int BehaviorFlags,[None] D3DPRESENT_PARAMETERS* pPresentationParameters,[None] IDirect3DDevice9** ppReturnedDeviceInterface) + + + + Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer. + + Flags that specify which surfaces will be cleared. + The color that will be used to fill the cleared render target. + The value that will be used to fill the cleared depth buffer. + The value that will be used to fill the cleared stencil buffer. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::Clear([None] int Count,[In, Buffer, Optional] const D3DRECT* pRects,[None] int Flags,[None] D3DCOLOR Color,[None] float Z,[None] int Stencil) + + + + Clears one or more surfaces such as a render target, a stencil buffer, and a depth buffer. + + Flags that specify which surfaces will be cleared. + The color that will be used to fill the cleared render target. + The value that will be used to fill the cleared depth buffer. + The value that will be used to fill the cleared stencil buffer. + The areas on the surfaces that will be cleared. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::Clear([None] int Count,[In, Buffer, Optional] const D3DRECT* pRects,[None] int Flags,[None] D3DCOLOR Color,[None] float Z,[None] int Stencil) + + + + Allows an application to fill a rectangular area of a D3DPOOL_DEFAULT surface with a specified color. + + + This method can only be applied to a render target, a render-target texture surface, or an off-screen plain surface with a pool type of D3DPOOL_DEFAULT. IDirect3DDevice9::ColorFill will work with all formats. However, when using a reference or software device, the only formats supported are D3DFMT_X1R5G5B5, D3DFMT_A1R5G5B5, D3DFMT_R5G6B5, D3DFMT_X8R8G8B8, D3DFMT_A8R8G8B8, D3DFMT_YUY2, D3DFMT_G8R8_G8B8, D3DFMT_UYVY, D3DFMT_R8G8_B8G8, D3DFMT_R16F, D3DFMT_G16R16F, D3DFMT_A16B16G16R16F, D3DFMT_R32F, D3DFMT_G32R32F, and D3DFMT_A32B32G32R32F. When using a DirectX 7 or DirectX 8.x driver, the only YUV formats supported are D3DFMT_UYVY and D3DFMT_YUY2. + + Pointer to the surface to be filled. + Color used for filling. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::ColorFill([None] IDirect3DSurface9* pSurface,[In, Optional] const RECT* pRect,[None] D3DCOLOR color) + + + + Draws the indexed user primitives. + + + + Type of the primitive. + Minimum index of the vertex. + The vertex count. + The primitive count. + The index data. + The index data format. + The vertex data. + The vertex stride. + A object describing the result of the operation. + + + + Draws the indexed user primitives. + + + + Type of the primitive. + The start index. + Minimum index of the vertex. + The vertex count. + The primitive count. + The index data. + The index data format. + The vertex data. + A object describing the result of the operation. + + + + Draws the indexed user primitives. + + + + Type of the primitive. + The start index. + The start vertex. + Minimum index of the vertex. + The vertex count. + The primitive count. + The index data. + The index data format. + The vertex data. + A object describing the result of the operation. + + + + Draws the rectangle patch. + + The handle. + The segment counts. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::DrawRectPatch([In] unsigned int Handle,[In, Buffer] const float* pNumSegs,[In] const void* pRectPatchInfo) + + + + Draws the rectangle patch. + + The handle. + The segment counts. + The info. + + A object describing the result of the operation. + + IDirect3DDevice9::DrawRectPatch + + + + Draws the triangle patch. + + The handle. + The segment counts. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::DrawTriPatch([In] unsigned int Handle,[In, Buffer] const float* pNumSegs,[In] const void* pTriPatchInfo) + + + + Draws the triangle patch. + + The handle. + The segment counts. + The info. + + A object describing the result of the operation. + + + + + Draws the user primitives. + + + Type of the primitive. + The primitive count. + The data. + + A object describing the result of the operation. + + + + + Draws the user primitives. + + + Type of the primitive. + The start index. + The primitive count. + The data. + + A object describing the result of the operation. + + + + + Gets the back buffer. + + The swap chain. + The back buffer. + A object describing the result of the operation. + + + + Gets the palette entries. + + The palette number. + An array of + + + + Gets the pixel shader boolean constant. + + The start register. + The count. + An array of boolean constants + + + + Gets the pixel shader float constant. + + The start register. + The count. + An array of float constants + + + + Gets the pixel shader integer constant. + + The start register. + The count. + An array of int constants + + + + Gets the state of the render. + + The state. + The render state value + HRESULT IDirect3DDevice9::GetRenderState([In] D3DRENDERSTATETYPE State,[In] void* pValue) + + + + Gets the state of the render. + + Type of the state value. + The state. + + The render state value + + HRESULT IDirect3DDevice9::GetRenderState([In] D3DRENDERSTATETYPE State,[In] void* pValue) + + + + Gets the state of the sampler. + + The sampler. + The state. + + The sampler state value + + HRESULT IDirect3DDevice9::GetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] void* pValue) + + + + Gets the state of the sampler. + + Type of the sampler state value + The sampler. + The state. + + The sampler state value + + HRESULT IDirect3DDevice9::GetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] void* pValue) + + + + Gets the state of the texture stage. + + The stage. + The type. + + The texture stage state. + + HRESULT IDirect3DDevice9::GetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] void* pValue) + + + + Gets the state of the texture stage. + + Type of the texture stage state + The stage. + The type. + + The texture stage state. + + HRESULT IDirect3DDevice9::GetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] void* pValue) + + + + Gets the vertex shader boolean constant. + + The start register. + The count. + An array of boolean constants + HRESULT IDirect3DDevice9::GetVertexShaderConstantB([In] unsigned int StartRegister,[In] void* pConstantData,[In] unsigned int BoolCount) + + + + Gets the vertex shader float constant. + + The start register. + The count. + An array of float constants + HRESULT IDirect3DDevice9::GetVertexShaderConstantF([In] unsigned int StartRegister,[In, Buffer] float* pConstantData,[In] unsigned int Vector4fCount) + + + + Gets the vertex shader integer constant. + + The start register. + The count. + An array of int constants + HRESULT IDirect3DDevice9::GetVertexShaderConstantI([In] unsigned int StartRegister,[Out] int* pConstantData,[In] unsigned int Vector4iCount) + + + + Sets the cursor position. + + The point. + if set to true [flags]. + void IDirect3DDevice9::SetCursorPosition([In] int X,[In] int Y,[In] unsigned int Flags) + + + + Sets the cursor position. + + The x. + The y. + if set to true [flags]. + void IDirect3DDevice9::SetCursorPosition([In] int X,[In] int Y,[In] unsigned int Flags) + + + + Sets the cursor properties. + + The point. + The cursor bitmap ref. + + HRESULT IDirect3DDevice9::SetCursorProperties([In] unsigned int XHotSpot,[In] unsigned int YHotSpot,[In] IDirect3DSurface9* pCursorBitmap) + + + + Sets the gamma ramp. + + The swap chain. + The ramp ref. + if set to true [calibrate]. + void IDirect3DDevice9::SetGammaRamp([In] unsigned int iSwapChain,[In] unsigned int Flags,[In] const D3DGAMMARAMP* pRamp) + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + A object describing the result of the operation. + IDirect3DDevice9::Present + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The area of the back buffer that should be presented. + The area of the front buffer that should receive the result of the presentation. + A object describing the result of the operation. + IDirect3DDevice9::Present + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The area of the back buffer that should be presented. + The area of the front buffer that should receive the result of the presentation. + The destination window whose client area is taken as the target for this presentation. + A object describing the result of the operation. + IDirect3DDevice9::Present + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The area of the back buffer that should be presented. + The area of the front buffer that should receive the result of the presentation. + The destination window whose client area is taken as the target for this presentation. + Specifies a region on the back buffer that contains the minimal amount of pixels that need to be updated. + A object describing the result of the operation. + IDirect3DDevice9::Present + + + + Resets the stream source frequency by setting the frequency to 1. + + The stream index. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetStreamSourceFreq([In] unsigned int StreamNumber,[In] unsigned int Setting) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantB([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int BoolCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantI([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4iCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + The count. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + The offset. + The count. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetPixelShaderConstantB([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int BoolCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetPixelShaderConstantI([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4iCount) + + + + Sets the pixel shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the RenderState. + + State of the render. + if set to true [enable]. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetRenderState([In] D3DRENDERSTATETYPE State,[In] unsigned int Value) + + + + Sets the RenderState. + + State of the render. + A float value. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetRenderState([In] D3DRENDERSTATETYPE State,[In] unsigned int Value) + + + + Sets the RenderState. + + Type of the enum value + State of the render. + An enum value. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetRenderState([In] D3DRENDERSTATETYPE State,[In] unsigned int Value) + + + + Sets the SamplerState. + + The sampler. + The type. + The texture filter. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] unsigned int Value) + + + + Sets the SamplerState. + + The sampler. + The type. + The texture address. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] unsigned int Value) + + + + Sets the SamplerState. + + The sampler. + The type. + A float value. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] unsigned int Value) + + + + Sets the stream source frequency. + + The stream. + The frequency. + The source. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetStreamSourceFreq([In] unsigned int StreamNumber,[In] unsigned int Setting) + + + + Sets the state of the texture stage. + + The stage. + The type. + The texture argument. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] unsigned int Value) + + + + Sets the state of the texture stage. + + The stage. + The type. + The texture operation. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] unsigned int Value) + + + + Sets the state of the texture stage. + + The stage. + The type. + The texture transform. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] unsigned int Value) + + + + Sets the state of the texture stage. + + The stage. + The type. + The value. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] unsigned int Value) + + + + Sets the transform. + + The state. + The matrix ref. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTransform([In] D3DTRANSFORMSTATETYPE State,[In] const D3DMATRIX* pMatrix) + + + + Sets the transform. + + The index. + The matrix ref. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTransform([In] D3DTRANSFORMSTATETYPE State,[In] const D3DMATRIX* pMatrix) + + + + Sets the transform. + + The state. + The matrix ref. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTransform([In] D3DTRANSFORMSTATETYPE State,[In] const D3DMATRIX* pMatrix) + + + + Sets the transform. + + The index. + The matrix ref. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetTransform([In] D3DTRANSFORMSTATETYPE State,[In] const D3DMATRIX* pMatrix) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantB([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int BoolCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantI([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4iCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + The count. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + The offset. + The count. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetVertexShaderConstantB([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int BoolCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetVertexShaderConstantI([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4iCount) + + + + Sets the vertex shader constant. + + The start register. + The data. + The offset. + The count. + A object describing the result of the operation. + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + + + + Stretches the rectangle. + + The source surface ref. + The dest surface ref. + The filter. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::StretchRect([In] IDirect3DSurface9* pSourceSurface,[In, Optional] const RECT* pSourceRect,[In] IDirect3DSurface9* pDestSurface,[In, Optional] const RECT* pDestRect,[In] D3DTEXTUREFILTERTYPE Filter) + + + + Updates the surface. + + The source surface ref. + The destination surface ref. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9::UpdateSurface([In] IDirect3DSurface9* pSourceSurface,[In] const RECT* pSourceRect,[In] IDirect3DSurface9* pDestinationSurface,[In] const POINT* pDestPoint) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.

+
+

If the method succeeds, the return value is , indicating that the device is operational and the calling application can continue. If the method fails, the return value can be one of the following values: , , .

+ +

If the device is lost but cannot be restored at the current time, returns the return code. This would be the case, for example, when a full-screen device has lost focus. If an application detects a lost device, it should pause and periodically call until it receives a return value of . The application may then attempt to reset the device by calling and, if this succeeds, restore the necessary resources and resume normal operation. Note that will return if the device is either "lost" or "not reset".

A call to will fail if called on a different thread than that used to create the device being reset.

+
+ + bb174472 + HRESULT IDirect3DDevice9::TestCooperativeLevel() + IDirect3DDevice9::TestCooperativeLevel +
+ + +

Returns an estimate of the amount of available texture memory.

+
+

The function returns an estimate of the available texture memory.

+ +

The returned value is rounded to the nearest MB. This is done to reflect the fact that video memory estimates are never precise due to alignment and other issues that affect consumption by certain resources. Applications can use this value to make gross estimates of memory availability to make large-scale resource decisions such as how many levels of a mipmap to attempt to allocate, but applications cannot use this value to make small-scale decisions such as if there is enough memory left to allocate another resource.

+
+ + bb174378 + unsigned int IDirect3DDevice9::GetAvailableTextureMem() + IDirect3DDevice9::GetAvailableTextureMem +
+ + +

Evicts all managed resources, including both Direct3D and driver-managed resources.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be , D3DERR_COMMAND_UNPARSED.

+ +

This function causes only the copy of resources to be evicted. The resource copy in system memory is retained. See .

+
+ + bb174377 + HRESULT IDirect3DDevice9::EvictManagedResources() + IDirect3DDevice9::EvictManagedResources +
+ + +

Returns an interface to the instance of the Direct3D object that created the device.

+
+

Address of a reference to an interface, representing the interface of the Direct3D object that created the device.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Calling will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174386 + HRESULT IDirect3DDevice9::GetDirect3D([Out] IDirect3D9** ppD3D9) + IDirect3DDevice9::GetDirect3D +
+ + +

Retrieves the capabilities of the rendering device.

+
+

Pointer to a structure, describing the returned device.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

retrieves the software vertex pipeline capabilities when the device is being used in software vertex processing mode.

+
+ + bb174385 + HRESULT IDirect3DDevice9::GetDeviceCaps([Out] D3DCAPS9* pCaps) + IDirect3DDevice9::GetDeviceCaps +
+ + +

Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.

+
+

An unsigned integer specifying the swap chain.

+

Pointer to a structure containing data about the display mode of the adapter. As opposed to the display mode of the device, which may not be active if the device does not own full-screen mode.

+ + bb174387 + HRESULT IDirect3DDevice9::GetDisplayMode([In] unsigned int iSwapChain,[Out] D3DDISPLAYMODE* pMode) + IDirect3DDevice9::GetDisplayMode +
+ + +

Retrieves the creation parameters of the device.

+
+

Pointer to a structure, describing the creation parameters of the device.

+

If the method succeeds, the return value is .

is returned if the argument is invalid.

+ +

You can query the AdapterOrdinal member of the returned structure to retrieve the ordinal of the adapter represented by this device.

+
+ + bb174382 + HRESULT IDirect3DDevice9::GetCreationParameters([Out] D3DDEVICE_CREATION_PARAMETERS* pParameters) + IDirect3DDevice9::GetCreationParameters +
+ + +

Sets properties for the cursor.

+
+

X-coordinate offset (in pixels) that marks the center of the cursor. The offset is relative to the upper-left corner of the cursor. When the cursor is given a new position, the image is drawn at an offset from this new position determined by subtracting the hot spot coordinates from the position.

+

Y-coordinate offset (in pixels) that marks the center of the cursor. The offset is relative to the upper-left corner of the cursor. When the cursor is given a new position, the image is drawn at an offset from this new position determined by subtracting the hot spot coordinates from the position.

+

Pointer to an interface. This parameter must point to an 8888 ARGB surface (format ). The contents of this surface will be copied and potentially format-converted into an internal buffer from which the cursor is displayed. The dimensions of this surface must be less than the dimensions of the display mode, and must be a power of two in each direction, although not necessarily the same power of two. The alpha channel must be either 0.0 or 1.0.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

An operating system cursor is created and used under either of these conditions:

  • The hardware has set (see ), and the cursor size is 32x32 (which is the cursor size in the operating system).
  • The application is running in windowed mode.

Otherwise, DirectX uses an emulated cursor. An application uses to move an emulated cursor to follow mouse movement.

It is recommended for applications to always trap WM_MOUSEMOVE events and call DXSetCursorPosition.

Direct3D cursor functions use either GDI cursor or software emulation, depending on the hardware. Users typically want to respond to a WM_SETCURSOR message. For example, they might want to write the message handler as follows:

 case WM_SETCURSOR:	
+            // Turn off window cursor. 	
+            SetCursor( null );	
+            m_pd3dDevice->ShowCursor( TRUE );	
+            return TRUE; // Prevent Windows from setting cursor to window class cursor.	
+            break;	
+            

Or, users might want to call the method if they want to change the cursor.

The application can determine what hardware support is available for cursors by examining appropriate members of the structure. Typically, hardware supports only 32x32 cursors and, when windowed, the system might support only 32x32 cursors. In this case, still succeeds but the cursor might be reduced to that size. The hot spot is scaled appropriately.

The cursor does not survive when the device is lost. This method must be called after the device is reset.

+
+ + bb174430 + HRESULT IDirect3DDevice9::SetCursorProperties([In] unsigned int XHotSpot,[In] unsigned int YHotSpot,[In] IDirect3DSurface9* pCursorBitmap) + IDirect3DDevice9::SetCursorProperties +
+ + +

Sets the cursor position and update options.

+
+

The new X-position of the cursor in virtual desktop coordinates. See Remarks.

+

The new Y-position of the cursor in virtual desktop coordinates. See Remarks.

+

Specifies the update options for the cursor. Currently, only one flag is defined.

ValueMeaning
D3DCURSOR_IMMEDIATE_UPDATE

Update cursor at the refresh rate.

If this flag is specified, the system guarantees that the cursor will be updated at a minimum of half the display refresh rate, but never more frequently than the display refresh rate. Otherwise, the method delays cursor updates until the next call. Not setting this flag usually results in better performance than if the flag is set. However, applications should set this flag if the rate of calls to Present is low enough that users would notice a significant delay in cursor motion. This flag has no effect in a windowed-mode application. Some video cards implement hardware color cursors. This flag does not have an effect on these cards.

?

+ +

When running in full-screen mode, screen space coordinates are the back buffer coordinates appropriately scaled to the current display mode. When running in windowed mode, screen space coordinates are the desktop coordinates. The cursor image is drawn at the specified position minus the hotspot-offset specified by the SetCursorProperties method.

If the cursor has been hidden by ShowCursor, the cursor is not drawn.

+
+ + bb174429 + void IDirect3DDevice9::SetCursorPosition([In] int X,[In] int Y,[In] unsigned int Flags) + IDirect3DDevice9::SetCursorPosition +
+ + +

Displays or hides the cursor.

+
+

If bShow is TRUE, the cursor is shown. If bShow is , the cursor is hidden.

+

Value indicating whether the cursor was previously visible. TRUE if the cursor was previously visible, or if the cursor was not previously visible.

+ +

Direct3D cursor functions use either GDI cursor or software emulation, depending on the hardware. Users usually want to respond to a WM_SETCURSOR message. For example, the users might want to write the message handler like this:

 case WM_SETCURSOR: // Turn off window cursor  SetCursor( null ); m_pd3dDevice->ShowCursor( TRUE ); return TRUE; // prevent Windows from setting cursor to window class cursor break;	
+            

Or users might want to call the method if they want to change the cursor. See the code in the DirectX Graphics C/C++ Samples for more detail.

+
+ + bb174470 + BOOL IDirect3DDevice9::ShowCursor([In] BOOL bShow) + IDirect3DDevice9::ShowCursor +
+ + +

Creates an additional swap chain for rendering multiple views.

+
+

Pointer to a structure, containing the presentation parameters for the new swap chain. This value cannot be null.

Calling this method changes the value of members of the structure.

  • If BackBufferCount == 0, calling CreateAdditionalSwapChain will increase it to 1.
  • If the application is in windowed mode, and if either the BackBufferWidth or the BackBufferHeight == 0, they will be set to the client area width and height of the hwnd.
+

Address of a reference to an interface, representing the additional swap chain.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , , , E_OUTOFMEMORY.

+ +

There is always at least one swap chain (the implicit swap chain) for each device because Direct3D 9 has one swap chain as a property of the device.

Note that any given device can support only one full-screen swap chain.

can be specified for the windowed mode back buffer format when calling , and CreateAdditionalSwapChain. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified.

+
+ + bb174354 + HRESULT IDirect3DDevice9::CreateAdditionalSwapChain([In] D3DPRESENT_PARAMETERS* pPresentationParameters,[Out, Fast] IDirect3DSwapChain9** pSwapChain) + IDirect3DDevice9::CreateAdditionalSwapChain +
+ + +

Gets a reference to a swap chain.

+
+

The swap chain ordinal value. For more information, see NumberOfAdaptersInGroup in .

+

Pointer to an interface that will receive a copy of swap chain.

+ + bb174411 + HRESULT IDirect3DDevice9::GetSwapChain([In] unsigned int iSwapChain,[Out] IDirect3DSwapChain9** pSwapChain) + IDirect3DDevice9::GetSwapChain +
+ + +

Gets the number of implicit swap chains.

+
+

Number of implicit swap chains. See Remarks.

+ +

Implicit swap chains are created by the device during . This method returns the number of swap chains created by CreateDevice.

An application may create additional swap chains using .

+
+ + bb174396 + unsigned int IDirect3DDevice9::GetNumberOfSwapChains() + IDirect3DDevice9::GetNumberOfSwapChains +
+ + +

Resets the type, size, and format of the swap chain.

+
+

Pointer to a structure, describing the new presentation parameters. This value cannot be null.

When switching to full-screen mode, Direct3D will try to find a desktop format that matches the back buffer format, so that back buffer and front buffer formats will be identical (to eliminate the need for color conversion).

When this method returns:

  • BackBufferCount, BackBufferWidth, and BackBufferHeight are set to zero.
  • BackBufferFormat is set to for windowed mode only; a full-screen mode must specify a format.
+

Possible return values include: , , , , or (see D3DERR).

+ +

If a call to fails, the device will be placed in the "lost" state (as indicated by a return value of from a call to ) unless it is already in the "not reset" state (as indicated by a return value of from a call to ). Refer to and Lost Devices (Direct3D 9) for further information concerning the use of in the context of lost devices.

Calling causes all texture memory surfaces to be lost, managed textures to be flushed from video memory, and all state information to be lost. Before calling the method for a device, an application should release any explicit render targets, depth stencil surfaces, additional swap chains, state blocks, and resources associated with the device.

There are two different types of swap chains: full-screen or windowed. If the new swap chain is full-screen, the adapter will be placed in the display mode that matches the new size.

Direct3D 9 applications can expect messages to be sent to them during this call (for example, before this call is returned); applications should take precautions not to call into Direct3D at this time. In addition, when fails, the only valid methods that can be called are , , and the various Release member functions. Calling any other method can result in an exception.

A call to will fail if called on a different thread than that used to create the device being reset.

Pixel shaders and vertex shaders survive calls for Direct3D 9. They do not need to be re-created explicitly by the application.

can be specified for the windowed mode back buffer format when calling , , and . This means the application does not have to query the current desktop format before calling for windowed mode. For full-screen mode, the back buffer format must be specified. Setting BackBufferCount equal to zero (BackBufferCount = 0) results in one back buffer.

When trying to reset more than one display adapter in a group, set pPresentationParameters to point to an array of structures, one for each display in the adapter group.

If a multihead device was created with , requires an array of structures wherein each structure must specify a full-screen display. To switch back to windowed mode, the application must destroy the device and re-create a non-multihead device in windowed mode.

+
+ + bb174425 + HRESULT IDirect3DDevice9::Reset([In, Out, Params] D3DPRESENT_PARAMETERS* pPresentationParameters) + IDirect3DDevice9::Reset +
+ + +

Presents the contents of the next buffer in the sequence of back buffers owned by the device.

+
+

Pointer to a value that must be null unless the swap chain was created with . pSourceRect is a reference to a structure containing the source rectangle. If null, the entire source surface is presented. If the rectangle exceeds the source surface, the rectangle is clipped to the source surface.

+

Pointer to a value that must be null unless the swap chain was created with . pDestRect is a reference to a structure containing the destination rectangle, in window client coordinates. If null, the entire client area is filled. If the rectangle exceeds the destination client area, the rectangle is clipped to the destination client area.

+

Pointer to a destination window whose client area is taken as the target for this presentation. If this value is null, the runtime uses the hDeviceWindow member of for the presentation.

+

Value must be null unless the swap chain was created with . For more information about swap chains, see Flipping Surfaces (Direct3D 9) and . If this value is non-null, the contained region is expressed in back buffer coordinates. The rectangles within the region are the minimal set of pixels that need to be updated. This method takes these rectangles into account when optimizing the presentation by copying only the pixels within the region, or some suitably expanded set of rectangles. This is an aid to optimization only, and the application should not rely on the region being copied exactly. The implementation can choose to copy the whole source rectangle.

+

Possible return values include: or (see D3DERR).

+ +

If necessary, a stretch operation is applied to transfer the pixels within the source rectangle to the destination rectangle in the client area of the target window.

Present will fail, returning , if called between BeginScene and EndScene pairs unless the render target is not the current render target (such as the back buffer you get from creating an additional swap chain). This is a new behavior for Direct3D 9.

+
+ + bb174423 + HRESULT IDirect3DDevice9::Present([In] const void* pSourceRect,[In] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const void* pDirtyRegion) + IDirect3DDevice9::Present +
+ + +

Retrieves a back buffer from the device's swap chain.

+
+

An unsigned integer specifying the swap chain.

+

Index of the back buffer object to return. Back buffers are numbered from 0 to the total number of back buffers minus one. A value of 0 returns the first back buffer, not the front buffer. The front buffer is not accessible through this method. Use to retrieve a copy of the front buffer.

+

Stereo view is not supported in Direct3D 9, so the only valid value for this parameter is .

+

Address of a reference to an interface, representing the returned back buffer surface.

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174379 + HRESULT IDirect3DDevice9::GetBackBuffer([In] unsigned int iSwapChain,[In] unsigned int iBackBuffer,[In] D3DBACKBUFFER_TYPE Type,[Out] IDirect3DSurface9** ppBackBuffer) + IDirect3DDevice9::GetBackBuffer +
+ + +

Returns information describing the raster of the monitor on which the swap chain is presented.

+
+

An unsigned integer specifying the swap chain.

+

Pointer to a structure filled with information about the position or other status of the raster on the monitor driven by this adapter.

+ + bb174402 + HRESULT IDirect3DDevice9::GetRasterStatus([In] unsigned int iSwapChain,[Out] D3DRASTER_STATUS* pRasterStatus) + IDirect3DDevice9::GetRasterStatus +
+ + +

This method allows the use of GDI dialog boxes in full-screen mode applications.

+
+

TRUE to enable GDI dialog boxes, and to disable them.

+

If the method succeeds, the return value is . If the method fails, the return value can be unless all of the following are true.

  • The application specified a back buffer format compatible with GDI, in other words, one of , , or .
  • The application specified no multisampling.
  • The application specified .
  • The application specified .
  • The application did not specify .
  • The application is not between BeginScene and EndScene.
+ +

The GDI dialog boxes must be created as child to the device window. They should also be created within the same thread that created the device because this enables the parent window to manage redrawing the child window.

The method has no effect for windowed mode applications, but this setting will be respected if the application resets the device into full-screen mode. If SetDialogBoxMode succeeds in a windowed mode application, any subsequent reset to full-screen mode will be checked against the restrictions listed above. Also, SetDialogBoxMode causes all back buffers on the swap chain to be discarded, so an application is expected to refresh its content for all back buffers after this call.

+
+ + bb174432 + HRESULT IDirect3DDevice9::SetDialogBoxMode([In] BOOL bEnableDialogs) + IDirect3DDevice9::SetDialogBoxMode +
+ + +

Sets the gamma correction ramp for the implicit swap chain. This method will affect the entire screen (not just the active window if you are running in windowed mode).

+
+

Unsigned integer specifying the swap chain.

+

Indicates whether correction should be applied. Gamma correction results in a more consistent display, but can incur processing overhead and should not be used frequently. Short-duration effects, such as flashing the whole screen red, should not be calibrated, but long-duration gamma changes should be calibrated. One of the following values can be set:

ItemDescription

D3DSGR_CALIBRATE

If a gamma calibrator is installed, the ramp will be modified before being sent to the device to account for the system and monitor response curves. If a calibrator is not installed, the ramp will be passed directly to the device.

D3DSGR_NO_CALIBRATION

No gamma correction is applied. The supplied gamma table is transferred directly to the device.

?

+

Pointer to a structure, representing the gamma correction ramp to be set for the implicit swap chain.

+ +

There is always at least one swap chain (the implicit swap chain) for each device, because Direct3D 9 has one swap chain as a property of the device. The gamma ramp takes effect immediately; there is no wait for a vertical sync.

If the device does not support gamma ramps in the swap chain's current presentation mode (full-screen or windowed), no error return is given. Applications can check the and capability bits in the Caps2 member of the structure to determine the capabilities of the device and whether a calibrator is installed.

For windowed gamma correction presentation, use if the hardware supports the feature. In DirectX 8, SetGammaRamp will set the gamma ramp only on a full-screen mode application. For more information about gamma correction, see Gamma (Direct3D 9).

+
+ + bb174434 + void IDirect3DDevice9::SetGammaRamp([In] unsigned int iSwapChain,[In] unsigned int Flags,[In] const D3DGAMMARAMP* pRamp) + IDirect3DDevice9::SetGammaRamp +
+ + +

Retrieves the gamma correction ramp for the swap chain.

+
+

An unsigned integer specifying the swap chain.

+ + bb174390 + void IDirect3DDevice9::GetGammaRamp([In] unsigned int iSwapChain,[Out] D3DGAMMARAMP* pRamp) + IDirect3DDevice9::GetGammaRamp +
+ + +

Creates a texture resource.

+
+

Width of the top-level of the texture, in pixels. The pixel dimensions of subsequent levels will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by 2 results in 0, 1 will be taken instead.

+

Height of the top-level of the texture, in pixels. The pixel dimensions of subsequent levels will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by 2 results in 0, 1 will be taken instead.

+

Number of levels in the texture. If this is zero, Direct3D will generate all texture sublevels down to 1 by 1 pixels for hardware that supports mipmapped textures. Call to see the number of levels generated.

+

Usage can be 0, which indicates no usage value. However, if usage is desired, use a combination of one or more constants. It is good practice to match the usage parameter with the behavior flags in .

+

Member of the enumerated type, describing the format of all levels in the texture.

+

Member of the enumerated type, describing the memory class into which the texture should be placed.

+

Pointer to an interface, representing the created texture resource.

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ +

An application can discover support for Automatic Generation of Mipmaps (Direct3D 9) in a particular format by calling with . If returns , will succeed but it will return a one-level texture.

In Windows Vista CreateTexture can create a texture from a system memory reference allowing the application more flexibility over the use, allocation and deletion of the system memory. For example, an application could pass a GDI system memory bitmap reference and get a Direct3D texture interface around it. Using a system memory reference with CreateTexture has the following restrictions.

  • The pitch of the texture must be equal to the width multiplied by the number of bytes per pixel.
  • Only textures with a single mipmap level are supported. The Levels argument must be 1.
  • The Pool argument must be .
  • The pSharedHandle argument must be a valid reference to a buffer that can hold the system memory point; *pSharedHandle must be a valid reference to system memory with a size in bytes of texture width * texture height * bytes per pixel of the texture format.
+
+ + bb174363 + HRESULT IDirect3DDevice9::CreateTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DTexture9** ppTexture,[In] void** pSharedHandle) + IDirect3DDevice9::CreateTexture +
+ + +

Creates a volume texture resource.

+
+

Width of the top-level of the volume texture, in pixels. This value must be a power of two if the member of is set. The pixel dimensions of subsequent levels will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by two results in 0 (zero), 1 will be taken instead. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Height of the top-level of the volume texture, in pixels. This value must be a power of two if the member of is set. The pixel dimensions of subsequent levels will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by 2 results in 0 (zero), 1 will be taken instead. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Depth of the top-level of the volume texture, in pixels. This value must be a power of two if the member of is set. The pixel dimensions of subsequent levels will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by 2 results in 0 (zero), 1 will be taken instead. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Number of levels in the texture. If this is zero, Direct3D will generate all texture sublevels down to 1x1 pixels for hardware that supports mipmapped volume textures. Call to see the number of levels generated.

+

Usage can be 0, which indicates no usage value. If usage is desired, use or . For more information, see .

+

Member of the enumerated type, describing the format of all levels in the volume texture.

+

Member of the enumerated type, describing the memory class into which the volume texture should be placed.

+

Address of a reference to an interface, representing the created volume texture resource.

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ + bb174367 + HRESULT IDirect3DDevice9::CreateVolumeTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Depth,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DVolumeTexture9** ppVolumeTexture,[In] void** pSharedHandle) + IDirect3DDevice9::CreateVolumeTexture +
+ + +

Creates a cube texture resource.

+
+

Size of the edges of all the top-level faces of the cube texture. The pixel dimensions of subsequent levels of each face will be the truncated value of half of the previous level's pixel dimension (independently). Each dimension clamps at a size of 1 pixel. Thus, if the division by 2 results in 0 (zero), 1 will be taken instead.

+

Number of levels in each face of the cube texture. If this is zero, Direct3D will generate all cube texture sublevels down to 1x1 pixels for each face for hardware that supports mipmapped cube textures. Call to see the number of levels generated.

+

Usage can be 0, which indicates no usage value. However, if usage is desired, use a combination of one or more constants. It is good practice to match the usage parameter in CreateCubeTexture with the behavior flags in . For more information, see Remarks.

+

Member of the enumerated type, describing the format of all levels in all faces of the cube texture.

+

Member of the enumerated type, describing the memory class into which the cube texture should be placed.

+

Address of a reference to an interface, representing the created cube texture resource.

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ +

A mipmap (texture) is a collection of successively downsampled (mipmapped) surfaces. On the other hand, a cube texture (created by ) is a collection of six textures (mipmaps), one for each face. All faces must be present in the cube texture. Also, a cube map surface must be the same pixel size in all three dimensions (x, y, and z).

An application can discover support for Automatic Generation of Mipmaps (Direct3D 9) in a particular format by calling with . If returns , will succeed but it will return a one-level texture.

+
+ + bb174355 + HRESULT IDirect3DDevice9::CreateCubeTexture([In] unsigned int EdgeLength,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DCubeTexture9** ppCubeTexture,[In] void** pSharedHandle) + IDirect3DDevice9::CreateCubeTexture +
+ + +

Creates a vertex buffer.

+
+

Size of the vertex buffer, in bytes. For FVF vertex buffers, Length must be large enough to contain at least one vertex, but it need not be a multiple of the vertex size. Length is not validated for non-FVF buffers. See Remarks.

+

Usage can be 0, which indicates no usage value. However, if usage is desired, use a combination of one or more constants. It is good practice to match the usage parameter in CreateVertexBuffer with the behavior flags in . For more information, see Remarks.

+

Combination of , a usage specifier that describes the vertex format of the vertices in this buffer. If this parameter is set to a valid FVF code, the created vertex buffer is an FVF vertex buffer (see Remarks). Otherwise, if this parameter is set to zero, the vertex buffer is a non-FVF vertex buffer.

+

Member of the enumerated type, describing a valid memory class into which to place the resource. Do not set to .

+

Address of a reference to an interface, representing the created vertex buffer resource.

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ +

A vertex buffer can be used with either hardware or software vertex processing. This is determined by how the device and the vertex buffer are created.

When a device is created, CreateDevice uses the behavior flag to determine whether to process vertices in hardware or software. There are three possibilities:

  • Process vertices in hardware by setting .
  • Process vertices in software by setting .
  • Process vertices in either hardware or software by setting .

Mixed-mode devices might need to switch between software and hardware processing (using ) after the device is created.

When a vertex buffer is created, CreateVertexBuffer uses the usage parameter to decide whether to process vertices in hardware or software.

  • If CreateDevice uses , CreateVertexBuffer must use 0.
  • If CreateDevice uses , CreateVertexBuffer must use either 0 or . For either value, vertices will be processed in software.
  • If CreateDevice uses , CreateVertexBuffer can use either 0 or .

To use a vertex buffer with a mixed mode device, create a single vertex buffer which can be used for both hardware or software processing. Use to set the current vertex buffer and use , if necessary, to change the device behavior to match. It is recommended that the vertex buffer usage matches the device behavior. Note that a vertex buffer created for software processing cannot be located in video memory.

The interface supports rendering of primitives using vertex data stored in vertex buffer objects. Vertex buffers are created from the , and are usable only with the object from which they are created.

When set to a nonzero value, which must be a valid FVF code, the FVF parameter indicates that the buffer content is to be characterized by an FVF code. A vertex buffer that is created with an FVF code is referred to as an FVF vertex buffer. For more information, see FVF Vertex Buffers (Direct3D 9).

Non-FVF buffers can be used to interleave data during multipass rendering or multitexture rendering in a single pass. To do this, one buffer contains geometry data and the others contain texture coordinates for each texture to be rendered. When rendering, the buffer containing the geometry data is interleaved with each of the buffers containing the texture coordinates. If FVF buffers were used instead, each of them would need to contain identical geometry data in addition to the texture coordinate data specific to each texture rendered. This would result in either a speed or memory penalty, depending on the strategy used. For more information about texture coordinates, see Texture Coordinates (Direct3D 9).

+
+ + bb174364 + HRESULT IDirect3DDevice9::CreateVertexBuffer([In] unsigned int Length,[In] D3DUSAGE Usage,[In] D3DFVF FVF,[In] D3DPOOL Pool,[Out, Fast] IDirect3DVertexBuffer9** ppVertexBuffer,[In] void** pSharedHandle) + IDirect3DDevice9::CreateVertexBuffer +
+ + +

Creates an index buffer.

+
+

Size of the index buffer, in bytes.

+

Usage can be 0, which indicates no usage value. However, if usage is desired, use a combination of one or more constants. It is good practice to match the usage parameter in CreateIndexBuffer with the behavior flags in . For more information, see Remarks.

+

Member of the enumerated type, describing the format of the index buffer. For more information, see Remarks. The valid settings are the following:

ItemDescription

Indices are 16 bits each.

Indices are 32 bits each.

?

+

Member of the enumerated type, describing a valid memory class into which to place the resource.

+

Address of a reference to an interface, representing the created index buffer resource.

+

This parameter can be used in Direct3D?9 for Windows?Vista to share resources; set it to null to not share a resource. This parameter is not used in Direct3D?9 for operating systems earlier than Windows?Vista; set it to null.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

Index buffers are memory resources used to hold indices, they are similar to both surfaces and vertex buffers. The use of index buffers enables Direct3D to avoid unnecessary data copying and to place the buffer in the optimal memory type for the expected usage.

To use index buffers, create an index buffer, lock it, fill it with indices, unlock it, pass it to , set up the vertices, set up the vertex shader, and call for rendering.

The MaxVertexIndex member of the structure indicates the types of index buffers that are valid for rendering.

+
+ + bb174357 + HRESULT IDirect3DDevice9::CreateIndexBuffer([In] unsigned int Length,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DIndexBuffer9** ppIndexBuffer,[In] void** pSharedHandle) + IDirect3DDevice9::CreateIndexBuffer +
+ + +

Creates a render-target surface.

+
+

Width of the render-target surface, in pixels.

+

Height of the render-target surface, in pixels.

+

Member of the enumerated type, describing the format of the render target.

+

Member of the enumerated type, which describes the multisampling buffer type. This parameter specifies the antialiasing type for this render target. When this surface is passed to , its multisample type must be the same as that of the depth-stencil set by .

+

Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by . Passing a larger value returns the error, . The MultisampleQuality values of paired render targets, depth stencil surfaces, and the multisample type must all match.

+

Render targets are not lockable unless the application specifies TRUE for Lockable.

Note that lockable render targets reduce performance on some graphics hardware. The readback performance (moving data from video memory to system memory) depends on the type of hardware used (AGP vs. PCI Express) and is usually far lower than upload performance (moving data from system to video memory). If you need read access to render targets, use GetRenderTargetData instead of lockable render targets.

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

Address of a reference to an interface.

+ +

Render-target surfaces are placed in the memory class.

The creation of lockable, multisampled render targets is not supported.

+
+ + bb174361 + HRESULT IDirect3DDevice9::CreateRenderTarget([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Lockable,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + IDirect3DDevice9::CreateRenderTarget +
+ + +

Creates a depth-stencil resource.

+
+

Width of the depth-stencil surface, in pixels.

+

Height of the depth-stencil surface, in pixels.

+

Member of the enumerated type, describing the format of the depth-stencil surface. This value must be one of the enumerated depth-stencil formats for this device.

+

Member of the enumerated type, describing the multisampling buffer type. This value must be one of the allowed multisample types. When this surface is passed to , its multisample type must be the same as that of the render target set by .

+

Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by . Passing a larger value returns the error . The MultisampleQuality values of paired render targets, depth stencil surfaces, and the MultiSample type must all match.

+

Set this flag to TRUE to enable z-buffer discarding, and otherwise. If this flag is set, the contents of the depth stencil buffer will be invalid after calling either or with a different depth surface.

This flag has the same behavior as the constant, , in .

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

Address of a reference to an interface, representing the created depth-stencil surface resource.

+ +

The memory class of the depth-stencil buffer is always .

+
+ + bb174356 + HRESULT IDirect3DDevice9::CreateDepthStencilSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Discard,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + IDirect3DDevice9::CreateDepthStencilSurface +
+ + +

Copies rectangular subsets of pixels from one surface to another.

+
+

Pointer to an interface, representing the source surface. This parameter must point to a different surface than pDestinationSurface.

+

Pointer to a rectangle on the source surface. Specifying null for this parameter causes the entire surface to be copied.

+

Pointer to an interface, representing the destination surface.

+

Pointer to the upper left corner of the destination rectangle. Specifying null for this parameter causes the entire surface to be copied.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: .

+ +

This method is similar to CopyRects in DirectX 8.

This function has the following restrictions.

  • The source surface must have been created with .
  • The destination surface must have been created with .
  • Neither surface can be locked or holding an outstanding device context.
  • Neither surface can be created with multisampling. The only valid flag for both surfaces is .
  • The surface format cannot be a depth stencil format.
  • The source and dest rects must fit within the surface.
  • No stretching or shrinking is allowed (the rects must be the same size).
  • The source format must match the dest format.

The following table shows the supported combinations.

Dest formats
TextureRT textureRTOff-screen plain
Src formatsTextureYesYesYes*Yes
RT textureNoNoNoNo
RTNoNoNoNo
Off-screen plainYesYesYesYes

?

* If the driver does not support the requested copy, it will be emulated using lock and copy.

If the application needs to copy data from a render target to a surface, it can use GetRenderTargetData.

+
+ + bb205857 + HRESULT IDirect3DDevice9::UpdateSurface([In] IDirect3DSurface9* pSourceSurface,[In, Optional] const RECT* pSourceRect,[In] IDirect3DSurface9* pDestinationSurface,[In, Optional] const POINT* pDestPoint) + IDirect3DDevice9::UpdateSurface +
+ + +

Updates the dirty portions of a texture.

+
+

Pointer to an interface, representing the source texture. The source texture must be in system memory ().

+

Pointer to an interface, representing the destination texture. The destination texture must be in the memory pool.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

You can dirty a portion of a texture by locking it, or by calling one of the following methods.

retrieves the dirty portions of the texture by calculating what has been accumulated since the last update operation.

For performance reasons, dirty regions are only recorded for level zero of a texture. For sublevels, it is assumed that the corresponding (scaled) rectangle or box is also dirty. Dirty regions are automatically recorded when LockRect or is called without or . Also, the destination surface of is marked dirty.

This method fails if the textures are of different types, if their bottom-level buffers are of different sizes, or if their matching levels do not match. For example, consider a six-level source texture with the following dimensions.

 32x16, 16x8, 8x4, 4x2, 2x1, 1x1	
+            

This six-level source texture could be the source for the following one-level destination.

 1x1	
+            

For the following two-level destination.

 2x1, 1x1	
+            

Or, for the following three-level destination.

 4x2, 2x1, 1x1	
+            

In addition, this method will fail if the textures are of different formats. If the destination texture has fewer levels than the source, only the matching levels are copied. If the source texture has fewer levels than the destination, the method will fail.

If the source texture has dirty regions, the copy can be optimized by restricting the copy to only those regions. It is not guaranteed that only those bytes marked dirty will be copied.

Here are the possibilities for source and destination surface combinations:

  • If pSourceTexture is a non-autogenerated mipmap and pDestinationTexture is an autogenerated mipmap, only the topmost matching level is updated, and the destination sublevels are regenerated. All other source sublevels are ignored.
  • If both pSourceTexture and pDestinationTexture are autogenerated mipmaps, only the topmost matching level is updated. The sublevels from the source are ignored and the destination sublevels are regenerated.
  • If pSourceTexture is an autogenerated mipmap and pDestinationTexture a non-autogenerated mipmap, UpdateTexture will fail.
+
+ + bb205858 + HRESULT IDirect3DDevice9::UpdateTexture([In] IDirect3DBaseTexture9* pSourceTexture,[In] IDirect3DBaseTexture9* pDestinationTexture) + IDirect3DDevice9::UpdateTexture +
+ + +

Copies the render-target data from device memory to system memory.

+
+

Pointer to an object, representing a render target.

+

Pointer to an object, representing a destination surface.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , .

+ +

The destination surface must be either an off-screen plain surface or a level of a texture (mipmap or cube texture) created with .

The source surface must be a regular render target or a level of a render-target texture (mipmap or cube texture) created with POOL_DEFAULT.

This method will fail if:

  • The render target is multisampled.
  • The source render target is a different size than the destination surface.
  • The source render target and destination surface formats do not match.
+
+ + bb174405 + HRESULT IDirect3DDevice9::GetRenderTargetData([In] IDirect3DSurface9* pRenderTarget,[In] IDirect3DSurface9* pDestSurface) + IDirect3DDevice9::GetRenderTargetData +
+ + +

Generates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.

+
+

An unsigned integer specifying the swap chain.

+

Pointer to an interface that will receive a copy of the contents of the front buffer. The data is returned in successive rows with no intervening space, starting from the vertically highest row on the device's output to the lowest.

For windowed mode, the size of the destination surface should be the size of the desktop. For full-screen mode, the size of the destination surface should be the screen size.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , ,

+ +

The buffer pointed to by pDestSurface will be filled with a representation of the front buffer, converted to the standard 32 bits per pixel format .

This method is the only way to capture an antialiased screen shot.

This function is very slow, by design, and should not be used in any performance-critical path.

For more information, see Lost Devices and Retrieved Data.

+
+ + bb174388 + HRESULT IDirect3DDevice9::GetFrontBufferData([In] unsigned int iSwapChain,[In] IDirect3DSurface9* pDestSurface) + IDirect3DDevice9::GetFrontBufferData +
+ + +

Copy the contents of the source rectangle to the destination rectangle. The source rectangle can be stretched and filtered by the copy. This function is often used to change the aspect ratio of a video stream.

+
+

Pointer to the source surface. See .

+

Pointer to the source rectangle. A null for this parameter causes the entire source surface to be used.

+

Pointer to the destination surface. See .

+

Pointer to the destination rectangle. A null for this parameter causes the entire destination surface to be used.

+

Filter type. Allowable values are , , or . For more information, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

StretchRect Restrictions

  • Driver support varies. See the section on driver support (below) to see which drivers support which source and destination formats.
  • The source and destination surfaces must be created in the default memory pool.
  • If filtering is specified, you must set the appropriate filter caps (see StretchRectFilterCaps in ).
  • Stretching is not supported between source and destination rectangles on the same surface.
  • Stretching is not supported if the destination surface is an off-screen plain surface but the source is not.
  • You many not stretch between source and destination rectangles if either surface is in a compressed format (see Using Compressed Textures (Direct3D 9)).
  • Stretching supports color-space conversion from YUV to high-precision RGBA only. Since color conversion support is not supported by software emulation, use to test the hardware for color conversion support.
  • If the source or destination surface is a texture surface (or a cube texture surface), you must use a Direct3D 9 driver that supports (see ).

Additional Restrictions for Depth and Stencil Surfaces

  • The source and destination surfaces must be plain depth stencil surfaces (not textures) (see ).
  • Neither of the surfaces can be discardable.
  • The entire surface must be copied (that is: sub-rectangle copies are not allowed).
  • Format conversion, stretching, and shrinking are not supported.
  • StretchRect cannot be called inside of a BeginScene/EndScene pair.

Using StretchRect to downsample a Multisample Rendertarget

You can use StretchRect to copy from one rendertarget to another. If the source rendertarget is multisampled, this results in downsampling the source rendertarget. For instance you could:

  • Create a multisampled rendertarget.
  • Create a second rendertarget of the same size, that is not multisampled.
  • Copy (using StretchRect the multisample rendertarget to the second rendertarget.

Note that use of the extra surface involved in using StretchRect to downsample a Multisample Rendertarget will result in a performance hit.

Driver Support

There are many restrictions as to which surface combinations are valid for StretchRect. Factors include whether the driver is a Direct3D 9 driver or older, and whether the operation will result in stretching/shrinking. Since applications are not expected to recognize if the driver is a Direct3D 9 driver or not, the runtime will automatically set a new cap, cap (see ), for Direct3D 9-level drivers and above.

DirectX 8 Driver (no stretching)
Dest formats
TextureRT textureRTOff-screen plain
Src formatsTextureNoNoNoNo
RT textureNoYesYesNo
RTNoYesYesNo
Off-screen plainYesYesYesYes

?

DirectX 8 Driver (stretching)
Dest formats
TextureRT textureRTOff-screen plain
Src formatsTextureNoNoNoNo
RT textureNoNoNoNo
RTNoYesYesNo
Off-screen plainNoYesYesNo

?

Direct3D 9 Driver (no stretching)
Dest formats
TextureRT textureRTOff-screen plain
Src formatsTextureNoYesYesNo
RT textureNoYesYesNo
RTNoYesYesNo
Off-screen plainNoYesYesYes

?

Direct3D 9 Driver (stretching)
Dest formats
TextureRT textureRTOff-screen plain
Src formatsTextureNoYesYesNo
RT textureNoYesYesNo
RTNoYesYesNo
Off-screen plainNoYesYesNo

?

+
+ + bb174471 + HRESULT IDirect3DDevice9::StretchRect([In] IDirect3DSurface9* pSourceSurface,[In, Optional] const RECT* pSourceRect,[In] IDirect3DSurface9* pDestSurface,[In, Optional] const RECT* pDestRect,[In] D3DTEXTUREFILTERTYPE Filter) + IDirect3DDevice9::StretchRect +
+ + +

Allows an application to fill a rectangular area of a surface with a specified color.

+
+

Pointer to the surface to be filled.

+

Pointer to the source rectangle. Using null means that the entire surface will be filled.

+

Color used for filling.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method can only be applied to a render target, a render-target texture surface, or an off-screen plain surface with a pool type of .

will work with all formats. However, when using a reference or software device, the only formats supported are , , , , , , , , , , , , , , and .

When using a DirectX 7 or DirectX 8.x driver, the only YUV formats supported are and .

+
+ + bb174353 + HRESULT IDirect3DDevice9::ColorFill([In] IDirect3DSurface9* pSurface,[In, Optional] const RECT* pRect,[In] D3DCOLOR color) + IDirect3DDevice9::ColorFill +
+ + +

Create an off-screen surface.

+
+

Width of the surface.

+

Height of the surface.

+

Format of the surface. See .

+

Surface pool type. See .

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

Pointer to the interface created.

+ +

will return a surface that has identical characteristics to a surface created by the DirectX 8.x method CreateImageSurface.

is the appropriate pool for use with the and .

is not allowed when creating an offscreen plain surface. For more information about memory pools, see .

Off-screen plain surfaces are always lockable, regardless of their pool types.

+
+ + bb174358 + HRESULT IDirect3DDevice9::CreateOffscreenPlainSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + IDirect3DDevice9::CreateOffscreenPlainSurface +
+ + +

Sets a new color buffer for the device.

+
+

Index of the render target. See Remarks.

+

Pointer to a new color buffer. If null, the color buffer for the corresponding RenderTargetIndex is disabled. Devices always must be associated with a color buffer. The new render-target surface must have at least specified.

+

If the method succeeds, the return value is . This method will return if either:

  • pRenderTarget = null and RenderTargetIndex = 0
  • pRenderTarget is != null and the render target is invalid.
+ +

The device can support multiple render targets. The number of render targets supported by a device is contained in the NumSimultaneousRTs member of . See Multiple Render Targets (Direct3D 9).

Setting a new render target will cause the viewport (see Viewports and Clipping (Direct3D 9)) to be set to the full size of the new render target.

Some hardware tests the compatibility of the depth stencil buffer with the color buffer. If this is done, it is only done in a debug build.

Restrictions for using this method include the following:

  • The multisample type must be the same for the render target and the depth stencil surface.
  • The formats must be compatible for the render target and the depth stencil surface. See .
  • The size of the depth stencil surface must be greater than or equal to the size of the render target.

These restrictions are validated only when using the debug runtime when any of the Draw methods are called.

Cube textures differ from other surfaces in that they are collections of surfaces. To call with a cube texture, you must select an individual face using and pass the resulting surface to .

+
+ + bb174455 + HRESULT IDirect3DDevice9::SetRenderTarget([In] unsigned int RenderTargetIndex,[In] IDirect3DSurface9* pRenderTarget) + IDirect3DDevice9::SetRenderTarget +
+ + +

Retrieves a render-target surface.

+
+

Index of the render target. See Remarks.

+

Address of a reference to an interface, representing the returned render-target surface for this device.

+ +

Typically, methods that return state will not work on a device that is created using . This method however, will work even on a pure device because it returns an interface.

The device can now support multiple render targets. The number of render targets supported by a device is contained in the NumSimultaneousRTs member of . See Multiple Render Targets (Direct3D 9).

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using the interface results in a memory leak.

+
+ + bb174404 + HRESULT IDirect3DDevice9::GetRenderTarget([In] unsigned int RenderTargetIndex,[Out] IDirect3DSurface9** ppRenderTarget) + IDirect3DDevice9::GetRenderTarget +
+ + +

Sets the depth stencil surface.

+
+

Address of a reference to an interface representing the depth stencil surface. Setting this to null disables the depth stencil operation.

+

If the method succeeds, the return value is . If pZStencilSurface is other than null, the return value is when the stencil surface is invalid.

+ +

Restrictions for using this method include the following:

  • The multisample type must be the same for the render target and the depth stencil surface.
  • The formats must be compatible for the render target and the depth stencil surface. See .
  • The size of the depth stencil surface must be greater than or equal to the size of the render target.

These restrictions are validated only when using the debug runtime when any of the Draw methods are called.

Cube textures differ from other surfaces in that they are collections of surfaces. To call with a cube texture, you must select an individual face using and pass the resulting surface to .

+
+ + bb174431 + HRESULT IDirect3DDevice9::SetDepthStencilSurface([In] IDirect3DSurface9* pNewZStencil) + IDirect3DDevice9::SetDepthStencilSurface +
+ + +

Gets the depth-stencil surface owned by the Direct3DDevice object.

+
+

Address of a reference to an interface, representing the returned depth-stencil surface.

+

If the method succeeds, the return value is .If the device doesn't have a depth stencil buffer associated with it, the return value will be . Otherwise, if the method fails, the return value can be .

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174384 + HRESULT IDirect3DDevice9::GetDepthStencilSurface([Out] IDirect3DSurface9** ppZStencilSurface) + IDirect3DDevice9::GetDepthStencilSurface +
+ + +

Begins a scene.

+
+

If the method succeeds, the return value is . The method will fail with if is called while already in a / pair. This happens only when is called twice without first calling .

+ +

Applications must call before performing any rendering and must call when rendering is complete and before calling again.

If fails, the device was unable to begin the scene, and there is no need to call . In fact, calls to will fail if the previous failed. This applies to any application that creates multiple swap chains.

There should be one / pair between any successive calls to present (either or ). should be called once before any rendering is performed, and should be called once after all rendering for a frame has been submitted to the runtime. Multiple non-nested / pairs between calls to present are legal, but having more than one pair may incur a performance hit. To enable maximal parallelism between the CPU and the graphics accelerator, it is advantageous to call as far ahead of calling present as possible.

+
+ + bb174350 + HRESULT IDirect3DDevice9::BeginScene() + IDirect3DDevice9::BeginScene +
+ + +

Ends a scene that was begun by calling .

+
+

If the method succeeds, the return value is . The method will fail with if is called while already in a / pair. This happens only when is called twice without first calling .

+ +

When this method succeeds, the scene has been queued up for rendering by the driver. This is not a synchronous method, so the scene is not guaranteed to have completed rendering when this method returns.

Applications must call before performing any rendering and must call when rendering is complete and before calling again.

If fails, the device was unable to begin the scene, and there is no need to call . In fact, calls to will fail if the previous failed. This applies to any application that creates multiple swap chains.

There should be at most one / pair between any successive calls to present (either or ). should be called once before any rendering is performed, and should be called once after all rendering for a frame has been submitted to the runtime. To enable maximal parallelism between the CPU and the graphics accelerator, it is advantageous to call as far ahead of calling present as possible.

+
+ + bb174375 + HRESULT IDirect3DDevice9::EndScene() + IDirect3DDevice9::EndScene +
+ + +

Clears one or more surfaces such as a render target, multiple render targets, a stencil buffer, and a depth buffer.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

Use this method to clear a surface including: a render target, all render targets in an MRT, a stencil buffer, or a depth buffer. Flags determines how many surfaces are cleared. Use pRects to clear a subset of a surface defined by an array of rectangles.

will fail if you:

  • Try to clear either the depth buffer or the stencil buffer of a render target that does not have an attached depth buffer.
  • Try to clear the stencil buffer when the depth buffer does not contain stencil data.
+
+ + bb174352 + HRESULT IDirect3DDevice9::Clear([In] unsigned int Count,[In, Buffer, Optional] const D3DRECT* pRects,[In] D3DCLEAR Flags,[In] D3DCOLOR Color,[In] float Z,[In] unsigned int Stencil) + IDirect3DDevice9::Clear +
+ + +

Sets a single device transformation-related state.

+
+

Device-state variable that is being modified. This parameter can be any member of the enumerated type, or the D3DTS_WORLDMATRIX macro.

+

Pointer to a structure that modifies the current transformation.

+

If the method succeeds, the return value is . is returned if one of the arguments is invalid.

+ + bb174463 + HRESULT IDirect3DDevice9::SetTransform([In] int State,[In] const D3DMATRIX* pMatrix) + IDirect3DDevice9::SetTransform +
+ + +

Retrieves a matrix describing a transformation state.

+
+

Device state variable that is being modified. This parameter can be any member of the enumerated type, or the D3DTS_WORLDMATRIX macro.

+

Pointer to a structure, describing the returned transformation state.

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other flag values in .

+
+ + bb174414 + HRESULT IDirect3DDevice9::GetTransform([In] D3DTRANSFORMSTATETYPE State,[Out] D3DMATRIX* pMatrix) + IDirect3DDevice9::GetTransform +
+ + +

Multiplies a device's world, view, or projection matrices by a specified matrix.

+
+

Member of the enumerated type, or the D3DTS_WORLDMATRIX macro that identifies which device matrix is to be modified. The most common setting, D3DTS_WORLDMATRIX(0), modifies the world matrix, but you can specify that the method modify the view or projection matrices, if needed.

+

Pointer to a structure that modifies the current transformation.

+

If the method succeeds, the return value is . if one of the arguments is invalid.

+ +

The multiplication order is pMatrix times State.

An application might use the method to work with hierarchies of transformations. For example, the geometry and transformations describing an arm might be arranged in the following hierarchy.

 shoulder_transformation upper_arm geometry elbow transformation lower_arm geometry wrist transformation hand geometry	
+            

An application might use the following series of calls to render this hierarchy. Not all the parameters are shown in this pseudocode.

 (D3DTS_WORLDMATRIX(0),  shoulder_transform)	
+            (upper_arm)	
+            (D3DTS_WORLDMATRIX(0),  elbow_transform)	
+            (lower_arm)	
+            (D3DTS_WORLDMATRIX(0),  wrist_transform)	
+            (hand)
+
+ + bb174422 + HRESULT IDirect3DDevice9::MultiplyTransform([In] D3DTRANSFORMSTATETYPE arg0,[In] const D3DMATRIX* arg1) + IDirect3DDevice9::MultiplyTransform +
+ + +

Sets the viewport parameters for the device.

+
+

Pointer to a structure, specifying the viewport parameters to set.

+

If the method succeeds, the return value is . If the method fails, it will return . This will happen if pViewport is invalid, or if pViewport describes a region that cannot exist within the render target surface.

+ +

Direct3D sets the following default values for the viewport.

  vp;	
+            vp.X      = 0;	
+            vp.Y      = 0;	
+            vp.Width  = RenderTarget.Width;	
+            vp.Height = RenderTarget.Height;	
+            vp.MinZ   = 0.0f;	
+            vp.MaxZ   = 1.0f;	
+            

can be used to draw on part of the screen. Make sure to call it before any geometry is drawn so the viewport settings will take effect.

To draw multiple views within a scene, repeat the and draw geometry sequence for each view.

+
+ + bb174469 + HRESULT IDirect3DDevice9::SetViewport([In] const D3DVIEWPORT9* pViewport) + IDirect3DDevice9::SetViewport +
+ + +

Retrieves the viewport parameters currently set for the device.

+
+

Pointer to a structure, representing the returned viewport parameters.

+

If the method succeeds, the return value is . is returned if the pViewport parameter is invalid.

+ +

Typically, methods that return state will not work on a device that is created using . This method however, will work even on a pure device.

+
+ + bb174420 + HRESULT IDirect3DDevice9::GetViewport([Out] D3DVIEWPORT9* pViewport) + IDirect3DDevice9::GetViewport +
+ + +

Sets the material properties for the device.

+
+

Pointer to a structure, describing the material properties to set.

+

If the method succeeds, the return value is . if the pMaterial parameter is invalid.

+ + bb174437 + HRESULT IDirect3DDevice9::SetMaterial([In] const D3DMATERIAL9* pMaterial) + IDirect3DDevice9::SetMaterial +
+ + +

Retrieves the current material properties for the device.

+
+

Pointer to a structure to fill with the currently set material properties.

+

If the method succeeds, the return value is . if the pMaterial parameter is invalid.

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in .

+
+ + bb174394 + HRESULT IDirect3DDevice9::GetMaterial([Out] D3DMATERIAL9* pMaterial) + IDirect3DDevice9::GetMaterial +
+ + +

Assigns a set of lighting properties for this device.

+
+

Zero-based index of the set of lighting properties to set. If a set of lighting properties exists at this index, it is overwritten by the new properties specified in pLight.

+

Pointer to a structure, containing the lighting parameters to set.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Set light properties by preparing a structure and then calling the method. The method accepts the index at which the device should place the set of light properties to its internal list of light properties, and the address of a prepared structure that defines those properties. You can call with new information as needed to update the light's illumination properties.

The system allocates memory to accommodate a set of lighting properties each time you call the method with an index that has never been assigned properties. Applications can set a number of lights, with only a subset of the assigned lights enabled at a time. Check the MaxActiveLights member of the structure when you retrieve device capabilities to determine the maximum number of active lights supported by that device. If you no longer need a light, you can disable it or overwrite it with a new set of light properties.

The following example prepares and sets properties for a white point-light whose emitted light will not attenuate over distance.

 // Assume d3dDevice is a valid reference to an  interface.	
+             d3dLight;	
+               hr; // Initialize the structure.	
+            ZeroMemory(&d3dLight, sizeof(d3dLight)); // Set up a white point light.	
+            d3dLight.Type = ;	
+            d3dLight.Diffuse.r  = 1.0f;	
+            d3dLight.Diffuse.g  = 1.0f;	
+            d3dLight.Diffuse.b  = 1.0f;	
+            d3dLight.Ambient.r  = 1.0f;	
+            d3dLight.Ambient.g  = 1.0f;	
+            d3dLight.Ambient.b  = 1.0f;	
+            d3dLight.Specular.r = 1.0f;	
+            d3dLight.Specular.g = 1.0f;	
+            d3dLight.Specular.b = 1.0f; // Position it high in the scene and behind the user.	
+            // Remember, these coordinates are in world space, so	
+            // the user could be anywhere in world space, too. 	
+            // For the purposes of this example, assume the user	
+            // is at the origin of world space.	
+            d3dLight.Position.x = 0.0f;	
+            d3dLight.Position.y = 1000.0f;	
+            d3dLight.Position.z = -100.0f; // Don't attenuate.	
+            d3dLight.Attenuation0 = 1.0f; 	
+            d3dLight.Range        = 1000.0f; // Set the property information for the first light.	
+            hr = d3dDevice->SetLight(0, &d3dLight);	
+            if (SUCCEEDED(hr)) // Handle Success	
+            else // Handle failure	
+            

Enable a light source by calling the method for the device.

+
+ + bb174436 + HRESULT IDirect3DDevice9::SetLight([In] unsigned int Index,[In] const D3DLIGHT9* arg1) + IDirect3DDevice9::SetLight +
+ + +

Retrieves a set of lighting properties that this device uses.

+
+

Zero-based index of the lighting property set to retrieve. This method will fail if a lighting property has not been set for this index by calling the method.

+

Pointer to a structure that is filled with the retrieved lighting-parameter set.

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in .

Retrieve all the properties for an existing light source by calling the method for the device. When calling the method, pass the zero-based index of the light source for which the properties will be retrieved as the first parameter, and supply the address of a structure as the second parameter. The device fills the structure to describe the lighting properties it uses for the light source at that index.

 // Assume d3dDevice is a valid reference to an  interface.	
+             hr;	
+            D3DLight9 light; // Get the property information for the first light.	
+            hr = pd3dDevice->GetLight(0, &light);	
+            if (SUCCEEDED(hr)) // Handle Success	
+            else // Handle failure	
+            

If you supply an index outside the range of the light sources assigned in the device, the method fails, returning .

When you assign a set of light properties for a light source in a scene, the light source can be activated by calling the method for the device. New light sources are disabled by default. The method accepts two parameters. Set the first parameter to the zero-based index of the light source to be affected by the method, and set the second parameter to TRUE to enable the light or to disable it. The following code example illustrates the use of this method by enabling the first light source in the device's list of light source properties.

 // Assume d3dDevice is a valid reference to an  interface.	
+             hr; hr = pd3dDevice->LightEnable(0, TRUE);	
+            if (SUCCEEDED(hr)) // Handle Success	
+            else // Handle failure	
+            

Check the MaxActiveLights member of the structure when you retrieve device capabilities to determine the maximum number of active lights supported by that device.

If you enable or disable a light that has no properties that are set with , the method creates a light source with the properties listed in following table and enables or disables it.

+
+ + bb174392 + HRESULT IDirect3DDevice9::GetLight([In] unsigned int Index,[Out] D3DLIGHT9* arg1) + IDirect3DDevice9::GetLight +
+ + +

Enables or disables a set of lighting parameters within a device.

+
+

Zero-based index of the set of lighting parameters that are the target of this method.

+

Value that indicates if the set of lighting parameters are being enabled or disabled. Set this parameter to TRUE to enable lighting with the parameters at the specified index, or to disable it.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If a value for LightIndex is outside the range of the light property sets assigned within the device, the method creates a light source represented by a structure with the following properties and sets its enabled state to the value specified in bEnable.

MemberDefault
Type
Diffuse (R:1, G:1, B:1, A:0)
Specular (R:0, G:0, B:0, A:0)
Ambient (R:0, G:0, B:0, A:0)
Position (0, 0, 0)
Direction (0, 0, 1)
Range 0
Falloff 0
Attenuation0 0
Attenuation1 0
Attenuation2 0
Theta 0
Phi 0

?

+
+ + bb174421 + HRESULT IDirect3DDevice9::LightEnable([In] unsigned int Index,[In] BOOL Enable) + IDirect3DDevice9::LightEnable +
+ + +

Retrieves the activity status - enabled or disabled - for a set of lighting parameters within a device.

+
+

Zero-based index of the set of lighting parameters that are the target of this method.

+

Pointer to a variable to fill with the status of the specified lighting parameters. After the call, a nonzero value at this address indicates that the specified lighting parameters are enabled; a value of 0 indicates that they are disabled.

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in .

+
+ + bb174393 + HRESULT IDirect3DDevice9::GetLightEnable([In] unsigned int Index,[Out] BOOL* pEnable) + IDirect3DDevice9::GetLightEnable +
+ + +

Sets the coefficients of a user-defined clipping plane for the device.

+
+

Index of the clipping plane for which the plane equation coefficients are to be set.

+

Pointer to an address of a four-element array of values that represent the clipping plane coefficients to be set, in the form of the general plane equation. See Remarks.

+

If the method succeeds, the return value is . If the method fails, the return value is . This error indicates that the value in Index exceeds the maximum clipping plane index supported by the device or that the array at pPlane is not large enough to contain four floating-point values.

+ +

The coefficients that this method sets take the form of the general plane equation. If the values in the array at pPlane were labeled A, B, C, and D in the order that they appear in the array, they would fit into the general plane equation so that Ax + By + Cz + Dw = 0. A point with homogeneous coordinates (x, y, z, w) is visible in the half space of the plane if Ax + By + Cz + Dw >= 0. Points that exist behind the clipping plane are clipped from the scene.

When the fixed function pipeline is used the plane equations are assumed to be in world space. When the programmable pipeline is used the plane equations are assumed to be in the clipping space (the same space as output vertices).

This method does not enable the clipping plane equation being set. To enable a clipping plane, set the corresponding bit in the DWORD value applied to the render state.

+
+ + bb174426 + HRESULT IDirect3DDevice9::SetClipPlane([In] unsigned int Index,[In] const SHARPDX_VECTOR4* pPlane) + IDirect3DDevice9::SetClipPlane +
+ + +

Retrieves the coefficients of a user-defined clipping plane for the device.

+
+

Index of the clipping plane for which the plane equation coefficients are retrieved.

+

Pointer to a four-element array of values that represent the coefficients of the clipping plane in the form of the general plane equation. See Remarks.

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in ."

The coefficients that this method reports take the form of the general plane equation. If the values in the array at pPlane were labeled A, B, C, and D in the order that they appear in the array, they would fit into the general plane equation so that Ax + By + Cz + Dw = 0. A point with homogeneous coordinates (x, y, z, w) is visible in the half space of the plane if Ax + By + Cz + Dw >= 0. Points that exist on or behind the clipping plane are clipped from the scene.

The plane equation used by this method exists in world space and is set by a previous call to the method.

+
+ + bb174380 + HRESULT IDirect3DDevice9::GetClipPlane([In] unsigned int Index,[Out] float* pPlane) + IDirect3DDevice9::GetClipPlane +
+ + +

Sets a single device render-state parameter.

+
+

Device state variable that is being modified. This parameter can be any member of the enumerated type.

+

New value for the device render state to be set. The meaning of this parameter is dependent on the value specified for State. For example, if State were , the second parameter would be one member of the enumerated type.

+

If the method succeeds, the return value is . is returned if one of the arguments is invalid.

+ + bb174454 + HRESULT IDirect3DDevice9::SetRenderState([In] D3DRENDERSTATETYPE State,[In] unsigned int Value) + IDirect3DDevice9::SetRenderState +
+ + +

Retrieves a render-state value for a device.

+
+

Device state variable that is being queried. This parameter can be any member of the enumerated type.

+

Pointer to a variable that receives the value of the queried render state variable when the method returns.

+

If the method succeeds, the return value is . if one of the arguments is invalid.

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in ."

+
+ + bb174403 + HRESULT IDirect3DDevice9::GetRenderState([In] D3DRENDERSTATETYPE State,[In] void* pValue) + IDirect3DDevice9::GetRenderState +
+ + +

Creates a new state block that contains the values for all device states, vertex-related states, or pixel-related states.

+
+

Type of state data that the method should capture. This parameter can be set to a value defined in the enumerated type.

+

Pointer to a state block interface. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ +

Vertex-related device states typically refer to those states that affect how the system processes vertices. Pixel-related states generally refer to device states that affect how the system processes pixel or depth-buffer data during rasterization. Some states are contained in both groups.

Differences between Direct3D 9 and Direct3D 10:

In Direct3D 9, a state block contains state data, for the states it was requested to capture, when the object is created. To change the value of the state block, call or /. There is no state saved when a state block object is created in Direct3D 10.

?

+
+ + bb174362 + HRESULT IDirect3DDevice9::CreateStateBlock([In] D3DSTATEBLOCKTYPE Type,[Out, Fast] IDirect3DStateBlock9** ppSB) + IDirect3DDevice9::CreateStateBlock +
+ + +

Signals Direct3D to begin recording a device-state block.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Applications can ensure that all recorded states are valid by calling the method prior to calling this method.

The following methods can be recorded in a state block, after calling and before .

The ordering of state changes in a state block is not guaranteed. If the same state is specified multiple times in a state block, only the last value is used.

+
+ + bb174351 + HRESULT IDirect3DDevice9::BeginStateBlock() + IDirect3DDevice9::BeginStateBlock +
+ + +

Signals Direct3D to stop recording a device-state block and retrieve a reference to the state block interface.

+
+

Pointer to a state block interface. See .

+ + bb174376 + HRESULT IDirect3DDevice9::EndStateBlock([In] IDirect3DStateBlock9** ppSB) + IDirect3DDevice9::EndStateBlock +
+ + +

Sets the clip status.

+
+

Pointer to a structure, describing the clip status settings to be set.

+

If the method succeeds, the return value is . If one of the arguments is invalid, the return value is .

+ +

Clip status is used during software vertex processing. Therefore, this method is not supported on pure or nonpure hardware processing devices. For more information about pure devices, see .

When clipping is enabled during vertex processing (by , , or other drawing functions), Direct3D computes a clip code for every vertex. The clip code is a combination of D3DCS_* bits. When a vertex is outside a particular clipping plane, the corresponding bit is set in the clipping code. Direct3D maintains the clip status using , which has ClipUnion and ClipIntersection members. ClipUnion is a bitwise "OR" of all vertex clip codes and ClipIntersection is a bitwise "AND" of all vertex clip codes. Initial values are zero for ClipUnion and 0xFFFFFFFF for ClipIntersection. When is set to , ClipUnion and ClipIntersection are set to zero. Direct3D updates the clip status during drawing calls. To compute clip status for a particular object, set ClipUnion and ClipIntersection to their initial value and continue drawing.

Clip status is not updated by and because there is no software emulation for them.

+
+ + bb174427 + HRESULT IDirect3DDevice9::SetClipStatus([In] const D3DCLIPSTATUS9* pClipStatus) + IDirect3DDevice9::SetClipStatus +
+ + +

Retrieves the clip status.

+
+

Pointer to a structure that describes the clip status.

+

If the method succeeds, the return value is .

is returned if the argument is invalid.

+ +

When clipping is enabled during vertex processing (by , , or other drawing functions), Direct3D computes a clip code for every vertex. The clip code is a combination of D3DCS_* bits. When a vertex is outside a particular clipping plane, the corresponding bit is set in the clipping code. Direct3D maintains the clip status using , which has ClipUnion and ClipIntersection members. ClipUnion is a bitwise "OR" of all vertex clip codes and ClipIntersection is a bitwise "AND" of all vertex clip codes. Initial values are zero for ClipUnion and 0xFFFFFFFF for ClipIntersection. When is set to , ClipUnion and ClipIntersection are set to zero. Direct3D updates the clip status during drawing calls. To compute clip status for a particular object, set ClipUnion and ClipIntersection to their initial value and continue drawing.

Clip status is not updated by and because there is no software emulation for them.

Clip status is used during software vertex processing. Therefore, this method is not supported on pure or nonpure hardware processing devices. For more information about pure devices, see .

+
+ + bb174381 + HRESULT IDirect3DDevice9::GetClipStatus([Out] D3DCLIPSTATUS9* pClipStatus) + IDirect3DDevice9::GetClipStatus +
+ + +

Retrieves a texture assigned to a stage for a device.

+
+

Stage identifier of the texture to retrieve. Stage identifiers are zero-based.

+

Address of a reference to an interface, representing the returned texture.

+ +

Typically, methods that return state will not work on a device that is created using . This method however, will work even on a pure device because it returns an interface.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174412 + HRESULT IDirect3DDevice9::GetTexture([In] unsigned int Stage,[Out] IDirect3DBaseTexture9** ppTexture) + IDirect3DDevice9::GetTexture +
+ + +

Assigns a texture to a stage for a device.

+
+

Zero based sampler number. Textures are bound to samplers; samplers define sampling state such as the filtering mode and the address wrapping mode. Textures are referenced differently by the programmable and the fixed function pipeline:

  • Programmable shaders reference textures using the sampler number. The number of samplers available to a programmable shader is dependent on the shader version. For vertex shaders, see Sampler (Direct3D 9 asm-vs). For pixel shaders see Sampler (Direct3D 9 asm-ps).
  • The fixed function pipeline on the other hand, references textures by texture stage number. The maximum number of samplers is determined from two caps: MaxSimultaneousTextures and MaxTextureBlendStages of the structure.

There are two other special cases for stage/sampler numbers.

  • A special number called D3DDMAPSAMPLER is used for Displacement Mapping (Direct3D 9).
  • A programmable vertex shader uses a special number defined by a when accessing Vertex Textures in vs_3_0 (DirectX HLSL).
+

Pointer to an interface, representing the texture being set.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

SetTexture is not allowed if the texture is created with a pool type of . SetTexture is not allowed with a pool type of texture unless DevCaps is set with .

+
+ + bb174461 + HRESULT IDirect3DDevice9::SetTexture([In] unsigned int Stage,[In] IDirect3DBaseTexture9* pTexture) + IDirect3DDevice9::SetTexture +
+ + +

Retrieves a state value for an assigned texture.

+
+

Stage identifier of the texture for which the state is retrieved. Stage identifiers are zero-based. Devices can have up to eight set textures, so the maximum value allowed for Stage is 7.

+

Texture state to retrieve. This parameter can be any member of the enumerated type.

+

Pointer a variable to fill with the retrieved state value. The meaning of the retrieved value is determined by the Type parameter.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other flag values in ."

+
+ + bb174413 + HRESULT IDirect3DDevice9::GetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] void* pValue) + IDirect3DDevice9::GetTextureStageState +
+ + +

Sets the state value for the currently assigned texture.

+
+

Stage identifier of the texture for which the state value is set. Stage identifiers are zero-based. Devices can have up to eight set textures, so the maximum value allowed for Stage is 7.

+

Texture state to set. This parameter can be any member of the enumerated type.

+

State value to set. The meaning of this value is determined by the Type parameter.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174462 + HRESULT IDirect3DDevice9::SetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] unsigned int Value) + IDirect3DDevice9::SetTextureStageState +
+ + +

Gets the sampler state value.

+
+

The sampler stage index.

+

This parameter can be any member of the enumerated type.

+

State value to get. The meaning of this value is determined by the Type parameter.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in ."

+
+ + bb174406 + HRESULT IDirect3DDevice9::GetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] void* pValue) + IDirect3DDevice9::GetSamplerState +
+ + +

Sets the sampler state value.

+
+

The sampler stage index. For more info about sampler stage, see Sampling Stage Registers in vs_3_0 (DirectX HLSL).

+

This parameter can be any member of the enumerated type.

+

State value to set. The meaning of this value is determined by the Type parameter.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174456 + HRESULT IDirect3DDevice9::SetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] unsigned int Value) + IDirect3DDevice9::SetSamplerState +
+ + +

Reports the device's ability to render the current texture-blending operations and arguments in a single pass.

+
+

Pointer to a DWORD value to fill with the number of rendering passes needed to complete the desired effect through multipass rendering.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , , , , , , , , , , ,.

+ +

The method should be used to validate scenarios only when other capabilities are deficient. For example, in a multistage texturing scenario, you could query the MaxTextureBlendStages and MaxSimultaneousTextures members of a structure to determine if multistage texturing is possible on the device.

Current hardware does not necessarily implement all possible combinations of operations and arguments. You can determine whether a particular blending operation can be performed with given arguments by setting the desired blending operation, and then calling the method.

The method uses the current render states, textures, and texture-stage states to perform validation at the time of the call. Changes to these factors after the call invalidate the previous result, and the method must be called again before rendering a scene.

For best performance, call at initialization time; do not use it within a render loop.

Using diffuse iterated values, either as an argument or as an operation (D3DTA_DIFFUSED3DTOP_BLENDDIFFUSEALPHA) is rarely supported on current hardware. Most hardware can introduce iterated color data only at the last texture operation stage.

Try to specify the texture () for each stage as the first argument, rather than the second argument.

Many cards do not support use of diffuse or scalar values at arbitrary texture stages. Often, these are available only at the first or last texture-blending stage.

Many cards do not have a blending unit associated with the first texture that is capable of more than replicating alpha to color channels or inverting the input. Therefore, your application might need to use only the second texture stage, if possible. On such hardware, the first unit is presumed to be in its default state, which has the first color argument set to with the operation.

Operations on the output alpha that are more intricate than or substantially different from the color operations are less likely to be supported.

Some hardware does not support simultaneous use of and .

Many cards do not support simultaneous use of multiple textures and mipmapped trilinear filtering. If trilinear filtering has been requested for a texture involved in multitexture blending operations and validation fails, turn off trilinear filtering and revalidate. In this case, you might want to perform multipass rendering instead.

+
+ + bb205859 + HRESULT IDirect3DDevice9::ValidateDevice([In] unsigned int* pNumPasses) + IDirect3DDevice9::ValidateDevice +
+ + +

Sets palette entries.

+
+

An ordinal value identifying the particular palette upon which the operation is to be performed.

+

Pointer to a structure, representing the palette entries to set. The number of structures pointed to by pEntries is assumed to be 256. See Remarks.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For Direct3D 9 applications, any palette sent to this method must conform to the capability bit of the structure. If is not set, every entry in the palette must have alpha set to 1.0 or this method will fail with . If is set, then any set of alpha values are allowed. Note that the debug runtime will print a warning message if all palette entries have alpha set to 0.

A single logical palette is associated with the device, and is shared by all texture stages.

+
+ + bb174439 + HRESULT IDirect3DDevice9::SetPaletteEntries([In] unsigned int PaletteNumber,[In, Buffer] const PALETTEENTRY* pEntries) + IDirect3DDevice9::SetPaletteEntries +
+ + +

Retrieves palette entries.

+
+

An ordinal value identifying the particular palette to retrieve.

+

Pointer to a structure, representing the returned palette entries.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For more information about , see the Platform SDK.

Note??As of Direct3D 9, the peFlags member of the structure does not work the way it is documented in the Platform SDK. The peFlags member is now the alpha channel for 8-bit palettized formats.

+
+ + bb174397 + HRESULT IDirect3DDevice9::GetPaletteEntries([In] unsigned int PaletteNumber,[In, Buffer] PALETTEENTRY* pEntries) + IDirect3DDevice9::GetPaletteEntries +
+ + +

Sets the current texture palette.

+
+

Value that specifies the texture palette to set as the current texture palette.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A single logical palette is associated with the device, and is shared by all texture stages.

+
+ + bb174428 + HRESULT IDirect3DDevice9::SetCurrentTexturePalette([In] unsigned int PaletteNumber) + IDirect3DDevice9::SetCurrentTexturePalette +
+ + +

Retrieves the current texture palette.

+
+

Pointer to a returned value that identifies the current texture palette.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ + bb174383 + HRESULT IDirect3DDevice9::GetCurrentTexturePalette([Out] unsigned int* PaletteNumber) + IDirect3DDevice9::GetCurrentTexturePalette +
+ + +

Sets the scissor rectangle.

+
+

Pointer to a structure that defines the rendering area within the render target if scissor test is enabled. This parameter may not be null.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The scissor rectangle is used as a rectangular clipping region.

See Rectangles (Direct3D 9) for further information on the use of rectangles in DirectX.

+
+ + bb174457 + HRESULT IDirect3DDevice9::SetScissorRect([In] const RECT* pRect) + IDirect3DDevice9::SetScissorRect +
+ + +

Gets the scissor rectangle.

+
+

Returns a reference to a structure that defines the rendering area within the render target if scissor test is enabled.

+

If the method succeeds, the return value is . If the method fails, the return value can be the following: .

+ +

The scissor rectangle is used as a rectangular clipping region.

See Rectangles (Direct3D 9) for further information on the use of rectangles in DirectX.

+
+ + bb174407 + HRESULT IDirect3DDevice9::GetScissorRect([Out] RECT* pRect) + IDirect3DDevice9::GetScissorRect +
+ + +

Use this method to switch between software and hardware vertex processing.

+
+

TRUE to specify software vertex processing; to specify hardware vertex processing.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The restrictions for changing modes are as follows:

  • If a device is created with , the vertex processing will be done in software and cannot be changed.
  • If a device is created with , the vertex processing will be done in hardware and cannot be changed.
  • If a device is created with , the vertex processing will be done in hardware by default. The processing can be switched to software (or back to hardware) using .

An application can create a mixed-mode device to use both the software vertex processing and the hardware vertex processing. To switch between the two vertex processing modes in DirectX 8.x, use IDirect3DDevice8::SetRenderState with the render state D3DRS_SOFTWAREVERTEXPROCESSING and the appropriate DWORD argument. The drawback of the render state approach was the difficulty in defining the semantics for state blocks. Applications and the runtime had to do extra work and be careful while recording and playing back state blocks.

In Direct3D 9, use SetSoftwareVertexProcessing instead. This new API is not recorded by StateBlocks.

+
+ + bb174458 + HRESULT IDirect3DDevice9::SetSoftwareVertexProcessing([In] BOOL bSoftware) + IDirect3DDevice9::SetSoftwareVertexProcessing +
+ + +

Gets the vertex processing (hardware or software) mode.

+
+

Returns TRUE if software vertex processing is set. Otherwise, it returns .

+ +

An application can create a mixed-mode device to use both the software vertex processing and the hardware vertex processing. To switch between the two vertex processing modes in DirectX 8.x, use with the render state D3DRS_SOFTWAREVERTEXPROCESSING and the appropriate argument. The drawback of the render state approach was the difficulty in defining the semantics for state blocks. Applications and the runtime had to do extra work and be careful while recording and playing back state blocks.

In Direct3D 9, use instead. This new API is not recorded by StateBlocks.

+
+ + bb174408 + BOOL IDirect3DDevice9::GetSoftwareVertexProcessing() + IDirect3DDevice9::GetSoftwareVertexProcessing +
+ + +

Enable or disable N-patches.

+
+

Specifies the number of subdivision segments. If the number of segments is less than 1.0, N-patches are disabled. The default value is 0.0.

+

If the method succeeds, the return value is .

+ + bb174438 + HRESULT IDirect3DDevice9::SetNPatchMode([In] float nSegments) + IDirect3DDevice9::SetNPatchMode +
+ + +

Gets the N-patch mode segments.

+
+

Specifies the number of subdivision segments. If the number of segments is less than 1.0, N-patches are disabled. The default value is 0.0.

+ + bb174395 + float IDirect3DDevice9::GetNPatchMode() + IDirect3DDevice9::GetNPatchMode +
+ + +

Renders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.

+
+

Member of the enumerated type, describing the type of primitive to render.

+

Index of the first vertex to load. Beginning at StartVertex the correct number of vertices will be read out of the vertex buffer.

+

Number of primitives to render. The maximum number of primitives allowed is determined by checking the MaxPrimitiveCount member of the structure. PrimitiveCount is the number of primitives as determined by the primitive type. If it is a line list, each primitive has two vertices. If it is a triangle list, each primitive has three vertices.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

When converting a legacy application to Direct3D 9, you must add a call to either to use the fixed function pipeline, or to use a vertex shader before you make any Draw calls.

+
+ + bb174371 + HRESULT IDirect3DDevice9::DrawPrimitive([In] D3DPRIMITIVETYPE PrimitiveType,[In] unsigned int StartVertex,[In] unsigned int PrimitiveCount) + IDirect3DDevice9::DrawPrimitive +
+ + +

Based on indexing, renders the specified geometric primitive into an array of vertices.

+
+

Member of the enumerated type, describing the type of primitive to render. is not supported with this method. See Remarks.

+

Offset from the start of the vertex buffer to the first vertex. See Scenario 4.

+

Minimum vertex index for vertices used during this call. This is a zero based index relative to BaseVertexIndex.

+

Number of vertices used during this call. The first vertex is located at index: BaseVertexIndex + MinIndex.

+

Index of the first index to use when accesssing the vertex buffer. Beginning at StartIndex to index vertices from the vertex buffer.

+

Number of primitives to render. The number of vertices used is a function of the primitive count and the primitive type. The maximum number of primitives allowed is determined by checking the MaxPrimitiveCount member of the structure.

+

If the method succeeds, the return value is . If the method fails, the return value can be the following: .

+ +

This method draws indexed primitives from the current set of data input streams. MinIndex and all the indices in the index stream are relative to the BaseVertexIndex.

The MinIndex and NumVertices parameters specify the range of vertex indices used for each call. These are used to optimize vertex processing of indexed primitives by processing a sequential range of vertices prior to indexing into these vertices. It is invalid for any indices used during this call to reference any vertices outside of this range.

fails if no index array is set.

The member of the enumerated type is not supported and is not a valid type for this method.

When converting a legacy application to Direct3D 9, you must add a call to either to use the fixed function pipeline, or to use a vertex shader before you make any Draw calls.

+
+ + bb174369 + HRESULT IDirect3DDevice9::DrawIndexedPrimitive([In] D3DPRIMITIVETYPE arg0,[In] int BaseVertexIndex,[In] unsigned int MinVertexIndex,[In] unsigned int NumVertices,[In] unsigned int startIndex,[In] unsigned int primCount) + IDirect3DDevice9::DrawIndexedPrimitive +
+ + +

Renders data specified by a user memory reference as a sequence of geometric primitives of the specified type.

+
+

Member of the enumerated type, describing the type of primitive to render.

+

Number of primitives to render. The maximum number of primitives allowed is determined by checking the MaxPrimitiveCount member of the structure.

+

User memory reference to the vertex data.

+

The number of bytes of data for each vertex. This value may not be 0.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

This method is intended for use in applications that are unable to store their vertex data in vertex buffers. This method supports only a single vertex stream. The effect of this call is to use the provided vertex data reference and stride for vertex stream 0. It is invalid to have the declaration of the current vertex shader refer to vertex streams other than stream 0.

Following any call, the stream 0 settings, referenced by , are set to null.

The vertex data passed to does not need to persist after the call. Direct3D completes its access to that data prior to returning from the call.

When converting a legacy application to Direct3D 9, you must add a call to either to use the fixed function pipeline, or to use a vertex shader before you make any Draw calls.

+
+ + bb174372 + HRESULT IDirect3DDevice9::DrawPrimitiveUP([In] D3DPRIMITIVETYPE PrimitiveType,[In] unsigned int PrimitiveCount,[In] const void* pVertexStreamZeroData,[In] unsigned int VertexStreamZeroStride) + IDirect3DDevice9::DrawPrimitiveUP +
+ + +

Renders the specified geometric primitive with data specified by a user memory reference.

+
+

Member of the enumerated type, describing the type of primitive to render.

+

Minimum vertex index. This is a zero-based index.

+

Number of vertices used during this call. The first vertex is located at index: MinVertexIndex.

+

Number of primitives to render. The maximum number of primitives allowed is determined by checking the MaxPrimitiveCount member of the structure (the number of indices is a function of the primitive count and the primitive type).

+

User memory reference to the index data.

+

Member of the enumerated type, describing the format of the index data. The valid settings are either:

+

User memory reference to the vertex data. The vertex data must be in stream 0.

+

The number of bytes of data for each vertex. This value may not be 0.

+

If the method succeeds, the return value is . If the method fails, the return value can be the following: .

+ +

This method is intended for use in applications that are unable to store their vertex data in vertex buffers. This method supports only a single vertex stream, which must be declared as stream 0.

Following any call, the stream 0 settings, referenced by , are set to null. Also, the index buffer setting for is set to null.

The vertex data passed to does not need to persist after the call. Direct3D completes its access to that data prior to returning from the call.

When converting a legacy application to Direct3D 9, you must add a call to either to use the fixed function pipeline, or to use a vertex shader before you make any Draw calls.

+
+ + bb174370 + HRESULT IDirect3DDevice9::DrawIndexedPrimitiveUP([In] D3DPRIMITIVETYPE PrimitiveType,[In] unsigned int MinVertexIndex,[In] unsigned int NumVertices,[In] unsigned int PrimitiveCount,[In] const void* pIndexData,[In] D3DFORMAT IndexDataFormat,[In] const void* pVertexStreamZeroData,[In] unsigned int VertexStreamZeroStride) + IDirect3DDevice9::DrawIndexedPrimitiveUP +
+ + +

Applies the vertex processing defined by the vertex shader to the set of input data streams, generating a single stream of interleaved vertex data to the destination vertex buffer.

+
+

Index of first vertex to load.

+

Index of first vertex in the destination vertex buffer into which the results are placed.

+

Number of vertices to process.

+

Pointer to an interface, the destination vertex buffer representing the stream of interleaved vertex data.

+

Pointer to an interface that represents the output vertex data declaration. When vertex shader 3.0 or above is set as the current vertex shader, the output vertex declaration must be present.

+

Processing options. Set this parameter to 0 for default processing. Set to D3DPV_DONOTCOPYDATA to prevent the system from copying vertex data not affected by the vertex operation into the destination buffer. The D3DPV_DONOTCOPYDATA value may be combined with one or more values appropriate for the destination buffer.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The order of operations for this method is as follows:

  • Transform vertices to projection space using the world + view + projection matrix.
  • Compute screen coordinates using viewport settings.
  • If clipping is enabled, compute clipping codes and store them in an internal buffer, associated with the destination vertex buffer. If a vertex is inside the viewing frustum, its screen coordinates are computed. If the vertex is outside the viewing frustum, the vertex is stored in the destination vertex buffer in projection space coordinates.
  • Other notes: The user does not have access to the internal clip code buffer. No clipping is done on triangles or any other primitives.

The destination vertex buffer, pDestBuffer, must be created with a nonzero FVF parameter in . The FVF code specified during the call to the method specifies the vertex elements present in the destination vertex buffer.

When Direct3D generates texture coordinates, or copies or transforms input texture coordinates, and the output texture coordinate format defines more texture coordinate components than Direct3D generates, Direct3D does not change these extra components.

+
+ + bb174424 + HRESULT IDirect3DDevice9::ProcessVertices([In] unsigned int SrcStartIndex,[In] unsigned int DestIndex,[In] unsigned int VertexCount,[In] IDirect3DVertexBuffer9* pDestBuffer,[In] IDirect3DVertexDeclaration9* pVertexDecl,[In] D3DLOCK Flags) + IDirect3DDevice9::ProcessVertices +
+ + +

Create a vertex shader declaration from the device and the vertex elements.

+
+

An array of vertex elements.

+

Pointer to an reference that returns the created vertex shader declaration.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

See the Vertex Declaration (Direct3D 9) page for a detailed description of how to map vertex declarations between different versions of DirectX.

+
+ + bb174365 + HRESULT IDirect3DDevice9::CreateVertexDeclaration([In, Buffer] const D3DVERTEXELEMENT9* pVertexElements,[Out, Fast] IDirect3DVertexDeclaration9** ppDecl) + IDirect3DDevice9::CreateVertexDeclaration +
+ + +

Sets a Vertex Declaration (Direct3D 9).

+
+ No documentation. +

If the method succeeds, the return value is . The return value can be .

+ +

A vertex declaration is an object that defines the data members of a vertex (i.e. texture coordinates, colors, normals, etc.). This data can be useful for implementing vertex shaders and pixel shaders.

+
+ + bb174464 + HRESULT IDirect3DDevice9::SetVertexDeclaration([In] IDirect3DVertexDeclaration9* pDecl) + IDirect3DDevice9::SetVertexDeclaration +
+ + +

Gets a vertex shader declaration.

+
+

Pointer to an object that is returned.

+

If the method succeeds, the return value is . The return value can be .

+ + bb174415 + HRESULT IDirect3DDevice9::GetVertexDeclaration([Out] IDirect3DVertexDeclaration9** ppDecl) + IDirect3DDevice9::GetVertexDeclaration +
+ + +

Sets the current vertex stream declaration.

+
+

DWORD containing the fixed function vertex type. For more information, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

Here are the steps necessary to initialize and use vertices that have a position, diffuse and specular color, and texture coordinates:

  1. Define the custom vertex type and FVF code.
     struct LVertex	
    +            { FLOAT    x, y, z;  specular, diffuse; FLOAT    tu, tv;	
    +            }; const DWORD VertexFVF = ( |  |  |  );	
    +            
  2. Create a vertex buffer with enough room for four vertices using .
     g_d3dDevice->CreateVertexBuffer( 4*sizeof(LVertex),   , VertexFVF, , &pBigSquareVB, null );	
    +            
  3. Set the values for each vertex.
     LVertex * v;	
    +            pBigSquareVB->Lock( 0, 0, (BYTE**)&v, 0 ); v[0].x  = 0.0f;  v[0].y  = 10.0;  v[0].z  = 10.0f;	
    +            v[0].diffuse  = 0xffff0000;	
    +            v[0].specular = 0xff00ff00;	
    +            v[0].tu = 0.0f;  v[0].tv = 0.0f; v[1].x  = 0.0f;  v[1].y  = 0.0f;  v[1].z  = 10.0f;	
    +            v[1].diffuse  = 0xff00ff00;	
    +            v[1].specular = 0xff00ffff;	
    +            v[1].tu = 0.0f;  v[1].tv = 0.0f; v[2].x  = 10.0f; v[2].y  = 10.0f; v[2].z  = 10.0f;	
    +            v[2].diffuse  = 0xffff00ff;	
    +            v[2].specular = 0xff000000;	
    +            v[2].tu = 0.0f;  v[2].tv = 0.0f; v[3].x  = 0.0f; v[3].y  = 10.0f;  v[3].z = 10.0f;	
    +            v[3].diffuse  = 0xffffff00;	
    +            v[3].specular = 0xffff0000;	
    +            v[3].tu = 0.0f; v[3].tv = 0.0f; pBigSquareVB->Unlock();	
    +            
  4. The vertex buffer has been initialized and is ready to render. The following code example shows how to use the legacy FVF to draw a square.
     g_d3dDevice->SetFVF(VertexFVF);	
    +            g_d3dDevice->SetStreamSource(0, pBigSquareVB, 0, sizeof(LVertex));	
    +            g_d3dDevice->DrawPrimitive(, 0 ,2);	
    +            

Here are the steps necessary to initialize and use vertices that have a position, a normal, and texture coordinates:

  1. Define the custom vertex type and FVF code.
     struct Vertex	
    +            { FLOAT x, y, z; FLOAT nx, ny, nz; FLOAT tu, tv;	
    +            }; const DWORD VertexFVF = (  |  |  );	
    +            
  2. Create a vertex buffer with enough room for four vertices using (similar to the example above).
  3. Set the values for each vertex.
     Vertex * v;	
    +            pBigSquareVB->Lock(0, 0, (BYTE**)&v, 0); v[0].x  = 0.0f;  v[0].y  = 10.0;  v[0].z  = 10.0f;	
    +            v[0].nx = 0.0f;  v[0].ny = 1.0f;  v[0].nz = 0.0f;	
    +            v[0].tu = 0.0f;  v[0].tv = 0.0f; v[1].x  = 0.0f;  v[1].y  = 0.0f;  v[1].z  = 10.0f;	
    +            v[1].nx = 0.0f;  v[1].ny = 1.0f;  v[1].nz = 0.0f;	
    +            v[1].tu = 0.0f;  v[1].tv = 0.0f; v[2].x  = 10.0f; v[2].y  = 10.0f; v[2].z  = 10.0f;	
    +            v[2].nx = 0.0f;  v[2].ny = 1.0f;  v[2].nz = 0.0f;	
    +            v[2].tu = 0.0f;  v[2].tv = 0.0f; v[3].x  = 0.0f; v[3].y  = 10.0f;  v[3].z = 10.0f;	
    +            v[3].nx = 0.0f; v[3].ny = 1.0f;   v[3].nz = 0.0f;	
    +            v[3].tu = 0.0f; v[3].tv = 0.0f; pBigSquareVB->Unlock();	
    +            
  4. Draw the object (similar to the example above).
+
+ + bb174433 + HRESULT IDirect3DDevice9::SetFVF([In] D3DFVF FVF) + IDirect3DDevice9::SetFVF +
+ + +

Gets the fixed vertex function declaration.

+
+

A DWORD reference to the fixed function vertex type. For more information, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The fixed vertex function declaration is a set of FVF flags that determine how vertices processed by the fixed function pipeline will be used.

+
+ + bb174389 + HRESULT IDirect3DDevice9::GetFVF([Out] D3DFVF* pFVF) + IDirect3DDevice9::GetFVF +
+ + +

Creates a vertex shader.

+
+

Pointer to an array of tokens that represents the vertex shader, including any embedded debug and symbol table information.

  • Use a function such as to create the array from a HLSL shader.
  • Use a function like to create the token array from an assembly language shader.
  • Use a function like to create the array from an effect.
+

Pointer to the returned vertex shader interface (see ).

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ +

When a device is created, uses the behavior flag to determine whether to process vertices in hardware or software. There are three possibilities:

  • Process vertices in hardware by setting .
  • Process vertices in software by setting .
  • Process vertices in either hardware or software by setting . To switch a mixed-mode device between software and hardware processing, use .

For an example using , see HLSLwithoutEffects Sample.

+
+ + bb174366 + HRESULT IDirect3DDevice9::CreateVertexShader([In] const void* pFunction,[Out, Fast] IDirect3DVertexShader9** ppShader) + IDirect3DDevice9::CreateVertexShader +
+ + +

Sets the vertex shader.

+
+

Vertex shader interface. For more information, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

To set a fixed-function vertex shader (after having set a programmable vertex shader), call (null) to release the programmable shader, and then call with the fixed-function vertex format.

+
+ + bb174465 + HRESULT IDirect3DDevice9::SetVertexShader([In] IDirect3DVertexShader9* pShader) + IDirect3DDevice9::SetVertexShader +
+ + +

Retrieves the currently set vertex shader.

+
+

Pointer to a vertex shader interface.

+

If the method succeeds, the return value is . If ppShader is invalid, is returned.

+ +

Typically, methods that return state will not work on a device that is created using . This method however, will work even on a pure device because it returns an interface.

+
+ + bb174416 + HRESULT IDirect3DDevice9::GetVertexShader([Out] IDirect3DVertexShader9** ppShader) + IDirect3DDevice9::GetVertexShader +
+ + +

Sets a floating-point vertex shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four float vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174467 + HRESULT IDirect3DDevice9::SetVertexShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + IDirect3DDevice9::SetVertexShaderConstantF +
+ + +

Gets a floating-point vertex shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four float vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174418 + HRESULT IDirect3DDevice9::GetVertexShaderConstantF([In] unsigned int StartRegister,[In, Buffer] float* pConstantData,[In] unsigned int Vector4fCount) + IDirect3DDevice9::GetVertexShaderConstantF +
+ + +

Sets an integer vertex shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four integer vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174468 + HRESULT IDirect3DDevice9::SetVertexShaderConstantI([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4iCount) + IDirect3DDevice9::SetVertexShaderConstantI +
+ + +

Gets an integer vertex shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four integer vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174419 + HRESULT IDirect3DDevice9::GetVertexShaderConstantI([In] unsigned int StartRegister,[In, Buffer] int* pConstantData,[In] unsigned int Vector4iCount) + IDirect3DDevice9::GetVertexShaderConstantI +
+ + +

Sets a Boolean vertex shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of boolean values in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174466 + HRESULT IDirect3DDevice9::SetVertexShaderConstantB([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int BoolCount) + IDirect3DDevice9::SetVertexShaderConstantB +
+ + +

Gets a Boolean vertex shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of Boolean values in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174417 + HRESULT IDirect3DDevice9::GetVertexShaderConstantB([In] unsigned int StartRegister,[In] void* pConstantData,[In] unsigned int BoolCount) + IDirect3DDevice9::GetVertexShaderConstantB +
+ + +

Binds a vertex buffer to a device data stream. For more information, see Setting the Stream Source (Direct3D 9).

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

When a FVF vertex shader is used, the stride of the vertex stream must match the vertex size, computed from the FVF. When a declaration is used, the stride should be greater than or equal to the stream size computed from the declaration.

When calling SetStreamSource, the stride is normally required to be equal to the vertex size. However, there are times when you may want to draw multiple instances of the same or similar geometry (such as when using instancing to draw). For this case, use a zero stride to tell the runtime not to increment the vertex buffer offset (ie: use the same vertex data for all instances). For more information about instancing, see Efficiently Drawing Multiple Instances of Geometry (Direct3D 9).

+
+ + bb174459 + HRESULT IDirect3DDevice9::SetStreamSource([In] unsigned int StreamNumber,[In] IDirect3DVertexBuffer9* pStreamData,[In] unsigned int OffsetInBytes,[In] unsigned int Stride) + IDirect3DDevice9::SetStreamSource +
+ + +

Retrieves a vertex buffer bound to the specified data stream.

+
+

Specifies the data stream, in the range from 0 to the maximum number of streams minus one.

+

Address of a reference to an interface, representing the returned vertex buffer bound to the specified data stream.

+

Pointer containing the offset from the beginning of the stream to the beginning of the vertex data. The offset is measured in bytes. See Remarks.

+

Pointer to a returned stride of the component, in bytes. See Remarks.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A stream is defined as a uniform array of component data, where each component consists of one or more elements representing a single entity such as position, normal, color, and so on.

When a FVF vertex shader is used, the stride of the vertex stream must match the vertex size, computed from the FVF. When a declaration is used, the stride should be greater than or equal to the stream size computed from the declaration.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174409 + HRESULT IDirect3DDevice9::GetStreamSource([In] unsigned int StreamNumber,[Out] IDirect3DVertexBuffer9** ppStreamData,[Out] unsigned int* pOffsetInBytes,[Out] unsigned int* pStride) + IDirect3DDevice9::GetStreamSource +
+ + +

Sets the stream source frequency divider value. This may be used to draw several instances of geometry.

+
+

Stream source number.

+

This parameter may have two different values. See remarks.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

There are two constants defined in d3d9types.h that are designed to use with SetStreamSourceFreq: and . To see how to use the constants, see Efficiently Drawing Multiple Instances of Geometry (Direct3D 9).

+
+ + bb174460 + HRESULT IDirect3DDevice9::SetStreamSourceFreq([In] unsigned int StreamNumber,[In] unsigned int Setting) + IDirect3DDevice9::SetStreamSourceFreq +
+ + +

Gets the stream source frequency divider value.

+
+

Stream source number.

+

Returns the frequency divider value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Vertex shaders can now be invoked more than once per vertex. See Drawing Non-Indexed Geometry.

+
+ + bb174410 + HRESULT IDirect3DDevice9::GetStreamSourceFreq([In] unsigned int StreamNumber,[Out] unsigned int* pSetting) + IDirect3DDevice9::GetStreamSourceFreq +
+ + +

Sets index data.

+
+

Pointer to an interface, representing the index data to be set.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

When an application no longer holds a references to this interface, the interface will automatically be freed.

The method sets the current index array to an index buffer. The single set of indices is used to index all streams.

+
+ + bb174435 + HRESULT IDirect3DDevice9::SetIndices([In] IDirect3DIndexBuffer9* pIndexData) + IDirect3DDevice9::SetIndices +
+ + +

Retrieves index data.

+
+

Address of a reference to an interface, representing the returned index data.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174391 + HRESULT IDirect3DDevice9::GetIndices([Out] IDirect3DIndexBuffer9** ppIndexData) + IDirect3DDevice9::GetIndices +
+ + +

Creates a pixel shader.

+
+

Pointer to the pixel shader function token array, specifying the blending operations. This value cannot be null.

+

Pointer to the returned pixel shader interface. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , E_OUTOFMEMORY.

+ + bb174359 + HRESULT IDirect3DDevice9::CreatePixelShader([In] const void* pFunction,[Out, Fast] IDirect3DPixelShader9** ppShader) + IDirect3DDevice9::CreatePixelShader +
+ + +

Sets the current pixel shader to a previously created pixel shader.

+
+

Pixel shader interface.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174450 + HRESULT IDirect3DDevice9::SetPixelShader([In] IDirect3DPixelShader9* pShader) + IDirect3DDevice9::SetPixelShader +
+ + +

Retrieves the currently set pixel shader.

+
+

Pointer to a pixel shader interface.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method will not work on a device that is created using .

+
+ + bb174398 + HRESULT IDirect3DDevice9::GetPixelShader([Out] IDirect3DPixelShader9** ppShader) + IDirect3DDevice9::GetPixelShader +
+ + +

Sets a floating-point shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four float vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174452 + HRESULT IDirect3DDevice9::SetPixelShaderConstantF([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4fCount) + IDirect3DDevice9::SetPixelShaderConstantF +
+ + +

Gets a floating-point shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four float vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174400 + HRESULT IDirect3DDevice9::GetPixelShaderConstantF([In] unsigned int StartRegister,[In, Buffer] float* pConstantData,[In] unsigned int Vector4fCount) + IDirect3DDevice9::GetPixelShaderConstantF +
+ + +

Sets an integer shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four integer vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174453 + HRESULT IDirect3DDevice9::SetPixelShaderConstantI([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int Vector4iCount) + IDirect3DDevice9::SetPixelShaderConstantI +
+ + +

Gets an integer shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of four integer vectors in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174401 + HRESULT IDirect3DDevice9::GetPixelShaderConstantI([In] unsigned int StartRegister,[In, Buffer] int* pConstantData,[In] unsigned int Vector4iCount) + IDirect3DDevice9::GetPixelShaderConstantI +
+ + +

Sets a Boolean shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of boolean values in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174451 + HRESULT IDirect3DDevice9::SetPixelShaderConstantB([In] unsigned int StartRegister,[In] const void* pConstantData,[In] unsigned int BoolCount) + IDirect3DDevice9::SetPixelShaderConstantB +
+ + +

Gets a Boolean shader constant.

+
+

Register number that will contain the first constant value.

+

Pointer to an array of constants.

+

Number of Boolean values in the array of constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174399 + HRESULT IDirect3DDevice9::GetPixelShaderConstantB([In] unsigned int StartRegister,[In] void* pConstantData,[In] unsigned int BoolCount) + IDirect3DDevice9::GetPixelShaderConstantB +
+ + +

Draws a rectangular patch using the currently set streams.

+
+

Handle to the rectangular patch to draw.

+

Pointer to an array of four floating-point values that identify the number of segments each edge of the rectangle patch should be divided into when tessellated. See .

+

Pointer to a structure, describing the rectangular patch to draw.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For static patches: Set the vertex shader, set the appropriate streams, supply patch information in the pRectPatchInfo parameter, and specify a handle so that Direct3D can capture and cache information. Call subsequently with pRectPatchInfo set to null to efficiently draw the patch. When drawing a cached patch, the currently set streams are ignored. Override the cached pNumSegs by specifying a new value for pNumSegs. When rendering a cached patch, you must set the same vertex shader that was set when it was captured.

Calling with a handle invalidates the same handle cached by a previous call.

For dynamic patches, the patch data changes for every rendering of the patch, so it is not efficient to cache information. The application can convey this to Direct3D by setting Handle to 0. In this case, Direct3D draws the patch using the currently set streams and the pNumSegs values, and does not cache any information. It is not valid to simultaneously set Handle to 0 and pRectPatchInfo to null.

+
+ + bb174373 + HRESULT IDirect3DDevice9::DrawRectPatch([In] unsigned int Handle,[In, Buffer] const float* pNumSegs,[In] const void* pRectPatchInfo) + IDirect3DDevice9::DrawRectPatch +
+ + +

Draws a triangular patch using the currently set streams.

+
+

Handle to the triangular patch to draw.

+

Pointer to an array of three floating-point values that identify the number of segments each edge of the triangle patch should be divided into when tessellated. See .

+

Pointer to a structure, describing the triangular high-order patch to draw.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For static patches: Set the vertex shader, set the appropriate streams, supply patch information in the pTriPatchInfo parameter, and specify a handle so that Direct3D can capture and cache information. To efficiently draw the patch, call with pTriPatchInfo set to null. When drawing a cached patch, the currently set streams are ignored. Override the cached pNumSegs by specifying a new value for pNumSegs. When rendering a cached patch, you must set the same vertex shader that was set when it was captured.

Calling with a handle invalidates the same handle cached by a previous call.

For dynamic patches, the patch data changes for every rendering of the patch so it is not efficient to cache information. The application can convey this to Direct3D by setting Handle to 0. In this case, Direct3D draws the patch using the currently set streams and the pNumSegs values, and does not cache any information. It is not valid to simultaneously set Handle to 0 and pTriPatchInfo to null.

+
+ + bb174374 + HRESULT IDirect3DDevice9::DrawTriPatch([In] unsigned int Handle,[In, Buffer] const float* pNumSegs,[In] const void* pTriPatchInfo) + IDirect3DDevice9::DrawTriPatch +
+ + +

Frees a cached high-order patch.

+
+

Handle of the cached high-order patch to delete.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174368 + HRESULT IDirect3DDevice9::DeletePatch([In] unsigned int Handle) + IDirect3DDevice9::DeletePatch +
+ + +

Creates a status query.

+
+

Identifies the query type. For more information, see .

+

Returns a reference to the query interface that manages the query object. See .

This parameter can be set to null to see if a query is supported. If the query is not supported, the method returns .

+

If the method succeeds, the return value is . If the method fails, the return value can be or E_OUTOFMEMORY.

+ +

This method is provided for both synchronous and asynchronous queries. It takes the place of GetInfo, which is no longer supported in Direct3D 9.

Synchronous and asynchronous queries are created with with . When a query has been created and the API calls have been made that are being queried, use to issue a query and to get the results of the query.

+
+ + bb174360 + HRESULT IDirect3DDevice9::CreateQuery([In] D3DQUERYTYPE Type,[Out, Fast] IDirect3DQuery9** ppQuery) + IDirect3DDevice9::CreateQuery +
+ + + Gets the available texture memory. + + + + + Gets the driver level. + + + + + Gets the pixel shader profile. + + + + + Gets the vertex shader profile. + + + + + Gets or sets a value indicating whether the cursor can be displayed. + + + true if the cursor can be displayed; otherwise, false. + + + + +

Returns an interface to the instance of the Direct3D object that created the device.

+
+ +

Calling will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174386 + GetDirect3D + GetDirect3D + HRESULT IDirect3DDevice9::GetDirect3D([Out] IDirect3D9** ppD3D9) +
+ + +

Retrieves the capabilities of the rendering device.

+
+ +

retrieves the software vertex pipeline capabilities when the device is being used in software vertex processing mode.

+
+ + bb174385 + GetDeviceCaps + GetDeviceCaps + HRESULT IDirect3DDevice9::GetDeviceCaps([Out] D3DCAPS9* pCaps) +
+ + +

Retrieves the creation parameters of the device.

+
+ +

You can query the AdapterOrdinal member of the returned structure to retrieve the ordinal of the adapter represented by this device.

+
+ + bb174382 + GetCreationParameters + GetCreationParameters + HRESULT IDirect3DDevice9::GetCreationParameters([Out] D3DDEVICE_CREATION_PARAMETERS* pParameters) +
+ + +

Gets the number of implicit swap chains.

+
+ +

Implicit swap chains are created by the device during . This method returns the number of swap chains created by CreateDevice.

An application may create additional swap chains using .

+
+ + bb174396 + GetNumberOfSwapChains + GetNumberOfSwapChains + unsigned int IDirect3DDevice9::GetNumberOfSwapChains() +
+ + +

This method allows the use of GDI dialog boxes in full-screen mode applications.

+
+ +

The GDI dialog boxes must be created as child to the device window. They should also be created within the same thread that created the device because this enables the parent window to manage redrawing the child window.

The method has no effect for windowed mode applications, but this setting will be respected if the application resets the device into full-screen mode. If SetDialogBoxMode succeeds in a windowed mode application, any subsequent reset to full-screen mode will be checked against the restrictions listed above. Also, SetDialogBoxMode causes all back buffers on the swap chain to be discarded, so an application is expected to refresh its content for all back buffers after this call.

+
+ + bb174432 + SetDialogBoxMode + SetDialogBoxMode + HRESULT IDirect3DDevice9::SetDialogBoxMode([In] BOOL bEnableDialogs) +
+ + +

Gets or sets the depth-stencil surface owned by the Direct3DDevice object.

+
+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174384 + GetDepthStencilSurface / SetDepthStencilSurface + GetDepthStencilSurface + HRESULT IDirect3DDevice9::GetDepthStencilSurface([Out] IDirect3DSurface9** ppZStencilSurface) +
+ + +

Retrieves or sets the viewport parameters currently set for the device.

+
+ +

Typically, methods that return state will not work on a device that is created using . This method however, will work even on a pure device.

+
+ + bb174420 + GetViewport / SetViewport + GetViewport + HRESULT IDirect3DDevice9::GetViewport([Out] D3DVIEWPORT9* pViewport) +
+ + +

Retrieves or sets the current material properties for the device.

+
+ +

This method will not return device state for a device that is created using . If you want to use this method, you must create your device with any of the other values in .

+
+ + bb174394 + GetMaterial / SetMaterial + GetMaterial + HRESULT IDirect3DDevice9::GetMaterial([Out] D3DMATERIAL9* pMaterial) +
+ + +

Retrieves or sets the clip status.

+
+ +

When clipping is enabled during vertex processing (by , , or other drawing functions), Direct3D computes a clip code for every vertex. The clip code is a combination of D3DCS_* bits. When a vertex is outside a particular clipping plane, the corresponding bit is set in the clipping code. Direct3D maintains the clip status using , which has ClipUnion and ClipIntersection members. ClipUnion is a bitwise "OR" of all vertex clip codes and ClipIntersection is a bitwise "AND" of all vertex clip codes. Initial values are zero for ClipUnion and 0xFFFFFFFF for ClipIntersection. When is set to , ClipUnion and ClipIntersection are set to zero. Direct3D updates the clip status during drawing calls. To compute clip status for a particular object, set ClipUnion and ClipIntersection to their initial value and continue drawing.

Clip status is not updated by and because there is no software emulation for them.

Clip status is used during software vertex processing. Therefore, this method is not supported on pure or nonpure hardware processing devices. For more information about pure devices, see .

+
+ + bb174381 + GetClipStatus / SetClipStatus + GetClipStatus + HRESULT IDirect3DDevice9::GetClipStatus([Out] D3DCLIPSTATUS9* pClipStatus) +
+ + +

Retrieves or sets the current texture palette.

+
+ + bb174383 + GetCurrentTexturePalette / SetCurrentTexturePalette + GetCurrentTexturePalette + HRESULT IDirect3DDevice9::GetCurrentTexturePalette([Out] unsigned int* PaletteNumber) +
+ + +

Gets or sets the scissor rectangle.

+
+ +

The scissor rectangle is used as a rectangular clipping region.

See Rectangles (Direct3D 9) for further information on the use of rectangles in DirectX.

+
+ + bb174407 + GetScissorRect / SetScissorRect + GetScissorRect + HRESULT IDirect3DDevice9::GetScissorRect([Out] RECT* pRect) +
+ + +

Gets or sets the vertex processing (hardware or software) mode.

+
+ +

An application can create a mixed-mode device to use both the software vertex processing and the hardware vertex processing. To switch between the two vertex processing modes in DirectX 8.x, use with the render state D3DRS_SOFTWAREVERTEXPROCESSING and the appropriate argument. The drawback of the render state approach was the difficulty in defining the semantics for state blocks. Applications and the runtime had to do extra work and be careful while recording and playing back state blocks.

In Direct3D 9, use instead. This new API is not recorded by StateBlocks.

+
+ + bb174408 + GetSoftwareVertexProcessing / SetSoftwareVertexProcessing + GetSoftwareVertexProcessing + BOOL IDirect3DDevice9::GetSoftwareVertexProcessing() +
+ + +

Gets or sets the N-patch mode segments.

+
+ + bb174395 + GetNPatchMode / SetNPatchMode + GetNPatchMode + float IDirect3DDevice9::GetNPatchMode() +
+ + +

Gets or sets a vertex shader declaration.

+
+ + bb174415 + GetVertexDeclaration / SetVertexDeclaration + GetVertexDeclaration + HRESULT IDirect3DDevice9::GetVertexDeclaration([Out] IDirect3DVertexDeclaration9** ppDecl) +
+ + +

Gets or sets the fixed vertex function declaration.

+
+ +

The fixed vertex function declaration is a set of FVF flags that determine how vertices processed by the fixed function pipeline will be used.

+
+ + bb174389 + GetFVF / SetFVF + GetFVF + HRESULT IDirect3DDevice9::GetFVF([Out] D3DFVF* pFVF) +
+ + +

Retrieves or sets the currently set vertex shader.

+
+ +

Typically, methods that return state will not work on a device that is created using . This method however, will work even on a pure device because it returns an interface.

+
+ + bb174416 + GetVertexShader / SetVertexShader + GetVertexShader + HRESULT IDirect3DDevice9::GetVertexShader([Out] IDirect3DVertexShader9** ppShader) +
+ + +

Retrieves or sets index data.

+
+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb174391 + GetIndices / SetIndices + GetIndices + HRESULT IDirect3DDevice9::GetIndices([Out] IDirect3DIndexBuffer9** ppIndexData) +
+ + +

Retrieves or sets the currently set pixel shader.

+
+ +

This method will not work on a device that is created using .

+
+ + bb174398 + GetPixelShader / SetPixelShader + GetPixelShader + HRESULT IDirect3DDevice9::GetPixelShader([Out] IDirect3DPixelShader9** ppShader) +
+ + +

Applications use the methods of the interface to render primitives, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders. The interface derives from the interface.

+
+ +

The interface is obtained by calling .

The LPDIRECT3DDEVICE9EX and PDIRECT3DDEVICE9EX types are defined as references to the interface:

 typedef struct  *LPDIRECT3DDEVICE9EX, *PDIRECT3DDEVICE9EX;	
+            
+
+ + bb174337 + IDirect3DDevice9Ex + IDirect3DDevice9Ex +
+ + + Creates a device to represent the display adapter. + + an instance of + Ordinal number that denotes the display adapter. {{D3DADAPTER_DEFAULT}} is always the primary display adapter. + Member of the enumerated type that denotes the desired device type. If the desired device type is not available, the method will fail. + The focus window alerts Direct3D when an application switches from foreground mode to background mode. See Remarks. For full-screen mode, the window specified must be a top-level window. For windowed mode, this parameter may be NULL only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-NULL value. + Combination of one or more options that control device creation. For more information, see {{D3DCREATE}}. + Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies {{D3DCREATE_ADAPTERGROUP_DEVICE}}, pPresentationParameters is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created. For Windows 2000 and Windows XP, the full-screen device display refresh rate is set in the following order: User-specified nonzero ForcedRefreshRate registry key, if supported by the device. Application-specified nonzero refresh rate value in the presentation parameter. Refresh rate of the latest desktop mode, if supported by the device. 75 hertz if supported by the device. 60 hertz if supported by the device. Device default. An unsupported refresh rate will default to the closest supported refresh rate below it. For example, if the application specifies 63 hertz, 60 hertz will be used. There are no supported refresh rates below 57 hertz. pPresentationParameters is both an input and an output parameter. Calling this method may change several members including: If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns. If BackBufferFormat equals before the method is called, it will be changed when the method returns. + + This method returns a fully working device interface, set to the required display mode (or windowed), and allocated with the appropriate back buffers. To begin rendering, the application needs only to create and set a depth buffer (assuming EnableAutoDepthStencil is FALSE in ). When you create a Direct3D device, you supply two different window parameters: a focus window (hFocusWindow) and a device window (the hDeviceWindow in ). The purpose of each window is: The focus window alerts Direct3D when an application switches from foreground mode to background mode (via Alt-Tab, a mouse click, or some other method). A single focus window is shared by each device created by an application. The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during {{Present}}. This method should not be run during the handling of WM_CREATE. An application should never pass a window handle to Direct3D while handling WM_CREATE. Any call to create, release, or reset the device must be done using the same thread as the window procedure of the focus window. Note that D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_MIXED_VERTEXPROCESSING, and D3DCREATE_SOFTWARE_VERTEXPROCESSING are mutually exclusive flags, and at least one of these vertex processing flags must be specified when calling this method. Back buffers created as part of the device are only lockable if D3DPRESENTFLAG_LOCKABLE_BACKBUFFER is specified in the presentation parameters. (Multisampled back buffers and depth surfaces are never lockable.) The methods {{Reset}}, , and {{TestCooperativeLevel}} must be called from the same thread that used this method to create a device. D3DFMT_UNKNOWN can be specified for the windowed mode back buffer format when calling CreateDevice, {{Reset}}, and {{CreateAdditionalSwapChain}}. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified. If you attempt to create a device on a 0x0 sized window, CreateDevice will fail. + + HRESULT CreateDevice([None] UINT Adapter,[None] D3DDEVTYPE DeviceType,[None] HWND hFocusWindow,[None] int BehaviorFlags,[None] D3DPRESENT_PARAMETERS* pPresentationParameters,[None] IDirect3DDevice9** ppReturnedDeviceInterface) + + + + Creates a device to represent the display adapter. + + an instance of + Ordinal number that denotes the display adapter. {{D3DADAPTER_DEFAULT}} is always the primary display adapter. + Member of the enumerated type that denotes the desired device type. If the desired device type is not available, the method will fail. + The focus window alerts Direct3D when an application switches from foreground mode to background mode. See Remarks. For full-screen mode, the window specified must be a top-level window. For windowed mode, this parameter may be NULL only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-NULL value. + Combination of one or more options that control device creation. For more information, see {{D3DCREATE}}. + Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies {{D3DCREATE_ADAPTERGROUP_DEVICE}}, pPresentationParameters is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created. For Windows 2000 and Windows XP, the full-screen device display refresh rate is set in the following order: User-specified nonzero ForcedRefreshRate registry key, if supported by the device. Application-specified nonzero refresh rate value in the presentation parameter. Refresh rate of the latest desktop mode, if supported by the device. 75 hertz if supported by the device. 60 hertz if supported by the device. Device default. An unsupported refresh rate will default to the closest supported refresh rate below it. For example, if the application specifies 63 hertz, 60 hertz will be used. There are no supported refresh rates below 57 hertz. pPresentationParameters is both an input and an output parameter. Calling this method may change several members including: If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns. If BackBufferFormat equals before the method is called, it will be changed when the method returns. + + This method returns a fully working device interface, set to the required display mode (or windowed), and allocated with the appropriate back buffers. To begin rendering, the application needs only to create and set a depth buffer (assuming EnableAutoDepthStencil is FALSE in ). When you create a Direct3D device, you supply two different window parameters: a focus window (hFocusWindow) and a device window (the hDeviceWindow in ). The purpose of each window is: The focus window alerts Direct3D when an application switches from foreground mode to background mode (via Alt-Tab, a mouse click, or some other method). A single focus window is shared by each device created by an application. The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during {{Present}}. This method should not be run during the handling of WM_CREATE. An application should never pass a window handle to Direct3D while handling WM_CREATE. Any call to create, release, or reset the device must be done using the same thread as the window procedure of the focus window. Note that D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_MIXED_VERTEXPROCESSING, and D3DCREATE_SOFTWARE_VERTEXPROCESSING are mutually exclusive flags, and at least one of these vertex processing flags must be specified when calling this method. Back buffers created as part of the device are only lockable if D3DPRESENTFLAG_LOCKABLE_BACKBUFFER is specified in the presentation parameters. (Multisampled back buffers and depth surfaces are never lockable.) The methods {{Reset}}, , and {{TestCooperativeLevel}} must be called from the same thread that used this method to create a device. D3DFMT_UNKNOWN can be specified for the windowed mode back buffer format when calling CreateDevice, {{Reset}}, and {{CreateAdditionalSwapChain}}. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified. If you attempt to create a device on a 0x0 sized window, CreateDevice will fail. + + HRESULT CreateDevice([None] UINT Adapter,[None] D3DDEVTYPE DeviceType,[None] HWND hFocusWindow,[None] int BehaviorFlags,[None] D3DPRESENT_PARAMETERS* pPresentationParameters,[None] IDirect3DDevice9** ppReturnedDeviceInterface) + + + + Creates a device to represent the display adapter. + + an instance of + Ordinal number that denotes the display adapter. {{D3DADAPTER_DEFAULT}} is always the primary display adapter. + Member of the enumerated type that denotes the desired device type. If the desired device type is not available, the method will fail. + The focus window alerts Direct3D when an application switches from foreground mode to background mode. See Remarks. For full-screen mode, the window specified must be a top-level window. For windowed mode, this parameter may be NULL only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-NULL value. + Combination of one or more options that control device creation. For more information, see {{D3DCREATE}}. + Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies {{D3DCREATE_ADAPTERGROUP_DEVICE}}, pPresentationParameters is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created. For Windows 2000 and Windows XP, the full-screen device display refresh rate is set in the following order: User-specified nonzero ForcedRefreshRate registry key, if supported by the device. Application-specified nonzero refresh rate value in the presentation parameter. Refresh rate of the latest desktop mode, if supported by the device. 75 hertz if supported by the device. 60 hertz if supported by the device. Device default. An unsupported refresh rate will default to the closest supported refresh rate below it. For example, if the application specifies 63 hertz, 60 hertz will be used. There are no supported refresh rates below 57 hertz. pPresentationParameters is both an input and an output parameter. Calling this method may change several members including: If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns. If BackBufferFormat equals before the method is called, it will be changed when the method returns. + The full screen display mode. + + This method returns a fully working device interface, set to the required display mode (or windowed), and allocated with the appropriate back buffers. To begin rendering, the application needs only to create and set a depth buffer (assuming EnableAutoDepthStencil is FALSE in ). When you create a Direct3D device, you supply two different window parameters: a focus window (hFocusWindow) and a device window (the hDeviceWindow in ). The purpose of each window is: The focus window alerts Direct3D when an application switches from foreground mode to background mode (via Alt-Tab, a mouse click, or some other method). A single focus window is shared by each device created by an application. The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during {{Present}}. This method should not be run during the handling of WM_CREATE. An application should never pass a window handle to Direct3D while handling WM_CREATE. Any call to create, release, or reset the device must be done using the same thread as the window procedure of the focus window. Note that D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_MIXED_VERTEXPROCESSING, and D3DCREATE_SOFTWARE_VERTEXPROCESSING are mutually exclusive flags, and at least one of these vertex processing flags must be specified when calling this method. Back buffers created as part of the device are only lockable if D3DPRESENTFLAG_LOCKABLE_BACKBUFFER is specified in the presentation parameters. (Multisampled back buffers and depth surfaces are never lockable.) The methods {{Reset}}, , and {{TestCooperativeLevel}} must be called from the same thread that used this method to create a device. D3DFMT_UNKNOWN can be specified for the windowed mode back buffer format when calling CreateDevice, {{Reset}}, and {{CreateAdditionalSwapChain}}. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified. If you attempt to create a device on a 0x0 sized window, CreateDevice will fail. + + HRESULT CreateDevice([None] UINT Adapter,[None] D3DDEVTYPE DeviceType,[None] HWND hFocusWindow,[None] int BehaviorFlags,[None] D3DPRESENT_PARAMETERS* pPresentationParameters,[None] IDirect3DDevice9** ppReturnedDeviceInterface) + + + + Creates a device to represent the display adapter. + + an instance of + Ordinal number that denotes the display adapter. {{D3DADAPTER_DEFAULT}} is always the primary display adapter. + Member of the enumerated type that denotes the desired device type. If the desired device type is not available, the method will fail. + The focus window alerts Direct3D when an application switches from foreground mode to background mode. See Remarks. For full-screen mode, the window specified must be a top-level window. For windowed mode, this parameter may be NULL only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-NULL value. + Combination of one or more options that control device creation. For more information, see {{D3DCREATE}}. + Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies {{D3DCREATE_ADAPTERGROUP_DEVICE}}, pPresentationParameters is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created. For Windows 2000 and Windows XP, the full-screen device display refresh rate is set in the following order: User-specified nonzero ForcedRefreshRate registry key, if supported by the device. Application-specified nonzero refresh rate value in the presentation parameter. Refresh rate of the latest desktop mode, if supported by the device. 75 hertz if supported by the device. 60 hertz if supported by the device. Device default. An unsupported refresh rate will default to the closest supported refresh rate below it. For example, if the application specifies 63 hertz, 60 hertz will be used. There are no supported refresh rates below 57 hertz. pPresentationParameters is both an input and an output parameter. Calling this method may change several members including: If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns. If BackBufferFormat equals before the method is called, it will be changed when the method returns. + The full screen display mode. + + This method returns a fully working device interface, set to the required display mode (or windowed), and allocated with the appropriate back buffers. To begin rendering, the application needs only to create and set a depth buffer (assuming EnableAutoDepthStencil is FALSE in ). When you create a Direct3D device, you supply two different window parameters: a focus window (hFocusWindow) and a device window (the hDeviceWindow in ). The purpose of each window is: The focus window alerts Direct3D when an application switches from foreground mode to background mode (via Alt-Tab, a mouse click, or some other method). A single focus window is shared by each device created by an application. The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during {{Present}}. This method should not be run during the handling of WM_CREATE. An application should never pass a window handle to Direct3D while handling WM_CREATE. Any call to create, release, or reset the device must be done using the same thread as the window procedure of the focus window. Note that D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_MIXED_VERTEXPROCESSING, and D3DCREATE_SOFTWARE_VERTEXPROCESSING are mutually exclusive flags, and at least one of these vertex processing flags must be specified when calling this method. Back buffers created as part of the device are only lockable if D3DPRESENTFLAG_LOCKABLE_BACKBUFFER is specified in the presentation parameters. (Multisampled back buffers and depth surfaces are never lockable.) The methods {{Reset}}, , and {{TestCooperativeLevel}} must be called from the same thread that used this method to create a device. D3DFMT_UNKNOWN can be specified for the windowed mode back buffer format when calling CreateDevice, {{Reset}}, and {{CreateAdditionalSwapChain}}. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified. If you attempt to create a device on a 0x0 sized window, CreateDevice will fail. + + HRESULT CreateDevice([None] UINT Adapter,[None] D3DDEVTYPE DeviceType,[None] HWND hFocusWindow,[None] int BehaviorFlags,[None] D3DPRESENT_PARAMETERS* pPresentationParameters,[None] IDirect3DDevice9** ppReturnedDeviceInterface) + + + + Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application. + + The window handle. + State of the device + HRESULT IDirect3DDevice9Ex::CheckDeviceState([In] HWND hDestinationWindow) + + + + Checks an array of resources to determine if it is likely that they will cause a large stall at Draw time because the system must make the resources GPU-accessible. + + An array of that indicate the resources to check. + The status. + HRESULT IDirect3DDevice9Ex::CheckDeviceState([In] HWND hDestinationWindow) + + + + Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings. + + The swap chain. + structure containing data about the display mode of the adapter + HRESULT IDirect3DDevice9Ex::GetDisplayModeEx([In] unsigned int iSwapChain,[Out] D3DDISPLAYMODEEX* pMode,[In] void* pRotation) + + + + Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings. + + The swap chain. + The structure indicating the type of screen rotation the application will do. + structure containing data about the display mode of the adapter + HRESULT IDirect3DDevice9Ex::GetDisplayModeEx([In] unsigned int iSwapChain,[Out] D3DDISPLAYMODEEX* pMode,[In] void* pRotation) + + + + Swap the swapchain's next buffer with the front buffer. + + The flags. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9Ex::PresentEx([In] const void* pSourceRect,[In] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Swap the swapchain's next buffer with the front buffer. + + The flags. + The source rectangle. + The destination rectangle. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9Ex::PresentEx([In] const void* pSourceRect,[In] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Swap the swapchain's next buffer with the front buffer. + + The flags. + The source rectangle. + The destination rectangle. + The window override. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9Ex::PresentEx([In] const void* pSourceRect,[In] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Swap the swapchain's next buffer with the front buffer. + + The flags. + The source rectangle. + The destination rectangle. + The window override. + The region. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9Ex::PresentEx([In] const void* pSourceRect,[In] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Resets the type, size, and format of the swap chain with all other surfaces persistent. + + A reference describing the new presentation parameters. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9Ex::ResetEx([In] D3DPRESENT_PARAMETERS* pPresentationParameters,[In] void* pFullscreenDisplayMode) + + + + Resets the type, size, and format of the swap chain with all other surfaces persistent. + + A reference describing the new presentation parameters. + The full screen display mode. + + A object describing the result of the operation. + + HRESULT IDirect3DDevice9Ex::ResetEx([In] D3DPRESENT_PARAMETERS* pPresentationParameters,[In] void* pFullscreenDisplayMode) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Prepare the texture sampler for monochrome convolution filtering on a single-color texture.

+
+

The width of the filter kernel; ranging from 1 - D3DCONVOLUTIONMONO_MAXWIDTH. The default value is 1.

+

The height of the filter kernel; ranging from 1 - D3DCONVOLUTIONMONO_MAXHEIGHT. The default value is 1.

+

An array of weights, one weight for each kernel sub-element in the width. This parameter must be null, which will set the weights equal to the default value.

+

An array of weights, one weight for each kernel sub-element in the height. This parameter must be null, which will set the weights equal to the default value.

+

If the method succeeds, the return value is .

+ +

This method is designed to filter a single color texture. A monochrome convolution filter is a 2D box filter with all of the weights set to 1.0; the filter kernel resolution ranges from 1 x 1 to 7 x 7. When monochrome texture filtering is set to a texture sampler and texture sampling is performed at location, then Direct3D performs convolution.

Restrictions include:

  • The filter specified by this method is recorded in state blocks as a part of .
  • The only texture address mode supported is: ; the border color is always 0.
  • This method is not supported for mipmaps.
  • Using a non-monochrome texture with convolution filtering will generate a driver error.
+
+ + bb174345 + HRESULT IDirect3DDevice9Ex::SetConvolutionMonoKernel([In] unsigned int width,[In] unsigned int height,[In, Buffer] float* rows,[In, Buffer] float* columns) + IDirect3DDevice9Ex::SetConvolutionMonoKernel +
+ + +

Copy a text string to one surface using an alphabet of glyphs on another surface. Composition is done by the GPU using bitwise operations.

+
+

A reference to a source surface (prepared by ) that supplies the alphabet glyphs. This surface must be created with the flag.

+

A reference to the destination surface (prepared by ) that receives the glyph data. The surface must be part of a texture.

+

A reference to a vertex buffer (see ) containing rectangles (see D3DCOMPOSERECTDESC) that enclose the desired glyphs in the source surface.

+

The number of rectangles or glyphs that are used in the operation. The number applies to both the source and destination surfaces. The range is 0 to D3DCOMPOSERECTS_MAXNUMRECTS.

+

A reference to a vertex buffer (see ) containing rectangles (see D3DCOMPOSERECTDESTINATION) that describe the destination to which the indicated glyph from the source surface will be copied.

+

Specifies how to combine the source and destination surfaces. See .

+

A value added to the x coordinates of all destination rectangles. This value can be negative, which may cause the glyph to be rejected or clipped if the result is beyond the bounds of the surface.

+

A value added to the y coordinates of all destination rectangles. This value can be negative, which may cause the glyph to be rejected or clipped if the result is beyond the bounds of the surface.

+

If the method succeeds, the return value is .

+ +

Glyphs from a one-bit source surface are put together into another one-bit texture surface with this method. The destination surface can then be used as the source for a normal texturing operation that will filter and scale the strings of text onto some other non-monochrome surface.

This method has several constraints (which are similar to StretchRect):

  • Surfaces cannot be locked.
  • The source and destination surfaces cannot be the same surface.
  • The source and destination surfaces must be created with the format.
  • The source surface and both vertex buffers must be created with the flag.
  • The destination surface must be created with either the or flags.
  • The source rectangles must be within the source surface.

The method is not recorded in state blocks.

+
+ + bb174340 + HRESULT IDirect3DDevice9Ex::ComposeRects([In] IDirect3DSurface9* pSrc,[In] IDirect3DSurface9* pDst,[In] IDirect3DVertexBuffer9* pSrcRectDescs,[In] unsigned int NumRects,[In] IDirect3DVertexBuffer9* pDstRectDescs,[In] D3DCOMPOSERECTSOP Operation,[In] int Xoffset,[In] int Yoffset) + IDirect3DDevice9Ex::ComposeRects +
+ + +

Swap the swapchain's next buffer with the front buffer.

+
+

Pointer to a structure indicating region on the source surface to copy in window client coordinates. Only applies when the swapchain was created with the flag. If null, the entire source surface is presented. If the rectangle exceeds the source surface, it is clipped to the source surface.

+

Pointer to structure indicating the target region on the destination surface in window client coordinates. Only applies when the swapchain was created with the flag. If null, the entire client area is filled. If the rectangle exceeds the destination client area, it is clipped to the destination client area.

+

Pointer to a destination window whose client area is taken as the target for this presentation. If this value is null, the runtime uses the hDeviceWindow member of for the presentation.

Note??If you create a swap chain with , you must pass null to hDestWindowOverride

+

Pointer to a structure indicating the smallest set of pixels that need to be transferred. This value must be null unless the swapchain was created with the flag. For more information about swapchains, see Flipping Surfaces (Direct3D 9).

If this value is non-null, the contained region is expressed in back buffer coordinates. The method takes these rectangles into account when optimizing the presentation by copying only the pixels within the region, or some suitably expanded set of rectangles. This is an aid to optimization only, and the application should not rely on the region being copied exactly. The implementation can choose to copy the whole source rectangle.

+

Allows the application to request that the method return immediately when the driver reports that it cannot schedule a presentation. Valid values are 0, or any combination of flags.

  • If dwFlags = 0, this method behaves as it did prior to Direct3D 9. Present will spin until the hardware is free, without returning an error.
  • If dwFlags = the display driver is called with the front buffer as both the source and target surface. The driver responds by scheduling a frame synch, but not changing the displayed surface. This flag is only available in full-screen mode or when using in windowed mode.
  • If dwFlags = , and the hardware is busy processing or waiting for a vertical sync interval, the method will return .
  • If dwFlags = , is enforced on this Present call. This flag can only be specified when using . This behavior is the same for windowed and full-screen modes.
  • If dwFlags = , gamma correction is performed from linear space to sRGB for windowed swap chains. This flag will take effect only when the driver exposes (see Gamma (Direct3D 9)).
+

Possible return values include: , , , , or (see D3DERR). See Lost Device Behavior Changes for more information about lost, hung, and removed devices.

Differences between Direct3D 9 and Direct3D 9Ex:

is only available in Direct3D9Ex running on Windows 7 (or more current operating system).

?

+ +

Similar to the Method, PresentEx adds a dwflags parameter.

When the swapchain is created with flag, pSourceRect, pDestRect and pDirtyRegion values must be set to null.

+
+ + bb174343 + HRESULT IDirect3DDevice9Ex::PresentEx([In] const void* pSourceRect,[In] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + IDirect3DDevice9Ex::PresentEx +
+ + +

Get the priority of the GPU thread.

+
+

Current GPU priority. Valid values range from -7 to 7.

+

Possible return values include: or (see D3DERR).

+ +

Use to set the priority of a thread.

This method will retrieve the priority of the thread stored with the Direct3D device even if it was created with the flag.

+
+ + bb174341 + HRESULT IDirect3DDevice9Ex::GetGPUThreadPriority([Out] int* pPriority) + IDirect3DDevice9Ex::GetGPUThreadPriority +
+ + +

Set the priority on the GPU thread.

+
+

The thread priority, ranging from -7 to 7.

+

Possible return values include: , , or (see D3DERR).

+ +

GPU thread priority is not reset when a device is lost. The effects of calls to this method are not recorded in state blocks.

+
+ + bb174346 + HRESULT IDirect3DDevice9Ex::SetGPUThreadPriority([In] int Priority) + IDirect3DDevice9Ex::SetGPUThreadPriority +
+ + +

Suspend execution of the calling thread until the next vertical blank signal.

+
+

Swap chain index. This is an optional, zero-based index used to specify a swap chain on a multihead card.

+

This method will always return .

+ +

This method allows applications to efficiently throttle their frame rate to that of the monitor associated with the device. Following a vertical blank, the amount of time it takes for the thread to wake up is typically very short.

In some scenarios the hardware may stop generating vertical blank signals when nothing is being displayed on the monitor. In this case, the method will wait approximately 100ms and return with .

+
+ + bb174349 + HRESULT IDirect3DDevice9Ex::WaitForVBlank([In] unsigned int iSwapChain) + IDirect3DDevice9Ex::WaitForVBlank +
+ + +

Checks an array of resources to determine if it is likely that they will cause a large stall at Draw time because the system must make the resources GPU-accessible.

+
+

An array of references that indicate the resources to check.

+

A value indicating the number of resources passed into the pResourceArray parameter up to a maximum of 65535.

+

If all the resources are in GPU-accessible memory, the method will return . The system may need to perform a remapping operation to promote the resources, but will not have to copy data.

If no allocation that comprises the resources is on disk, but at least one allocation is not in GPU-accessible memory, the method will return . The system may need to perform a copy to promote the resource.

If at least one allocation that comprises the resources is on disk, this method will return S_NOT_RESIDENT. The system may need to perform a copy to promote the resource.

+ +

This API is no more than a reasonable guess at residency, since resources may have been demoted by the time the application uses them.

The expected usage pattern is as follows. If the application determines that a set of resources are not resident, then the application will substitute a lower-LOD version of the resource and continue with rendering. The video memory manager API, offers a feature to allow the application to express that it would like these lower-LOD resources to be made more likely to stay resident in GPU-accessible memory. It is the app's responsibility to create, fill and destroy these lower-LOD versions, if it so chooses.

The application also needs to begin promotion of the higher-LOD versions when the residency check indicates that the resource is not resident in GPU-accessible memory. Since a per-process lock exists in kernel mode, a performant implementation will spawn a separate process whose sole job is to promote resources. The application communicates resource identity between the two process by means of the Sharing Resources shared surfaces API and promotes them by means of the SetPriority.

+
+ + bb174339 + HRESULT IDirect3DDevice9Ex::CheckResourceResidency([In, Buffer] IDirect3DResource9** pResourceArray,[In] unsigned int NumResources) + IDirect3DDevice9Ex::CheckResourceResidency +
+ + +

Checks an array of resources to determine if it is likely that they will cause a large stall at Draw time because the system must make the resources GPU-accessible.

+
+

An array of references that indicate the resources to check.

+

A value indicating the number of resources passed into the pResourceArray parameter up to a maximum of 65535.

+

If all the resources are in GPU-accessible memory, the method will return . The system may need to perform a remapping operation to promote the resources, but will not have to copy data.

If no allocation that comprises the resources is on disk, but at least one allocation is not in GPU-accessible memory, the method will return . The system may need to perform a copy to promote the resource.

If at least one allocation that comprises the resources is on disk, this method will return S_NOT_RESIDENT. The system may need to perform a copy to promote the resource.

+ +

This API is no more than a reasonable guess at residency, since resources may have been demoted by the time the application uses them.

The expected usage pattern is as follows. If the application determines that a set of resources are not resident, then the application will substitute a lower-LOD version of the resource and continue with rendering. The video memory manager API, offers a feature to allow the application to express that it would like these lower-LOD resources to be made more likely to stay resident in GPU-accessible memory. It is the app's responsibility to create, fill and destroy these lower-LOD versions, if it so chooses.

The application also needs to begin promotion of the higher-LOD versions when the residency check indicates that the resource is not resident in GPU-accessible memory. Since a per-process lock exists in kernel mode, a performant implementation will spawn a separate process whose sole job is to promote resources. The application communicates resource identity between the two process by means of the Sharing Resources shared surfaces API and promotes them by means of the SetPriority.

+
+ + bb174339 + HRESULT IDirect3DDevice9Ex::CheckResourceResidency([In, Buffer] IDirect3DResource9** pResourceArray,[In] unsigned int NumResources) + IDirect3DDevice9Ex::CheckResourceResidency +
+ + +

Set the number of frames that the system is allowed to queue for rendering.

+
+

The maximum number of back buffer frames that a driver can queue. The value is typically 3, but can range from 1 to 20. A value of 0 will reset latency to the default. For multi-head devices, MaxLatency is specified per-head.

+

Possible return values include: or (see D3DERR).

+ +

Frame latency is the number of frames that are allowed to be stored in a queue, before submission for rendering. Latency is often used to control how the CPU chooses between responding to user input and frames that are in the render queue.

It is often beneficial for applications that have no user input (for example, video playback) to queue more than 3 frames of data.

+
+ + bb174347 + HRESULT IDirect3DDevice9Ex::SetMaximumFrameLatency([In] unsigned int MaxLatency) + IDirect3DDevice9Ex::SetMaximumFrameLatency +
+ + +

Retrieves the number of frames of data that the system is allowed to queue.

+
+

Returns the number of frames that can be queued for render. The value is typically 3, but can range from 1 to 20.

+

Possible return values include: , , , , , or (see D3DERR).

+ +

Frame latency is the number of frames that are allowed to be stored in a queue, before submission for rendering. Latency is often used to control how the CPU chooses between responding to user input and frames that are in the render queue.

It is often beneficial for applications that have no user input (for example, video playback) to queue more than 3 frames of data.

+
+ + bb174342 + HRESULT IDirect3DDevice9Ex::GetMaximumFrameLatency([Out] unsigned int* pMaxLatency) + IDirect3DDevice9Ex::GetMaximumFrameLatency +
+ + +

Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.

+
+

The destination window handle to check for occlusion. When this parameter is null, is returned when another device has fullscreen ownership. When the window handle is not null, window's client area is checked for occlusion. A window is occluded if any part of it is obscured by another application.

+

Possible return values include: , , , , or (see D3DERR), or , or (see S_PRESENT).

+ +

This method replaces , which always returns in Direct3D 9Ex applications.

We recommend not to call CheckDeviceState every frame. Instead, call CheckDeviceState only if the method returns a failure code.

See Lost Device Behavior Changes for more information about lost, hung, and removed devices.

+
+ + bb174338 + HRESULT IDirect3DDevice9Ex::CheckDeviceState([In] HWND hDestinationWindow) + IDirect3DDevice9Ex::CheckDeviceState +
+ + +

Creates a render-target surface.

+
+

Width of the render-target surface, in pixels.

+

Height of the render-target surface, in pixels.

+

Member of the enumerated type, describing the format of the render target.

+

Member of the enumerated type, which describes the multisampling buffer type. This parameter specifies the antialiasing type for this render target. When this surface is passed to , its multisample type must be the same as that of the depth-stencil set by .

+

Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by . Passing a larger value returns the error, . The MultisampleQuality values of paired render targets, depth stencil surfaces, and the multisample type must all match.

+

Render targets are not lockable unless the application specifies TRUE for Lockable.

Note that lockable render targets reduce performance on some graphics hardware. The readback performance (moving data from video memory to system memory) depends on the type of hardware used (AGP vs. PCI Express) and is usually far lower than upload performance (moving data from system to video memory). If you need read access to render targets, use GetRenderTargetData instead of lockable render targets.

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

Combination of one or more constants which can be OR'd together. Value of 0 indicates no usage.

+

Address of a reference to an interface.

+ +

Render-target surfaces are placed in the memory class.

The creation of lockable, multisampled render targets is not supported.

+
+ + bb509713 + HRESULT IDirect3DDevice9Ex::CreateRenderTargetEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Lockable,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + IDirect3DDevice9Ex::CreateRenderTargetEx +
+ + +

Create an off-screen surface.

+
+

Width of the surface.

+

Height of the surface.

+

Format of the surface. See .

+

Surface pool type. See .

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

Combination of one or more constants which can be OR'd together. Value of 0 indicates no usage.

+

Pointer to the interface created.

+ +

will return a surface that has identical characteristics to a surface created by the DirectX 8.x method CreateImageSurface.

is the appropriate pool for use with the and .

is not allowed when creating an offscreen plain surface. For more information about memory pools, see .

Off-screen plain surfaces are always lockable, regardless of their pool types.

+
+ + bb509712 + HRESULT IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx +
+ + +

Creates a depth-stencil surface.

+
+

Width of the depth-stencil surface, in pixels.

+

Height of the depth-stencil surface, in pixels.

+

Member of the enumerated type, describing the format of the depth-stencil surface. This value must be one of the enumerated depth-stencil formats for this device.

+

Member of the enumerated type, describing the multisampling buffer type. This value must be one of the allowed multisample types. When this surface is passed to , its multisample type must be the same as that of the render target set by .

+

Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by . Passing a larger value returns the error . The MultisampleQuality values of paired render targets, depth stencil surfaces, and the MultiSample type must all match.

+

Set this flag to TRUE to enable z-buffer discarding, and otherwise. If this flag is set, the contents of the depth stencil buffer will be invalid after calling either or with a different depth surface.

This flag has the same behavior as the constant, , in .

+

Reserved. Set this parameter to null. This parameter can be used in Direct3D 9 for Windows Vista to share resources.

+

Combination of one or more constants which can be OR'd together. Value of 0 indicates no usage.

+

Address of a reference to an interface, representing the created depth-stencil surface resource.

+ +

The memory class of the depth-stencil buffer is always .

+
+ + bb509711 + HRESULT IDirect3DDevice9Ex::CreateDepthStencilSurfaceEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Discard,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + IDirect3DDevice9Ex::CreateDepthStencilSurfaceEx +
+ + +

Resets the type, size, and format of the swap chain with all other surfaces persistent.

+
+

Pointer to a structure, describing the new presentation parameters. This value cannot be null.

When switching to full-screen mode, Direct3D will try to find a desktop format that matches the back buffer format, so that back buffer and front buffer formats will be identical (to eliminate the need for color conversion).

When this method returns:

  • BackBufferCount, BackBufferWidth, and BackBufferHeight are set to zero.
  • BackBufferFormat is set to for windowed mode only; a full-screen mode must specify a format.
+

Pointer to a structure that describes the properties of the desired display mode. This value must be provided for fullscreen applications, but can be null for windowed applications.

+

The method can return: , or (see D3DERR).

If this method returns or then the application can only call , or release the interface reference; any other API call will cause an exception.

+ +

If a call to fails, the device will be placed in the lost state (as indicated by a return value of from a call to ). Refer to and Lost Device Behavior Changes for further information concerning the use of in the context of lost devices.

Unlike previous versions of DirectX, calling does not cause surfaces, textures or state information to be lost.

Pixel shaders and vertex shaders survive calls for Direct3D 9. They do not need to be re-created explicitly by the application.

There are two different types of swap chains: full-screen or windowed. If the new swap chain is full-screen, the adapter will be placed in the display mode that matches the new size.

Applications can expect messages to be sent to them during this call (for example, before this call is returned); applications should take precautions not to call into Direct3D at this time.

A call to will fail if called on a different thread than that used to create the device being reset.

can be specified for the windowed mode back buffer format when calling , , and . This means the application does not have to query the current desktop format before calling for windowed mode. For full-screen mode, the back buffer format must be specified. Setting BackBufferCount equal to zero (BackBufferCount = 0) results in one back buffer.

When trying to reset more than one display adapter in a group, set pPresentationParameters to point to an array of structures, one for each display in the adapter group.

If a multihead device was created with , requires an array of structures wherein each structure must specify a full-screen display. To switch back to windowed mode, the application must destroy the device and re-create a non-multihead device in windowed mode.

+
+ + bb174344 + HRESULT IDirect3DDevice9Ex::ResetEx([In] D3DPRESENT_PARAMETERS* pPresentationParameters,[In] void* pFullscreenDisplayMode) + IDirect3DDevice9Ex::ResetEx +
+ + +

Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.

+
+

An unsigned integer specifying the swap chain.

+

Pointer to a indicating the type of screen rotation the application will do. The value returned through this reference is important when the flag is used; otherwise, it can be set to null.

+

Pointer to a structure containing data about the display mode of the adapter. As opposed to the display mode of the device, which may not be active if the device does not own full-screen mode. Can be set to null.

+ + bb509714 + HRESULT IDirect3DDevice9Ex::GetDisplayModeEx([In] unsigned int iSwapChain,[Out] D3DDISPLAYMODEEX* pMode,[In] void* pRotation) + IDirect3DDevice9Ex::GetDisplayModeEx +
+ + +

Get or sets the priority of the GPU thread.

+
+ +

Use to set the priority of a thread.

This method will retrieve the priority of the thread stored with the Direct3D device even if it was created with the flag.

+
+ + bb174341 + GetGPUThreadPriority / SetGPUThreadPriority + GetGPUThreadPriority + HRESULT IDirect3DDevice9Ex::GetGPUThreadPriority([Out] int* pPriority) +
+ + +

Retrieves or sets the number of frames of data that the system is allowed to queue.

+
+ +

Frame latency is the number of frames that are allowed to be stored in a queue, before submission for rendering. Latency is often used to control how the CPU chooses between responding to user input and frames that are in the render queue.

It is often beneficial for applications that have no user input (for example, video playback) to queue more than 3 frames of data.

+
+ + bb174342 + GetMaximumFrameLatency / SetMaximumFrameLatency + GetMaximumFrameLatency + HRESULT IDirect3DDevice9Ex::GetMaximumFrameLatency([Out] unsigned int* pMaxLatency) +
+ + +

Applications use the methods of the interface to create Microsoft Direct3D objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device.

+
+ +

The interface is obtained by calling the Direct3DCreate9 function.

The LPDIRECT3D9 and PDIRECT3D9 types are defined as references to the interface.

typedef struct  *LPDIRECT3D9, *PDIRECT3D9;
+
+ + bb174300 + IDirect3D9 + IDirect3D9 +
+ + + Create an IDirect3D9 object and return an interface to it. + + + The Direct3D object is the first Direct3D COM object that your graphical application needs to create and the last object that your application needs to release. Functions for enumerating and retrieving capabilities of a device are accessible through the Direct3D object. This enables applications to select devices without creating them. Create an IDirect3D9 object as shown here: + LPDIRECT3D9 g_pD3D = NULL; if( NULL == (g_pD3D = Direct3DCreate9(D3D_SDK_VERSION))) return E_FAIL; + + The IDirect3D9 interface supports enumeration of active display adapters and allows the creation of objects. If the user dynamically adds adapters (either by adding devices to the desktop, or by hot-docking a laptop), those devices will not be included in the enumeration. Creating a new IDirect3D9 interface will expose the new devices. D3D_SDK_VERSION is passed to this function to ensure that the header files against which an application is compiled match the version of the runtime DLL's that are installed on the machine. D3D_SDK_VERSION is only changed in the runtime when a header change (or other code change) would require an application to be rebuilt. If this function fails, it indicates that the header file version does not match the runtime DLL version. For an example, see {{Creating a Device (Direct3D 9)}}. + + + + + Checks the version of D3DX runtime against the version of this library.. + + + + + Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode. + + The adapter. + Type of the device. + The adapter format. + The render target format. + The depth stencil format. + If the depth-stencil format is compatible with the render-target format in the display mode, this method returns true + HRESULT IDirect3D9::CheckDepthStencilMatch([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT AdapterFormat,[In] D3DFORMAT RenderTargetFormat,[In] D3DFORMAT DepthStencilFormat) + + + + Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode. + + The adapter. + Type of the device. + The adapter format. + The render target format. + The depth stencil format. + The result. + + If the depth-stencil format is compatible with the render-target format in the display mode, this method returns true + + HRESULT IDirect3D9::CheckDepthStencilMatch([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT AdapterFormat,[In] D3DFORMAT RenderTargetFormat,[In] D3DFORMAT DepthStencilFormat) + + + + Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter. + + The adapter. + Type of the device. + The adapter format. + The usage. + Type of the resource. + The check format. + + If the format is compatible with the specified device for the requested usage, this method returns true + + HRESULT IDirect3D9::CheckDeviceFormat([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT AdapterFormat,[In] unsigned int Usage,[In] D3DRESOURCETYPE RType,[In] D3DFORMAT CheckFormat) + + + + Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter. + + The adapter. + Type of the device. + The adapter format. + The usage. + Type of the resource. + The check format. + The result. + If the format is compatible with the specified device for the requested usage, this method returns true + HRESULT IDirect3D9::CheckDeviceFormat([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT AdapterFormat,[In] unsigned int Usage,[In] D3DRESOURCETYPE RType,[In] D3DFORMAT CheckFormat) + + + + Tests the device to see if it supports conversion from one display format to another. + + The adapter. + Type of the device. + The source format. + The target format. + + True if the method succeeds. + + HRESULT IDirect3D9::CheckDeviceFormatConversion([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SourceFormat,[In] D3DFORMAT TargetFormat) + + + + Tests the device to see if it supports conversion from one display format to another. + + The adapter. + Type of the device. + The source format. + The target format. + The result. + True if the method succeeds. + HRESULT IDirect3D9::CheckDeviceFormatConversion([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SourceFormat,[In] D3DFORMAT TargetFormat) + + + + Determines if a multisampling technique is available on this device. + + The adapter. + Type of the device. + The surface format. + if set to true [windowed]. + Type of the multisample. + + f the device can perform the specified multisampling method, this method returns true + + HRESULT IDirect3D9::CheckDeviceMultiSampleType([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SurfaceFormat,[In] BOOL Windowed,[In] D3DMULTISAMPLE_TYPE MultiSampleType,[Out] unsigned int* pQualityLevels) + + + + Determines if a multisampling technique is available on this device. + + The adapter. + Type of the device. + The surface format. + if set to true [windowed]. + Type of the multisample. + The quality levels. + + f the device can perform the specified multisampling method, this method returns true + + HRESULT IDirect3D9::CheckDeviceMultiSampleType([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SurfaceFormat,[In] BOOL Windowed,[In] D3DMULTISAMPLE_TYPE MultiSampleType,[Out] unsigned int* pQualityLevels) + + + + Determines if a multisampling technique is available on this device. + + The adapter. + Type of the device. + The surface format. + if set to true [windowed]. + Type of the multisample. + The quality levels. + The result. + f the device can perform the specified multisampling method, this method returns true + HRESULT IDirect3D9::CheckDeviceMultiSampleType([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SurfaceFormat,[In] BOOL Windowed,[In] D3DMULTISAMPLE_TYPE MultiSampleType,[Out] unsigned int* pQualityLevels) + + + + Verifies whether a hardware accelerated device type can be used on this adapter. + + The adapter. + Type of the device. + The adapter format. + The back buffer format. + if set to true [windowed]. + + true if the device can be used on this adapter + + HRESULT IDirect3D9::CheckDeviceType([In] unsigned int Adapter,[In] D3DDEVTYPE DevType,[In] D3DFORMAT AdapterFormat,[In] D3DFORMAT BackBufferFormat,[In] BOOL bWindowed) + + + + Verifies whether a hardware accelerated device type can be used on this adapter. + + The adapter. + Type of the device. + The adapter format. + The back buffer format. + if set to true [windowed]. + The result. + true if the device can be used on this adapter + HRESULT IDirect3D9::CheckDeviceType([In] unsigned int Adapter,[In] D3DDEVTYPE DevType,[In] D3DFORMAT AdapterFormat,[In] D3DFORMAT BackBufferFormat,[In] BOOL bWindowed) + + + + Get the physical display adapters present in the system when this was instantiated. + + The adapter. + The physical display adapters + HRESULT IDirect3D9::GetAdapterIdentifier([In] unsigned int Adapter,[In] unsigned int Flags,[Out] D3DADAPTER_IDENTIFIER9* pIdentifier) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Registers a pluggable software device. Software devices provide software rasterization enabling applications to access a variety of software rasterizers.

+
+

Pointer to the initialization function for the software device to be registered.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: . The method call is invalid. For example, a method's parameter may have an invalid value: .

+ +

If the user's computer provides no special hardware acceleration for 3D operations, your application might emulate 3D hardware in software. Software rasterization devices emulate the functions of color 3D hardware in software. A software device runs more slowly than a hal. However, software devices take advantage of any special instructions supported by the CPU to increase performance. Instruction sets include the AMD 3DNow! instruction set on some AMD processors and the MMX instruction set supported by many Intel processors. Direct3D uses the 3D-Now! instruction set to accelerate transformation and lighting operations and the MMX instruction set to accelerate rasterization.

Software devices communicate with Direct3D through an interface similar to the hardware device driver interface (DDI).

Software devices are loaded by the application and registered with the object. Direct3D uses the software device for rendering.

The Direct3D Driver Development Kit (DDK) provides the documentation and headers for developing pluggable software devices.

+
+ + bb174321 + HRESULT IDirect3D9::RegisterSoftwareDevice([In] void* pInitializeFunction) + IDirect3D9::RegisterSoftwareDevice +
+ + +

Returns the number of adapters on the system.

+
+

A UINT value that denotes the number of adapters on the system at the time this interface was instantiated.

+ + bb174315 + unsigned int IDirect3D9::GetAdapterCount() + IDirect3D9::GetAdapterCount +
+ + +

Describes the physical display adapters present in the system when the interface was instantiated.

+
+ No documentation. + No documentation. + No documentation. + + bb174317 + HRESULT IDirect3D9::GetAdapterIdentifier([In] unsigned int Adapter,[In] unsigned int Flags,[Out] D3DADAPTER_IDENTIFIER9* pIdentifier) + IDirect3D9::GetAdapterIdentifier +
+ + +

Returns the number of display modes available on this adapter.

+
+

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Identifies the format of the surface type using . Use EnumAdapterModes to see the valid formats.

+

This method returns the number of display modes on this adapter or zero if Adapter is greater than or equal to the number of adapters on the system.

+ + bb174318 + unsigned int IDirect3D9::GetAdapterModeCount([In] unsigned int Adapter,[In] D3DFORMAT Format) + IDirect3D9::GetAdapterModeCount +
+ + +

Queries the device to determine whether the specified adapter supports the requested format and display mode. This method could be used in a loop to enumerate all the available adapter modes.

+
+

Ordinal number denoting the display adapter to enumerate. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns when this value equals or exceeds the number of display adapters in the system.

+

Allowable pixel formats. See Remarks.

+

Represents the display-mode index which is an unsigned integer between zero and the value returned by GetAdapterModeCount minus one.

+

A reference to the available display mode of type . See Remarks.

+ +

An application supplies a display mode and a format to EnumAdapterModes which returns a display mode. This method could be used in a loop to enumerate all available display modes.

The application specifies a format and the enumeration is restricted to those display modes that exactly match the format (alpha is ignored). Allowed formats (which are members of ) are as follows:

In addition, EnumAdapterModes treats pixel formats 565 and 555 as equivalent, and returns the correct version. The difference comes into play only when the application locks the back buffer and there is an explicit flag that the application must set in order to accomplish this.

+
+ + bb174314 + HRESULT IDirect3D9::EnumAdapterModes([In] unsigned int Adapter,[In] D3DFORMAT Format,[In] unsigned int Mode,[Out] D3DDISPLAYMODE* pMode) + IDirect3D9::EnumAdapterModes +
+ + +

Retrieves the current display mode of the adapter.

+
+

Ordinal number that denotes the display adapter to query. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Pointer to a structure, to be filled with information describing the current adapter's mode.

+ +

GetAdapterDisplayMode will not return the correct format when the display is in an extended format, such as 2:10:10:10. Instead, it returns the format X8R8G8B8.

+
+ + bb174316 + HRESULT IDirect3D9::GetAdapterDisplayMode([In] unsigned int Adapter,[Out] D3DDISPLAYMODE* pMode) + IDirect3D9::GetAdapterDisplayMode +
+ + +

Verifies whether a hardware accelerated device type can be used on this adapter.

+
+

Ordinal number denoting the display adapter to enumerate. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns when this value equals or exceeds the number of display adapters in the system.

+

Member of the enumerated type, indicating the device type to check.

+

Member of the enumerated type, indicating the format of the adapter display mode for which the device type is to be checked. For example, some devices will operate only in 16-bits-per-pixel modes.

+

Back buffer format. For more information about formats, see . This value must be one of the render-target formats. You can use GetAdapterDisplayMode to obtain the current format. For windowed applications, the back buffer format does not need to match the display mode format if the hardware supports color conversion. The set of possible back buffer formats is constrained, but the runtime will allow any valid back buffer format to be presented to any desktop format. There is the additional requirement that the device be operable in the desktop because devices typically do not operate in 8 bits per pixel modes. Full-screen applications cannot do color conversion. is allowed for windowed mode.

+

Value indicating whether the device type will be used in full-screen or windowed mode. If set to TRUE, the query is performed for windowed applications; otherwise, this value should be set .

+

If the device can be used on this adapter, is returned. is returned if Adapter equals or exceeds the number of display adapters in the system. is also returned if CheckDeviceType specified a device that does not exist. is returned if the requested back buffer format is not supported, or if hardware acceleration is not available for the specified formats.

+ +

A hal device type requires hardware acceleration. Applications can use CheckDeviceType to determine if the needed hardware and drivers are present to support a hal device.

Full-screen applications should not specify a DisplayFormat that contains an alpha channel. This will result in a failed call. Note that an alpha channel can be present in the back buffer but the two display formats must be identical in all other respects. For example, if DisplayFormat = , valid values for BackBufferFormat include and but exclude .

The following code fragment shows how you could use CheckDeviceType to test whether a certain device type can be used on this adapter.

 if(SUCCEEDED(pD3Device->CheckDeviceType(D3DADAPTER_DEFAULT,  ,  DisplayFormat,  BackBufferFormat,  bIsWindowed))) return ;	
+            // There is no HAL on this adapter using this render-target format. 	
+            // Try again, using another format.	
+            

This code returns if the device can be used on the default adapter with the specified surface format.

Using CheckDeviceType to test for compatibility between a back buffer that differs from the display format will return appropriate values. This means that the call will reflect device capabilities. If the device cannot render to the requested back-buffer format, the call will still return . If the device can render to the format, but cannot perform the color-converting presentation, the return value will also be . Applications can discover hardware support for the presentation itself by calling CheckDeviceFormatConversion. No software emulation for the color-converting presentation itself will be offered.

+
+ + bb174312 + HRESULT IDirect3D9::CheckDeviceType([In] unsigned int Adapter,[In] D3DDEVTYPE DevType,[In] D3DFORMAT AdapterFormat,[In] D3DFORMAT BackBufferFormat,[In] BOOL bWindowed) + IDirect3D9::CheckDeviceType +
+ + +

Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter.

+
+

Ordinal number denoting the display adapter to query. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns when this value equals or exceeds the number of display adapters in the system.

+

Member of the enumerated type, identifying the device type.

+

Member of the enumerated type, identifying the format of the display mode into which the adapter will be placed.

+

Requested usage options for the surface. Usage options are any combination of and D3DUSAGE_QUERY constants (only a subset of the constants are valid for CheckDeviceFormat; see the table on the page).

+

Resource type requested for use with the queried format. Member of .

+

Format of the surfaces which may be used, as defined by Usage. Member of .

+

If the format is compatible with the specified device for the requested usage, this method returns .

is returned if Adapter equals or exceeds the number of display adapters in the system, or if DeviceType is unsupported.

is returned if the format is not acceptable to the device for this usage.

+ +

Here are some examples using CheckDeviceFormat to check for hardware support of:

  • An off-screen plain surface format - Specify Usage = 0 and RType = .
  • A depth-stencil format - The following snippet tests for the passed in depth-stencil format:
      IsDepthFormatExisting(  DepthFormat,  AdapterFormat ) 	
    +            {  hr = pD3D->CheckDeviceFormat( D3DADAPTER_DEFAULT, , AdapterFormat, , , DepthFormat); return SUCCEEDED( hr );	
    +            }

    See Selecting a Device (Direct3D 9) for more detail on the enumeration process.

  • Can this texture be rendered in a particular format - Given the current display mode, this example shows how to verify that the texture format is compatible with the specific back-buffer format:
      IsTextureFormatOk(  TextureFormat,  AdapterFormat ) 	
    +            {  hr = pD3D->CheckDeviceFormat( D3DADAPTER_DEFAULT, , AdapterFormat, 0, , TextureFormat); return SUCCEEDED( hr );	
    +            }
  • Alpha blending in a pixel shader - Set Usage to . Expect this to fail for all floating-point render targets.
  • Autogeneration of mipmaps - Set Usage to . If the mipmap automatic generation fails, the application will get a non-mipmapped texture. Calling this method is considered a hint, so this method can return (a valid success code) if the only thing that fails is the mipmap generation. For more information about mipmap generation, see Automatic Generation of Mipmaps (Direct3D 9).

When migrating code from Direct3D 9 to Direct3D 10, the Direct3D 10 equivalent to CheckDeviceFormat is CheckFormatSupport.

+
+ + bb174309 + HRESULT IDirect3D9::CheckDeviceFormat([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT AdapterFormat,[In] unsigned int Usage,[In] D3DRESOURCETYPE RType,[In] D3DFORMAT CheckFormat) + IDirect3D9::CheckDeviceFormat +
+ + +

Determines if a multisampling technique is available on this device.

+
+

Ordinal number denoting the display adapter to query. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns when this value equals or exceeds the number of display adapters in the system. See Remarks.

+

Member of the enumerated type, identifying the device type.

+

Member of the enumerated type that specifies the format of the surface to be multisampled. For more information, see Remarks.

+

bool value. Specify TRUE to inquire about windowed multisampling, and specify to inquire about full-screen multisampling.

+

Member of the enumerated type, identifying the multisampling technique to test.

+

pQualityLevels returns the number of device-specific sampling variations available with the given sample type. For example, if the returned value is 3, then quality levels 0, 1 and 2 can be used when creating resources with the given sample count. The meanings of these quality levels are defined by the device manufacturer and cannot be queried through D3D. For example, for a particular device different quality levels at a fixed sample count might refer to different spatial layouts of the sample locations or different methods of resolving. This can be null if it is not necessary to return the quality levels.

+

If the device can perform the specified multisampling method, this method returns . is returned if the Adapter or MultiSampleType parameters are invalid. This method returns if the queried multisampling technique is not supported by this device. is returned if DeviceType does not apply to this adapter.

+ +

This method is intended for use with both render-target and depth-stencil surfaces because you must create both surfaces multisampled if you want to use them together.

The following code fragment shows how you could use CheckDeviceMultiSampleType to test for devices that support a specific multisampling method.

 if( SUCCEEDED(pD3D->CheckDeviceMultiSampleType( pCaps->AdapterOrdinal,  pCaps->DeviceType, BackBufferFormat,  , , null ) ) && SUCCEEDED(pD3D->CheckDeviceMultiSampleType( pCaps->AdapterOrdinal,  pCaps->DeviceType, DepthBufferFormat,  , , null ) ) ) return ;	
+            

The preceding code will return if the device supports the full-screen multisampling method with the surface format.

See the remarks in for additional information on working with and setting multisample types and quality levels.

+
+ + bb174311 + HRESULT IDirect3D9::CheckDeviceMultiSampleType([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SurfaceFormat,[In] BOOL Windowed,[In] D3DMULTISAMPLE_TYPE MultiSampleType,[Out] unsigned int* pQualityLevels) + IDirect3D9::CheckDeviceMultiSampleType +
+ + +

Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode.

+
+

Ordinal number denoting the display adapter to query. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Member of the enumerated type, identifying the device type.

+

Member of the enumerated type, identifying the format of the display mode into which the adapter will be placed.

+

Member of the enumerated type, identifying the format of the render-target surface to be tested.

+

Member of the enumerated type, identifying the format of the depth-stencil surface to be tested.

+

If the depth-stencil format is compatible with the render-target format in the display mode, this method returns . can be returned if one or more of the parameters is invalid. If a depth-stencil format is not compatible with the render target in the display mode, then this method returns .

+ +

This method is provided to enable applications to work with hardware requiring that certain depth formats can only work with certain render-target formats.

The behavior of this method has been changed for DirectX 8.1. This method now pays attention to the D24x8 and D32 depth-stencil formats. The previous version assumed that these formats would always be usable with 32- or 16-bit render targets. This method will now return for these formats only if the device is capable of mixed-depth operations.

The following code fragment shows how you could use CheckDeviceFormat to validate a depth stencil format.

  IsDepthFormatOk( DepthFormat,   AdapterFormat,   BackBufferFormat)	
+            { // Verify that the depth format exists  hr = pD3D->CheckDeviceFormat(D3DADAPTER_DEFAULT, , AdapterFormat, , , DepthFormat); if(FAILED(hr)) return ; // Verify that the depth format is compatible hr = pD3D->CheckDepthStencilMatch(D3DADAPTER_DEFAULT, , AdapterFormat, BackBufferFormat, DepthFormat); return SUCCEEDED(hr); }	
+            

The preceding call will return if DepthFormat cannot be used in conjunction with AdapterFormat and BackBufferFormat.

+
+ + bb174308 + HRESULT IDirect3D9::CheckDepthStencilMatch([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT AdapterFormat,[In] D3DFORMAT RenderTargetFormat,[In] D3DFORMAT DepthStencilFormat) + IDirect3D9::CheckDepthStencilMatch +
+ + +

Tests the device to see if it supports conversion from one display format to another.

+
+

Display adapter ordinal number. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns when this value equals or exceeds the number of display adapters in the system.

+

Device type. Member of the enumerated type.

+

Source adapter format. Member of the enumerated type.

+

Target adapter format. Member of the enumerated type.

+

If the method succeeds, the return value is . If the method fails, the return value is . The method will return when the hardware does not support conversion between the two formats.

+ +

Using CheckDeviceType to test for compatibility between a back buffer that differs from the display format will return appropriate values. This means that the call will reflect device capabilities. If the device cannot render to the requested back buffer format, the call will still return . If the device can render to the format, but cannot perform the color-converting presentation, the return value will also be . Applications can discover hardware support for the presentation itself by calling CheckDeviceFormatConversion. No software emulation for the color-converting presentation itself will be offered.

CheckDeviceFormatConversion can also be used to determine which combinations of source surface formats and destination surface formats are permissible in calls to StretchRect.

Color conversion is restricted to the following source and target formats.

  • The source format must be a FOURCC format or a valid back buffer format. For a list of these, see FourCC Formats and BackBuffer or Display Formats.
  • The target format must be one of these unsigned formats:

    ?

+
+ + bb174310 + HRESULT IDirect3D9::CheckDeviceFormatConversion([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] D3DFORMAT SourceFormat,[In] D3DFORMAT TargetFormat) + IDirect3D9::CheckDeviceFormatConversion +
+ + +

Retrieves device-specific information about a device.

+
+

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Member of the enumerated type. Denotes the device type.

+

Pointer to a structure to be filled with information describing the capabilities of the device.

+ +

The application should not assume the persistence of vertex processing capabilities across Direct3D device objects. The particular capabilities that a physical device exposes may depend on parameters supplied to CreateDevice. For example, the capabilities may yield different vertex processing capabilities before and after creating a Direct3D Device Object with hardware vertex processing enabled. For more information see the description of .

+
+ + bb174320 + HRESULT IDirect3D9::GetDeviceCaps([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[Out] D3DCAPS9* pCaps) + IDirect3D9::GetDeviceCaps +
+ + +

Returns the handle of the monitor associated with the Direct3D object.

+
+

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Handle of the monitor associated with the Direct3D object.

+ +

As shown in the following code fragment, which illustrates how to obtain a handle to the monitor associated with a given device, use GetDirect3D to return the Direct3D enumerator from the device and use GetCreationParameters to retrieve the value for Adapter.

 if( FAILED( pDevice->GetCreationParameters(  &Parameters ) ) ) return ; if( FAILED( pDevice->GetDirect3D(&pD3D) ) ) return ; hMonitor = pD3D->GetAdapterMonitor(Parameters.AdapterOrdinal); pD3D->Release();	
+            
+
+ + bb174319 + HMONITOR IDirect3D9::GetAdapterMonitor([In] unsigned int Adapter) + IDirect3D9::GetAdapterMonitor +
+ + +

Creates a device to represent the display adapter.

+
+

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Member of the enumerated type that denotes the desired device type. If the desired device type is not available, the method will fail.

+

The focus window alerts Direct3D when an application switches from foreground mode to background mode. See Remarks.

  • For full-screen mode, the window specified must be a top-level window.
  • For windowed mode, this parameter may be null only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-null value.
+

Combination of one or more options that control device creation. For more information, see .

+

Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies , pPresentationParameters is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created.

For Windows 2000 and Windows XP, the full-screen device display refresh rate is set in the following order:

  1. User-specified nonzero ForcedRefreshRate registry key, if supported by the device.
  2. Application-specified nonzero refresh rate value in the presentation parameter.
  3. Refresh rate of the latest desktop, if supported by the device.
  4. 75 hertz if supported by the device.
  5. 60 hertz if supported by the device.
  6. Device default.

An unsupported refresh rate will default to the closest supported refresh rate below it. For example, if the application specifies 63 hertz, 60 hertz will be used. There are no supported refresh rates below 57 hertz.

pPresentationParameters is both an input and an output parameter. Calling this method may change several members including:

  • If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns.
  • If BackBufferFormat equals before the method is called, it will be changed when the method returns.
+

Address of a reference to the returned interface, which represents the created device.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , , .

+ +

This method returns a fully working device interface, set to the required display mode (or windowed), and allocated with the appropriate back buffers. To begin rendering, the application needs only to create and set a depth buffer (assuming EnableAutoDepthStencil is in ).

When you create a Direct3D device, you supply two different window parameters: a focus window (hFocusWindow) and a device window (the hDeviceWindow in ). The purpose of each window is:

  • The focus window alerts Direct3D when an application switches from foreground mode to background mode (via Alt-Tab, a mouse click, or some other method). A single focus window is shared by each device created by an application.
  • The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during Present.

This method should not be run during the handling of WM_CREATE. An application should never pass a window handle to Direct3D while handling WM_CREATE. Any call to create, release, or reset the device must be done using the same thread as the window procedure of the focus window.

Note that , , and are mutually exclusive flags, and at least one of these vertex processing flags must be specified when calling this method.

Back buffers created as part of the device are only lockable if is specified in the presentation parameters. (Multisampled back buffers and depth surfaces are never lockable.)

The methods Reset, , and TestCooperativeLevel must be called from the same thread that used this method to create a device.

can be specified for the windowed mode back buffer format when calling CreateDevice, Reset, and CreateAdditionalSwapChain. This means the application does not have to query the current desktop format before calling CreateDevice for windowed mode. For full-screen mode, the back buffer format must be specified.

If you attempt to create a device on a 0x0 sized window, CreateDevice will fail.

+
+ + bb174313 + HRESULT IDirect3D9::CreateDevice([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] HWND hFocusWindow,[In] D3DCREATE BehaviorFlags,[In, Buffer] D3DPRESENT_PARAMETERS* pPresentationParameters,[Out, Fast] IDirect3DDevice9** ppReturnedDeviceInterface) + IDirect3D9::CreateDevice +
+ + + Gets the adapters. + + + + +

Returns the number of adapters on the system.

+
+ + bb174315 + GetAdapterCount + GetAdapterCount + unsigned int IDirect3D9::GetAdapterCount() +
+ + +

Applications use the methods of the interface (which inherits from ) to create Microsoft Direct3D 9Ex objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device and is available when the underlying device implementation is compliant with Windows Vista.

+
+ +

The interface is obtained by calling the Direct3DCreate9Ex function.

The LPDIRECT3D9EX and PDIRECT3D9EX types are defined as references to the interface:

 typedef struct  *LPDIRECT3D9EX, *PDIRECT3D9EX;	
+            
+
+ + bb174301 + IDirect3D9Ex + IDirect3D9Ex +
+ + + Creates an object and returns an interface to it. + + + The object is the first object that the application creates and the last object that the application releases. Functions for enumerating and retrieving capabilities of a device are accessible through the IDirect3D9Ex object. This enables applications to select devices without creating them. The interface supports enumeration of active display adapters and allows the creation of IDirect3D9Ex objects. If the user dynamically adds adapters (either by adding devices to the desktop, or by hot-docking a laptop), these devices are not included in the enumeration. Creating a new IDirect3D9Ex interface will expose the new devices. Pass the D3D_SDK_VERSION flag to this function to ensure that header files used in the compiled application match the version of the installed runtime DLLs. D3D_SDK_VERSION is changed in the runtime only when a header or another code change would require rebuilding the application. If this function fails, it indicates that the versions of the header file and the runtime DLL do not match. Note??Direct3DCreate9Ex is supported only in Windows Vista, Windows Server 2008, and Windows 7. Earlier versions of the D3D9.dll library do not include Direct3D9Ex and Direct3DCreate9Ex. + + D3DERR_NOTAVAILABLE if Direct3DEx features are not supported (no WDDM driver is installed) or if the SDKVersion does not match the version of the DLL. D3DERR_OUTOFMEMORY if out-of-memory conditions are detected when creating the enumerator object. S_OK if the creation of the enumerator object is successful. + HRESULT Direct3DCreate9Ex([None] int SDKVersion,[None] IDirect3D9Ex** arg1) + + + + Retrieves the current display mode and rotation settings of the adapter. + + The adapter. + structure containing data about the display mode of the adapter + HRESULT IDirect3D9Ex::GetAdapterDisplayModeEx([In] unsigned int Adapter,[Out] D3DDISPLAYMODEEX* pMode,[Out] D3DDISPLAYROTATION* pRotation) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the number of display modes available.

+
+

Ordinal number denoting the display adapter from which to retrieve the display mode count.

+

Specifies the characteristics of the desired display mode. See .

+

The number of display modes available. A return of value zero from this method is an indication that no such display mode is supported or simply this monitor is no longer available.

+ +

Events such as display mode changes on other heads of the same hardware, monitor change or its connection status change, and desktop extension/unextension could all affect the number of display mode available.

To fullscreen applications, returned from PresentEx or CheckDeviceState is the indication of display mode setting failure due to those events.

To increase the chance of setting a currently available display mode successfully, fullscreen applications should try to requery the available display mode list upon receiving .

+
+ + bb174306 + unsigned int IDirect3D9Ex::GetAdapterModeCountEx([In] unsigned int Adapter,[In] const D3DDISPLAYMODEFILTER* pFilter) + IDirect3D9Ex::GetAdapterModeCountEx +
+ + +

This method returns the actual display mode info based on the given mode index.

+
+

Ordinal number denoting the display adapter to enumerate. D3DADAPTER_DEFAULT is always the primary display adapter. This method returns when this value equals or exceeds the number of display adapters in the system.

+

See .

+

Represents the display-mode index which is an unsigned integer between zero and the value returned by GetAdapterModeCount minus one.

+

A reference to the available display mode of type .

+ + bb174303 + HRESULT IDirect3D9Ex::EnumAdapterModesEx([In] unsigned int Adapter,[In] const D3DDISPLAYMODEFILTER* pFilter,[In] unsigned int Mode,[Out] D3DDISPLAYMODEEX* pMode) + IDirect3D9Ex::EnumAdapterModesEx +
+ + +

Retrieves the current display mode and rotation settings of the adapter.

+
+

Ordinal number that denotes the display adapter to query. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Pointer to a structure indicating the type of screen rotation the application will do. The value returned through this reference is important when the flag is used; otherwise, it can be set to null.

+

Pointer to a structure containing data about the display mode of the adapter. As opposed to the display mode of the device, which may not be active if the device does not own full-screen mode. Can be set to null.

+ +

GetAdapterDisplayModeEx does not return the correct format when the display is in an extended format, such as 2:10:10:10. Instead, it returns the format X8R8G8B8.

To windowed applications, a value of returned from PresentEx or CheckDeviceState indicates that the display mode changed and that the current display mode might have a different format. To avoid a color-converting Present blt, windowed applications can optionally get new display mode information by using this method and adjusting its swap chain format accordingly. This method returns if this head is no longer part of the desktop or if the monitor is disconnected.

+
+ + bb174304 + HRESULT IDirect3D9Ex::GetAdapterDisplayModeEx([In] unsigned int Adapter,[Out] D3DDISPLAYMODEEX* pMode,[Out] D3DDISPLAYROTATION* pRotation) + IDirect3D9Ex::GetAdapterDisplayModeEx +
+ + +

Creates a device to represent the display adapter.

+
+

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter.

+

Specifies the type of device. See . If the desired device type is not available, the method will fail.

+

The focus window alerts Direct3D when an application switches from foreground mode to background mode. For full-screen mode, the window specified must be a top-level window. For windowed mode, this parameter may be null only if the hDeviceWindow member of pPresentationParameters is set to a valid, non-null value.

+

Combination of one or more options (see ) that control device creation.

+

Pointer to a structure, describing the presentation parameters for the device to be created. If BehaviorFlags specifies , this parameter is an array. Regardless of the number of heads that exist, only one depth/stencil surface is automatically created.

This parameter is both an input and an output parameter. Calling this method may change several members including:

  • If BackBufferCount, BackBufferWidth, and BackBufferHeight are 0 before the method is called, they will be changed when the method returns.
  • If BackBufferFormat equals before the method is called, it will be changed when the method returns.
+

The display mode for when the device is set to fullscreen. See . If BehaviorFlags specifies , this parameter is an array. This parameter must be null for windowed mode.

+

Address of a reference to the returned , which represents the created device.

+

This method returns when rendering device along with swapchain buffers are created successfully. is returned when any error other than invalid caller input is encountered.

+ + bb174302 + HRESULT IDirect3D9Ex::CreateDeviceEx([In] unsigned int Adapter,[In] D3DDEVTYPE DeviceType,[In] HWND hFocusWindow,[In] unsigned int BehaviorFlags,[In, Buffer] D3DPRESENT_PARAMETERS* pPresentationParameters,[In, Buffer, Optional] D3DDISPLAYMODEEX* pFullscreenDisplayMode,[Out, Fast] IDirect3DDevice9Ex** ppReturnedDeviceInterface) + IDirect3D9Ex::CreateDeviceEx +
+ + +

This method returns a unique identifier for the adapter that is specific to the adapter hardware. Applications can use this identifier to define robust mappings across various APIs (Direct3D 9, DXGI).

+
+

Ordinal number denoting the display adapter from which to retrieve the .

+

A unique identifier for the given adapter.

+ + bb174305 + HRESULT IDirect3D9Ex::GetAdapterLUID([In] unsigned int Adapter,[Out] LUID* pLUID) + IDirect3D9Ex::GetAdapterLUID +
+ + + Gets a collection of installed extended adapters. + + + + + A collection of + + + + + Driver levels support. + + None + + + + Supports for Direct3D7. + + + + + Supports for Direct3D8. + + + + + Supports for Direct3D9. + + + + +

Used to set and query effects, and to choose techniques. An effect object can contain multiple techniques to render the same effect.

+
+ +

The interface is obtained by calling , , or .

The LPD3DXEFFECT type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXEFFECT;	
+            
+
+ + bb205788 + ID3DXEffect + ID3DXEffect +
+ + + Starts an active technique. + + The number of passes needed to render the current technique. + HRESULT ID3DXEffect::Begin([Out] unsigned int* pPasses,[In] D3DXFX Flags) + + + + Compiles an effect from a file. + + The device. + Name of the file. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a file. + + The device. + Name of the file. + The preprocessor defines. + The include file. + The skip constants. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a file. + + The device. + Name of the file. + The preprocessor defines. + The include file. + The skip constants. + The flags. + The pool. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a memory buffer. + + The device. + The buffer. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a memory buffer. + + The device. + The buffer. + The preprocessor defines. + The include file. + The skip constants. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a memory buffer. + + The device. + The buffer. + The preprocessor defines. + The include file. + The skip constants. + The flags. + The pool. + An + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a stream. + + The device. + The stream. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a stream. + + The device. + The stream. + The preprocessor defines. + The include file. + The skip constants. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a stream. + + The device. + The stream. + The preprocessor defines. + The include file. + The skip constants. + The flags. + The pool. + An + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a string. + + The device. + The source data. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a string. + + The device. + The source data. + The preprocessor defines. + The include file. + The skip constants. + The flags. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Compiles an effect from a string. + + The device. + The source data. + The preprocessor defines. + The include file. + The skip constants. + The flags. + The pool. + + An + + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + + + + Set a contiguous range of shader constants with a memory copy. + + The handle. + The data. + + A object describing the result of the operation. + + HRESULT ID3DXEffect::SetRawValue([In] D3DXHANDLE hParameter,[In] const void* pData,[In] unsigned int ByteOffset,[In] unsigned int Bytes) + + + + Set a contiguous range of shader constants with a memory copy. + + The handle. + The data. + + A object describing the result of the operation. + + HRESULT ID3DXEffect::SetRawValue([In] D3DXHANDLE hParameter,[In] const void* pData,[In] unsigned int ByteOffset,[In] unsigned int Bytes) + + + + Set a contiguous range of shader constants with a memory copy. + + The handle. + The data. + The offset. + The count in bytes. + + A object describing the result of the operation. + + HRESULT ID3DXEffect::SetRawValue([In] D3DXHANDLE hParameter,[In] const void* pData,[In] unsigned int ByteOffset,[In] unsigned int Bytes) + + + + Set a contiguous range of shader constants with a memory copy. + + The handle. + The data. + The start index. + The count. + A object describing the result of the operation. + HRESULT ID3DXEffect::SetRawValue([In] D3DXHANDLE hParameter,[In] const void* pData,[In] unsigned int ByteOffset,[In] unsigned int Bytes) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets a reference to the pool of shared parameters.

+
+

Pointer to a object.

+

This method always returns the value .

+ +

Pools contain shared parameters between effects. See Cloning and Sharing (Direct3D 9).

+
+ + bb205827 + HRESULT ID3DXEffect::GetPool([Out] ID3DXEffectPool** ppPool) + ID3DXEffect::GetPool +
+ + +

Sets the active technique.

+
+

Unique handle to the technique. See Handles (Direct3D 9).

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205834 + HRESULT ID3DXEffect::SetTechnique([In] D3DXHANDLE hTechnique) + ID3DXEffect::SetTechnique +
+ + +

Gets the current technique.

+
+

A unique identifier to the current technique. See Handles (Direct3D 9).

+ + bb205825 + D3DXHANDLE ID3DXEffect::GetCurrentTechnique() + ID3DXEffect::GetCurrentTechnique +
+ + +

Validate a technique.

+
+

Unique identifier. See Handles (Direct3D 9).

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , , , , , , , , , , , and .

+ + bb205835 + HRESULT ID3DXEffect::ValidateTechnique([In] D3DXHANDLE hTechnique) + ID3DXEffect::ValidateTechnique +
+ + +

Searches for the next valid technique, starting at the technique after the specified technique.

+
+

Unique identifier to a technique. See Handles (Direct3D 9). Specify null for this parameter to find the first valid technique.

+

Pointer to an identifier for the next technique. null is returned if this is the last technique. See Handles (Direct3D 9).

+ + bb205824 + HRESULT ID3DXEffect::FindNextValidTechnique([In] D3DXHANDLE hTechnique,[Out] D3DXHANDLE* pTechnique) + ID3DXEffect::FindNextValidTechnique +
+ + +

Determines if a parameter is used by the technique.

+
+

Unique identifier for the parameter. See Handles (Direct3D 9).

+

Unique identifier for the technique. See Handles (Direct3D 9).

+

Returns TRUE if the parameter is being used and returns if the parameter is not being used.

+ + bb205829 + BOOL ID3DXEffect::IsParameterUsed([In] D3DXHANDLE hParameter,[In] D3DXHANDLE hTechnique) + ID3DXEffect::IsParameterUsed +
+ + +

Starts an active technique.

+
+

DWORD that determines if state modified by an effect is saved and restored. The default value 0 specifies that and will save and restore all state modified by the effect (including pixel and vertex shader constants). Valid flags can be seen at Effect State Save and Restore Flags.

+

Pointer to a value returned that indicates the number of passes needed to render the current technique.

+ +

An application sets one active technique in the effect system by calling . The effect system responds by capturing all the pipeline state that can be changed by the technique in a state block. An application signals the end of a technique by calling , which uses the state block to restore the original state. The effect system, therefore, takes care of saving state when a technique becomes active and restoring state when a technique ends. If you choose to disable this save and restore functionality, see .

Within the and pair, an application uses to set the active pass, if any state changes occurred after the pass was activated, and to end the active pass.

+
+ + bb205815 + HRESULT ID3DXEffect::Begin([Out] unsigned int* pPasses,[In] D3DXFX Flags) + ID3DXEffect::Begin +
+ + +

Begins a pass, within the active technique.

+
+

A zero-based integer index into the technique.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

An application sets one active pass (within one active technique) in the effect system by calling . An application signals the end of the active pass by calling . and must occur in a matching pair, within a matching pair of and calls.

If the application changes any effect state using any of the Effect::Setx methods inside of a / matching pair, the application must call to set the update the device with the state changes. If no state changes occur within a and matching pair, it is not necessary to call .

+
+ + bb205817 + HRESULT ID3DXEffect::BeginPass([In] unsigned int Pass) + ID3DXEffect::BeginPass +
+ + +

Propagate state changes that occur inside of an active pass to the device before rendering.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

If the application changes any effect state using any of the ID3DXEffect::Setx methods inside of an / matching pair, the application must call before any DrawxPrimitive call to propagate state changes to the device before rendering. If no state changes occur within a and matching pair, it is not necessary to call .

This is slightly different for any shared parameters in a cloned effect. When a technique is active on a cloned effect (that is, when has been called but and has not been called), updates parameters that are not shared as expected. To update a shared parameter (only for a cloned effect whose technique is active), call to deactivate the technique and to reactivate the technique before calling .

+
+ + bb205819 + HRESULT ID3DXEffect::CommitChanges() + ID3DXEffect::CommitChanges +
+ + +

End an active pass.

+
+

This method always returns the value .

+ +

An application signals the end of rendering an active pass by calling . Each must be part of a matching pair of and calls.

Each matching pair of and calls must be located within a matching pair of and calls.

If the application changes any effect state using any of the Effect::Setx methods inside of a / matching pair, the application must call before any DrawxPrimitive call to propagate state changes to the device before rendering.

+
+ + bb205823 + HRESULT ID3DXEffect::EndPass() + ID3DXEffect::EndPass +
+ + +

Ends an active technique.

+
+

This method always returns the value .

+ +

All rendering in an effect is done within a matching pair of and calls. After all passes are rendered, must be called to end the active technique. The effect system responds by using the state block created when was called, to automatically restore the pipeline state before .

By default, the effect system takes care of saving state prior to a technique, and restoring state after a technique. If you choose to disable this save and restore functionality, see .

+
+ + bb205821 + HRESULT ID3DXEffect::End() + ID3DXEffect::End +
+ + +

Retrieves the device associated with the effect.

+
+

Address of a reference to an interface, representing the device associated with the effect.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Calling this method will increase the internal reference count for the interface. Be sure to call IUnknown::Release when you are done using the interface or you will have a memory leak.

+
+ + bb205826 + HRESULT ID3DXEffect::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXEffect::GetDevice +
+ + +

Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method should be called whenever the device is lost or before the user calls . Even if the device was not actually lost, is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling and then .

+
+ + bb205830 + HRESULT ID3DXEffect::OnLostDevice() + ID3DXEffect::OnLostDevice +
+ + +

Use this method to re-acquire resources and save initial state.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

should be called each time the device is reset (using ), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

+
+ + bb205831 + HRESULT ID3DXEffect::OnResetDevice() + ID3DXEffect::OnResetDevice +
+ + +

Set the effect state manager.

+
+

A reference to the state manager. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

The is a user-implemented interface that furnishes callbacks into an application for setting device state from an effect.

+
+ + bb205833 + HRESULT ID3DXEffect::SetStateManager([In] ID3DXEffectStateManager* pManager) + ID3DXEffect::SetStateManager +
+ + +

Get the effect state manager.

+
+

Returns a reference to the state manager. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

The is a user-implemented interface that furnishes callbacks into an application for setting device state from an effect.

+
+ + bb205828 + HRESULT ID3DXEffect::GetStateManager([Out] ID3DXEffectStateManager** ppManager) + ID3DXEffect::GetStateManager +
+ + +

Start capturing state changes in a parameter block.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Capture effect parameter state changes until EndParameterBlock is called. Effect parameters include any state changes outside of a pass. Delete parameter blocks if they are no longer needed by calling DeleteParameterBlock.

+
+ + bb205816 + HRESULT ID3DXEffect::BeginParameterBlock() + ID3DXEffect::BeginParameterBlock +
+ + +

Stop capturing effect parameter state changes.

+
+

Returns a handle to the parameter state block.

+ +

All effect parameters that change state (after calling BeginParameterBlock and before calling EndParameterBlock) will be saved in an effect parameter state block. Use ApplyParameterBlock to apply this block of state changes to the effect system. Once you are finished with a state block use DeleteParameterBlock to free the memory.

+
+ + bb205822 + D3DXHANDLE ID3DXEffect::EndParameterBlock() + ID3DXEffect::EndParameterBlock +
+ + +

Apply the values in a state block to the current effect system state.

+
+

A handle to the parameter block. This is the handle returned by .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Capture effect parameter state changes in a parameter block by calling BeginParameterBlock; stop capturing state changes by calling EndParameterBlock. These state changes include any effect parameter changes that occur inside of a technique (including those outside of a pass). Once you are done with the parameter block, call DeleteParameterBlock to recover memory.

+
+ + bb205814 + HRESULT ID3DXEffect::ApplyParameterBlock([In] D3DXHANDLE hParameterBlock) + ID3DXEffect::ApplyParameterBlock +
+ + +

Delete a parameter block.

+
+

A handle to the parameter block. This is the handle returned by .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Parameter blocks are blocks of effect states. Use a parameter block to record state changes so that they can be applied later on with a single API call. When no longer needed, delete the parameter block to reduce memory usage.

+
+ + bb205820 + HRESULT ID3DXEffect::DeleteParameterBlock([In] D3DXHANDLE hParameterBlock) + ID3DXEffect::DeleteParameterBlock +
+ + +

Creates a copy of an effect.

+
+

Pointer to an interface, representing the device associated with the effect.

+

Pointer to an interface, containing the cloned effect.

+ +

Note??This function will not clone an effect if the user specifies during effect creation.

To update shared and non-shared parameters in an active technique of a cloned effect, see .

+
+ + bb205818 + HRESULT ID3DXEffect::CloneEffect([In] IDirect3DDevice9* pDevice,[Out] ID3DXEffect** ppEffect) + ID3DXEffect::CloneEffect +
+ + +

Set a contiguous range of shader constants with a memory copy.

+
+

Handle to the value to set, or the name of the value passed in as a string. Passing in a handle is more efficient. See Handles (Direct3D 9).

+

Pointer to a buffer containing the data to be set. SetRawValue checks for valid memory, but does not do any checking for valid data.

+

Number of bytes between the beginning of the effect data and the beginning of the effect constants you are going to set.

+

The size of the buffer to be set, in bytes.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following:E_INVALIDCALL.

+ +

SetRawValue is a very fast way to set effect constants since it performs a memory copy without performing validation or any data conversion (like converting a row-major matrix to a column-major matrix). Use SetRawValue to set a series of contiguous effect constants. For instance, you could set an array of twenty matrices with 20 calls to or by using a single SetRawValue.

All values are expected to be either matrix4x4s or float4s and all matrices are expected to be in column-major order. Int or float values are cast into a float4; therefore, it is highly recommended that you use SetRawValue with only float4 or matrix4x4 data.

+
+ + bb205832 + HRESULT ID3DXEffect::SetRawValue([In] D3DXHANDLE hParameter,[In] const void* pData,[In] unsigned int ByteOffset,[In] unsigned int Bytes) + ID3DXEffect::SetRawValue +
+ + + Gets or sets the current technique. + + + The technique. + + D3DXHANDLE ID3DXEffect::GetCurrentTechnique() + HRESULT ID3DXEffect::SetTechnique([In] D3DXHANDLE hTechnique) + + + +

Gets a reference to the pool of shared parameters.

+
+ +

Pools contain shared parameters between effects. See Cloning and Sharing (Direct3D 9).

+
+ + bb205827 + GetPool + GetPool + HRESULT ID3DXEffect::GetPool([Out] ID3DXEffectPool** ppPool) +
+ + +

Retrieves the device associated with the effect.

+
+ +

Calling this method will increase the internal reference count for the interface. Be sure to call IUnknown::Release when you are done using the interface or you will have a memory leak.

+
+ + bb205826 + GetDevice + GetDevice + HRESULT ID3DXEffect::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Get or sets the effect state manager.

+
+ +

The is a user-implemented interface that furnishes callbacks into an application for setting device state from an effect.

+
+ + bb205828 + GetStateManager / SetStateManager + GetStateManager + HRESULT ID3DXEffect::GetStateManager([Out] ID3DXEffectStateManager** ppManager) +
+ + +

The interface compiles an effect from a function or from a vertex shader.

+
+ +

The interface is obtained by calling , , or .

The LPD3DXEFFECTCOMPILER type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXEFFECTCOMPILER;	
+            
+
+ + bb205789 + ID3DXEffectCompiler + ID3DXEffectCompiler +
+ + + Initializes a new instance of the class. + + The data. + The defines. + The include file. + The flags. + HRESULT D3DXCreateEffectCompiler([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Compile an effect. + + The flags. + If a compilation errors occurs + Buffer containing the compiled effect. + HRESULT ID3DXEffectCompiler::CompileEffect([In] unsigned int Flags,[In] ID3DXBuffer** ppEffect,[In] ID3DXBuffer** ppErrorMsgs) + + + + Compiles a shader from an effect that contains one or more functions. + + The function handle. + The target. + The flags. + If a compilation errors occurs + The bytecode of the effect. + HRESULT ID3DXEffectCompiler::CompileShader([In] D3DXHANDLE hFunction,[In] const char* pTarget,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles a shader from an effect that contains one or more functions. + + The function handle. + The target. + The flags. + The constant table. + If a compilation errors occurs + The bytecode of the effect. + HRESULT ID3DXEffectCompiler::CompileShader([In] D3DXHANDLE hFunction,[In] const char* pTarget,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Creates an effect compiler from a file on disk containing an ASCII effect description . + + Name of the file. + The flags. + + An instance of + + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Creates an effect compiler from a file on disk containing an ASCII effect description . + + Name of the file. + The defines. + The include file. + The flags. + + An instance of + + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Creates an effect compiler from a memory buffer containing an ASCII effect description . + + The data. + The flags. + + An instance of + + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Creates an effect compiler from a memory buffer containing an ASCII effect description . + + The data. + The defines. + The include file. + The flags. + + An instance of + + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Creates an effect compiler from a stream containing an ASCII effect description . + + The stream. + The flags. + + An instance of + + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Creates an effect compiler from a stream containing an ASCII effect description . + + The stream. + The defines. + The include file. + The flags. + An instance of + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Toggles the literal status of a parameter. A literal parameter has a value that doesn't change during the lifetime of an effect.

+
+

Unique identifier to a parameter. See Handles (Direct3D 9).

+

Set to TRUE to make the parameter a literal, and if the parameter can change value during the shader lifetime.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This methods only changes whether the parameter is a literal or not. To change the value of a parameter, use a method like or .

This function must be called before the effect is compiled. Here is an example of how one might use this function:

 LPD3DXEFFECTCOMPILER pEffectCompiler; char errors[1000];  hr; hr = ("shader.fx", null, null, 0, &pEffectCompiler,  &errors); //In the fx file, literalInt is declared as an int. //By calling this function, the compiler will treat //it as a literal (i.e. #define) hr = pEffectCompiler->SetLiteral("literalInt", TRUE); //create ten different variations of the same effect LPD3DXBUFFER pEffects[10]; LPD3DXBUFFER pErrors; for(int i = 0; i < 10; ++i) { hr = pEffectCompiler->SetInt("literalInt", i); hr = pEffectCompiler->CompileEffect(0, &pEffects[i], &pErrors); }	
+            
+
+ + bb205793 + HRESULT ID3DXEffectCompiler::SetLiteral([In] D3DXHANDLE hParameter,[In] BOOL Literal) + ID3DXEffectCompiler::SetLiteral +
+ + +

Gets a literal status of a parameter. A literal parameter has a value that doesn't change during the lifetime of an effect.

+
+

Unique identifier to a parameter. See Handles (Direct3D 9).

+

Returns True if the parameter is a literal, and False otherwise.

+ +

This methods only changes whether the parameter is a literal or not. To change the value of a parameter, use a method like or .

+
+ + bb205792 + HRESULT ID3DXEffectCompiler::GetLiteral([In] D3DXHANDLE hParameter,[Out] BOOL* pLiteral) + ID3DXEffectCompiler::GetLiteral +
+ + +

Compile an effect.

+
+

Compile options identified by various flags. The Direct3D 10 HLSL compiler is now the default. See Flags for details.

+

Buffer containing the compiled effect. For more information about accessing the buffer, see .

+

Buffer containing at least the first compile error message that occurred. This includes effect compiler errors and high-level language compile errors. For more information about accessing the buffer, see .

+

If the method succeeds, the return value is .

If the arguments are invalid, the method will return .

If the method fails, the return value will be E_FAIL.

+ + bb205790 + HRESULT ID3DXEffectCompiler::CompileEffect([In] unsigned int Flags,[In] ID3DXBuffer** ppEffect,[In] ID3DXBuffer** ppErrorMsgs) + ID3DXEffectCompiler::CompileEffect +
+ + +

Compiles a shader from an effect that contains one or more functions.

+
+

Unique identifier to the function to be compiled. This value must not be null. See Handles (Direct3D 9).

+

Pointer to a shader profile which determines the shader instruction set. See or for a list of the profiles available.

+

Compile options identified by various flags. The Direct3D 10 HLSL compiler is now the default. See Flags for details.

+

Buffer containing the compiled shader. The compiler shader is an array of DWORDs. For more information about accessing the buffer, see .

+

Buffer containing at least the first compile error message that occurred. This includes effect compiler errors and high-level language compile errors. For more information about accessing the buffer, see .

+

Returns an interface, which can be used to access shader constants. This value can be null. If you compile your application as large address aware (that is, you use the /LARGEADDRESSAWARE linker option to handle addresses larger than 2 GB), you cannot use this parameter and must set it to null. Instead, you must use the function to retrieve the shader-constant table that is embedded inside the shader. In this call, you must pass the D3DXCONSTTABLE_LARGEADDRESSAWARE flag to the Flags parameter to specify to access up to 4 GB of virtual address space.

+

If the method succeeds, the return value is .

If the arguments are invalid, the method will return .

If the method fails, the return value will be E_FAIL.

+ +

Targets can be specified for vertex shaders, pixel shaders, and texture fill functions.

Vertex shader targetsvs_1_1, vs_2_0, vs_2_sw, vs_3_0
Pixel shader targetsps_1_1, ps_1_2, ps_1_3, ps_1_4, ps_2_0, ps_2_sw, ps_3_0
Texture fill targetstx_0, tx_1

?

This method compiles a shader from a function that is written in a C-like language. For more information, see HLSL.

+
+ + bb205791 + HRESULT ID3DXEffectCompiler::CompileShader([In] D3DXHANDLE hFunction,[In] const char* pTarget,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + ID3DXEffectCompiler::CompileShader +
+ + + No documentation. + + + bb280319 + D3DXEFFECTDEFAULT + D3DXEFFECTDEFAULT + + + + No documentation. + + + bb280319 + char* pParamName + char pParamName + + + + No documentation. + + + bb280319 + D3DXEFFECTDEFAULTTYPE Type + D3DXEFFECTDEFAULTTYPE Type + + + + No documentation. + + + bb280319 + unsigned int NumBytes + unsigned int NumBytes + + + + No documentation. + + + bb280319 + void* pValue + void pValue + + + + Gets the value. + + + + +

Data type for managing a set of default effect parameters.

+
+ + bb172823 + D3DXEFFECTINSTANCE + D3DXEFFECTINSTANCE +
+ + +

Name of the effect file.

+
+ + bb172823 + char* pEffectFilename + char pEffectFilename +
+ + +

Number of default parameters.

+
+ + bb172823 + unsigned int NumDefaults + unsigned int NumDefaults +
+ + +

Pointer to an array of elements, each of which contains an effect parameter.

+
+ + bb172823 + D3DXEFFECTDEFAULT* pDefaults + D3DXEFFECTDEFAULT pDefaults +
+ + +

Applications use the interface to identify parameters that are going to be shared across effects. See parameter sharing in Cloning and Sharing (Direct3D 9). This interface has no methods.

+
+ +

The interface is obtained by calling .

The LPD3DXEFFECTPOOL type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXEFFECTPOOL;	
+            
+
+ + bb205794 + ID3DXEffectPool + ID3DXEffectPool +
+ + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + A callback function used to fill 2D texture. + + Texture coordinate being sampled. + Dimensions of the texel. + The desired color of the specified texel. + typedef VOID (WINAPI *LPD3DXFILL2D)(D3DXVECTOR4 *pOut, CONST D3DXVECTOR2 *pTexCoord, CONST D3DXVECTOR2 *pTexelSize, LPVOID pData); + + + + A callback function used to fill 3D texture. + + Texture coordinate being sampled. + Dimensions of the texel. + The desired color of the specified texel. + typedef VOID (WINAPI *LPD3DXFILL2D)(D3DXVECTOR4 *pOut, CONST D3DXVECTOR2 *pTexCoord, CONST D3DXVECTOR2 *pTexelSize, LPVOID pData); + + + + Fill callback helper class. + + + + + Pointer to the native callback for 2D function + + + + + Pointer to the native callback for 3D function + + + + + EffectHandle used to identify a shader parameter. + + + + + Defines the behavior for caching strings. True by default. + + + + + Cache of allocated strings. + + + + + Pointer to the handle or the allocated string. + + + + + If the is a custom string not cached that needs to be released by this instance. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + The pointer. + + + + + Initializes a new instance of the class. + + + The pointer. + + + + + Initializes a new instance of the class. + + + The name. + + + + + Clears the cache. + + + By default, this class is caching all strings that are implicitly used as an effect handle. + Use this method in order to deallocate all strings that were previously cached. + + + + + marshal free. + + The __from. + The @ref. + + + + Method to marshal from native to managed struct + + The __from. + The @ref. + + + + Method to marshal from managed struct tot native + + The __from. + The @ref. + + + + + + + Allocates a string. + + + The name. + + + Pointer to the allocated string + + + + + Performs an implicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The name. + + The result of the conversion. + + + + +

The interface encapsulates the textures and resources needed to render a specific font on a specific device.

+
+ +

The interface is obtained by calling or .

The LPD3DXFONT type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXFONT;	
+            
+
+ + bb173961 + ID3DXFont + ID3DXFont +
+ + + Initializes a new instance of the class. + + The device. + The font description. + + + + Initializes a new instance of the class from a + + The device. + The font. + + + + Initializes a new instance of the class. + + The device. + The height. + The width. + The weight. + The mip levels. + if set to true [is italic]. + The character set. + The precision. + The quality. + The pitch and family. + Name of the face. + + + + Load formatted text into video memory to improve the efficiency of rendering to the device. This method supports ANSI and Unicode strings. + + + The compiler setting also determines the function version. If Unicode is defined, the function call resolves to PreloadTextW. Otherwise, the function call resolves to PreloadTextA because ANSI strings are being used. This method generates textures that contain glyphs that represent the input text. The glyphs are drawn as a series of triangles. Text will not be rendered to the device; ID3DX10Font::DrawText must still be called to render the text. However, by preloading text into video memory, ID3DX10Font::DrawText will use substantially fewer CPU resources. This method internally converts characters to glyphs using the GDI function {{GetCharacterPlacement}}. + + Pointer to a string of characters to be loaded into video memory. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR; otherwise, the data type resolves to LPCSTR. See Remarks. + If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DXERR_INVALIDDATA. + HRESULT ID3DX10Font::PreloadTextW([None] const wchar_t* pString,[None] int Count) + + + + Draws formatted text. + + Pointer to an object that contains the string. Can be null, in which case Direct3D will render the string with its own sprite object. To improve efficiency, a sprite object should be specified if DrawText is to be called more than once in a row. + Pointer to a string to draw. If the Count parameter is -1, the string must be null-terminated. + Pointer to a structure that contains the rectangle, in logical coordinates, in which the text is to be formatted. The coordinate value of the rectangle's right side must be greater than that of its left side. Likewise, the coordinate value of the bottom must be greater than that of the top. + Specifies the method of formatting the text. It can be any combination of the following values: ValueMeaning DT_BOTTOM Justifies the text to the bottom of the rectangle. This value must be combined with DT_SINGLELINE. DT_CALCRECT Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the pRect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. DT_CENTER Centers text horizontally in the rectangle. DT_EXPANDTABS Expands tab characters. The default number of characters per tab is eight. DT_LEFT Aligns text to the left. DT_NOCLIP Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. DT_RIGHT Aligns text to the right. DT_RTLREADING Displays text in right-to-left reading order for bidirectional text when a Hebrew or Arabic font is selected. The default reading order for all text is left-to-right. DT_SINGLELINE Displays text on a single line only. Carriage returns and line feeds do not break the line. DT_TOP Top-justifies text. DT_VCENTER Centers text vertically (single line only). DT_WORDBREAK Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the pRect parameter. A carriage return/line feed sequence also breaks the line. ? + Color of the text. For more information, see . + If the function succeeds, the return value is the height of the text in logical units. If DT_VCENTER or DT_BOTTOM is specified, the return value is the offset from pRect (top to the bottom) of the drawn text. If the function fails, the return value is zero. + + The parameters of this method are very similar to those of the GDI DrawText function.This method supports both ANSI and Unicode strings.This method must be called inside a BeginScene ... EndScene block. The only exception is when an application calls DrawText with DT_CALCRECT to calculate the size of a given block of text.Unless the DT_NOCLIP format is used, this method clips the text so that it does not appear outside the specified rectangle. All formatting is assumed to have multiple lines unless the DT_SINGLELINE format is specified.If the selected font is too large for the rectangle, this method does not attempt to substitute a smaller font.This method supports only fonts whose escapement and orientation are both zero. + + int ID3DXFont::DrawTextW([In] ID3DXSprite* pSprite,[In] const wchar_t* pString,[In] int Count,[In] void* pRect,[In] unsigned int Format,[In] D3DCOLOR Color) + + + + Draws formatted text. + + Pointer to an object that contains the string. Can be null, in which case Direct3D will render the string with its own sprite object. To improve efficiency, a sprite object should be specified if DrawText is to be called more than once in a row. + Pointer to a string to draw. If the Count parameter is -1, the string must be null-terminated. + The x position to draw the text. + The y position to draw the text. + Color of the text. For more information, see . + + If the function succeeds, the return value is the height of the text in logical units. If DT_VCENTER or DT_BOTTOM is specified, the return value is the offset from pRect (top to the bottom) of the drawn text. If the function fails, the return value is zero. + + int ID3DXFont::DrawTextW([In] ID3DXSprite* pSprite,[In] const wchar_t* pString,[In] int Count,[In] void* pRect,[In] unsigned int Format,[In] D3DCOLOR Color) + + The parameters of this method are very similar to those of the GDI DrawText function.This method supports both ANSI and Unicode strings.This method must be called inside a BeginScene ... EndScene block. The only exception is when an application calls DrawText with DT_CALCRECT to calculate the size of a given block of text.Unless the DT_NOCLIP format is used, this method clips the text so that it does not appear outside the specified rectangle. All formatting is assumed to have multiple lines unless the DT_SINGLELINE format is specified.If the selected font is too large for the rectangle, this method does not attempt to substitute a smaller font.This method supports only fonts whose escapement and orientation are both zero. + + + + + Measures the specified sprite. + + Pointer to an object that contains the string. Can be null, in which case Direct3D will render the string with its own sprite object. To improve efficiency, a sprite object should be specified if DrawText is to be called more than once in a row. + Pointer to a string to draw. If the Count parameter is -1, the string must be null-terminated. + Specifies the method of formatting the text. It can be any combination of the following values: ValueMeaning DT_BOTTOM Justifies the text to the bottom of the rectangle. This value must be combined with DT_SINGLELINE. DT_CALCRECT Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the pRect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. DT_CENTER Centers text horizontally in the rectangle. DT_EXPANDTABS Expands tab characters. The default number of characters per tab is eight. DT_LEFT Aligns text to the left. DT_NOCLIP Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. DT_RIGHT Aligns text to the right. DT_RTLREADING Displays text in right-to-left reading order for bidirectional text when a Hebrew or Arabic font is selected. The default reading order for all text is left-to-right. DT_SINGLELINE Displays text on a single line only. Carriage returns and line feeds do not break the line. DT_TOP Top-justifies text. DT_VCENTER Centers text vertically (single line only). DT_WORDBREAK Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the pRect parameter. A carriage return/line feed sequence also breaks the line. ? + Determines the width and height of the rectangle. If there are multiple lines of text, this function uses the width of the rectangle pointed to by the rect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, this method modifies the right side of the rectangle so that it bounds the last character in the line. + + + + Measures the specified sprite. + + Pointer to an object that contains the string. Can be null, in which case Direct3D will render the string with its own sprite object. To improve efficiency, a sprite object should be specified if DrawText is to be called more than once in a row. + Pointer to a string to draw. If the Count parameter is -1, the string must be null-terminated. + Pointer to a structure that contains the rectangle, in logical coordinates, in which the text is to be formatted. The coordinate value of the rectangle's right side must be greater than that of its left side. Likewise, the coordinate value of the bottom must be greater than that of the top. + Specifies the method of formatting the text. It can be any combination of the following values: ValueMeaning DT_BOTTOM Justifies the text to the bottom of the rectangle. This value must be combined with DT_SINGLELINE. DT_CALCRECT Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the pRect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. DT_CENTER Centers text horizontally in the rectangle. DT_EXPANDTABS Expands tab characters. The default number of characters per tab is eight. DT_LEFT Aligns text to the left. DT_NOCLIP Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. DT_RIGHT Aligns text to the right. DT_RTLREADING Displays text in right-to-left reading order for bidirectional text when a Hebrew or Arabic font is selected. The default reading order for all text is left-to-right. DT_SINGLELINE Displays text on a single line only. Carriage returns and line feeds do not break the line. DT_TOP Top-justifies text. DT_VCENTER Centers text vertically (single line only). DT_WORDBREAK Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the pRect parameter. A carriage return/line feed sequence also breaks the line. ? + Determines the width and height of the rectangle. If there are multiple lines of text, this function uses the width of the rectangle pointed to by the rect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, this method modifies the right side of the rectangle so that it bounds the last character in the line. + + + + Measures the specified sprite. + + Pointer to an object that contains the string. Can be null, in which case Direct3D will render the string with its own sprite object. To improve efficiency, a sprite object should be specified if DrawText is to be called more than once in a row. + Pointer to a string to draw. If the Count parameter is -1, the string must be null-terminated. + Pointer to a structure that contains the rectangle, in logical coordinates, in which the text is to be formatted. The coordinate value of the rectangle's right side must be greater than that of its left side. Likewise, the coordinate value of the bottom must be greater than that of the top. + Specifies the method of formatting the text. It can be any combination of the following values: ValueMeaning DT_BOTTOM Justifies the text to the bottom of the rectangle. This value must be combined with DT_SINGLELINE. DT_CALCRECT Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the pRect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text. DT_CENTER Centers text horizontally in the rectangle. DT_EXPANDTABS Expands tab characters. The default number of characters per tab is eight. DT_LEFT Aligns text to the left. DT_NOCLIP Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used. DT_RIGHT Aligns text to the right. DT_RTLREADING Displays text in right-to-left reading order for bidirectional text when a Hebrew or Arabic font is selected. The default reading order for all text is left-to-right. DT_SINGLELINE Displays text on a single line only. Carriage returns and line feeds do not break the line. DT_TOP Top-justifies text. DT_VCENTER Centers text vertically (single line only). DT_WORDBREAK Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the pRect parameter. A carriage return/line feed sequence also breaks the line. ? + The height of the formatted text but does not draw the text. + Determines the width and height of the rectangle. If there are multiple lines of text, this function uses the width of the rectangle pointed to by the rect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, this method modifies the right side of the rectangle so that it bounds the last character in the line. + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the Direct3D device associated with the font object.

+
+

Address of a reference to an interface, representing the Direct3D device object associated with the font object.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Note??Calling this method will increase the internal reference count on the interface. Be sure to call when you are done using this interface or you will have a memory leak.

+
+ + bb173965 + HRESULT ID3DXFont::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXFont::GetDevice +
+ + +

Gets a description of the current font object. GetDescW and GetDescA are identical to this method, except that a reference is returned to a or D3DXFONT_DESCA structure, respectively.

+
+ No documentation. +

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

This method describes Unicode font objects if UNICODE is defined. Otherwise GetDescA is called, which returns a reference to the D3DXFONT_DESCA structure.

+
+ + bb173964 + HRESULT ID3DXFont::GetDescW([Out] D3DXFONT_DESCW* pDesc) + ID3DXFont::GetDescW +
+ + +

Retrieves font characteristics that are identified in a structure. This method supports ANSI and Unicode compiler settings.

+
+ No documentation. +

Nonzero if the function is successful; otherwise 0.

+ +

The compiler setting also determines the structure type. If Unicode is defined, the function returns a structure. Otherwise, the function call returns a structure.

+
+ + bb173967 + BOOL ID3DXFont::GetTextMetricsW([Out] TEXTMETRICW* pTextMetrics) + ID3DXFont::GetTextMetricsW +
+ + +

Returns a handle to a display device context (DC) that has the font set.

+
+

Handle to a display DC.

+ + bb173963 + HDC ID3DXFont::GetDC() + ID3DXFont::GetDC +
+ + +

Returns information about the placement and orientation of a glyph in a character cell.

+
+

Glyph identifier.

+

Address of a reference to a object that contains the glyph.

+

Pointer to the smallest rectangle object that completely encloses the glyph.

+

Pointer to the two-dimensional vector that connects the origin of the current character cell to the origin of the next character cell. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb173966 + HRESULT ID3DXFont::GetGlyphData([In] unsigned int Glyph,[Out] IDirect3DTexture9** ppTexture,[Out] RECT* pBlackBox,[Out] POINT* pCellInc) + ID3DXFont::GetGlyphData +
+ + +

Loads a series of characters into video memory to improve the efficiency of rendering to the device.

+
+

ID of the first character to be loaded into video memory.

+

ID of the last character to be loaded into video memory.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

This method generates textures containing glyphs that represent the input characters. The glyphs are drawn as a series of triangles.

Characters will not be rendered to the device; DrawText must still be called to render the characters. However, by pre-loading characters into video memory, DrawText will use substantially fewer CPU resources.

This method internally converts characters to glyphs using the GDI function GetCharacterPlacement.

+
+ + bb173970 + HRESULT ID3DXFont::PreloadCharacters([In] unsigned int First,[In] unsigned int Last) + ID3DXFont::PreloadCharacters +
+ + +

Loads a series of glyphs into video memory to improve the efficiency of rendering to the device.

+
+

ID of the first glyph to be loaded into video memory.

+

ID of the last glyph to be loaded into video memory.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

This method generates textures that contain the input glyphs. The glyphs are drawn as a series of triangles.

Glyphs will not be rendered to the device; DrawText must still be called to render the glyphs. However, by pre-loading glyphs into video memory, DrawText will use substantially fewer CPU resources.

+
+ + bb173971 + HRESULT ID3DXFont::PreloadGlyphs([In] unsigned int First,[In] unsigned int Last) + ID3DXFont::PreloadGlyphs +
+ + +

Loads formatted text into video memory to improve the efficiency of rendering to the device. This method supports ANSI and Unicode strings.

+
+

Pointer to a string of characters to be loaded into video memory. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR; otherwise, the data type resolves to LPCSTR. See Remarks.

+

Number of characters in the text string.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to PreloadTextW. Otherwise, the function call resolves to PreloadTextA because ANSI strings are being used.

This method generates textures that contain glyphs that represent the input text. The glyphs are drawn as a series of triangles.

Text will not be rendered to the device; DrawText must still be called to render the text. However, by preloading text into video memory, DrawText will use substantially fewer CPU resources.

This method internally converts characters to glyphs using the GDI function GetCharacterPlacement.

+
+ + bb173972 + HRESULT ID3DXFont::PreloadTextW([In] const wchar_t* pString,[In] int Count) + ID3DXFont::PreloadTextW +
+ + +

Draws formatted text. This method supports ANSI and Unicode strings.

+
+

Pointer to an object that contains the string. Can be null, in which case Direct3D will render the string with its own sprite object. To improve efficiency, a sprite object should be specified if DrawText is to be called more than once in a row.

+

Pointer to a string to draw. If the Count parameter is -1, the string must be null-terminated.

+

Specifies the number of characters in the string. If Count is -1, then the pString parameter is assumed to be a reference to a null-terminated string and DrawText computes the character count automatically.

+

Pointer to a structure that contains the rectangle, in logical coordinates, in which the text is to be formatted. The coordinate value of the rectangle's right side must be greater than that of its left side. Likewise, the coordinate value of the bottom must be greater than that of the top.

+

Specifies the method of formatting the text. It can be any combination of the following values:

ValueMeaning
DT_BOTTOM

Justifies the text to the bottom of the rectangle. This value must be combined with DT_SINGLELINE.

DT_CALCRECT

Determines the width and height of the rectangle. If there are multiple lines of text, DrawText uses the width of the rectangle pointed to by the pRect parameter and extends the base of the rectangle to bound the last line of text. If there is only one line of text, DrawText modifies the right side of the rectangle so that it bounds the last character in the line. In either case, DrawText returns the height of the formatted text but does not draw the text.

DT_CENTER

Centers text horizontally in the rectangle.

DT_EXPANDTABS

Expands tab characters. The default number of characters per tab is eight.

DT_LEFT

Aligns text to the left.

DT_NOCLIP

Draws without clipping. DrawText is somewhat faster when DT_NOCLIP is used.

DT_RIGHT

Aligns text to the right.

DT_RTLREADING

Displays text in right-to-left reading order for bidirectional text when a Hebrew or Arabic font is selected. The default reading order for all text is left-to-right.

DT_SINGLELINE

Displays text on a single line only. Carriage returns and line feeds do not break the line.

DT_TOP

Top-justifies text.

DT_VCENTER

Centers text vertically (single line only).

DT_WORDBREAK

Breaks words. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by the pRect parameter. A carriage return/line feed sequence also breaks the line.

?

+

Color of the text. For more information, see .

+

If the function succeeds, the return value is the height of the text in logical units. If DT_VCENTER or DT_BOTTOM is specified, the return value is the offset from pRect (top to the bottom) of the drawn text. If the function fails, the return value is zero.

+ +

The parameters of this method are very similar to those of the GDI DrawText function.

This method supports both ANSI and Unicode strings.

This method must be called inside a BeginScene ... EndScene block. The only exception is when an application calls DrawText with DT_CALCRECT to calculate the size of a given block of text.

Unless the DT_NOCLIP format is used, this method clips the text so that it does not appear outside the specified rectangle. All formatting is assumed to have multiple lines unless the DT_SINGLELINE format is specified.

If the selected font is too large for the rectangle, this method does not attempt to substitute a smaller font.

This method supports only fonts whose escapement and orientation are both zero.

+
+ + bb173962 + int ID3DXFont::DrawTextW([In] ID3DXSprite* pSprite,[In] const wchar_t* pString,[In] int Count,[In] void* pRect,[In] unsigned int Format,[In] D3DCOLOR Color) + ID3DXFont::DrawTextW +
+ + +

Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method should be called whenever the device is lost or before the user calls Reset. Even if the device was not actually lost, OnLostDevice is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling Reset and then OnResetDevice.

+
+ + bb173968 + HRESULT ID3DXFont::OnLostDevice() + ID3DXFont::OnLostDevice +
+ + +

Use this method to re-acquire resources and save initial state.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

OnResetDevice should be called each time the device is reset (using Reset), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

+
+ + bb173969 + HRESULT ID3DXFont::OnResetDevice() + ID3DXFont::OnResetDevice +
+ + +

Retrieves the Direct3D device associated with the font object.

+
+ +

Note??Calling this method will increase the internal reference count on the interface. Be sure to call when you are done using this interface or you will have a memory leak.

+
+ + bb173965 + GetDevice + GetDevice + HRESULT ID3DXFont::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Gets a description of the current font object. GetDescW and GetDescA are identical to this method, except that a reference is returned to a or D3DXFONT_DESCA structure, respectively.

+
+ +

This method describes Unicode font objects if UNICODE is defined. Otherwise GetDescA is called, which returns a reference to the D3DXFONT_DESCA structure.

+
+ + bb173964 + GetDescW + GetDescW + HRESULT ID3DXFont::GetDescW([Out] D3DXFONT_DESCW* pDesc) +
+ + +

Returns a handle to a display device context (DC) that has the font set.

+
+ + bb173963 + GetDC + GetDC + HDC ID3DXFont::GetDC() +
+ + + Defines possible character sets for fonts. + + CHARSET + + + + The ANSI character set. + + + + + The Arabic character set. + + + + + The Baltic character set. + + + + + The Chinese character set. + + + + + The default system character set. + + + + + The East Europe character set. + + + + + The GB2312 character set. + + + + + The Greek character set. + + + + + The Hangul character set. + + + + + The Hebrew character set. + + + + + The Johab character set. + + + + + The Mac character set. + + + + + The OEM character set. + + + + + The Russian character set. + + + + + The ShiftJIS character set. + + + + + The symbol character set. + + + + + The Thai character set. + + + + + The Turkish character set. + + + + + The Vietnamese character set. + + + + + Specifies formatting options for text rendering. + + DT + + + + Align the text to the bottom. + + + + + Align the text to the center. + + + + + Expand tab characters. + + + + + Align the text to the left. + + + + + Don't clip the text. + + + + + Align the text to the right. + + + + + Rendering the text in right-to-left reading order. + + + + + Force all text to a single line. + + + + + Align the text to the top. + + + + + Vertically align the text to the center. + + + + + Allow word breaks. + + + + + Defines pitch and family settings for fonts. + + + + + Use the Decorative family. + + + + + Default pitch. + + + + + The font family doesn't matter. + + + + + Fixed pitch. + + + + + Use the Modern family. + + + + + Mono pitch. + + + + + Use the Roman family. + + + + + Use the Script family. + + + + + Use the Swiss family. + + + + + Variable pitch. + + + + + Defines precision levels for font rendering. + + OutPrecision + + + + Default + + + + + String + + + + + Character + + + + + Stroke + + + + + TrueType + + + + + Device + + + + + Raster + + + + + TrueTypeOnly + + + + + Outline + + + + + ScreenOutline + + + + + PostScriptOnly + + + + + Specifies quality options for font rendering. + + QUALITY + + + + Default + + + + + Draft + + + + + Proof + + + + + Non antialiased + + + + + Antialiased + + + + + ClearType + + + + + ClearTypeNatural + + + + + Specifies weights for font rendering. + + FW + + + + Use a black weight. + + + + + Use a bold weight. + + + + + Use a demi-bold weight. + + + + + The font weight doesn't matter. + + + + + Use an extra bold weight. + + + + + Make the font extra light. + + + + + Use a heavy weight. + + + + + Make the font light. + + + + + Use a medium weight. + + + + + Use a normal weight. + + + + + Use a regular weight. + + + + + Use a semi-bold weight. + + + + + Make the font thin. + + + + + Use an ultra bold weight. + + + + + Make the font ultra light. + + + + +

Defines constants that describe the type of back buffer.

+
+ +

Direct3D 9 does not support stereo view, so Direct3D does not use the and values of this enumerated type.

+
+ + bb172506 + D3DBACKBUFFER_TYPE + D3DBACKBUFFER_TYPE +
+ + +

Specifies a nonstereo swap chain.

+
+ + bb172506 + D3DBACKBUFFER_TYPE_MONO + D3DBACKBUFFER_TYPE_MONO +
+ + +

Specifies the left side of a stereo pair in a swap chain.

+
+ + bb172506 + D3DBACKBUFFER_TYPE_LEFT + D3DBACKBUFFER_TYPE_LEFT +
+ + +

Specifies the right side of a stereo pair in a swap chain.

+
+ + bb172506 + D3DBACKBUFFER_TYPE_RIGHT + D3DBACKBUFFER_TYPE_RIGHT +
+ + +

Defines the basis type of a high-order patch surface.

+
+ +

The members of specify the formulation to be used in evaluating the high-order patch surface primitive during tessellation.

+
+ + bb172507 + D3DBASISTYPE + D3DBASISTYPE +
+ + +

Input vertices are treated as a series of B?zier patches. The number of vertices specified must be divisible by 4. Portions of the mesh beyond this criterion will not be rendered. Full continuity is assumed between sub-patches in the interior of the surface rendered by each call. Only the vertices at the corners of each sub-patch are guaranteed to lie on the resulting surface.

+
+ + bb172507 + D3DBASIS_BEZIER + D3DBASIS_BEZIER +
+ + +

Input vertices are treated as control points of a B-spline surface. The number of apertures rendered is two fewer than the number of apertures in that direction. In general, the generated surface does not contain the control vertices specified.

+
+ + bb172507 + D3DBASIS_BSPLINE + D3DBASIS_BSPLINE +
+ + +

An interpolating basis defines the surface so that the surface goes through all the input vertices specified. In DirectX 8, this was D3DBASIS_INTERPOLATE.

+
+ + bb172507 + D3DBASIS_CATMULL_ROM + D3DBASIS_CATMULL_ROM +
+ + +

Defines the supported blend mode.

+
+ +

In the preceding member descriptions, the RGBA values of the source and destination are indicated by the s and d subscripts.

The values in this enumerated type are used by the following render states:

See

+
+ + bb172508 + D3DBLEND + D3DBLEND +
+ + +

Blend factor is (0, 0, 0, 0).

+
+ + bb172508 + D3DBLEND_ZERO + D3DBLEND_ZERO +
+ + +

Blend factor is (1, 1, 1, 1).

+
+ + bb172508 + D3DBLEND_ONE + D3DBLEND_ONE +
+ + +

Blend factor is (Rs, Gs, Bs, As).

+
+ + bb172508 + D3DBLEND_SRCCOLOR + D3DBLEND_SRCCOLOR +
+ + +

Blend factor is (1 - Rs, 1 - Gs, 1 - Bs, 1 - As).

+
+ + bb172508 + D3DBLEND_INVSRCCOLOR + D3DBLEND_INVSRCCOLOR +
+ + +

Blend factor is (As, As, As, As).

+
+ + bb172508 + D3DBLEND_SRCALPHA + D3DBLEND_SRCALPHA +
+ + +

Blend factor is ( 1 - As, 1 - As, 1 - As, 1 - As).

+
+ + bb172508 + D3DBLEND_INVSRCALPHA + D3DBLEND_INVSRCALPHA +
+ + +

Blend factor is (Ad Ad Ad Ad).

+
+ + bb172508 + D3DBLEND_DESTALPHA + D3DBLEND_DESTALPHA +
+ + +

Blend factor is (1 - Ad 1 - Ad 1 - Ad 1 - Ad).

+
+ + bb172508 + D3DBLEND_INVDESTALPHA + D3DBLEND_INVDESTALPHA +
+ + +

Blend factor is (Rd, Gd, Bd, Ad).

+
+ + bb172508 + D3DBLEND_DESTCOLOR + D3DBLEND_DESTCOLOR +
+ + +

Blend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad).

+
+ + bb172508 + D3DBLEND_INVDESTCOLOR + D3DBLEND_INVDESTCOLOR +
+ + +

Blend factor is (f, f, f, 1); where f = min(As, 1 - Ad).

+
+ + bb172508 + D3DBLEND_SRCALPHASAT + D3DBLEND_SRCALPHASAT +
+ + +

Obsolete. Starting with DirectX 6, you can achieve the same effect by setting the source and destination blend factors to and in separate calls.

+
+ + bb172508 + D3DBLEND_BOTHSRCALPHA + D3DBLEND_BOTHSRCALPHA +
+ + +

Obsolete. Source blend factor is (1 - As, 1 - As, 1 - As, 1 - As), and destination blend factor is (As, As, As, As); the destination blend selection is overridden. This blend mode is supported only for the render state.

+
+ + bb172508 + D3DBLEND_BOTHINVSRCALPHA + D3DBLEND_BOTHINVSRCALPHA +
+ + +

Constant color blending factor used by the frame-buffer blender. This blend mode is supported only if is set in the SrcBlendCaps or DestBlendCaps members of .

+
+ + bb172508 + D3DBLEND_BLENDFACTOR + D3DBLEND_BLENDFACTOR +
+ + +

Inverted constant color-blending factor used by the frame-buffer blender. This blend mode is supported only if the bit is set in the SrcBlendCaps or DestBlendCaps members of .

+
+ + bb172508 + D3DBLEND_INVBLENDFACTOR + D3DBLEND_INVBLENDFACTOR +
+ + +

Blend factor is (PSOutColor[1]r, PSOutColor[1]g, PSOutColor[1]b, not used). See Render.

Differences between Direct3D 9 and Direct3D 9Ex:

This flag is available in Direct3D 9Ex only.

?

+
+ + bb172508 + D3DBLEND_SRCCOLOR2 + D3DBLEND_SRCCOLOR2 +
+ + +

Blend factor is (1 - PSOutColor[1]r, 1 - PSOutColor[1]g, 1 - PSOutColor[1]b, not used)). See Render.

Differences between Direct3D 9 and Direct3D 9Ex:

This flag is available in Direct3D 9Ex only.

?

+
+ + bb172508 + D3DBLEND_INVSRCCOLOR2 + D3DBLEND_INVSRCCOLOR2 +
+ + +

Represents the capabilities of the hardware exposed through the Direct3D object.

+
+ +

The MaxTextureBlendStages and MaxSimultaneousTextures members might seem similar, but they contain different information. The MaxTextureBlendStages member contains the total number of texture-blending stages supported by the current device, and the MaxSimultaneousTextures member describes how many of those stages can have textures bound to them by using the SetTexture method.

When the driver fills this structure, it can set values for execute-buffer capabilities, even when the interface being used to retrieve the capabilities (such as ) does not support execute buffers.

In general, performance problems may occur if you use a texture and then modify it during a scene. Ensure that no texture used in the current BeginScene and EndScene block is evicted unless absolutely necessary. In the case of extremely high texture usage within a scene, the results are undefined. This occurs when you modify a texture that you have used in the scene and there is no spare texture memory available. For such systems, the contents of the z-buffer become invalid at EndScene. Applications should not call UpdateSurface to or from the back buffer on this type of hardware inside a BeginScene/EndScene pair. In addition, applications should not try to access the z-buffer if the capability flag is set. Finally, applications should not lock the back buffer or the z-buffer inside a BeginScene/EndScene pair.

The following flags concerning mipmapped textures are not supported in Direct3D 9.

  • D3DPTFILTERCAPS_LINEAR
  • D3DPTFILTERCAPS_LINEARMIPLINEAR
  • D3DPTFILTERCAPS_LINEARMIPNEAREST
  • D3DPTFILTERCAPS_MIPNEAREST
  • D3DPTFILTERCAPS_NEAREST
+
+ + bb172513 + D3DPBLENDCAPS + D3DPBLENDCAPS +
+ + +

Member of the enumerated type, which identifies what type of resources are used for processing vertices.

+
+ + bb172513 + D3DPBLENDCAPS_ZERO + D3DPBLENDCAPS_ZERO +
+ + +

Adapter on which this Direct3D device was created. This ordinal is valid only to pass to methods of the interface that created this Direct3D device. The interface can always be retrieved by calling GetDirect3D.

+
+ + bb172513 + D3DPBLENDCAPS_ONE + D3DPBLENDCAPS_ONE +
+ + +

The following driver-specific capability.

ValueMeaning

Display hardware is capable of returning the current scan line.

The display driver supports an overlay DDI that allows for verification of overlay capabilities. For more information about the overlay DDI, see Overlay DDI.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

?

+
+ + bb172513 + D3DPBLENDCAPS_SRCCOLOR + D3DPBLENDCAPS_SRCCOLOR +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DPBLENDCAPS_INVSRCCOLOR + D3DPBLENDCAPS_INVSRCCOLOR +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DPBLENDCAPS_SRCALPHA + D3DPBLENDCAPS_SRCALPHA +
+ + +

Bit mask of values representing what presentation swap intervals are available.

ValueMeaning

The driver supports an immediate presentation swap interval.

The driver supports a presentation swap interval of every screen refresh.

The driver supports a presentation swap interval of every second screen refresh.

The driver supports a presentation swap interval of every third screen refresh.

The driver supports a presentation swap interval of every fourth screen refresh.

?

+
+ + bb172513 + D3DPBLENDCAPS_INVSRCALPHA + D3DPBLENDCAPS_INVSRCALPHA +
+ + +

Bit mask indicating what hardware support is available for cursors. Direct3D 9 does not define alpha-blending cursor capabilities.

ValueMeaning

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports at least a hardware color cursor in high-resolution modes (with scan lines greater than or equal to 400).

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports a hardware color cursor in both high-resolution and low-resolution modes (with scan lines less than 400).

?

+
+ + bb172513 + D3DPBLENDCAPS_DESTALPHA + D3DPBLENDCAPS_DESTALPHA +
+ + +

Flags identifying the capabilities of the device.

ValueMeaning

Device supports blits from system-memory textures to nonlocal video-memory textures.

Device can queue rendering commands after a page flip. Applications do not change their behavior if this flag is set; this capability means that the device is relatively fast.

Device can support at least a DirectX 5-compliant driver.

Device can support at least a DirectX 7-compliant driver.

Device exports an -aware hal.

Device can use execute buffers from system memory.

Device can use execute buffers from video memory.

Device has hardware acceleration for scene rasterization.

Device can support transformation and lighting in hardware.

Device supports N patches.

Device can support rasterization, transform, lighting, and shading in hardware.

Device supports quintic B?zier curves and B-splines.

Device supports rectangular and triangular patches.

When this device capability is set, the hardware architecture does not require caching of any information, and uncached patches (handle zero) will be drawn as efficiently as cached ones. Note that setting does not mean that a patch with handle zero can be drawn. A handle-zero patch can always be drawn whether this cap is set or not.

Device is texturing from separate memory pools.

Device can retrieve textures from non-local video memory.

Device can retrieve textures from system memory.

Device can retrieve textures from device memory.

Device can use buffers from system memory for transformed and lit vertices.

Device can use buffers from video memory for transformed and lit vertices.

?

+
+ + bb172513 + D3DPBLENDCAPS_INVDESTALPHA + D3DPBLENDCAPS_INVDESTALPHA +
+ + +

Miscellaneous driver primitive capabilities. See .

+
+ + bb172513 + D3DPBLENDCAPS_DESTCOLOR + D3DPBLENDCAPS_DESTCOLOR +
+ + +

Information on raster-drawing capabilities. This member can be one or more of the following flags.

ValueMeaning

Device supports anisotropic filtering.

Device iterates colors perspective correctly.

Device can dither to improve color resolution.

Device supports legacy depth bias. For true depth bias, see .

Device supports range-based fog. In range-based fog, the distance of an object from the viewer is used to compute fog effects, not the depth of the object (that is, the z-coordinate) in the scene.

Device calculates the fog value by referring to a lookup table containing fog values that are indexed to the depth of a given pixel.

Device calculates the fog value during the lighting operation and interpolates the fog value during rasterization.

Device supports level-of-detail bias adjustments. These bias adjustments enable an application to make a mipmap appear crisper or less sharp than it normally would. For more information about level-of-detail bias in mipmaps, see .

Device supports toggling multisampling on and off between and (using ).

Device supports scissor test. See Scissor Test (Direct3D 9).

Device performs true slope-scale based depth bias. This is in contrast to the legacy style depth bias.

Device supports depth buffering using w.

Device supports w-based fog. W-based fog is used when a perspective projection matrix is specified, but affine projections still use z-based fog. The system considers a projection matrix that contains a nonzero value in the [3][4] element to be a perspective projection matrix.

Device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth-buffer. This leaves more video memory for textures. The method used to perform HSR is hardware-dependent and is transparent to the application.

Z-bufferless HSR is performed if no depth-buffer surface is associated with the rendering-target surface and the depth-buffer comparison test is enabled (that is, when the state value associated with the enumeration constant is set to TRUE).

Device supports z-based fog.

Device can perform z-test operations. This effectively renders a primitive and indicates whether any z pixels have been rendered.

?

+
+ + bb172513 + D3DPBLENDCAPS_INVDESTCOLOR + D3DPBLENDCAPS_INVDESTCOLOR +
+ + +

Z-buffer comparison capabilities. This member can be one or more of the following flags.

ValueMeaning

Always pass the z-test.

Pass the z-test if the new z equals the current z.

Pass the z-test if the new z is greater than the current z.

Pass the z-test if the new z is greater than or equal to the current z.

Pass the z-test if the new z is less than the current z.

Pass the z-test if the new z is less than or equal to the current z.

Always fail the z-test.

Pass the z-test if the new z does not equal the current z.

?

+
+ + bb172513 + D3DPBLENDCAPS_SRCALPHASAT + D3DPBLENDCAPS_SRCALPHASAT +
+ + +

Source-blending capabilities. This member can be one or more of the following flags. (The RGBA values of the source and destination are indicated by the subscripts s and d.)

ValueMeaning

The driver supports both and . See .

Source blend factor is (1 - As, 1 - As, 1 - As, 1 - As) and destination blend factor is (As, As, As, As); the destination blend selection is overridden.

The driver supports the blend mode. (This blend mode is obsolete. For more information, see .)

Blend factor is (Ad, Ad, Ad, Ad).

Blend factor is (Rd, Gd, Bd, Ad).

Blend factor is (1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad).

Blend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad).

Blend factor is (1 - As, 1 - As, 1 - As, 1 - As).

Blend factor is (1 - Rs, 1 - Gs, 1 - Bs, 1 - As).

Blend factor is (1 - PSOutColor[1]r, 1 - PSOutColor[1]g, 1 - PSOutColor[1]b, not used)). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (1, 1, 1, 1).

Blend factor is (As, As, As, As).

Blend factor is (f, f, f, 1); f = min(As, 1 - Ad).

Blend factor is (Rs, Gs, Bs, As).

Blend factor is (PSOutColor[1]r, PSOutColor[1]g, PSOutColor[1]b, not used). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (0, 0, 0, 0).

?

+
+ + bb172513 + D3DPBLENDCAPS_BOTHSRCALPHA + D3DPBLENDCAPS_BOTHSRCALPHA +
+ + +

Destination-blending capabilities. This member can be the same capabilities that are defined for the SrcBlendCaps member.

+
+ + bb172513 + D3DPBLENDCAPS_BOTHINVSRCALPHA + D3DPBLENDCAPS_BOTHINVSRCALPHA +
+ + +

Alpha-test comparison capabilities. This member can include the same capability flags defined for the ZCmpCaps member. If this member contains only the capability or only the capability, the driver does not support alpha tests. Otherwise, the flags identify the individual comparisons that are supported for alpha testing.

+
+ + bb172513 + D3DPBLENDCAPS_BLENDFACTOR + D3DPBLENDCAPS_BLENDFACTOR +
+ + +

Shading operations capabilities. It is assumed, in general, that if a device supports a given command at all, it supports the mode (as specified in the enumerated type). This flag specifies whether the driver can also support Gouraud shading and whether alpha color components are supported. When alpha components are not supported, the alpha value of colors generated is implicitly 255. This is the maximum possible alpha (that is, the alpha component is at full intensity).

The color, specular highlights, fog, and alpha interpolants of a triangle each have capability flags that an application can use to find out how they are implemented by the device driver.

This member can be one or more of the following flags.

ValueMeaning

Device can support an alpha component for Gouraud-blended transparency (the state for the enumerated type). In this mode, the alpha color component of a primitive is provided at vertices and interpolated across a face along with the other color components.

Device can support colored Gouraud shading. In this mode, the per-vertex color components (red, green, and blue) are interpolated across a triangle face.

Device can support fog in the Gouraud shading mode.

Device supports Gouraud shading of specular highlights.

?

+
+ + bb172513 + D3DPBLENDCAPS_SRCCOLOR2 + D3DPBLENDCAPS_SRCCOLOR2 +
+ + +

Miscellaneous texture-mapping capabilities. This member can be one or more of the following flags.

ValueMeaning

Alpha in texture pixels is supported.

Device can draw alpha from texture palettes.

Supports cube textures.

Device requires that cube texture maps have dimensions specified as powers of two.

Device supports mipmapped cube textures.

Device supports mipmapped textures.

Device supports mipmapped volume textures.

is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. A device that exposes this capability can use such a texture if all of the following requirements are met.

  • The texture addressing mode for the texture stage is set to .
  • Texture wrapping for the texture stage is disabled (D3DRS_WRAP n set to 0).
  • Mipmapping is not in use (use magnification filter only).
  • Texture formats must not be through .

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

A texture that is not a power of two cannot be set at a stage that will be read based on a shader computation (such as the bem - ps and texm3x3 - ps instructions in pixel shaders versions 1_0 to 1_3). For example, these textures can be used to store bumps that will be fed into texture reads, but not the environment maps that are used in texbem - ps, texbeml - ps, and texm3x3spec - ps. This means that a texture with dimensions that are not powers of two cannot be addressed or sampled using texture coordinates computed within the shader. This type of operation is known as a dependent read and cannot be performed on these types of textures.

Device does not support a projected bump-environment loopkup operation in programmable and fixed function shaders.

Perspective correction texturing is supported.

If is not set, all textures must have widths and heights specified as powers of two. This requirement does not apply to either cube textures or volume textures.

If is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. See description.

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

Supports the texture transformation flag. When applied, the device divides transformed texture coordinates by the last texture coordinate. If this capability is present, then the projective divide occurs per pixel. If this capability is not present, but the projective divide needs to occur anyway, then it is performed on a per-vertex basis by the Direct3D runtime.

All textures must be square.

Texture indices are not scaled by the texture size prior to interpolation.

Device supports volume textures.

Device requires that volume texture maps have dimensions specified as powers of two.

?

+
+ + bb172513 + D3DPBLENDCAPS_INVSRCCOLOR2 + D3DPBLENDCAPS_INVSRCCOLOR2 +
+ + +

Defines the supported blend operations. See Remarks for definitions of terms.

+
+ +

Source, Destination, and Result are defined as:

TermTypeDescription
SourceInputColor of the source pixel before the operation.
DestinationInputColor of the pixel in the destination buffer before the operation.
ResultOutputReturned value that is the blended color resulting from the operation.

?

This enumerated type defines values used by the following render states:

+
+ + bb172509 + D3DBLENDOP + D3DBLENDOP +
+ + +

The result is the destination added to the source. Result = Source + Destination

+
+ + bb172509 + D3DBLENDOP_ADD + D3DBLENDOP_ADD +
+ + +

The result is the destination subtracted from to the source. Result = Source - Destination

+
+ + bb172509 + D3DBLENDOP_SUBTRACT + D3DBLENDOP_SUBTRACT +
+ + +

The result is the source subtracted from the destination. Result = Destination - Source

+
+ + bb172509 + D3DBLENDOP_REVSUBTRACT + D3DBLENDOP_REVSUBTRACT +
+ + +

The result is the minimum of the source and destination. Result = MIN(Source, Destination)

+
+ + bb172509 + D3DBLENDOP_MIN + D3DBLENDOP_MIN +
+ + +

The result is the maximum of the source and destination. Result = MAX(Source, Destination)

+
+ + bb172509 + D3DBLENDOP_MAX + D3DBLENDOP_MAX +
+ + +

Flags used to obtain callback information.

+
+ + bb172714 + D3DXCALLBACK_SEARCH_FLAGS + D3DXCALLBACK_SEARCH_FLAGS +
+ + +

Exclude callbacks located at the initial position from the search.

+
+ + bb172714 + D3DXCALLBACK_SEARCH_EXCLUDING_INITIAL_POSITION + D3DXCALLBACK_SEARCH_EXCLUDING_INITIAL_POSITION +
+ + +

Reverse the callback search direction.

+
+ + bb172714 + D3DXCALLBACK_SEARCH_BEHIND_INITIAL_POSITION + D3DXCALLBACK_SEARCH_BEHIND_INITIAL_POSITION +
+ + +

Obsolete in DirectX 8.0 and later versions; see Remarks.

The D3DLIGHTINGCAPS structure describes the lighting capabilities of a device.

+
+ +

This structure has been replaced by D3DCAPS8 (see the DirectX 8.0 SDK documentation) for DirectX 8.0 and later runtimes, but is required for DirectX 7.0 and earlier runtime compatibility. See Reporting DirectX 8.0 Style Direct3D Capabilities for details.

This structure is a member of the D3DDEVICEDESC_V1 structure.

+
+ + ff548471 + D3DCAPS + D3DCAPS +
+ + +

Specifies the size, in bytes, of the D3DLIGHTINGCAPS structure.

+
+ + ff548471 + D3DCAPS_OVERLAY + D3DCAPS_OVERLAY +
+ + +

Specifies flags describing the capabilities of the lighting module. The following flags are defined:

ValueMeaning
D3DLIGHTCAPS_DIRECTIONALDirectional lights are supported. +
D3DLIGHTCAPS_GLSPOTOpenGL-style spotlights are supported.
D3DLIGHTCAPS_PARALLELPOINTParallel-point lights are supported.
D3DLIGHTCAPS_POINTPoint lights are supported.
D3DLIGHTCAPS_SPOTSpotlights are supported. +

?

+
+ + ff548471 + D3DCAPS_READ_SCANLINE + D3DCAPS_READ_SCANLINE +
+ + + None. + + + None + None + + + +

Driver capability flags.

+
+ + bb172511 + D3DCAPS2 + D3DCAPS2 +
+ + + No documentation. + + + bb172511 + D3DCAPS2_FULLSCREENGAMMA + D3DCAPS2_FULLSCREENGAMMA + + + + No documentation. + + + bb172511 + D3DCAPS2_CANCALIBRATEGAMMA + D3DCAPS2_CANCALIBRATEGAMMA + + + + No documentation. + + + bb172511 + D3DCAPS2_CANMANAGERESOURCE + D3DCAPS2_CANMANAGERESOURCE + + + + No documentation. + + + bb172511 + D3DCAPS2_DYNAMICTEXTURES + D3DCAPS2_DYNAMICTEXTURES + + + + No documentation. + + + bb172511 + D3DCAPS2_CANAUTOGENMIPMAP + D3DCAPS2_CANAUTOGENMIPMAP + + + + No documentation. + + + bb172511 + D3DCAPS2_CANSHARERESOURCE + D3DCAPS2_CANSHARERESOURCE + + + + None. + + + None + None + + + +

Driver capability flags.

+
+ + bb172512 + D3DCAPS3 + D3DCAPS3 +
+ + + No documentation. + + + bb172512 + D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD + D3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD + + + + No documentation. + + + bb172512 + D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION + D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION + + + + No documentation. + + + bb172512 + D3DCAPS3_COPY_TO_VIDMEM + D3DCAPS3_COPY_TO_VIDMEM + + + + No documentation. + + + bb172512 + D3DCAPS3_COPY_TO_SYSTEMMEM + D3DCAPS3_COPY_TO_SYSTEMMEM + + + + No documentation. + + + bb172512 + D3DCAPS3_DXVAHD + D3DCAPS3_DXVAHD + + + + None. + + + None + None + + + +

The following flags are used to specify which channels in a texture to operate on.

+
+ + bb205563 + D3DX_CHANNEL + D3DX_CHANNEL +
+ + + No documentation. + + + bb205563 + D3DX_CHANNEL_RED + D3DX_CHANNEL_RED + + + + No documentation. + + + bb205563 + D3DX_CHANNEL_BLUE + D3DX_CHANNEL_BLUE + + + + No documentation. + + + bb205563 + D3DX_CHANNEL_GREEN + D3DX_CHANNEL_GREEN + + + + No documentation. + + + bb205563 + D3DX_CHANNEL_ALPHA + D3DX_CHANNEL_ALPHA + + + + No documentation. + + + bb205563 + D3DX_CHANNEL_LUMINANCE + D3DX_CHANNEL_LUMINANCE + + + +

Defines operations to perform on vertices in preparation for mesh cleaning.

+
+ + bb172720 + D3DXCLEANTYPE + D3DXCLEANTYPE +
+ + +

Merge triangles that share the same vertex indices but have face normals pointing in opposite directions (back-facing triangles). Unless the triangles are not split by adding a replicated vertex, mesh adjacency data from the two triangles may conflict.

+
+ + bb172720 + D3DXCLEAN_BACKFACING + D3DXCLEAN_BACKFACING +
+ + +

If a vertex is the apex of two triangle fans (a bowtie) and mesh operations will affect one of the fans, then split the shared vertex into two new vertices. Bowties can cause problems for operations such as mesh simplification that remove vertices, because removing one vertex affects two distinct sets of triangles.

+
+ + bb172720 + D3DXCLEAN_BOWTIES + D3DXCLEAN_BOWTIES +
+ + +

Use this flag to prevent infinite loops during skinning setup mesh operations.

+
+ + bb172720 + D3DXCLEAN_SKINNING + D3DXCLEAN_SKINNING +
+ + +

Use this flag to prevent infinite loops during mesh optimization operations.

+
+ + bb172720 + D3DXCLEAN_OPTIMIZATION + D3DXCLEAN_OPTIMIZATION +
+ + +

Use this flag to prevent infinite loops during mesh simplification operations.

+
+ + bb172720 + D3DXCLEAN_SIMPLIFICATION + D3DXCLEAN_SIMPLIFICATION +
+ + +

These flags identify a surface to reset when calling Clear.

+
+ + bb172514 + D3DCLEAR + D3DCLEAR +
+ + + No documentation. + + + bb172514 + D3DCLEAR_TARGET + D3DCLEAR_TARGET + + + + No documentation. + + + bb172514 + D3DCLEAR_ZBUFFER + D3DCLEAR_ZBUFFER + + + + No documentation. + + + bb172514 + D3DCLEAR_STENCIL + D3DCLEAR_STENCIL + + + + No documentation. + + + bb172514 + D3DCLEAR_ALL + D3DCLEAR_ALL + + + + None. + + + None + None + + + +

Describes the current clip status.

+
+ +

When clipping is enabled during vertex processing (by ProcessVertices, DrawPrimitive, or other drawing functions), Direct3D computes a clip code for every vertex. The clip code is a combination of D3DCS_* bits. When a vertex is outside a particular clipping plane, the corresponding bit is set in the clipping code. Direct3D maintains the clip status using , which has ClipUnion and ClipIntersection members. ClipUnion is a bitwise OR of all vertex clip codes and ClipIntersection is a bitwise AND of all vertex clip codes. Initial values are zero for ClipUnion and 0xFFFFFFFF for ClipIntersection. When is set to , ClipUnion and ClipIntersection are set to zero. Direct3D updates the clip status during drawing calls. To compute clip status for a particular object, set ClipUnion and ClipIntersection to their initial value and continue drawing.

Clip status is not updated by DrawRectPatch and DrawTriPatch because there is no software emulation for them.

+
+ + bb172516 + D3DCS + D3DCS +
+ + +

Clip union flags that describe the current clip status. This member can be one or more of the following flags:

ValueMeaning

Combination of all clip flags.

All vertices are clipped by the left plane of the viewing frustum.

All vertices are clipped by the right plane of the viewing frustum.

All vertices are clipped by the top plane of the viewing frustum.

All vertices are clipped by the bottom plane of the viewing frustum.

All vertices are clipped by the front plane of the viewing frustum.

All vertices are clipped by the back plane of the viewing frustum.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

?

+
+ + bb172516 + D3DCS_LEFT + D3DCS_LEFT +
+ + +

Clip intersection flags that describe the current clip status. This member can take the same flags as ClipUnion.

+
+ + bb172516 + D3DCS_RIGHT + D3DCS_RIGHT +
+ + + No documentation. + + + bb172516 + D3DCS_TOP + D3DCS_TOP + + + + No documentation. + + + bb172516 + D3DCS_BOTTOM + D3DCS_BOTTOM + + + + No documentation. + + + bb172516 + D3DCS_FRONT + D3DCS_FRONT + + + + No documentation. + + + bb172516 + D3DCS_BACK + D3DCS_BACK + + + + No documentation. + + + bb172516 + D3DCS_PLANE0 + D3DCS_PLANE0 + + + + No documentation. + + + bb172516 + D3DCS_PLANE1 + D3DCS_PLANE1 + + + + No documentation. + + + bb172516 + D3DCS_PLANE2 + D3DCS_PLANE2 + + + + No documentation. + + + bb172516 + D3DCS_PLANE3 + D3DCS_PLANE3 + + + + No documentation. + + + bb172516 + D3DCS_PLANE4 + D3DCS_PLANE4 + + + + No documentation. + + + bb172516 + D3DCS_PLANE5 + D3DCS_PLANE5 + + + + No documentation. + + + bb172516 + D3DCS_ALL + D3DCS_ALL + + + + No documentation. + + + D3DMATERIALCOLORSOURCE + D3DMATERIALCOLORSOURCE + + + + No documentation. + + + D3DMCS_MATERIAL + D3DMCS_MATERIAL + + + + No documentation. + + + D3DMCS_COLOR1 + D3DMCS_COLOR1 + + + + No documentation. + + + D3DMCS_COLOR2 + D3DMCS_COLOR2 + + + +

Render states define set-up states for all kinds of vertex and pixel processing. Some render states set up vertex processing, and some set up pixel processing (see Render States (Direct3D 9)). Render states can be saved and restored using stateblocks (see State Blocks Save and Restore State (Direct3D 9)).

+
+ +
Render States
ps_1_1 to ps_1_34 texture samplers

?

Direct3D defines the D3DRENDERSTATE_WRAPBIAS constant as a convenience for applications to enable or disable texture wrapping, based on the zero-based integer of a texture coordinate set (rather than explicitly using one of the D3DRS_WRAP n state values). Add the D3DRENDERSTATE_WRAPBIAS value to the zero-based index of a texture coordinate set to calculate the D3DRS_WRAP n value that corresponds to that index, as shown in the following example.

 // Enable U/V wrapping for textures that use the texture 	
+            // coordinate set at the index within the dwIndex variable  hr = pd3dDevice->SetRenderState(	
+            dwIndex + D3DRENDERSTATE_WRAPBIAS,  	
+             | ); // If dwIndex is 3, the value that results from 	
+            // the addition equals  (131)	
+            
+
+ + bb172599 + D3DCOLORWRITEENABLE + D3DCOLORWRITEENABLE +
+ + + No documentation. + + + bb172599 + D3DCOLORWRITEENABLE_RED + D3DCOLORWRITEENABLE_RED + + + + No documentation. + + + bb172599 + D3DCOLORWRITEENABLE_GREEN + D3DCOLORWRITEENABLE_GREEN + + + + No documentation. + + + bb172599 + D3DCOLORWRITEENABLE_BLUE + D3DCOLORWRITEENABLE_BLUE + + + + No documentation. + + + bb172599 + D3DCOLORWRITEENABLE_ALPHA + D3DCOLORWRITEENABLE_ALPHA + + + +

Defines the supported compare functions.

+
+ +

The values in this enumerated type define the supported compare functions for the , , and render states.

+
+ + bb172517 + D3DCMPFUNC + D3DCMPFUNC +
+ + +

Always fail the test.

+
+ + bb172517 + D3DCMP_NEVER + D3DCMP_NEVER +
+ + +

Accept the new pixel if its value is less than the value of the current pixel.

+
+ + bb172517 + D3DCMP_LESS + D3DCMP_LESS +
+ + +

Accept the new pixel if its value equals the value of the current pixel.

+
+ + bb172517 + D3DCMP_EQUAL + D3DCMP_EQUAL +
+ + +

Accept the new pixel if its value is less than or equal to the value of the current pixel.

+
+ + bb172517 + D3DCMP_LESSEQUAL + D3DCMP_LESSEQUAL +
+ + +

Accept the new pixel if its value is greater than the value of the current pixel.

+
+ + bb172517 + D3DCMP_GREATER + D3DCMP_GREATER +
+ + +

Accept the new pixel if its value does not equal the value of the current pixel.

+
+ + bb172517 + D3DCMP_NOTEQUAL + D3DCMP_NOTEQUAL +
+ + +

Accept the new pixel if its value is greater than or equal to the value of the current pixel.

+
+ + bb172517 + D3DCMP_GREATEREQUAL + D3DCMP_GREATEREQUAL +
+ + +

Always pass the test.

+
+ + bb172517 + D3DCMP_ALWAYS + D3DCMP_ALWAYS +
+ + +

C++ applications can use alpha testing to control when pixels are written to the render-target surface. By using the render state, your application sets the current Direct3D device so that it tests each pixel according to an alpha test function. If the test succeeds, the pixel is written to the surface. If it does not, Direct3D ignores the pixel. Select the alpha test function with the render state. Your application can set a reference alpha value for all pixels to compare against by using the render state.

The most common use for alpha testing is to improve performance when rasterizing objects that are nearly transparent. If the color data being rasterized is more opaque than the color at a given pixel (), then the pixel is written. Otherwise, the rasterizer ignores the pixel altogether, saving the processing required to blend the two colors. The following code example checks if a given comparison function is supported and, if so, it sets the comparison function parameters required to improve performance during rendering.

 // This code example assumes that pCaps is a	
+            //  structure that was filled with a 	
+            // previous call to . if (pCaps.AlphaCmpCaps & )	
+            { dev->SetRenderState(, (DWORD)0x00000001); dev->SetRenderState(, TRUE);  dev->SetRenderState(, );	
+            } // If the comparison is not supported, render anyway. 	
+            // The only drawback is no performance gain.	
+            

Not all hardware supports all alpha-testing features. You can check the device capabilities by calling the method. After retrieving the device capabilities, check the associated structure's AlphaCmpCaps member for the desired comparison function. If the AlphaCmpCaps member contains only the capability or only the capability, the driver does not support alpha tests.

?

?

+
+ + bb172254 + D3DPCMPCAPS + D3DPCMPCAPS +
+ + + No documentation. + + + bb172254 + D3DPCMPCAPS_NEVER + D3DPCMPCAPS_NEVER + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_LESS + D3DPCMPCAPS_LESS + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_EQUAL + D3DPCMPCAPS_EQUAL + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_LESSEQUAL + D3DPCMPCAPS_LESSEQUAL + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_GREATER + D3DPCMPCAPS_GREATER + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_NOTEQUAL + D3DPCMPCAPS_NOTEQUAL + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_GREATEREQUAL + D3DPCMPCAPS_GREATEREQUAL + + + + No documentation. + + + bb172254 + D3DPCMPCAPS_ALWAYS + D3DPCMPCAPS_ALWAYS + + + +

Specifies how to combine the glyph data from the source and destination surfaces in a call to ComposeRects.

+
+ + bb509546 + D3DCOMPOSERECTSOP + D3DCOMPOSERECTSOP +
+ + + No documentation. + + + bb509546 + D3DCOMPOSERECTS_COPY + D3DCOMPOSERECTS_COPY + + + + No documentation. + + + bb509546 + D3DCOMPOSERECTS_OR + D3DCOMPOSERECTS_OR + + + + No documentation. + + + bb509546 + D3DCOMPOSERECTS_AND + D3DCOMPOSERECTS_AND + + + + No documentation. + + + bb509546 + D3DCOMPOSERECTS_NEG + D3DCOMPOSERECTS_NEG + + + +

Defines the compression mode used for storing compressed animation set data.

+
+ + bb172734 + D3DXCOMPRESSION_FLAGS + D3DXCOMPRESSION_FLAGS +
+ + +

Implements fast compression.

+
+ + bb172734 + D3DXCOMPRESS_DEFAULT + D3DXCOMPRESS_DEFAULT +
+ + +

A combination of one or more flags that control the device create behavior.

+
+ + bb172527 + D3DCREATE + D3DCREATE +
+ + + No documentation. + + + bb172527 + D3DCREATE_FPU_PRESERVE + D3DCREATE_FPU_PRESERVE + + + + No documentation. + + + bb172527 + D3DCREATE_MULTITHREADED + D3DCREATE_MULTITHREADED + + + + No documentation. + + + bb172527 + D3DCREATE_PUREDEVICE + D3DCREATE_PUREDEVICE + + + + No documentation. + + + bb172527 + D3DCREATE_SOFTWARE_VERTEXPROCESSING + D3DCREATE_SOFTWARE_VERTEXPROCESSING + + + + No documentation. + + + bb172527 + D3DCREATE_HARDWARE_VERTEXPROCESSING + D3DCREATE_HARDWARE_VERTEXPROCESSING + + + + No documentation. + + + bb172527 + D3DCREATE_MIXED_VERTEXPROCESSING + D3DCREATE_MIXED_VERTEXPROCESSING + + + + No documentation. + + + bb172527 + D3DCREATE_DISABLE_DRIVER_MANAGEMENT + D3DCREATE_DISABLE_DRIVER_MANAGEMENT + + + + No documentation. + + + bb172527 + D3DCREATE_ADAPTERGROUP_DEVICE + D3DCREATE_ADAPTERGROUP_DEVICE + + + + No documentation. + + + bb172527 + D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX + D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX + + + + No documentation. + + + bb172527 + D3DCREATE_NOWINDOWCHANGES + D3DCREATE_NOWINDOWCHANGES + + + + No documentation. + + + bb172527 + D3DCREATE_DISABLE_PSGP_THREADING + D3DCREATE_DISABLE_PSGP_THREADING + + + + No documentation. + + + bb172527 + D3DCREATE_ENABLE_PRESENTSTATS + D3DCREATE_ENABLE_PRESENTSTATS + + + + No documentation. + + + bb172527 + D3DCREATE_DISABLE_PRINTSCREEN + D3DCREATE_DISABLE_PRINTSCREEN + + + + No documentation. + + + bb172527 + D3DCREATE_SCREENSAVER + D3DCREATE_SCREENSAVER + + + + None. + + + None + None + + + +

Defines the faces of a cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACES + D3DCUBEMAP_FACES +
+ + +

Positive x-face of the cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACE_POSITIVE_X + D3DCUBEMAP_FACE_POSITIVE_X +
+ + +

Negative x-face of the cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACE_NEGATIVE_X + D3DCUBEMAP_FACE_NEGATIVE_X +
+ + +

Positive y-face of the cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACE_POSITIVE_Y + D3DCUBEMAP_FACE_POSITIVE_Y +
+ + +

Negative y-face of the cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACE_NEGATIVE_Y + D3DCUBEMAP_FACE_NEGATIVE_Y +
+ + +

Positive z-face of the cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACE_POSITIVE_Z + D3DCUBEMAP_FACE_POSITIVE_Z +
+ + +

Negative z-face of the cubemap.

+
+ + bb172528 + D3DCUBEMAP_FACE_NEGATIVE_Z + D3DCUBEMAP_FACE_NEGATIVE_Z +
+ + +

Defines the supported culling modes.

+
+ +

The values in this enumerated type are used by the render state. The culling modes define how back faces are culled when rendering a geometry.

+
+ + bb172529 + D3DCULL + D3DCULL +
+ + +

Do not cull back faces.

+
+ + bb172529 + D3DCULL_NONE + D3DCULL_NONE +
+ + +

Cull back faces with clockwise vertices.

+
+ + bb172529 + D3DCULL_CW + D3DCULL_CW +
+ + +

Cull back faces with counterclockwise vertices.

+
+ + bb172529 + D3DCULL_CCW + D3DCULL_CCW +
+ + +

Driver cursor capability flags.

+
+ + bb172530 + D3DCURSORCAPS + D3DCURSORCAPS +
+ + + No documentation. + + + bb172530 + D3DCURSORCAPS_COLOR + D3DCURSORCAPS_COLOR + + + + No documentation. + + + bb172530 + D3DCURSORCAPS_LOWRES + D3DCURSORCAPS_LOWRES + + + + No documentation. + + + D3DDEBUGMONITORTOKENS + D3DDEBUGMONITORTOKENS + + + + No documentation. + + + D3DDMT_ENABLE + D3DDMT_ENABLE + + + + No documentation. + + + D3DDMT_DISABLE + D3DDMT_DISABLE + + + +

Defines the vertex declaration method which is a predefined operation performed by the tessellator (or any procedural geometry routine on the vertex data during tessellation).

+
+ +

The tessellator looks at the method to determine what data to calculate from the vertex data during tessellation. Mesh data should use the default value. Patches can use any of the other implemented types.

Vertex data is declared with an array of structures. Each element in the array contains a vertex declaration method.

In addition to using , a normal mesh can use and methods when N-patches are enabled.

+
+ + bb172532 + D3DDECLMETHOD + D3DDECLMETHOD +
+ + +

Default value. The tessellator copies the vertex data (spline data for patches) as is, with no additional calculations. When the tessellator is used, this element is interpolated. Otherwise vertex data is copied into the input register. The input and output type can be any value, but are always the same type.

+
+ + bb172532 + D3DDECLMETHOD_DEFAULT + D3DDECLMETHOD_DEFAULT +
+ + +

Computes the tangent at a point on the rectangle or triangle patch in the U direction. The input type can be one of the following: +

The output type is always .

+
+ + bb172532 + D3DDECLMETHOD_PARTIALU + D3DDECLMETHOD_PARTIALU +
+ + +

Computes the tangent at a point on the rectangle or triangle patch in the V direction. The input type can be one of the following: +

The output type is always .

+
+ + bb172532 + D3DDECLMETHOD_PARTIALV + D3DDECLMETHOD_PARTIALV +
+ + +

Computes the normal at a point on the rectangle or triangle patch by taking the cross product of two tangents. The input type can be one of the following: +

The output type is always .

+
+ + bb172532 + D3DDECLMETHOD_CROSSUV + D3DDECLMETHOD_CROSSUV +
+ + +

Copy out the U, V values at a point on the rectangle or triangle patch. This results in a 2D float. The input type must be set to . The output data type is always . The input stream and offset are also unused (but must be set to 0).

+
+ + bb172532 + D3DDECLMETHOD_UV + D3DDECLMETHOD_UV +
+ + +

Look up a displacement map. The input type can be one of the following: +

Only the .x and .y components are used for the texture map lookup. The output type is always . The device must support displacement mapping. For more information about displacement mapping, see Displacement Mapping (Direct3D 9). This constant is supported only by the programmable pipeline on N-patch data, if N-patches are enabled.

+
+ + bb172532 + D3DDECLMETHOD_LOOKUP + D3DDECLMETHOD_LOOKUP +
+ + +

Look up a presampled displacement map. The input type must be set to ; the stream index and the stream offset must be set to 0. The output type for this operation is always . The device must support displacement mapping. For more information about displacement mapping, see Displacement Mapping (Direct3D 9). This constant is supported only by the programmable pipeline on N-patch data, if N-patches are enabled. This method can be used only with .

+
+ + bb172532 + D3DDECLMETHOD_LOOKUPPRESAMPLED + D3DDECLMETHOD_LOOKUPPRESAMPLED +
+ + +

Defines a vertex declaration data type.

+
+ +

Vertex data is declared with an array of structures. Each element in the array contains a vertex declaration data type.

Use the DirectX Caps Viewer Tool tool to see which types are supported on your device.

+
+ + bb172533 + D3DDECLTYPE + D3DDECLTYPE +
+ + +

One-component float expanded to (float, 0, 0, 1).

+
+ + bb172533 + D3DDECLTYPE_FLOAT1 + D3DDECLTYPE_FLOAT1 +
+ + +

Two-component float expanded to (float, float, 0, 1).

+
+ + bb172533 + D3DDECLTYPE_FLOAT2 + D3DDECLTYPE_FLOAT2 +
+ + +

Three-component float expanded to (float, float, float, 1).

+
+ + bb172533 + D3DDECLTYPE_FLOAT3 + D3DDECLTYPE_FLOAT3 +
+ + +

Four-component float expanded to (float, float, float, float).

+
+ + bb172533 + D3DDECLTYPE_FLOAT4 + D3DDECLTYPE_FLOAT4 +
+ + +

Four-component, packed, unsigned bytes mapped to 0 to 1 range. Input is a and is expanded to RGBA order.

+
+ + bb172533 + D3DDECLTYPE_D3DCOLOR + D3DDECLTYPE_D3DCOLOR +
+ + +

Four-component, unsigned byte.

+
+ + bb172533 + D3DDECLTYPE_UBYTE4 + D3DDECLTYPE_UBYTE4 +
+ + +

Two-component, signed short expanded to (value, value, 0, 1).

+
+ + bb172533 + D3DDECLTYPE_SHORT2 + D3DDECLTYPE_SHORT2 +
+ + +

Four-component, signed short expanded to (value, value, value, value).

+
+ + bb172533 + D3DDECLTYPE_SHORT4 + D3DDECLTYPE_SHORT4 +
+ + +

Four-component byte with each byte normalized by dividing with 255.0f.

+
+ + bb172533 + D3DDECLTYPE_UBYTE4N + D3DDECLTYPE_UBYTE4N +
+ + +

Normalized, two-component, signed short, expanded to (first short/32767.0, second short/32767.0, 0, 1).

+
+ + bb172533 + D3DDECLTYPE_SHORT2N + D3DDECLTYPE_SHORT2N +
+ + +

Normalized, four-component, signed short, expanded to (first short/32767.0, second short/32767.0, third short/32767.0, fourth short/32767.0).

+
+ + bb172533 + D3DDECLTYPE_SHORT4N + D3DDECLTYPE_SHORT4N +
+ + +

Normalized, two-component, unsigned short, expanded to (first short/65535.0, short short/65535.0, 0, 1).

+
+ + bb172533 + D3DDECLTYPE_USHORT2N + D3DDECLTYPE_USHORT2N +
+ + +

Normalized, four-component, unsigned short, expanded to (first short/65535.0, second short/65535.0, third short/65535.0, fourth short/65535.0).

+
+ + bb172533 + D3DDECLTYPE_USHORT4N + D3DDECLTYPE_USHORT4N +
+ + +

Three-component, unsigned, 10 10 10 format expanded to (value, value, value, 1).

+
+ + bb172533 + D3DDECLTYPE_UDEC3 + D3DDECLTYPE_UDEC3 +
+ + +

Three-component, signed, 10 10 10 format normalized and expanded to (v[0]/511.0, v[1]/511.0, v[2]/511.0, 1).

+
+ + bb172533 + D3DDECLTYPE_DEC3N + D3DDECLTYPE_DEC3N +
+ + +

Two-component, 16-bit, floating point expanded to (value, value, 0, 1).

+
+ + bb172533 + D3DDECLTYPE_FLOAT16_2 + D3DDECLTYPE_FLOAT16_2 +
+ + +

Four-component, 16-bit, floating point expanded to (value, value, value, value).

+
+ + bb172533 + D3DDECLTYPE_FLOAT16_4 + D3DDECLTYPE_FLOAT16_4 +
+ + +

Type field in the declaration is unused. This is designed for use with and .

+
+ + bb172533 + D3DDECLTYPE_UNUSED + D3DDECLTYPE_UNUSED +
+ + +

Constants describing the vertex data types supported by a device.

+
+ + bb172552 + D3DDTCAPS + D3DDTCAPS +
+ + + No documentation. + + + bb172552 + D3DDTCAPS_UBYTE4 + D3DDTCAPS_UBYTE4 + + + + No documentation. + + + bb172552 + D3DDTCAPS_UBYTE4N + D3DDTCAPS_UBYTE4N + + + + No documentation. + + + bb172552 + D3DDTCAPS_SHORT2N + D3DDTCAPS_SHORT2N + + + + No documentation. + + + bb172552 + D3DDTCAPS_SHORT4N + D3DDTCAPS_SHORT4N + + + + No documentation. + + + bb172552 + D3DDTCAPS_USHORT2N + D3DDTCAPS_USHORT2N + + + + No documentation. + + + bb172552 + D3DDTCAPS_USHORT4N + D3DDTCAPS_USHORT4N + + + + No documentation. + + + bb172552 + D3DDTCAPS_UDEC3 + D3DDTCAPS_UDEC3 + + + + No documentation. + + + bb172552 + D3DDTCAPS_DEC3N + D3DDTCAPS_DEC3N + + + + No documentation. + + + bb172552 + D3DDTCAPS_FLOAT16_2 + D3DDTCAPS_FLOAT16_2 + + + + No documentation. + + + bb172552 + D3DDTCAPS_FLOAT16_4 + D3DDTCAPS_FLOAT16_4 + + + +

Identifies the intended use of vertex data.

+
+ +

Vertex data is declared with an array of structures. Each element in the array contains a usage type.

For more information about vertex declarations, see Vertex Declaration (Direct3D 9).

+
+ + bb172534 + D3DDECLUSAGE + D3DDECLUSAGE +
+ + +

Position data ranging from (-1,-1) to (1,1). Use with a usage index of 0 to specify untransformed position for fixed function vertex processing and the n-patch tessellator. Use with a usage index of 1 to specify untransformed position in the fixed function vertex shader for vertex tweening.

+
+ + bb172534 + D3DDECLUSAGE_POSITION + D3DDECLUSAGE_POSITION +
+ + +

Blending weight data. Use with a usage index of 0 to specify the blend weights used in indexed and nonindexed vertex blending.

+
+ + bb172534 + D3DDECLUSAGE_BLENDWEIGHT + D3DDECLUSAGE_BLENDWEIGHT +
+ + +

Blending indices data. Use with a usage index of 0 to specify matrix indices for indexed paletted skinning.

+
+ + bb172534 + D3DDECLUSAGE_BLENDINDICES + D3DDECLUSAGE_BLENDINDICES +
+ + +

Vertex normal data. Use with a usage index of 0 to specify vertex normals for fixed function vertex processing and the n-patch tessellator. Use with a usage index of 1 to specify vertex normals for fixed function vertex processing for vertex tweening.

+
+ + bb172534 + D3DDECLUSAGE_NORMAL + D3DDECLUSAGE_NORMAL +
+ + +

Point size data. Use with a usage index of 0 to specify the point-size attribute used by the setup engine of the rasterizer to expand a point into a quad for the point-sprite functionality.

+
+ + bb172534 + D3DDECLUSAGE_PSIZE + D3DDECLUSAGE_PSIZE +
+ + +

Texture coordinate data. Use , n to specify texture coordinates in fixed function vertex processing and in pixel shaders prior to ps_3_0. These can be used to pass user defined data.

+
+ + bb172534 + D3DDECLUSAGE_TEXCOORD + D3DDECLUSAGE_TEXCOORD +
+ + +

Vertex tangent data.

+
+ + bb172534 + D3DDECLUSAGE_TANGENT + D3DDECLUSAGE_TANGENT +
+ + +

Vertex binormal data.

+
+ + bb172534 + D3DDECLUSAGE_BINORMAL + D3DDECLUSAGE_BINORMAL +
+ + +

Single positive floating point value. Use with a usage index of 0 to specify a tessellation factor used in the tessellation unit to control the rate of tessellation. For more information about the data type, see .

+
+ + bb172534 + D3DDECLUSAGE_TESSFACTOR + D3DDECLUSAGE_TESSFACTOR +
+ + +

Vertex data contains transformed position data ranging from (0,0) to (viewport width, viewport height). Use with a usage index of 0 to specify transformed position. When a declaration containing this is set, the pipeline does not perform vertex processing.

+
+ + bb172534 + D3DDECLUSAGE_POSITIONT + D3DDECLUSAGE_POSITIONT +
+ + +

Vertex data contains diffuse or specular color. Use with a usage index of 0 to specify the diffuse color in the fixed function vertex shader and pixel shaders prior to ps_3_0. Use with a usage index of 1 to specify the specular color in the fixed function vertex shader and pixel shaders prior to ps_3_0.

+
+ + bb172534 + D3DDECLUSAGE_COLOR + D3DDECLUSAGE_COLOR +
+ + +

Vertex data contains fog data. Use with a usage index of 0 to specify a fog blend value used after pixel shading finishes. This applies to pixel shaders prior to version ps_3_0.

+
+ + bb172534 + D3DDECLUSAGE_FOG + D3DDECLUSAGE_FOG +
+ + +

Vertex data contains depth data.

+
+ + bb172534 + D3DDECLUSAGE_DEPTH + D3DDECLUSAGE_DEPTH +
+ + +

Vertex data contains sampler data. Use with a usage index of 0 to specify the displacement value to look up. It can be used only with D3DDECLUSAGE_LOOKUPPRESAMPLED or D3DDECLUSAGE_LOOKUP.

+
+ + bb172534 + D3DDECLUSAGE_SAMPLE + D3DDECLUSAGE_SAMPLE +
+ + +

Defines the degree of the variables in the equation that describes a curve.

+
+ +

The values in this enumeration are used to describe the curves used by rectangle and triangle patches. For more information, see .

+
+ + bb172536 + D3DDEGREETYPE + D3DDEGREETYPE +
+ + +

Curve is described by variables of first order.

+
+ + bb172536 + D3DDEGREE_LINEAR + D3DDEGREE_LINEAR +
+ + +

Curve is described by variables of second order.

+
+ + bb172536 + D3DDEGREE_QUADRATIC + D3DDEGREE_QUADRATIC +
+ + +

Curve is described by variables of third order.

+
+ + bb172536 + D3DDEGREE_CUBIC + D3DDEGREE_CUBIC +
+ + +

Curve is described by variables of fourth order.

+
+ + bb172536 + D3DDEGREE_QUINTIC + D3DDEGREE_QUINTIC +
+ + +

Represents the capabilities of the hardware exposed through the Direct3D object.

+
+ +

The MaxTextureBlendStages and MaxSimultaneousTextures members might seem similar, but they contain different information. The MaxTextureBlendStages member contains the total number of texture-blending stages supported by the current device, and the MaxSimultaneousTextures member describes how many of those stages can have textures bound to them by using the SetTexture method.

When the driver fills this structure, it can set values for execute-buffer capabilities, even when the interface being used to retrieve the capabilities (such as ) does not support execute buffers.

In general, performance problems may occur if you use a texture and then modify it during a scene. Ensure that no texture used in the current BeginScene and EndScene block is evicted unless absolutely necessary. In the case of extremely high texture usage within a scene, the results are undefined. This occurs when you modify a texture that you have used in the scene and there is no spare texture memory available. For such systems, the contents of the z-buffer become invalid at EndScene. Applications should not call UpdateSurface to or from the back buffer on this type of hardware inside a BeginScene/EndScene pair. In addition, applications should not try to access the z-buffer if the capability flag is set. Finally, applications should not lock the back buffer or the z-buffer inside a BeginScene/EndScene pair.

The following flags concerning mipmapped textures are not supported in Direct3D 9.

  • D3DPTFILTERCAPS_LINEAR
  • D3DPTFILTERCAPS_LINEARMIPLINEAR
  • D3DPTFILTERCAPS_LINEARMIPNEAREST
  • D3DPTFILTERCAPS_MIPNEAREST
  • D3DPTFILTERCAPS_NEAREST
+
+ + bb172513 + D3DDEVCAPS + D3DDEVCAPS +
+ + +

Member of the enumerated type, which identifies what type of resources are used for processing vertices.

+
+ + bb172513 + D3DDEVCAPS_EXECUTESYSTEMMEMORY + D3DDEVCAPS_EXECUTESYSTEMMEMORY +
+ + +

Adapter on which this Direct3D device was created. This ordinal is valid only to pass to methods of the interface that created this Direct3D device. The interface can always be retrieved by calling GetDirect3D.

+
+ + bb172513 + D3DDEVCAPS_EXECUTEVIDEOMEMORY + D3DDEVCAPS_EXECUTEVIDEOMEMORY +
+ + +

The following driver-specific capability.

ValueMeaning

Display hardware is capable of returning the current scan line.

The display driver supports an overlay DDI that allows for verification of overlay capabilities. For more information about the overlay DDI, see Overlay DDI.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

?

+
+ + bb172513 + D3DDEVCAPS_TLVERTEXSYSTEMMEMORY + D3DDEVCAPS_TLVERTEXSYSTEMMEMORY +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DDEVCAPS_TLVERTEXVIDEOMEMORY + D3DDEVCAPS_TLVERTEXVIDEOMEMORY +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DDEVCAPS_TEXTURESYSTEMMEMORY + D3DDEVCAPS_TEXTURESYSTEMMEMORY +
+ + +

Bit mask of values representing what presentation swap intervals are available.

ValueMeaning

The driver supports an immediate presentation swap interval.

The driver supports a presentation swap interval of every screen refresh.

The driver supports a presentation swap interval of every second screen refresh.

The driver supports a presentation swap interval of every third screen refresh.

The driver supports a presentation swap interval of every fourth screen refresh.

?

+
+ + bb172513 + D3DDEVCAPS_TEXTUREVIDEOMEMORY + D3DDEVCAPS_TEXTUREVIDEOMEMORY +
+ + +

Bit mask indicating what hardware support is available for cursors. Direct3D 9 does not define alpha-blending cursor capabilities.

ValueMeaning

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports at least a hardware color cursor in high-resolution modes (with scan lines greater than or equal to 400).

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports a hardware color cursor in both high-resolution and low-resolution modes (with scan lines less than 400).

?

+
+ + bb172513 + D3DDEVCAPS_DRAWPRIMTLVERTEX + D3DDEVCAPS_DRAWPRIMTLVERTEX +
+ + +

Flags identifying the capabilities of the device.

ValueMeaning

Device supports blits from system-memory textures to nonlocal video-memory textures.

Device can queue rendering commands after a page flip. Applications do not change their behavior if this flag is set; this capability means that the device is relatively fast.

Device can support at least a DirectX 5-compliant driver.

Device can support at least a DirectX 7-compliant driver.

Device exports an -aware hal.

Device can use execute buffers from system memory.

Device can use execute buffers from video memory.

Device has hardware acceleration for scene rasterization.

Device can support transformation and lighting in hardware.

Device supports N patches.

Device can support rasterization, transform, lighting, and shading in hardware.

Device supports quintic B?zier curves and B-splines.

Device supports rectangular and triangular patches.

When this device capability is set, the hardware architecture does not require caching of any information, and uncached patches (handle zero) will be drawn as efficiently as cached ones. Note that setting does not mean that a patch with handle zero can be drawn. A handle-zero patch can always be drawn whether this cap is set or not.

Device is texturing from separate memory pools.

Device can retrieve textures from non-local video memory.

Device can retrieve textures from system memory.

Device can retrieve textures from device memory.

Device can use buffers from system memory for transformed and lit vertices.

Device can use buffers from video memory for transformed and lit vertices.

?

+
+ + bb172513 + D3DDEVCAPS_CANRENDERAFTERFLIP + D3DDEVCAPS_CANRENDERAFTERFLIP +
+ + +

Miscellaneous driver primitive capabilities. See .

+
+ + bb172513 + D3DDEVCAPS_TEXTURENONLOCALVIDMEM + D3DDEVCAPS_TEXTURENONLOCALVIDMEM +
+ + +

Information on raster-drawing capabilities. This member can be one or more of the following flags.

ValueMeaning

Device supports anisotropic filtering.

Device iterates colors perspective correctly.

Device can dither to improve color resolution.

Device supports legacy depth bias. For true depth bias, see .

Device supports range-based fog. In range-based fog, the distance of an object from the viewer is used to compute fog effects, not the depth of the object (that is, the z-coordinate) in the scene.

Device calculates the fog value by referring to a lookup table containing fog values that are indexed to the depth of a given pixel.

Device calculates the fog value during the lighting operation and interpolates the fog value during rasterization.

Device supports level-of-detail bias adjustments. These bias adjustments enable an application to make a mipmap appear crisper or less sharp than it normally would. For more information about level-of-detail bias in mipmaps, see .

Device supports toggling multisampling on and off between and (using ).

Device supports scissor test. See Scissor Test (Direct3D 9).

Device performs true slope-scale based depth bias. This is in contrast to the legacy style depth bias.

Device supports depth buffering using w.

Device supports w-based fog. W-based fog is used when a perspective projection matrix is specified, but affine projections still use z-based fog. The system considers a projection matrix that contains a nonzero value in the [3][4] element to be a perspective projection matrix.

Device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth-buffer. This leaves more video memory for textures. The method used to perform HSR is hardware-dependent and is transparent to the application.

Z-bufferless HSR is performed if no depth-buffer surface is associated with the rendering-target surface and the depth-buffer comparison test is enabled (that is, when the state value associated with the enumeration constant is set to TRUE).

Device supports z-based fog.

Device can perform z-test operations. This effectively renders a primitive and indicates whether any z pixels have been rendered.

?

+
+ + bb172513 + D3DDEVCAPS_DRAWPRIMITIVES2 + D3DDEVCAPS_DRAWPRIMITIVES2 +
+ + +

Z-buffer comparison capabilities. This member can be one or more of the following flags.

ValueMeaning

Always pass the z-test.

Pass the z-test if the new z equals the current z.

Pass the z-test if the new z is greater than the current z.

Pass the z-test if the new z is greater than or equal to the current z.

Pass the z-test if the new z is less than the current z.

Pass the z-test if the new z is less than or equal to the current z.

Always fail the z-test.

Pass the z-test if the new z does not equal the current z.

?

+
+ + bb172513 + D3DDEVCAPS_SEPARATETEXTUREMEMORIES + D3DDEVCAPS_SEPARATETEXTUREMEMORIES +
+ + +

Source-blending capabilities. This member can be one or more of the following flags. (The RGBA values of the source and destination are indicated by the subscripts s and d.)

ValueMeaning

The driver supports both and . See .

Source blend factor is (1 - As, 1 - As, 1 - As, 1 - As) and destination blend factor is (As, As, As, As); the destination blend selection is overridden.

The driver supports the blend mode. (This blend mode is obsolete. For more information, see .)

Blend factor is (Ad, Ad, Ad, Ad).

Blend factor is (Rd, Gd, Bd, Ad).

Blend factor is (1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad).

Blend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad).

Blend factor is (1 - As, 1 - As, 1 - As, 1 - As).

Blend factor is (1 - Rs, 1 - Gs, 1 - Bs, 1 - As).

Blend factor is (1 - PSOutColor[1]r, 1 - PSOutColor[1]g, 1 - PSOutColor[1]b, not used)). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (1, 1, 1, 1).

Blend factor is (As, As, As, As).

Blend factor is (f, f, f, 1); f = min(As, 1 - Ad).

Blend factor is (Rs, Gs, Bs, As).

Blend factor is (PSOutColor[1]r, PSOutColor[1]g, PSOutColor[1]b, not used). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (0, 0, 0, 0).

?

+
+ + bb172513 + D3DDEVCAPS_DRAWPRIMITIVES2EX + D3DDEVCAPS_DRAWPRIMITIVES2EX +
+ + +

Destination-blending capabilities. This member can be the same capabilities that are defined for the SrcBlendCaps member.

+
+ + bb172513 + D3DDEVCAPS_HWTRANSFORMANDLIGHT + D3DDEVCAPS_HWTRANSFORMANDLIGHT +
+ + +

Alpha-test comparison capabilities. This member can include the same capability flags defined for the ZCmpCaps member. If this member contains only the capability or only the capability, the driver does not support alpha tests. Otherwise, the flags identify the individual comparisons that are supported for alpha testing.

+
+ + bb172513 + D3DDEVCAPS_CANBLTSYSTONONLOCAL + D3DDEVCAPS_CANBLTSYSTONONLOCAL +
+ + +

Shading operations capabilities. It is assumed, in general, that if a device supports a given command at all, it supports the mode (as specified in the enumerated type). This flag specifies whether the driver can also support Gouraud shading and whether alpha color components are supported. When alpha components are not supported, the alpha value of colors generated is implicitly 255. This is the maximum possible alpha (that is, the alpha component is at full intensity).

The color, specular highlights, fog, and alpha interpolants of a triangle each have capability flags that an application can use to find out how they are implemented by the device driver.

This member can be one or more of the following flags.

ValueMeaning

Device can support an alpha component for Gouraud-blended transparency (the state for the enumerated type). In this mode, the alpha color component of a primitive is provided at vertices and interpolated across a face along with the other color components.

Device can support colored Gouraud shading. In this mode, the per-vertex color components (red, green, and blue) are interpolated across a triangle face.

Device can support fog in the Gouraud shading mode.

Device supports Gouraud shading of specular highlights.

?

+
+ + bb172513 + D3DDEVCAPS_HWRASTERIZATION + D3DDEVCAPS_HWRASTERIZATION +
+ + +

Miscellaneous texture-mapping capabilities. This member can be one or more of the following flags.

ValueMeaning

Alpha in texture pixels is supported.

Device can draw alpha from texture palettes.

Supports cube textures.

Device requires that cube texture maps have dimensions specified as powers of two.

Device supports mipmapped cube textures.

Device supports mipmapped textures.

Device supports mipmapped volume textures.

is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. A device that exposes this capability can use such a texture if all of the following requirements are met.

  • The texture addressing mode for the texture stage is set to .
  • Texture wrapping for the texture stage is disabled (D3DRS_WRAP n set to 0).
  • Mipmapping is not in use (use magnification filter only).
  • Texture formats must not be through .

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

A texture that is not a power of two cannot be set at a stage that will be read based on a shader computation (such as the bem - ps and texm3x3 - ps instructions in pixel shaders versions 1_0 to 1_3). For example, these textures can be used to store bumps that will be fed into texture reads, but not the environment maps that are used in texbem - ps, texbeml - ps, and texm3x3spec - ps. This means that a texture with dimensions that are not powers of two cannot be addressed or sampled using texture coordinates computed within the shader. This type of operation is known as a dependent read and cannot be performed on these types of textures.

Device does not support a projected bump-environment loopkup operation in programmable and fixed function shaders.

Perspective correction texturing is supported.

If is not set, all textures must have widths and heights specified as powers of two. This requirement does not apply to either cube textures or volume textures.

If is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. See description.

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

Supports the texture transformation flag. When applied, the device divides transformed texture coordinates by the last texture coordinate. If this capability is present, then the projective divide occurs per pixel. If this capability is not present, but the projective divide needs to occur anyway, then it is performed on a per-vertex basis by the Direct3D runtime.

All textures must be square.

Texture indices are not scaled by the texture size prior to interpolation.

Device supports volume textures.

Device requires that volume texture maps have dimensions specified as powers of two.

?

+
+ + bb172513 + D3DDEVCAPS_PUREDEVICE + D3DDEVCAPS_PUREDEVICE +
+ + +

Texture-filtering capabilities for a texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DDEVCAPS_QUINTICRTPATCHES + D3DDEVCAPS_QUINTICRTPATCHES +
+ + +

Texture-filtering capabilities for a cube texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DDEVCAPS_RTPATCHES + D3DDEVCAPS_RTPATCHES +
+ + +

Texture-filtering capabilities for a volume texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DDEVCAPS_RTPATCHHANDLEZERO + D3DDEVCAPS_RTPATCHHANDLEZERO +
+ + +

Texture-addressing capabilities for texture objects. This member can be one or more of the following flags.

ValueMeaning

Device supports setting coordinates outside the range [0.0, 1.0] to the border color, as specified by the texture-stage state.

Device can clamp textures to addresses.

Device can separate the texture-addressing modes of the u and v coordinates of the texture. This ability corresponds to the and render-state values.

Device can mirror textures to addresses.

Device can take the absolute value of the texture coordinate (thus, mirroring around 0) and then clamp to the maximum value.

Device can wrap textures to addresses.

?

+
+ + bb172513 + D3DDEVCAPS_NPATCHES + D3DDEVCAPS_NPATCHES +
+ + +

driver capability flags.

+
+ + bb172537 + D3DDEVCAPS2 + D3DDEVCAPS2 +
+ + + No documentation. + + + bb172537 + D3DDEVCAPS2_STREAMOFFSET + D3DDEVCAPS2_STREAMOFFSET + + + + No documentation. + + + bb172537 + D3DDEVCAPS2_DMAPNPATCH + D3DDEVCAPS2_DMAPNPATCH + + + + No documentation. + + + bb172537 + D3DDEVCAPS2_ADAPTIVETESSRTPATCH + D3DDEVCAPS2_ADAPTIVETESSRTPATCH + + + + No documentation. + + + bb172537 + D3DDEVCAPS2_ADAPTIVETESSNPATCH + D3DDEVCAPS2_ADAPTIVETESSNPATCH + + + + No documentation. + + + bb172537 + D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES + D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES + + + + No documentation. + + + bb172537 + D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH + D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH + + + + No documentation. + + + bb172537 + D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET + D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET + + + +

Defines device types.

+
+ +

All methods of the interface that take a device type will fail if is specified. To use these methods, substitute in the method call.

A device should be created in memory, unless vertex and index buffers are required. To support vertex and index buffers, create the device in memory.

If D3dref9.dll is installed, Direct3D will use the reference rasterizer to create a device type, even if is specified. If D3dref9.dll is not available and is specified, Direct3D will neither render nor present the scene.

+
+ + bb172547 + D3DDEVTYPE + D3DDEVTYPE +
+ + +

Hardware rasterization. Shading is done with software, hardware, or mixed transform and lighting.

+
+ + bb172547 + D3DDEVTYPE_HAL + D3DDEVTYPE_HAL +
+ + +

Direct3D features are implemented in software; however, the reference rasterizer does make use of special CPU instructions whenever it can.

The reference device is installed by the Windows SDK 8.0 or later and is intended as an aid in debugging for development only.

+
+ + bb172547 + D3DDEVTYPE_REF + D3DDEVTYPE_REF +
+ + +

A pluggable software device that has been registered with .

+
+ + bb172547 + D3DDEVTYPE_SW + D3DDEVTYPE_SW +
+ + +

Initialize Direct3D on a computer that has neither hardware nor reference rasterization available, and enable resources for 3D content creation. See Remarks.

+
+ + bb172547 + D3DDEVTYPE_NULLREF + D3DDEVTYPE_NULLREF +
+ + +

Specifies how the monitor being used to display a full-screen application is rotated.

+
+ +

This enumeration is used in , , and .

Applications may choose to handle monitor rotation themselves by using the , in which case, the application will need to know how the monitor is rotated so that it may adjust its rendering accordingly.

+
+ + bb172551 + D3DDISPLAYROTATION + D3DDISPLAYROTATION +
+ + +

Display is not rotated.

+
+ + bb172551 + D3DDISPLAYROTATION_IDENTITY + D3DDISPLAYROTATION_IDENTITY +
+ + +

Display is rotated 90 degrees.

+
+ + bb172551 + D3DDISPLAYROTATION_90 + D3DDISPLAYROTATION_90 +
+ + +

Display is rotated 180 degrees.

+
+ + bb172551 + D3DDISPLAYROTATION_180 + D3DDISPLAYROTATION_180 +
+ + +

Display is rotated 270 degrees.

+
+ + bb172551 + D3DDISPLAYROTATION_270 + D3DDISPLAYROTATION_270 +
+ + +

Effect data types. The data is contained in the pValue member of .

+
+ + bb172822 + D3DXEFFECTDEFAULTTYPE + D3DXEFFECTDEFAULTTYPE +
+ + + No documentation. + + + bb172822 + D3DXEDT_STRING + D3DXEDT_STRING + + + + No documentation. + + + bb172822 + D3DXEDT_FLOATS + D3DXEDT_FLOATS + + + + No documentation. + + + bb172822 + D3DXEDT_DWORD + D3DXEDT_DWORD + + + + No documentation. + + + bb172822 + D3DXEDT_FORCEDWORD + D3DXEDT_FORCEDWORD + + + +

Describes the type of events that can be keyed by the animation controller.

+
+ + bb172827 + D3DXEVENT_TYPE + D3DXEVENT_TYPE +
+ + +

Track speed.

+
+ + bb172827 + D3DXEVENT_TRACKSPEED + D3DXEVENT_TRACKSPEED +
+ + +

Track weight.

+
+ + bb172827 + D3DXEVENT_TRACKWEIGHT + D3DXEVENT_TRACKWEIGHT +
+ + +

Track position.

+
+ + bb172827 + D3DXEVENT_TRACKPOSITION + D3DXEVENT_TRACKPOSITION +
+ + +

Enable flag.

+
+ + bb172827 + D3DXEVENT_TRACKENABLE + D3DXEVENT_TRACKENABLE +
+ + +

Priority blend value.

+
+ + bb172827 + D3DXEVENT_PRIORITYBLEND + D3DXEVENT_PRIORITYBLEND +
+ + +

Defines constants describing the fill mode.

+
+ +

The values in this enumerated type are used by the render state.

+
+ + bb172556 + D3DFILLMODE + D3DFILLMODE +
+ + +

Fill points.

+
+ + bb172556 + D3DFILL_POINT + D3DFILL_POINT +
+ + +

Fill wireframes.

+
+ + bb172556 + D3DFILL_WIREFRAME + D3DFILL_WIREFRAME +
+ + +

Fill solids.

+
+ + bb172556 + D3DFILL_SOLID + D3DFILL_SOLID +
+ + +

The following flags are used to specify which channels in a texture to operate on.

+
+ + bb205565 + D3DX_FILTER + D3DX_FILTER +
+ + + No documentation. + + + bb205565 + D3DX_FILTER_NONE + D3DX_FILTER_NONE + + + + No documentation. + + + bb205565 + D3DX_FILTER_POINT + D3DX_FILTER_POINT + + + + No documentation. + + + bb205565 + D3DX_FILTER_LINEAR + D3DX_FILTER_LINEAR + + + + No documentation. + + + bb205565 + D3DX_FILTER_TRIANGLE + D3DX_FILTER_TRIANGLE + + + + No documentation. + + + bb205565 + D3DX_FILTER_BOX + D3DX_FILTER_BOX + + + + No documentation. + + + bb205565 + D3DX_FILTER_MIRROR_U + D3DX_FILTER_MIRROR_U + + + + No documentation. + + + bb205565 + D3DX_FILTER_MIRROR_V + D3DX_FILTER_MIRROR_V + + + + No documentation. + + + bb205565 + D3DX_FILTER_MIRROR_W + D3DX_FILTER_MIRROR_W + + + + No documentation. + + + bb205565 + D3DX_FILTER_MIRROR + D3DX_FILTER_MIRROR + + + + No documentation. + + + bb205565 + D3DX_FILTER_DITHER + D3DX_FILTER_DITHER + + + + No documentation. + + + bb205565 + D3DX_FILTER_DITHER_DIFFUSION + D3DX_FILTER_DITHER_DIFFUSION + + + + No documentation. + + + bb205565 + D3DX_FILTER_SRGB_IN + D3DX_FILTER_SRGB_IN + + + + No documentation. + + + bb205565 + D3DX_FILTER_SRGB_OUT + D3DX_FILTER_SRGB_OUT + + + + No documentation. + + + bb205565 + D3DX_FILTER_SRGB + D3DX_FILTER_SRGB + + + + No documentation. + + + bb205565 + D3DX_FILTER_DEFAULT + D3DX_FILTER_DEFAULT + + + +

Texture filtering constants.

+
+ + bb172593 + D3DPTFILTERCAPS + D3DPTFILTERCAPS +
+ + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MINFPOINT + D3DPTFILTERCAPS_MINFPOINT + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MINFLINEAR + D3DPTFILTERCAPS_MINFLINEAR + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MINFANISOTROPIC + D3DPTFILTERCAPS_MINFANISOTROPIC + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MINFPYRAMIDALQUAD + D3DPTFILTERCAPS_MINFPYRAMIDALQUAD + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MINFGAUSSIANQUAD + D3DPTFILTERCAPS_MINFGAUSSIANQUAD + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MIPFPOINT + D3DPTFILTERCAPS_MIPFPOINT + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MIPFLINEAR + D3DPTFILTERCAPS_MIPFLINEAR + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_CONVOLUTIONMONO + D3DPTFILTERCAPS_CONVOLUTIONMONO + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MAGFPOINT + D3DPTFILTERCAPS_MAGFPOINT + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MAGFLINEAR + D3DPTFILTERCAPS_MAGFLINEAR + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MAGFANISOTROPIC + D3DPTFILTERCAPS_MAGFANISOTROPIC + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD + D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD + + + + No documentation. + + + bb172593 + D3DPTFILTERCAPS_MAGFGAUSSIANQUAD + D3DPTFILTERCAPS_MAGFGAUSSIANQUAD + + + +

Defines constants that describe the fog mode.

+
+ +

The values in this enumerated type are used by the and render states.

Fog can be considered a measure of visibility: the lower the fog value produced by a fog equation, the less visible an object is.

+
+ + bb172557 + D3DFOGMODE + D3DFOGMODE +
+ + +

No fog effect.

+
+ + bb172557 + D3DFOG_NONE + D3DFOG_NONE +
+ + +

Fog effect intensifies exponentially, according to the following formula. +

+
+ + bb172557 + D3DFOG_EXP + D3DFOG_EXP +
+ + +

Fog effect intensifies exponentially with the square of the distance, according to the following formula. +

+
+ + bb172557 + D3DFOG_EXP2 + D3DFOG_EXP2 +
+ + +

Fog effect intensifies linearly between the start and end points, according to the following formula.

This is the only fog mode currently supported.

+
+ + bb172557 + D3DFOG_LINEAR + D3DFOG_LINEAR +
+ + +

Defines the various types of surface formats.

typedef enum _D3DFORMAT { = 0, = 20, = 21, = 22, = 23, = 24, = 25, = 26, = 27, = 28, = 29, = 30, = 31, = 32, = 33, = 34, = 35, = 36, = 40, = 41, = 50, = 51, = 52, = 60, = 61, = 62, = 63, = 64, = 67, = MAKEFOURCC('U', 'Y', 'V', 'Y'), = MAKEFOURCC('R', 'G', 'B', 'G'), = MAKEFOURCC('Y', 'U', 'Y', '2'), = MAKEFOURCC('G', 'R', 'G', 'B'), = MAKEFOURCC('D', 'X', 'T', '1'), = MAKEFOURCC('D', 'X', 'T', '2'), = MAKEFOURCC('D', 'X', 'T', '3'), = MAKEFOURCC('D', 'X', 'T', '4'), = MAKEFOURCC('D', 'X', 'T', '5'), = 70, = 71, = 73, = 75, = 77, = 79, = 80, = 82, = 83, #if !defined(D3D_DISABLE_9EX) = 84, = 85, + #endif // !D3D_DISABLE_9EX = 81, =100, =101, =102, =110, = MAKEFOURCC('M','E','T','1'), = 111, = 112, = 113, = 114, = 115, = 116, = 117, #if !defined(D3D_DISABLE_9EX) = 118, = 119, = 199, + #endif // !D3D_DISABLE_9EX D3DFMT_FORCE_DWORD =0x7fffffff + } ; +
+ +

There are several types of formats:

  • BackBuffer
  • Buffer
  • DXTn
  • Floating-Point
  • FOURCC
  • IEEE
  • Mixed
  • Signed
  • Unsigned
  • Other

All formats are listed from left to right, most-significant bit to least-significant bit. For example, D3DFORMAT_ARGB is ordered from the most-significant bit channel A (alpha), to the least-significant bit channel B (blue). When traversing surface data, the data is stored in memory from least-significant bit to most-significant bit, which means that the channel order in memory is from least-significant bit (blue) to most-significant bit (alpha).

The default value for formats that contain undefined channels (G16R16, A8, and so on) is 1. The only exception is the A8 format, which is initialized to 000 for the three color channels.

The order of the bits is from the most significant byte first, so indicates that the high byte of this 2-byte format is alpha. indicates a 16-bit integer value and an application-lockable surface.

Pixel formats have been chosen to enable the expression of hardware-vendor-defined extension formats, as well as to include the well-established FOURCC method. The set of formats understood by the Direct3D runtime is defined by .

Note that formats are supplied by independent hardware vendors (IHVs) and many FOURCC codes are not listed. The formats in this enumeration are unique in that they are sanctioned by the runtime, meaning that the reference rasterizer will operate on all these types. IHV-supplied formats will be supported by the individual IHVs on a card-by-card basis.

+
+ + bb172558 + D3DFORMAT + D3DFORMAT +
+ + + No documentation. + + + bb172558 + D3DFMT_UNKNOWN + D3DFMT_UNKNOWN + + + + No documentation. + + + bb172558 + D3DFMT_R8G8B8 + D3DFMT_R8G8B8 + + + + No documentation. + + + bb172558 + D3DFMT_A8R8G8B8 + D3DFMT_A8R8G8B8 + + + + No documentation. + + + bb172558 + D3DFMT_X8R8G8B8 + D3DFMT_X8R8G8B8 + + + + No documentation. + + + bb172558 + D3DFMT_R5G6B5 + D3DFMT_R5G6B5 + + + + No documentation. + + + bb172558 + D3DFMT_X1R5G5B5 + D3DFMT_X1R5G5B5 + + + + No documentation. + + + bb172558 + D3DFMT_A1R5G5B5 + D3DFMT_A1R5G5B5 + + + + No documentation. + + + bb172558 + D3DFMT_A4R4G4B4 + D3DFMT_A4R4G4B4 + + + + No documentation. + + + bb172558 + D3DFMT_R3G3B2 + D3DFMT_R3G3B2 + + + + No documentation. + + + bb172558 + D3DFMT_A8 + D3DFMT_A8 + + + + No documentation. + + + bb172558 + D3DFMT_A8R3G3B2 + D3DFMT_A8R3G3B2 + + + + No documentation. + + + bb172558 + D3DFMT_X4R4G4B4 + D3DFMT_X4R4G4B4 + + + + No documentation. + + + bb172558 + D3DFMT_A2B10G10R10 + D3DFMT_A2B10G10R10 + + + + No documentation. + + + bb172558 + D3DFMT_A8B8G8R8 + D3DFMT_A8B8G8R8 + + + + No documentation. + + + bb172558 + D3DFMT_X8B8G8R8 + D3DFMT_X8B8G8R8 + + + + No documentation. + + + bb172558 + D3DFMT_G16R16 + D3DFMT_G16R16 + + + + No documentation. + + + bb172558 + D3DFMT_A2R10G10B10 + D3DFMT_A2R10G10B10 + + + + No documentation. + + + bb172558 + D3DFMT_A16B16G16R16 + D3DFMT_A16B16G16R16 + + + + No documentation. + + + bb172558 + D3DFMT_A8P8 + D3DFMT_A8P8 + + + + No documentation. + + + bb172558 + D3DFMT_P8 + D3DFMT_P8 + + + + No documentation. + + + bb172558 + D3DFMT_L8 + D3DFMT_L8 + + + + No documentation. + + + bb172558 + D3DFMT_A8L8 + D3DFMT_A8L8 + + + + No documentation. + + + bb172558 + D3DFMT_A4L4 + D3DFMT_A4L4 + + + + No documentation. + + + bb172558 + D3DFMT_V8U8 + D3DFMT_V8U8 + + + + No documentation. + + + bb172558 + D3DFMT_L6V5U5 + D3DFMT_L6V5U5 + + + + No documentation. + + + bb172558 + D3DFMT_X8L8V8U8 + D3DFMT_X8L8V8U8 + + + + No documentation. + + + bb172558 + D3DFMT_Q8W8V8U8 + D3DFMT_Q8W8V8U8 + + + + No documentation. + + + bb172558 + D3DFMT_V16U16 + D3DFMT_V16U16 + + + + No documentation. + + + bb172558 + D3DFMT_A2W10V10U10 + D3DFMT_A2W10V10U10 + + + + No documentation. + + + bb172558 + D3DFMT_UYVY + D3DFMT_UYVY + + + + No documentation. + + + bb172558 + D3DFMT_R8G8_B8G8 + D3DFMT_R8G8_B8G8 + + + + No documentation. + + + bb172558 + D3DFMT_YUY2 + D3DFMT_YUY2 + + + + No documentation. + + + bb172558 + D3DFMT_G8R8_G8B8 + D3DFMT_G8R8_G8B8 + + + + No documentation. + + + bb172558 + D3DFMT_DXT1 + D3DFMT_DXT1 + + + + No documentation. + + + bb172558 + D3DFMT_DXT2 + D3DFMT_DXT2 + + + + No documentation. + + + bb172558 + D3DFMT_DXT3 + D3DFMT_DXT3 + + + + No documentation. + + + bb172558 + D3DFMT_DXT4 + D3DFMT_DXT4 + + + + No documentation. + + + bb172558 + D3DFMT_DXT5 + D3DFMT_DXT5 + + + + No documentation. + + + bb172558 + D3DFMT_D16_LOCKABLE + D3DFMT_D16_LOCKABLE + + + + No documentation. + + + bb172558 + D3DFMT_D32 + D3DFMT_D32 + + + + No documentation. + + + bb172558 + D3DFMT_D15S1 + D3DFMT_D15S1 + + + + No documentation. + + + bb172558 + D3DFMT_D24S8 + D3DFMT_D24S8 + + + + No documentation. + + + bb172558 + D3DFMT_D24X8 + D3DFMT_D24X8 + + + + No documentation. + + + bb172558 + D3DFMT_D24X4S4 + D3DFMT_D24X4S4 + + + + No documentation. + + + bb172558 + D3DFMT_D16 + D3DFMT_D16 + + + + No documentation. + + + bb172558 + D3DFMT_D32F_LOCKABLE + D3DFMT_D32F_LOCKABLE + + + + No documentation. + + + bb172558 + D3DFMT_D24FS8 + D3DFMT_D24FS8 + + + + No documentation. + + + bb172558 + D3DFMT_D32_LOCKABLE + D3DFMT_D32_LOCKABLE + + + + No documentation. + + + bb172558 + D3DFMT_S8_LOCKABLE + D3DFMT_S8_LOCKABLE + + + + No documentation. + + + bb172558 + D3DFMT_L16 + D3DFMT_L16 + + + + No documentation. + + + bb172558 + D3DFMT_VERTEXDATA + D3DFMT_VERTEXDATA + + + + No documentation. + + + bb172558 + D3DFMT_INDEX16 + D3DFMT_INDEX16 + + + + No documentation. + + + bb172558 + D3DFMT_INDEX32 + D3DFMT_INDEX32 + + + + No documentation. + + + bb172558 + D3DFMT_Q16W16V16U16 + D3DFMT_Q16W16V16U16 + + + + No documentation. + + + bb172558 + D3DFMT_MULTI2_ARGB8 + D3DFMT_MULTI2_ARGB8 + + + + No documentation. + + + bb172558 + D3DFMT_R16F + D3DFMT_R16F + + + + No documentation. + + + bb172558 + D3DFMT_G16R16F + D3DFMT_G16R16F + + + + No documentation. + + + bb172558 + D3DFMT_A16B16G16R16F + D3DFMT_A16B16G16R16F + + + + No documentation. + + + bb172558 + D3DFMT_R32F + D3DFMT_R32F + + + + No documentation. + + + bb172558 + D3DFMT_G32R32F + D3DFMT_G32R32F + + + + No documentation. + + + bb172558 + D3DFMT_A32B32G32R32F + D3DFMT_A32B32G32R32F + + + + No documentation. + + + bb172558 + D3DFMT_CxV8U8 + D3DFMT_CxV8U8 + + + + No documentation. + + + bb172558 + D3DFMT_A1 + D3DFMT_A1 + + + + No documentation. + + + bb172558 + D3DFMT_A2B10G10R10_XR_BIAS + D3DFMT_A2B10G10R10_XR_BIAS + + + + No documentation. + + + bb172558 + D3DFMT_BINARYBUFFER + D3DFMT_BINARYBUFFER + + + +

Options for saving and creating effects.

The constants in the following table are defined in d3dx9effect.h.

+
+ + bb172855 + D3DXFX + D3DXFX +
+ + + No documentation. + + + bb172855 + D3DXFX_DONOTSAVESTATE + D3DXFX_DONOTSAVESTATE + + + + No documentation. + + + bb172855 + D3DXFX_DONOTSAVESHADERSTATE + D3DXFX_DONOTSAVESHADERSTATE + + + + No documentation. + + + bb172855 + D3DXFX_DONOTSAVESAMPLERSTATE + D3DXFX_DONOTSAVESAMPLERSTATE + + + + No documentation. + + + bb172855 + D3DXFX_NOT_CLONEABLE + D3DXFX_NOT_CLONEABLE + + + + No documentation. + + + bb172855 + D3DXFX_LARGEADDRESSAWARE + D3DXFX_LARGEADDRESSAWARE + + + + None. + + + None + None + + + +

Describes the supported image file formats. See Remarks for descriptions of these formats.

+
+ +

Functions that begin with D3DXLoadxxx support all of the formats listed. Functions that begin with D3DXSavexxx support all of the formats listed except the Truevision (.tga) and portable pixmap (.ppm) formats.

The following table lists the available input and output formats.

File ExtensionDescription
.bmpWindows bitmap format. Contains a header that describes the resolution of the device on which the rectangle of pixels was created, the dimensions of the rectangle, the size of the array of bits, a logical palette, and an array of bits that defines the relationship between pixels in the bitmapped image and entries in the logical palette.
.ddsDirectDraw Surface file format. Stores textures, volume textures, and cubic environment maps, with or without mipmap levels, and with or without pixel compression. See DDS.
.dibWindows DIB. Contains an array of bits combined with structures that specify width and height of the bitmapped image, color format of the device where the image was created, and resolution of the device used to create that image.
.hdrHDR format. Encodes each pixel as an RGBE 32-bit color, with 8 bits of mantissa for red, green, and blue, and a shared 8-bit exponent. Each channel is separately compressed with run-length encoding (RLE).
.jpgJPEG standard. Specifies variable compression of 24-bit RGB color and 8-bit gray-scale Tagged Image File Format (TIFF) image document files.
.pfmPortable float map format. A raw floating point image format, without any compression. The file header specifies image width, height, monochrome or color, and machine word order. Pixel data is stored as 32-bit floating point values, with 3 values per pixel for color, and one value per pixel for monochrome.
.pngPNG format. A non-proprietary bitmap format using lossless compression.
.ppmPortable Pixmap format. A binary or ASCII file format for color images that includes image height and width and the maximum color component value.
.tgaTarga or Truevision Graphics Adapter format. Supports depths of 8, 15, 16, 24, and 32 bits, including 8-bit gray scale, and contains optional color palette data, image (x, y) origin and size data, and pixel data.

?

See Types of Bitmaps for more information on some of these formats.

+
+ + bb172878 + D3DXIMAGE_FILEFORMAT + D3DXIMAGE_FILEFORMAT +
+ + +

Windows bitmap (BMP) file format.

+
+ + bb172878 + D3DXIFF_BMP + D3DXIFF_BMP +
+ + +

Joint Photographics Experts Group (JPEG) compressed file format.

+
+ + bb172878 + D3DXIFF_JPG + D3DXIFF_JPG +
+ + +

Truevision (Targa, or TGA) image file format.

+
+ + bb172878 + D3DXIFF_TGA + D3DXIFF_TGA +
+ + +

Portable Network Graphics (PNG) file format.

+
+ + bb172878 + D3DXIFF_PNG + D3DXIFF_PNG +
+ + +

DirectDraw surface (DDS) file format.

+
+ + bb172878 + D3DXIFF_DDS + D3DXIFF_DDS +
+ + +

Portable pixmap (PPM) file format.

+
+ + bb172878 + D3DXIFF_PPM + D3DXIFF_PPM +
+ + +

Windows device-independent bitmap (DIB) file format.

+
+ + bb172878 + D3DXIFF_DIB + D3DXIFF_DIB +
+ + +

High dynamic range (HDR) file format.

+
+ + bb172878 + D3DXIFF_HDR + D3DXIFF_HDR +
+ + +

Portable float map file format.

+
+ + bb172878 + D3DXIFF_PFM + D3DXIFF_PFM +
+ + +

Describes the location for the include file.

+
+ + bb172881 + D3DXINCLUDE_TYPE + D3DXINCLUDE_TYPE +
+ + +

Look in the local project for the include file.

+
+ + bb172881 + D3DXINC_LOCAL + D3DXINC_LOCAL +
+ + +

Look in the system path for the include file.

+
+ + bb172881 + D3DXINC_SYSTEM + D3DXINC_SYSTEM +
+ + +

This macro creates a value used by Issue to issue a query end.

#define (1 << 0) +
+ +

This macro changes the query state to nonsignaled.

is valid for the following query types.

  • D3DQUERYTYPE_ResourceManager
+
+ + bb172565 + D3DISSUE + D3DISSUE +
+ + + No documentation. + + + bb172565 + D3DISSUE_END + D3DISSUE_END + + + + No documentation. + + + bb172565 + D3DISSUE_BEGIN + D3DISSUE_BEGIN + + + +

Defines the light type.

+
+ +

Directional lights are slightly faster than point light sources, but point lights look a little better. Spotlights offer interesting visual effects but are computationally time-consuming.

+
+ + bb172567 + D3DLIGHTTYPE + D3DLIGHTTYPE +
+ + +

Light is a point source. The light has a position in space and radiates light in all directions.

+
+ + bb172567 + D3DLIGHT_POINT + D3DLIGHT_POINT +
+ + +

Light is a spotlight source. This light is like a point light, except that the illumination is limited to a cone. This light type has a direction and several other parameters that determine the shape of the cone it produces. For information about these parameters, see the structure.

+
+ + bb172567 + D3DLIGHT_SPOT + D3DLIGHT_SPOT +
+ + +

Light is a directional light source. This is equivalent to using a point light source at an infinite distance.

+
+ + bb172567 + D3DLIGHT_DIRECTIONAL + D3DLIGHT_DIRECTIONAL +
+ + + No documentation. + + + bb206304 + D3DLINECAPS + D3DLINECAPS + + + + No documentation. + + + bb206304 + D3DLINECAPS_TEXTURE + D3DLINECAPS_TEXTURE + + + + No documentation. + + + bb206304 + D3DLINECAPS_ZTEST + D3DLINECAPS_ZTEST + + + + No documentation. + + + bb206304 + D3DLINECAPS_BLEND + D3DLINECAPS_BLEND + + + + No documentation. + + + bb206304 + D3DLINECAPS_ALPHACMP + D3DLINECAPS_ALPHACMP + + + + No documentation. + + + bb206304 + D3DLINECAPS_FOG + D3DLINECAPS_FOG + + + + No documentation. + + + bb206304 + D3DLINECAPS_ANTIALIAS + D3DLINECAPS_ANTIALIAS + + + +

A combination of zero or more locking options that describe the type of lock to perform.

+
+ + bb172568 + D3DLOCK + D3DLOCK +
+ + + No documentation. + + + bb172568 + D3DLOCK_READONLY + D3DLOCK_READONLY + + + + No documentation. + + + bb172568 + D3DLOCK_DISCARD + D3DLOCK_DISCARD + + + + No documentation. + + + bb172568 + D3DLOCK_NOOVERWRITE + D3DLOCK_NOOVERWRITE + + + + No documentation. + + + bb172568 + D3DLOCK_NOSYSLOCK + D3DLOCK_NOSYSLOCK + + + + No documentation. + + + bb172568 + D3DLOCK_DONOTWAIT + D3DLOCK_DONOTWAIT + + + + No documentation. + + + bb172568 + D3DLOCK_NO_DIRTY_UPDATE + D3DLOCK_NO_DIRTY_UPDATE + + + + No documentation. + + + bb172568 + D3DLOCK_DONOTCOPYDATA + D3DLOCK_DONOTCOPYDATA + + + + None. + + + None + None + + + +

Defines the type of mesh data present in .

+
+ + bb205373 + D3DXMESHDATATYPE + D3DXMESHDATATYPE +
+ + + No documentation. + + + bb205373 + D3DXMESHTYPE_MESH + D3DXMESHTYPE_MESH + + + + No documentation. + + + bb205373 + D3DXMESHTYPE_PMESH + D3DXMESHTYPE_PMESH + + + + No documentation. + + + bb205373 + D3DXMESHTYPE_PATCHMESH + D3DXMESHTYPE_PATCHMESH + + + +

Flags used to specify creation options for a mesh.

+
+ +

A 32-bit mesh () can theoretically support (2^32)-1 faces and vertices. However, allocating memory for a mesh that large on a 32-bit operating system is not practical.

+
+ + bb205370 + _D3DXMESH + _D3DXMESH +
+ + +

The mesh has 32-bit indices instead of 16-bit indices. See Remarks.

+
+ + bb205370 + D3DXMESH_32BIT + D3DXMESH_32BIT +
+ + +

Use the usage flag for vertex and index buffers.

+
+ + bb205370 + D3DXMESH_DONOTCLIP + D3DXMESH_DONOTCLIP +
+ + +

Use the usage flag for vertex and index buffers.

+
+ + bb205370 + D3DXMESH_POINTS + D3DXMESH_POINTS +
+ + +

Use the usage flag for vertex and index buffers.

+
+ + bb205370 + D3DXMESH_RTPATCHES + D3DXMESH_RTPATCHES +
+ + +

Specifying this flag causes the vertex and index buffer of the mesh to be created with flag. This is required if the mesh object is to be rendered using N-patch enhancement using Direct3D.

+
+ + bb205370 + D3DXMESH_NPATCHES + D3DXMESH_NPATCHES +
+ + +

Use the usage flag for vertex buffers.

+
+ + bb205370 + D3DXMESH_VB_SYSTEMMEM + D3DXMESH_VB_SYSTEMMEM +
+ + +

Use the usage flag for vertex buffers.

+
+ + bb205370 + D3DXMESH_VB_MANAGED + D3DXMESH_VB_MANAGED +
+ + +

Use the usage flag for vertex buffers.

+
+ + bb205370 + D3DXMESH_VB_WRITEONLY + D3DXMESH_VB_WRITEONLY +
+ + +

Use the usage flag for vertex buffers.

+
+ + bb205370 + D3DXMESH_VB_DYNAMIC + D3DXMESH_VB_DYNAMIC +
+ + +

Use the usage flag for vertex buffers.

+
+ + bb205370 + D3DXMESH_VB_SOFTWAREPROCESSING + D3DXMESH_VB_SOFTWAREPROCESSING +
+ + +

Use the usage flag for index buffers.

+
+ + bb205370 + D3DXMESH_IB_SYSTEMMEM + D3DXMESH_IB_SYSTEMMEM +
+ + +

Use the usage flag for index buffers.

+
+ + bb205370 + D3DXMESH_IB_MANAGED + D3DXMESH_IB_MANAGED +
+ + +

Use the usage flag for index buffers.

+
+ + bb205370 + D3DXMESH_IB_WRITEONLY + D3DXMESH_IB_WRITEONLY +
+ + +

Use the usage flag for index buffers.

+
+ + bb205370 + D3DXMESH_IB_DYNAMIC + D3DXMESH_IB_DYNAMIC +
+ + +

Use the usage flag for index buffers.

+
+ + bb205370 + D3DXMESH_IB_SOFTWAREPROCESSING + D3DXMESH_IB_SOFTWAREPROCESSING +
+ + +

Forces the cloned meshes to share vertex buffers.

+
+ + bb205370 + D3DXMESH_VB_SHARE + D3DXMESH_VB_SHARE +
+ + +

Use hardware processing only. For mixed-mode device, this flag will cause the system to use hardware (if supported in hardware) or will default to software processing.

+
+ + bb205370 + D3DXMESH_USEHWONLY + D3DXMESH_USEHWONLY +
+ + +

Equivalent to specifying both and .

+
+ + bb205370 + D3DXMESH_SYSTEMMEM + D3DXMESH_SYSTEMMEM +
+ + +

Equivalent to specifying both and .

+
+ + bb205370 + D3DXMESH_MANAGED + D3DXMESH_MANAGED +
+ + +

Equivalent to specifying both and .

+
+ + bb205370 + D3DXMESH_WRITEONLY + D3DXMESH_WRITEONLY +
+ + +

Equivalent to specifying both and .

+
+ + bb205370 + D3DXMESH_DYNAMIC + D3DXMESH_DYNAMIC +
+ + +

Equivalent to specifying both and .

+
+ + bb205370 + D3DXMESH_SOFTWAREPROCESSING + D3DXMESH_SOFTWAREPROCESSING +
+ + +

Specifies the type of mesh optimization to be performed.

+
+ +

The and optimization flags are mutually exclusive.

The D3DXMESHOPT_SHAREVB flag has been removed from this enumeration. Use instead, in D3DXMESH.

+
+ + bb205374 + _D3DXMESHOPT + _D3DXMESHOPT +
+ + +

Reorders faces to remove unused vertices and faces.

+
+ + bb205374 + D3DXMESHOPT_COMPACT + D3DXMESHOPT_COMPACT +
+ + +

Reorders faces to optimize for fewer attribute bundle state changes and enhanced performance.

+
+ + bb205374 + D3DXMESHOPT_ATTRSORT + D3DXMESHOPT_ATTRSORT +
+ + +

Reorders faces to increase the cache hit rate of vertex caches.

+
+ + bb205374 + D3DXMESHOPT_VERTEXCACHE + D3DXMESHOPT_VERTEXCACHE +
+ + +

Reorders faces to maximize length of adjacent triangles.

+
+ + bb205374 + D3DXMESHOPT_STRIPREORDER + D3DXMESHOPT_STRIPREORDER +
+ + +

Optimize the faces only; do not optimize the vertices.

+
+ + bb205374 + D3DXMESHOPT_IGNOREVERTS + D3DXMESHOPT_IGNOREVERTS +
+ + +

While attribute sorting, do not split vertices that are shared between attribute groups.

+
+ + bb205374 + D3DXMESHOPT_DONOTSPLIT + D3DXMESHOPT_DONOTSPLIT +
+ + +

Affects the vertex cache size. Using this flag specifies a default vertex cache size that works well on legacy hardware.

+
+ + bb205374 + D3DXMESHOPT_DEVICEINDEPENDENT + D3DXMESHOPT_DEVICEINDEPENDENT +
+ + +

Specifies simplification options for a mesh.

+
+ + bb205375 + _D3DXMESHSIMP + _D3DXMESHSIMP +
+ + +

The mesh will be simplified by the number of vertices specified in the MinValue parameter.

+
+ + bb205375 + D3DXMESHSIMP_VERTEX + D3DXMESHSIMP_VERTEX +
+ + +

The mesh will be simplified by the number of faces specified in the MinValue parameter.

+
+ + bb205375 + D3DXMESHSIMP_FACE + D3DXMESHSIMP_FACE +
+ + +

Defines the levels of full-scene multisampling that the device can apply.

+
+ +

In addition to enabling full-scene multisampling at time, there will be render states that turn various aspects on and off at fine-grained levels.

Multisampling is valid only on a swap chain that is being created or reset with the swap effect.

The multisample antialiasing value can be set with the parameters (or sub-parameters) in the following methods.

MethodParametersSub-parameters
MultiSampleType and pQualityLevels
pPresentationParametersMultiSampleType and pQualityLevels
pPresentationParametersMultiSampleType and pQualityLevels
MultiSampleType and pQualityLevels
MultiSampleType and pQualityLevels
pPresentationParametersMultiSampleType and pQualityLevels

?

It is not good practice to switch from one multisample type to another to raise the quality of the antialiasing.

enables swap effects other than discarding, locking, and so on.

Whether the display device supports maskable multisampling (more than one sample for a multiple-sample render-target format plus antialias support) or just non-maskable multisampling (only antialias support), the driver for the device provides the number of quality levels for the multiple-sample type. Applications that just use multisampling for antialiasing purposes only need to query for the number of non-maskable multiple-sample quality levels that the driver supports.

The quality levels supported by the device can be obtained with the pQualityLevels parameter of . Quality levels used by the application are set with the MultiSampleQuality parameter of and .

See for discussion of maskable multisampling.

+
+ + bb172574 + D3DMULTISAMPLE_TYPE + D3DMULTISAMPLE_TYPE +
+ + +

No level of full-scene multisampling is available.

+
+ + bb172574 + D3DMULTISAMPLE_NONE + D3DMULTISAMPLE_NONE +
+ + +

Enables the multisample quality value. See Remarks.

+
+ + bb172574 + D3DMULTISAMPLE_NONMASKABLE + D3DMULTISAMPLE_NONMASKABLE +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_2_SAMPLES + D3DMULTISAMPLE_2_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_3_SAMPLES + D3DMULTISAMPLE_3_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_4_SAMPLES + D3DMULTISAMPLE_4_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_5_SAMPLES + D3DMULTISAMPLE_5_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_6_SAMPLES + D3DMULTISAMPLE_6_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_7_SAMPLES + D3DMULTISAMPLE_7_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_8_SAMPLES + D3DMULTISAMPLE_8_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_9_SAMPLES + D3DMULTISAMPLE_9_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_10_SAMPLES + D3DMULTISAMPLE_10_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_11_SAMPLES + D3DMULTISAMPLE_11_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_12_SAMPLES + D3DMULTISAMPLE_12_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_13_SAMPLES + D3DMULTISAMPLE_13_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_14_SAMPLES + D3DMULTISAMPLE_14_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_15_SAMPLES + D3DMULTISAMPLE_15_SAMPLES +
+ + +

Level of full-scene multisampling available.

+
+ + bb172574 + D3DMULTISAMPLE_16_SAMPLES + D3DMULTISAMPLE_16_SAMPLES +
+ + +

Normal maps generation constants.

+
+ + bb205566 + D3DX_NORMALMAP + D3DX_NORMALMAP +
+ + + No documentation. + + + bb205566 + D3DX_NORMALMAP_MIRROR_U + D3DX_NORMALMAP_MIRROR_U + + + + No documentation. + + + bb205566 + D3DX_NORMALMAP_MIRROR_V + D3DX_NORMALMAP_MIRROR_V + + + + No documentation. + + + bb205566 + D3DX_NORMALMAP_MIRROR + D3DX_NORMALMAP_MIRROR + + + + No documentation. + + + bb205566 + D3DX_NORMALMAP_INVERTSIGN + D3DX_NORMALMAP_INVERTSIGN + + + + No documentation. + + + bb205566 + D3DX_NORMALMAP_COMPUTE_OCCLUSION + D3DX_NORMALMAP_COMPUTE_OCCLUSION + + + +

The type of object.

+
+ + bb205378 + D3DXPARAMETER_CLASS + D3DXPARAMETER_CLASS +
+ + +

Constant is a scalar.

+
+ + bb205378 + D3DXPC_SCALAR + D3DXPC_SCALAR +
+ + +

Constant is a vector.

+
+ + bb205378 + D3DXPC_VECTOR + D3DXPC_VECTOR +
+ + +

Constant is a row major matrix.

+
+ + bb205378 + D3DXPC_MATRIX_ROWS + D3DXPC_MATRIX_ROWS +
+ + +

Constant is a column major matrix.

+
+ + bb205378 + D3DXPC_MATRIX_COLUMNS + D3DXPC_MATRIX_COLUMNS +
+ + +

Constant is either a texture, shader, or a string.

+
+ + bb205378 + D3DXPC_OBJECT + D3DXPC_OBJECT +
+ + +

Constant is a structure.

+
+ + bb205378 + D3DXPC_STRUCT + D3DXPC_STRUCT +
+ + +

These flags provide additional information about effect parameters.

Effect parameter constants are used by .

+
+ + bb205567 + D3DX_PARAMETER + D3DX_PARAMETER +
+ + + No documentation. + + + bb205567 + D3DX_PARAMETER_SHARED + D3DX_PARAMETER_SHARED + + + + No documentation. + + + bb205567 + D3DX_PARAMETER_LITERAL + D3DX_PARAMETER_LITERAL + + + + No documentation. + + + bb205567 + D3DX_PARAMETER_ANNOTATION + D3DX_PARAMETER_ANNOTATION + + + + None. + + + None + None + + + +

Describes the data contained by the enumeration.

+
+ + bb205380 + D3DXPARAMETER_TYPE + D3DXPARAMETER_TYPE +
+ + +

Parameter is a void reference.

+
+ + bb205380 + D3DXPT_VOID + D3DXPT_VOID +
+ + +

Parameter is a Boolean. Any non-zero value passed into , , , , or will be mapped to 1 (TRUE) before being written into the constant table; otherwise, the value will be set to 0 in the constant table.

+
+ + bb205380 + D3DXPT_BOOL + D3DXPT_BOOL +
+ + +

Parameter is an integer. Any floating-point values passed into , , or will be rounded off (to zero decimal places) before being written into the constant table.

+
+ + bb205380 + D3DXPT_INT + D3DXPT_INT +
+ + +

Parameter is a floating-point number.

+
+ + bb205380 + D3DXPT_FLOAT + D3DXPT_FLOAT +
+ + +

Parameter is a string.

+
+ + bb205380 + D3DXPT_STRING + D3DXPT_STRING +
+ + +

Parameter is a texture.

+
+ + bb205380 + D3DXPT_TEXTURE + D3DXPT_TEXTURE +
+ + +

Parameter is a 1D texture.

+
+ + bb205380 + D3DXPT_TEXTURE1D + D3DXPT_TEXTURE1D +
+ + +

Parameter is a 2D texture.

+
+ + bb205380 + D3DXPT_TEXTURE2D + D3DXPT_TEXTURE2D +
+ + +

Parameter is a 3D texture.

+
+ + bb205380 + D3DXPT_TEXTURE3D + D3DXPT_TEXTURE3D +
+ + +

Parameter is a cube texture.

+
+ + bb205380 + D3DXPT_TEXTURECUBE + D3DXPT_TEXTURECUBE +
+ + +

Parameter is a sampler.

+
+ + bb205380 + D3DXPT_SAMPLER + D3DXPT_SAMPLER +
+ + +

Parameter is a 1D sampler.

+
+ + bb205380 + D3DXPT_SAMPLER1D + D3DXPT_SAMPLER1D +
+ + +

Parameter is a 2D sampler.

+
+ + bb205380 + D3DXPT_SAMPLER2D + D3DXPT_SAMPLER2D +
+ + +

Parameter is a 3D sampler.

+
+ + bb205380 + D3DXPT_SAMPLER3D + D3DXPT_SAMPLER3D +
+ + +

Parameter is a cube sampler.

+
+ + bb205380 + D3DXPT_SAMPLERCUBE + D3DXPT_SAMPLERCUBE +
+ + +

Parameter is a pixel shader.

+
+ + bb205380 + D3DXPT_PIXELSHADER + D3DXPT_PIXELSHADER +
+ + +

Parameter is a vertex shader.

+
+ + bb205380 + D3DXPT_VERTEXSHADER + D3DXPT_VERTEXSHADER +
+ + +

Parameter is a pixel shader fragment.

+
+ + bb205380 + D3DXPT_PIXELFRAGMENT + D3DXPT_PIXELFRAGMENT +
+ + +

Parameter is a vertex shader fragment.

+
+ + bb205380 + D3DXPT_VERTEXFRAGMENT + D3DXPT_VERTEXFRAGMENT +
+ + +

Parameter is not supported.

+
+ + bb205380 + D3DXPT_UNSUPPORTED + D3DXPT_UNSUPPORTED +
+ + +

Defines whether the current tessellation mode is discrete or continuous.

+
+ +

Note that continuous tessellation produces a completely different tessellation pattern from the discrete one for the same tessellation values (this is more apparent in wireframe mode). Thus, 4.0 continuous is not the same as 4 discrete.

+
+ + bb172575 + D3DPATCHEDGESTYLE + D3DPATCHEDGESTYLE +
+ + +

Discrete edge style. In discrete mode, you can specify float tessellation but it will be truncated to integers.

+
+ + bb172575 + D3DPATCHEDGE_DISCRETE + D3DPATCHEDGE_DISCRETE +
+ + +

Continuous edge style. In continuous mode, tessellation is specified as float values that can be smoothly varied to reduce "popping" artifacts.

+
+ + bb172575 + D3DPATCHEDGE_CONTINUOUS + D3DPATCHEDGE_CONTINUOUS +
+ + +

Mesh patch types.

+
+ +

Triangle patches have three sides and are described in . Rectangle patches are four-sided and are described in .

+
+ + bb205384 + D3DXPATCHMESHTYPE + D3DXPATCHMESHTYPE +
+ + +

Rectangle patch mesh type.

+
+ + bb205384 + D3DXPATCHMESH_RECT + D3DXPATCHMESH_RECT +
+ + +

Triangle patch mesh type.

+
+ + bb205384 + D3DXPATCHMESH_TRI + D3DXPATCHMESH_TRI +
+ + +

N-patch mesh type.

+
+ + bb205384 + D3DXPATCHMESH_NPATCH + D3DXPATCHMESH_NPATCH +
+ + + No documentation. + + + D3DPS20CAPS + D3DPS20CAPS + + + + No documentation. + + + D3DPS20CAPS_ARBITRARYSWIZZLE + D3DPS20CAPS_ARBITRARYSWIZZLE + + + + No documentation. + + + D3DPS20CAPS_GRADIENTINSTRUCTIONS + D3DPS20CAPS_GRADIENTINSTRUCTIONS + + + + No documentation. + + + D3DPS20CAPS_PREDICATION + D3DPS20CAPS_PREDICATION + + + + No documentation. + + + D3DPS20CAPS_NODEPENDENTREADLIMIT + D3DPS20CAPS_NODEPENDENTREADLIMIT + + + + No documentation. + + + D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT + D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT + + + + None. + + + None + None + + + +

Defines the type of animation set looping modes used for playback.

+
+ + bb205397 + D3DXPLAYBACK_TYPE + D3DXPLAYBACK_TYPE +
+ + +

The animation repeats endlessly.

+
+ + bb205397 + D3DXPLAY_LOOP + D3DXPLAY_LOOP +
+ + +

The animation plays once, and then it stops on the last frame.

+
+ + bb205397 + D3DXPLAY_ONCE + D3DXPLAY_ONCE +
+ + +

The animation alternates endlessly between playing forward and playing backward.

+
+ + bb205397 + D3DXPLAY_PINGPONG + D3DXPLAY_PINGPONG +
+ + +

Defines the memory class that holds the buffers for a resource.

+
+ +

All pool types are valid with all resources including: vertex buffers, index buffers, textures, and surfaces.

The following tables indicate restrictions on pool types for render targets, depth stencils, and dynamic and mipmap usages. An x indicates a compatible combination; lack of an x indicates incompatibility.

Pool
xx

?

Pool
xx
x
x

?

For more information about usage types, see .

Pools cannot be mixed for different objects contained within one resource (mip levels in a mipmap) and, when a pool is chosen, it cannot be changed.

Applications should use for most static resources because this saves the application from having to deal with lost devices. (Managed resources are restored by the runtime.) This is especially beneficial for unified memory architecture (UMA) systems. Other dynamic resources are not a good match for . In fact, index buffers and vertex buffers cannot be created using together with .

For dynamic textures, it is sometimes desirable to use a pair of video memory and system memory textures, allocating the video memory using and the system memory using . You can lock and modify the bits of the system memory texture using a locking method. Then you can update the video memory texture using .

+
+ + bb172584 + D3DPOOL + D3DPOOL +
+ + +

Resources are placed in the memory pool most appropriate for the set of usages requested for the given resource. This is usually video memory, including both local video memory and AGP memory. The pool is separate from and , and it specifies that the resource is placed in the preferred memory for device access. Note that never indicates that either or should be chosen as the memory pool type for this resource. Textures placed in the pool cannot be locked unless they are dynamic textures or they are private, FOURCC, driver formats. To access unlockable textures, you must use functions such as , , , and . is probably a better choice than for most applications. Note that some textures created in driver-proprietary pixel formats, unknown to the Direct3D runtime, can be locked. Also note that - unlike textures - swap chain back buffers, render targets, vertex buffers, and index buffers can be locked. When a device is lost, resources created using must be released before calling . For more information, see Lost Devices (Direct3D 9).

When creating resources with , if video card memory is already committed, managed resources will be evicted to free enough memory to satisfy the request.

+
+ + bb172584 + D3DPOOL_DEFAULT + D3DPOOL_DEFAULT +
+ + +

Resources are copied automatically to device-accessible memory as needed. Managed resources are backed by system memory and do not need to be recreated when a device is lost. See Managing Resources (Direct3D 9) for more information. Managed resources can be locked. Only the system-memory copy is directly modified. Direct3D copies your changes to driver-accessible memory as needed.

Differences between Direct3D 9 and Direct3D 9Ex:

is valid with ; however, it is not valid with .

?

+
+ + bb172584 + D3DPOOL_MANAGED + D3DPOOL_MANAGED +
+ + +

Resources are placed in memory that is not typically accessible by the Direct3D device. This memory allocation consumes system RAM but does not reduce pageable RAM. These resources do not need to be recreated when a device is lost. Resources in this pool can be locked and can be used as the source for a or operation to a memory resource created with .

+
+ + bb172584 + D3DPOOL_SYSTEMMEM + D3DPOOL_SYSTEMMEM +
+ + +

Resources are placed in system RAM and do not need to be recreated when a device is lost. These resources are not bound by device size or format restrictions. Because of this, these resources cannot be accessed by the Direct3D device nor set as textures or render targets. However, these resources can always be created, locked, and copied.

+
+ + bb172584 + D3DPOOL_SCRATCH + D3DPOOL_SCRATCH +
+ + +

Describes the relationship between the adapter refresh rate and the rate at which Present or Present operations are completed. These values also serve as flag values for the PresentationIntervals field of .

+
+ +

Windowed mode supports , , and . and the are nearly equivalent (see the information regarding timer resolution below). They perform similarly to COPY_VSYNC in that there is only one present per frame, and they prevent tearing with beam-following. In contrast, will attempt to provide an unlimited presentation rate.

Full-screen mode supports similar usage as windowed mode by supporting regardless of the refresh rate or swap effect. uses the default system timer resolution whereas the calls timeBeginPeriod to enhance system timer resolution. This improves the quality of vertical sync, but consumes slightly more processing time. Both parameters attempt to synchronize vertically.

+
+ + bb172585 + D3DPRESENT + D3DPRESENT +
+ + + No documentation. + + + bb172585 + D3DPRESENT_BACK_BUFFERS_MAX + D3DPRESENT_BACK_BUFFERS_MAX + + + + No documentation. + + + bb172585 + D3DPRESENT_BACK_BUFFERS_MAX_EX + D3DPRESENT_BACK_BUFFERS_MAX_EX + + + + No documentation. + + + bb172585 + D3DPRESENT_DONOTWAIT + D3DPRESENT_DONOTWAIT + + + + No documentation. + + + bb172585 + D3DPRESENT_LINEAR_CONTENT + D3DPRESENT_LINEAR_CONTENT + + + + No documentation. + + + bb172585 + D3DPRESENT_DONOTFLIP + D3DPRESENT_DONOTFLIP + + + + No documentation. + + + bb172585 + D3DPRESENT_FLIPRESTART + D3DPRESENT_FLIPRESTART + + + + No documentation. + + + bb172585 + D3DPRESENT_VIDEO_RESTRICT_TO_MONITOR + D3DPRESENT_VIDEO_RESTRICT_TO_MONITOR + + + + No documentation. + + + bb172585 + D3DPRESENT_UPDATEOVERLAYONLY + D3DPRESENT_UPDATEOVERLAYONLY + + + + No documentation. + + + bb172585 + D3DPRESENT_HIDEOVERLAY + D3DPRESENT_HIDEOVERLAY + + + + No documentation. + + + bb172585 + D3DPRESENT_UPDATECOLORKEY + D3DPRESENT_UPDATECOLORKEY + + + + No documentation. + + + bb172585 + D3DPRESENT_FORCEIMMEDIATE + D3DPRESENT_FORCEIMMEDIATE + + + + No documentation. + + + bb172585 + D3DPRESENT_RATE_DEFAULT + D3DPRESENT_RATE_DEFAULT + + + + None. + + + None + None + + + +

Constants used by .

+
+ + bb172586 + D3DPRESENTFLAG + D3DPRESENTFLAG +
+ + + No documentation. + + + bb172586 + D3DPRESENTFLAG_LOCKABLE_BACKBUFFER + D3DPRESENTFLAG_LOCKABLE_BACKBUFFER + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL + D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_DEVICECLIP + D3DPRESENTFLAG_DEVICECLIP + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_VIDEO + D3DPRESENTFLAG_VIDEO + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_NOAUTOROTATE + D3DPRESENTFLAG_NOAUTOROTATE + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_UNPRUNEDMODE + D3DPRESENTFLAG_UNPRUNEDMODE + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_OVERLAY_LIMITEDRGB + D3DPRESENTFLAG_OVERLAY_LIMITEDRGB + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_OVERLAY_YCbCr_BT709 + D3DPRESENTFLAG_OVERLAY_YCbCr_BT709 + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_OVERLAY_YCbCr_xvYCC + D3DPRESENTFLAG_OVERLAY_YCbCr_xvYCC + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_RESTRICTED_CONTENT + D3DPRESENTFLAG_RESTRICTED_CONTENT + + + + No documentation. + + + bb172586 + D3DPRESENTFLAG_RESTRICT_SHARED_RESOURCE_DRIVER + D3DPRESENTFLAG_RESTRICT_SHARED_RESOURCE_DRIVER + + + + None. + + + None + None + + + +

Describes the relationship between the adapter refresh rate and the rate at which Present or Present operations are completed. These values also serve as flag values for the PresentationIntervals field of .

+
+ +

Windowed mode supports , , and . and the are nearly equivalent (see the information regarding timer resolution below). They perform similarly to COPY_VSYNC in that there is only one present per frame, and they prevent tearing with beam-following. In contrast, will attempt to provide an unlimited presentation rate.

Full-screen mode supports similar usage as windowed mode by supporting regardless of the refresh rate or swap effect. uses the default system timer resolution whereas the calls timeBeginPeriod to enhance system timer resolution. This improves the quality of vertical sync, but consumes slightly more processing time. Both parameters attempt to synchronize vertically.

+
+ + bb172585 + D3DPRESENT_INTERVAL + D3DPRESENT_INTERVAL +
+ + + No documentation. + + + bb172585 + D3DPRESENT_INTERVAL_DEFAULT + D3DPRESENT_INTERVAL_DEFAULT + + + + No documentation. + + + bb172585 + D3DPRESENT_INTERVAL_ONE + D3DPRESENT_INTERVAL_ONE + + + + No documentation. + + + bb172585 + D3DPRESENT_INTERVAL_TWO + D3DPRESENT_INTERVAL_TWO + + + + No documentation. + + + bb172585 + D3DPRESENT_INTERVAL_THREE + D3DPRESENT_INTERVAL_THREE + + + + No documentation. + + + bb172585 + D3DPRESENT_INTERVAL_FOUR + D3DPRESENT_INTERVAL_FOUR + + + + No documentation. + + + bb172585 + D3DPRESENT_INTERVAL_IMMEDIATE + D3DPRESENT_INTERVAL_IMMEDIATE + + + +

Miscellaneous driver primitive capability flags.

+
+ + bb172583 + D3DPMISCCAPS + D3DPMISCCAPS +
+ + + No documentation. + + + bb172583 + D3DPMISCCAPS_MASKZ + D3DPMISCCAPS_MASKZ + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_CULLNONE + D3DPMISCCAPS_CULLNONE + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_CULLCW + D3DPMISCCAPS_CULLCW + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_CULLCCW + D3DPMISCCAPS_CULLCCW + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_COLORWRITEENABLE + D3DPMISCCAPS_COLORWRITEENABLE + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_CLIPPLANESCALEDPOINTS + D3DPMISCCAPS_CLIPPLANESCALEDPOINTS + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_CLIPTLVERTS + D3DPMISCCAPS_CLIPTLVERTS + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_TSSARGTEMP + D3DPMISCCAPS_TSSARGTEMP + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_BLENDOP + D3DPMISCCAPS_BLENDOP + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_NULLREFERENCE + D3DPMISCCAPS_NULLREFERENCE + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_INDEPENDENTWRITEMASKS + D3DPMISCCAPS_INDEPENDENTWRITEMASKS + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_PERSTAGECONSTANT + D3DPMISCCAPS_PERSTAGECONSTANT + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_FOGANDSPECULARALPHA + D3DPMISCCAPS_FOGANDSPECULARALPHA + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_SEPARATEALPHABLEND + D3DPMISCCAPS_SEPARATEALPHABLEND + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS + D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING + D3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_FOGVERTEXCLAMPED + D3DPMISCCAPS_FOGVERTEXCLAMPED + + + + No documentation. + + + bb172583 + D3DPMISCCAPS_POSTBLENDSRGBCONVERT + D3DPMISCCAPS_POSTBLENDSRGBCONVERT + + + +

Defines the primitives supported by Direct3D.

+
+ +

Using Triangle Strips or Triangle Fans (Direct3D 9) is often more efficient than using triangle lists because fewer vertices are duplicated.

+
+ + bb172589 + D3DPRIMITIVETYPE + D3DPRIMITIVETYPE +
+ + +

Renders the vertices as a collection of isolated points. This value is unsupported for indexed primitives.

+
+ + bb172589 + D3DPT_POINTLIST + D3DPT_POINTLIST +
+ + +

Renders the vertices as a list of isolated straight line segments.

+
+ + bb172589 + D3DPT_LINELIST + D3DPT_LINELIST +
+ + +

Renders the vertices as a single polyline.

+
+ + bb172589 + D3DPT_LINESTRIP + D3DPT_LINESTRIP +
+ + +

Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle.

Back-face culling is affected by the current winding-order render state.

+
+ + bb172589 + D3DPT_TRIANGLELIST + D3DPT_TRIANGLELIST +
+ + +

Renders the vertices as a triangle strip. The backface-culling flag is automatically flipped on even-numbered triangles.

+
+ + bb172589 + D3DPT_TRIANGLESTRIP + D3DPT_TRIANGLESTRIP +
+ + +

Renders the vertices as a triangle fan.

+
+ + bb172589 + D3DPT_TRIANGLEFAN + D3DPT_TRIANGLEFAN +
+ + +

Identifies the query type. For information about queries, see Queries (Direct3D 9)

+
+ + bb172594 + D3DQUERYTYPE + D3DQUERYTYPE +
+ + + No documentation. + + + bb172594 + D3DQUERYTYPE_VCACHE + D3DQUERYTYPE_VCACHE + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_RESOURCEMANAGER + D3DQUERYTYPE_RESOURCEMANAGER + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_VERTEXSTATS + D3DQUERYTYPE_VERTEXSTATS + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_EVENT + D3DQUERYTYPE_EVENT + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_OCCLUSION + D3DQUERYTYPE_OCCLUSION + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_TIMESTAMP + D3DQUERYTYPE_TIMESTAMP + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_TIMESTAMPDISJOINT + D3DQUERYTYPE_TIMESTAMPDISJOINT + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_TIMESTAMPFREQ + D3DQUERYTYPE_TIMESTAMPFREQ + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_PIPELINETIMINGS + D3DQUERYTYPE_PIPELINETIMINGS + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_INTERFACETIMINGS + D3DQUERYTYPE_INTERFACETIMINGS + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_VERTEXTIMINGS + D3DQUERYTYPE_VERTEXTIMINGS + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_PIXELTIMINGS + D3DQUERYTYPE_PIXELTIMINGS + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_BANDWIDTHTIMINGS + D3DQUERYTYPE_BANDWIDTHTIMINGS + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_CACHEUTILIZATION + D3DQUERYTYPE_CACHEUTILIZATION + + + + No documentation. + + + bb172594 + D3DQUERYTYPE_MEMORYPRESSURE + D3DQUERYTYPE_MEMORYPRESSURE + + + +

A programmable pixel shader is made up of a set of instructions that operate on pixel data. Registers transfer data in and out of the ALU. Additional control can be applied to modify the instruction, the results, or what data gets written out.

  • ps_3_0 Instructions contains a list of the available instructions.
  • ps_3_0 Registers lists the different types of registers used by the pixel shader ALU.
  • Modifiers Are used to modify the way an instruction works.
  • Destination Register Write Mask determines what components of the destination register get written.
  • Pixel Shader Source Register Modifiers alter the source register data before the instruction runs.
  • Source Register Swizzling gives additional control over which register components are read, copied, or written.
+
+ + bb219845 + D3DPRASTERCAPS + D3DPRASTERCAPS +
+ + + No documentation. + + + bb219845 + D3DPRASTERCAPS_DITHER + D3DPRASTERCAPS_DITHER + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_ZTEST + D3DPRASTERCAPS_ZTEST + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_FOGVERTEX + D3DPRASTERCAPS_FOGVERTEX + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_FOGTABLE + D3DPRASTERCAPS_FOGTABLE + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_MIPMAPLODBIAS + D3DPRASTERCAPS_MIPMAPLODBIAS + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_ZBUFFERLESSHSR + D3DPRASTERCAPS_ZBUFFERLESSHSR + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_FOGRANGE + D3DPRASTERCAPS_FOGRANGE + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_ANISOTROPY + D3DPRASTERCAPS_ANISOTROPY + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_WBUFFER + D3DPRASTERCAPS_WBUFFER + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_WFOG + D3DPRASTERCAPS_WFOG + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_ZFOG + D3DPRASTERCAPS_ZFOG + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_COLORPERSPECTIVE + D3DPRASTERCAPS_COLORPERSPECTIVE + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_SCISSORTEST + D3DPRASTERCAPS_SCISSORTEST + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS + D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_DEPTHBIAS + D3DPRASTERCAPS_DEPTHBIAS + + + + No documentation. + + + bb219845 + D3DPRASTERCAPS_MULTISAMPLE_TOGGLE + D3DPRASTERCAPS_MULTISAMPLE_TOGGLE + + + +

Data type of the register.

+
+ + bb205424 + D3DXREGISTER_SET + D3DXREGISTER_SET +
+ + +

Boolean value.

+
+ + bb205424 + D3DXRS_BOOL + D3DXRS_BOOL +
+ + +

4D integer number.

+
+ + bb205424 + D3DXRS_INT4 + D3DXRS_INT4 +
+ + +

4D floating-point number.

+
+ + bb205424 + D3DXRS_FLOAT4 + D3DXRS_FLOAT4 +
+ + +

The register contains 4D sampler data.

+
+ + bb205424 + D3DXRS_SAMPLER + D3DXRS_SAMPLER +
+ + +

The enumerated type lists a variety of attributes, or render states. The enumerators of that are used exclusively by drivers can specify either rendering information or a texture attribute. The following render states are used by display drivers:

#define D3DRENDERSTATE_EVICTMANAGEDTEXTURES  61	
+            #define D3DRENDERSTATE_SCENECAPTURE          62	
+            #define D3DRS_DELETERTPATCH                  169	
+            #define D3DRS_MAXVERTEXSHADERINST            196	
+            #define D3DRS_MAXPIXELSHADERINST             197

Enumerators

D3DRENDERSTATE_EVICTMANAGEDTEXTURES

Determines whether textures are evicted from memory. + The driver uses a data type without a default value to detect whether to evict.

This render state determines whether the driver evicts textures that it manages (as opposed to textures managed by the Direct3D runtime) from video memory. If the render state value is TRUE, the driver evicts the textures. Otherwise, the driver does not evict those textures.

D3DRENDERSTATE_SCENECAPTURE

Specifies either begin scene information or end scene information for geometric data captured within a frame. + The driver uses a data type with a default value of TRUE to detect scene-capture information.

The driver responds to D3DRENDERSTATE_SCENECAPTURE first with TRUE for begin scene information and next with for end scene information to capture geometric data within a frame. + See the permedia2 sample driver that ships with the Windows Driver Development Kit (DDK) for an example implementation. + Using the D3DRENDERSTATE_SCENECAPTURE render state in a D3dDrawPrimitives2 call replaces the legacy D3DHALCallbacks->D3dSceneCapture callback routine.

Care must be taken in updating a driver that implements the legacy D3DHALCallbacks->D3dSceneCapture callback routine to one using the D3DRENDERSTATE_SCENECAPTURE render state. The D3dSceneCapture callback routine uses the constants D3DHAL_SCENE_CAPTURE_START and D3DHAL_SCENE_CAPTURE_END to indicate, respectively, the beginning and end of a scene. The values of these constants are, respectively, 0 and 1. If you use these constants in place of TRUE and in this render state, the meaning will be the exact opposite of what you intend.

D3DRS_DELETERTPATCH

DirectX 8.0 and later versions only.

Deletes either a rectangular or triangular patch from memory. + The driver uses a DWORD data type without a default value to detect the patch to delete.

This render state notifies the driver that a patch is to be deleted. The value of this render state is the handle to the patch affected. All cached information should be freed and the handle should be removed from the driver's patch handle table. This render state is not visible to applications but is generated internally when an application calls the DeletePatch function. This render state is sent to the driver only when patches are deleted by DeletePatch explicitly. All other patches should be cleaned up when the device is destroyed.

D3DRS_MAXVERTEXSHADERINST

DirectX 9.0 and later versions only.

Determines the maximum number of instructions that the vertex shader assembler can execute.

The driver uses a DWORD data type with a default value of D3DINFINITEINSTRUCTIONS (0xffffffff) to report the maximum number of vertex-shader instructions. + This maximum number depends on the version of the vertex shader that the display device supports as shown in the following table.

VersionMaximum number
earlier than 2_00
2_0 and laterFrom 216 (0x0000ffff) to D3DINFINITEINSTRUCTIONS

?

D3DINFINITEINSTRUCTIONS represents a virtually unlimited amount.

Valid values for this render state are numbers that are powers of 2; if the driver sets any other integer, the runtime uses the next nearest power of 2 number.

The runtime sets the MaxVShaderInstructionsExecuted member of the structure to this maximum number.

D3DRS_MAXPIXELSHADERINST

DirectX 9.0 and later versions only.

Determines the maximum number of instructions that the pixel shader assembler can execute.

The driver uses a DWORD data type with a default value of D3DINFINITEINSTRUCTIONS (0xffffffff) to report the maximum number of pixel-shader instructions. + This maximum number depends on the version of the pixel shader that the display device supports as shown in the following table.

VersionMaximum number
earlier than 2_00
2_0From 96 to D3DINFINITEINSTRUCTIONS
3_0 and laterFrom 216 (0x0000ffff) to D3DINFINITEINSTRUCTIONS

?

D3DINFINITEINSTRUCTIONS represents a virtually unlimited amount.

Valid values for this render state are numbers that are powers of 2; if the driver sets any other integer, the runtime uses the next nearest power of 2 number.

The runtime sets the MaxVShaderInstructionsExecuted member of the structure to this maximum number.

+
+ +

The driver uses these render states when it performs graphics rendering. Only render states that are specific to drivers are included in the Windows Driver Kit (WDK) documentation. The render states accessible to DirectX applications are included in the DirectX SDK documentation. These application-level render states include such characteristics as whether alpha blending is enabled, whether dithering is enabled, whether Direct3D lighting is used, and the type of shading to be used.

To update a particular render state, Direct3D stores information about the render state, and then calls the driver's D3dDrawPrimitives2 callback routine. The information provided to the driver enables it to:

  • Determine that it should update one or more render states.

  • Identify which render states to update, and what the new render state values should be.

Note that for certain render states to be honored, the driver must have previously set capability flags in the relevant member of the D3DPRIMCAPS structure.

In order to indicate a specific render state update, Direct3D inserts a D3DHAL_DP2COMMAND structure into the command buffer, setting the bCommand member of this structure to D3DDP2OP_RENDERSTATE (see the description for D3DDP2OP_RENDERSTATE in D3DHAL_DP2OPERATION), and setting the wStateCount member of the same structure to the number of render states to be updated.

Immediately following the D3DHAL_DP2COMMAND structure, Direct3D inserts one D3DHAL_DP2RENDERSTATE structure into the command buffer for each render state to be updated. The RenderState member of this structure identifies the render state to be changed; the new value of this render state is specified in either the dwState member (for DWORD values) or the fState member (for D3DVALUE values).

The following figure shows a portion of the command buffer containing a D3DDP2OP_RENDERSTATE command and two D3DHAL_DP2RENDERSTATE structures. The first of the three structures indicates that two render states are to be updated. The second structure indicates that the D3DRENDERSTATE_FILLMODE render state is to be changed to . The third structure indicates that the D3DRENDERSTATE_SHADEMODE render state should be updated to .

Additional Notes

See the , , and D3DTEXTUREFILTER enumerated types in the DirectX SDK documentation for complete listings of all of the enabled render state types.

Some changes have been made to the enumerated type for DirectX 5.0 and beyond. D3DRENDERSTATE_BLENDENABLE has been removed completely although it is defined as D3DRENDERSTATE_ALPHABLENDENABLE in the d3dtypes.h header file. See D3DRENDERSTATE_COLORKEYENABLE for an explanation. The 128 integer values in the interval [128, 255] are reserved for texture coordinate wrap flags. These are constructed with the D3DWRAP_U and D3DWRAP_V macros. Using a flags word preserves forward compatibility with texture coordinates of higher dimension than 2D.

Multitexture macro ops and D3DRENDERSTATE_TEXTUREFACTOR override all of the per-texture stage blending controls (COLOR{OP,ARG1,ARG2} & ALPHA{OP,ARG1,ARG2}).

+
+ + ff549036 + D3DRENDERSTATETYPE + D3DRENDERSTATETYPE +
+ + +

Determines whether textures are evicted from memory. + The driver uses a data type without a default value to detect whether to evict.

This render state determines whether the driver evicts textures that it manages (as opposed to textures managed by the Direct3D runtime) from video memory. If the render state value is TRUE, the driver evicts the textures. Otherwise, the driver does not evict those textures.

+
+ + ff549036 + D3DRS_ZENABLE + D3DRS_ZENABLE +
+ + +

Specifies either begin scene information or end scene information for geometric data captured within a frame. + The driver uses a data type with a default value of TRUE to detect scene-capture information.

The driver responds to D3DRENDERSTATE_SCENECAPTURE first with TRUE for begin scene information and next with for end scene information to capture geometric data within a frame. + See the permedia2 sample driver that ships with the Windows Driver Development Kit (DDK) for an example implementation. + Using the D3DRENDERSTATE_SCENECAPTURE render state in a D3dDrawPrimitives2 call replaces the legacy D3DHALCallbacks->D3dSceneCapture callback routine.

Care must be taken in updating a driver that implements the legacy D3DHALCallbacks->D3dSceneCapture callback routine to one using the D3DRENDERSTATE_SCENECAPTURE render state. The D3dSceneCapture callback routine uses the constants D3DHAL_SCENE_CAPTURE_START and D3DHAL_SCENE_CAPTURE_END to indicate, respectively, the beginning and end of a scene. The values of these constants are, respectively, 0 and 1. If you use these constants in place of TRUE and in this render state, the meaning will be the exact opposite of what you intend.

+
+ + ff549036 + D3DRS_FILLMODE + D3DRS_FILLMODE +
+ + +

DirectX 8.0 and later versions only.

Deletes either a rectangular or triangular patch from memory. + The driver uses a DWORD data type without a default value to detect the patch to delete.

This render state notifies the driver that a patch is to be deleted. The value of this render state is the handle to the patch affected. All cached information should be freed and the handle should be removed from the driver's patch handle table. This render state is not visible to applications but is generated internally when an application calls the DeletePatch function. This render state is sent to the driver only when patches are deleted by DeletePatch explicitly. All other patches should be cleaned up when the device is destroyed.

+
+ + ff549036 + D3DRS_SHADEMODE + D3DRS_SHADEMODE +
+ + +

DirectX 9.0 and later versions only.

Determines the maximum number of instructions that the vertex shader assembler can execute.

The driver uses a DWORD data type with a default value of D3DINFINITEINSTRUCTIONS (0xffffffff) to report the maximum number of vertex-shader instructions. + This maximum number depends on the version of the vertex shader that the display device supports as shown in the following table.

VersionMaximum number
earlier than 2_00
2_0 and laterFrom 216 (0x0000ffff) to D3DINFINITEINSTRUCTIONS

?

D3DINFINITEINSTRUCTIONS represents a virtually unlimited amount.

Valid values for this render state are numbers that are powers of 2; if the driver sets any other integer, the runtime uses the next nearest power of 2 number.

The runtime sets the MaxVShaderInstructionsExecuted member of the structure to this maximum number.

+
+ + ff549036 + D3DRS_ZWRITEENABLE + D3DRS_ZWRITEENABLE +
+ + +

DirectX 9.0 and later versions only.

Determines the maximum number of instructions that the pixel shader assembler can execute.

The driver uses a DWORD data type with a default value of D3DINFINITEINSTRUCTIONS (0xffffffff) to report the maximum number of pixel-shader instructions. + This maximum number depends on the version of the pixel shader that the display device supports as shown in the following table.

VersionMaximum number
earlier than 2_00
2_0From 96 to D3DINFINITEINSTRUCTIONS
3_0 and laterFrom 216 (0x0000ffff) to D3DINFINITEINSTRUCTIONS

?

D3DINFINITEINSTRUCTIONS represents a virtually unlimited amount.

Valid values for this render state are numbers that are powers of 2; if the driver sets any other integer, the runtime uses the next nearest power of 2 number.

The runtime sets the MaxVShaderInstructionsExecuted member of the structure to this maximum number.

+
+ + ff549036 + D3DRS_ALPHATESTENABLE + D3DRS_ALPHATESTENABLE +
+ + + No documentation. + + + ff549036 + D3DRS_LASTPIXEL + D3DRS_LASTPIXEL + + + + No documentation. + + + ff549036 + D3DRS_SRCBLEND + D3DRS_SRCBLEND + + + + No documentation. + + + ff549036 + D3DRS_DESTBLEND + D3DRS_DESTBLEND + + + + No documentation. + + + ff549036 + D3DRS_CULLMODE + D3DRS_CULLMODE + + + + No documentation. + + + ff549036 + D3DRS_ZFUNC + D3DRS_ZFUNC + + + + No documentation. + + + ff549036 + D3DRS_ALPHAREF + D3DRS_ALPHAREF + + + + No documentation. + + + ff549036 + D3DRS_ALPHAFUNC + D3DRS_ALPHAFUNC + + + + No documentation. + + + ff549036 + D3DRS_DITHERENABLE + D3DRS_DITHERENABLE + + + + No documentation. + + + ff549036 + D3DRS_ALPHABLENDENABLE + D3DRS_ALPHABLENDENABLE + + + + No documentation. + + + ff549036 + D3DRS_FOGENABLE + D3DRS_FOGENABLE + + + + No documentation. + + + ff549036 + D3DRS_SPECULARENABLE + D3DRS_SPECULARENABLE + + + + No documentation. + + + ff549036 + D3DRS_FOGCOLOR + D3DRS_FOGCOLOR + + + + No documentation. + + + ff549036 + D3DRS_FOGTABLEMODE + D3DRS_FOGTABLEMODE + + + + No documentation. + + + ff549036 + D3DRS_FOGSTART + D3DRS_FOGSTART + + + + No documentation. + + + ff549036 + D3DRS_FOGEND + D3DRS_FOGEND + + + + No documentation. + + + ff549036 + D3DRS_FOGDENSITY + D3DRS_FOGDENSITY + + + + No documentation. + + + ff549036 + D3DRS_RANGEFOGENABLE + D3DRS_RANGEFOGENABLE + + + + No documentation. + + + ff549036 + D3DRS_STENCILENABLE + D3DRS_STENCILENABLE + + + + No documentation. + + + ff549036 + D3DRS_STENCILFAIL + D3DRS_STENCILFAIL + + + + No documentation. + + + ff549036 + D3DRS_STENCILZFAIL + D3DRS_STENCILZFAIL + + + + No documentation. + + + ff549036 + D3DRS_STENCILPASS + D3DRS_STENCILPASS + + + + No documentation. + + + ff549036 + D3DRS_STENCILFUNC + D3DRS_STENCILFUNC + + + + No documentation. + + + ff549036 + D3DRS_STENCILREF + D3DRS_STENCILREF + + + + No documentation. + + + ff549036 + D3DRS_STENCILMASK + D3DRS_STENCILMASK + + + + No documentation. + + + ff549036 + D3DRS_STENCILWRITEMASK + D3DRS_STENCILWRITEMASK + + + + No documentation. + + + ff549036 + D3DRS_TEXTUREFACTOR + D3DRS_TEXTUREFACTOR + + + + No documentation. + + + ff549036 + D3DRS_WRAP0 + D3DRS_WRAP0 + + + + No documentation. + + + ff549036 + D3DRS_WRAP1 + D3DRS_WRAP1 + + + + No documentation. + + + ff549036 + D3DRS_WRAP2 + D3DRS_WRAP2 + + + + No documentation. + + + ff549036 + D3DRS_WRAP3 + D3DRS_WRAP3 + + + + No documentation. + + + ff549036 + D3DRS_WRAP4 + D3DRS_WRAP4 + + + + No documentation. + + + ff549036 + D3DRS_WRAP5 + D3DRS_WRAP5 + + + + No documentation. + + + ff549036 + D3DRS_WRAP6 + D3DRS_WRAP6 + + + + No documentation. + + + ff549036 + D3DRS_WRAP7 + D3DRS_WRAP7 + + + + No documentation. + + + ff549036 + D3DRS_CLIPPING + D3DRS_CLIPPING + + + + No documentation. + + + ff549036 + D3DRS_LIGHTING + D3DRS_LIGHTING + + + + No documentation. + + + ff549036 + D3DRS_AMBIENT + D3DRS_AMBIENT + + + + No documentation. + + + ff549036 + D3DRS_FOGVERTEXMODE + D3DRS_FOGVERTEXMODE + + + + No documentation. + + + ff549036 + D3DRS_COLORVERTEX + D3DRS_COLORVERTEX + + + + No documentation. + + + ff549036 + D3DRS_LOCALVIEWER + D3DRS_LOCALVIEWER + + + + No documentation. + + + ff549036 + D3DRS_NORMALIZENORMALS + D3DRS_NORMALIZENORMALS + + + + No documentation. + + + ff549036 + D3DRS_DIFFUSEMATERIALSOURCE + D3DRS_DIFFUSEMATERIALSOURCE + + + + No documentation. + + + ff549036 + D3DRS_SPECULARMATERIALSOURCE + D3DRS_SPECULARMATERIALSOURCE + + + + No documentation. + + + ff549036 + D3DRS_AMBIENTMATERIALSOURCE + D3DRS_AMBIENTMATERIALSOURCE + + + + No documentation. + + + ff549036 + D3DRS_EMISSIVEMATERIALSOURCE + D3DRS_EMISSIVEMATERIALSOURCE + + + + No documentation. + + + ff549036 + D3DRS_VERTEXBLEND + D3DRS_VERTEXBLEND + + + + No documentation. + + + ff549036 + D3DRS_CLIPPLANEENABLE + D3DRS_CLIPPLANEENABLE + + + + No documentation. + + + ff549036 + D3DRS_POINTSIZE + D3DRS_POINTSIZE + + + + No documentation. + + + ff549036 + D3DRS_POINTSIZE_MIN + D3DRS_POINTSIZE_MIN + + + + No documentation. + + + ff549036 + D3DRS_POINTSPRITEENABLE + D3DRS_POINTSPRITEENABLE + + + + No documentation. + + + ff549036 + D3DRS_POINTSCALEENABLE + D3DRS_POINTSCALEENABLE + + + + No documentation. + + + ff549036 + D3DRS_POINTSCALE_A + D3DRS_POINTSCALE_A + + + + No documentation. + + + ff549036 + D3DRS_POINTSCALE_B + D3DRS_POINTSCALE_B + + + + No documentation. + + + ff549036 + D3DRS_POINTSCALE_C + D3DRS_POINTSCALE_C + + + + No documentation. + + + ff549036 + D3DRS_MULTISAMPLEANTIALIAS + D3DRS_MULTISAMPLEANTIALIAS + + + + No documentation. + + + ff549036 + D3DRS_MULTISAMPLEMASK + D3DRS_MULTISAMPLEMASK + + + + No documentation. + + + ff549036 + D3DRS_PATCHEDGESTYLE + D3DRS_PATCHEDGESTYLE + + + + No documentation. + + + ff549036 + D3DRS_DEBUGMONITORTOKEN + D3DRS_DEBUGMONITORTOKEN + + + + No documentation. + + + ff549036 + D3DRS_POINTSIZE_MAX + D3DRS_POINTSIZE_MAX + + + + No documentation. + + + ff549036 + D3DRS_INDEXEDVERTEXBLENDENABLE + D3DRS_INDEXEDVERTEXBLENDENABLE + + + + No documentation. + + + ff549036 + D3DRS_COLORWRITEENABLE + D3DRS_COLORWRITEENABLE + + + + No documentation. + + + ff549036 + D3DRS_TWEENFACTOR + D3DRS_TWEENFACTOR + + + + No documentation. + + + ff549036 + D3DRS_BLENDOP + D3DRS_BLENDOP + + + + No documentation. + + + ff549036 + D3DRS_POSITIONDEGREE + D3DRS_POSITIONDEGREE + + + + No documentation. + + + ff549036 + D3DRS_NORMALDEGREE + D3DRS_NORMALDEGREE + + + + No documentation. + + + ff549036 + D3DRS_SCISSORTESTENABLE + D3DRS_SCISSORTESTENABLE + + + + No documentation. + + + ff549036 + D3DRS_SLOPESCALEDEPTHBIAS + D3DRS_SLOPESCALEDEPTHBIAS + + + + No documentation. + + + ff549036 + D3DRS_ANTIALIASEDLINEENABLE + D3DRS_ANTIALIASEDLINEENABLE + + + + No documentation. + + + ff549036 + D3DRS_MINTESSELLATIONLEVEL + D3DRS_MINTESSELLATIONLEVEL + + + + No documentation. + + + ff549036 + D3DRS_MAXTESSELLATIONLEVEL + D3DRS_MAXTESSELLATIONLEVEL + + + + No documentation. + + + ff549036 + D3DRS_ADAPTIVETESS_X + D3DRS_ADAPTIVETESS_X + + + + No documentation. + + + ff549036 + D3DRS_ADAPTIVETESS_Y + D3DRS_ADAPTIVETESS_Y + + + + No documentation. + + + ff549036 + D3DRS_ADAPTIVETESS_Z + D3DRS_ADAPTIVETESS_Z + + + + No documentation. + + + ff549036 + D3DRS_ADAPTIVETESS_W + D3DRS_ADAPTIVETESS_W + + + + No documentation. + + + ff549036 + D3DRS_ENABLEADAPTIVETESSELLATION + D3DRS_ENABLEADAPTIVETESSELLATION + + + + No documentation. + + + ff549036 + D3DRS_TWOSIDEDSTENCILMODE + D3DRS_TWOSIDEDSTENCILMODE + + + + No documentation. + + + ff549036 + D3DRS_CCW_STENCILFAIL + D3DRS_CCW_STENCILFAIL + + + + No documentation. + + + ff549036 + D3DRS_CCW_STENCILZFAIL + D3DRS_CCW_STENCILZFAIL + + + + No documentation. + + + ff549036 + D3DRS_CCW_STENCILPASS + D3DRS_CCW_STENCILPASS + + + + No documentation. + + + ff549036 + D3DRS_CCW_STENCILFUNC + D3DRS_CCW_STENCILFUNC + + + + No documentation. + + + ff549036 + D3DRS_COLORWRITEENABLE1 + D3DRS_COLORWRITEENABLE1 + + + + No documentation. + + + ff549036 + D3DRS_COLORWRITEENABLE2 + D3DRS_COLORWRITEENABLE2 + + + + No documentation. + + + ff549036 + D3DRS_COLORWRITEENABLE3 + D3DRS_COLORWRITEENABLE3 + + + + No documentation. + + + ff549036 + D3DRS_BLENDFACTOR + D3DRS_BLENDFACTOR + + + + No documentation. + + + ff549036 + D3DRS_SRGBWRITEENABLE + D3DRS_SRGBWRITEENABLE + + + + No documentation. + + + ff549036 + D3DRS_DEPTHBIAS + D3DRS_DEPTHBIAS + + + + No documentation. + + + ff549036 + D3DRS_WRAP8 + D3DRS_WRAP8 + + + + No documentation. + + + ff549036 + D3DRS_WRAP9 + D3DRS_WRAP9 + + + + No documentation. + + + ff549036 + D3DRS_WRAP10 + D3DRS_WRAP10 + + + + No documentation. + + + ff549036 + D3DRS_WRAP11 + D3DRS_WRAP11 + + + + No documentation. + + + ff549036 + D3DRS_WRAP12 + D3DRS_WRAP12 + + + + No documentation. + + + ff549036 + D3DRS_WRAP13 + D3DRS_WRAP13 + + + + No documentation. + + + ff549036 + D3DRS_WRAP14 + D3DRS_WRAP14 + + + + No documentation. + + + ff549036 + D3DRS_WRAP15 + D3DRS_WRAP15 + + + + No documentation. + + + ff549036 + D3DRS_SEPARATEALPHABLENDENABLE + D3DRS_SEPARATEALPHABLENDENABLE + + + + No documentation. + + + ff549036 + D3DRS_SRCBLENDALPHA + D3DRS_SRCBLENDALPHA + + + + No documentation. + + + ff549036 + D3DRS_DESTBLENDALPHA + D3DRS_DESTBLENDALPHA + + + + No documentation. + + + ff549036 + D3DRS_BLENDOPALPHA + D3DRS_BLENDOPALPHA + + + + No documentation. + + + D3DX_RESOURCE_RESIDENCY + D3DX_RESOURCE_RESIDENCY + + + + No documentation. + + + D3DX_RESOURCE_RESIDENCY_RESIDENT + D3DX_RESOURCE_RESIDENCY_RESIDENT + + + + No documentation. + + + D3DX_RESOURCE_RESIDENCY_RESIDENT_IN_SHARED_MEMORY + D3DX_RESOURCE_RESIDENCY_RESIDENT_IN_SHARED_MEMORY + + + + No documentation. + + + D3DX_RESOURCE_RESIDENCY_NOT_RESIDENT + D3DX_RESOURCE_RESIDENCY_NOT_RESIDENT + + + + No documentation. + + + D3DRESOURCETYPE + D3DRESOURCETYPE + + + + No documentation. + + + D3DRTYPE_SURFACE + D3DRTYPE_SURFACE + + + + No documentation. + + + D3DRTYPE_VOLUME + D3DRTYPE_VOLUME + + + + No documentation. + + + D3DRTYPE_TEXTURE + D3DRTYPE_TEXTURE + + + + No documentation. + + + D3DRTYPE_VOLUMETEXTURE + D3DRTYPE_VOLUMETEXTURE + + + + No documentation. + + + D3DRTYPE_CUBETEXTURE + D3DRTYPE_CUBETEXTURE + + + + No documentation. + + + D3DRTYPE_VERTEXBUFFER + D3DRTYPE_VERTEXBUFFER + + + + No documentation. + + + D3DRTYPE_INDEXBUFFER + D3DRTYPE_INDEXBUFFER + + + +

Sampler states define texture sampling operations such as texture addressing and texture filtering. Some sampler states set-up vertex processing, and some set-up pixel processing. Sampler states can be saved and restored using stateblocks (see State Blocks Save and Restore State (Direct3D 9)).

+
+ + bb172602 + D3DSAMPLERSTATETYPE + D3DSAMPLERSTATETYPE +
+ + + No documentation. + + + bb172602 + D3DSAMP_ADDRESSU + D3DSAMP_ADDRESSU + + + + No documentation. + + + bb172602 + D3DSAMP_ADDRESSV + D3DSAMP_ADDRESSV + + + + No documentation. + + + bb172602 + D3DSAMP_ADDRESSW + D3DSAMP_ADDRESSW + + + + No documentation. + + + bb172602 + D3DSAMP_BORDERCOLOR + D3DSAMP_BORDERCOLOR + + + + No documentation. + + + bb172602 + D3DSAMP_MAGFILTER + D3DSAMP_MAGFILTER + + + + No documentation. + + + bb172602 + D3DSAMP_MINFILTER + D3DSAMP_MINFILTER + + + + No documentation. + + + bb172602 + D3DSAMP_MIPFILTER + D3DSAMP_MIPFILTER + + + + No documentation. + + + bb172602 + D3DSAMP_MIPMAPLODBIAS + D3DSAMP_MIPMAPLODBIAS + + + + No documentation. + + + bb172602 + D3DSAMP_MAXMIPLEVEL + D3DSAMP_MAXMIPLEVEL + + + + No documentation. + + + bb172602 + D3DSAMP_MAXANISOTROPY + D3DSAMP_MAXANISOTROPY + + + + No documentation. + + + bb172602 + D3DSAMP_SRGBTEXTURE + D3DSAMP_SRGBTEXTURE + + + + No documentation. + + + bb172602 + D3DSAMP_ELEMENTINDEX + D3DSAMP_ELEMENTINDEX + + + + No documentation. + + + bb172602 + D3DSAMP_DMAPOFFSET + D3DSAMP_DMAPOFFSET + + + +

Defines the sampler texture types for vertex shaders.

+
+ + bb172603 + D3DSAMPLER_TEXTURE_TYPE + D3DSAMPLER_TEXTURE_TYPE +
+ + +

Uninitialized value. The value of this element is D3DSP_TEXTURETYPE_SHIFT.

+
+ + bb172603 + D3DSTT_UNKNOWN + D3DSTT_UNKNOWN +
+ + +

Declaring a 2D texture. The value of this element is D3DSP_TEXTURETYPE_SHIFT * 4.

+
+ + bb172603 + D3DSTT_2D + D3DSTT_2D +
+ + +

Declaring a cube texture. The value of this element is D3DSP_TEXTURETYPE_SHIFT * 8.

+
+ + bb172603 + D3DSTT_CUBE + D3DSTT_CUBE +
+ + +

Declaring a volume texture. The value of this element is D3DSP_TEXTURETYPE_SHIFT * 16.

+
+ + bb172603 + D3DSTT_VOLUME + D3DSTT_VOLUME +
+ + +

Flags indicating the method the rasterizer uses to create an image on a surface.

+
+ +

This enumeration is used as a member in and .

+
+ + bb172604 + D3DSCANLINEORDERING + D3DSCANLINEORDERING +
+ + +

The image is created from the first scanline to the last without skipping any.

+
+ + bb172604 + D3DSCANLINEORDERING_UNKNOWN + D3DSCANLINEORDERING_UNKNOWN +
+ + +

The image is created using the interlaced method in which odd-numbered lines are drawn on odd-numbered passes and even lines are drawn on even-numbered passes.

+
+ + bb172604 + D3DSCANLINEORDERING_PROGRESSIVE + D3DSCANLINEORDERING_PROGRESSIVE +
+ + +

The image is created using the interlaced method in which odd-numbered lines are drawn on odd-numbered passes and even lines are drawn on even-numbered passes.

+
+ + bb172604 + D3DSCANLINEORDERING_INTERLACED + D3DSCANLINEORDERING_INTERLACED +
+ + +

The following page provides a basic outline of key differences between Direct3D 9 and Direct3D 10. The outline below provides some insight to assist developers with Direct3D 9 experience to explore and relate to Direct3D 10.

Although the info in this topic compares Direct3D 9 with Direct3D 10, because Direct3D 11 builds on the improvements made in Direct3D 10 and 10.1, you also need this info to migrate from Direct3D 9 to Direct3D 11. For info about moving beyond Direct3D 10 to Direct3D 11, see Migrating to Direct3D 11.

  • Overview
    • Removal
    • Device
  • Engine
    • Direct
  • Tricks
    • Overriding
    • Resolving
    • Simulating
  • Driving
    • Resource
    • Views
    • Static
    • Direct3D
    • HLSL
    • Shader
    • Creation
    • Shader
    • Input
    • Impact
    • Vertex
    • State
  • Porting
    • File
    • Mapping
  • Porting
    • Direct3D
    • Shader
    • HLSL
    • Constant
    • User
  • Additional
    • Integers
    • Mouse
    • Mapping
    • Reference
    • Test
    • StretchRect
  • Additional
  • Related
+
+ + bb205073 + D3DPSHADECAPS + D3DPSHADECAPS +
+ + + No documentation. + + + bb205073 + D3DPSHADECAPS_COLORGOURAUDRGB + D3DPSHADECAPS_COLORGOURAUDRGB + + + + No documentation. + + + bb205073 + D3DPSHADECAPS_SPECULARGOURAUDRGB + D3DPSHADECAPS_SPECULARGOURAUDRGB + + + + No documentation. + + + bb205073 + D3DPSHADECAPS_ALPHAGOURAUDBLEND + D3DPSHADECAPS_ALPHAGOURAUDBLEND + + + + No documentation. + + + bb205073 + D3DPSHADECAPS_FOGGOURAUD + D3DPSHADECAPS_FOGGOURAUD + + + +

Defines constants that describe the supported shading modes.

+
+ +

The first vertex of a triangle for flat shading mode is defined in the following manner.

  • For a triangle list, the first vertex of the triangle i is i * 3.
  • For a triangle strip, the first vertex of the triangle i is vertex i.
  • For a triangle fan, the first vertex of the triangle i is vertex i + 1.

The members of this enumerated type define the vales for the render state.

+
+ + bb172605 + D3DSHADEMODE + D3DSHADEMODE +
+ + +

Flat shading mode. The color and specular component of the first vertex in the triangle are used to determine the color and specular component of the face. These colors remain constant across the triangle; that is, they are not interpolated. The specular alpha is interpolated. See Remarks.

+
+ + bb172605 + D3DSHADE_FLAT + D3DSHADE_FLAT +
+ + +

Gouraud shading mode. The color and specular components of the face are determined by a linear interpolation between all three of the triangle's vertices.

+
+ + bb172605 + D3DSHADE_GOURAUD + D3DSHADE_GOURAUD +
+ + +

Not supported.

+
+ + bb172605 + D3DSHADE_PHONG + D3DSHADE_PHONG +
+ + +

The flags are used for parsing, compiling, or assembling shaders.

Parser flags

Parse time flags are only used by the effect system (before effect compilation) when you create an effect compiler. For example, you could create a compiler object with , and then use that compiler object repeatedly with different compiler flags to generate specialized code.

+
+ +

The effect system will use parser flags when called by the following functions:

  • CompileEffect

The effect system will use compiler flags when called by the following functions:

  • (or or )
  • CompileEffect (or CompileShader)

In addition, you can use compiler flags when creating an effect by calling (or or ).

  • If you pass in an uncompiled .fx file, the effect system will use the flag input parameter during compilation.
  • If you pass in a compiled effect, the effect system will ignore the compiler flags since they are not needed to load the effect.

The effect system will use assembler flags when called by the following functions:

Applying compiler flags or assembler flags to the incorrect API will fail shader validation. Check the Direct3D error code return value from the function (with the DirectX Error Lookup Tool) to help track down this error.

+
+ + bb205441 + D3DXSHADER + D3DXSHADER +
+ + + No documentation. + + + bb205441 + D3DXSHADER_DEBUG + D3DXSHADER_DEBUG + + + + No documentation. + + + bb205441 + D3DXSHADER_SKIPVALIDATION + D3DXSHADER_SKIPVALIDATION + + + + No documentation. + + + bb205441 + D3DXSHADER_SKIPOPTIMIZATION + D3DXSHADER_SKIPOPTIMIZATION + + + + No documentation. + + + bb205441 + D3DXSHADER_PACKMATRIX_ROWMAJOR + D3DXSHADER_PACKMATRIX_ROWMAJOR + + + + No documentation. + + + bb205441 + D3DXSHADER_PACKMATRIX_COLUMNMAJOR + D3DXSHADER_PACKMATRIX_COLUMNMAJOR + + + + No documentation. + + + bb205441 + D3DXSHADER_PARTIALPRECISION + D3DXSHADER_PARTIALPRECISION + + + + No documentation. + + + bb205441 + D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT + D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT + + + + No documentation. + + + bb205441 + D3DXSHADER_FORCE_PS_SOFTWARE_NOOPT + D3DXSHADER_FORCE_PS_SOFTWARE_NOOPT + + + + No documentation. + + + bb205441 + D3DXSHADER_NO_PRESHADER + D3DXSHADER_NO_PRESHADER + + + + No documentation. + + + bb205441 + D3DXSHADER_AVOID_FLOW_CONTROL + D3DXSHADER_AVOID_FLOW_CONTROL + + + + No documentation. + + + bb205441 + D3DXSHADER_PREFER_FLOW_CONTROL + D3DXSHADER_PREFER_FLOW_CONTROL + + + + No documentation. + + + bb205441 + D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY + D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY + + + + No documentation. + + + bb205441 + D3DXSHADER_IEEE_STRICTNESS + D3DXSHADER_IEEE_STRICTNESS + + + + No documentation. + + + bb205441 + D3DXSHADER_USE_LEGACY_D3DX9_31_DLL + D3DXSHADER_USE_LEGACY_D3DX9_31_DLL + + + + No documentation. + + + bb205441 + D3DXSHADER_OPTIMIZATION_LEVEL0 + D3DXSHADER_OPTIMIZATION_LEVEL0 + + + + No documentation. + + + bb205441 + D3DXSHADER_OPTIMIZATION_LEVEL1 + D3DXSHADER_OPTIMIZATION_LEVEL1 + + + + No documentation. + + + bb205441 + D3DXSHADER_OPTIMIZATION_LEVEL2 + D3DXSHADER_OPTIMIZATION_LEVEL2 + + + + No documentation. + + + bb205441 + D3DXSHADER_OPTIMIZATION_LEVEL3 + D3DXSHADER_OPTIMIZATION_LEVEL3 + + + + None. + + + None + None + + + +

The following flags are used to specify sprite rendering options to the flags parameter in the Begin method:

+
+ + bb205466 + D3DXSPRITE + D3DXSPRITE +
+ + + No documentation. + + + bb205466 + D3DXSPRITE_DONOTSAVESTATE + D3DXSPRITE_DONOTSAVESTATE + + + + No documentation. + + + bb205466 + D3DXSPRITE_DONOTMODIFY_RENDERSTATE + D3DXSPRITE_DONOTMODIFY_RENDERSTATE + + + + No documentation. + + + bb205466 + D3DXSPRITE_OBJECTSPACE + D3DXSPRITE_OBJECTSPACE + + + + No documentation. + + + bb205466 + D3DXSPRITE_BILLBOARD + D3DXSPRITE_BILLBOARD + + + + No documentation. + + + bb205466 + D3DXSPRITE_ALPHABLEND + D3DXSPRITE_ALPHABLEND + + + + No documentation. + + + bb205466 + D3DXSPRITE_SORT_TEXTURE + D3DXSPRITE_SORT_TEXTURE + + + + No documentation. + + + bb205466 + D3DXSPRITE_SORT_DEPTH_FRONTTOBACK + D3DXSPRITE_SORT_DEPTH_FRONTTOBACK + + + + No documentation. + + + bb205466 + D3DXSPRITE_SORT_DEPTH_BACKTOFRONT + D3DXSPRITE_SORT_DEPTH_BACKTOFRONT + + + + No documentation. + + + bb205466 + D3DXSPRITE_DO_NOT_ADDREF_TEXTURE + D3DXSPRITE_DO_NOT_ADDREF_TEXTURE + + + + None. + + + None + None + + + +

Predefined sets of pipeline state used by state blocks (see State Blocks Save and Restore State (Direct3D 9)).

+
+ +

As the following diagram shows, vertex and pixel state are both subsets of device state.

There are only a few states that are considered both vertex and pixel state. These states are:

  • Render state:
  • Render state:
  • Render state:
  • Texture state:
  • Texture state:
+
+ + bb172608 + D3DSTATEBLOCKTYPE + D3DSTATEBLOCKTYPE +
+ + + No documentation. + + + bb172608 + D3DSBT_ALL + D3DSBT_ALL + + + + No documentation. + + + bb172608 + D3DSBT_PIXELSTATE + D3DSBT_PIXELSTATE + + + + No documentation. + + + bb172608 + D3DSBT_VERTEXSTATE + D3DSBT_VERTEXSTATE + + + +

Driver stencil capability flags.

+
+ + bb172609 + D3DSTENCILCAPS + D3DSTENCILCAPS +
+ + + No documentation. + + + bb172609 + D3DSTENCILCAPS_KEEP + D3DSTENCILCAPS_KEEP + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_ZERO + D3DSTENCILCAPS_ZERO + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_REPLACE + D3DSTENCILCAPS_REPLACE + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_INCRSAT + D3DSTENCILCAPS_INCRSAT + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_DECRSAT + D3DSTENCILCAPS_DECRSAT + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_INVERT + D3DSTENCILCAPS_INVERT + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_INCR + D3DSTENCILCAPS_INCR + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_DECR + D3DSTENCILCAPS_DECR + + + + No documentation. + + + bb172609 + D3DSTENCILCAPS_TWOSIDED + D3DSTENCILCAPS_TWOSIDED + + + +

Defines stencil-buffer operations.

+
+ +

Stencil-buffer entries are integer values ranging from 0 through 2n - 1, where n is the bit depth of the stencil buffer.

+
+ + bb172610 + D3DSTENCILOP + D3DSTENCILOP +
+ + +

Do not update the entry in the stencil buffer. This is the default value.

+
+ + bb172610 + D3DSTENCILOP_KEEP + D3DSTENCILOP_KEEP +
+ + +

Set the stencil-buffer entry to 0.

+
+ + bb172610 + D3DSTENCILOP_ZERO + D3DSTENCILOP_ZERO +
+ + +

Replace the stencil-buffer entry with a reference value.

+
+ + bb172610 + D3DSTENCILOP_REPLACE + D3DSTENCILOP_REPLACE +
+ + +

Increment the stencil-buffer entry, clamping to the maximum value.

+
+ + bb172610 + D3DSTENCILOP_INCRSAT + D3DSTENCILOP_INCRSAT +
+ + +

Decrement the stencil-buffer entry, clamping to zero.

+
+ + bb172610 + D3DSTENCILOP_DECRSAT + D3DSTENCILOP_DECRSAT +
+ + +

Invert the bits in the stencil-buffer entry.

+
+ + bb172610 + D3DSTENCILOP_INVERT + D3DSTENCILOP_INVERT +
+ + +

Increment the stencil-buffer entry, wrapping to zero if the new value exceeds the maximum value.

+
+ + bb172610 + D3DSTENCILOP_INCR + D3DSTENCILOP_INCR +
+ + +

Decrement the stencil-buffer entry, wrapping to the maximum value if the new value is less than zero.

+
+ + bb172610 + D3DSTENCILOP_DECR + D3DSTENCILOP_DECR +
+ + +

Given a scene that contains many objects that use the same geometry, you can draw many instances of that geometry at different orientations, sizes, colors, and so on with dramatically better performance by reducing the amount of data you need to supply to the renderer.

This can be accomplished through the use of two techniques: the first for drawing indexed geometry and the second for non-indexed geometry. Both techniques use two vertex buffers: one to supply geometry data and one to supply per-object instance data. The instance data can be a wide variety of information such as a transform, color data, or lighting data - basically anything that you can describe in a vertex declaration. Drawing many instances of geometry with these techniques can dramatically reduce the amount of data sent to the renderer.

  • Drawing
    • Indexed
  • Drawing
    • Non-Indexed
  • Related
+
+ + bb173349 + D3DSTREAMSOURCE + D3DSTREAMSOURCE +
+ + + No documentation. + + + bb173349 + D3DSTREAMSOURCE_INDEXEDDATA + D3DSTREAMSOURCE_INDEXEDDATA + + + + No documentation. + + + bb173349 + D3DSTREAMSOURCE_INSTANCEDATA + D3DSTREAMSOURCE_INSTANCEDATA + + + +

Defines swap effects.

+
+ +

The state of the back buffer after a call to Present is well-defined by each of these swap effects, and whether the Direct3D device was created with a full-screen swap chain or a windowed swap chain has no effect on this state. In particular, the swap effect operates the same whether windowed or full-screen, and the Direct3D runtime guarantees this by creating extra buffers. As a result, it is recommended that applications use whenever possible to avoid any such penalties. This is because this swap effect will always be the most efficient in terms of memory consumption and performance.

Applications that use or should not expect full-screen destination alpha to work. This means that the render state will not work as expected because full-screen swap chains with these swap effects do not have an explicit pixel format from the driver's point of view. The driver infers that they should take on the display format, which does not have an alpha channel. To work around this, take the following steps:

  • Use .
  • Check the flag in the Caps3 member of the structure. This flag indicates whether the driver can do alpha blending when or is used.
  • Applications using flip mode swap effect () should call PresentEx after a window resize or region change to ensure that the display content is updated.

An invisible window cannot receive user-mode events; furthermore, an invisible-fullscreen window will interfere with the presentation of another applications' windowed-mode window. Therefore, each application needs to ensure that a device window is visible when a swapchain is presented in fullscreen mode.

+
+ + bb172612 + D3DSWAPEFFECT + D3DSWAPEFFECT +
+ + +

When a swap chain is created with a swap effect of or , the runtime will guarantee that an operation will not affect the content of any of the back buffers. Unfortunately, meeting this guarantee can involve substantial video memory or processing overheads, especially when implementing flip semantics for a windowed swap chain or copy semantics for a full-screen swap chain. An application may use the swap effect to avoid these overheads and to enable the display driver to select the most efficient presentation technique for the swap chain. This is also the only swap effect that may be used when specifying a value other than for the MultiSampleType member of .

Like a swap chain that uses , a swap chain that uses might include more than one back buffer, any of which may be accessed using or . The swap chain is best envisaged as a queue in which 0 always indexes the back buffer that will be displayed by the next Present operation and from which buffers are discarded when they have been displayed.

An application that uses this swap effect cannot make any assumptions about the contents of a discarded back buffer and should therefore update an entire back buffer before invoking a Present operation that would display it. Although this is not enforced, the debug version of the runtime will overwrite the contents of discarded back buffers with random data to enable developers to verify that their applications are updating the entire back buffer surfaces correctly.

+
+ + bb172612 + D3DSWAPEFFECT_DISCARD + D3DSWAPEFFECT_DISCARD +
+ + +

The swap chain might include multiple back buffers and is best envisaged as a circular queue that includes the front buffer. Within this queue, the back buffers are always numbered sequentially from 0 to (n - 1), where n is the number of back buffers, so that 0 denotes the least recently presented buffer. When Present is invoked, the queue is "rotated" so that the front buffer becomes back buffer (n - 1), while the back buffer 0 becomes the new front buffer.

+
+ + bb172612 + D3DSWAPEFFECT_FLIP + D3DSWAPEFFECT_FLIP +
+ + +

This swap effect may be specified only for a swap chain comprising a single back buffer. Whether the swap chain is windowed or full-screen, the runtime will guarantee the semantics implied by a copy-based Present operation, namely that the operation leaves the content of the back buffer unchanged, instead of replacing it with the content of the front buffer as a flip-based Present operation would.

For a full-screen swap chain, the runtime uses a combination of flip operations and copy operations, supported if necessary by hidden back buffers, to accomplish the Present operation. Accordingly, the presentation is synchronized with the display adapter's vertical retrace and its rate is constrained by the chosen presentation interval. A swap chain specified with the flag is the only exception. (Refer to the description of the PresentationIntervals member of the structure.) In this case, a Present operation copies the back buffer content directly to the front buffer without waiting for the vertical retrace.

+
+ + bb172612 + D3DSWAPEFFECT_COPY + D3DSWAPEFFECT_COPY +
+ + +

Use a dedicated area of video memory that can be overlayed on the primary surface. No copy is performed when the overlay is displayed. The overlay operation is performed in hardware, without modifying the data in the primary surface.

Differences between Direct3D 9 and Direct3D 9Ex:

is only available in Direct3D9Ex running on Windows 7 (or more current operating system).

?

+
+ + bb172612 + D3DSWAPEFFECT_OVERLAY + D3DSWAPEFFECT_OVERLAY +
+ + +

Designates when an application is adopting flip mode, during which time an application's frame is passed instead of copied to the Desktop Window Manager(DWM) for composition when the application is presenting in windowed mode. Flip mode allows an application to more efficiently use memory bandwidth as well as enabling an application to take advantage of full-screen-present statistics. Flip mode does not affect full-screen behavior. A sample application that uses and is the D3D9ExFlipEx sample on the MSDN Code Gallery.

Note??If you create a swap chain with , you can't override the hDeviceWindow member of the structure when you present a new frame for display. That is, you must pass null to the hDestWindowOverride parameter of to instruct the runtime to use the hDeviceWindow member of for the presentation.

Differences between Direct3D 9 and Direct3D 9Ex:

is only available in Direct3D9Ex running on Windows 7 (or more current operating system).

?

+
+ + bb172612 + D3DSWAPEFFECT_FLIPEX + D3DSWAPEFFECT_FLIPEX +
+ + +

Defines settings used for mesh tangent frame computations.

+
+ + bb205467 + D3DXTANGENT + D3DXTANGENT +
+ + +

Texture coordinate values in the u direction are between 0 and 1. In this case a texture coordinate set will be chosen that minimizes the perimeter of the triangle. See Texture Wrapping (Direct3D 9).

+
+ + bb205467 + D3DXTANGENT_WRAP_U + D3DXTANGENT_WRAP_U +
+ + +

Texture coordinate values in the v direction are between 0 and 1. In this case a texture coordinate set will be chosen that minimizes the perimeter of the triangle. See Texture Wrapping (Direct3D 9).

+
+ + bb205467 + D3DXTANGENT_WRAP_V + D3DXTANGENT_WRAP_V +
+ + +

Texture coordinate values in both u and v directions are between 0 and 1. In this case a texture coordinate set will be chosen that minimizes the perimeter of the triangle. See Texture Wrapping (Direct3D 9).

+
+ + bb205467 + D3DXTANGENT_WRAP_UV + D3DXTANGENT_WRAP_UV +
+ + +

Do not normalize partial derivatives with respect to texture coordinates. If not normalized, the scale of the partial derivatives is proportional to the scale of the 3D model divided by the scale of the triangle in (u, v) space. This scale value provides a measure of how much the texture is stretched in a given direction. The resulting vector length is a weighted sum of the lengths of the partial derivatives.

+
+ + bb205467 + D3DXTANGENT_DONT_NORMALIZE_PARTIALS + D3DXTANGENT_DONT_NORMALIZE_PARTIALS +
+ + +

Do not transform texture coordinates to orthogonal Cartesian coordinates. Mutually exclusive with and .

+
+ + bb205467 + D3DXTANGENT_DONT_ORTHOGONALIZE + D3DXTANGENT_DONT_ORTHOGONALIZE +
+ + +

Compute the partial derivative with respect to texture coordinate v independently for each vertex, and then compute the partial derivative with respect to u as the cross product of the partial derivative with respect to v and the normal vector. Mutually exclusive with and .

+
+ + bb205467 + D3DXTANGENT_ORTHOGONALIZE_FROM_V + D3DXTANGENT_ORTHOGONALIZE_FROM_V +
+ + +

Compute the partial derivative with respect to texture coordinate u independently for each vertex, and then compute the partial derivative with respect to v as the cross product of the normal vector and the partial derivative with respect to u. Mutually exclusive with and .

+
+ + bb205467 + D3DXTANGENT_ORTHOGONALIZE_FROM_U + D3DXTANGENT_ORTHOGONALIZE_FROM_U +
+ + +

Weight the direction of the computed per-vertex normal or partial derivative vector according to the areas of triangles attached to that vertex. Mutually exclusive with .

+
+ + bb205467 + D3DXTANGENT_WEIGHT_BY_AREA + D3DXTANGENT_WEIGHT_BY_AREA +
+ + +

Compute a unit-length normal vector for each triangle of the input mesh. Mutually exclusive with .

+
+ + bb205467 + D3DXTANGENT_WEIGHT_EQUAL + D3DXTANGENT_WEIGHT_EQUAL +
+ + +

Vertices are ordered in a clockwise direction around each triangle. The computed normal vector direction is therefore inverted 180 degrees from the direction computed using counterclockwise vertex ordering.

+
+ + bb205467 + D3DXTANGENT_WIND_CW + D3DXTANGENT_WIND_CW +
+ + +

Compute the per-vertex normal vector for each triangle of the input mesh, and ignore any normal vectors already in the input mesh.

+
+ + bb205467 + D3DXTANGENT_CALCULATE_NORMALS + D3DXTANGENT_CALCULATE_NORMALS +
+ + +

The results are stored in the original input mesh, and the output mesh is not used.

+
+ + bb205467 + D3DXTANGENT_GENERATE_IN_PLACE + D3DXTANGENT_GENERATE_IN_PLACE +
+ + + None. + + + None + None + + + +

Defines constants that describe the supported texture-addressing modes.

+
+ + bb172614 + D3DTEXTUREADDRESS + D3DTEXTUREADDRESS +
+ + +

Tile the texture at every integer junction. For example, for u values between 0 and 3, the texture is repeated three times; no mirroring is performed.

+
+ + bb172614 + D3DTADDRESS_WRAP + D3DTADDRESS_WRAP +
+ + +

Similar to , except that the texture is flipped at every integer junction. For u values between 0 and 1, for example, the texture is addressed normally; between 1 and 2, the texture is flipped (mirrored); between 2 and 3, the texture is normal again; and so on.

+
+ + bb172614 + D3DTADDRESS_MIRROR + D3DTADDRESS_MIRROR +
+ + +

Texture coordinates outside the range [0.0, 1.0] are set to the texture color at 0.0 or 1.0, respectively.

+
+ + bb172614 + D3DTADDRESS_CLAMP + D3DTADDRESS_CLAMP +
+ + +

Texture coordinates outside the range [0.0, 1.0] are set to the border color.

+
+ + bb172614 + D3DTADDRESS_BORDER + D3DTADDRESS_BORDER +
+ + +

Similar to and . Takes the absolute value of the texture coordinate (thus, mirroring around 0), and then clamps to the maximum value. The most common usage is for volume textures, where support for the full texture-addressing mode is not necessary, but the data is symmetric around the one axis.

+
+ + bb172614 + D3DTADDRESS_MIRRORONCE + D3DTADDRESS_MIRRORONCE +
+ + +

A programmable pixel shader is made up of a set of instructions that operate on pixel data. Registers transfer data in and out of the ALU. Additional control can be applied to modify the instruction, the results, or what data gets written out.

  • ps_3_0 Instructions contains a list of the available instructions.
  • ps_3_0 Registers lists the different types of registers used by the pixel shader ALU.
  • Modifiers Are used to modify the way an instruction works.
  • Destination Register Write Mask determines what components of the destination register get written.
  • Pixel Shader Source Register Modifiers alter the source register data before the instruction runs.
  • Source Register Swizzling gives additional control over which register components are read, copied, or written.
+
+ + bb219845 + D3DPTADDRESSCAPS + D3DPTADDRESSCAPS +
+ + + No documentation. + + + bb219845 + D3DPTADDRESSCAPS_WRAP + D3DPTADDRESSCAPS_WRAP + + + + No documentation. + + + bb219845 + D3DPTADDRESSCAPS_MIRROR + D3DPTADDRESSCAPS_MIRROR + + + + No documentation. + + + bb219845 + D3DPTADDRESSCAPS_CLAMP + D3DPTADDRESSCAPS_CLAMP + + + + No documentation. + + + bb219845 + D3DPTADDRESSCAPS_BORDER + D3DPTADDRESSCAPS_BORDER + + + + No documentation. + + + bb219845 + D3DPTADDRESSCAPS_INDEPENDENTUV + D3DPTADDRESSCAPS_INDEPENDENTUV + + + + No documentation. + + + bb219845 + D3DPTADDRESSCAPS_MIRRORONCE + D3DPTADDRESSCAPS_MIRRORONCE + + + +

Texture argument constants are used as values for the following members of the enumerated type:

Set and retrieve texture arguments by calling the SetTextureStageState and GetTextureStageState methods.

Argument flags

You can combine an argument flag with a modifier, but two argument flags cannot be combined.

+
+ + bb172613 + D3DTA + D3DTA +
+ + + No documentation. + + + bb172613 + D3DTA_SELECTMASK + D3DTA_SELECTMASK + + + + No documentation. + + + bb172613 + D3DTA_DIFFUSE + D3DTA_DIFFUSE + + + + No documentation. + + + bb172613 + D3DTA_CURRENT + D3DTA_CURRENT + + + + No documentation. + + + bb172613 + D3DTA_TEXTURE + D3DTA_TEXTURE + + + + No documentation. + + + bb172613 + D3DTA_TFACTOR + D3DTA_TFACTOR + + + + No documentation. + + + bb172613 + D3DTA_SPECULAR + D3DTA_SPECULAR + + + + No documentation. + + + bb172613 + D3DTA_TEMP + D3DTA_TEMP + + + + No documentation. + + + bb172613 + D3DTA_CONSTANT + D3DTA_CONSTANT + + + + No documentation. + + + bb172613 + D3DTA_COMPLEMENT + D3DTA_COMPLEMENT + + + + No documentation. + + + bb172613 + D3DTA_ALPHAREPLICATE + D3DTA_ALPHAREPLICATE + + + +

A programmable pixel shader is made up of a set of instructions that operate on pixel data. Registers transfer data in and out of the ALU. Additional control can be applied to modify the instruction, the results, or what data gets written out.

  • ps_3_0 Instructions contains a list of the available instructions.
  • ps_3_0 Registers lists the different types of registers used by the pixel shader ALU.
  • Modifiers Are used to modify the way an instruction works.
  • Destination Register Write Mask determines what components of the destination register get written.
  • Pixel Shader Source Register Modifiers alter the source register data before the instruction runs.
  • Source Register Swizzling gives additional control over which register components are read, copied, or written.
+
+ + bb219845 + D3DPTEXTURECAPS + D3DPTEXTURECAPS +
+ + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_PERSPECTIVE + D3DPTEXTURECAPS_PERSPECTIVE + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_POW2 + D3DPTEXTURECAPS_POW2 + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_ALPHA + D3DPTEXTURECAPS_ALPHA + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_SQUAREONLY + D3DPTEXTURECAPS_SQUAREONLY + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE + D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_ALPHAPALETTE + D3DPTEXTURECAPS_ALPHAPALETTE + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_NONPOW2CONDITIONAL + D3DPTEXTURECAPS_NONPOW2CONDITIONAL + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_PROJECTED + D3DPTEXTURECAPS_PROJECTED + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_CUBEMAP + D3DPTEXTURECAPS_CUBEMAP + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_VOLUMEMAP + D3DPTEXTURECAPS_VOLUMEMAP + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_MIPMAP + D3DPTEXTURECAPS_MIPMAP + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_MIPVOLUMEMAP + D3DPTEXTURECAPS_MIPVOLUMEMAP + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_MIPCUBEMAP + D3DPTEXTURECAPS_MIPCUBEMAP + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_CUBEMAP_POW2 + D3DPTEXTURECAPS_CUBEMAP_POW2 + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_VOLUMEMAP_POW2 + D3DPTEXTURECAPS_VOLUMEMAP_POW2 + + + + No documentation. + + + bb219845 + D3DPTEXTURECAPS_NOPROJECTEDBUMPENV + D3DPTEXTURECAPS_NOPROJECTEDBUMPENV + + + +

Driver texture coordinate capability flags.

+
+ + bb172621 + D3DTSS_TCI + D3DTSS_TCI +
+ + + No documentation. + + + bb172621 + D3DTSS_TCI_PASSTHRU + D3DTSS_TCI_PASSTHRU + + + + No documentation. + + + bb172621 + D3DTSS_TCI_CAMERASPACENORMAL + D3DTSS_TCI_CAMERASPACENORMAL + + + + No documentation. + + + bb172621 + D3DTSS_TCI_CAMERASPACEPOSITION + D3DTSS_TCI_CAMERASPACEPOSITION + + + + No documentation. + + + bb172621 + D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR + D3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR + + + + No documentation. + + + bb172621 + D3DTSS_TCI_SPHEREMAP + D3DTSS_TCI_SPHEREMAP + + + +

Defines texture filtering modes for a texture stage.

+
+ +

is used by along with to define texture filtering modes for a texture stage.

To check if a format supports texture filter types other than (which is always supported), call with .

Set a texture stage's magnification filter by calling with the value as the second parameter and one member of this enumeration as the third parameter.

Set a texture stage's minification filter by calling with the value as the second parameter and one member of this enumeration as the third parameter.

Set the texture filter to use between-mipmap levels by calling with the value as the second parameter and one member of this enumeration as the third parameter.

Not all valid filtering modes for a device will apply to volume maps. In general, and magnification filters will be supported for volume maps. If is set, then the mipmap filter and and minification filters will be supported for volume maps. The device may or may not support the mipmap filter for volume maps. Devices that support anisotropic filtering for 2D maps do not necessarily support anisotropic filtering for volume maps. However, applications that enable anisotropic filtering will receive the best available filtering (probably linear) if anisotropic filtering is not supported.

+
+ + bb172615 + D3DTEXTUREFILTERTYPE + D3DTEXTUREFILTERTYPE +
+ + +

When used with , disables mipmapping.

+
+ + bb172615 + D3DTEXF_NONE + D3DTEXF_NONE +
+ + +

When used with D3DSAMP_ MAGFILTER or , specifies that point filtering is to be used as the texture magnification or minification filter respectively. When used with , enables mipmapping and specifies that the rasterizer chooses the color from the texel of the nearest mip level.

+
+ + bb172615 + D3DTEXF_POINT + D3DTEXF_POINT +
+ + +

When used with D3DSAMP_ MAGFILTER or , specifies that linear filtering is to be used as the texture magnification or minification filter respectively. When used with , enables mipmapping and trilinear filtering; it specifies that the rasterizer interpolates between the two nearest mip levels.

+
+ + bb172615 + D3DTEXF_LINEAR + D3DTEXF_LINEAR +
+ + +

When used with D3DSAMP_ MAGFILTER or , specifies that anisotropic texture filtering used as a texture magnification or minification filter respectively. Compensates for distortion caused by the difference in angle between the texture polygon and the plane of the screen. Use with is undefined.

+
+ + bb172615 + D3DTEXF_ANISOTROPIC + D3DTEXF_ANISOTROPIC +
+ + +

A 4-sample tent filter used as a texture magnification or minification filter. Use with is undefined.

+
+ + bb172615 + D3DTEXF_PYRAMIDALQUAD + D3DTEXF_PYRAMIDALQUAD +
+ + +

A 4-sample Gaussian filter used as a texture magnification or minification filter. Use with is undefined.

+
+ + bb172615 + D3DTEXF_GAUSSIANQUAD + D3DTEXF_GAUSSIANQUAD +
+ + +

Convolution filter for monochrome textures. See .

Differences between Direct3D 9 and Direct3D 9Ex:

This flag is available in Direct3D 9Ex only.

?

Use with is undefined.

+
+ + bb172615 + D3DTEXF_CONVOLUTIONMONO + D3DTEXF_CONVOLUTIONMONO +
+ + +

Defines per-stage texture-blending operations.

+
+ +

The members of this type are used when setting color or alpha operations by using the or values with the method.

In the above formulas, SRGBA is the RGBA color produced by a texture operation, and Arg1, Arg2, and Arg3 represent the complete RGBA color of the texture arguments. Individual components of an argument are shown with subscripts. For example, the alpha component for argument 1 would be shown as Arg1A.

+
+ + bb172616 + D3DTEXTUREOP + D3DTEXTUREOP +
+ + +

Disables output from this texture stage and all stages with a higher index. To disable texture mapping, set this as the color operation for the first texture stage (stage 0). Alpha operations cannot be disabled when color operations are enabled. Setting the alpha operation to when color blending is enabled causes undefined behavior.

+
+ + bb172616 + D3DTOP_DISABLE + D3DTOP_DISABLE +
+ + +

Use this texture stage's first color or alpha argument, unmodified, as the output. This operation affects the color argument when used with the texture-stage state, and the alpha argument when used with .

+
+ + bb172616 + D3DTOP_SELECTARG1 + D3DTOP_SELECTARG1 +
+ + +

Use this texture stage's second color or alpha argument, unmodified, as the output. This operation affects the color argument when used with the texture stage state, and the alpha argument when used with .

+
+ + bb172616 + D3DTOP_SELECTARG2 + D3DTOP_SELECTARG2 +
+ + +

Multiply the components of the arguments.

+
+ + bb172616 + D3DTOP_MODULATE + D3DTOP_MODULATE +
+ + +

Multiply the components of the arguments, and shift the products to the left 1 bit (effectively multiplying them by 2) for brightening.

+
+ + bb172616 + D3DTOP_MODULATE2X + D3DTOP_MODULATE2X +
+ + +

Multiply the components of the arguments, and shift the products to the left 2 bits (effectively multiplying them by 4) for brightening.

+
+ + bb172616 + D3DTOP_MODULATE4X + D3DTOP_MODULATE4X +
+ + +

Add the components of the arguments.

+
+ + bb172616 + D3DTOP_ADD + D3DTOP_ADD +
+ + +

Add the components of the arguments with a - 0.5 bias, making the effective range of values from - 0.5 through 0.5.

+
+ + bb172616 + D3DTOP_ADDSIGNED + D3DTOP_ADDSIGNED +
+ + +

Add the components of the arguments with a - 0.5 bias, and shift the products to the left 1 bit.

+
+ + bb172616 + D3DTOP_ADDSIGNED2X + D3DTOP_ADDSIGNED2X +
+ + +

Subtract the components of the second argument from those of the first argument.

+
+ + bb172616 + D3DTOP_SUBTRACT + D3DTOP_SUBTRACT +
+ + +

Add the first and second arguments; then subtract their product from the sum.

+
+ + bb172616 + D3DTOP_ADDSMOOTH + D3DTOP_ADDSMOOTH +
+ + +

Linearly blend this texture stage, using the interpolated alpha from each vertex.

+
+ + bb172616 + D3DTOP_BLENDDIFFUSEALPHA + D3DTOP_BLENDDIFFUSEALPHA +
+ + +

Linearly blend this texture stage, using the alpha from this stage's texture.

+
+ + bb172616 + D3DTOP_BLENDTEXTUREALPHA + D3DTOP_BLENDTEXTUREALPHA +
+ + +

Linearly blend this texture stage, using a scalar alpha set with the render state.

+
+ + bb172616 + D3DTOP_BLENDFACTORALPHA + D3DTOP_BLENDFACTORALPHA +
+ + +

Linearly blend a texture stage that uses a premultiplied alpha.

+
+ + bb172616 + D3DTOP_BLENDTEXTUREALPHAPM + D3DTOP_BLENDTEXTUREALPHAPM +
+ + +

Linearly blend this texture stage, using the alpha taken from the previous texture stage.

+
+ + bb172616 + D3DTOP_BLENDCURRENTALPHA + D3DTOP_BLENDCURRENTALPHA +
+ + +

is set in stage n. The output of stage n is arg1. Additionally, if there is a texture in stage n + 1, any in stage n + 1 is premultiplied by texture in stage n + 1.

+
+ + bb172616 + D3DTOP_PREMODULATE + D3DTOP_PREMODULATE +
+ + +

Modulate the color of the second argument, using the alpha of the first argument; then add the result to argument one. This operation is supported only for color operations ().

+
+ + bb172616 + D3DTOP_MODULATEALPHA_ADDCOLOR + D3DTOP_MODULATEALPHA_ADDCOLOR +
+ + +

Modulate the arguments; then add the alpha of the first argument. This operation is supported only for color operations ().

+
+ + bb172616 + D3DTOP_MODULATECOLOR_ADDALPHA + D3DTOP_MODULATECOLOR_ADDALPHA +
+ + +

Similar to , but use the inverse of the alpha of the first argument. This operation is supported only for color operations ().

+
+ + bb172616 + D3DTOP_MODULATEINVALPHA_ADDCOLOR + D3DTOP_MODULATEINVALPHA_ADDCOLOR +
+ + +

Similar to , but use the inverse of the color of the first argument. This operation is supported only for color operations ().

+
+ + bb172616 + D3DTOP_MODULATEINVCOLOR_ADDALPHA + D3DTOP_MODULATEINVCOLOR_ADDALPHA +
+ + +

Perform per-pixel bump mapping, using the environment map in the next texture stage, without luminance. This operation is supported only for color operations ().

+
+ + bb172616 + D3DTOP_BUMPENVMAP + D3DTOP_BUMPENVMAP +
+ + +

Perform per-pixel bump mapping, using the environment map in the next texture stage, with luminance. This operation is supported only for color operations ().

+
+ + bb172616 + D3DTOP_BUMPENVMAPLUMINANCE + D3DTOP_BUMPENVMAPLUMINANCE +
+ + +

Modulate the components of each argument as signed components, add their products; then replicate the sum to all color channels, including alpha. This operation is supported for color and alpha operations.

In DirectX 6 and DirectX 7, multitexture operations the above inputs are all shifted down by half (y = x - 0.5) before use to simulate signed data, and the scalar result is automatically clamped to positive values and replicated to all three output channels. Also, note that as a color operation this does not updated the alpha it just updates the RGB components.

However, in DirectX 8.1 shaders you can specify that the output be routed to the .rgb or the .a components or both (the default). You can also specify a separate scalar operation on the alpha channel.

+
+ + bb172616 + D3DTOP_DOTPRODUCT3 + D3DTOP_DOTPRODUCT3 +
+ + +

Performs a multiply-accumulate operation. It takes the last two arguments, multiplies them together, and adds them to the remaining input/source argument, and places that into the result.

SRGBA = Arg1 + Arg2 * Arg3

+
+ + bb172616 + D3DTOP_MULTIPLYADD + D3DTOP_MULTIPLYADD +
+ + +

Linearly interpolates between the second and third source arguments by a proportion specified in the first source argument.

SRGBA = (Arg1) * Arg2 + (1- Arg1) * Arg3.

+
+ + bb172616 + D3DTOP_LERP + D3DTOP_LERP +
+ + +

Represents the capabilities of the hardware exposed through the Direct3D object.

+
+ +

The MaxTextureBlendStages and MaxSimultaneousTextures members might seem similar, but they contain different information. The MaxTextureBlendStages member contains the total number of texture-blending stages supported by the current device, and the MaxSimultaneousTextures member describes how many of those stages can have textures bound to them by using the SetTexture method.

When the driver fills this structure, it can set values for execute-buffer capabilities, even when the interface being used to retrieve the capabilities (such as ) does not support execute buffers.

In general, performance problems may occur if you use a texture and then modify it during a scene. Ensure that no texture used in the current BeginScene and EndScene block is evicted unless absolutely necessary. In the case of extremely high texture usage within a scene, the results are undefined. This occurs when you modify a texture that you have used in the scene and there is no spare texture memory available. For such systems, the contents of the z-buffer become invalid at EndScene. Applications should not call UpdateSurface to or from the back buffer on this type of hardware inside a BeginScene/EndScene pair. In addition, applications should not try to access the z-buffer if the capability flag is set. Finally, applications should not lock the back buffer or the z-buffer inside a BeginScene/EndScene pair.

The following flags concerning mipmapped textures are not supported in Direct3D 9.

  • D3DPTFILTERCAPS_LINEAR
  • D3DPTFILTERCAPS_LINEARMIPLINEAR
  • D3DPTFILTERCAPS_LINEARMIPNEAREST
  • D3DPTFILTERCAPS_MIPNEAREST
  • D3DPTFILTERCAPS_NEAREST
+
+ + bb172513 + D3DTEXOPCAPS + D3DTEXOPCAPS +
+ + +

Member of the enumerated type, which identifies what type of resources are used for processing vertices.

+
+ + bb172513 + D3DTEXOPCAPS_DISABLE + D3DTEXOPCAPS_DISABLE +
+ + +

Adapter on which this Direct3D device was created. This ordinal is valid only to pass to methods of the interface that created this Direct3D device. The interface can always be retrieved by calling GetDirect3D.

+
+ + bb172513 + D3DTEXOPCAPS_SELECTARG1 + D3DTEXOPCAPS_SELECTARG1 +
+ + +

The following driver-specific capability.

ValueMeaning

Display hardware is capable of returning the current scan line.

The display driver supports an overlay DDI that allows for verification of overlay capabilities. For more information about the overlay DDI, see Overlay DDI.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

?

+
+ + bb172513 + D3DTEXOPCAPS_SELECTARG2 + D3DTEXOPCAPS_SELECTARG2 +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DTEXOPCAPS_MODULATE + D3DTEXOPCAPS_MODULATE +
+ + +

Driver-specific capabilities identified in .

+
+ + bb172513 + D3DTEXOPCAPS_MODULATE2X + D3DTEXOPCAPS_MODULATE2X +
+ + +

Bit mask of values representing what presentation swap intervals are available.

ValueMeaning

The driver supports an immediate presentation swap interval.

The driver supports a presentation swap interval of every screen refresh.

The driver supports a presentation swap interval of every second screen refresh.

The driver supports a presentation swap interval of every third screen refresh.

The driver supports a presentation swap interval of every fourth screen refresh.

?

+
+ + bb172513 + D3DTEXOPCAPS_MODULATE4X + D3DTEXOPCAPS_MODULATE4X +
+ + +

Bit mask indicating what hardware support is available for cursors. Direct3D 9 does not define alpha-blending cursor capabilities.

ValueMeaning

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports at least a hardware color cursor in high-resolution modes (with scan lines greater than or equal to 400).

A full-color cursor is supported in hardware. Specifically, this flag indicates that the driver supports a hardware color cursor in both high-resolution and low-resolution modes (with scan lines less than 400).

?

+
+ + bb172513 + D3DTEXOPCAPS_ADD + D3DTEXOPCAPS_ADD +
+ + +

Flags identifying the capabilities of the device.

ValueMeaning

Device supports blits from system-memory textures to nonlocal video-memory textures.

Device can queue rendering commands after a page flip. Applications do not change their behavior if this flag is set; this capability means that the device is relatively fast.

Device can support at least a DirectX 5-compliant driver.

Device can support at least a DirectX 7-compliant driver.

Device exports an -aware hal.

Device can use execute buffers from system memory.

Device can use execute buffers from video memory.

Device has hardware acceleration for scene rasterization.

Device can support transformation and lighting in hardware.

Device supports N patches.

Device can support rasterization, transform, lighting, and shading in hardware.

Device supports quintic B?zier curves and B-splines.

Device supports rectangular and triangular patches.

When this device capability is set, the hardware architecture does not require caching of any information, and uncached patches (handle zero) will be drawn as efficiently as cached ones. Note that setting does not mean that a patch with handle zero can be drawn. A handle-zero patch can always be drawn whether this cap is set or not.

Device is texturing from separate memory pools.

Device can retrieve textures from non-local video memory.

Device can retrieve textures from system memory.

Device can retrieve textures from device memory.

Device can use buffers from system memory for transformed and lit vertices.

Device can use buffers from video memory for transformed and lit vertices.

?

+
+ + bb172513 + D3DTEXOPCAPS_ADDSIGNED + D3DTEXOPCAPS_ADDSIGNED +
+ + +

Miscellaneous driver primitive capabilities. See .

+
+ + bb172513 + D3DTEXOPCAPS_ADDSIGNED2X + D3DTEXOPCAPS_ADDSIGNED2X +
+ + +

Information on raster-drawing capabilities. This member can be one or more of the following flags.

ValueMeaning

Device supports anisotropic filtering.

Device iterates colors perspective correctly.

Device can dither to improve color resolution.

Device supports legacy depth bias. For true depth bias, see .

Device supports range-based fog. In range-based fog, the distance of an object from the viewer is used to compute fog effects, not the depth of the object (that is, the z-coordinate) in the scene.

Device calculates the fog value by referring to a lookup table containing fog values that are indexed to the depth of a given pixel.

Device calculates the fog value during the lighting operation and interpolates the fog value during rasterization.

Device supports level-of-detail bias adjustments. These bias adjustments enable an application to make a mipmap appear crisper or less sharp than it normally would. For more information about level-of-detail bias in mipmaps, see .

Device supports toggling multisampling on and off between and (using ).

Device supports scissor test. See Scissor Test (Direct3D 9).

Device performs true slope-scale based depth bias. This is in contrast to the legacy style depth bias.

Device supports depth buffering using w.

Device supports w-based fog. W-based fog is used when a perspective projection matrix is specified, but affine projections still use z-based fog. The system considers a projection matrix that contains a nonzero value in the [3][4] element to be a perspective projection matrix.

Device can perform hidden-surface removal (HSR) without requiring the application to sort polygons and without requiring the allocation of a depth-buffer. This leaves more video memory for textures. The method used to perform HSR is hardware-dependent and is transparent to the application.

Z-bufferless HSR is performed if no depth-buffer surface is associated with the rendering-target surface and the depth-buffer comparison test is enabled (that is, when the state value associated with the enumeration constant is set to TRUE).

Device supports z-based fog.

Device can perform z-test operations. This effectively renders a primitive and indicates whether any z pixels have been rendered.

?

+
+ + bb172513 + D3DTEXOPCAPS_SUBTRACT + D3DTEXOPCAPS_SUBTRACT +
+ + +

Z-buffer comparison capabilities. This member can be one or more of the following flags.

ValueMeaning

Always pass the z-test.

Pass the z-test if the new z equals the current z.

Pass the z-test if the new z is greater than the current z.

Pass the z-test if the new z is greater than or equal to the current z.

Pass the z-test if the new z is less than the current z.

Pass the z-test if the new z is less than or equal to the current z.

Always fail the z-test.

Pass the z-test if the new z does not equal the current z.

?

+
+ + bb172513 + D3DTEXOPCAPS_ADDSMOOTH + D3DTEXOPCAPS_ADDSMOOTH +
+ + +

Source-blending capabilities. This member can be one or more of the following flags. (The RGBA values of the source and destination are indicated by the subscripts s and d.)

ValueMeaning

The driver supports both and . See .

Source blend factor is (1 - As, 1 - As, 1 - As, 1 - As) and destination blend factor is (As, As, As, As); the destination blend selection is overridden.

The driver supports the blend mode. (This blend mode is obsolete. For more information, see .)

Blend factor is (Ad, Ad, Ad, Ad).

Blend factor is (Rd, Gd, Bd, Ad).

Blend factor is (1 - Ad, 1 - Ad, 1 - Ad, 1 - Ad).

Blend factor is (1 - Rd, 1 - Gd, 1 - Bd, 1 - Ad).

Blend factor is (1 - As, 1 - As, 1 - As, 1 - As).

Blend factor is (1 - Rs, 1 - Gs, 1 - Bs, 1 - As).

Blend factor is (1 - PSOutColor[1]r, 1 - PSOutColor[1]g, 1 - PSOutColor[1]b, not used)). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (1, 1, 1, 1).

Blend factor is (As, As, As, As).

Blend factor is (f, f, f, 1); f = min(As, 1 - Ad).

Blend factor is (Rs, Gs, Bs, As).

Blend factor is (PSOutColor[1]r, PSOutColor[1]g, PSOutColor[1]b, not used). See Render Target Blending.

Differences between Direct3D 9 and Direct3D 9Ex: This flag is available in Direct3D 9Ex only.

?

Blend factor is (0, 0, 0, 0).

?

+
+ + bb172513 + D3DTEXOPCAPS_BLENDDIFFUSEALPHA + D3DTEXOPCAPS_BLENDDIFFUSEALPHA +
+ + +

Destination-blending capabilities. This member can be the same capabilities that are defined for the SrcBlendCaps member.

+
+ + bb172513 + D3DTEXOPCAPS_BLENDTEXTUREALPHA + D3DTEXOPCAPS_BLENDTEXTUREALPHA +
+ + +

Alpha-test comparison capabilities. This member can include the same capability flags defined for the ZCmpCaps member. If this member contains only the capability or only the capability, the driver does not support alpha tests. Otherwise, the flags identify the individual comparisons that are supported for alpha testing.

+
+ + bb172513 + D3DTEXOPCAPS_BLENDFACTORALPHA + D3DTEXOPCAPS_BLENDFACTORALPHA +
+ + +

Shading operations capabilities. It is assumed, in general, that if a device supports a given command at all, it supports the mode (as specified in the enumerated type). This flag specifies whether the driver can also support Gouraud shading and whether alpha color components are supported. When alpha components are not supported, the alpha value of colors generated is implicitly 255. This is the maximum possible alpha (that is, the alpha component is at full intensity).

The color, specular highlights, fog, and alpha interpolants of a triangle each have capability flags that an application can use to find out how they are implemented by the device driver.

This member can be one or more of the following flags.

ValueMeaning

Device can support an alpha component for Gouraud-blended transparency (the state for the enumerated type). In this mode, the alpha color component of a primitive is provided at vertices and interpolated across a face along with the other color components.

Device can support colored Gouraud shading. In this mode, the per-vertex color components (red, green, and blue) are interpolated across a triangle face.

Device can support fog in the Gouraud shading mode.

Device supports Gouraud shading of specular highlights.

?

+
+ + bb172513 + D3DTEXOPCAPS_BLENDTEXTUREALPHAPM + D3DTEXOPCAPS_BLENDTEXTUREALPHAPM +
+ + +

Miscellaneous texture-mapping capabilities. This member can be one or more of the following flags.

ValueMeaning

Alpha in texture pixels is supported.

Device can draw alpha from texture palettes.

Supports cube textures.

Device requires that cube texture maps have dimensions specified as powers of two.

Device supports mipmapped cube textures.

Device supports mipmapped textures.

Device supports mipmapped volume textures.

is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. A device that exposes this capability can use such a texture if all of the following requirements are met.

  • The texture addressing mode for the texture stage is set to .
  • Texture wrapping for the texture stage is disabled (D3DRS_WRAP n set to 0).
  • Mipmapping is not in use (use magnification filter only).
  • Texture formats must not be through .

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

A texture that is not a power of two cannot be set at a stage that will be read based on a shader computation (such as the bem - ps and texm3x3 - ps instructions in pixel shaders versions 1_0 to 1_3). For example, these textures can be used to store bumps that will be fed into texture reads, but not the environment maps that are used in texbem - ps, texbeml - ps, and texm3x3spec - ps. This means that a texture with dimensions that are not powers of two cannot be addressed or sampled using texture coordinates computed within the shader. This type of operation is known as a dependent read and cannot be performed on these types of textures.

Device does not support a projected bump-environment loopkup operation in programmable and fixed function shaders.

Perspective correction texturing is supported.

If is not set, all textures must have widths and heights specified as powers of two. This requirement does not apply to either cube textures or volume textures.

If is also set, conditionally supports the use of 2D textures with dimensions that are not powers of two. See description.

If this flag is not set, and is also not set, then unconditional support is provided for 2D textures with dimensions that are not powers of two.

Supports the texture transformation flag. When applied, the device divides transformed texture coordinates by the last texture coordinate. If this capability is present, then the projective divide occurs per pixel. If this capability is not present, but the projective divide needs to occur anyway, then it is performed on a per-vertex basis by the Direct3D runtime.

All textures must be square.

Texture indices are not scaled by the texture size prior to interpolation.

Device supports volume textures.

Device requires that volume texture maps have dimensions specified as powers of two.

?

+
+ + bb172513 + D3DTEXOPCAPS_BLENDCURRENTALPHA + D3DTEXOPCAPS_BLENDCURRENTALPHA +
+ + +

Texture-filtering capabilities for a texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DTEXOPCAPS_PREMODULATE + D3DTEXOPCAPS_PREMODULATE +
+ + +

Texture-filtering capabilities for a cube texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR + D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR +
+ + +

Texture-filtering capabilities for a volume texture. Per-stage filtering capabilities reflect which filtering modes are supported for texture stages when performing multiple-texture blending. This member can be any combination of the per-stage texture-filtering flags defined in .

+
+ + bb172513 + D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA + D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA +
+ + +

Texture-addressing capabilities for texture objects. This member can be one or more of the following flags.

ValueMeaning

Device supports setting coordinates outside the range [0.0, 1.0] to the border color, as specified by the texture-stage state.

Device can clamp textures to addresses.

Device can separate the texture-addressing modes of the u and v coordinates of the texture. This ability corresponds to the and render-state values.

Device can mirror textures to addresses.

Device can take the absolute value of the texture coordinate (thus, mirroring around 0) and then clamp to the maximum value.

Device can wrap textures to addresses.

?

+
+ + bb172513 + D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR + D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR +
+ + +

Texture-addressing capabilities for a volume texture. This member can be one or more of the flags defined for the TextureAddressCaps member.

+
+ + bb172513 + D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA + D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA +
+ + +

Defines the capabilities for line-drawing primitives.

ValueMeaning

Supports alpha-test comparisons.

Antialiased lines are supported.

Supports source-blending.

Supports fog.

Supports texture-mapping.

Supports z-buffer comparisons.

?

+
+ + bb172513 + D3DTEXOPCAPS_BUMPENVMAP + D3DTEXOPCAPS_BUMPENVMAP +
+ + +

Maximum texture width for this device.

+
+ + bb172513 + D3DTEXOPCAPS_BUMPENVMAPLUMINANCE + D3DTEXOPCAPS_BUMPENVMAPLUMINANCE +
+ + +

Maximum texture height for this device.

+
+ + bb172513 + D3DTEXOPCAPS_DOTPRODUCT3 + D3DTEXOPCAPS_DOTPRODUCT3 +
+ + +

Maximum value for any of the three dimensions (width, height, and depth) of a volume texture.

+
+ + bb172513 + D3DTEXOPCAPS_MULTIPLYADD + D3DTEXOPCAPS_MULTIPLYADD +
+ + +

This number represents the maximum range of the integer bits of the post-normalized texture coordinates. A texture coordinate is stored as a 32-bit signed integer using 27 bits to store the integer part and 5 bits for the floating point fraction. The maximum integer index, 227, is used to determine the maximum texture coordinate, depending on how the hardware does texture-coordinate scaling.

Some hardware reports the cap . For this case, the device defers scaling texture coordinates by the texture size until after interpolation and application of the texture address mode, so the number of times a texture can be wrapped is given by the integer value in MaxTextureRepeat.

Less desirably, on some hardware is not set and the device scales the texture coordinates by the texture size (using the highest level of detail) prior to interpolation. This limits the number of times a texture can be wrapped to MaxTextureRepeat / texture size.

For example, assume that MaxTextureRepeat is equal to 32k and the size of the texture is 4k. If the hardware sets , then the number of times a texture can be wrapped is equal to MaxTextureRepeat, which is 32k in this example. Otherwise, the number of times a texture can be wrapped is equal to MaxTextureRepeat divided by texture size, which is 32k/4k in this example.

+
+ + bb172513 + D3DTEXOPCAPS_LERP + D3DTEXOPCAPS_LERP +
+ + +

Texture stage states define multi-blender texture operations. Some sampler states set up vertex processing, and some set up pixel processing. Texture stage states can be saved and restored using stateblocks (see State Blocks Save and Restore State (Direct3D 9)).

+
+ +

Members of this enumerated type are used with the and methods to retrieve and set texture state values.

The valid range of values for the , , , and bump-mapping matrix coefficients is greater than or equal to -8.0 and less than 8.0. This range, expressed in mathematical notation is (-8.0,8.0).

+
+ + bb172617 + D3DTEXTURESTAGESTATETYPE + D3DTEXTURESTAGESTATETYPE +
+ + + No documentation. + + + bb172617 + D3DTSS_COLOROP + D3DTSS_COLOROP + + + + No documentation. + + + bb172617 + D3DTSS_COLORARG1 + D3DTSS_COLORARG1 + + + + No documentation. + + + bb172617 + D3DTSS_COLORARG2 + D3DTSS_COLORARG2 + + + + No documentation. + + + bb172617 + D3DTSS_ALPHAOP + D3DTSS_ALPHAOP + + + + No documentation. + + + bb172617 + D3DTSS_ALPHAARG1 + D3DTSS_ALPHAARG1 + + + + No documentation. + + + bb172617 + D3DTSS_ALPHAARG2 + D3DTSS_ALPHAARG2 + + + + No documentation. + + + bb172617 + D3DTSS_BUMPENVMAT00 + D3DTSS_BUMPENVMAT00 + + + + No documentation. + + + bb172617 + D3DTSS_BUMPENVMAT01 + D3DTSS_BUMPENVMAT01 + + + + No documentation. + + + bb172617 + D3DTSS_BUMPENVMAT10 + D3DTSS_BUMPENVMAT10 + + + + No documentation. + + + bb172617 + D3DTSS_BUMPENVMAT11 + D3DTSS_BUMPENVMAT11 + + + + No documentation. + + + bb172617 + D3DTSS_TEXCOORDINDEX + D3DTSS_TEXCOORDINDEX + + + + No documentation. + + + bb172617 + D3DTSS_BUMPENVLSCALE + D3DTSS_BUMPENVLSCALE + + + + No documentation. + + + bb172617 + D3DTSS_BUMPENVLOFFSET + D3DTSS_BUMPENVLOFFSET + + + + No documentation. + + + bb172617 + D3DTSS_TEXTURETRANSFORMFLAGS + D3DTSS_TEXTURETRANSFORMFLAGS + + + + No documentation. + + + bb172617 + D3DTSS_COLORARG0 + D3DTSS_COLORARG0 + + + + No documentation. + + + bb172617 + D3DTSS_ALPHAARG0 + D3DTSS_ALPHAARG0 + + + + No documentation. + + + bb172617 + D3DTSS_RESULTARG + D3DTSS_RESULTARG + + + + No documentation. + + + bb172617 + D3DTSS_CONSTANT + D3DTSS_CONSTANT + + + +

Defines texture coordinate transformation values.

+
+ +

Texture coordinates can be transformed using a 4 x 4 matrix before the results are passed to the rasterizer. The texture coordinate transforms are set by calling , and by passing in the texture stage state and one of the values from . For more information about texture transforms, see Texture Coordinate Transformations (Direct3D 9).

+
+ + bb172618 + D3DTEXTURETRANSFORMFLAGS + D3DTEXTURETRANSFORMFLAGS +
+ + +

Texture coordinates are passed directly to the rasterizer.

+
+ + bb172618 + D3DTTFF_DISABLE + D3DTTFF_DISABLE +
+ + +

The rasterizer should expect 1D texture coordinates. This value is used by fixed function vertex processing; it should be set to 0 when using a programmable vertex shader.

+
+ + bb172618 + D3DTTFF_COUNT1 + D3DTTFF_COUNT1 +
+ + +

The rasterizer should expect 2D texture coordinates. This value is used by fixed function vertex processing; it should be set to 0 when using a programmable vertex shader.

+
+ + bb172618 + D3DTTFF_COUNT2 + D3DTTFF_COUNT2 +
+ + +

The rasterizer should expect 3D texture coordinates. This value is used by fixed function vertex processing; it should be set to 0 when using a programmable vertex shader.

+
+ + bb172618 + D3DTTFF_COUNT3 + D3DTTFF_COUNT3 +
+ + +

The rasterizer should expect 4D texture coordinates. This value is used by fixed function vertex processing; it should be set to 0 when using a programmable vertex shader.

+
+ + bb172618 + D3DTTFF_COUNT4 + D3DTTFF_COUNT4 +
+ + +

This flag is honored by the fixed function pixel pipeline, as well as the programmable pixel pipeline in versions ps_1_1 to ps_1_3. When texture projection is enabled for a texture stage, all four floating point values must be written to the corresponding texture register. Each texture coordinate is divided by the last element before being passed to the rasterizer. For example, if this flag is specified with the flag, the first and second texture coordinates are divided by the third coordinate before being passed to the rasterizer.

+
+ + bb172618 + D3DTTFF_PROJECTED + D3DTTFF_PROJECTED +
+ + +

In short, texture wrapping changes the basic way that Direct3D rasterizes textured polygons using the texture coordinates specified for each vertex. While rasterizing a polygon, the system interpolates between the texture coordinates at each of the polygon's vertices to determine the texels that should be used for every pixel of the polygon. Normally, the system treats the texture as a 2D plane, interpolating new texels by taking the shortest route from point A within a texture to point B. If point A represents the u, v position (0.8, 0.1), and point B is at (0.1,0.1), the line of interpolation looks like the following diagram.

Note that the shortest distance between A and B in this illustration runs roughly through the middle of the texture. Enabling u-texture or v-texture coordinate wrapping changes how Direct3D perceives the shortest route between texture coordinates in the u-direction and v-direction. By definition, texture wrapping causes the rasterizer to take the shortest route between texture coordinate sets, assuming that 0.0 and 1.0 are coincident. The last bit is the tricky part: You can imagine that enabling texture wrapping in one direction causes the system to treat a texture as though it were wrapped around a cylinder. For example, consider the following diagram.

The preceding illustration shows how wrapping in the u - direction affects how the system interpolates texture coordinates. Using the same points as in the example for normal, or nonwrapped, textures, you can see that the shortest route between points A and B is no longer across the middle of the texture; it's now across the border where 0.0 and 1.0 exist together. Wrapping in the v-direction is similar, except that it wraps the texture around a cylinder that is lying on its side. Wrapping in both the u-direction and v-direction is more complex. In this situation, you can envision the texture as a torus, or doughnut.

The most common practical application for texture wrapping is to perform environment mapping. Usually, an object textured with an environment map appears very reflective, showing a mirrored image of the object's surroundings in the scene. For the sake of this discussion, picture a room with four walls, each one painted with a letter R, G, B, Y and the corresponding colors: red, green, blue, and yellow. The environment map for such a simple room might look like the following illustration.

Imagine that the room's ceiling is held up by a perfectly reflective, four-sided, pillar. Mapping the environment map texture to the pillar is simple; making the pillar look as though it is reflecting the letters and colors is not as easy. The following diagram shows a wire frame of the pillar with the applicable texture coordinates listed near the top vertices. The seam where wrapping will cross the edges of the texture is shown with a dotted line.

With wrapping enabled in the u-direction, the textured pillar shows the colors and symbols from the environment map appropriately and, at the seam in the front of the texture, the rasterizer properly chooses the shortest route between the texture coordinates, assuming that u-coordinates 0.0 and 1.0 share the same location. The textured pillar looks like the following illustration.

If texture wrapping isn't enabled, the rasterizer does not interpolate in the direction needed to generate a believable, reflected image. Rather, the area at the front of the pillar contains a horizontally compressed version of the texels between u-coordinates 0.175 and 0.875, as they pass through the center of the texture. The wrap effect is ruined.

+
+ + bb206256 + D3DWRAPCOORD + D3DWRAPCOORD +
+ + + No documentation. + + + bb206256 + D3DWRAPCOORD_0 + D3DWRAPCOORD_0 + + + + No documentation. + + + bb206256 + D3DWRAPCOORD_1 + D3DWRAPCOORD_1 + + + + No documentation. + + + bb206256 + D3DWRAPCOORD_2 + D3DWRAPCOORD_2 + + + + No documentation. + + + bb206256 + D3DWRAPCOORD_3 + D3DWRAPCOORD_3 + + + + None. + + + None + None + + + +

Defines the priority type to which an animation track is assigned.

+
+ +

Tracks with the same priority are blended together, and the two resulting values are then blended using the priority blend factor.

+
+ + bb205401 + D3DXPRIORITY_TYPE + D3DXPRIORITY_TYPE +
+ + +

Track should be blended with all the low-priority tracks before the low-priority blend is mixed with the high-priority blend.

+
+ + bb205401 + D3DXPRIORITY_LOW + D3DXPRIORITY_LOW +
+ + +

Track should be blended with all the high-priority tracks before the high-priority blend is mixed with the low-priority blend.

+
+ + bb205401 + D3DXPRIORITY_HIGH + D3DXPRIORITY_HIGH +
+ + + No documentation. + + + D3DTRANSFORMSTATETYPE2 + D3DTRANSFORMSTATETYPE2 + + + + No documentation. + + + D3DTS2_VIEW + D3DTS2_VIEW + + + + No documentation. + + + D3DTS2_PROJECTION + D3DTS2_PROJECTION + + + + No documentation. + + + D3DTS2_WORLD + D3DTS2_WORLD + + + + No documentation. + + + D3DTS2_WORLD1 + D3DTS2_WORLD1 + + + + No documentation. + + + D3DTS2_WORLD2 + D3DTS2_WORLD2 + + + + No documentation. + + + D3DTS2_WORLD3 + D3DTS2_WORLD3 + + + + No documentation. + + + D3DTS2_TEXTURE0 + D3DTS2_TEXTURE0 + + + + No documentation. + + + D3DTS2_TEXTURE1 + D3DTS2_TEXTURE1 + + + + No documentation. + + + D3DTS2_TEXTURE2 + D3DTS2_TEXTURE2 + + + + No documentation. + + + D3DTS2_TEXTURE3 + D3DTS2_TEXTURE3 + + + + No documentation. + + + D3DTS2_TEXTURE4 + D3DTS2_TEXTURE4 + + + + No documentation. + + + D3DTS2_TEXTURE5 + D3DTS2_TEXTURE5 + + + + No documentation. + + + D3DTS2_TEXTURE6 + D3DTS2_TEXTURE6 + + + + No documentation. + + + D3DTS2_TEXTURE7 + D3DTS2_TEXTURE7 + + + +

Defines the transition style between values of a mesh animation.

+
+ +

The calculation for the ramp from ease in to ease out is calculated as follows:

Q(t) = 2(x - y)t3 + 3(y - x)t2 + x

where the ramp is a function Q(t) with the following properties:

  • Q(t) is a cubic spline.
  • Q(t) interpolates between x and y as t ranges from 0 to 1.
  • Q(t) is horizontal when t = 0 and t = 1.

Mathematically, this translates into:

Q(t) = At3 + Bt2 + Ct + D (and therefore, Q'(t) = 3At2 + 2Bt + C)
2a) Q(0) = x
2b) Q(1) = y
3a) Q'(0) = 0
3b) Q'(1) = 0

Solving for A, B, C, D:

D = x (from 2a)
C = 0 (from 3a)
3A + 2B = 0 (from 3b)
A + B = y - x (from 2b and D = x)

Therefore:

A = 2(x - y), B = 3(y - x), C = 0, D = x
+
+ + bb205475 + D3DXTRANSITION_TYPE + D3DXTRANSITION_TYPE +
+ + +

Linear transition between values.

+
+ + bb205475 + D3DXTRANSITION_LINEAR + D3DXTRANSITION_LINEAR +
+ + +

Ease-in, ease-out spline transition between values.

+
+ + bb205475 + D3DXTRANSITION_EASEINEASEOUT + D3DXTRANSITION_EASEINEASEOUT +
+ + +

Usage options that identify how resources are to be used.

The following table summarizes the available usage options.

+
+ + bb172625 + D3DUSAGE + D3DUSAGE +
+ + + No documentation. + + + bb172625 + D3DUSAGE_RENDERTARGET + D3DUSAGE_RENDERTARGET + + + + No documentation. + + + bb172625 + D3DUSAGE_DEPTHSTENCIL + D3DUSAGE_DEPTHSTENCIL + + + + No documentation. + + + bb172625 + D3DUSAGE_DYNAMIC + D3DUSAGE_DYNAMIC + + + + No documentation. + + + bb172625 + D3DUSAGE_NONSECURE + D3DUSAGE_NONSECURE + + + + No documentation. + + + bb172625 + D3DUSAGE_AUTOGENMIPMAP + D3DUSAGE_AUTOGENMIPMAP + + + + No documentation. + + + bb172625 + D3DUSAGE_DMAP + D3DUSAGE_DMAP + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_LEGACYBUMPMAP + D3DUSAGE_QUERY_LEGACYBUMPMAP + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_SRGBREAD + D3DUSAGE_QUERY_SRGBREAD + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_FILTER + D3DUSAGE_QUERY_FILTER + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_SRGBWRITE + D3DUSAGE_QUERY_SRGBWRITE + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING + D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_VERTEXTEXTURE + D3DUSAGE_QUERY_VERTEXTEXTURE + + + + No documentation. + + + bb172625 + D3DUSAGE_QUERY_WRAPANDMIP + D3DUSAGE_QUERY_WRAPANDMIP + + + + No documentation. + + + bb172625 + D3DUSAGE_WRITEONLY + D3DUSAGE_WRITEONLY + + + + No documentation. + + + bb172625 + D3DUSAGE_SOFTWAREPROCESSING + D3DUSAGE_SOFTWAREPROCESSING + + + + No documentation. + + + bb172625 + D3DUSAGE_DONOTCLIP + D3DUSAGE_DONOTCLIP + + + + No documentation. + + + bb172625 + D3DUSAGE_POINTS + D3DUSAGE_POINTS + + + + No documentation. + + + bb172625 + D3DUSAGE_RTPATCHES + D3DUSAGE_RTPATCHES + + + + No documentation. + + + bb172625 + D3DUSAGE_NPATCHES + D3DUSAGE_NPATCHES + + + + No documentation. + + + bb172625 + D3DUSAGE_TEXTAPI + D3DUSAGE_TEXTAPI + + + + No documentation. + + + bb172625 + D3DUSAGE_RESTRICTED_CONTENT + D3DUSAGE_RESTRICTED_CONTENT + + + + No documentation. + + + bb172625 + D3DUSAGE_RESTRICT_SHARED_RESOURCE + D3DUSAGE_RESTRICT_SHARED_RESOURCE + + + + No documentation. + + + bb172625 + D3DUSAGE_RESTRICT_SHARED_RESOURCE_DRIVER + D3DUSAGE_RESTRICT_SHARED_RESOURCE_DRIVER + + + + None. + + + None + None + + + +

Texture wrapping options for IMT computation APIs.

+
+ + bb172880 + D3DXIMT + D3DXIMT +
+ + +

The texture wraps in the U direction.

+
+ + bb172880 + D3DXIMT_WRAP_U + D3DXIMT_WRAP_U +
+ + +

The texture wraps in the V direction.

+
+ + bb172880 + D3DXIMT_WRAP_V + D3DXIMT_WRAP_V +
+ + +

The texture wraps in both the U and V direction.

+
+ + bb172880 + D3DXIMT_WRAP_UV + D3DXIMT_WRAP_UV +
+ + +

Defines flags used to control the number or matrices that the system applies when performing multimatrix vertex blending.

+
+ +

Members of this type are used with the render state.

Geometry blending (multimatrix vertex blending) requires that your application use a vertex format that has blending (beta) weights for each vertex.

+
+ + bb172628 + D3DVERTEXBLENDFLAGS + D3DVERTEXBLENDFLAGS +
+ + +

Disable vertex blending; apply only the world matrix set by the D3DTS_WORLDMATRIX macro, where the index value for the transformation state is 0.

+
+ + bb172628 + D3DVBF_DISABLE + D3DVBF_DISABLE +
+ + +

Enable vertex blending between the two matrices set by the D3DTS_WORLDMATRIX macro, where the index value for the transformation states are 0 and 1.

+
+ + bb172628 + D3DVBF_1WEIGHTS + D3DVBF_1WEIGHTS +
+ + +

Enable vertex blending between the three matrices set by the D3DTS_WORLDMATRIX macro, where the index value for the transformation states are 0, 1, and 2.

+
+ + bb172628 + D3DVBF_2WEIGHTS + D3DVBF_2WEIGHTS +
+ + +

Enable vertex blending between the four matrices set by the D3DTS_WORLDMATRIX macro, where the index value for the transformation states are 0, 1, 2, and 3.

+
+ + bb172628 + D3DVBF_3WEIGHTS + D3DVBF_3WEIGHTS +
+ + +

Vertex blending is done by using the value assigned to .

+
+ + bb172628 + D3DVBF_TWEENING + D3DVBF_TWEENING +
+ + +

Use a single matrix with a weight of 1.0.

+
+ + bb172628 + D3DVBF_0WEIGHTS + D3DVBF_0WEIGHTS +
+ + +

Flexible Vertex Format Constants, or FVF codes, are used to describe the contents of vertices interleaved in a single data stream that will be processed by the fixed-function pipeline.

+
+ + bb172559 + D3DFVF + D3DFVF +
+ + + No documentation. + + + bb172559 + D3DFVF_RESERVED0 + D3DFVF_RESERVED0 + + + + No documentation. + + + bb172559 + D3DFVF_POSITION_MASK + D3DFVF_POSITION_MASK + + + + No documentation. + + + bb172559 + D3DFVF_XYZ + D3DFVF_XYZ + + + + No documentation. + + + bb172559 + D3DFVF_XYZRHW + D3DFVF_XYZRHW + + + + No documentation. + + + bb172559 + D3DFVF_XYZB1 + D3DFVF_XYZB1 + + + + No documentation. + + + bb172559 + D3DFVF_XYZB2 + D3DFVF_XYZB2 + + + + No documentation. + + + bb172559 + D3DFVF_XYZB3 + D3DFVF_XYZB3 + + + + No documentation. + + + bb172559 + D3DFVF_XYZB4 + D3DFVF_XYZB4 + + + + No documentation. + + + bb172559 + D3DFVF_XYZB5 + D3DFVF_XYZB5 + + + + No documentation. + + + bb172559 + D3DFVF_XYZW + D3DFVF_XYZW + + + + No documentation. + + + bb172559 + D3DFVF_NORMAL + D3DFVF_NORMAL + + + + No documentation. + + + bb172559 + D3DFVF_PSIZE + D3DFVF_PSIZE + + + + No documentation. + + + bb172559 + D3DFVF_DIFFUSE + D3DFVF_DIFFUSE + + + + No documentation. + + + bb172559 + D3DFVF_SPECULAR + D3DFVF_SPECULAR + + + + No documentation. + + + bb172559 + D3DFVF_TEXCOUNT_MASK + D3DFVF_TEXCOUNT_MASK + + + + No documentation. + + + bb172559 + D3DFVF_TEXCOUNT_SHIFT + D3DFVF_TEXCOUNT_SHIFT + + + + No documentation. + + + bb172559 + D3DFVF_TEX0 + D3DFVF_TEX0 + + + + No documentation. + + + bb172559 + D3DFVF_TEX1 + D3DFVF_TEX1 + + + + No documentation. + + + bb172559 + D3DFVF_TEX2 + D3DFVF_TEX2 + + + + No documentation. + + + bb172559 + D3DFVF_TEX3 + D3DFVF_TEX3 + + + + No documentation. + + + bb172559 + D3DFVF_TEX4 + D3DFVF_TEX4 + + + + No documentation. + + + bb172559 + D3DFVF_TEX5 + D3DFVF_TEX5 + + + + No documentation. + + + bb172559 + D3DFVF_TEX6 + D3DFVF_TEX6 + + + + No documentation. + + + bb172559 + D3DFVF_TEX7 + D3DFVF_TEX7 + + + + No documentation. + + + bb172559 + D3DFVF_TEX8 + D3DFVF_TEX8 + + + + No documentation. + + + bb172559 + D3DFVF_LASTBETA_UBYTE4 + D3DFVF_LASTBETA_UBYTE4 + + + + No documentation. + + + bb172559 + D3DFVF_LASTBETA_D3DCOLOR + D3DFVF_LASTBETA_D3DCOLOR + + + + None. + + + None + None + + + + No documentation. + + + ff569467 + D3DFVFCAPS + D3DFVFCAPS + + + + No documentation. + + + ff569467 + D3DFVFCAPS_TEXCOORDCOUNTMASK + D3DFVFCAPS_TEXCOORDCOUNTMASK + + + + No documentation. + + + ff569467 + D3DFVFCAPS_DONOTSTRIPELEMENTS + D3DFVFCAPS_DONOTSTRIPELEMENTS + + + + No documentation. + + + ff569467 + D3DFVFCAPS_PSIZE + D3DFVFCAPS_PSIZE + + + +

This constant is the maximum number of vertex declarators for a mesh.

+
+ +

MAXD3DDECLLENGTH is defined as a maximum of 64 (see d3d9types.h). This does not include the "end" marker vertex element.

+
+ + bb147183 + _MAX_FVF_DECL_SIZE + _MAX_FVF_DECL_SIZE +
+ + +

The maximum number of elements in the vertex declaration. The additional (+1) is for D3DDECL_END.

+
+ + bb147183 + MAX_FVF_DECL_SIZE + MAX_FVF_DECL_SIZE +
+ + +

A combination of one or more flags that control the device create behavior.

+
+ + bb172637 + D3DVTXPCAPS + D3DVTXPCAPS +
+ + + No documentation. + + + bb172637 + D3DVTXPCAPS_TEXGEN + D3DVTXPCAPS_TEXGEN + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_MATERIALSOURCE7 + D3DVTXPCAPS_MATERIALSOURCE7 + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_DIRECTIONALLIGHTS + D3DVTXPCAPS_DIRECTIONALLIGHTS + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_POSITIONALLIGHTS + D3DVTXPCAPS_POSITIONALLIGHTS + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_LOCALVIEWER + D3DVTXPCAPS_LOCALVIEWER + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_TWEENING + D3DVTXPCAPS_TWEENING + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_TEXGEN_SPHEREMAP + D3DVTXPCAPS_TEXGEN_SPHEREMAP + + + + No documentation. + + + bb172637 + D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER + D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER + + + +

Vertex shader caps constants. These constants are used by the VS20Caps member of .

+
+ + bb172634 + D3DVS20CAPS + D3DVS20CAPS +
+ + + No documentation. + + + bb172634 + D3DVS20CAPS_PREDICATION + D3DVS20CAPS_PREDICATION + + + + None. + + + None + None + + + +

Vertex texture sampler constants.

These constants identify the texture samplers used by vertex shaders.

+
+ + bb172631 + D3DVERTEXTEXTURESAMPLER + D3DVERTEXTEXTURESAMPLER +
+ + + No documentation. + + + bb172631 + D3DVERTEXTEXTURESAMPLER0 + D3DVERTEXTEXTURESAMPLER0 + + + + No documentation. + + + bb172631 + D3DVERTEXTEXTURESAMPLER1 + D3DVERTEXTEXTURESAMPLER1 + + + + No documentation. + + + bb172631 + D3DVERTEXTEXTURESAMPLER2 + D3DVERTEXTEXTURESAMPLER2 + + + + No documentation. + + + bb172631 + D3DVERTEXTEXTURESAMPLER3 + D3DVERTEXTEXTURESAMPLER3 + + + + No documentation. + + + bb172631 + D3DVERTEXTEXTURESAMPLERMAPSAMPLER + D3DVERTEXTEXTURESAMPLERMAPSAMPLER + + + +

Specifies the type of I/O bus used by the graphics adapter.

+
+ +

As many as three flags can be set. Flags in the range 0x00 through 0x04 (D3DBUSTYPE_Xxx) provide the basic bus type. Flags in the range 0x10000 through 0x50000 (D3DBUSIMPL_MODIFIER_Xxx) modify the basic description. The driver sets one bus-type flag, and can set zero or one modifier flag. If the driver sets a modifier flag, it also sets the flag. Flags are combined with a bitwise OR.

+
+ + dd318379 + D3DBUSTYPE + D3DBUSTYPE +
+ + +

Indicates a type of bus other than the types listed here. +

+
+ + dd318379 + D3DBUSTYPE_OTHER + D3DBUSTYPE_OTHER +
+ + +

PCI bus. +

+
+ + dd318379 + D3DBUSTYPE_PCI + D3DBUSTYPE_PCI +
+ + +

PCI-X bus. +

+
+ + dd318379 + D3DBUSTYPE_PCIX + D3DBUSTYPE_PCIX +
+ + +

PCI Express bus. +

+
+ + dd318379 + D3DBUSTYPE_PCIEXPRESS + D3DBUSTYPE_PCIEXPRESS +
+ + +

Accelerated Graphics Port (AGP) bus. +

+
+ + dd318379 + D3DBUSTYPE_AGP + D3DBUSTYPE_AGP +
+ + +

The implementation for the graphics adapter is in a motherboard chipset's north bridge. This flag implies that data never goes over an expansion bus (such as PCI or AGP) when it is transferred from main memory to the graphics adapter.

+
+ + dd318379 + D3DBUSIMPL_MODIFIER_INSIDE_OF_CHIPSET + D3DBUSIMPL_MODIFIER_INSIDE_OF_CHIPSET +
+ + +

Indicates that the graphics adapter is connected to a motherboard chipset's north bridge by tracks on the motherboard and all of the graphics adapter's chips are soldered to the motherboard. This flag implies that data never goes over an expansion bus (such as PCI or AGP) when it is transferred from main memory to the graphics adapter.

+
+ + dd318379 + D3DBUSIMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP + D3DBUSIMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP +
+ + +

The graphics adapter is connected to a motherboard chipset's north bridge by tracks on the motherboard, and all of the graphics adapter's chips are connected through sockets to the motherboard. +

+
+ + dd318379 + D3DBUSIMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET + D3DBUSIMPL_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET +
+ + +

The graphics adapter is connected to the motherboard through a daughterboard connector. +

+
+ + dd318379 + D3DBUSIMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR + D3DBUSIMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR +
+ + +

The graphics adapter is connected to the motherboard through a daughterboard connector, and the graphics adapter is inside an enclosure that is not user accessible. +

+
+ + dd318379 + D3DBUSIMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE + D3DBUSIMPL_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE +
+ + +

One of the D3DBUSIMPL_MODIFIER_MODIFIER_Xxx flags is set. +

+
+ + dd318379 + D3DBUSIMPL_MODIFIER_NON_STANDARD + D3DBUSIMPL_MODIFIER_NON_STANDARD +
+ + +

Options for welding together vertices.

+
+ + bb205561 + _D3DXWELDEPSILONSFLAGS + _D3DXWELDEPSILONSFLAGS +
+ + +

Weld together all vertices that are at the same location. Using this flag avoids an epsilon comparison between vertex components.

+
+ + bb205561 + D3DXWELDEPSILONS_WELDALL + D3DXWELDEPSILONS_WELDALL +
+ + +

If a given vertex component is within epsilon, modify partially matched vertices so that both components are identical. If all components are equal, remove one of the vertices.

+
+ + bb205561 + D3DXWELDEPSILONS_WELDPARTIALMATCHES + D3DXWELDEPSILONS_WELDPARTIALMATCHES +
+ + +

Instructs the weld to allow only modifications to vertices and not removal. This flag is valid only if is set. It is useful to modify vertices to be equal, but not to allow vertices to be removed.

+
+ + bb205561 + D3DXWELDEPSILONS_DONOTREMOVEVERTICES + D3DXWELDEPSILONS_DONOTREMOVEVERTICES +
+ + +

Instructs the weld not to split vertices that are in separate attribute groups. When the method is called with the flag, then the flag will also be set. Setting this flag can slow down software vertex processing.

+
+ + bb205561 + D3DXWELDEPSILONS_DONOTSPLIT + D3DXWELDEPSILONS_DONOTSPLIT +
+ + + No documentation. + + + D3DXF_FILEFORMAT2 + D3DXF_FILEFORMAT2 + + + + No documentation. + + + D3DXF_FILEFORMAT_BINARY + D3DXF_FILEFORMAT_BINARY + + + + No documentation. + + + D3DXF_FILEFORMAT_TEXT + D3DXF_FILEFORMAT_TEXT + + + + No documentation. + + + D3DXF_FILEFORMAT_COMPRESSED + D3DXF_FILEFORMAT_COMPRESSED + + + + No documentation. + + + D3DZBUFFERTYPE + D3DZBUFFERTYPE + + + + No documentation. + + + D3DZB_FALSE + D3DZB_FALSE + + + + No documentation. + + + D3DZB_TRUE + D3DZB_TRUE + + + + No documentation. + + + D3DZB_USEW + D3DZB_USEW + + + + Functions + + + + + Constant SdkVersion. + D3D_SDK_VERSION + + + +

Creates an object and returns an interface to it.

+
+ No documentation. + No documentation. +
  • if Direct3DEx features are not supported (no WDDM driver is installed) or if the SDKVersion does not match the version of the DLL.
  • D3DERR_OUTOFMEMORY if out-of-memory conditions are detected when creating the enumerator object.
  • if the creation of the enumerator object is successful.
+ +

The object is the first object that the application creates and the last object thta the application releases. Functions for enumerating and retrieving capabilities of a device are accessible through the object. This enables applications to select devices without creating them.

The interface supports enumeration of active display adapters and allows the creation of objects. If the user dynamically adds adapters (either by adding devices to the desktop, or by hot-docking a laptop), these devices are not included in the enumeration. Creating a new interface will expose the new devices.

Pass the flag to this function to ensure that header files used in the compiled application match the version of the installed runtime DLLs. is changed in the runtime only when a header or another code change would require rebuilding the application. If this function fails, it indicates that the versions of the header file and the runtime DLL do not match.

Note??Direct3DCreate9Ex is supported only in Windows Vista, Windows Server 2008, and Windows 7. Earlier versions of the D3D9.dll library do not include Direct3D9Ex and Direct3DCreate9Ex.

+
+ + bb219676 + HRESULT Direct3DCreate9Ex([In] unsigned int SDKVersion,[Out, Fast] IDirect3D9Ex** arg1) + Direct3DCreate9Ex +
+ + +

Create an object and return an interface to it.

+
+

The value of this parameter should be . See Remarks.

+

If successful, this function returns a reference to an interface; otherwise, a null reference is returned.

+ +

The Direct3D object is the first Direct3D COM object that your graphical application needs to create and the last object that your application needs to release. Functions for enumerating and retrieving capabilities of a device are accessible through the Direct3D object. This enables applications to select devices without creating them.

Create an object as shown here:

 LPDIRECT3D9 g_pD3D = null; if( null == (g_pD3D = Direct3DCreate9())) return E_FAIL;	
+            

The interface supports enumeration of active display adapters and allows the creation of objects. If the user dynamically adds adapters (either by adding devices to the desktop, or by hot-docking a laptop), those devices will not be included in the enumeration. Creating a new interface will expose the new devices.

is passed to this function to ensure that the header files against which an application is compiled match the version of the runtime DLL's that are installed on the machine. is only changed in the runtime when a header change (or other code change) would require an application to be rebuilt. If this function fails, it indicates that the header file version does not match the runtime DLL version.

For an example, see Creating a Device (Direct3D 9).

+
+ + bb219685 + IDirect3D9* Direct3DCreate9([In] unsigned int SDKVersion) + Direct3DCreate9 +
+ + + Functions + + + + + Constant Version. + D3DX_VERSION + + + Constant SdkVersion. + D3DX_SDK_VERSION + + + + No documentation. + + No documentation. + No documentation. + + void D3DPERF_SetMarker([In] D3DCOLOR col,[In] const wchar_t* wszName) + D3DPERF_SetMarker + + + + No documentation. + + No documentation. + + void D3DPERF_SetOptions([In] unsigned int dwOptions) + D3DPERF_SetOptions + + + + No documentation. + + No documentation. + + unsigned int D3DPERF_GetStatus() + D3DPERF_GetStatus + + + + No documentation. + + No documentation. + No documentation. + + void D3DPERF_SetRegion([In] D3DCOLOR col,[In] const wchar_t* wszName) + D3DPERF_SetRegion + + + + No documentation. + + No documentation. + + int D3DPERF_EndEvent() + D3DPERF_EndEvent + + + +

Marks the beginning of a section of event code.

+
+

A null-terminated UNICODE string that contains the name of the event. The name is not relevant to the operating system. You can choose a name that is meaningful when the calling application is running under the Direct3D profiling tool.A null reference produces undefined results.

+ No documentation. +

Returns the number of previous calls to BeginEvent that have not yet been finalized by calls to the ID3DUserDefinedAnnotation::EndEvent method.

The return value is ?1 if the calling application is not running under a Direct3D profiling tool.

+ +

You call the EndEvent method to mark the end of the section of event code.

A user can visualize the event when the calling application is running under an enabled Direct3D profiling tool such as Microsoft Visual Studio Ultimate?2012.

BeginEvent has no effect if the calling application is not running under an enabled Direct3D profiling tool.

+
+ + hh446884 + int D3DPERF_BeginEvent([In] D3DCOLOR col,[In] const wchar_t* wszName) + D3DPERF_BeginEvent +
+ + + No documentation. + + No documentation. + + BOOL D3DPERF_QueryRepeatFrame() + D3DPERF_QueryRepeatFrame + + + +

Adds a child frame to a frame.

+
+

Pointer to the parent node.

+

Pointer to the child node.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb172846 + HRESULT D3DXFrameAppendChild([In] D3DXFRAME* pFrameParent,[In] const D3DXFRAME* pFrameChild) + D3DXFrameAppendChild +
+ + +

Loads the first frame hierarchy from a .x file.

+
+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Combination of one or more flags from the D3DXMESH enumeration that specify creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Pointer to an interface.

+

Application provided interface that allows loading of user data. See .

+

Returns a reference to the loaded frame hierarchy. See .

+

Returns a reference to the animation controller corresponding to animation in the .x file. This is created with default tracks and events. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXLoadMeshHierarchyFromXA.

All the meshes in the file will be collapsed into one output mesh. If the file contains a frame hierarchy, all the transformations will be applied to the mesh.

loads the animation data and frame hierarchy from a .x file. It scans the .x file and builds a frame hierarchy and animation controller according to the -derived object passed to it through pAlloc. Loading the data requires several steps as follows:

  1. Derive , implementing each method. This controls how frames and meshes are allocated and freed.
  2. Derive , implementing each method. If your .x file has no embedded user-defined data, or if you do not need it, you can skip this part.
  3. Create an object of your class, and optionally of your LoadUserData class. You do not need to call any methods of these objects yourself.
  4. Call , passing in your object and your object (or null) to create the frame hierarchy and animation controller. All the animation sets and frames are automatically registered to the animation controller.

During the load, CreateFrame and LoadFrameChildData are called back on each frame to control loading and allocation of the frame. The application defines these methods to control how frames are stored. CreateMeshContainer and LoadMeshChildData are called back on each mesh object to control loading and allocation of mesh objects. LoadTopLevelData is called back for each top level object that doesn't get loaded by the other methods.

To free this data, call ID3DXAnimationController::Release to free the animation sets, and D3DXFRAMEDestroy, passing in the root node of the frame hierarchy and an object of your derived class. DestroyFrame and DestroyMeshContainer will each be called for every frame and mesh object in the frame hierarchy. Your implementation of DestroyFrame should release everything allocated by CreateFrame, and likewise for the mesh container methods.

+
+ + bb172894 + HRESULT D3DXLoadMeshHierarchyFromXW([In] const wchar_t* Filename,[In] unsigned int MeshOptions,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXAllocateHierarchy* pAlloc,[In] ID3DXLoadUserData* pUserDataLoader,[In] D3DXFRAME** ppFrameHierarchy,[In] ID3DXAnimationController** ppAnimController) + D3DXLoadMeshHierarchyFromXW +
+ + +

Given a frame hierarchy, registers all the named matrices in the animation mixer.

+
+

The top level node in the frame hierarchy.

+

Pointer to the animation controller object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb172851 + HRESULT D3DXFrameRegisterNamedMatrices([In] D3DXFRAME* pFrameRoot,[In] ID3DXAnimationController* pAnimController) + D3DXFrameRegisterNamedMatrices +
+ + +

Loads the first frame hierarchy from a .x file.

+
+

Pointer to a buffer that contains the mesh hierarchy.

+

Size of the pMemory buffer, in bytes.

+

Combination of one or more flags from the D3DXMESH enumeration that specify creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Pointer to an interface.

+

Application provided interface that allows loading of user data. See .

+

Returns a reference to the loaded frame hierarchy. See .

+

Returns a reference to the animation controller corresponding to animation in the .x file. This is created with default tracks and events. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

All the meshes in the file will be collapsed into one output mesh. If the file contains a frame hierarchy, all the transformations will be applied to the mesh.

+
+ + bb172895 + HRESULT D3DXLoadMeshHierarchyFromXInMemory([In] const void* Memory,[In] unsigned int SizeOfMemory,[In] unsigned int MeshOptions,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXAllocateHierarchy* pAlloc,[In] ID3DXLoadUserData* pUserDataLoader,[In] D3DXFRAME** ppFrameHierarchy,[In] ID3DXAnimationController** ppAnimController) + D3DXLoadMeshHierarchyFromXInMemory +
+ + +

Creates a key framed animation set interface that stores key frame data in a compressed format.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb172754 + HRESULT D3DXCreateCompressedAnimationSet([In] const char* pName,[In] double TicksPerSecond,[In] D3DXPLAYBACK_TYPE Playback,[In] ID3DXBuffer* pCompressedData,[In] unsigned int NumCallbackKeys,[In] const D3DXKEY_CALLBACK* pCallbackKeys,[In] ID3DXCompressedAnimationSet** ppAnimationSet) + D3DXCreateCompressedAnimationSet +
+ + +

Creates a .x file and saves the mesh hierarchy and corresponding animations in it.

+
+

Pointer to a string that specifies the name of the .x file identifying the saved mesh. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Format of the .x file (text or binary, compressed or not). See . can be combined (using a logical OR) with either the or flags to reduce the output file size.

+

Root node of the hierarchy to be saved. See .

+

Animation controller that has animation sets to be stored. See .

+

Application-provided interface that allows saving of user data. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be: .

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXSaveMeshHierarchyToFileA.

This function does not save compressed animation sets.

+
+ + bb205427 + HRESULT D3DXSaveMeshHierarchyToFileW([In] const wchar_t* Filename,[In] unsigned int XFormat,[In] const D3DXFRAME* pFrameRoot,[In] ID3DXAnimationController* pAnimController,[In] ID3DXSaveUserData* pUserDataSaver) + D3DXSaveMeshHierarchyToFileW +
+ + +

Computes the bounding sphere of all the meshes in the frame hierarchy.

+
+

Pointer to the root node.

+

Returns the center of the bounding sphere.

+

Returns the radius of the bounding sphere.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb172847 + HRESULT D3DXFrameCalculateBoundingSphere([In] const D3DXFRAME* pFrameRoot,[In] D3DXVECTOR3* pObjectCenter,[In] float* pObjectRadius) + D3DXFrameCalculateBoundingSphere +
+ + +

Creates an animation controller object.

+
+

Maximum number of animation outputs the controller can support.

+

Maximum number of animation sets that can be mixed.

+

Maximum number of animation sets that can be mixed simultaneously.

+

Maximum number of outstanding events that the controller will support.

+

Pointer to the animation controller object created. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

An animation controller controls an animation mixer. The controller adds methods to modify blending parameters over time to enable smooth transitions.

+
+ + bb172751 + HRESULT D3DXCreateAnimationController([In] unsigned int MaxNumMatrices,[In] unsigned int MaxNumAnimationSets,[In] unsigned int MaxNumTracks,[In] unsigned int MaxNumEvents,[In] ID3DXAnimationController** ppAnimController) + D3DXCreateAnimationController +
+ + +

Finds the child frame of a root frame.

+
+

Pointer to the root frame. See .

+

Name of the child frame to find.

+

Returns the child frame if it is found, or null otherwise. See .

+ + bb172849 + D3DXFRAME* D3DXFrameFind([In] const D3DXFRAME* pFrameRoot,[In] const char* Name) + D3DXFrameFind +
+ + +

Creates a key framed animation set interface.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb172776 + HRESULT D3DXCreateKeyframedAnimationSet([In] const char* pName,[In] double TicksPerSecond,[In] D3DXPLAYBACK_TYPE Playback,[In] unsigned int NumAnimations,[In] unsigned int NumCallbackKeys,[In] const D3DXKEY_CALLBACK* pCallbackKeys,[In] ID3DXKeyframedAnimationSet** ppAnimationSet) + D3DXCreateKeyframedAnimationSet +
+ + +

Destroys the subtree of frames under the root, including the root.

+
+

Pointer to the root node.

+

Allocation interface used to deallocate nodes of the frame hierarchy.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb172848 + HRESULT D3DXFrameDestroy([In] D3DXFRAME* pFrameRoot,[In] ID3DXAllocateHierarchy* pAlloc) + D3DXFrameDestroy +
+ + +

Counts number of frames in a subtree that have non-null names.

+
+

Pointer to the root node of the subtree.

+

Returns the frame count.

+ + bb172850 + unsigned int D3DXFrameNumNamedMatrices([In] const D3DXFRAME* pFrameRoot) + D3DXFrameNumNamedMatrices +
+ + +

Creates a render environment map.

+
+

Pointer to an interface, which is the device to associate with the render surface.

+

Size of the render surface.

+

The number of mipmap levels.

+

Member of the enumerated type that describes the pixel format of the environment map.

+

If TRUE, the render surface supports a depth-stencil surface. Otherwise, this member is set to .

+

If DepthStencil is set to TRUE, this parameter is a member of the enumerated type that describes the depth-stencil format of the environment map.

+

Address of a reference to an interface that represents the created render environment map.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb172790 + HRESULT D3DXCreateRenderToEnvMap([In] IDirect3DDevice9* pDevice,[In] unsigned int Size,[In] unsigned int MipLevels,[In] D3DFORMAT Format,[In] BOOL DepthStencil,[In] D3DFORMAT DepthStencilFormat,[In] ID3DXRenderToEnvMap** ppRenderToEnvMap) + D3DXCreateRenderToEnvMap +
+ + +

Returns the driver level.

+
+

Pointer to an interface representing the device.

+

The driver level. See remarks.

+ +

This method returns the driver version, which is one of the following:

  • 700 - Direct3D 7 level driver
  • 800 - Direct3D 8 level driver
  • 900 - Direct3D 9 level driver
+
+ + bb172865 + unsigned int D3DXGetDriverLevel([In] IDirect3DDevice9* pDevice) + D3DXGetDriverLevel +
+ + +

Creates a font object for a device and font.

+
+

Pointer to an interface, the device to be associated with the font object.

+

The height of the characters in logical units.

+

The width of the characters in logical units.

+

Typeface weight. One example is bold.

+

The number of mipmap levels.

+

True for italic font, false otherwise.

+

The character set of the font.

+

Specifies how Windows should attempt to match the desired font sizes and characteristics with actual fonts. Use OUT_TT_ONLY_PRECIS for instance, to ensure that you always get a TrueType font.

+

Specifies how Windows should match the desired font with a real font. It applies to raster fonts only and should not affect TrueType fonts.

+

Pitch and family index.

+

String containing the typeface name. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Returns a reference to an interface, representing the created font object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The creation of an object requires that the device supports 32-bit color.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateFontA because ANSI strings are being used.

If you want more information about font parameters, see The Logical Font.

+
+ + bb172773 + HRESULT D3DXCreateFontW([In] IDirect3DDevice9* pDevice,[In] int Height,[In] unsigned int Width,[In] unsigned int Weight,[In] unsigned int MipLevels,[In] BOOL Italic,[In] unsigned int CharSet,[In] unsigned int OutputPrecision,[In] unsigned int Quality,[In] unsigned int PitchAndFamily,[In] const wchar_t* pFaceName,[Out, Fast] ID3DXFont** ppFont) + D3DXCreateFontW +
+ + +

Creates a render surface.

+
+

Pointer to an interface, the device to be associated with the render surface.

+

Width of the render surface, in pixels.

+

Height of the render surface, in pixels.

+

Member of the enumerated type, describing the pixel format of the render surface.

+

If TRUE, the render surface supports a depth-stencil surface. Otherwise, this member is set to . This function will create a new depth buffer.

+

If DepthStencil is set to TRUE, this parameter is a member of the enumerated type, describing the depth-stencil format of the render surface.

+

Address of a reference to an interface, representing the created render surface.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb172791 + HRESULT D3DXCreateRenderToSurface([In] IDirect3DDevice9* pDevice,[In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] BOOL DepthStencil,[In] D3DFORMAT DepthStencilFormat,[Out, Fast] ID3DXRenderToSurface** ppRenderToSurface) + D3DXCreateRenderToSurface +
+ + +

Creates a sprite object which is associated with a particular device. Sprite objects are used to draw 2D images to the screen.

+
+

Pointer to an interface, the device to be associated with the sprite.

+

Address of a reference to an interface. This interface allows the user to access sprite functions.

+

If the function succeeds, the return value is .If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This interface can be used to draw two dimensional images in screen space of the associated device.

+
+ + bb172797 + HRESULT D3DXCreateSprite([In] IDirect3DDevice9* pDevice,[Out, Fast] ID3DXSprite** ppSprite) + D3DXCreateSprite +
+ + +

Creates a font object indirectly for both a device and a font.

+
+

Pointer to an interface, the device to be associated with the font object.

+

Pointer to a structure, describing the attributes of the font object to create. If the compiler settings require Unicode, the data type resolves to ; otherwise, the data type resolves to D3DXFONT_DESCA. See Remarks.

+

Returns a reference to an interface, representing the created font object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateFontIndirectA because ANSI strings are being used.

+
+ + bb172774 + HRESULT D3DXCreateFontIndirectW([In] IDirect3DDevice9* pDevice,[In] const D3DXFONT_DESCW* pDesc,[Out, Fast] ID3DXFont** ppFont) + D3DXCreateFontIndirectW +
+ + +

Uses a left-handed coordinate system to create a line.

+
+

Pointer to an interface, representing the device associated with the created box mesh.

+

Pointer to an interface.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function creates a mesh with the creation option and | Flexible Vertex Format (FVF).

+
+ + bb172778 + HRESULT D3DXCreateLine([In] IDirect3DDevice9* pDevice,[Out, Fast] ID3DXLine** ppLine) + D3DXCreateLine +
+ + +

Turns on or off all D3DX debug output.

+
+

If TRUE, debugger output is halted; if , debug output is enabled.

+

Returns the previous value of Mute.

+ + bb172817 + BOOL D3DXDebugMute([In] BOOL Mute) + D3DXDebugMute +
+ + +

Verify that the version of D3DX you compiled with is the version that you are running.

+
+

Use . See remarks.

+

Use . See remarks.

+

Returns TRUE if the version of D3DX you compiled against is the version you are running with; otherwise, is returned.

+ +

Use this function during the initialization of your application like this:

  CD3DXMyApplication::Initialize( hInstance,  LPCSTR szWindowName, LPCSTR szClassName, UINT uWidth, UINT uHeight)	
+            {  hr; if (!(, )) return E_FAIL; ...	
+            }	
+            

Use Direct3DCreate9 to verify that the correct runtime is installed.

+
+ + bb172717 + BOOL D3DXCheckVersion([In] unsigned int D3DSdkVersion,[In] unsigned int D3DXSdkVersion) + D3DXCheckVersion +
+ + +

Create an effect from an ASCII or binary effect description.

+
+

Pointer to the device that will create the effect. See .

+

Pointer to a buffer containing an effect description.

+

Length of the effect data, in bytes.

+

An optional null-terminated array of structures that describe preprocessor definitions. This value can be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

If pSrcData contains a text effect, flags can be a combination of Flags and flags; otherwise, pSrcData contains a binary effect and the only flags honored are flags. The Direct3D 10 HLSL compiler is now the default. See Effect-Compiler Tool for details.

+

Pointer to a object to use for shared parameters. If this value is null, no parameters will be shared.

+

Returns a reference to an interface.

+

Returns a buffer containing a listing of compile errors.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172763 + HRESULT D3DXCreateEffect([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + D3DXCreateEffect +
+ + +

Disassemble an effect.

+
+

Pointer to an interface that contains the effect.

+

Enable color coding to make the disassembly easier to read.

+

Returns a buffer containing the disassembled shader. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172819 + HRESULT D3DXDisassembleEffect([In] ID3DXEffect* pEffect,[In] BOOL EnableColorCode,[In] ID3DXBuffer** ppDisassembly) + D3DXDisassembleEffect +
+ + +

Create an effect from an ASCII or binary effect description. This is an extended version of that allows an application to control which parameters are ignored by the effects system.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function is an extended version of that allows an application to specify which effect constants will be managed by the application. A constant that is managed by the application is ignored by the effects system. That is, the application is responsible for initializing the constant as well as saving and restoring its state whenever appropriate.

This function checks each constant in pSkipConstants to see that:

  • It is bound to a constant register.
  • It is only used in HLSL shader code.

If a constant is named in the string that is not present in the effect, it is ignored.

If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the LPCTSTR data type resolves to LPCSTR.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateEffectFromResourceA because ANSI strings are being used.

loads data from a resource of type RT_RCDATA. See MSDN for more information about Windows resources.

+
+ + bb172771 + HRESULT D3DXCreateEffectFromResourceExW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + D3DXCreateEffectFromResourceExW +
+ + +

Create an effect from an ASCII or binary effect description.

+
+

Pointer to the device.

+

Handle to a module containing the effect description. If this parameter is null, the current module will be used.

+

Pointer to the resource. This parameter supports both Unicode and ANSI strings. See Remarks.

+

An optional null-terminated array of structures that describe preprocessor definitions. This value can be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

If hSrcModule contains a text effect, flags can be a combination of Flags and flags; otherwise, hSrcModule contains a binary effect and the only flags honored are flags. The Direct3D 10 HLSL compiler is now the default. See Effect-Compiler Tool for details.

+

Pointer to a object to use for shared parameters. If this value is null, no parameters will be shared.

+

Returns a buffer containing the compiled effect.

+

Returns a buffer containing a listing of compile errors.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the LPCTSTR data type resolves to LPCSTR.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateEffectFromResourceA because ANSI strings are being used.

loads data from a resource of type RT_RCDATA. See MSDN for more information about Windows resources.

+
+ + bb172770 + HRESULT D3DXCreateEffectFromResourceW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + D3DXCreateEffectFromResourceW +
+ + +

Creates an effect compiler from an ASCII effect description.

+
+

Pointer to a buffer containing an effect description.

+

Length, in bytes, of the effect data.

+

An optional null-terminated array of structures that describe preprocessor definitions. This value can be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

Compile options identified by various flags (see Flags). The Direct3D 10 HLSL compiler is now the default. See Effect-Compiler Tool for details.

+

Address of a reference to an interface containing the effect compiler.

+

Address of a reference to an interface containing any error messages that occurred during compilation. This parameter can be set to null to ignore error messages.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb172764 + HRESULT D3DXCreateEffectCompiler([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[Out, Fast] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + D3DXCreateEffectCompiler +
+ + +

Create an effect from an ASCII or binary effect description. This function is an extended version of that allows an application to control which parameters are ignored by the effects system.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function is an extended version of that allows an application to specify which effect constants will be managed by the application. A constant that is managed by the application is ignored by the effects system. That is, the application is responsible for initializing the constant as well as saving and restoring its state whenever appropriate.

This function checks each constant in pSkipConstants to see that:

  • It is bound to a constant register.
  • It is only used in HLSL shader code.

If a constant is named in the string that is not present in the effect, it is ignored.

If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the LPCTSTR data type resolves to LPCSTR.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateEffectFromFileA because ANSI strings are being used.

+
+ + bb172769 + HRESULT D3DXCreateEffectFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + D3DXCreateEffectFromFileExW +
+ + +

Creates an effect compiler from an ASCII effect description.

+
+

Pointer to the filename. This parameter supports both Unicode and ANSI strings. See Remarks.

+

An optional null-terminated array of structures that describe preprocessor definitions. This value can be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

Compile options identified by various flags (see Flags). The Direct3D 10 HLSL compiler is now the default. See Effect-Compiler Tool for details.

+

Address of a reference to an interface, containing the effect compiler.

+

Address of a reference to an interface, containing any error messages that occurred during compilation. This parameter can be set to null to ignore error messages.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the LPCTSTR data type resolves to LPCSTR.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateEffectCompilerFromFileA because ANSI strings are being used.

+
+ + bb172765 + HRESULT D3DXCreateEffectCompilerFromFileW([In] const wchar_t* pSrcFile,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + D3DXCreateEffectCompilerFromFileW +
+ + +

Creates an from an ASCII effect description.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the LPCTSTR data type resolves to LPCSTR.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateEffectCompilerFromResourceA because ANSI strings are being used.

+
+ + bb172766 + HRESULT D3DXCreateEffectCompilerFromResourceW([In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXEffectCompiler** ppCompiler,[In] ID3DXBuffer** ppParseErrors) + D3DXCreateEffectCompilerFromResourceW +
+ + +

Create an effect from an ASCII or binary effect description.

+
+

Pointer to the device that will create the effect. See .

+

Pointer to the filename. This parameter supports both Unicode and ANSI strings. See Remarks.

+

Optional null-terminated array of preprocessor macro definitions. See .

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

If pSrcFile contains a text effect, flags can be a combination of Flags and flags; otherwise, pSrcFile contains a binary effect and the only flags honored are flags. The Direct3D 10 HLSL compiler is now the default. See Effect-Compiler Tool for details.

+

Pointer to a object to use for shared parameters. If this value is null, no parameters will be shared.

+

Returns a reference to a buffer containing the compiled effect. See .

+

Returns a reference to a buffer containing a listing of compile errors. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the LPCTSTR data type resolves to LPCSTR.

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateEffectFromFileA because ANSI strings are being used.

+
+ + bb172768 + HRESULT D3DXCreateEffectFromFileW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + D3DXCreateEffectFromFileW +
+ + +

Create an effect pool. A pool is used to share parameters between effects.

+
+

Returns a reference to the created pool.

+

If the method succeeds, the return value is .

If the arguments are invalid, the method will return .

If the method fails, the return value will be E_FAIL.

+ +

For effects within a pool, shared parameters with the same name share values.

+
+ + bb172772 + HRESULT D3DXCreateEffectPool([Out, Fast] ID3DXEffectPool** ppPool) + D3DXCreateEffectPool +
+ + +

Creates an effect from an ASCII or binary effect description. This function is an extended version of that allows an application to control which parameters are ignored by the effects system.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function is an extended version of that allows an application to specify which effect constants will be managed by the application. A constant that is managed by the application is ignored by the effects system. That is, the application is responsible for initializing the constant as well as saving and restoring its state whenever appropriate.

This function checks each constant in pSkipConstants to see that:

  • It is bound to a constant register.
  • It is only used in HLSL shader code.

If a constant is named in the string that is not present in the effect, it is ignored.

+
+ + bb172767 + HRESULT D3DXCreateEffectEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pSkipConstants,[In] unsigned int Flags,[In] ID3DXEffectPool* pPool,[In] ID3DXEffect** ppEffect,[In] ID3DXBuffer** ppCompilationErrors) + D3DXCreateEffectEx +
+ + +

Saves a mesh to a .x file.

+
+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Pointer to an interface, representing the mesh to save to a .x file.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh. This parameter may be null.

+

Pointer to an array of structures, containing material information to be saved in the .x file.

+

Pointer to an array of effect instances, one per attribute group in the mesh. This parameter may be null. An effect instance is a particular instance of state information used to initialize an effect. For more information, see .

+

Number of structures in the pMaterials array.

+

A combination of file format and save options when saving an .x file. See D3DX X File Constants.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: .

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXSaveMeshToXA because ANSI strings are being used.

The default file format is binary; however, if a file is specified as both a binary and a text file, it will be saved as a text file. Regardless of the file format, you may also use the compressed format to reduce the file size.

The following is a typical code example of how to use this function.

 *    m_pMesh;           // Mesh object to be saved to a .x file	
+            * m_pMaterials;      // Array of material structs in the mesh	
+            DWORD         m_dwNumMaterials;  // Number of material structs in the mesh DWORD dwFormat = ;  // Binary-format .x file (default)	
+            // DWORD dwFormat = ; // Text-format .x file // Load mesh into m_pMesh and determine values of m_pMaterials and 	
+            // m_dwNumMaterials with calls to D3DXLoadMeshxxx or other D3DX functions // ... ( L"outputxfilename.x", m_pMesh, null, m_pMaterials, null, m_dwNumMaterials, dwFormat );	
+            
+
+ + bb205428 + HRESULT D3DXSaveMeshToXW([In] const wchar_t* pFilename,[In] ID3DXMesh* pMesh,[In] const unsigned int* pAdjacency,[In] const D3DXMATERIAL* pMaterials,[In] const D3DXEFFECTINSTANCE* pEffectInstances,[In] unsigned int NumMaterials,[In] unsigned int Format) + D3DXSaveMeshToXW +
+ + +

Creates an N-patch mesh from a triangle mesh.

+
+

Address of a reference to an interface that represents the triangle mesh object.

+

Address of a reference to an interface that represents the created patch mesh object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb172782 + HRESULT D3DXCreateNPatchMesh([In] ID3DXMesh* pMeshSysMem,[In] ID3DXPatchMesh** pPatchMesh) + D3DXCreateNPatchMesh +
+ + +

Returns a declarator from a flexible vertex format (FVF) code.

+
+

Combination of that describes the FVF from which to generate the returned declarator array.

+

An array of elements describing the vertex format of the mesh vertices. The upper limit of this declarator array is .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: D3DXERR_INVALIDMESH.

+ + bb172818 + HRESULT D3DXDeclaratorFromFVF([In] D3DFVF FVF,[In, Buffer] D3DVERTEXELEMENT9* pDeclarator) + D3DXDeclaratorFromFVF +
+ + +

Compute tangent, binormal, and normal vectors for a mesh.

+
+

Pointer to an input mesh object.

+

Combination of one or more flags.

Use null to specify the following options:

  • Weight the normal vector length by the angle, in radians, subtended by the two edges leaving the vertex.
  • Compute orthogonal Cartesian coordinates from the UV texture coordinates.
  • Textures are not wrapped in either U or V directions
  • Partial derivatives with respect to texture coordinates are normalized.
  • Vertices are ordered in a counterclockwise direction around each triangle.
  • Use per-vertex normal vectors already present in the input mesh.
  • The results will be stored in the original input mesh. The function will fail if new vertices need to be created.
+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function simply calls with the following input parameters:

 (pMesh, , 0,    , 0, , 0,  , 0,  dwOptions | , null, 0.01f, 0.25f, 0.01f, null, null);	
+            

Singularities are handled as required by grouping edges and splitting vertices. If any vertices need to be split, the function will fail. The computed normal vector at each vertex is always normalized to have unit length.

The most robust solution for computing orthogonal Cartesian coordinates is to not set flags and , so that orthogonal coordinates are computed from both UV texture coordinates. However, in this case, if either U or V is zero, then the function will compute orthogonal coordinates using or respectively.

+
+ + bb172744 + HRESULT D3DXComputeTangentFrame([In] ID3DXMesh* pMesh,[In] unsigned int dwOptions) + D3DXComputeTangentFrame +
+ + +

Generates an optimized face remapping for a triangle list.

+
+

Pointer to triangle list indices to use for ordering vertices.

+

Number of faces in the triangle list. For 16-bit meshes, this is limited to 2^16 - 1 (65535) or fewer faces.

+

Number of vertices referenced by the triangle list.

+

Flag indicating index type: TRUE if indices are 32-bit (more than 65535 indices), if indices are 16-bit (65535 or fewer indices).

+

Pointer to the original mesh face that was split to generate the current face.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This function's optimization procedure is functionally equivalent to calling with the flag, but this function makes more efficient use of vertex caches.

+
+ + bb205376 + HRESULT D3DXOptimizeFaces([In] const void* pbIndices,[In] unsigned int cFaces,[In] unsigned int cVertices,[In] BOOL b32BitIndices,[In, Buffer] int* pFaceRemap) + D3DXOptimizeFaces +
+ + +

Welds together replicated vertices that have equal attributes. This method uses specified epsilon values for equality comparisons.

+
+

Pointer to an object, the mesh from which to weld vertices.

+

Combination of one or more flags from D3DXWELDEPSILONSFLAGS.

+

Pointer to a D3DXWeldEpsilons structure, specifying the epsilon values to be used for this method. Use null to initialize all structure members to a default value of 1.0e-6f.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the source mesh. If the edge has no adjacent faces, the value is 0xffffffff. If this parameter is set to null, will be called to create logical adjacency information.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the optimized mesh. If the edge has no adjacent faces, the value is 0xffffffff.

+

An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the welded mesh.

+

Address of a reference to an interface, which contains a DWORD for each vertex that specifies how the new vertices map to the old vertices. This remap is useful if you need to alter external data based on the new vertex mapping.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This function uses supplied adjacency information to determine the points that are replicated. Vertices are merged based on an epsilon comparison. Vertices with equal position must already have been calculated and represented by point-representative data.

This function combines logically-welded vertices that have similar components, such as normals or texture coordinates within pEpsilons.

The following example code calls this function with welding enabled. Vertices are compared using epsilon values for normal vector and vertex position. A reference is returned to a face remapping array (pFaceRemap).

 TCHAR            strMediaPath[512];       // X-file path 	
+            LPD3DXBUFFER     pAdjacencyBuffer = null; // adjacency data buffer	
+            LPD3DXBUFFER     pD3DXMtrlBuffer  = null; // material buffer	
+            LPD3DXMESH       pMesh            = null; // mesh object	
+            DWORD            m_dwNumMaterials;        // number of materials	
+             Epsilons;                // structure with epsilon values	
+            DWORD            *pFaceRemap[65536];      // face remapping array	
+            DWORD            i;                       // internal variable // Load the mesh from the specified file hr =  ( strMediaPath, , m_pd3dDevice, &pAdjacencyBuffer, &pD3DXMtrlBuffer, null, &m_dwNumMaterials, &pMesh ) ) if( FAILED( hr ) )  goto End;              // Go to error handling // Set epsilon values Epsilons.Normal = 0.001; Epsilons.Position = 0.1; // Weld the vertices for( i=0; i < 65536; i++ ) {  pFaceRemap[i] = 0;  } hr =  ( pMesh, , &Epsilons, (DWORD*)pAdjacencyBuffer->GetBufferPointer(), (DWORD*)pAdjacencyBuffer->GetBufferPointer(), (DWORD*)pFaceRemap, null ) if( FAILED( hr ) )  goto End;              // Go to error handling	
+            
+
+ + bb205562 + HRESULT D3DXWeldVertices([In] ID3DXMesh* pMesh,[In] unsigned int Flags,[In] const D3DXWELDEPSILONS* pEpsilons,[In] const unsigned int* pAdjacencyIn,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pFaceRemap,[In] ID3DXBuffer** ppVertexRemap) + D3DXWeldVertices +
+ + +

Generates an output vertex declaration from the input declaration. The output declaration is intended for use by the mesh tessellation functions.

+
+

Pointer to the output vertex declaration. See .

+

Pointer to the input vertex declaration. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: .

+ + bb172861 + HRESULT D3DXGenerateOutputDecl([In, Buffer] D3DVERTEXELEMENT9* pOutput,[In, Buffer] const D3DVERTEXELEMENT9* pInput) + D3DXGenerateOutputDecl +
+ + +

Creates a buffer object.

+
+

Size of the buffer to create, in bytes.

+

Address of a reference to an interface, representing the created buffer object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: E_OUTOFMEMORY.

+ + bb172753 + HRESULT D3DXCreateBuffer([In] unsigned int NumBytes,[In] ID3DXBuffer** ppBuffer) + D3DXCreateBuffer +
+ + +

Loads a patch mesh from an object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

For mesh files that do not contain effect instance information, default effect instances will be generated from the material information in the .x file. A default effect instance will have default values that correspond to the members of the structure.

The default texture name is also filled in, but is handled differently. The name will be Texture0@Name, which corresponds to an effect variable by the name of "Texture0" with an annotation called "Name." This will contain the string file name for the texture.

+
+ + bb172896 + HRESULT D3DXLoadPatchMeshFromXof([In] ID3DXFileData* pXofObjMesh,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pNumMaterials,[In] ID3DXPatchMesh** ppMesh) + D3DXLoadPatchMeshFromXof +
+ + +

Tessellates the given mesh using the N-patch tessellation scheme.

+
+

Pointer to an interface, representing the mesh to tessellate.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the source mesh. This parameter may be null.

+

Number of segments per edge to tessellate.

+

Set to TRUE to use quadratic interpolation for normals; set to for linear interpolation.

+

Address of a reference to an interface, representing the returned tessellated mesh.

+

Address of a reference to an interface. If the value of this parameter is not set to null, this buffer will contain an array of three DWORDs per face that specify the three neighbors for each face in the output mesh. This parameter may be null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function tessellates by using the N-patch algorithm.

+
+ + bb205469 + HRESULT D3DXTessellateNPatches([In] ID3DXMesh* pMeshIn,[In] const unsigned int* pAdjacencyIn,[In] float NumSegs,[In] BOOL QuadraticInterpNormals,[In] ID3DXMesh** ppMeshOut,[In] ID3DXBuffer** ppAdjacencyOut) + D3DXTessellateNPatches +
+ + +

Calculates per-triangle IMT's from a custom application-specified signal that varies over the surface of the mesh (generally at a higher frequency than vertex data). The signal is evaluated via a user-specified callback function.

+
+

A reference to an input mesh (see ) which contains the object geometry for calculating the IMT.

+

Zero-based texture coordinate index that identifies which set of texture coordinates to use.

+

The number of components in each data point in the signal.

+

The maximum distance between vertices; the algorithm continues subdividing until the distance between all vertices is less than or equal to fMaxUVDistance.

+

Texture wrap options. This is a combination of one or more FLAGS.

+

A reference to a user-provided evaluator function, which will be used to compute the signal value at arbitrary U,V coordinates. The function follows the prototype of LPD3DXIMTSIGNALCALLBACK.

+

A reference to a user-defined value which is passed to the signal callback function. Typically used by an application to pass a reference to a data structure that provides context information for the callback function.

+

A reference to a callback function to monitor IMT computation progress.

+

A reference to a user-defined variable which is passed to the status callback function. Typically used by an application to pass a reference to a data structure that provides context information for the callback function.

+

A reference to the buffer (see ) containing the returned IMT array. This array can be provided as input to the D3DX UVAtlas Functions to prioritize texture-space allocation in the texture parameterization.

+

If the function succeeds, the return value is ; otherwise, the value is .

+ +

This function requires that the input mesh contain a signal-to-mesh texture mapping (ie. texture coordinates). It allows the user to define a signal arbitrarily over the surface of the mesh.

+
+ + bb172739 + HRESULT D3DXComputeIMTFromSignal([In] ID3DXMesh* pMesh,[In] unsigned int dwTextureIndex,[In] unsigned int uSignalDimension,[In] float fMaxUVDistance,[In] unsigned int dwOptions,[In] __function__stdcall* pSignalCallback,[In] void* pUserData,[In] __function__stdcall* pStatusCallback,[In] void* pUserContext,[In] ID3DXBuffer** ppIMTData) + D3DXComputeIMTFromSignal +
+ + +

Validates a patch mesh, returning the number of degenerate vertices and patches.

+
+

Pointer to an interface, representing the patch mesh to be tested.

+

Returns the number of degenerate vertices in the patch mesh.

+

Returns the number of degenerate patches in the patch mesh.

+

Returns a reference to a buffer containing a string of errors and warnings that explain the problems found in the patch mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This method validates the mesh by checking for invalid indices. Error information is available from the debugger output.

+
+ + bb205483 + HRESULT D3DXValidPatchMesh([In] ID3DXPatchMesh* pMesh,[In] unsigned int* dwcDegenerateVertices,[In] unsigned int* dwcDegeneratePatches,[In] ID3DXBuffer** ppErrorsAndWarnings) + D3DXValidPatchMesh +
+ + +

Validates a mesh.

+
+

Pointer to an interface, representing the mesh to be tested.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh to be tested.

+

Returns a buffer containing a string of errors and warnings, which explain the problems found in the mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: D3DXERR_INVALIDMESH, , E_OUTOFMEMORY.

+ +

This method validates the mesh by checking for invalid indices. Error information is available from the debugger output.

+
+ + bb205482 + HRESULT D3DXValidMesh([In] ID3DXMesh* pMeshIn,[In] const unsigned int* pAdjacency,[In] ID3DXBuffer** ppErrorsAndWarnings) + D3DXValidMesh +
+ + +

Splits a mesh into meshes smaller than the specified size.

+
+

Pointer to an interface, representing the source mesh.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh to be simplified.

+

Maximum number of vertices in the resulting mesh.

+

Option flags for the new meshes.

+

Number of meshes returned.

+

Buffer containing an array of interfaces for the new meshes. For a source mesh split into n meshes, ppMeshArrayOut is an array of n references.

+

Buffer containing an array of adjacency arrays (DWORDs) for the new meshes. See . This parameter is optional.

+

Buffer containing an array of face remap arrays (DWORDs) for the new meshes. See . This parameter is optional.

+

Buffer containing an array of vertex remap arrays for the new meshes. See . This parameter is optional.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

A common use of this function is to split a mesh with 32-bit indices (more than 65535 vertices) into more than one mesh, each of which has 16-bit indices.

The adjacency, vertex remap and face remap arrays are arrays are DWORDs where each array contains n DWORD references, followed by the DWORD data referenced by the references. For example, to obtain the face remap information for face 3 in mesh 2, the following code could be used, assuming the face remap data was returned in a variable named ppFaceRemapArrayOut.

 const DWORD **face_remaps =  static_cast<DWORD **>(ppFaceRemapArrayOut->GetBufferPointer());	
+            const DWORD remap = face_remaps[2][3];	
+            
+
+ + bb205465 + HRESULT D3DXSplitMesh([In] ID3DXMesh* pMeshIn,[In] const unsigned int* pAdjacencyIn,[In] const unsigned int MaxSize,[In] const unsigned int Options,[In] unsigned int* pMeshesOut,[In] ID3DXBuffer** ppMeshArrayOut,[In] ID3DXBuffer** ppAdjacencyArrayOut,[In] ID3DXBuffer** ppFaceRemapArrayOut,[In] ID3DXBuffer** ppVertRemapArrayOut) + D3DXSplitMesh +
+ + +

Computes the tangent vectors for the texture coordinates given in the texture stage. Provided to support legacy applications. Use for better results.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

If the mesh vertex declaration specifies tangent or binormal fields, will update any user-supplied tangent or binormal data. Alternatively, set TangentIndex to D3DX_DEFAULT to not update the user-supplied tangent data, or set BinormIndex to D3DX_DEFAULT to not update the user-supplied binormal data. TexStageIndex cannot be set to D3DX_DEFAULT.

depends on the mesh vertex declaration containing either the binormal field (BinormIndex), the tangent field (TangentIndex), or both. If both are missing, this function will fail.

This function simply calls with the following input parameters:

 ( Mesh, , TexStageIndex, ( BinormIndex == D3DX_DEFAULT ) ? D3DX_DEFAULT : , // provides backward function compatibility BinormIndex, ( TangentIndex == D3DX_DEFAULT ) ? D3DX_DEFAULT : , TangentIndex, D3DX_DEFAULT, // do not store normals 0, ( Wrap ?  : 0 ) |  | , pAdjacency, -1.01f, -0.01f, -1.01f, null, null);	
+            
+
+ + bb172743 + HRESULT D3DXComputeTangent([In] ID3DXMesh* Mesh,[In] unsigned int TexStage,[In] unsigned int TangentIndex,[In] unsigned int BinormIndex,[In] unsigned int Wrap,[In] const unsigned int* pAdjacency) + D3DXComputeTangent +
+ + +

Determines if a ray intersects with a mesh.

+
+

Pointer to an interface, representing the mesh to be tested.

+

Pointer to a structure, specifying the point where the ray begins.

+

Pointer to a structure, specifying the direction of the ray.

+

Pointer to a . If the ray intersects a triangular face on the mesh, this value will be set to TRUE. Otherwise, this value is set to .

+

Pointer to an index value of the face closest to the ray origin, if pHit is TRUE.

+

Pointer to a barycentric hit coordinate, U.

+

Pointer to a barycentric hit coordinate, V.

+

Pointer to a ray intersection parameter distance.

+

Pointer to an object, containing an array of D3DXINTERSECTINFO structures.

+

Pointer to a DWORD that contains the number of entries in the ppAllHits array.

+

If the function succeeds, the return value is . If the function fails, the return value can be: E_OUTOFMEMORY.

+ +

The function provides a way to understand points in and around a triangle, independent of where the triangle is actually located. This function returns the resulting point by using the following equation: V1 + U(V2 - V1) + V(V3 - V1).

Any point in the plane V1V2V3 can be represented by the barycentric coordinate (U,V). The parameter U controls how much V2 gets weighted into the result, and the parameter V controls how much V3 gets weighted into the result. Lastly, the value of [1 - (U + V)] controls how much V1 gets weighted into the result.

Barycentric coordinates are a form of general coordinates. In this context, using barycentric coordinates represents a change in coordinate systems. What holds true for Cartesian coordinates holds true for barycentric coordinates.

Barycentric coordinates define a point inside a triangle in terms of the triangle's vertices. For a more in-depth description of barycentric coordinates, see Mathworld's Barycentric Coordinates Description.

+
+ + bb172882 + HRESULT D3DXIntersect([In] ID3DXBaseMesh* pMesh,[In] const D3DXVECTOR3* pRayPos,[In] const D3DXVECTOR3* pRayDir,[In] BOOL* pHit,[In] unsigned int* pFaceIndex,[In] float* pU,[In] float* pV,[In] float* pDist,[In] ID3DXBuffer** ppAllHits,[In] unsigned int* pCountOfHits) + D3DXIntersect +
+ + +

Pack mesh partitioning data into an atlas.

+
+

Pointer to an input mesh (see ) which contains the object geometry for calculating the atlas. At a minimum, the mesh must contain position data and 2D texture coordinates.

+

Texture width.

+

Texture height.

+

The minimum distance, in texels, between two charts on the atlas. The gutter is always scaled by the width; so, if a gutter of 2.5 is used on a 512x512 texture, then the minimum distance between two charts is 2.5 / 512.0 texels.

+

Zero-based texture coordinate index that identifies which set of texture coordinates to use.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh. It should be derived from the ppPartitionResultAdjacency returned from . This value cannot be null, because Pack needs to know where charts were cut in the partition step in order to find the edges of each chart.

+

A reference to a callback function (see LPD3DXUVATLASCB) that is useful for monitoring progress.

+

Specify how often D3DX will call the callback; a reasonable default value is 0.0001f.

+

A void reference to be passed back to the callback function.

+

This options parameter is currently reserved.

+

A reference to an containing the array of the final face-partitioning. Each element contains one DWORD per face.

+

If the function succeeds, the return value is ; otherwise, the value is .

+ + bb205480 + HRESULT D3DXUVAtlasPack([In] ID3DXMesh* pMesh,[In] unsigned int uWidth,[In] unsigned int uHeight,[In] float fGutter,[In] unsigned int dwTextureIndex,[In] const unsigned int* pdwPartitionResultAdjacency,[In] __function__stdcall* pStatusCallback,[In] float fCallbackFrequency,[In] void* pUserContext,[In] unsigned int dwOptions,[In] ID3DXBuffer* pFacePartitioning) + D3DXUVAtlasPack +
+ + +

Loads a skin mesh from a DirectX .x file data object.

+
+

Pointer to an interface, representing the file data object to load.

+

Combination of one or more flags, from the D3DXMESH enumeration, specifying creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Address of a reference to an interface. When this method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of structures.

+

Pointer to a buffer containing an array of effect instances, one per attribute group in the returned mesh. An effect instance is a particular instance of state information used to initialize an effect. See . For more information about accessing the buffer, see .

+

Pointer to the number of structures in the ppMaterials array, when the method returns.

+

Address of a reference to an interface, which represents the skinning information.

+

Address of a reference to an interface, which represents the loaded mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY

+ +

This method takes a reference to an internal object in the .x file, enabling you to load the frame hierarchy.

For mesh files that do not contain effect instance information, default effect instances will be generated from the material information in the .x file. A default effect instance will have default values that correspond to the members of the structure.

The default texture name is also filled in, but is handled differently. The name will be Texture0@Name, which corresponds to an effect variable by the name of "Texture0" with an annotation called "Name." This will contain the string file name for the texture.

+
+ + bb172899 + HRESULT D3DXLoadSkinMeshFromXof([In] ID3DXFileData* pxofMesh,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppAdjacency,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pMatOut,[In] ID3DXSkinInfo** ppSkinInfo,[In] ID3DXMesh** ppMesh) + D3DXLoadSkinMeshFromXof +
+ + +

Creates a mesh object using a declarator.

+
+

Number of faces for the mesh. The valid range for this number is greater than 0, and one less than the maximum DWORD (typically 65534), because the last index is reserved.

+

Number of vertices for the mesh. This parameter must be greater than 0.

+

Combination of one or more flags from the D3DXMESH enumeration, specifying options for the mesh.

+

Array of elements, describing the vertex format for the returned mesh. This parameter must map directly to a flexible vertex format (FVF).

+

Pointer to an interface, the device object to be associated with the mesh.

+

Address of a reference to an interface, representing the created mesh object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb172780 + HRESULT D3DXCreateMesh([In] unsigned int NumFaces,[In] unsigned int NumVertices,[In] unsigned int Options,[In] const D3DVERTEXELEMENT9* pDeclaration,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXMesh** ppMesh) + D3DXCreateMesh +
+ + +

Creates an empty skin mesh object using a flexible vertex format (FVF) code.

+
+

Number of vertices for the skin mesh.

+

Combination of that describes the vertex format for the returned skin mesh.

+

Number of bones for the skin mesh.

+

Address of a reference to an interface, representing the created skin information object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Use SetBoneInfluence to populate the empty skin mesh object returned by this method.

+
+ + bb172794 + HRESULT D3DXCreateSkinInfoFVF([In] unsigned int NumVertices,[In] D3DFVF FVF,[In] unsigned int NumBones,[In] ID3DXSkinInfo** ppSkinInfo) + D3DXCreateSkinInfoFVF +
+ + +

Intersects the specified ray with the given mesh subset. This provides similar functionality to .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be the following value: E_OUTOFMEMORY.

+ +

The function provides a way to understand points in and around a triangle, independent of where the triangle is actually located. This function returns the resulting point by using the following equation: V1 + U(V2 - V1) + V(V3 - V1).

Any point in the plane V1V2V3 can be represented by the barycentric coordinate (U,V). The parameter U controls how much V2 gets weighted into the result and the parameter V controls how much V3 gets weighted into the result. Lastly, the value of [1 - (U + V)] controls how much V1 gets weighted into the result.

Barycentric coordinates are a form of general coordinates. In this context, using barycentric coordinates represents a change in coordinate systems. What holds true for Cartesian coordinates holds true for barycentric coordinates.

Barycentric coordinates define a point inside a triangle in terms of the triangle's vertices. For a more in-depth description of barycentric coordinates, see Mathworld's Barycentric Coordinates Description.

+
+ + bb172884 + HRESULT D3DXIntersectSubset([In] ID3DXBaseMesh* pMesh,[In] unsigned int AttribId,[In] const D3DXVECTOR3* pRayPos,[In] const D3DXVECTOR3* pRayDir,[In] BOOL* pHit,[In] unsigned int* pFaceIndex,[In] float* pU,[In] float* pV,[In] float* pDist,[In] ID3DXBuffer** ppAllHits,[In] unsigned int* pCountOfHits) + D3DXIntersectSubset +
+ + +

Returns the size of a vertex for a flexible vertex format (FVF).

+
+

FVF to be queried. A combination of .

+

The FVF vertex size, in bytes.

+ + bb172866 + unsigned int D3DXGetFVFVertexSize([In] D3DFVF FVF) + D3DXGetFVFVertexSize +
+ + +

Returns the number of elements in the vertex declaration.

+
+

A reference to the vertex declaration. See .

+

The number of elements in the vertex declaration.

+ + bb172863 + unsigned int D3DXGetDeclLength([In, Buffer] const D3DVERTEXELEMENT9* pDecl) + D3DXGetDeclLength +
+ + +

Cleans a mesh, preparing it for simplification.

+
+

Vertex operations to perform in preparation for mesh cleaning. See .

+

Pointer to an interface, representing the mesh to be cleaned.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh to be cleaned.

+

Address of a reference to an interface, representing the returned cleaned mesh. The same mesh is returned that was passed in if no cleaning was necessary.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the output mesh.

+

Returns a buffer containing a string of errors and warnings, which explain the problems found in the mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This function cleans a mesh using the cleaning method and options specified in the CleanType parameter. See the enumeration for a description of the available options.

+
+ + bb172719 + HRESULT D3DXCleanMesh([In] D3DXCLEANTYPE CleanType,[In] ID3DXMesh* pMeshIn,[In] const unsigned int* pAdjacencyIn,[In] ID3DXMesh** ppMeshOut,[In] unsigned int* pAdjacencyOut,[In] ID3DXBuffer** ppErrorsAndWarnings) + D3DXCleanMesh +
+ + +

Computes the intersection of a ray and a triangle.

+
+

Pointer to a structure, describing the first triangle vertex position.

+

Pointer to a structure, describing the second triangle vertex position.

+

Pointer to a structure, describing the third triangle vertex position.

+

Pointer to a structure, specifying the point where the ray begins.

+

Pointer to a structure, specifying the direction of the ray.

+

Barycentric hit coordinates, U.

+

Barycentric hit coordinates, V.

+

Ray-intersection parameter distance.

+

Returns TRUE if the ray intersects the area of the triangle. Otherwise, returns .

+ +

Any point in the plane V1V2V3 can be represented by the barycentric coordinate (U,V). The parameter U controls how much V2 gets weighted into the result, and the parameter V controls how much V3 gets weighted into the result. Lastly, the value of [1 - (U + V)] controls how much V1 gets weighted into the result.

Barycentric coordinates are a form of general coordinates. In this context, using barycentric coordinates represents a change in coordinate systems. What holds true for Cartesian coordinates holds true for barycentric coordinates.

Barycentric coordinates define a point inside a triangle in terms of the triangle's vertices. For a more in-depth description of barycentric coordinates, see Mathworld's Barycentric Coordinates Description.

+
+ + bb204928 + BOOL D3DXIntersectTri([In] const D3DXVECTOR3* p0,[In] const D3DXVECTOR3* p1,[In] const D3DXVECTOR3* p2,[In] const D3DXVECTOR3* pRayPos,[In] const D3DXVECTOR3* pRayDir,[In] float* pU,[In] float* pV,[In] float* pDist) + D3DXIntersectTri +
+ + +

Converts the specified mesh subset into a single triangle strip.

+
+

Pointer to an interface, representing the mesh to convert to a strip.

+

Attribute ID of the mesh subset to convert to strips.

+

Combination of one or more flags from the D3DXMESH enumeration, specifying options for creating the index buffer. Cannot be . The index buffer will be created with 32-bit or 16-bit indices, depending on the format of the index buffer of the mesh specified by the MeshIn parameter.

+

Pointer to an interface, representing the index buffer containing the strip.

+

Number of indices in the buffer returned in the ppIndexBuffer parameter.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

Before running this function, call Optimize or , with the flag set.

+
+ + bb172749 + HRESULT D3DXConvertMeshSubsetToSingleStrip([In] ID3DXBaseMesh* MeshIn,[In] unsigned int AttribId,[In] unsigned int IBOptions,[In] IDirect3DIndexBuffer9** ppIndexBuffer,[In] unsigned int* pNumIndices) + D3DXConvertMeshSubsetToSingleStrip +
+ + +

Creates an empty skin mesh object using a declarator.

+
+

Number of vertices for the skin mesh.

+

Array of elements, describing the vertex format for the returned mesh.

+

Number of bones for the skin mesh.

+

Address of a reference to an interface, representing the created skin mesh object.

+

If the function succeeds, the return value is . If the function fails, the return value can be: E_OUTOFMEMORY.

+ +

Use SetBoneInfluence to populate the empty skin mesh object returned by this method.

+
+ + bb172792 + HRESULT D3DXCreateSkinInfo([In] unsigned int NumVertices,[In] const D3DVERTEXELEMENT9* pDeclaration,[In] unsigned int NumBones,[In] ID3DXSkinInfo** ppSkinInfo) + D3DXCreateSkinInfo +
+ + +

Returns the size of a vertex from the vertex declaration.

+
+

A reference to the vertex declaration. See .

+

The zero-based stream index.

+

The vertex declaration size, in bytes.

+ + bb172864 + unsigned int D3DXGetDeclVertexSize([In, Buffer] const D3DVERTEXELEMENT9* pDecl,[In] unsigned int Stream) + D3DXGetDeclVertexSize +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT D3DXGeneratePMesh([In] ID3DXMesh* pMesh,[In] const unsigned int* pAdjacency,[In] const D3DXATTRIBUTEWEIGHTS* pVertexAttributeWeights,[In] const float* pVertexWeights,[In] unsigned int MinValue,[In] unsigned int Options,[In] ID3DXPMesh** ppPMesh) + D3DXGeneratePMesh + + + +

Tessellates a rectangular higher-order surface patch into a triangle mesh.

+
+

Vertex buffer containing the patch data.

+

Pointer to an array of four floating-point values that identify the number of segments into which each edge of the rectangle patch should be divided when tessellated. See .

+

Vertex declaration structure that defines the vertex data. See .

+

Describes a rectangular patch. See .

+

Pointer to the created mesh. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Use to get the number of output vertices and indices that the tessellation function needs.

+
+ + bb205470 + HRESULT D3DXTessellateRectPatch([In] IDirect3DVertexBuffer9* pVB,[In] const float* pNumSegs,[In] const D3DVERTEXELEMENT9* pdwInDecl,[In] const D3DRECTPATCH_INFO* pRectPatchInfo,[In] ID3DXMesh* pMesh) + D3DXTessellateRectPatch +
+ + +

Returns a flexible vertex format (FVF) code from a declarator.

+
+

Array of elements, describing the FVF code.

+

Pointer to a DWORD value, representing the returned combination of that describes the vertex format returned from the declarator.

+ +

This function will fail for any declarator that does not map directly to an FVF.

+
+ + bb172854 + HRESULT D3DXFVFFromDeclarator([In, Buffer] const D3DVERTEXELEMENT9* pDeclarator,[Out] D3DFVF* pFVF) + D3DXFVFFromDeclarator +
+ + +

Computes a coordinate-axis oriented bounding box.

+
+

Pointer to the first position.

+

Number of vertices.

+

Count or number of bytes between vertices.

+

Pointer to a structure, describing the returned lower-left corner of the bounding box.

+

Pointer to a structure, describing the returned upper-right corner of the bounding box.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: .

+ + bb204920 + HRESULT D3DXComputeBoundingBox([In] const D3DXVECTOR3* pFirstPosition,[In] unsigned int NumVertices,[In] unsigned int dwStride,[In] D3DXVECTOR3* pMin,[In] D3DXVECTOR3* pMax) + D3DXComputeBoundingBox +
+ + +

Creates a skin mesh from another mesh.

+
+

Pointer to an object, the mesh from which to create the skin mesh.

+

The length of the array attached to the BoneId. See .

+

Pointer to an array of bone combinations. See .

+

Address of a reference to an interface representing the created skin mesh object.

+

If the function succeeds, the return value is . If the function fails, the return value can be the following: E_OUTOFMEMORY.

+ + bb172793 + HRESULT D3DXCreateSkinInfoFromBlendedMesh([In] ID3DXBaseMesh* pMesh,[In] unsigned int NumBones,[In] const D3DXBONECOMBINATION* pBoneCombinationTable,[In] ID3DXSkinInfo** ppSkinInfo) + D3DXCreateSkinInfoFromBlendedMesh +
+ + +

Performs tangent frame computations on a mesh. Tangent, binormal, and optionally normal vectors are generated. Singularities are handled as required by grouping edges and splitting vertices.

+
+

Pointer to an input mesh object.

+

Specifies the texture coordinate input semantic. If D3DX_DEFAULT, the function assumes that there are no texture coordinates, and the function will fail unless normal vector calculation is specified.

+

If a mesh has multiple texture coordinates, specifies the texture coordinate to use for the tangent frame computations. If zero, the mesh has only a single texture coordinate.

+

Specifies the output semantic for the type, typically , that describes where the partial derivative with respect to the U texture coordinate will be stored. If D3DX_DEFAULT, then this partial derivative will not be stored.

+

Specifies the semantic index at which to store the partial derivative with respect to the U texture coordinate.

+

Specifies the type, typically , that describes where the partial derivative with respect to the V texture coordinate will be stored. If D3DX_DEFAULT, then this partial derivative will not be stored.

+

Specifies the semantic index at which to store the partial derivative with respect to the V texture coordinate.

+

Specifies the output normal semantic, typically , that describes where the normal vector at each vertex will be stored. If D3DX_DEFAULT, then this normal vector will not be stored.

+

Specifies the semantic index at which to store the normal vector at each vertex.

+

Combination of one or more flags that specify tangent frame computation options. If null, the following options will be specified:

Description Flag Value
Weight the normal vector length by the angle, in radians, subtended by the two edges leaving the vertex.& !( | )
Compute orthogonal Cartesian coordinates from texture coordinates (u, v). See Remarks.& !( | )
Textures are not wrapped in either u or v directions& !( )
Partial derivatives with respect to texture coordinates are normalized.& !( )
Vertices are ordered in a counterclockwise direction around each triangle.& !( )
Use per-vertex normal vectors already present in the input mesh.& !( )

?

If is not set, the input mesh is cloned. The original mesh must therefore have sufficient space to store the computed normal vector and partial derivative data.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh. The number of bytes in this array must be at least 3 * GetNumFaces * sizeof(DWORD).

+

Specifies the maximum cosine of the angle at which two partial derivatives are deemed to be incompatible with each other. If the dot product of the direction of the two partial derivatives in adjacent triangles is less than or equal to this threshold, then the vertices shared between these triangles will be split.

+

Specifies the maximum magnitude of a partial derivative at which a vertex will be deemed singular. As multiple triangles are incident on a point that have nearby tangent frames, but altogether cancel each other out (such as at the top of a sphere), the magnitude of the partial derivative will decrease. If the magnitude is less than or equal to this threshold, then the vertex will be split for every triangle that contains it.

+

Similar to fPartialEdgeThreshold, specifies the maximum cosine of the angle between two normals that is a threshold beyond which vertices shared between triangles will be split. If the dot product of the two normals is less than the threshold, the shared vertices will be split, forming a hard edge between neighboring triangles. If the dot product is more than the threshold, neighboring triangles will have their normals interpolated.

+

Address of a reference to an output mesh object that receives the computed tangent, binormal, and normal vector data.

+

Address of a reference to an output buffer object that receives a mapping of new vertices computed by this method to the original vertices. The buffer is an array of DWORDs, with the array size defined as the number of vertices in ppMeshOut.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

A simplified version of this function is available as .

The computed normal vector at each vertex is always normalized to have unit length.

The most robust solution for computing orthogonal Cartesian coordinates is to not set flags and , so that orthogonal coordinates are computed from both texture coordinates u and v. However, in this case, if either u or v is zero, then the function will compute orthogonal coordinates using or , respectively.

+
+ + bb172745 + HRESULT D3DXComputeTangentFrameEx([In] ID3DXMesh* pMesh,[In] unsigned int dwTextureInSemantic,[In] unsigned int dwTextureInIndex,[In] unsigned int dwUPartialOutSemantic,[In] unsigned int dwUPartialOutIndex,[In] unsigned int dwVPartialOutSemantic,[In] unsigned int dwVPartialOutIndex,[In] unsigned int dwNormalOutSemantic,[In] unsigned int dwNormalOutIndex,[In] unsigned int dwOptions,[In] const unsigned int* pdwAdjacency,[In] float fPartialEdgeThreshold,[In] float fSingularPointThreshold,[In] float fNormalEdgeThreshold,[In] ID3DXMesh** ppMeshOut,[In] ID3DXBuffer** ppVertexMapping) + D3DXComputeTangentFrameEx +
+ + +

Determines if a ray intersects the volume of a sphere's bounding box.

+
+

Pointer to a structure, specifying the center coordinate of the sphere.

+

Radius of the sphere.

+

Pointer to a structure, specifying the origin coordinate of the ray.

+

Pointer to a structure, specifying the direction of the ray. This vector should not be (0,0,0) but does not need to be normalized.

+

Returns TRUE if the ray intersects the volume of the sphere's bounding box. Otherwise, returns .

+ +

determines if the ray intersects the volume of the sphere's bounding box, not just the surface of the sphere.

+
+ + bb204995 + BOOL D3DXSphereBoundProbe([In] const D3DXVECTOR3* pCenter,[In] float Radius,[In] const D3DXVECTOR3* pRayPosition,[In] const D3DXVECTOR3* pRayDirection) + D3DXSphereBoundProbe +
+ + +

Create a UV atlas for a mesh.

+
+

Pointer to an input mesh (see ) which contains the object geometry for calculating the atlas. At a minimum, the mesh must contain position data and 2D texture coordinates.

+

The maximum number of charts to partition the mesh into. See remarks about the partitioning modes. Use 0 to tell D3DX that the atlas should be parameterized based on stretch.

+

The amount of stretching allowed. 0 means no stretching is allowed, 1 means any amount of stretching can be used.

+

Texture width.

+

Texture height.

+

The minimum distance, in texels, between two charts on the atlas. The gutter is always scaled by the width; so, if a gutter of 2.5 is used on a 512x512 texture, then the minimum distance between two charts is 2.5 / 512.0 texels.

+

Zero-based texture coordinate index that identifies which set of texture coordinates to use.

+

A reference to an array of adjacency data. with 3 DWORDs per face, indicating which triangles are adjacent to each other (see ).

+

An array with 3 DWORDS per face. Each face indicates if an edge is false or not. A non-false edge is indicated by -1, a false edge is indicated by any other value. This enables the parameterization of a mesh of quads where the edges down the middle of each quad will not be cut.

+

A reference to an array of integrated metric tensors that describes how to stretch a triangle (see IntegratedMetricTensor).

+

A reference to a callback function (see LPD3DXUVATLASCB) that is useful for monitoring progress.

+

Specify how often D3DX will call the callback; a reasonable default value is 0.0001f.

+

Pointer to a user-defined value which is passed to the callback function; typically used by an application to pass a reference to a data structure that provides context information for the callback function.

+

Specify the quality of the charts generated. See D3DXUVATLAS.

+

Pointer to the created mesh with the atlas (see ).

+

A reference to an array of the final face-partitioning data. Each element contains one DWORD per face (see ).

+

A reference to an array of remapped vertices. Each array element identifies the original vertex that each final vertex came from (if the vertex was split during remapping). Each array element contains one DWORD per vertex.

+

A reference to the maximum stretch value generated by the atlas algorithm. The range is between 0.0 and 1.0.

+

A reference to the number of charts created by the atlas algorithm. If dwMaxChartNumber is too low, this parameter will return the minimum number of charts required to create an atlas.

+

If the function succeeds, the return value is ; otherwise, the value is .

+ +

can partition mesh geometry two ways:

  • Based on the number of charts
  • Based on the maximum allowed stretch. If the maximum allowed stretch is 0, each triangle will likely be in its own chart.
+
+ + bb205479 + HRESULT D3DXUVAtlasCreate([In] ID3DXMesh* pMesh,[In] unsigned int uMaxChartNumber,[In] float fMaxStretch,[In] unsigned int uWidth,[In] unsigned int uHeight,[In] float fGutter,[In] unsigned int dwTextureIndex,[In] const unsigned int* pdwAdjacency,[In] const unsigned int* pdwFalseEdgeAdjacency,[In] const float* pfIMTArray,[In] __function__stdcall* pStatusCallback,[In] float fCallbackFrequency,[In] void* pUserContext,[In] unsigned int dwOptions,[In] ID3DXMesh** ppMeshOut,[In] ID3DXBuffer** ppFacePartitioning,[In] ID3DXBuffer** ppVertexRemapArray,[In] float* pfMaxStretchOut,[In] unsigned int* puNumChartsOut) + D3DXUVAtlasCreate +
+ + +

Create a UV atlas for a mesh.

+
+

Pointer to an input mesh (see ) that contains the object geometry for calculating the atlas. At a minimum, the mesh must contain position data and 2D texture coordinates.

+

The maximum number of charts to partition the mesh into. See remarks about the partitioning modes. Use 0 to tell D3DX that the atlas should be parameterized based on stretch.

+

The amount of stretching allowed. 0 means no stretching is allowed, 1 means any amount of stretching can be used.

+

Zero-based texture coordinate index that identifies which set of texture coordinates to use.

+

A reference to an array of adjacency data with 3 DWORDs per face, indicating which triangles are adjacent to each other (see ).

+

An array with 3 DWORDS per face. Each face indicates if an edge is false or not. A non-false edge is indicated by -1, a false edge is indicated by any other value. This enables the parameterization of a mesh of quads where the edges down the middle of each quad will not be cut.

+

A reference to an array of integrated metric tensors that describes how to stretch a triangle (see IntegratedMetricTensor).

+

A reference to a callback function (see LPD3DXUVATLASCB) that is useful for monitoring progress.

+

Specify how often D3DX will call the callback; a reasonable default value is 0.0001f.

+

Pointer to a user-defined value that is passed to the callback function; typically used by an application to pass a reference to a data structure that provides context information for the callback function.

+

Specify the quality of the charts generated by combining one or more D3DXUVATLAS flags.

+

Pointer to the created mesh with the atlas (see ).

+

A reference to an array of the final face-partitioning data. Each element contains one DWORD per face (see ).

+

A reference to an array of remapped vertices. Each array element identifies the original vertex each final vertex came from (if the vertex was split during remapping). Each array element contains one DWORD per vertex.

+

Address of a reference to an interface. This buffer will contain an array of three DWORDs per face that specify the three neighbors for each face in the output mesh. This parameter must not be null, because the subsequent call to () requires it.

+

A reference to the maximum stretch value generated by the atlas algorithm. The range is between 0.0 and 1.0.

+

A reference to the number of charts created by the atlas algorithm. If dwMaxChartNumber is too low, this parameter will return the minimum number of charts required to create an atlas.

+

If the function succeeds, the return value is ; otherwise, the value is .

+ +

is similar to , except that does not performing the final packing step.

+
+ + bb205481 + HRESULT D3DXUVAtlasPartition([In] ID3DXMesh* pMesh,[In] unsigned int uMaxChartNumber,[In] float fMaxStretch,[In] unsigned int dwTextureIndex,[In] const unsigned int* pdwAdjacency,[In] const unsigned int* pdwFalseEdgeAdjacency,[In] const float* pfIMTArray,[In] __function__stdcall* pStatusCallback,[In] float fCallbackFrequency,[In] void* pUserContext,[In] unsigned int dwOptions,[In] ID3DXMesh** ppMeshOut,[In] ID3DXBuffer** ppFacePartitioning,[In] ID3DXBuffer** ppVertexRemapArray,[In] ID3DXBuffer** ppPartitionResultAdjacency,[In] float* pfMaxStretchOut,[In] unsigned int* puNumChartsOut) + D3DXUVAtlasPartition +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT D3DXCreatePMeshFromStream([In] IStream* pStream,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pNumMaterials,[In] ID3DXPMesh** ppPMesh) + D3DXCreatePMeshFromStream + + + +

Calculates per-triangle IMT's from a texture mapped onto a mesh, to be used optionally as input to the D3DX UVAtlas Functions.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is ; otherwise, the value is .

+ +

Given a texture that maps over the surface of the mesh, the algorithm computes the IMT for each face. This will cause triangles containing lower-frequency signal data to take up less space in the final texture atlas when parameterized with the UVAtlas functions. The texture is assumed to be interpolated over the mesh bilinearly.

+
+ + bb172740 + HRESULT D3DXComputeIMTFromTexture([In] ID3DXMesh* pMesh,[In] IDirect3DTexture9* pTexture,[In] unsigned int dwTextureIndex,[In] unsigned int dwOptions,[In] __function__stdcall* pStatusCallback,[In] void* pUserContext,[In] ID3DXBuffer** ppIMTData) + D3DXComputeIMTFromTexture +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT D3DXCreateSPMesh([In] ID3DXMesh* pMesh,[In] const unsigned int* pAdjacency,[In] const D3DXATTRIBUTEWEIGHTS* pVertexAttributeWeights,[In] const float* pVertexWeights,[In] ID3DXSPMesh** ppSMesh) + D3DXCreateSPMesh + + + +

Concatenates a group of meshes into one common mesh. This method can optionally apply a matrix transformation to each input mesh and its texture coordinates.

+
+

Array of input mesh references (see ). The number of elements in the array is NumMeshes.

+

Number of input meshes to concatenate.

+

Mesh creation options; this is a combination of one or more D3DXMESH flags. The mesh creation options are equivalent to the options parameter required by .

+

Optional array of geometry transforms. The number of elements in the array is NumMeshes; each element is a transformation matrix (see ). May be null.

+

Optional array of texture transforms. The number of elements in the array is NumMeshes; each element is a transformation matrix (see ). This parameter may be null.

+

Optional reference to a vertex declaration (see ). This parameter may be null.

+

Pointer to a device that is used to create the new mesh.

+

Address of a reference to the mesh created (see ).

+

If the function succeeds, the return value is . If the function fails, the return value can be one of these: , E_OUTOFMEMORY.

+ +

If no vertex declaration is given as part of the Options mesh creation parameter, the method will generate a union of all of the vertex declarations of the submeshes, promoting channels and types if necessary. The method will create an attribute table from attribute tables of the input meshes. To ensure creation of an attribute table, call Optimize with Flags set to and (see D3DXMESHOPT).

+
+ + bb172746 + HRESULT D3DXConcatenateMeshes([In] ID3DXMesh** ppMeshes,[In] unsigned int NumMeshes,[In] unsigned int Options,[In] const D3DXMATRIX* pGeomXForms,[In] const D3DXMATRIX* pTextureXForms,[In, Buffer] const D3DVERTEXELEMENT9* pDecl,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXMesh** ppMeshOut) + D3DXConcatenateMeshes +
+ + +

Determines whether a ray intersects the volume of a box's bounding box.

+
+

Pointer to a , describing the lower-left corner of the bounding box. See Remarks.

+

Pointer to a structure, describing the upper-right corner of the bounding box. See Remarks.

+

Pointer to a structure, specifying the origin coordinate of the ray.

+

Pointer to a structure, specifying the direction of the ray. This vector should not be (0,0,0) but does not need to be normalized.

+

Returns TRUE if the ray intersects the volume of the box's bounding box. Otherwise, returns .

+ +

determines if the ray intersects the volume of the box's bounding box, not just the surface of the box.

The values passed to are xmin, xmax, ymin, ymax, zmin, and zmax. Thus, the following defines the corners of the bounding box.

 xmax, ymax, zmax	
+            xmax, ymax, zmin	
+            xmax, ymin, zmax	
+            xmax, ymin, zmin	
+            xmin, ymax, zmax	
+            xmin, ymax, zmin	
+            xmin, ymin, zmax	
+            xmin, ymin, zmin	
+            

The depth of the bounding box in the z direction is zmax - zmin, in the y direction is ymax - ymin, and in the x direction is xmax - xmin. For example, with the following minimum and maximum vectors, min (-1, -1, -1) and max (1, 1, 1), the bounding box is defined in the following manner.

 1,  1,  1 1,  1, -1 1, -1,  1 1, -1, -1	
+            -1,  1,  1	
+            -1,  1, -1	
+            -1, -1,  1	
+            -1, -1, -l	
+            
+
+ + bb204916 + BOOL D3DXBoxBoundProbe([In] const D3DXVECTOR3* pMin,[In] const D3DXVECTOR3* pMax,[In] const D3DXVECTOR3* pRayPosition,[In] const D3DXVECTOR3* pRayDirection) + D3DXBoxBoundProbe +
+ + +

Loads a mesh from a resource.

+
+

Handle to the module where the resource is located, or null for the module associated with the image the operating system used to create the current process. See remarks.

+

Pointer to a string that specifies the resource to create the mesh from. See remarks.

+

Pointer to a string that specifies the resource type. See remarks.

+

Combination of one or more flags from the D3DXMESH enumeration that specify creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh.

+

Address of a reference to an interface. When this method returns, this parameter is filled with an array of structures, containing information saved in the DirectX file.

+

Pointer to a buffer containing an array of effect instances, one per attribute group in the returned mesh. An effect instance is a particular instance of state information used to initialize an effect. See . For more information about accessing the buffer, see .

+

Pointer to the number of structures in the ppMaterials array, when the method returns.

+

Address of a reference to an interface, representing the loaded mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

See FindResource to find out more about the Module, Name and Type parameters.

All the meshes in the file will be collapsed into one output mesh. If the file contains a frame hierarchy, all the transformations will be applied to the mesh.

For mesh files that do not contain effect instance information, default effect instances will be generated from the material information in the .x file. A default effect instance will have default values that correspond to the members of the structure.

The default texture name is also filled in, but is handled differently. The name will be Texture0@Name, which corresponds to an effect variable by the name of "Texture0" with an annotation called "Name." This will contain the string file name for the texture.

+
+ + bb172893 + HRESULT D3DXLoadMeshFromXResource([In] HINSTANCE Module,[In] const char* Name,[In] const char* Type,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppAdjacency,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pNumMaterials,[In] ID3DXMesh** ppMesh) + D3DXLoadMeshFromXResource +
+ + +

Generates a simplified mesh using the provided weights that come as close as possible to the given MinValue.

+
+

Pointer to an interface, representing the source mesh.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh to be simplified.

+

Pointer to a structure, containing the weight for each vertex component. If this parameter is set to null, a default structure is used. See Remarks.

+

Pointer to an array of vertex weights. If this parameter is set to null, all vertex weights are set to 1.0.

+

Number of vertices or faces, depending on the flag set in the Options parameter, by which to simplify the source mesh.

+

Specifies simplification options for the mesh. One of the flags in D3DXMESHSIMP can be set.

+

Address of a reference to an interface, representing the returned simplification mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function generates a mesh that has MinValue vertices or faces.

If the simplification process cannot reduce the mesh to MinValue, the call still succeeds because MinValue is a desired minimum, not an absolute minimum.

If pVertexAttributeWeights is set to null, the following values are assigned to the default structure.

  AttributeWeights; AttributeWeights.Position  = 1.0;	
+            AttributeWeights.Boundary =  1.0;	
+            AttributeWeights.Normal   =  1.0;	
+            AttributeWeights.Diffuse  =  0.0;	
+            AttributeWeights.Specular =  0.0;	
+            AttributeWeights.Tex[8]   =  {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};	
+            

This default structure is what most applications should use because it considers only geometric and normal adjustment. Only in special cases will the other member fields need to be modified.

+
+ + bb205463 + HRESULT D3DXSimplifyMesh([In] ID3DXMesh* pMesh,[In] const unsigned int* pAdjacency,[In] const D3DXATTRIBUTEWEIGHTS* pVertexAttributeWeights,[In] const float* pVertexWeights,[In] unsigned int MinValue,[In] unsigned int Options,[In] ID3DXMesh** ppMesh) + D3DXSimplifyMesh +
+ + +

Creates a mesh object using a flexible vertex format (FVF) code.

+
+

Number of faces for the mesh. The valid range for this number is greater than 0, and one less than the max DWORD value, typically 232 - 1, because the last index is reserved.

+

Number of vertices for the mesh. This parameter must be greater than 0.

+

Combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh.

+

Combination of that describes the vertex format for the returned mesh. This function does not support .

+

Pointer to an interface, the device object to be associated with the mesh.

+

Address of a reference to an interface, representing the created mesh object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb172781 + HRESULT D3DXCreateMeshFVF([In] unsigned int NumFaces,[In] unsigned int NumVertices,[In] unsigned int Options,[In] D3DFVF FVF,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXMesh** ppMesh) + D3DXCreateMeshFVF +
+ + +

Calculate per-triangle IMT's from from per-vertex data. This function allows you to calculate the IMT based off of any value in a mesh (color, normal, etc).

+
+

A reference to an input mesh (see ) which contains the object geometry for calculating the IMT.

+

A reference to an array of per-vertex data from which IMT will be computed. The array size is uSignalStride * v, where v is the number of vertices in the mesh.

+

The number of floats per vertex.

+

The number of bytes per vertex in the array. This must be a multiple of sizeof(float)

+

Texture wrap options. This is a combination of one or more FLAGS.

+

A reference to a callback function to monitor IMT computation progress.

+

A reference to a user-defined variable which is passed to the status callback function. Typically used by an application to pass a reference to a data structure that provides context information for the callback function.

+

A reference to the buffer (see ) containing the returned IMT array. This array can be provided as input to the D3DX UVAtlas Functions to prioritize texture-space allocation in the texture parameterization.

+

If the function succeeds, the return value is ; otherwise, the value is .

+ + bb172738 + HRESULT D3DXComputeIMTFromPerVertexSignal([In] ID3DXMesh* pMesh,[In] const float* pfVertexSignal,[In] unsigned int uSignalDimension,[In] unsigned int uSignalStride,[In] unsigned int dwOptions,[In] __function__stdcall* pStatusCallback,[In] void* pUserContext,[In] ID3DXBuffer** ppIMTData) + D3DXComputeIMTFromPerVertexSignal +
+ + +

Generates an optimized vertex remapping for a triangle list. This function is commonly used after applying the face remapping generated by .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

By default, a mesh uses 16 bit indices when it is created unless the application specifies otherwise. To check whether an existing mesh uses 16-bit or 32-bit indices, call and check for the flag.

+
+ + bb205377 + HRESULT D3DXOptimizeVertices([In] const void* pbIndices,[In] unsigned int cFaces,[In] unsigned int cVertices,[In] BOOL b32BitIndices,[In, Buffer] int* pVertexRemap) + D3DXOptimizeVertices +
+ + +

Loads a mesh from a DirectX .x file.

+
+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Combination of one or more flags from the D3DXMESH enumeration, which specifies creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Pointer to a buffer that contains adjacency data. The adjacency data contains an array of three DWORDs per face that specify the three neighbors for each face in the mesh. For more information about accessing the buffer, see .

+

Pointer to a buffer containing materials data. The buffer contains an array of structures, containing information from the DirectX file. For more information about accessing the buffer, see .

+

Pointer to a buffer containing an array of effect instances, one per attribute group in the returned mesh. An effect instance is a particular instance of state information used to initialize an effect. See . For more information about accessing the buffer, see .

+

Pointer to the number of structures in the ppMaterials array, when the method returns.

+

Address of a reference to an interface, representing the loaded mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXLoadMeshFromXA because ANSI strings are being used.

All the meshes in the file will be collapsed into one output mesh. If the file contains a frame hierarchy, all the transformations will be applied to the mesh.

For mesh files that do not contain effect instance information, default effect instances will be generated from the material information in the .x file. A default effect instance will have default values that correspond to the members of the structure.

The default texture name is also filled in, but is handled differently. The name will be Texture0@Name, which corresponds to an effect variable by the name of "Texture0" with an annotation called "Name." This will contain the string file name for the texture.

+
+ + bb172890 + HRESULT D3DXLoadMeshFromXof([In] ID3DXFileData* pxofMesh,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppAdjacency,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pNumMaterials,[In] ID3DXMesh** ppMesh) + D3DXLoadMeshFromXof +
+ + +

Creates a mesh from a control-patch mesh.

+
+

Patch information structure. For more information, see .

+

Number of patches.

+

Number of control vertices in the patch.

+

Unused. Reserved for later use.

+

Array of elements, describing the vertex format for the returned mesh.

+

Pointer the device that creates the patch mesh. See .

+

Pointer to the object that is created.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This method takes an input patch mesh and converts it to a tessellated mesh. Patch meshes use 16-bit index buffers. Therefore, indices to LockIndexBuffer are 16 bits.

+
+ + bb172783 + HRESULT D3DXCreatePatchMesh([In] const D3DXPATCHINFO* pInfo,[In] unsigned int dwNumPatches,[In] unsigned int dwNumVertices,[In] unsigned int dwOptions,[In, Buffer] const D3DVERTEXELEMENT9* pDecl,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXPatchMesh** pPatchMesh) + D3DXCreatePatchMesh +
+ + +

Gets the size of the rectangle patch.

+
+

Number of segments per edge to tessellate.

+

Pointer to a DWORD that contains the number of triangles in the patch.

+

Pointer to a DWORD that contains the number of vertices in the patch.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb205423 + HRESULT D3DXRectPatchSize([In] const float* pfNumSegs,[Out] unsigned int* pdwTriangles,[Out] unsigned int* pdwVertices) + D3DXRectPatchSize +
+ + +

Tessellates a triangular higher-order surface patch into a triangle mesh.

+
+

Vertex buffer containing the patch data.

+

Pointer to an array of three floating-point values that identify the number of segments into which each edge of the triangle patch should be divided when tessellated. See .

+

Vertex declaration structure that defines the vertex data. See .

+

Describes a triangle patch. See .

+

Pointer to the created mesh. See .

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Use to get the number of output vertices and indices that the tessellation function needs.

+
+ + bb205471 + HRESULT D3DXTessellateTriPatch([In] IDirect3DVertexBuffer9* pVB,[In] const float* pNumSegs,[In] const D3DVERTEXELEMENT9* pInDecl,[In] const D3DTRIPATCH_INFO* pTriPatchInfo,[In] ID3DXMesh* pMesh) + D3DXTessellateTriPatch +
+ + +

Computes a bounding sphere for the mesh.

+
+

Pointer to first position.

+

Number of vertices.

+

Number of bytes between position vectors. Use GetNumBytesPerVertex, , or to get the vertex stride.

+

structure, defining the coordinate center of the returned bounding sphere.

+

Radius of the returned bounding sphere.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: .

+ + bb172736 + HRESULT D3DXComputeBoundingSphere([In] const D3DXVECTOR3* pFirstPosition,[In] unsigned int NumVertices,[In] unsigned int dwStride,[In] D3DXVECTOR3* pCenter,[In] float* pRadius) + D3DXComputeBoundingSphere +
+ + +

Loads a mesh from a DirectX .x file.

+
+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Combination of one or more flags from the D3DXMESH enumeration, which specifies creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Pointer to a buffer that contains adjacency data. The adjacency data contains an array of three DWORDs per face that specify the three neighbors for each face in the mesh. For more information about accessing the buffer, see .

+

Pointer to a buffer containing materials data. The buffer contains an array of structures, containing information from the DirectX file. For more information about accessing the buffer, see .

+

Pointer to a buffer containing an array of effect instances, one per attribute group in the returned mesh. An effect instance is a particular instance of state information used to initialize an effect. See . For more information about accessing the buffer, see .

+

Pointer to the number of structures in the ppMaterials array, when the method returns.

+

Address of a reference to an interface, representing the loaded mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXLoadMeshFromXA because ANSI strings are being used.

All the meshes in the file will be collapsed into one output mesh. If the file contains a frame hierarchy, all the transformations will be applied to the mesh.

For mesh files that do not contain effect instance information, default effect instances will be generated from the material information in the .x file. A default effect instance will have default values that correspond to the members of the structure.

The default texture name is also filled in, but is handled differently. The name will be Texture0@Name, which corresponds to an effect variable by the name of "Texture0" with an annotation called "Name." This will contain the string file name for the texture.

+
+ + bb172890 + HRESULT D3DXLoadMeshFromXW([In] const wchar_t* pFilename,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppAdjacency,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pNumMaterials,[In] ID3DXMesh** ppMesh) + D3DXLoadMeshFromXW +
+ + +

Loads a mesh from memory.

+
+

Pointer to the memory buffer which contains the mesh data.

+

Size of the file in memory, in bytes.

+

Combination of one or more flags from the D3DXMESH enumeration, specifying creation options for the mesh.

+

Pointer to an interface, the device object associated with the mesh.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh.

+

Address of a reference to an interface. When this method returns, this parameter is filled with an array of structures, containing information saved in the DirectX file.

+

Pointer to a buffer containing an array of effect instances, one per attribute group in the returned mesh. An effect instance is a particular instance of state information used to initialize an effect. See . For more information about accessing the buffer, see .

+

Pointer to the number of structures in the ppMaterials array, when the method returns.

+

Address of a reference to an interface, representing the loaded mesh.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

All the meshes in the file will be collapsed into one output mesh. If the file contains a frame hierarchy, all the transformations will be applied to the mesh.

For mesh files that do not contain effect instance information, default effect instances will be generated from the material information in the .x file. A default effect instance will have default values that correspond to the members of the structure.

The default texture name is also filled in, but is handled differently. The name will be Texture0@Name, which corresponds to an effect variable by the name of "Texture0" with an annotation called "Name." This will contain the string file name for the texture.

+
+ + bb172891 + HRESULT D3DXLoadMeshFromXInMemory([In] const void* Memory,[In] unsigned int SizeOfMemory,[In] unsigned int Options,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXBuffer** ppAdjacency,[In] ID3DXBuffer** ppMaterials,[In] ID3DXBuffer** ppEffectInstances,[In] unsigned int* pNumMaterials,[In] ID3DXMesh** ppMesh) + D3DXLoadMeshFromXInMemory +
+ + +

Convert the specified mesh subset into a series of strips.

+
+

Pointer to an interface, representing the mesh to convert to a strip.

+

Attribute ID of the mesh subset to convert to strips.

+

Combination of one or more flags from the D3DXMESH enumeration, specifying options for creating the index buffer. Cannot be . The index buffer will be created with 32-bit or 16-bit indices depending on the format of the index buffer of the mesh specified by the MeshIn parameter.

+

Pointer to an interface, representing index buffer containing the strip.

+

Number of indices in the buffer returned in the ppIndexBuffer parameter.

+

Buffer containing an array of one DWORD per strip, which specifies the number of triangles in the that strip.

+

Number of individual strips in the index buffer and corresponding strip length array.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

Before running this function, call Optimize or , with the flag set.

+
+ + bb172750 + HRESULT D3DXConvertMeshSubsetToStrips([In] ID3DXBaseMesh* MeshIn,[In] unsigned int AttribId,[In] unsigned int IBOptions,[In] IDirect3DIndexBuffer9** ppIndexBuffer,[In] unsigned int* pNumIndices,[In] ID3DXBuffer** ppStripLengths,[In] unsigned int* pNumStrips) + D3DXConvertMeshSubsetToStrips +
+ + +

Calculate per-triangle IMT's from per-texel data. This function is similar to , but it uses a float array to pass in the data, and it can calculate higher dimensional values than 4.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is ; otherwise, the value is .

+ + bb172737 + HRESULT D3DXComputeIMTFromPerTexelSignal([In] ID3DXMesh* pMesh,[In] unsigned int dwTextureIndex,[In] float* pfTexelSignal,[In] unsigned int uWidth,[In] unsigned int uHeight,[In] unsigned int uSignalDimension,[In] unsigned int uComponents,[In] unsigned int dwOptions,[In] __function__stdcall* pStatusCallback,[In] void* pUserContext,[In] ID3DXBuffer** ppIMTData) + D3DXComputeIMTFromPerTexelSignal +
+ + +

Gets the size of the triangle patch.

+
+

Number of segments per edge to tessellate.

+

Pointer to a DWORD that contains the number of triangles in the patch.

+

Pointer to a DWORD that contains the number of vertices in the triangle patch.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb205476 + HRESULT D3DXTriPatchSize([In] const float* pfNumSegs,[Out] unsigned int* pdwTriangles,[Out] unsigned int* pdwVertices) + D3DXTriPatchSize +
+ + +

Computes unit normals for each vertex in a mesh. Provided to support legacy applications. Use for better results.

+
+ No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The input mesh must have the flag specified in its flexible vertex format (FVF).

A normal for a vertex is generated by averaging the normals of all faces that share that vertex.

If adjacency is provided, replicated vertices are ignored and "smoothed" over. If adjacency is not provided, replicated vertices will have normals averaged in from only the faces explicitly referencing them.

This function simply calls with the following input parameters:

 ( pMesh, D3DX_DEFAULT, 0, D3DX_DEFAULT, 0, D3DX_DEFAULT, 0, , 0,  | , pAdjacency, -1.01f, -0.01f, -1.01f, null, null);	
+            
+
+ + bb172742 + HRESULT D3DXComputeNormals([In] ID3DXBaseMesh* pMesh,[In] const unsigned int* pAdjacency) + D3DXComputeNormals +
+ + +

Disassemble a shader.

Note??Instead of using this legacy function, we recommend that you use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172820 + HRESULT D3DXDisassembleShader([In] const void* pShader,[In] BOOL EnableColorCode,[In] const char* pComments,[In] ID3DXBuffer** ppDisassembly) + D3DXDisassembleShader +
+ + +

Preprocesses a shader without performing compilation. This resolves all #defines and #includes, providing a self-contained shader for subsequent compilation.

Note??Instead of using this legacy function, we recommend that you use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb205398 + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + D3DXPreprocessShader +
+ + +

Compile a shader file.

Note??Instead of using this legacy function, we recommend that you compile offline by using the Fxc.exe command-line compiler or use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_NOTIMPL, E_OUTOFMEMORY.

E_NOTIMPL is returned if you're using 1.1 shaders (vs_1_1and ps_1_1).

+ + bb172732 + HRESULT D3DXCompileShaderFromFileW([In] const wchar_t* pSrcFile,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + D3DXCompileShaderFromFileW +
+ + +

Creates a texture shader object from the compiled shader.

+
+

Pointer to the function DWORD stream.

+

Returns an object which can be used to procedurally fill the contents of a texture using the functions.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172808 + HRESULT D3DXCreateTextureShader([In] const unsigned int* pFunction,[In] ID3DXTextureShader** ppTextureShader) + D3DXCreateTextureShader +
+ + +

Get the semantics for all shader output elements.

+
+

Pointer to the shader function DWORD stream.

+

Pointer to an array of structures. The function will fill this array with the semantics for each output element referenced by the shader. This array is assumed to contain at least MAXD3DDECLLENGTH elements. However, calling with pSemantics = null will return the number of elements needed for pCount.

+

Returns the number of elements in pSemantics.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172873 + HRESULT D3DXGetShaderOutputSemantics([In] const void* pFunction,[In, Out, Buffer] D3DXSEMANTIC* pSemantics,[InOut] unsigned int* pCount) + D3DXGetShaderOutputSemantics +
+ + +

Gets the semantics for the shader inputs. Use this method to determine the input vertex format.

+
+

Pointer to the shader function DWORD stream.

+

Pointer to an array of structures. The function will fill this array with the semantics for each input element referenced by the shader. This array is assumed to contain at least MAXD3DDECLLENGTH elements. However, calling with pSemantics = null will return the number of elements needed for pCount.

+

Returns the number of elements in pSemantics.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

Use to return a list of input semantics required by the shader. This is the way to find out what the input vertex format is for a high-level shader language (HLSL) shader. If the shader has additional inputs that your vertex declaration is missing, you could create an extra vertex stream that has a stride of 0 that has the missing components with default values. For instance, this technique could be used to provide default vertex color for models that do not specify it.

+
+ + bb172872 + HRESULT D3DXGetShaderInputSemantics([In] const void* pFunction,[In, Out, Buffer] D3DXSEMANTIC* pSemantics,[InOut] unsigned int* pCount) + D3DXGetShaderInputSemantics +
+ + +

Returns the name of the highest high-level shader language (HLSL) profile supported by a given device.

+
+

Pointer to the device. See .

+

The HLSL profile name.

If the device does not support pixel shaders then the function returns null.

+ +

A shader profile specifies the assembly shader version to use and the capabilities available to the HLSL compiler when compiling a shader. The following table lists the pixel shader profiles that are supported.

Shader ProfileDescription
ps_1_1Compile to ps_1_1 version.
ps_1_2Compile to ps_1_2 version.
ps_1_3Compile to ps_1_3 version.
ps_1_4Compile to ps_1_4 version.
ps_2_0Compile to ps_2_0 version.
ps_2_aSame as the ps_2_0 profile, with the following additional capabilities available for the compiler to target:
  • Number of Temporary Registers (r#) is greater than or equal to 22.
  • Arbitrary source swizzle.
  • Gradient instructions: dsx, dsy.
  • Predication.
  • No dependent texture read limit.
  • No limit for the number of texture instructions.
ps_2_bSame as the ps_2_0 profile, with the following additional capabilities available for the compiler to target:
  • Number of Temporary Registers (r#) is greater than or equal to 32.
  • No limit for the number of texture instructions.
ps_3_0Compile to ps_3_0 version.

?

For more information about the differences between shader versions, see Pixel Shader Differences.

+
+ + bb172870 + const char* D3DXGetPixelShaderProfile([In] IDirect3DDevice9* pDevice) + D3DXGetPixelShaderProfile +
+ + +

Searches through a shader for a particular comment. The comment is identified by a four-character code (FOURCC) in the first DWORD of the comment.

+
+

Pointer to the shader function DWORD stream.

+

FOURCC code that identifies the comment block. See FourCC Formats.

+

Returns a reference to the comment data (not including the comment token and FOURCC code). This value can be null.

+

Returns the size of the comment data in bytes. This value can be null.

+

If the function succeeds, the return value is . If the comment is not found, and no other error has occurred, S_FALSE is returned.

+ + bb172838 + HRESULT D3DXFindShaderComment([In] const void* pFunction,[In] unsigned int FourCC,[Out] const void** ppData,[Out] unsigned int* pSizeInBytes) + D3DXFindShaderComment +
+ + +

Assemble a shader.

+
+

Handle to a module containing the effect description. If this parameter is null, the current module will be used.

+

Pointer to a string that specifies the resource name. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

An optional null terminated array of structures. This value may be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

Compile options identified by various flags. The Direct3D 10 HLSL compiler is now the default. See Flags for details.

+

Returns a buffer containing the created shader. This buffer contains the compiled shader code, as well as any embedded debug and symbol table information.

+

Returns a buffer containing a listing of errors and warnings that were encountered during the compile. These are the same messages the debugger displays when running in debug mode. This value may be null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXAssembleShaderFromResourceA because ANSI strings are being used.

+
+ + bb172709 + HRESULT D3DXAssembleShaderFromResourceW([In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + D3DXAssembleShaderFromResourceW +
+ + +

Assemble a shader.

+
+

Pointer to a memory buffer that contains the shader data.

+

Length of the effect data, in bytes.

+

An optional null terminated array of structures. This value may be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

Compile options identified by various flags. The Direct3D 10 HLSL compiler is now the default. See Flags for details.

+

Returns a buffer containing the created shader. This buffer contains the compiled shader code, as well as any embedded debug and symbol table information.

+

Returns a buffer containing a listing of errors and warnings that were encountered during the compile. These are the same messages the debugger displays when running in debug mode. This value may be null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172707 + HRESULT D3DXAssembleShader([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + D3DXAssembleShader +
+ + +

Compile a shader file.

Note??Instead of using this legacy function, we recommend that you compile offline by using the Fxc.exe command-line compiler or use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172731 + HRESULT D3DXCompileShader([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + D3DXCompileShader +
+ + +

Get the sampler names referenced in a shader.

+
+

Pointer to the shader function DWORD stream.

+

Pointer to an array of LPCSTRs. The function will fill this array with references to the sampler names contained within pFunction. The maximum array size is the maximum number of sampler registers (16 for vs_3_0 and ps_3_0).

To find the number of samplers used, check pCount after calling with pSamplers = null.

+

Returns the number of samplers referenced by the shader.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172874 + HRESULT D3DXGetShaderSamplers([In] const void* pFunction,[In, Out, Buffer] const void** pSamplers,[InOut] unsigned int* pCount) + D3DXGetShaderSamplers +
+ + +

Gets the shader-constant table embedded inside a shader.

+
+

Pointer to the function DWORD stream.

+

Returns the constant table interface (see ) that manages the constant table.

+ +

A constant table is generated by and embedded in the shader body. If you need additional virtual address space, see .

+
+ + bb172871 + HRESULT D3DXGetShaderConstantTable([In] const void* pFunction,[Out] ID3DXConstantTable** ppConstantTable) + D3DXGetShaderConstantTable +
+ + +

Assemble a shader.

+
+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

An optional null terminated array of structures. This value may be null.

+

Optional interface reference, , to use for handling #include directives. If this value is null, #includes will either be honored when compiling from a file or will cause an error when compiled from a resource or memory.

+

Compile options identified by various flags. The Direct3D 10 HLSL compiler is now the default. See Flags for details.

+

Returns a buffer containing the created shader. This buffer contains the compiled shader code, as well as any embedded debug and symbol table information.

+

Returns a buffer containing a listing of errors and warnings that were encountered during the compile. These are the same messages the debugger displays when running in debug mode. This value may be null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXAssembleShaderFromFileA because ANSI strings are being used.

+
+ + bb172708 + HRESULT D3DXAssembleShaderFromFileW([In] const wchar_t* pSrcFile,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + D3DXAssembleShaderFromFileW +
+ + +

Gets the shader-constant table embedded inside a shader.

+
+

Pointer to the function DWORD stream.

+

Use the D3DXCONSTTABLE_LARGEADDRESSAWARE flag to access up to 4 GB of virtual address space (instead of the default of 2 GB). If you do not need the additional virtual address space, use .

+

Returns the constant table interface (see ) that manages the constant table.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

A constant table is generated by and embedded in the shader body.

+
+ + bb943959 + HRESULT D3DXGetShaderConstantTableEx([In] const void* pFunction,[In] unsigned int Flags,[In] ID3DXConstantTable** ppConstantTable) + D3DXGetShaderConstantTableEx +
+ + +

Returns the name of the highest high-level shader language (HLSL) profile supported by a given device.

+
+

Pointer to the device. See .

+

The HLSL profile name.

If the device does not support vertex shaders then the function returns null.

+ +

A shader profile specifies the assembly shader version to use and the capabilities available to the HLSL compiler when compiling a shader. The following table lists the vertex shader profiles that are supported.

Shader ProfileDescription
vs_1_1Compile to vs_1_1 version.
vs_2_0Compile to vs_2_0 version.
vs_2_aSame as the vs_2_0 profile, with the following additional capabilities available for the compiler to target:
  • Number of Temporary Registers (r#) is greater than or equal to 13.
  • Dynamic flow control instruction.
  • Predication.
vs_3_0Compile to vs_3_0 version.

?

For more information about the differences between shader versions, see Vertex Shader Differences.

+
+ + bb172877 + const char* D3DXGetVertexShaderProfile([In] IDirect3DDevice9* pDevice) + D3DXGetVertexShaderProfile +
+ + +

Preprocesses a shader resource without performing compilation. This resolves all #defines and #includes, providing a self-contained shader for subsequent compilation.

Note??Instead of using this legacy function, we recommend that you use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb205400 + HRESULT D3DXPreprocessShaderFromResourceW([In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + D3DXPreprocessShaderFromResourceW +
+ + +

Compile a shader file.

Note??Instead of using this legacy function, we recommend that you compile offline by using the Fxc.exe command-line compiler or use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb172733 + HRESULT D3DXCompileShaderFromResourceW([In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + D3DXCompileShaderFromResourceW +
+ + +

Preprocesses a shader file without performing compilation. This resolves all #defines and #includes, providing a self-contained shader for subsequent compilation.

Note??Instead of using this legacy function, we recommend that you use the API.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ + bb205399 + HRESULT D3DXPreprocessShaderFromFileW([In] const wchar_t* pSrcFile,[In, Buffer, Optional] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + D3DXPreprocessShaderFromFileW +
+ + +

Returns the size of the shader byte code, in bytes.

+
+

Pointer to the function DWORD stream.

+

Returns the size of the shader byte code, in bytes.

+ + bb172875 + unsigned int D3DXGetShaderSize([In] const void* pFunction) + D3DXGetShaderSize +
+ + +

Returns the shader version of the compiled shader.

+
+

Pointer to the function DWORD stream.

+

Returns the shader version of the given shader, or zero if the shader function is null.

+ + bb172876 + unsigned int D3DXGetShaderVersion([In] const void* pFunction) + D3DXGetShaderVersion +
+ + +

Uses a left-handed coordinate system to create a mesh containing a cylinder.

+
+

Pointer to an interface, representing the device associated with the created cylinder mesh.

+

Radius at the negative Z end. Value should be greater than or equal to 0.0f.

+

Radius at the positive Z end. Value should be greater than or equal to 0.0f.

+

Length of the cylinder along the z-axis.

+

Number of slices about the main axis.

+

Number of stacks along the main axis.

+

Address of a reference to the output shape, an interface.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. null can be specified.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The created cylinder is centered at the origin, and its axis is aligned with the z-axis.

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172762 + HRESULT D3DXCreateCylinder([In] IDirect3DDevice9* pDevice,[In] float Radius1,[In] float Radius2,[In] float Length,[In] unsigned int Slices,[In] unsigned int Stacks,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency) + D3DXCreateCylinder +
+ + +

Uses a left-handed coordinate system to create a mesh containing a torus.

+
+

Pointer to an interface, representing the device associated with the created torus mesh.

+

Inner-radius of the torus. Value should be greater than or equal to 0.0f.

+

Outer-radius of the torus. Value should be greater than or equal to 0.0f.

+

Number of sides in a cross-section. Value must be greater than or equal to 3.

+

Number of rings making up the torus. Value must be greater than or equal to 3.

+

Address of a reference to the output shape, an interface.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. null can be specified.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The created torus is centered at the origin, and its axis is aligned with the z-axis. The inner radius of the torus is the radius of the cross-section (the minor radius), and the outer radius of the torus is the radius of the central hole.

This function returns a mesh that can be used later for drawing or manipulation by the application.

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172809 + HRESULT D3DXCreateTorus([In] IDirect3DDevice9* pDevice,[In] float InnerRadius,[In] float OuterRadius,[In] unsigned int Sides,[In] unsigned int Rings,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency) + D3DXCreateTorus +
+ + +

Uses a left-handed coordinate system to create a mesh containing a sphere.

+
+

Pointer to an interface, representing the device associated with the created sphere mesh.

+

Radius of the sphere. This value should be greater than or equal to 0.0f.

+

Number of slices about the main axis.

+

Number of stacks along the main axis.

+

Address of a reference to the output shape, an interface.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. null can be specified.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The created sphere is centered at the origin, and its axis is aligned with the z-axis.

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172795 + HRESULT D3DXCreateSphere([In] IDirect3DDevice9* pDevice,[In] float Radius,[In] unsigned int Slices,[In] unsigned int Stacks,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency) + D3DXCreateSphere +
+ + +

Uses a left-handed coordinate system to create a mesh containing a teapot.

+
+

Pointer to an interface, representing the device associated with the created teapot mesh.

+

Address of a reference to the output shape, an interface.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. null can be specified.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172798 + HRESULT D3DXCreateTeapot([In] IDirect3DDevice9* pDevice,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency) + D3DXCreateTeapot +
+ + +

Uses a left-handed coordinate system to create a mesh containing an axis-aligned box.

+
+

Pointer to an interface, representing the device associated with the created box mesh.

+

Width of the box, along the x-axis.

+

Height of the box, along the y-axis.

+

Depth of the box, along the z-axis.

+

Address of a reference to the output shape, an interface.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. null can be specified.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The created box is centered at the origin.

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172752 + HRESULT D3DXCreateBox([In] IDirect3DDevice9* pDevice,[In] float Width,[In] float Height,[In] float Depth,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency) + D3DXCreateBox +
+ + +

Uses a left-handed coordinate system to create a mesh containing an + n-sided polygon.

+
+

Pointer to an interface, representing the device associated with the created polygon mesh.

+

Length of each side.

+

Number of sides for the polygon. Value must be greater than or equal to 3.

+

Address of a reference to the output shape, an interface.

+

Address of a reference to an interface. When the method returns, this parameter is filled with an array of three DWORDs per face that specify the three neighbors for each face in the mesh. null can be specified.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The created polygon is centered at the origin.

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172785 + HRESULT D3DXCreatePolygon([In] IDirect3DDevice9* pDevice,[In] float Length,[In] unsigned int Sides,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency) + D3DXCreatePolygon +
+ + +

Creates a mesh containing the specified text, using the font associated with the device context.

+
+

Pointer to the device that created the mesh.

+

Device context, containing the font for output. The font selected by the device context must be a TrueType font.

+

Pointer to a string that specifies the text to generate. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Maximum chordal deviation from TrueType font outlines.

+

Amount to extrude text in the negative z-direction.

+

Pointer to the returned mesh.

+

Pointer to a buffer containing adjacency information. May be null.

+

Pointer to an array of GLYPHMETRICSFLOAT structures that contain the glyph metric data. Each element contains information about the position and orientation of the corresponding glyph in the string. The number of elements in the array should be equal to the number of characters in the string. Note that the origin in each structure is not relative to the entire string, but rather is relative to that character cell. To compute the entire bounding box, add the increment for each glyph while traversing the string. If you are not concerned with the glyph sizes, set this parameter to null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateTextA because ANSI strings are being used.

This function creates a mesh with the creation option and | flexible vertex format (FVF).

+
+ + bb172799 + HRESULT D3DXCreateTextW([In] IDirect3DDevice9* pDevice,[In] HDC hDC,[In] const wchar_t* pText,[In] float Deviation,[In] float Extrusion,[In] ID3DXMesh** ppMesh,[In] ID3DXBuffer** ppAdjacency,[In] LPGLYPHMETRICSFLOAT pGlyphMetrics) + D3DXCreateTextW +
+ + +

Retrieves information about a given image file in memory.

+
+

VOID reference to the source file in memory.

+

Size of file in memory, in bytes. .

+

Pointer to a structure to be filled with the description of the data in the source file.

+ + bb172868 + HRESULT D3DXGetImageInfoFromFileInMemory([In] const void* pSrcData,[In] unsigned int SrcDataSize,[Out] D3DXIMAGE_INFO* pSrcInfo) + D3DXGetImageInfoFromFileInMemory +
+ + +

Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture.

+
+

Pointer to an object, representing the texture to be filled.

+

Pointer to a texture shader object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following:D3DERR_NOTAVAILABLE, .

+ +

The texture target must be an HLSL function that takes contains the following semantics:

  • One input parameter must use a POSITION semantic.
  • One input parameter must use a PSIZE semantic.
  • The function must return a parameter that uses the COLOR semantic.

The input parameters can be in any order. For an example, see

+
+ + bb172836 + HRESULT D3DXFillVolumeTextureTX([In] IDirect3DVolumeTexture9* pVolumeTexture,[In] ID3DXTextureShader* pTextureShader) + D3DXFillVolumeTextureTX +
+ + +

Creates an empty cube texture, adjusting the calling parameters as needed.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Width and height of the cube texture, in pixels. For example, if the cube texture is an 8-pixel by 8-pixel cube, the value for this parameter should be 8.

+

Number of mip levels requested. If this value is zero or D3DX_DEFAULT, a complete mipmap chain is created.

+

0, , or . Setting this flag to indicates that the surface is to be used as a render target. The resource can then be passed to the pNewRenderTarget parameter of the SetRenderTarget method. If is specified, the application should check that the device supports this operation by calling CheckDeviceFormat. For more information about using dynamic textures, see Using Dynamic Textures.

+

Member of the enumerated type, describing the requested pixel format for the cube texture. The returned cube texture might have a different format from that specified by Format. Applications should check the format of the returned cube texture.

+

Member of the enumerated type, describing the memory class into which the cube texture should be placed.

+

Address of a reference to an interface, representing the created cube texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , E_OUTOFMEMORY.

+ +

Cube textures differ from other surfaces in that they are collections of surfaces.

Internally, uses to adjust the calling parameters. Therefore, calls to will often succeed where calls to CreateCubeTexture would fail.

+
+ + bb172755 + HRESULT D3DXCreateCubeTexture([In] IDirect3DDevice9* pDevice,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTexture +
+ + +

Creates a volume texture from a file. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

When skipping mipmap levels while loading a .dds file, use the D3DX_SKIP_DDS_MIP_LEVELS macro to generate the MipFilter value. This macro takes the number of levels to skip and the filter type and returns the filter value, which would then be passed into the MipFilter parameter.

+
+ + bb172814 + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Depth,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTextureFromFileInMemoryEx +
+ + +

Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture.

+
+

Pointer to an object, representing the texture to be filled.

+

Pointer to a texture shader object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , .

+ +

The texture target must be an HLSL function that takes contains the following semantics:

  • One input parameter must use a POSITION semantic.
  • One input parameter must use a PSIZE semantic.
  • The function must return a parameter that uses the COLOR semantic.

The following is an example of such an HLSL function:

 float4 TextureGradientFill( float2 vTexCoord : POSITION,  float2 vTexelSize : PSIZE) : COLOR  { float r,g, b, xSq,ySq, a; xSq = 2.f*vTexCoord.x-1.f; xSq *= xSq; ySq = 2.f*vTexCoord.y-1.f; ySq *= ySq; a = sqrt(xSq+ySq); if (a > 1.0f) { a = 1.0f-(a-1.0f); } else if (a < 0.2f) { a = 0.2f; } r = 1-vTexCoord.x; g = 1-vTexCoord.y; b = vTexCoord.x; return float4(r, g, b, a); };	
+            

Note that the input parameters can be in any order, but both input semantics must be represented.

+
+ + bb172834 + HRESULT D3DXFillTextureTX([In] IDirect3DTexture9* pTexture,[In] ID3DXTextureShader* pTextureShader) + D3DXFillTextureTX +
+ + +

Checks cube-texture-creation parameters.

+
+

Pointer to an interface, representing the device to be associated with the cube texture.

+

Pointer to the requested width and height in pixels, or null. Returns the corrected size.

+

Pointer to the number of requested mipmap levels, or null. Returns the corrected number of mipmap levels.

+

0 or . Setting this flag to indicates that the surface is to be used as a render target. The resource can then be passed to the pNewRenderTarget parameter of the SetRenderTarget method. If is specified, the application should check that the device supports this operation by calling CheckDeviceFormat.

+

Pointer to a member of the enumerated type. Specifies the desired pixel format, or null. Returns the corrected format.

+

Member of the enumerated type, describing the memory class into which the texture should be placed.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , .

+ +

If parameters to this function are invalid, this function returns corrected parameters.

Cube textures differ from other surfaces in that they are collections of surfaces. To call SetRenderTarget with a cube texture, you must select an individual face using GetCubeMapSurface and pass the resulting surface to SetRenderTarget.

+
+ + bb172715 + HRESULT D3DXCheckCubeTextureRequirements([In] IDirect3DDevice9* pDevice,[InOut] unsigned int* pSize,[InOut] unsigned int* pNumMipLevels,[In] unsigned int Usage,[InOut] D3DFORMAT* pFormat,[In] D3DPOOL Pool) + D3DXCheckCubeTextureRequirements +
+ + +

Creates a texture from a file.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Address of a reference to an interface, representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateTextureFromFileA because ANSI strings are being used.

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

The function is equivalent to (pDevice, pSrcFile, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppTexture).

Mipmapped textures automatically have each level filled with the loaded texture.

When loading images into mipmapped textures, some devices are unable to go to a 1x1 image and this function will fail. If this happens, the images need to be loaded manually.

Note that a resource created with this function will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

For the best performance when using :

  1. Doing image scaling and format conversion at load time can be slow. Store images in the format and resolution they will be used. If the target hardware requires power of two dimensions, create and store images using power of two dimensions.
  2. Consider using DirectDraw surface (DDS) files. Because DDS files can be used to represent any Direct3D 9 texture format, they are very easy for D3DX to read. Also, they can store mipmaps, so any mipmap-generation algorithms can be used to author the images.
+
+ + bb172801 + HRESULT D3DXCreateTextureFromFileW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTextureFromFileW +
+ + +

Loads a surface from a file.

+
+

Pointer to an interface. Specifies the destination surface, which receives the image.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination rectangle. Set this parameter to null to specify the entire surface.

+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Pointer to a structure. Specifies the source rectangle. Set this parameter to null to specify the entire image.

+

Combination of one or more controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys Thus, for opaque black, the value would be equal to 0xFF000000.

+

Pointer to a structure to be filled with a description of the data in the source image file, or null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXLoadSurfaceFromFileA because ANSI strings are being used.

This function handles conversion to and from compressed texture formats and supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Writing to a non-level-zero surface will not cause the dirty rectangle to be updated. If is called and the surface was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call AddDirtyRect on the surface.

+
+ + bb172900 + HRESULT D3DXLoadSurfaceFromFileW([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const wchar_t* pSrcFile,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + D3DXLoadSurfaceFromFileW +
+ + +

Uses a user-provided function to fill each texel of each mip level of a given cube texture.

+
+

Pointer to an interface, representing the filled texture.

+

Pointer to a user-provided evaluator function, which will be used to compute the value of each texel. The function follows the prototype of LPD3DXFILL3D.

+

Pointer to an arbitrary block of user-defined data. This reference will be passed to the function provided in pFunction.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: .

+ +

Here is an example that creates a function called ColorCubeFill, which relies on .

 // Define a function that matches the prototype of LPD3DXFILL3D	
+            VOID WINAPI ColorCubeFill (* pOut, const * pTexCoord, 	
+            const * pTexelSize, LPVOID pData)	
+            { *pOut = (pTexCoord->x, pTexCoord->y, pTexCoord->z, 0.0f);	
+            } // Fill the texture using 	
+            if (FAILED (hr =  (m_pTexture, ColorCubeFill, null)))	
+            { return hr;	
+            }	
+            
+
+ + bb172831 + HRESULT D3DXFillCubeTexture([In] IDirect3DCubeTexture9* pCubeTexture,[In] __function__stdcall* pFunction,[In] void* pData) + D3DXFillCubeTexture +
+ + +

Creates an empty volume texture, adjusting the calling parameters as needed.

+
+

Pointer to an interface, representing the device to be associated with the volume texture.

+

Width in pixels. This value must be nonzero. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Height in pixels. This value must be nonzero. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Depth in pixels. This value must be nonzero. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Number of mip levels requested. If this value is zero or D3DX_DEFAULT, a complete mipmap chain is created.

+

0 or . For more information about using dynamic textures, see Using Dynamic Textures.

+

Member of the enumerated type, describing the requested pixel format for the volume texture. The returned volume texture might have a different format from that specified by Format. Applications should check the format of the returned volume texture.

+

Member of the enumerated type, describing the memory class into which the volume texture should be placed.

+

Address of a reference to an interface, representing the created volume texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , E_OUTOFMEMORY .

+ +

Internally, uses to adjust the calling parameters. Therefore, calls to will often succeed where calls to CreateVolumeTexture would fail.

+
+ + bb172810 + HRESULT D3DXCreateVolumeTexture([In] IDirect3DDevice9* pDevice,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Depth,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTexture +
+ + +

Loads a volume from a file.

+
+

Pointer to an interface. Specifies the destination volume.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination box. Set this parameter to null to specify the entire volume.

+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Pointer to a structure. Specifies the source box. Set this parameter to null to specify the entire volume.

+

Combination of one or more , controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

Pointer to a structure to be filled with a description of the data in the source image file, or null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXLoadVolumeFromFileA because ANSI strings are being used.

This function handles conversion to and from compressed texture formats and supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Writing to a non-level-zero surface of the volume texture will not cause the dirty rectangle to be updated. If is called and the texture was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call on the volume texture.

+
+ + bb172905 + HRESULT D3DXLoadVolumeFromFileW([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const wchar_t* pSrcFile,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + D3DXLoadVolumeFromFileW +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT D3DXLoadSurfaceFromResourceW([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + D3DXLoadSurfaceFromResourceW + + + +

Creates a texture from a file. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateTextureFromFileExA because ANSI strings are being used.

Use to determine if your device can support the texture given the current state.

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Mipmapped textures automatically have each level filled with the loaded texture. When loading images into mipmapped textures, some devices are unable to go to a 1x1 image and this function will fail. If this happens, then the images need to be loaded manually.

For the best performance when using :

  1. Doing image scaling and format conversion at load time can be slow. Store images in the format and resolution they will be used. If the target hardware requires power of 2 dimensions, then create and store images using power of 2 dimensions.
  2. For mipmap image creation at load time, filter using . A box filter is much faster than other filter types such as .
  3. Consider using DDS files. Since DDS files can be used to represent any Direct3D 9 texture format, they are very easy for D3DX to read. Also, they can store mipmaps, so any mipmap-generation algorithms can be used to author the images.

When skipping mipmap levels while loading a .dds file, use the D3DX_SKIP_DDS_MIP_LEVELS macro to generate the MipFilter value. This macro takes the number of levels to skip and the filter type and returns the filter value, which would then be passed into the MipFilter parameter.

+
+ + bb172802 + HRESULT D3DXCreateTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTextureFromFileExW +
+ + +

Converts a height map into a normal map. The (x,y,z) components of each normal are mapped to the (r,g,b) channels of the output texture.

+
+

Pointer to an interface, representing the destination texture.

+

Pointer to an interface, representing the source height-map texture.

+

Pointer to a type that contains the source palette of 256 colors or null.

+

One or more flags that control generation of normal maps.

+

One flag specifying the source of height information.

+

Constant value multiplier that increases (or decreases) the values in the normal map. Higher values usually make bumps more visible, lower values usually make bumps less visible.

+

If the function succeeds, the return value is . If the function fails, the return value can be the following value: .

+ +

This method computes the normal by using the central difference with a kernel size of 3x3. The central differencing denominator used is 2.0. RGB channels in the destination contain biased (x,y,z) components of the normal.

+
+ + bb172741 + HRESULT D3DXComputeNormalMap([In] IDirect3DTexture9* pTexture,[In] IDirect3DTexture9* pSrcTexture,[Out, Buffer] const PALETTEENTRY* pSrcPalette,[In] unsigned int Flags,[In] unsigned int Channel,[In] float Amplitude) + D3DXComputeNormalMap +
+ + +

Checks volume-texture-creation parameters.

+
+

Pointer to an interface, representing the device to be associated with the volume texture.

+

Pointer to the requested width in pixels, or null. Returns the corrected size.

+

Pointer to the requested height in pixels, or null. Returns the corrected size.

+

Pointer to the requested depth in pixels, or null. Returns the corrected size.

+

Pointer to the number of requested mipmap levels, or null. Returns the corrected number of mipmap levels.

+

Currently not used, set to 0.

+

Pointer to a member of the enumerated type. Specifies the desired pixel format, or null. Returns the corrected format.

+

Member of the enumerated type, describing the memory class into which the volume texture should be placed.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , .

+ +

If parameters to this function are invalid, this function returns corrected parameters.

+
+ + bb172718 + HRESULT D3DXCheckVolumeTextureRequirements([In] IDirect3DDevice9* pDevice,[InOut] unsigned int* pWidth,[InOut] unsigned int* pHeight,[InOut] unsigned int* pDepth,[InOut] unsigned int* pNumMipLevels,[In] unsigned int Usage,[InOut] D3DFORMAT* pFormat,[In] D3DPOOL Pool) + D3DXCheckVolumeTextureRequirements +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + D3DXLoadSurfaceFromFileInMemory + + + +

Creates a texture from a file in memory.

+
+

Pointer to an interface representing the device to be associated with the texture.

+

Pointer to the file in memory from which to create the texture.

+

Size in bytes of the file in memory.

+

Address of a reference to an interface representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The function is equivalent to (pDevice, pSrcData, SrcDataSize, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppTexture).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

+
+ + bb172803 + HRESULT D3DXCreateTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTextureFromFileInMemory +
+ + +

Creates a cube texture from a resource specified by a string. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateCubeTextureFromResourceExA because ANSI strings are being used.

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Cube textures differ from other surfaces in that they are collections of surfaces. To call SetRenderTarget with a cube texture, you must select an individual face using GetCubeMapSurface and pass the resulting surface to SetRenderTarget.

uses the DirectDraw surface (DDS) file format. The DirectX Texture Editor (Dxtex.exe) enables you to generate a cube map from other file formats and save it in the DDS file format.

+
+ + bb172761 + HRESULT D3DXCreateCubeTextureFromResourceExW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo,[In] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTextureFromResourceExW +
+ + +

Creates a volume texture from a file in memory.

+
+

Pointer to an interface, representing the device to be associated with the volume texture.

+

Pointer to the file in memory from which to create the volume texture.

+

Size of the file in memory, in bytes.

+

Address of a reference to an interface, representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

The function is equivalent to (pDevice, pSrcFile, SrcData, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppVolumeTexture).

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

+
+ + bb172813 + HRESULT D3DXCreateVolumeTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTextureFromFileInMemory +
+ + +

Loads a volume from another volume.

+
+

Pointer to an interface. Specifies the destination volume, which receives the image.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination box. Set this parameter to null to specify the entire volume.

+

A Pointer to an interface. Specifies the source volume.

+

Pointer to a structure, the source palette of 256 colors or null.

+

Pointer to a structure. Specifies the source box. Set this parameter to null to specify the entire volume.

+

A combination of one or more , controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Writing to a non-level-zero surface of the volume texture will not cause the dirty rectangle to be updated. If is called and the surface was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call on the surface.

+
+ + bb172909 + HRESULT D3DXLoadVolumeFromVolume([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] IDirect3DVolume9* pSrcVolume,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey) + D3DXLoadVolumeFromVolume +
+ + +

Saves a texture to a file.

+
+

Pointer to a string that specifies the file name of the destination image. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

specifying the file format to use when saving. This function supports saving to all formats except Portable Pixmap (.ppm) and Targa/Truevision Graphics Adapter (.tga).

+

Pointer to interface, containing the texture to be saved.

+

Pointer to a structure containing a palette of 256 colors. This parameter can be null.

+

If the function succeeds, the return value is . If the function fails, the return value can be the following:

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXSaveTextureToFileA because ANSI strings are being used.

This function handles conversion to and from compressed texture formats.

If the volume is nondynamic (because of a usage parameter set to 0 at the creation) and located in video memory (the memory pool set to ), will fail because D3DX cannot lock nondynamic volumes located in video memory.

+
+ + bb205433 + HRESULT D3DXSaveTextureToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DBaseTexture9* pSrcTexture,[In, Buffer] const PALETTEENTRY* pSrcPalette) + D3DXSaveTextureToFileW +
+ + +

Creates a texture from a file.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Address of a reference to an interface, representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateTextureFromFileA because ANSI strings are being used.

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

The function is equivalent to (pDevice, pSrcFile, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppTexture).

Mipmapped textures automatically have each level filled with the loaded texture.

When loading images into mipmapped textures, some devices are unable to go to a 1x1 image and this function will fail. If this happens, the images need to be loaded manually.

Note that a resource created with this function will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

For the best performance when using :

  1. Doing image scaling and format conversion at load time can be slow. Store images in the format and resolution they will be used. If the target hardware requires power of two dimensions, create and store images using power of two dimensions.
  2. Consider using DirectDraw surface (DDS) files. Because DDS files can be used to represent any Direct3D 9 texture format, they are very easy for D3DX to read. Also, they can store mipmaps, so any mipmap-generation algorithms can be used to author the images.
+
+ + bb172801 + HRESULT D3DXCreateCubeTextureFromFileW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTextureFromFileW +
+ + +

Creates a cube texture from a file in memory. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Cube textures differ from other surfaces in that they are collections of surfaces. To call SetRenderTarget with a cube texture, you must select an individual face using GetCubeMapSurface and pass the resulting surface to SetRenderTarget .

This method is designed to be used for loading image files stored as RT_RCDATA, which is an application-defined resource (raw data). Otherwise this method will fail.

For details on , see the Platform SDK. Note that as of DirectX 8.0, the peFlags member of the structure does not function as documented in the Platform SDK. The peFlags member is now the alpha channel for 8-bit palettized formats.

uses the DirectDraw surface (DDS) file format. The DirectX Texture Editor (Dxtex.exe) enables you to generate a cube map from other file formats and save it in the DDS file format

When skipping mipmap levels while loading a .dds file, use the D3DX_SKIP_DDS_MIP_LEVELS macro to generate the MipFilter value. This macro takes the number of levels to skip and the filter type and returns the filter value, which would then be passed into the MipFilter parameter.

+
+ + bb172759 + HRESULT D3DXCreateCubeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTextureFromFileInMemoryEx +
+ + +

Creates a texture from a resource. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateTextureFromResourceExA because ANSI strings are being used.

The resource being loaded must be of type RT_BITMAP or RT_RCDATA. Resource type RT_RCDATA is used to load formats other than bitmaps (such as .tga, .jpg, and .dds).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

+
+ + bb172806 + HRESULT D3DXCreateTextureFromResourceExW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo,[In] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTextureFromResourceExW +
+ + +

Retrieves information about a given image file.

+
+

File name of image to retrieve information about. If UNICODE or _UNICODE are defined, this parameter type is LPCWSTR, otherwise, the type is LPCSTR.

+

Pointer to a structure to be filled with the description of the data in the source file.

+ +

This function supports both Unicode and ANSI strings.

+
+ + bb172867 + HRESULT D3DXGetImageInfoFromFileW([In] const wchar_t* pSrcFile,[Out] D3DXIMAGE_INFO* pSrcInfo) + D3DXGetImageInfoFromFileW +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT D3DXFilterTexture([In] IDirect3DBaseTexture9* pBaseTexture,[In, Buffer] const PALETTEENTRY* pPalette,[In] unsigned int SrcLevel,[In] D3DX_FILTER Filter) + D3DXFilterTexture + + + +

Loads a surface from memory.

+
+

Pointer to an interface. Specifies the destination surface, which receives the image.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination rectangle. Set this parameter to null to specify the entire surface.

+

Pointer to the upper left corner of the source image in memory.

+

Member of the enumerated type, the pixel format of the source image.

+

Pitch of source image, in bytes. For DXT formats, this number should represent the width of one row of cells, in bytes.

+

Pointer to a structure, the source palette of 256 colors or null.

+

Pointer to a structure. Specifies the dimensions of the source image in memory. This value cannot be null.

+

Combination of one or more controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA.

+ +

This function handles conversion to and from compressed texture formats.

Writing to a non-level-zero surface will not cause the dirty rectangle to be updated. If is called and the surface was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call AddDirtyRect on the surface.

+
+ + bb172902 + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + D3DXLoadSurfaceFromMemory +
+ + +

Saves a texture to an image file.

+
+

specifying the file format to use when saving. This function supports saving to all formats except Portable Pixmap (.ppm) and Targa/Truevision Graphics Adapter (.tga).

+

Pointer to interface containing the image to be saved.

+

Pointer to a structure containing a palette of 256 colors. This parameter can be null.

+

Address of a reference to an that will store the image.

+ +

This function handles conversion to and from compressed texture formats.

+
+ + bb205434 + HRESULT D3DXSaveTextureToFileInMemory([Out] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DBaseTexture9* pSrcTexture,[In, Buffer] const PALETTEENTRY* pSrcPalette) + D3DXSaveTextureToFileInMemory +
+ + +

Checks texture-creation parameters.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Pointer to the requested width in pixels, or null. Returns the corrected size.

+

Pointer to the requested height in pixels, or null. Returns the corrected size.

+

Pointer to number of requested mipmap levels, or null. Returns the corrected number of mipmap levels.

+

0 or . Setting this flag to indicates that the surface is to be used as a render target. The resource can then be passed to the pNewRenderTarget parameter of the SetRenderTarget method. If is specified, the application should check that the device supports this operation by calling CheckDeviceFormat.

+

Pointer to a member of the enumerated type. Specifies the desired pixel format, or null. Returns the corrected format.

+

Member of the enumerated type, describing the memory class into which the texture should be placed.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , .

+ +

If parameters to this function are invalid, this function returns corrected parameters.

This function uses the following heuristics when comparing the requested requirements against available formats:

  • Do not choose a format that has fewer channels.
  • Avoid FOURCC And 24-bit formats unless explicitly requested.
  • Try not to add new channels.
  • Try not to change the number of bits per channel.
  • Try to avoid converting between types of formats. For instance, avoid converting an ARGB format to a depth format.
+
+ + bb172716 + HRESULT D3DXCheckTextureRequirements([In] IDirect3DDevice9* pDevice,[InOut] unsigned int* pWidth,[InOut] unsigned int* pHeight,[InOut] unsigned int* pNumMipLevels,[In] unsigned int Usage,[InOut] D3DFORMAT* pFormat,[In] D3DPOOL Pool) + D3DXCheckTextureRequirements +
+ + +

Saves a volume to a file on disk.

+
+

Pointer to a string that specifies the file name of the destination image. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

specifying the file format to use when saving. This function supports saving to all formats except Portable Pixmap (.ppm) and Targa/Truevision Graphics Adapter (.tga).

+

Pointer to interface containing the image to be saved.

+

Pointer to a structure containing a palette of 256 colors. This parameter can be null.

+

Pointer to a structure. Specifies the source box. Set this parameter to null to specify the entire volume.

+

If the function succeeds, the return value is . If the function fails, the return value can be the following:

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to >D3DXSaveVolumeToFileA because ANSI strings are being used.

This function handles conversion to and from compressed texture formats.

If the volume is nondynamic (because of a usage parameter set to 0 at the creation) and located in video memory (the memory pool set to ), will fail because D3DX cannot lock nondynamic volumes located in video memory.

+
+ + bb205435 + HRESULT D3DXSaveVolumeToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox) + D3DXSaveVolumeToFileW +
+ + +

Loads a volume from a resource.

+
+

Pointer to an interface. Specifies the destination volume.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination box. Set this parameter to null to specify the entire volume.

+

Handle to the module where the resource is located, or null for module associated with the image the operating system used to create the current process.

+

Pointer to a string that specifies the file name of the source image. If UNICODE or _UNICODE are defined, this parameter type is LPCWSTR, otherwise, the type is LPCSTR.

+

Pointer to a structure. Specifies the source box. Set this parameter to null to specify the entire volume.

+

Combination of one or more , controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

Pointer to a structure to be filled with a description of the data in the source image file, or null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA.

+ +

The resource being loaded must be a bitmap resource(RT_BITMAP).

This function handles conversion to and from compressed texture formats.

Writing to a non-level-zero surface of the volume texture will not cause the dirty rectangle to be updated. If is called and the texture was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call on the volume texture.

This function supports both Unicode and ANSI strings.

+
+ + bb172908 + HRESULT D3DXLoadVolumeFromResourceW([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + D3DXLoadVolumeFromResourceW +
+ + +

Creates a volume texture from a resource specified by a string. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateVolumeTextureFromResourceExA because ANSI strings are being used.

The resource being loaded must be an application-defined resource (RT_RCDATA).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

+
+ + bb172816 + HRESULT D3DXCreateVolumeTextureFromResourceExW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Depth,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo,[In] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTextureFromResourceExW +
+ + +

Creates a cube texture from a resource.

+
+

Pointer to an interface, representing the device to be associated with the cube texture.

+

Handle to the module where the resource is located, or null for the module associated with the image the operating system used to create the current process.

+

Pointer to a string that specifies the resource name. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Address of a reference to an interface, representing the created cube texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateCubeTextureFromResourceA because ANSI strings are being used.

The function is equivalent to (pDevice, hSrcModule, pSrcResource, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppCubeTexture).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

uses the DirectDraw surface (DDS) file format. The DirectX Texture Editor (Dxtex.exe) enables you to generate a cube map from other file formats and save it in the DDS file format.

+
+ + bb172760 + HRESULT D3DXCreateCubeTextureFromResourceW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTextureFromResourceW +
+ + +

Saves a surface to a file.

+
+

Pointer to a string that specifies the file name of the destination image. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

specifying the file format to use when saving. This function supports saving to all formats except Portable Pixmap (.ppm) and Targa/Truevision Graphics Adapter (.tga).

+

Pointer to interface, containing the image to be saved.

+

Pointer to a structure containing a palette of 256 colors. This parameter can be null.

+

Pointer to a structure. Specifies the source rectangle. Set this parameter to null to specify the entire image.

+

If the function succeeds, the return value is . If the function fails, the return value can be the following:

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXSaveSurfaceToFileA because ANSI strings are being used.

This function handles conversion to and from compressed texture formats.

+
+ + bb205431 + HRESULT D3DXSaveSurfaceToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + D3DXSaveSurfaceToFileW +
+ + +

Creates a cube texture from a file in memory.

+
+

Pointer to an interface, representing the device to be associated with the cube texture.

+

Pointer to the file in memory from which to create the cubemap. See Remarks.

+

Size of the file in memory, in bytes.

+

Address of a reference to an interface, representing the created cube texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

The function is equivalent to (pDevice, pSrcData, SrcDataSize, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppCubeTexture).

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

This method is designed to be used for loading image files stored as RT_RCDATA, which is an application-defined resource (raw data). Otherwise this method will fail.

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

uses the DirectDraw surface (DDS) file format. The DirectX Texture Editor (Dxtex.exe) enables you to generate a cube map from other file formats and save it in the DDS file format.

+
+ + bb172758 + HRESULT D3DXCreateCubeTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTextureFromFileInMemory +
+ + +

Creates a cube texture from a file. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateCubeTextureFromFileExA because ANSI strings are being used.

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Cube textures differ from other surfaces in that they are collections of surfaces. To call SetRenderTarget with a cube texture, you must select an individual face using GetCubeMapSurface and pass the resulting surface to SetRenderTarget.

uses the DirectDraw surface (DDS) file format. The DirectX Texture Editor (Dxtex.exe) enables you to generate a cube map from other file formats and save it in the DDS file format.

When skipping mipmap levels while loading a .dds file, use the D3DX_SKIP_DDS_MIP_LEVELS macro to generate the MipFilter value. This macro takes the number of levels to skip and the filter type and returns the filter value, which would then be passed into the MipFilter parameter.

+
+ + bb172757 + HRESULT D3DXCreateCubeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DCubeTexture9** ppCubeTexture) + D3DXCreateCubeTextureFromFileExW +
+ + +

Retrieves information about a given image in a resource.

+
+

Module where the resource is loaded. Set this parameter to null to specify the module associated with the image that the operating system used to create the current process.

+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Pointer to a structure to be filled with the description of the data in the source file.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXGetImageInfoFromResourceA because ANSI strings are being used.

+
+ + bb172869 + HRESULT D3DXGetImageInfoFromResourceW([In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[Out] D3DXIMAGE_INFO* pSrcInfo) + D3DXGetImageInfoFromResourceW +
+ + +

Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture.

+
+

Pointer to an object, representing the texture to be filled.

+

Pointer to a texture shader object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , .

+ +

The texture target must be an HLSL function that takes contains the following semantics:

  • One input parameter must use a POSITION semantic.
  • One input parameter must use a PSIZE semantic.
  • The function must return a parameter that uses the COLOR semantic.

The input parameters can be in any order. For an example, see

+
+ + bb172832 + HRESULT D3DXFillCubeTextureTX([In] IDirect3DCubeTexture9* pCubeTexture,[In] ID3DXTextureShader* pTextureShader) + D3DXFillCubeTextureTX +
+ + +

Uses a user-provided function to fill each texel of each mip level of a given texture.

+
+

Pointer to an interface, representing the filled texture.

+

Pointer to a user-provided evaluator function, which will be used to compute the value of each texel. The function follows the prototype of LPD3DXFILL2D.

+

Pointer to an arbitrary block of user-defined data. This reference will be passed to the function provided in pFunction.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: .

+ +

Here is an example that creates a function called ColorFill, which relies on .

 // Define a function that matches the prototype of LPD3DXFILL3D	
+            VOID WINAPI ColorFill (* pOut, const * pTexCoord, 	
+            const * pTexelSize, LPVOID pData)	
+            { *pOut = (pTexCoord->x, pTexCoord->y, 0.0f, 0.0f);	
+            } // Fill the texture using 	
+            if (FAILED (hr =  (m_pTexture, ColorFill, null)))	
+            { return hr;	
+            }	
+            
+
+ + bb172833 + HRESULT D3DXFillTexture([In] IDirect3DTexture9* pTexture,[In] __function__stdcall* pFunction,[In] void* pData) + D3DXFillTexture +
+ + +

Saves a surface to an image file.

+
+

Address of a reference to an that will store the image.

+

specifying the file format to use when saving. This function supports saving to all formats except Portable Pixmap (.ppm) and Targa/Truevision Graphics Adapter (.tga).

+

Pointer to interface containing the image to be saved.

+

Pointer to a structure containing a palette of 256 colors. This parameter can be null.

+

Pointer to a structure. Specifies the source rectangle. Set this parameter to null to specify the entire image.

+

If the function succeeds, the return value is . If the function fails, the return value can be the following: .

+ +

This function handles conversion to and from compressed texture formats.

+
+ + bb205432 + HRESULT D3DXSaveSurfaceToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + D3DXSaveSurfaceToFileInMemory +
+ + +

Creates a volume texture from a file.

+
+

Pointer to an interface, representing the device to be associated with the volume texture.

+

Pointer to a string that specifies the file name. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Address of a reference to an interface representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateVolumeTextureFromFileA because ANSI strings are being used.

The function is equivalent to (pDevice, pSrcFile, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppVolumeTexture).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Mipmapped textures automatically have each level filled with the loaded texture.

When loading images into mipmapped textures, some devices are unable to go to a 1x1 image and this function will fail. If this happens, then the images need to be loaded manually.

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

+
+ + bb172811 + HRESULT D3DXCreateVolumeTextureFromFileW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTextureFromFileW +
+ + +

Creates a texture from a resource.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Handle to the module where the resource is located, or null for module associated with the image the operating system used to create the current process.

+

Pointer to a string that specifies the resource name. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Address of a reference to an interface, representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateTextureFromResourceA because ANSI strings are being used.

The function is equivalent to (pDevice, hSrcModule, pSrcResource, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppTexture).

The resource being loaded must be of type RT_BITMAP or RT_RCDATA. Resource type RT_RCDATA is used to load formats other than bitmaps (such as .tga, .jpg, and .dds).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

+
+ + bb172805 + HRESULT D3DXCreateTextureFromResourceW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTextureFromResourceW +
+ + +

Loads a volume from memory.

+
+

Pointer to an interface. Specifies the destination volume, which receives the image.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination box. Set this parameter to null to specify the entire volume.

+

Pointer to the top-left corner of the source volume in memory.

+

Member of the enumerated type, the pixel format of the source volume.

+

Pitch of source image, in bytes. For DXT formats (compressed texture formats), this number should represent the size of one row of cells, in bytes.

+

Pitch of source image, in bytes. For DXT formats (compressed texture formats), this number should represent the size of one slice of cells, in bytes.

+

Pointer to a structure, the source palette of 256 colors or null.

+

Pointer to a structure. Specifies the source box. null is not a valid value for this parameter.

+

A combination of one or more controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA.

+ +

Writing to a non-level-zero surface of the volume texture will not cause the dirty rectangle to be updated. If is called and the texture was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call on the volume texture.

+
+ + bb172907 + HRESULT D3DXLoadVolumeFromMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcRowPitch,[In] unsigned int SrcSlicePitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey) + D3DXLoadVolumeFromMemory +
+ + +

Creates a volume texture from a file.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Width in pixels. If this value is zero or D3DX_DEFAULT, the dimensions are taken from the file. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Height, in pixels. If this value is zero or D3DX_DEFAULT, the dimensions are taken from the file. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Depth, in pixels. If this value is zero or D3DX_DEFAULT, the dimensions are taken from the file. The maximum dimension that a driver supports (for width, height, and depth) can be found in MaxVolumeExtent in .

+

Number of mip levels requested. If this value is zero or D3DX_DEFAULT, a complete mipmap chain is created.

+

0, , or . Setting this flag to indicates that the surface is to be used as a render target. The resource can then be passed to the pNewRenderTarget parameter of the SetRenderTarget method. If either or is specified, Pool must be set to , and the application should check that the device supports this operation by calling CheckDeviceFormat. indicates that the surface should be handled dynamically. For more information about using dynamic textures, see Using Dynamic Textures.

+

Member of the enumerated type, describing the requested pixel format for the texture. The returned texture might have a different format from that specified by Format. Applications should check the format of the returned texture. If , the format is taken from the file. If D3DFMT_FROM_FILE, the format is taken exactly as it is in the file, and the call will fail if this violates device capabilities.

+

Member of the enumerated type, describing the memory class into which the texture should be placed.

+

A combination of one or more controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

A combination of one or more controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying . In addition, use bits 27-31 to specify the number of mip levels to be skipped (from the top of the mipmap chain) when a .dds texture is loaded into memory; this allows you to skip up to 32 levels.

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

Pointer to a structure to be filled in with a description of the data in the source image file, or null.

+

Pointer to a structure, representing a 256-color palette to fill in, or null.

+

Address of a reference to an interface, representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateVolumeTextureFromFileExA because ANSI strings are being used.

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Mipmapped textures automatically have each level filled with the loaded volume texture. When loading images into mipmapped textures, some devices are unable to go to a 1x1 image and this function will fail. If this happens, then the images need to be loaded manually.

When skipping mipmap levels while loading a .dds file, use the D3DX_SKIP_DDS_MIP_LEVELS macro to generate the MipFilter value. This macro takes the number of levels to skip and the filter type and returns the filter value, which would then be passed into the MipFilter parameter.

+
+ + bb172812 + HRESULT D3DXCreateVolumeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Depth,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTextureFromFileExW +
+ + +

Creates a texture from a file in memory. This is a more advanced function than .

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

For details about , see the Platform SDK. Note that as of DirectX 8.0, the peFlags member of the structure does not function as documented in the Platform SDK. The peFlags member is now the alpha channel for 8-bit palettized formats.

When skipping mipmap levels while loading a .dds file, use the D3DX_SKIP_DDS_MIP_LEVELS macro to generate the MipFilter value. This macro takes the number of levels to skip and the filter type and returns the filter value, which would then be passed into the MipFilter parameter.

+
+ + bb172804 + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTextureFromFileInMemoryEx +
+ + +

Saves a volume to a buffer. The method creates an buffer to store the data, and returns that object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be the following:

+ + bb205436 + HRESULT D3DXSaveVolumeToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox) + D3DXSaveVolumeToFileInMemory +
+ + +

Creates a volume texture from a resource.

+
+

Pointer to an interface, representing the device to be associated with the volume texture.

+

Handle to the module where the resource is located, or null for the module associated with the image the operating system used to create the current process.

+

Pointer to a string that specifies the resource name. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.

+

Address of a reference to an interface representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to . Otherwise, the function call resolves to D3DXCreateVolumeTextureFromResourceA because ANSI strings are being used.

The function is equivalent to (pDevice, hSrcModule, pSrcResource, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, , , D3DX_DEFAULT, D3DX_DEFAULT, 0, null, null, ppVolumeTexture).

The resource being loaded must be an application-defined resource (RT_RCDATA).

This function supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Note that a resource created with this function when called from a object will be placed in the memory class denoted by . When this method is called from a object the resource will be placed in the memory class denoted by .

Filtering is automatically applied to a texture created using this method. The filtering is equivalent to | in .

+
+ + bb172815 + HRESULT D3DXCreateVolumeTextureFromResourceW([In] IDirect3DDevice9* pDevice,[In] HINSTANCE hSrcModule,[In] const wchar_t* pSrcResource,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + D3DXCreateVolumeTextureFromResourceW +
+ + +

Creates an empty texture, adjusting the calling parameters as needed.

+
+

Pointer to an interface, representing the device to be associated with the texture.

+

Width in pixels. If this value is 0, a value of 1 is used. See Remarks.

+

Height in pixels. If this value is 0, a value of 1 is used. See Remarks.

+

Number of mip levels requested. If this value is zero or D3DX_DEFAULT, a complete mipmap chain is created.

+

0, , or . Setting this flag to indicates that the surface is to be used as a render target by calling the SetRenderTarget method. If either or is specified, the application should check that the device supports this operation by calling CheckDeviceFormat. For more information about using dynamic textures, see Using Dynamic Textures.

+

Member of the enumerated type, describing the requested pixel format for the texture. The returned texture may be of a different format from that specified, if the device does not support the requested format. Applications should check the format of the returned texture to see if it matches the format requested.

+

Member of the enumerated type, describing the memory class into which the texture should be placed.

+

Address of a reference to an interface, representing the created texture object.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , , , E_OUTOFMEMORY.

+ +

Internally, uses to adjust the calling parameters. Therefore, calls to will often succeed where calls to CreateTexture would fail.

If both Height and Width are set to D3DX_DEFAULT, a value of 256 is used for both parameters. If either Height or Width is set to D3DX_DEFAULT And the other parameter is set to a numeric value, the texture will be square with both the height and width equal to the numeric value.

+
+ + bb172800 + HRESULT D3DXCreateTexture([In] IDirect3DDevice9* pDevice,[In] unsigned int Width,[In] unsigned int Height,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] IDirect3DTexture9** ppTexture) + D3DXCreateTexture +
+ + +

Uses a user-provided function to fill each texel of each mip level of a given volume texture.

+
+

Pointer to an interface, representing the filled texture.

+

Pointer to a user-provided evaluator function, which will be used to compute the value of each texel. The function follows the prototype of LPD3DXFILL3D.

+

Pointer to an arbitrary block of user-defined data. This reference will be passed to the function provided in pFunction.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: .

+ +

If the volume is non-dynamic (because usage is set to 0 when it is created), and located in video memory (the memory pool set to ), will fail because the volume cannot be locked.

This example creates a function called ColorVolumeFill, which relies on .

 // Define a function that matches the prototype of LPD3DXFILL3D	
+            VOID WINAPI ColorVolumeFill (* pOut, const * pTexCoord, 	
+            const * pTexelSize, LPVOID pData)	
+            { *pOut = (pTexCoord->x, pTexCoord->y, pTexCoord->z, 0.0f);	
+            } // Fill volume texture	
+            if (FAILED (hr =  (m_pTexture, ColorVolumeFill, null)))	
+            { return hr;	
+            }	
+            
+
+ + bb172835 + HRESULT D3DXFillVolumeTexture([In] IDirect3DVolumeTexture9* pVolumeTexture,[In] __function__stdcall* pFunction,[In] void* pData) + D3DXFillVolumeTexture +
+ + +

Loads a surface from another surface with color conversion.

+
+

Pointer to an interface. Specifies the destination surface, which receives the image.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination rectangle. Set this parameter to null to specify the entire surface.

+

Pointer to an interface, representing the source surface.

+

Pointer to a structure, the source palette of 256 colors or null.

+

Pointer to a structure. Specifies the source rectangle. Set this parameter to null to specify the entire surface.

+

A combination of one or more , controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

This function handles conversion to and from compressed texture formats.

Writing to a non-level-zero surface will not cause the dirty rectangle to be updated. If is called and the surface was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call AddDirtyRect on the surface.

+
+ + bb172904 + HRESULT D3DXLoadSurfaceFromSurface([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + D3DXLoadSurfaceFromSurface +
+ + +

Loads a volume from a file in memory.

+
+

Pointer to an interface. Specifies the destination volume.

+

Pointer to a structure, the destination palette of 256 colors or null.

+

Pointer to a structure. Specifies the destination box. Set this parameter to null to specify the entire volume.

+

Pointer to the file in memory from which to load the volume.

+

Size in bytes of the file in memory.

+

Pointer to a structure. Specifies the source box. Set this parameter to null to specify the entire volume.

+

Combination of one or more , controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | .

+

value to replace with transparent black, or 0 to disable the colorkey. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000.

+

Pointer to a structure to be filled with a description of the data in the source image file, or null.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

This function handles conversion to and from compressed texture formats and supports the following file formats: .bmp, .dds, .dib, .hdr, .jpg, .pfm, .png, .ppm, and .tga. See .

Writing to a non-level-zero surface of the volume texture will not cause the dirty rectangle to be updated. If is called and the texture was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call on the volume texture.

+
+ + bb172906 + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + D3DXLoadVolumeFromFileInMemory +
+ + +

Creates an instance of an object.

+
+ No documentation. +

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: E_POINTER, E_OUTOFMEMORY.

+ +

After using this function, use RegisterTemplates or RegisterEnumTemplates to register templates, CreateEnumObject to create an enumerator object, or CreateSaveObject to create a save object.

+
+ + bb172830 + HRESULT D3DXFileCreate([In] ID3DXFile** lplpDirectXFile) + D3DXFileCreate +
+ + + Functions + + + + + Constant ConflictingRenderState. + D3DERR_CONFLICTINGRENDERSTATE + + + Constant ConflictingTextureFilter. + D3DERR_CONFLICTINGTEXTUREFILTER + + + Constant ConflictingTexturePalette. + D3DERR_CONFLICTINGTEXTUREPALETTE + + + Constant DeviceHung. + D3DERR_DEVICEHUNG + + + Constant DeviceLost. + D3DERR_DEVICELOST + + + Constant DeviceNotReset. + D3DERR_DEVICENOTRESET + + + Constant DeviceRemoved. + D3DERR_DEVICEREMOVED + + + Constant DriverInternalError. + D3DERR_DRIVERINTERNALERROR + + + Constant InvalidCall. + D3DERR_INVALIDCALL + + + Constant InvalidDevice. + D3DERR_INVALIDDEVICE + + + Constant MoreData. + D3DERR_MOREDATA + + + Constant NoAutomaticGeneration. + D3DOK_NOAUTOGEN + + + Constant NotAvailable. + D3DERR_NOTAVAILABLE + + + Constant NotFound. + D3DERR_NOTFOUND + + + Constant OutOfVideoMemory. + D3DERR_OUTOFVIDEOMEMORY + + + Constant PresentModeChanged. + S_PRESENT_MODE_CHANGED + + + Constant PresentOccluded. + S_PRESENT_OCCLUDED + + + Constant ResidentInSharedMemory. + S_RESIDENT_IN_SHARED_MEMORY + + + Constant Success. + D3D_OK + + + Constant TooManyOperations. + D3DERR_TOOMANYOPERATIONS + + + Constant UnsupportedAlphaArgument. + D3DERR_UNSUPPORTEDALPHAARG + + + Constant UnsupportedAlphaOperation. + D3DERR_UNSUPPORTEDALPHAOPERATION + + + Constant UnsupportedColorArgument. + D3DERR_UNSUPPORTEDCOLORARG + + + Constant UnsupportedColorOperation. + D3DERR_UNSUPPORTEDCOLOROPERATION + + + Constant UnsupportedFactorValue. + D3DERR_UNSUPPORTEDFACTORVALUE + + + Constant UnsupportedTextureFilter. + D3DERR_UNSUPPORTEDTEXTUREFILTER + + + Constant WasStillDrawing. + D3DERR_WASSTILLDRAWING + + + Constant WrongTextureFormat. + D3DERR_WRONGTEXTUREFORMAT + + + +

An application implements this interface to handle callbacks in animation sets generated by calls to .

+
+ +

The LPD3DXANIMATIONCALLBACKHANDLER type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXANIMATIONCALLBACKHANDLER;	
+            
+
+ + bb205624 + ID3DXAnimationCallbackHandler + ID3DXAnimationCallbackHandler +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The application implements this method. This method is called when a callback occurs for an animation set in one of the tracks during a call to .

+
+ No documentation. + No documentation. +

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR.

+ + bb205625 + HRESULT ID3DXAnimationCallbackHandler::HandleCallback([In] unsigned int Track,[In] void* pCallbackData) + ID3DXAnimationCallbackHandler::HandleCallback +
+ + +

This interface is used to control animation functionality, connecting animation sets with the transformation frames that are being animated. The interface has methods to mix multiple animations and to modify blending parameters over time to enable smooth transitions and other effects.

+
+ +

Create an animation controller object with .

The LPD3DXANIMATIONCONTROLLER type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXANIMATIONCONTROLLER;	
+            

The D3DXEVENTHANDLE type is defined as an event handle to animation controller events.

 typedef DWORD D3DXEVENTHANDLE;	
+            

The LPD3DXEVENTHANDLE type is defined as a reference to an event handle to animation controller events.

 typedef D3DXEVENTHANDLE *LPD3DXEVENTHANDLE;	
+            
+
+ + bb205626 + ID3DXAnimationController + ID3DXAnimationController +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get the maximum number of animation outputs the animation controller can support.

+
+

The maximum number of animation outputs the controller can manage.

+ + bb205634 + unsigned int ID3DXAnimationController::GetMaxNumAnimationOutputs() + ID3DXAnimationController::GetMaxNumAnimationOutputs +
+ + +

Gets the maximum number of animation sets the animation controller can support.

+
+

The maximum number of animation sets the controller can manage.

+ + bb205635 + unsigned int ID3DXAnimationController::GetMaxNumAnimationSets() + ID3DXAnimationController::GetMaxNumAnimationSets +
+ + +

Gets the maximum number of tracks in the animation controller.

+
+

Number of tracks.

+ +

The maximum number of tracks the controller can manage.

+
+ + bb205637 + unsigned int ID3DXAnimationController::GetMaxNumTracks() + ID3DXAnimationController::GetMaxNumTracks +
+ + +

Gets the maximum number of events the animation controller can support.

+
+

The maximum number of events the controller can manage.

+ + bb205636 + unsigned int ID3DXAnimationController::GetMaxNumEvents() + ID3DXAnimationController::GetMaxNumEvents +
+ + +

Adds an animation output to the animation controller and registers references for scale, rotate, and translate (SRT) transformations.

+
+

Name of the animation output.

+

Pointer to a structure containing SRT transformation data. Can be null.

+

Pointer to a vector that describes the scale of the animation set. Can be null.

+

Pointer to a quaternion that describes the rotation of the animation set. Can be null.

+

Pointer to a vector that describes the translation of the animation set. Can be null.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

If the animation output is already registered, pMatrix will be filled with the input transformation data.

Animation sets created with automatically register all loaded animation sets.

+
+ + bb205650 + HRESULT ID3DXAnimationController::RegisterAnimationOutput([In] const char* pName,[In] D3DXMATRIX* pMatrix,[In] D3DXVECTOR3* pScale,[In] D3DXQUATERNION* pRotation,[In] D3DXVECTOR3* pTranslation) + ID3DXAnimationController::RegisterAnimationOutput +
+ + +

Adds an animation set to the animation controller.

+
+

Pointer to the animation set to add.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205651 + HRESULT ID3DXAnimationController::RegisterAnimationSet([In] ID3DXAnimationSet* pAnimSet) + ID3DXAnimationController::RegisterAnimationSet +
+ + +

Removes an animation set from the animation controller.

+
+

Pointer to the animation set to remove.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , .

+ + bb205664 + HRESULT ID3DXAnimationController::UnregisterAnimationSet([In] ID3DXAnimationSet* pAnimSet) + ID3DXAnimationController::UnregisterAnimationSet +
+ + +

Returns the number of animation sets currently registered in the animation controller.

+
+

Number of animation sets.

+ +

The controller contains any number of animations sets and tracks. Animation sets can be registered with RegisterAnimationOutput. An animation controller created by a call to will automatically register loaded animation sets.

+
+ + bb205638 + unsigned int ID3DXAnimationController::GetNumAnimationSets() + ID3DXAnimationController::GetNumAnimationSets +
+ + +

Gets an animation set.

+
+

Index of the animation set.

+

Pointer to the animation set.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

The animation controller contains an array of animation sets. This method returns one of them at the given index.

+
+ + bb205629 + HRESULT ID3DXAnimationController::GetAnimationSet([In] unsigned int Index,[Out] ID3DXAnimationSet** ppAnimationSet) + ID3DXAnimationController::GetAnimationSet +
+ + +

Gets an animation set, given its name.

+
+

String containing the name of the animation set.

+

Pointer to the animation set.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

The animation controller contains an array of animation sets. This method returns an animation set that has the given name.

+
+ + bb205630 + HRESULT ID3DXAnimationController::GetAnimationSetByName([In] const char* szName,[In] ID3DXAnimationSet** ppAnimationSet) + ID3DXAnimationController::GetAnimationSetByName +
+ + +

Animates the mesh and advances the global animation time by a specified amount.

+
+

Amount, in seconds, by which to advance the global animation time. TimeDelta value must be non-negative or zero.

+

Pointer to a user-defined animation callback handler interface, .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205627 + HRESULT ID3DXAnimationController::AdvanceTime([In] double TimeDelta,[In] ID3DXAnimationCallbackHandler* pCallbackHandler) + ID3DXAnimationController::AdvanceTime +
+ + +

Resets the global animation time to zero. Any pending events will retain their original schedules, but in the new timeframe.

+
+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

This method is typically used when the global animation time value is nearing the maximum precision of DOUBLE storage, or 264 - 1.

+
+ + bb205652 + HRESULT ID3DXAnimationController::ResetTime() + ID3DXAnimationController::ResetTime +
+ + +

Gets the global animation time.

+
+

Returns the global animation time.

+ +

Animations are designed using a local animation time and mixed into global time with AdvanceTime.

+
+ + bb205640 + double ID3DXAnimationController::GetTime() + ID3DXAnimationController::GetTime +
+ + +

Applies the animation set to the specified track.

+
+

Identifier of the track to which the animation set is applied.

+

Pointer to the animation set to be added to the track.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

This method sets the animation set to the specified track for mixing. The animation set for each track is blended according to the track weight and speed when AdvanceTime is called.

+
+ + bb205654 + HRESULT ID3DXAnimationController::SetTrackAnimationSet([In] unsigned int Track,[In] ID3DXAnimationSet* pAnimSet) + ID3DXAnimationController::SetTrackAnimationSet +
+ + +

Gets the animation set for the given track.

+
+

Track identifier.

+

Pointer to the animation set for the given track.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205641 + HRESULT ID3DXAnimationController::GetTrackAnimationSet([In] unsigned int Track,[Out] ID3DXAnimationSet** ppAnimSet) + ID3DXAnimationController::GetTrackAnimationSet +
+ + +

Sets the priority blending weight for the specified animation track.

+
+

Track identifier.

+

Track priority. This parameter should be set to one of the constants from .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205658 + HRESULT ID3DXAnimationController::SetTrackPriority([In] unsigned int Track,[In] D3DXPRIORITY_TYPE Priority) + ID3DXAnimationController::SetTrackPriority +
+ + +

Sets the track speed. The track speed is similar to a multiplier that is used to speed up or slow down the playback of the track.

+
+

Identifier of the track to set the speed on.

+

New speed.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205659 + HRESULT ID3DXAnimationController::SetTrackSpeed([In] unsigned int Track,[In] float Speed) + ID3DXAnimationController::SetTrackSpeed +
+ + +

Sets the track weight. The weight is used to determine how to blend multiple tracks together.

+
+

Identifier of the track to set the weight on.

+

Weight value.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205660 + HRESULT ID3DXAnimationController::SetTrackWeight([In] unsigned int Track,[In] float Weight) + ID3DXAnimationController::SetTrackWeight +
+ + +

Sets the track to the specified local animation time.

+
+

Track identifier.

+

Local animation time value to assign to the track.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205657 + HRESULT ID3DXAnimationController::SetTrackPosition([In] unsigned int Track,[In] double Position) + ID3DXAnimationController::SetTrackPosition +
+ + +

Enables or disables a track in the animation controller.

+
+

Identifier of the track to be mixed.

+

Enable value. Set to TRUE to enable this track in the controller, or to to prevent it from being mixed.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ +

To mix a track with other tracks, the Enable flag must be set to TRUE. Conversely, setting the flag to will prevent the track from being mixed with other tracks.

+
+ + bb205656 + HRESULT ID3DXAnimationController::SetTrackEnable([In] unsigned int Track,[In] BOOL Enable) + ID3DXAnimationController::SetTrackEnable +
+ + +

Sets the track description.

+
+

Identifier of the track to modify.

+

Description of the track.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205655 + HRESULT ID3DXAnimationController::SetTrackDesc([In] unsigned int Track,[In] D3DXTRACK_DESC* pDesc) + ID3DXAnimationController::SetTrackDesc +
+ + +

Gets the track description.

+
+

Track identifier.

+

Pointer to the track description. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205642 + HRESULT ID3DXAnimationController::GetTrackDesc([In] unsigned int Track,[In] D3DXTRACK_DESC* pDesc) + ID3DXAnimationController::GetTrackDesc +
+ + +

Sets the priority blending weight used by the animation controller.

+
+

Priority blending weight used by the animation controller.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: .

+ +

The blend weight is used to blend high and low priority tracks together.

+
+ + bb205653 + HRESULT ID3DXAnimationController::SetPriorityBlend([In] float BlendWeight) + ID3DXAnimationController::SetPriorityBlend +
+ + +

Gets the current priority blending weight used by the animation controller.

+
+

Returns the current priority blending weight.

+ +

The priority blending weight is used to blend high and low priority tracks together.

+
+ + bb205639 + float ID3DXAnimationController::GetPriorityBlend() + ID3DXAnimationController::GetPriorityBlend +
+ + +

Sets an event key that changes the rate of play of an animation track.

+
+

Identifier of the track to modify.

+

New speed of the animation track.

+

Global time key. Specifies the global time when the change will take place.

+

Transition time, which specifies how long the smooth transition will take to complete.

+

Specifies the transition type used for transitioning between speeds. See .

+

Event handle to the priority blend event. null is returned if one or more of the input parameters is invalid, or no free event is available.

+ + bb205648 + unsigned int ID3DXAnimationController::KeyTrackSpeed([In] unsigned int Track,[In] float NewSpeed,[In] double StartTime,[In] double Duration,[In] D3DXTRANSITION_TYPE Transition) + ID3DXAnimationController::KeyTrackSpeed +
+ + +

Sets an event key that changes the weight of an animation track. The weight is used as a multiplier when combining multiple tracks together.

+
+

Identifier of the track to modify.

+

New weight of the track.

+

Global time key. Specifies the global time when the change will take place.

+

Transition time, which specifies how long the smooth transition will take to complete.

+

Specifies the transition type used for transitioning between weights. See .

+

Event handle to the priority blend event. null is returned if one or more of the input parameters is invalid, or no free event is available.

+ +

The weight is used like a multiplier to determine how much of this track to blend together with other tracks.

+
+ + bb205649 + unsigned int ID3DXAnimationController::KeyTrackWeight([In] unsigned int Track,[In] float NewWeight,[In] double StartTime,[In] double Duration,[In] D3DXTRANSITION_TYPE Transition) + ID3DXAnimationController::KeyTrackWeight +
+ + +

Sets an event key that changes the local time of an animation track.

+
+

Identifier of the track to modify.

+

New local time of the animation track.

+

Global time key. Specifies the global time when the change will take place.

+

Event handle to the priority blend event. null is returned if Track is invalid, or if no free event is available.

+ + bb205647 + unsigned int ID3DXAnimationController::KeyTrackPosition([In] unsigned int Track,[In] double NewPosition,[In] double StartTime) + ID3DXAnimationController::KeyTrackPosition +
+ + +

Sets an event key that enables or disables an animation track.

+
+

Identifier of the animation track to modify.

+

Enable flag. Set this to TRUE to enable the animation track, or to to disable the track.

+

Global time key. Specifies the global time when the change will take place.

+

Event handle to the priority blend event. null is returned if Track is invalid.

+ + bb205646 + unsigned int ID3DXAnimationController::KeyTrackEnable([In] unsigned int Track,[In] BOOL NewEnable,[In] double StartTime) + ID3DXAnimationController::KeyTrackEnable +
+ + +

Sets blending event keys for the specified animation track.

+
+

Number between 0 and 1 that is used to blend tracks together.

+

Global time to start the blend.

+

Global time duration of the blend.

+

Specifies the transition type used for the duration of the blend. See .

+

Event handle to the priority blend event. null is returned if one or more of the input parameters is invalid, or no free event is available.

+ +

The animation controller blends in three phases: low priority tracks are blended first, high priority tracks are blended second, and then the results of both are blended.

+
+ + bb205645 + unsigned int ID3DXAnimationController::KeyPriorityBlend([In] float NewBlendWeight,[In] double StartTime,[In] double Duration,[In] D3DXTRANSITION_TYPE Transition) + ID3DXAnimationController::KeyPriorityBlend +
+ + +

Removes a specified event from an animation track, preventing the execution of the event.

+
+

Event handle to the event to be removed from the animation track.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205663 + HRESULT ID3DXAnimationController::UnkeyEvent([In] unsigned int hEvent) + ID3DXAnimationController::UnkeyEvent +
+ + +

Removes all events from a specified animation track.

+
+

Identifier of the track on which all events should be removed.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

This method prevents the execution of all events previously scheduled on the track, and discards all data associated with those events.

+
+ + bb205662 + HRESULT ID3DXAnimationController::UnkeyAllTrackEvents([In] unsigned int Track) + ID3DXAnimationController::UnkeyAllTrackEvents +
+ + +

Removes all scheduled priority blend events from the animation controller.

+
+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205661 + HRESULT ID3DXAnimationController::UnkeyAllPriorityBlends() + ID3DXAnimationController::UnkeyAllPriorityBlends +
+ + +

Returns an event handle to the event currently running on the specified animation track.

+
+

Track identifier.

+

Type of event to query.

+

Event handle to the event currently running on the specified track. null is returned if no event is running on the specified track.

+ + bb205632 + unsigned int ID3DXAnimationController::GetCurrentTrackEvent([In] unsigned int Track,[In] D3DXEVENT_TYPE EventType) + ID3DXAnimationController::GetCurrentTrackEvent +
+ + +

Returns an event handle to a priority blend event that is currently running.

+
+

Event handle to the currently running priority blend event. null is returned if no priority blend event is currently running.

+ + bb205631 + unsigned int ID3DXAnimationController::GetCurrentPriorityBlend() + ID3DXAnimationController::GetCurrentPriorityBlend +
+ + +

Returns an event handle to the next event scheduled to occur after a specified event on an animation track.

+
+

Track identifier.

+

Event handle to a specified event after which to search for a following event. If set to null, then the method will return the next scheduled event.

+

Event handle to the next event scheduled to run on the specified track. null is returned if no new event is scheduled.

+ +

This method can be used iteratively to locate a desired event by repeatedly passing in null for hEvent.

Note??Do not iterate further after the method has returned null.

+
+ + bb205644 + unsigned int ID3DXAnimationController::GetUpcomingTrackEvent([In] unsigned int Track,[In] unsigned int hEvent) + ID3DXAnimationController::GetUpcomingTrackEvent +
+ + +

Returns an event handle to the next priority blend event scheduled to occur after a specified event.

+
+

Event handle to a specified event after which to search for a following priority blend event. If set to null, then the method will return the next scheduled priority blend event.

+

Event handle to the next scheduled priority blend event. null is returned if no new priority blend event is scheduled.

+ +

This method can be used iteratively to locate a desired priority blend event by repeatedly passing in null for hEvent.

Note??Do not iterate further after the method has returned null.

+
+ + bb205643 + unsigned int ID3DXAnimationController::GetUpcomingPriorityBlend([In] unsigned int hEvent) + ID3DXAnimationController::GetUpcomingPriorityBlend +
+ + +

Checks whether a specified event handle is valid and the animation event has not yet completed.

+
+

Event handle to an animation event.

+

Returns if the event handle is valid and the event has not yet completed.

Returns E_FAIL if the event handle is invalid and/or the event has completed.

+ +

The method will indicate that an event handle is valid even if the event is running but has not yet completed.

+
+ + bb205665 + HRESULT ID3DXAnimationController::ValidateEvent([In] unsigned int hEvent) + ID3DXAnimationController::ValidateEvent +
+ + +

Gets a description of a specified animation event.

+
+

Event handle to an animation event to describe.

+

Pointer to a structure that contains a description of the animation event.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205633 + HRESULT ID3DXAnimationController::GetEventDesc([In] unsigned int hEvent,[In] D3DXEVENT_DESC* pDesc) + ID3DXAnimationController::GetEventDesc +
+ + +

Clones, or copies, an animation controller.

+
+

Maximum number of animation outputs the controller can support.

+

Maximum number of animation sets the controller can support.

+

Maximum number of tracks the controller can support.

+

Maximum number of events the controller can support.

+

Address of a reference to the cloned animation controller.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb205628 + HRESULT ID3DXAnimationController::CloneAnimationController([In] unsigned int MaxNumAnimationOutputs,[In] unsigned int MaxNumAnimationSets,[In] unsigned int MaxNumTracks,[In] unsigned int MaxNumEvents,[In] ID3DXAnimationController** ppAnimController) + ID3DXAnimationController::CloneAnimationController +
+ + +

Get the maximum number of animation outputs the animation controller can support.

+
+ + bb205634 + GetMaxNumAnimationOutputs + GetMaxNumAnimationOutputs + unsigned int ID3DXAnimationController::GetMaxNumAnimationOutputs() +
+ + +

Gets the maximum number of animation sets the animation controller can support.

+
+ + bb205635 + GetMaxNumAnimationSets + GetMaxNumAnimationSets + unsigned int ID3DXAnimationController::GetMaxNumAnimationSets() +
+ + +

Gets the maximum number of tracks in the animation controller.

+
+ +

The maximum number of tracks the controller can manage.

+
+ + bb205637 + GetMaxNumTracks + GetMaxNumTracks + unsigned int ID3DXAnimationController::GetMaxNumTracks() +
+ + +

Gets the maximum number of events the animation controller can support.

+
+ + bb205636 + GetMaxNumEvents + GetMaxNumEvents + unsigned int ID3DXAnimationController::GetMaxNumEvents() +
+ + +

Returns the number of animation sets currently registered in the animation controller.

+
+ +

The controller contains any number of animations sets and tracks. Animation sets can be registered with RegisterAnimationOutput. An animation controller created by a call to will automatically register loaded animation sets.

+
+ + bb205638 + GetNumAnimationSets + GetNumAnimationSets + unsigned int ID3DXAnimationController::GetNumAnimationSets() +
+ + +

Gets the global animation time.

+
+ +

Animations are designed using a local animation time and mixed into global time with AdvanceTime.

+
+ + bb205640 + GetTime + GetTime + double ID3DXAnimationController::GetTime() +
+ + +

Gets or sets the current priority blending weight used by the animation controller.

+
+ +

The priority blending weight is used to blend high and low priority tracks together.

+
+ + bb205639 + GetPriorityBlend / SetPriorityBlend + GetPriorityBlend + float ID3DXAnimationController::GetPriorityBlend() +
+ + +

Returns an event handle to a priority blend event that is currently running.

+
+ + bb205631 + GetCurrentPriorityBlend + GetCurrentPriorityBlend + unsigned int ID3DXAnimationController::GetCurrentPriorityBlend() +
+ + +

This interface encapsulates the minimum functionality required of an animation set by an animation controller. Advanced users might want to implement this interface themselves to suit their specialized needs; for most users, however, the derived and interfaces should suffice.

+
+ +

An animation set consists of animations for many nodes for the same animation.

The LPD3DXANIMATIONSET type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXANIMATIONSET;	
+            
+
+ + bb205667 + ID3DXAnimationSet + ID3DXAnimationSet +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the animation set name.

+
+

Name of the animation set.

+ + bb205671 + const char* ID3DXAnimationSet::GetName() + ID3DXAnimationSet::GetName +
+ + +

Gets the period of the animation set.

+
+

Period of the animation set.

+ +

The period is the range of time that the animation key frames are valid. For looping animations, this is the period of the loop. The time units that the key frames are specified in (for example, seconds) is determined by the application.

+
+ + bb205673 + double ID3DXAnimationSet::GetPeriod() + ID3DXAnimationSet::GetPeriod +
+ + +

Returns time position in the local timeframe of an animation set.

+
+

Local time of the animation set.

+

Time position as measured in the timeframe of the animation set. This value will be bounded by the period of the animation set.

+ +

The time position returned by this method can be used as the PeriodicPosition parameter of .

+
+ + bb205674 + double ID3DXAnimationSet::GetPeriodicPosition([In] double Position) + ID3DXAnimationSet::GetPeriodicPosition +
+ + +

Gets the number of animations in the animation set.

+
+

Number of animations in the animation set.

+ + bb205672 + unsigned int ID3DXAnimationSet::GetNumAnimations() + ID3DXAnimationSet::GetNumAnimations +
+ + +

Gets the name of an animation, given its index.

+
+

Index of the animation.

+

Address of a reference to a string that receives the animation name.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR.

+ + bb205669 + HRESULT ID3DXAnimationSet::GetAnimationNameByIndex([In] unsigned int Index,[In] const char** ppName) + ID3DXAnimationSet::GetAnimationNameByIndex +
+ + +

Gets the index of an animation, given its name.

+
+

Name of the animation.

+

Pointer to the animation index.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR.

+ + bb205668 + HRESULT ID3DXAnimationSet::GetAnimationIndexByName([In] const char* pName,[In] unsigned int* pIndex) + ID3DXAnimationSet::GetAnimationIndexByName +
+ + +

Gets the scale, rotation, and translation values of the animation set.

+
+

Position of the animation set. The position can be obtained by calling .

+

Animation index.

+

Pointer to the vector that describes the scale of the animation set.

+

Pointer to the quaternion that describes the rotation of the animation set.

+

Pointer to the vector that describes the translation of the animation set.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR.

+ + bb205675 + HRESULT ID3DXAnimationSet::GetSRT([In] double PeriodicPosition,[In] unsigned int Animation,[Out] D3DXVECTOR3* pScale,[Out] D3DXQUATERNION* pRotation,[Out] D3DXVECTOR3* pTranslation) + ID3DXAnimationSet::GetSRT +
+ + +

Gets information about a specific callback in the animation set.

+
+

Position from which to find callbacks.

+

Callback search flags. This parameter can be set to a combination of one or more flags from .

+

Pointer to the position of the callback.

+

Address of the callback data reference.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR.

+ + bb205670 + HRESULT ID3DXAnimationSet::GetCallback([In] double Position,[In] unsigned int Flags,[Out] double* pCallbackPosition,[In] void** ppCallbackData) + ID3DXAnimationSet::GetCallback +
+ + +

Gets the animation set name.

+
+ + bb205671 + GetName + GetName + const char* ID3DXAnimationSet::GetName() +
+ + +

Gets the period of the animation set.

+
+ +

The period is the range of time that the animation key frames are valid. For looping animations, this is the period of the loop. The time units that the key frames are specified in (for example, seconds) is determined by the application.

+
+ + bb205673 + GetPeriod + GetPeriod + double ID3DXAnimationSet::GetPeriod() +
+ + +

Gets the number of animations in the animation set.

+
+ + bb205672 + GetNumAnimations + GetNumAnimations + unsigned int ID3DXAnimationSet::GetNumAnimations() +
+ + +

Locks a vertex buffer and obtains a reference to the vertex buffer memory.

+
+ +

When working with vertex buffers, you are allowed to make multiple lock calls; however, you must ensure that the number of lock calls match the number of unlock calls. DrawPrimitive calls will not succeed with any outstanding lock count on any currently set vertex buffer.

+
+ + bb205749 + ID3DXBaseMesh + ID3DXBaseMesh +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Draws a subset of a mesh.

+
+

DWORD that specifies which subset of the mesh to draw. This value is used to differentiate faces in a mesh as belonging to one or more attribute groups.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The subset that is specified by AttribId will be rendered by the method, using the primitive type, so an index buffer must be properly initialized.

An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states, materials, and so on. In addition, the application can use the attribute table to hide portions of a mesh by not drawing a given attribute identifier (AttribId) when drawing the frame.

+
+ + bb205736 + HRESULT ID3DXBaseMesh::DrawSubset([In] unsigned int AttribId) + ID3DXBaseMesh::DrawSubset +
+ + +

Retrieves the number of faces in the mesh.

+
+

Returns the number of faces in the mesh.

+ + bb205744 + unsigned int ID3DXBaseMesh::GetNumFaces() + ID3DXBaseMesh::GetNumFaces +
+ + +

Retrieves the number of vertices in the mesh.

+
+

Returns the number of vertices in the mesh.

+ + bb205745 + unsigned int ID3DXBaseMesh::GetNumVertices() + ID3DXBaseMesh::GetNumVertices +
+ + +

Gets the fixed function vertex value.

+
+

Returns the flexible vertex format (FVF) codes.

+ +

This method can return 0 if the vertex format cannot be mapped directly to an FVF code. This will occur for a mesh created from a vertex declaration that doesn't have the same order and elements supported by the FVF codes.

+
+ + bb205741 + unsigned int ID3DXBaseMesh::GetFVF() + ID3DXBaseMesh::GetFVF +
+ + +

Retrieves a declaration describing the vertices in the mesh.

+
+

Array of elements describing the vertex format of the mesh vertices. The upper limit of this declarator array is . The vertex element array ends with the D3DDECL_END macro.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The array of elements includes the D3DDECL_END macro, which ends the declaration.

+
+ + bb205739 + HRESULT ID3DXBaseMesh::GetDeclaration([In] D3DVERTEXELEMENT9* Declaration) + ID3DXBaseMesh::GetDeclaration +
+ + +

Gets the number of bytes per vertex.

+
+

Returns the number of bytes per vertex.

+ + bb205743 + unsigned int ID3DXBaseMesh::GetNumBytesPerVertex() + ID3DXBaseMesh::GetNumBytesPerVertex +
+ + +

Retrieves the mesh options enabled for this mesh at creation time.

+
+

Returns a combination of one or more of the following flags, indicating the options enabled for this mesh at creation time.

ValueDescription
Use 32-bit indices.
Use the usage flag for vertex and index buffers.
Equivalent to specifying both and .
Use the usage flag for vertex and index buffers.
Specifying this flag causes the vertex and index buffer of the mesh to be created with flag. This is required if the mesh object is to be rendered using N-Patch enhancement.
Equivalent to specifying both and .
Use the usage flag for vertex and index buffers.
Use the usage flag for index buffers.
Use the memory class for index buffers.
Use the memory class for index buffers.
Use the usage flag for index buffers.
Equivalent to specifying both and .
Use the usage flag for vertex buffers.
Use the memory class for vertex buffers.
Use the memory class for vertex buffers.
Use the usage flag for vertex buffers.
Equivalent to specifying both and .

?

+ + bb205746 + unsigned int ID3DXBaseMesh::GetOptions() + ID3DXBaseMesh::GetOptions +
+ + +

Retrieves the device associated with the mesh.

+
+

Address of a reference to an interface, representing the Direct3D device object associated with the mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Calling this method will increase the internal reference count on the interface. Be sure to call when you are done using this interface or you will have a memory leak.

+
+ + bb205740 + HRESULT ID3DXBaseMesh::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXBaseMesh::GetDevice +
+ + +

Clones a mesh using a flexible vertex format (FVF) code.

+
+

A combination of one or more D3DXMESH flags specifying creation options for the mesh.

+

Combination of FVF codes, which specifies the vertex format for the vertices in the output mesh. For the values of the codes, see .

+

Pointer to an interface representing the device object associated with the mesh.

+

Address of a reference to an interface, representing the cloned mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

is used to reformat and change the vertex data layout. This is done by creating a new mesh object. For example, use it to to add space for normals, texture coordinates, colors, weights, etc. that were not present before.

updates the vertex declaration with different semantic information without changing the layout of the vertex buffer. This method does not modify the contents of the vertex buffer. For example, use it to relabel a 3D texture coordinate as a binormal or tangent or vice versa.

+
+ + bb205733 + HRESULT ID3DXBaseMesh::CloneMeshFVF([In] unsigned int Options,[In] unsigned int FVF,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXMesh** ppCloneMesh) + ID3DXBaseMesh::CloneMeshFVF +
+ + +

Clones a mesh using a declarator.

+
+

A combination of one or more D3DXMESH flags specifying creation options for the mesh.

+

An array of elements, which specify the vertex format for the vertices in the output mesh.

+

Pointer to an interface, representing the device object associated with the mesh.

+

Address of a reference to an interface, representing the cloned mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

is used to reformat and change the vertex data layout. This is done by creating a new mesh object. For example, use it to add space for normals, texture coordinates, colors, weights, etc. that were not present before.

updates the vertex declaration with different semantic information without changing the layout of the vertex buffer. This method does not modify the contents of the vertex buffer. For example, use it to relabel a 3D texture coordinate as a binormal or tangent or vice versa.

+
+ + bb205732 + HRESULT ID3DXBaseMesh::CloneMesh([In] unsigned int Options,[In] const D3DVERTEXELEMENT9* pDeclaration,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXMesh** ppCloneMesh) + ID3DXBaseMesh::CloneMesh +
+ + +

Retrieves the vertex buffer associated with the mesh.

+
+

Address of a reference to an interface, representing the vertex buffer object associated with the mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205747 + HRESULT ID3DXBaseMesh::GetVertexBuffer([Out] IDirect3DVertexBuffer9** ppVB) + ID3DXBaseMesh::GetVertexBuffer +
+ + +

Retrieves the data in an index buffer.

+
+

Address of a reference to an interface, representing the index buffer object associated with the mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205742 + HRESULT ID3DXBaseMesh::GetIndexBuffer([Out] IDirect3DIndexBuffer9** ppIB) + ID3DXBaseMesh::GetIndexBuffer +
+ + +

Locks a vertex buffer and obtains a reference to the vertex buffer memory.

+
+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

VOID* reference to a buffer containing the vertex data.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

When working with vertex buffers, you are allowed to make multiple lock calls; however, you must ensure that the number of lock calls match the number of unlock calls. DrawPrimitive calls will not succeed with any outstanding lock count on any currently set vertex buffer.

+
+ + bb205749 + HRESULT ID3DXBaseMesh::LockVertexBuffer([In] unsigned int Flags,[In] void** ppData) + ID3DXBaseMesh::LockVertexBuffer +
+ + +

Unlocks a vertex buffer.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205751 + HRESULT ID3DXBaseMesh::UnlockVertexBuffer() + ID3DXBaseMesh::UnlockVertexBuffer +
+ + +

Locks an index buffer and obtains a reference to the index buffer memory.

+
+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

VOID* reference to a buffer containing the index data. The count of indices in this buffer will be equal to * 3.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

When working with index buffers, you are allowed to make multiple lock calls. However, you must ensure that the number of lock calls match the number of unlock calls. DrawPrimitive calls will not succeed with any outstanding lock count on any currently set index buffer.

+
+ + bb205748 + HRESULT ID3DXBaseMesh::LockIndexBuffer([In] unsigned int Flags,[In] void** ppData) + ID3DXBaseMesh::LockIndexBuffer +
+ + +

Unlocks an index buffer.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205750 + HRESULT ID3DXBaseMesh::UnlockIndexBuffer() + ID3DXBaseMesh::UnlockIndexBuffer +
+ + +

Retrieves either an attribute table for a mesh, or the number of entries stored in an attribute table for a mesh.

+
+

Pointer to an array of structures, representing the entries in the mesh's attribute table. Specify null to retrieve the value for pAttribTableSize.

+

Pointer to either the number of entries stored in pAttribTable or a value to be filled in with the number of entries stored in the attribute table for the mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

An attribute table is created by and passing for the Flags parameter.

An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states, materials, and so on. In addition, the application can use the attribute table to hide portions of a mesh by not drawing a given attribute identifier when drawing the frame.

+
+ + bb205738 + HRESULT ID3DXBaseMesh::GetAttributeTable([Out] D3DXATTRIBUTERANGE* pAttribTable,[Out] unsigned int* pAttribTableSize) + ID3DXBaseMesh::GetAttributeTable +
+ + +

Converts point representative data to mesh adjacency information.

+
+

Pointer to an array of one DWORD per vertex of the mesh that contains point representative data. This parameter is optional. Supplying a null value will cause this parameter to be interpreted as an "identity" array.

+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh. The number of bytes in this array must be at least 3 * * sizeof(DWORD).

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb205735 + HRESULT ID3DXBaseMesh::ConvertPointRepsToAdjacency([In] const unsigned int* pPRep,[In] unsigned int* pAdjacency) + ID3DXBaseMesh::ConvertPointRepsToAdjacency +
+ + +

Converts mesh adjacency information to an array of point representatives.

+
+

Pointer to an array of three DWORDs per face that specify the three neighbors for each face in the mesh. The number of bytes in this array must be at least 3 * * sizeof(DWORD).

+

Pointer to an array of one DWORD per vertex of the mesh that will be filled with point representative data.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb205734 + HRESULT ID3DXBaseMesh::ConvertAdjacencyToPointReps([In] const unsigned int* pAdjacency,[In] unsigned int* pPRep) + ID3DXBaseMesh::ConvertAdjacencyToPointReps +
+ + +

Generate a list of mesh edges, as well as a list of faces that share each edge.

+
+

Specifies that vertices that differ in position by less than epsilon should be treated as coincident.

+

Pointer to an array of three DWORDs per face to be filled with the indices of adjacent faces. The number of bytes in this array must be at least 3 * * sizeof(DWORD).

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

After an application generates adjacency information for a mesh, the mesh data can be optimized for better drawing performance.

The order of the entries in the adjacency buffer is determined by the order of the vertex indices in the index buffer. The adjacent triangle 0 always corresponds to the edge between the indices of the corners 0 and 1. The adjacent triangle 1 always corresponds to the edge between the indices of the corners 1 and 2 while the adjacent triangle 2 corresponds to the edge between the indices of the corners 2 and 0.

+
+ + bb205737 + HRESULT ID3DXBaseMesh::GenerateAdjacency([In] float Epsilon,[In] unsigned int* pAdjacency) + ID3DXBaseMesh::GenerateAdjacency +
+ + +

This method allows the user to change the mesh declaration without changing the data layout of the vertex buffer. The call is valid only if the old and new declaration formats have the same vertex size.

+
+

An array of elements, describing the vertex format of the mesh vertices. The upper limit of this declarator array is .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

is used to reformat and change the vertex data layout. For example, use it to to add space for normals, texture coordinates, colors, weights, etc. that were not present before.

is a method for updating the vertex declaration with different semantic information, without changing the layout of the vertex buffer. For example, use it to relabel a 3D texture coordinate as a binormal or tangent, or vice versa.

+
+ + bb205752 + HRESULT ID3DXBaseMesh::UpdateSemantics([In] D3DVERTEXELEMENT9* Declaration) + ID3DXBaseMesh::UpdateSemantics +
+ + +

Gets the fixed function vertex value.

+
+ +

This method can return 0 if the vertex format cannot be mapped directly to an FVF code. This will occur for a mesh created from a vertex declaration that doesn't have the same order and elements supported by the FVF codes.

+
+ + bb205741 + GetFVF + GetFVF + unsigned int ID3DXBaseMesh::GetFVF() +
+ + +

Gets the number of bytes per vertex.

+
+ + bb205743 + GetNumBytesPerVertex + GetNumBytesPerVertex + unsigned int ID3DXBaseMesh::GetNumBytesPerVertex() +
+ + +

Retrieves the mesh options enabled for this mesh at creation time.

+
+ + bb205746 + GetOptions + GetOptions + unsigned int ID3DXBaseMesh::GetOptions() +
+ + +

Retrieves the device associated with the mesh.

+
+ +

Calling this method will increase the internal reference count on the interface. Be sure to call when you are done using this interface or you will have a memory leak.

+
+ + bb205740 + GetDevice + GetDevice + HRESULT ID3DXBaseMesh::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Retrieves the vertex buffer associated with the mesh.

+
+ + bb205747 + GetVertexBuffer + GetVertexBuffer + HRESULT ID3DXBaseMesh::GetVertexBuffer([Out] IDirect3DVertexBuffer9** ppVB) +
+ + +

Retrieves the data in an index buffer.

+
+ + bb205742 + GetIndexBuffer + GetIndexBuffer + HRESULT ID3DXBaseMesh::GetIndexBuffer([Out] IDirect3DIndexBuffer9** ppIB) +
+ + +

An application uses the methods of this interface to implement a key frame animation set stored in a compressed data format.

+
+ +

Create a compressed-format key frame animation set with .

The LPD3DXCOMPRESSEDANIMATIONSET type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXCOMPRESSEDANIMATIONSET;	
+            
+
+ + bb205756 + ID3DXCompressedAnimationSet + ID3DXCompressedAnimationSet +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the type of the animation set playback loop.

+
+

Type of the animation set playback loop. See .

+ + bb205760 + D3DXPLAYBACK_TYPE ID3DXCompressedAnimationSet::GetPlaybackType() + ID3DXCompressedAnimationSet::GetPlaybackType +
+ + +

Gets the number of animation key frame ticks that occur per second.

+
+

Number of animation key frame ticks that occur per second.

+ + bb205761 + double ID3DXCompressedAnimationSet::GetSourceTicksPerSecond() + ID3DXCompressedAnimationSet::GetSourceTicksPerSecond +
+ + +

Gets the data buffer that stores compressed key frame animation data.

+
+

Address of a reference to the data buffer that receives compressed key frame animation data.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205758 + HRESULT ID3DXCompressedAnimationSet::GetCompressedData([Out] ID3DXBuffer** ppCompressedData) + ID3DXCompressedAnimationSet::GetCompressedData +
+ + +

Gets the number of callback keys in the animation set.

+
+

Number of callback keys in the animation set.

+ + bb205759 + unsigned int ID3DXCompressedAnimationSet::GetNumCallbackKeys() + ID3DXCompressedAnimationSet::GetNumCallbackKeys +
+ + +

Fills an array with callback key data used for key frame animation.

+
+

Pointer to a user-allocated array of structures that the method is to fill with callback data.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb205757 + HRESULT ID3DXCompressedAnimationSet::GetCallbackKeys([In] D3DXKEY_CALLBACK* pCallbackKeys) + ID3DXCompressedAnimationSet::GetCallbackKeys +
+ + +

Gets the type of the animation set playback loop.

+
+ + bb205760 + GetPlaybackType + GetPlaybackType + D3DXPLAYBACK_TYPE ID3DXCompressedAnimationSet::GetPlaybackType() +
+ + +

Gets the number of animation key frame ticks that occur per second.

+
+ + bb205761 + GetSourceTicksPerSecond + GetSourceTicksPerSecond + double ID3DXCompressedAnimationSet::GetSourceTicksPerSecond() +
+ + +

Gets the data buffer that stores compressed key frame animation data.

+
+ + bb205758 + GetCompressedData + GetCompressedData + HRESULT ID3DXCompressedAnimationSet::GetCompressedData([Out] ID3DXBuffer** ppCompressedData) +
+ + +

Gets the number of callback keys in the animation set.

+
+ + bb205759 + GetNumCallbackKeys + GetNumCallbackKeys + unsigned int ID3DXCompressedAnimationSet::GetNumCallbackKeys() +
+ + +

This is a user-implemented interface that allows a user to set the device state from an effect. Each of the methods in this interface must be implemented by the user and will then be used as callbacks to the application when either of the following occur:

  • An effect calls .
  • Effect state is dynamically updated by calling the appropriate state change API. See individual method pages for details.

When an application uses the state manager to implement custom callbacks, an effect no longer automatically saves and restores state when calling and . Because the application has implemented a custom save and restore behavior in the callbacks, this automatic behavior is bypassed.

+
+ +

A user creates an interface by implementing a class that derives from this interface, and implementing all the interface methods. Once the interface is created, you can get or set the state manager within an effect using and .

The LPD3DXEFFECTSTATEMANAGER type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXEFFECTSTATEMANAGER;	
+            
+
+ + bb205795 + ID3DXEffectStateManager + ID3DXEffectStateManager +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

A callback function that must be implemented by a user to set a transform.

+
+

The type of transform to apply the matrix to. See .

+

A transformation matrix. See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205809 + HRESULT ID3DXEffectStateManager::SetTransform([In] D3DTRANSFORMSTATETYPE State,[In] const D3DMATRIX* pMatrix) + ID3DXEffectStateManager::SetTransform +
+ + +

A callback function that must be implemented by a user to set material state.

+
+

A reference to the material state. See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205799 + HRESULT ID3DXEffectStateManager::SetMaterial([In] const D3DMATERIAL9* pMaterial) + ID3DXEffectStateManager::SetMaterial +
+ + +

A callback function that must be implemented by a user to set a light.

+
+

The zero-based index of the light. This is the same index in .

+

The light object. See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205798 + HRESULT ID3DXEffectStateManager::SetLight([In] unsigned int Index,[In] const D3DLIGHT9* pLight) + ID3DXEffectStateManager::SetLight +
+ + +

A callback function that must be implemented by a user to enable/disable a light.

+
+

The zero-based index of the light. This is the same index in .

+

True to enable the light, false otherwise.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205796 + HRESULT ID3DXEffectStateManager::LightEnable([In] unsigned int Index,[In] BOOL Enable) + ID3DXEffectStateManager::LightEnable +
+ + +

A callback function that must be implemented by a user to set render state.

+
+

The render state to set.

+

The render state value. See Effect States (Direct3D 9).

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205805 + HRESULT ID3DXEffectStateManager::SetRenderState([In] D3DRENDERSTATETYPE State,[In] unsigned int Value) + ID3DXEffectStateManager::SetRenderState +
+ + +

A callback function that must be implemented by a user to set a texture.

+
+

The stage to which the texture is assigned. This is the index value in or .

+

A reference to the texture object. This can be any of the Direct3D texture types (cube, volume, etc.). See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205807 + HRESULT ID3DXEffectStateManager::SetTexture([In] unsigned int Stage,[In] IDirect3DBaseTexture9* pTexture) + ID3DXEffectStateManager::SetTexture +
+ + +

A callback function that must be implemented by a user to set the texture stage state.

+
+

The stage that the texture is assigned to. This is the index value in or .

+

Defines the type of operation that a texture stage will perform. See .

+

Can be either an operation () or an argument value (), depending on what is chosen for Type.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205808 + HRESULT ID3DXEffectStateManager::SetTextureStageState([In] unsigned int Stage,[In] D3DTEXTURESTAGESTATETYPE Type,[In] unsigned int Value) + ID3DXEffectStateManager::SetTextureStageState +
+ + +

A callback function that must be implemented by a user to set a sampler.

+
+

The zero-based sampler number.

+

Identifies sampler state, which can specify the filtering, addressing, or the border color. See .

+

A value from one of the sampler state types in Type.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205806 + HRESULT ID3DXEffectStateManager::SetSamplerState([In] unsigned int Sampler,[In] D3DSAMPLERSTATETYPE Type,[In] unsigned int Value) + ID3DXEffectStateManager::SetSamplerState +
+ + +

A callback function that must be implemented by a user to set the number of subdivision segments for N-patches.

+
+

Break the surface into this number of subdivisions. This is the same as the number used by .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205800 + HRESULT ID3DXEffectStateManager::SetNPatchMode([In] float NumSegments) + ID3DXEffectStateManager::SetNPatchMode +
+ + +

A callback function that must be implemented by a user to set a FVF code.

+
+

The FVF constant, that determines how to interpret vertex data. See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205797 + HRESULT ID3DXEffectStateManager::SetFVF([In] D3DFVF FVF) + ID3DXEffectStateManager::SetFVF +
+ + +

A callback function that must be implemented by a user to set a vertex shader.

+
+

A reference to a vertex shader object. See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205810 + HRESULT ID3DXEffectStateManager::SetVertexShader([In] IDirect3DVertexShader9* pShader) + ID3DXEffectStateManager::SetVertexShader +
+ + +

A callback function that must be implemented by a user to set an array of vertex shader floating-point constants.

+
+

The zero-based index of the first constant register.

+

An array of floating-point constants.

+

The number of registers in pConstantData.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205812 + HRESULT ID3DXEffectStateManager::SetVertexShaderConstantF([In] unsigned int RegisterIndex,[In] const float* pConstantData,[In] unsigned int RegisterCount) + ID3DXEffectStateManager::SetVertexShaderConstantF +
+ + +

A callback function that must be implemented by a user to set an array of vertex shader integer constants.

+
+

The zero-based index of the first constant register.

+

An array of integer constants.

+

The number of registers in pConstantData.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205813 + HRESULT ID3DXEffectStateManager::SetVertexShaderConstantI([In] unsigned int RegisterIndex,[In] const int* pConstantData,[In] unsigned int RegisterCount) + ID3DXEffectStateManager::SetVertexShaderConstantI +
+ + +

A callback function that must be implemented by a user to set an array of vertex shader Boolean constants.

+
+

The zero-based index of the first constant register.

+

An array of Boolean constants.

+

The number of registers in pConstantData.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205811 + HRESULT ID3DXEffectStateManager::SetVertexShaderConstantB([In] unsigned int RegisterIndex,[In] const BOOL* pConstantData,[In] unsigned int RegisterCount) + ID3DXEffectStateManager::SetVertexShaderConstantB +
+ + +

A callback function that must be implemented by a user to set a pixel shader.

+
+

A reference to a pixel shader object. See .

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205801 + HRESULT ID3DXEffectStateManager::SetPixelShader([In] IDirect3DPixelShader9* pShader) + ID3DXEffectStateManager::SetPixelShader +
+ + +

A callback function that must be implemented by a user to set an array of vertex shader floating-point constants.

+
+

The zero-based index of the first constant register.

+

An array of floating-point constants.

+

The number of registers in pConstantData.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205803 + HRESULT ID3DXEffectStateManager::SetPixelShaderConstantF([In] unsigned int RegisterIndex,[In] const float* pConstantData,[In] unsigned int RegisterCount) + ID3DXEffectStateManager::SetPixelShaderConstantF +
+ + +

A callback function that must be implemented by a user to set an array of vertex shader integer constants.

+
+

The zero-based index of the first constant register.

+

An array of integer constants.

+

The number of registers in pConstantData.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205804 + HRESULT ID3DXEffectStateManager::SetPixelShaderConstantI([In] unsigned int RegisterIndex,[In] const int* pConstantData,[In] unsigned int RegisterCount) + ID3DXEffectStateManager::SetPixelShaderConstantI +
+ + +

A callback function that must be implemented by a user to set an array of vertex shader Boolean constants.

+
+

The zero-based index of the first constant register.

+

An array of Boolean constants.

+

The number of registers in pConstantData.

+

The user-implemented method should return . If the callback fails when setting the device state, either of the following will occur:

  • The effect will fail during .
  • The dynamic effect state call (such as ) will fail.
+ + bb205802 + HRESULT ID3DXEffectStateManager::SetPixelShaderConstantB([In] unsigned int RegisterIndex,[In] const BOOL* pConstantData,[In] unsigned int RegisterCount) + ID3DXEffectStateManager::SetPixelShaderConstantB +
+ + +

A callback function that must be implemented by a user to set material state.

+
+ + bb205799 + SetMaterial + SetMaterial + HRESULT ID3DXEffectStateManager::SetMaterial([In] const D3DMATERIAL9* pMaterial) +
+ + +

A callback function that must be implemented by a user to set the number of subdivision segments for N-patches.

+
+ + bb205800 + SetNPatchMode + SetNPatchMode + HRESULT ID3DXEffectStateManager::SetNPatchMode([In] float NumSegments) +
+ + +

A callback function that must be implemented by a user to set a FVF code.

+
+ + bb205797 + SetFVF + SetFVF + HRESULT ID3DXEffectStateManager::SetFVF([In] D3DFVF FVF) +
+ + +

A callback function that must be implemented by a user to set a vertex shader.

+
+ + bb205810 + SetVertexShader + SetVertexShader + HRESULT ID3DXEffectStateManager::SetVertexShader([In] IDirect3DVertexShader9* pShader) +
+ + +

A callback function that must be implemented by a user to set a pixel shader.

+
+ + bb205801 + SetPixelShader + SetPixelShader + HRESULT ID3DXEffectStateManager::SetPixelShader([In] IDirect3DPixelShader9* pShader) +
+ + +

This interface is implemented by the application to allocate or free frame and mesh container objects. Methods on this are called during loading and destroying frame hierarchies.

+
+ +

The LPD3DXALLOCATEHIERARCHY type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXALLOCATEHIERARCHY;	
+            
+
+ + bb205619 + ID3DXAllocateHierarchy + ID3DXAllocateHierarchy +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Requests allocation of a frame object.

+
+

Name of the frame to be created.

+

Returns the created frame object.

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb205620 + HRESULT ID3DXAllocateHierarchy::CreateFrame([In] const char* Name,[In] D3DXFRAME** ppNewFrame) + ID3DXAllocateHierarchy::CreateFrame +
+ + +

Requests allocation of a mesh container object.

+
+

Name of the mesh.

+

Pointer to the mesh data structure. See .

+

Array of materials used in the mesh.

+

Array of effect instances used in the mesh. See .

+

Number of materials in the materials array.

+

Adjacency array for the mesh.

+

Pointer to the skin mesh object if skin data is found. See .

+

Returns the created mesh container. See .

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb205621 + HRESULT ID3DXAllocateHierarchy::CreateMeshContainer([In] const char* Name,[In] const D3DXMESHDATA* pMeshData,[In] const D3DXMATERIAL* pMaterials,[In] const D3DXEFFECTINSTANCE* pEffectInstances,[In] unsigned int NumMaterials,[In] const unsigned int* pAdjacency,[In] ID3DXSkinInfo* pSkinInfo,[In] D3DXMESHCONTAINER** ppNewMeshContainer) + ID3DXAllocateHierarchy::CreateMeshContainer +
+ + +

Requests deallocation of a frame object.

+
+

Pointer to the frame to be deallocated.

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb205622 + HRESULT ID3DXAllocateHierarchy::DestroyFrame([In] D3DXFRAME* pFrameToFree) + ID3DXAllocateHierarchy::DestroyFrame +
+ + +

Requests deallocation of a mesh container object.

+
+

Pointer to the mesh container object to be deallocated.

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb205623 + HRESULT ID3DXAllocateHierarchy::DestroyMeshContainer([In] D3DXMESHCONTAINER* pMeshContainerToFree) + ID3DXAllocateHierarchy::DestroyMeshContainer +
+ + +

This interface is implemented by the application to save any additional user data embedded in .x files. An instance of this interface is passed to , and D3DX calls the appropriate method on this interface every time the appropriate data is encountered. For example, for each frame object in the .x file, is called and passed the child data.

+
+ +

The LPD3DXLOADUSERDATA type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXLOADUSERDATA;	
+            
+
+ + bb174034 + ID3DXLoadUserData + ID3DXLoadUserData +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Load top level data from a .x file.

+
+

Pointer to a .x file data structure. This is defined in Dxfile.h.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb174037 + HRESULT ID3DXLoadUserData::LoadTopLevelData([In] ID3DXFileData* pXofChildData) + ID3DXLoadUserData::LoadTopLevelData +
+ + +

Load frame child data from a .x file.

+
+

Pointer to a mesh container. See .

+

Pointer to a .x file data structure. This is defined in Dxfile.h.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb174035 + HRESULT ID3DXLoadUserData::LoadFrameChildData([In] D3DXFRAME* pFrame,[In] ID3DXFileData* pXofChildData) + ID3DXLoadUserData::LoadFrameChildData +
+ + +

Load mesh child data from a .x file.

+
+

Pointer to a mesh container. See .

+

Pointer to a .x file data structure. This is defined in Dxfile.h.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb174036 + HRESULT ID3DXLoadUserData::LoadMeshChildData([In] D3DXMESHCONTAINER* pMeshContainer,[In] ID3DXFileData* pXofChildData) + ID3DXLoadUserData::LoadMeshChildData +
+ + +

is a user-implemented interface to provide callbacks for #include directives during shader compilation. Each of the methods in this interface must be implemented by the user which will then be used as callbacks to the application when one of the following occurs:

  • An HLSL shader that contains a #include is compiled by calling one of the *** functions.
  • An assembly shader #include is assembled by calling any of the *** functions.
  • An effect that contains a #include is compiled by by calling any of the *** or *** functions.
+
+ +

A user creates an interface by implementing a class that derives from this interface, and implementing all the interface methods.

The LPD3DXINCLUDE type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXINCLUDE;	
+            
+
+ + bb173986 + ID3DXInclude + ID3DXInclude +
+ + + A user-implemented method for opening and reading the contents of a shader #include file. + + A -typed value that indicates the location of the #include file. + Name of the #include file. + Pointer to the container that includes the #include file. + Stream that is associated with fileName to be read. This reference remains valid until is called. + HRESULT Open([None] D3D_INCLUDE_TYPE IncludeType,[None] const char* pFileName,[None] LPCVOID pParentData,[None] LPCVOID* ppData,[None] UINT* pBytes) + + + + A user-implemented method for closing a shader #include file. + + + If was successful, Close is guaranteed to be called before the API using the interface returns. + + This is a reference that was returned by the corresponding call. + HRESULT Close([None] LPCVOID pData) + + + +

Applications use the methods of the interface to manipulate an index buffer resource.

+
+ +

The interface is obtained by calling the method.

This interface inherits additional functionality from the interface.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DINDEXBUFFER9 and PDIRECT3DINDEXBUFFER9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9;	
+            
+
+ + bb205865 + IDirect3DIndexBuffer9 + IDirect3DIndexBuffer9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Locks a range of index data and obtains a reference to the index buffer memory.

+
+

Offset into the index data to lock, in bytes. Lock the entire index buffer by specifying 0 for both parameters, SizeToLock and OffsetToLock.

+

Size of the index data to lock, in bytes. Lock the entire index buffer by specifying 0 for both parameters, SizeToLock and OffsetToLock.

+

VOID* reference to a memory buffer containing the returned index data.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

As a general rule, do not hold a lock across more than one frame. When working with index buffers, you are allowed to make multiple lock calls. However, you must ensure that the number of lock calls match the number of unlock calls. calls will not succeed with any outstanding lock count on any currently set index buffer.

The and flags are valid only on buffers created with .

See Programming Tips (Direct3D 9) for information about using or .

+
+ + bb205867 + HRESULT IDirect3DIndexBuffer9::Lock([In] unsigned int OffsetToLock,[In] unsigned int SizeToLock,[Out] void** ppbData,[In] D3DLOCK Flags) + IDirect3DIndexBuffer9::Lock +
+ + +

Unlocks index data.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205868 + HRESULT IDirect3DIndexBuffer9::Unlock() + IDirect3DIndexBuffer9::Unlock +
+ + +

Retrieves a description of the index buffer resource.

+
+

Pointer to a structure, describing the returned index buffer.

+

If the method succeeds, the return value is . is returned if the argument is invalid.

+ + bb205866 + HRESULT IDirect3DIndexBuffer9::GetDesc([Out] D3DINDEXBUFFER_DESC* pDesc) + IDirect3DIndexBuffer9::GetDesc +
+ + + Initializes a new instance of the class. + + The device. + The size in bytes. + The usage. + The pool. + if set to true use 16bit index buffer, otherwise, use 32bit index buffer. + bb174357 + HRESULT IDirect3DDevice9::CreateIndexBuffer([In] unsigned int Length,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DIndexBuffer9** ppIndexBuffer,[In] void** pSharedHandle) + IDirect3DDevice9::CreateIndexBuffer + + + + Initializes a new instance of the class. + + The device. + The size in bytes. + The usage. + The pool. + if set to true use 16bit index buffer, otherwise, use 32bit index buffer. + The shared handle. + bb174357 + HRESULT IDirect3DDevice9::CreateIndexBuffer([In] unsigned int Length,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DIndexBuffer9** ppIndexBuffer,[In] void** pSharedHandle) + IDirect3DDevice9::CreateIndexBuffer + + + + Locks the specified index buffer. + + The offset in the buffer. + The size of the buffer to lock. + The lock flags. + A containing the locked index buffer. + bb205867 + HRESULT IDirect3DIndexBuffer9::Lock([In] unsigned int OffsetToLock,[In] unsigned int SizeToLock,[Out] void** ppbData,[In] D3DLOCK Flags) + IDirect3DIndexBuffer9::Lock + + + + Locks the specified index buffer. + + The offset in the buffer. + The size of the buffer to lock. + The lock flags. + A containing the locked index buffer. + bb205867 + HRESULT IDirect3DIndexBuffer9::Lock([In] unsigned int OffsetToLock,[In] unsigned int SizeToLock,[Out] void** ppbData,[In] D3DLOCK Flags) + IDirect3DIndexBuffer9::Lock + + + +

Retrieves a description of the index buffer resource.

+
+ + bb205866 + GetDesc + GetDesc + HRESULT IDirect3DIndexBuffer9::GetDesc([Out] D3DINDEXBUFFER_DESC* pDesc) +
+ + +

This interface is implemented by the application to save any additional user data embedded in .x files. An instance of this interface is passed to , and D3DX calls the appropriate method on this interface every time the appropriate data is encountered. For example, for each frame object in the .x file, is called and passed the child data.

+
+ +

The LPD3DXSAVEUSERDATA type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXSAVEUSERDATA;	
+            
+
+ + bb174199 + ID3DXSaveUserData + ID3DXSaveUserData +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Add child data to the frame.

+
+

Pointer to a mesh container. See .

+

Pointer to a .x file save object. Use the reference to call to add a child data object. Do not save the data with .

+

Pointer to a .x file data node. Use the reference to call to add a child data object.

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ +

and provide a mechanism for adding a template to a .x file for saving user data.

+
+ + bb174200 + HRESULT ID3DXSaveUserData::AddFrameChildData([In] const D3DXFRAME* pFrame,[In] ID3DXFileSaveObject* pXofSave,[In] ID3DXFileSaveData* pXofFrameData) + ID3DXSaveUserData::AddFrameChildData +
+ + +

Add child data to the mesh.

+
+

Pointer to a mesh container. See .

+

Pointer to a .x file save object. Use the reference to call to add a child data object. Do not save the data with .

+

Pointer to a .x file data node. Use the reference to call to add a child data object.

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb174201 + HRESULT ID3DXSaveUserData::AddMeshChildData([In] const D3DXMESHCONTAINER* pMeshContainer,[In] ID3DXFileSaveObject* pXofSave,[In] ID3DXFileSaveData* pXofMeshData) + ID3DXSaveUserData::AddMeshChildData +
+ + +

Add a top level object before the frame hierarchy.

+
+

Pointer to a .x file save object. Use this reference to call IDirectXFileSaveObject::CreateDataObject to create the data object to be saved. Then call IDirectXFileSaveObject::SaveData to save the data.

+

The return values of this method are implemented by an application programmer. In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb174203 + HRESULT ID3DXSaveUserData::AddTopLevelDataObjectsPre([In] ID3DXFileSaveObject* pXofSave) + ID3DXSaveUserData::AddTopLevelDataObjectsPre +
+ + +

Add a top level object after the frame hierarchy.

+
+

Pointer to a .x file save object. Use this reference to call IDirectXFileSaveObject::CreateDataObject to create the data object to be saved. Then call IDirectXFileSaveObject::SaveData to save the data.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ + bb174202 + HRESULT ID3DXSaveUserData::AddTopLevelDataObjectsPost([In] ID3DXFileSaveObject* pXofSave) + ID3DXSaveUserData::AddTopLevelDataObjectsPost +
+ + +

A callback for the user to register a .x file template.

+
+

Use this reference to register user-defined .x file templates. See . Do not use this parameter to add data objects.

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ +

and provide a mechanism for adding a template to a .x file for saving user data.

+
+ + bb174204 + HRESULT ID3DXSaveUserData::RegisterTemplates([In] ID3DXFile* pXFileApi) + ID3DXSaveUserData::RegisterTemplates +
+ + +

A callback for the user to save a .x file template.

+
+

Pointer to a .x file save object. Do not use this parameter to add data objects. See .

+

The return values of this method are implemented by an application programmer.In general, if no error occurs, program the method to return . Otherwise, program the method to return an appropriate error message from D3DERR or D3DXERR, as this will cause to fail also, and return the error.

+ +

and provide a mechanism for adding a template to a .x file for saving user data.

+
+ + bb174205 + HRESULT ID3DXSaveUserData::SaveTemplates([In] ID3DXFileSaveObject* pXofSave) + ID3DXSaveUserData::SaveTemplates +
+ + +

An application uses the methods of this interface to implement a key frame animation set.

+
+ +

Create a keyframed animation set with .

The LPD3DXKEYFRAMEDANIMATIONSET type is defined as a reference to this interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXKEYFRAMEDANIMATIONSET;	
+            
+
+ + bb173989 + ID3DXKeyframedAnimationSet + ID3DXKeyframedAnimationSet +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the type of the animation set playback loop.

+
+

Type of the animation set playback loop. See .

+ + bb173997 + D3DXPLAYBACK_TYPE ID3DXKeyframedAnimationSet::GetPlaybackType() + ID3DXKeyframedAnimationSet::GetPlaybackType +
+ + +

Gets the number of animation key frame ticks that occur per second.

+
+

Number of animation key frame ticks that occur per second.

+ + bb174004 + double ID3DXKeyframedAnimationSet::GetSourceTicksPerSecond() + ID3DXKeyframedAnimationSet::GetSourceTicksPerSecond +
+ + +

Gets the number of scale keys in the specified key frame animation.

+
+

Animation index.

+

Number of scale keys in the specified key frame animation.

+ + bb173995 + unsigned int ID3DXKeyframedAnimationSet::GetNumScaleKeys([In] unsigned int Animation) + ID3DXKeyframedAnimationSet::GetNumScaleKeys +
+ + +

Fills an array with scale key data used for key frame animation.

+
+

Animation index.

+

Pointer to a user-allocated array of vectors that the method is to fill with animation scale data.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174003 + HRESULT ID3DXKeyframedAnimationSet::GetScaleKeys([In] unsigned int Animation,[In] D3DXKEY_VECTOR3* pScaleKeys) + ID3DXKeyframedAnimationSet::GetScaleKeys +
+ + +

Get scale information for a specific key frame in the animation set.

+
+

Animation index.

+

Key frame.

+

Pointer to the scale data. See .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174002 + HRESULT ID3DXKeyframedAnimationSet::GetScaleKey([In] unsigned int Animation,[In] unsigned int Key,[In] D3DXKEY_VECTOR3* pScaleKey) + ID3DXKeyframedAnimationSet::GetScaleKey +
+ + +

Set scale information for a specific key frame in the animation set.

+
+

Animation index.

+

Key frame.

+

Pointer to the scale data. See .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174010 + HRESULT ID3DXKeyframedAnimationSet::SetScaleKey([In] unsigned int Animation,[In] unsigned int Key,[In] D3DXKEY_VECTOR3* pScaleKey) + ID3DXKeyframedAnimationSet::SetScaleKey +
+ + +

Gets the number of rotation keys in the specified key frame animation.

+
+

Animation index.

+

Number of rotation keys in the specified key frame animation.

+ + bb173994 + unsigned int ID3DXKeyframedAnimationSet::GetNumRotationKeys([In] unsigned int Animation) + ID3DXKeyframedAnimationSet::GetNumRotationKeys +
+ + +

Fills an array with rotational key data used for key frame animation.

+
+

Animation index.

+

Pointer to a user-allocated array of quaternions that the method is to fill with animation rotation data.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174001 + HRESULT ID3DXKeyframedAnimationSet::GetRotationKeys([In] unsigned int Animation,[In] D3DXKEY_QUATERNION* pRotationKeys) + ID3DXKeyframedAnimationSet::GetRotationKeys +
+ + +

Get rotation information for a specific key frame in the animation set.

+
+

Animation index.

+

Key frame.

+

Pointer to the rotation data. See .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb173998 + HRESULT ID3DXKeyframedAnimationSet::GetRotationKey([In] unsigned int Animation,[In] unsigned int Key,[In] D3DXKEY_QUATERNION* pRotationKey) + ID3DXKeyframedAnimationSet::GetRotationKey +
+ + +

Set rotation information for a specific key frame in the animation set.

+
+

Animation index.

+

Key frame.

+

Pointer to the rotation data. See .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174009 + HRESULT ID3DXKeyframedAnimationSet::SetRotationKey([In] unsigned int Animation,[In] unsigned int Key,[In] D3DXKEY_QUATERNION* pRotationKey) + ID3DXKeyframedAnimationSet::SetRotationKey +
+ + +

Gets the number of translation keys in the specified key frame animation.

+
+

Animation index.

+

Number of translation keys in the specified key frame animation.

+ + bb173996 + unsigned int ID3DXKeyframedAnimationSet::GetNumTranslationKeys([In] unsigned int Animation) + ID3DXKeyframedAnimationSet::GetNumTranslationKeys +
+ + +

Fills an array with translational key data used for key frame animation.

+
+

Animation index.

+

Pointer to a user-allocated array of vectors that the method is to fill with animation translation data.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174006 + HRESULT ID3DXKeyframedAnimationSet::GetTranslationKeys([In] unsigned int Animation,[In] D3DXKEY_VECTOR3* pTranslationKeys) + ID3DXKeyframedAnimationSet::GetTranslationKeys +
+ + +

Get translation information for a specific key frame in the animation set.

+
+

Animation index.

+

Key Frame.

+

Pointer to the rotation information. See .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174005 + HRESULT ID3DXKeyframedAnimationSet::GetTranslationKey([In] unsigned int Animation,[In] unsigned int Key,[In] D3DXKEY_VECTOR3* pTranslationKey) + ID3DXKeyframedAnimationSet::GetTranslationKey +
+ + +

Set translation information for a specific key frame in the animation set.

+
+

Animation index.

+

Key Frame.

+

Pointer to the translation data. See .

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174011 + HRESULT ID3DXKeyframedAnimationSet::SetTranslationKey([In] unsigned int Animation,[In] unsigned int Key,[In] D3DXKEY_VECTOR3* pTranslationKey) + ID3DXKeyframedAnimationSet::SetTranslationKey +
+ + +

Gets the number of callback keys in the animation set.

+
+

Number of callback keys in the animation set.

+ + bb173993 + unsigned int ID3DXKeyframedAnimationSet::GetNumCallbackKeys() + ID3DXKeyframedAnimationSet::GetNumCallbackKeys +
+ + +

Fills an array with callback key data used for key frame animation.

+
+

Pointer to a user-allocated array of structures that the method is to fill with callback data.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb173992 + HRESULT ID3DXKeyframedAnimationSet::GetCallbackKeys([In] D3DXKEY_CALLBACK* pCallbackKeys) + ID3DXKeyframedAnimationSet::GetCallbackKeys +
+ + +

Gets information about a specific callback in the animation set.

+
+

Animation index.

+

Pointer to the callback function.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb173991 + HRESULT ID3DXKeyframedAnimationSet::GetCallbackKey([In] unsigned int Key,[In] D3DXKEY_CALLBACK* pCallbackKey) + ID3DXKeyframedAnimationSet::GetCallbackKey +
+ + +

Sets information about a specific callback in the animation set.

+
+

Animation index.

+

Pointer to the callback function.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174008 + HRESULT ID3DXKeyframedAnimationSet::SetCallbackKey([In] unsigned int Key,[In] D3DXKEY_CALLBACK* pCallbackKey) + ID3DXKeyframedAnimationSet::SetCallbackKey +
+ + +

Removes the scale data at the specified key frame.

+
+

Animation identifier.

+

Key frame.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

This method is slow and should not be used after an animation has begun to play.

+
+ + bb174014 + HRESULT ID3DXKeyframedAnimationSet::UnregisterScaleKey([In] unsigned int Animation,[In] unsigned int Key) + ID3DXKeyframedAnimationSet::UnregisterScaleKey +
+ + +

Removes the rotation data at the specified key frame.

+
+

Animation identifier.

+

Key frame.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

This method is slow and should not be used after an animation has begun to play.

+
+ + bb174013 + HRESULT ID3DXKeyframedAnimationSet::UnregisterRotationKey([In] unsigned int Animation,[In] unsigned int Key) + ID3DXKeyframedAnimationSet::UnregisterRotationKey +
+ + +

Removes the translation data at the specified key frame.

+
+

Animation identifier.

+

Key frame.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ +

This method is slow and should not be used after an animation has begun to play.

+
+ + bb174015 + HRESULT ID3DXKeyframedAnimationSet::UnregisterTranslationKey([In] unsigned int Animation,[In] unsigned int Key) + ID3DXKeyframedAnimationSet::UnregisterTranslationKey +
+ + +

Register the scale, rotate, and translate (SRT) key frame data for an animation.

+
+

Pointer to the animation name.

+

Number of scale keys.

+

Number of rotation keys.

+

Number of translation keys.

+

Address of a reference to a user-allocated array of vectors that the method fills with scale data.

+

Address of a reference to a user-allocated array of quaternions that the method fills with rotation data.

+

Address of a reference to a user-allocated array of vectors that the method fills with translation data.

+

Returns the animation index.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned:

+ + bb174007 + HRESULT ID3DXKeyframedAnimationSet::RegisterAnimationSRTKeys([In] const char* pName,[In] unsigned int NumScaleKeys,[In] unsigned int NumRotationKeys,[In] unsigned int NumTranslationKeys,[In] const D3DXKEY_VECTOR3* pScaleKeys,[In] const D3DXKEY_QUATERNION* pRotationKeys,[In] const D3DXKEY_VECTOR3* pTranslationKeys,[In] unsigned int* pAnimationIndex) + ID3DXKeyframedAnimationSet::RegisterAnimationSRTKeys +
+ + +

Transforms animations in an animation set into a compressed format and returns a reference to the buffer that stores the compressed data.

+
+

One of the values that define the compression mode used for storing compressed animation set data. is the only value currently supported.

+

Desired compression loss ratio, in the range from 0 to 1.

+

Pointer to a transformation frame hierarchy. Can be null.

+

Address of a reference to the compressed animation set.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: , E_OUTOFMEMORY.

+ + bb173990 + HRESULT ID3DXKeyframedAnimationSet::Compress([In] unsigned int Flags,[In] float Lossiness,[In] D3DXFRAME* pHierarchy,[In] ID3DXBuffer** ppCompressedData) + ID3DXKeyframedAnimationSet::Compress +
+ + +

Remove the animation data from the animation set.

+
+

The animation index.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: .

+ + bb174012 + HRESULT ID3DXKeyframedAnimationSet::UnregisterAnimation([In] unsigned int Index) + ID3DXKeyframedAnimationSet::UnregisterAnimation +
+ + +

Gets the type of the animation set playback loop.

+
+ + bb173997 + GetPlaybackType + GetPlaybackType + D3DXPLAYBACK_TYPE ID3DXKeyframedAnimationSet::GetPlaybackType() +
+ + +

Gets the number of animation key frame ticks that occur per second.

+
+ + bb174004 + GetSourceTicksPerSecond + GetSourceTicksPerSecond + double ID3DXKeyframedAnimationSet::GetSourceTicksPerSecond() +
+ + +

Gets the number of callback keys in the animation set.

+
+ + bb173993 + GetNumCallbackKeys + GetNumCallbackKeys + unsigned int ID3DXKeyframedAnimationSet::GetNumCallbackKeys() +
+ + +

The interface implements line drawing using textured triangles.

+
+ +

Create a line drawing object with .

The LPD3DXLINE type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXLINE;	
+            
+
+ + bb174016 + ID3DXLine + ID3DXLine +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the Direct3D device associated with the line object.

+
+

Address of a reference to an interface, representing the Direct3D device object associated with the line object.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174022 + HRESULT ID3DXLine::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXLine::GetDevice +
+ + +

Prepares a device for drawing lines.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Calling is optional. If called outside of a / sequence, the draw functions will internally call and . To avoid extra overhead, this method should be used if more than one draw function will be called successively.

This method must be called from inside an and sequence.

cannot be used as a substitute for either or .

+
+ + bb174017 + HRESULT ID3DXLine::Begin() + ID3DXLine::Begin +
+ + +

Draws a line strip in screen space. Input is in the form of an array that defines points (of ) on the line strip.

+
+ No documentation. + No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174018 + HRESULT ID3DXLine::Draw([In] const void* pVertexList,[In] unsigned int dwVertexListCount,[In] D3DCOLOR Color) + ID3DXLine::Draw +
+ + +

Draws a line strip in screen space with a specified input transformation matrix.

+
+

Array of vertices that make up the line. See .

+

Number of vertices in the vertex list.

+

A scale, rotate, and translate (SRT) matrix for transforming the points. See . If this matrix is a projection matrix, any stippled lines will be drawn with a perspective-correct stippling pattern. Or, you can transform the vertices and use to draw the line with a nonperspective-correct stipple pattern.

+

Color of the line. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174019 + HRESULT ID3DXLine::DrawTransform([In] const void* pVertexList,[In] unsigned int dwVertexListCount,[In] const D3DXMATRIX* pTransform,[In] D3DCOLOR Color) + ID3DXLine::DrawTransform +
+ + +

Applies a stipple pattern to the line.

+
+

Describes the stipple pattern: 1 is opaque, 0 is transparent.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174031 + HRESULT ID3DXLine::SetPattern([In] unsigned int dwPattern) + ID3DXLine::SetPattern +
+ + +

Gets the line stipple pattern.

+
+

Returns the line stipple pattern: 1 is opaque, 0 is transparent.

+ + bb174024 + unsigned int ID3DXLine::GetPattern() + ID3DXLine::GetPattern +
+ + +

Stretches the stipple pattern along the line direction.

+
+

Stipple pattern scaling value. 1.0f is the default value and represents no scaling. A value less than 1.0f shrinks the pattern, and a value greater than 1.0 stretches the pattern.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174032 + HRESULT ID3DXLine::SetPatternScale([In] float fPatternScale) + ID3DXLine::SetPatternScale +
+ + +

Gets the stipple-pattern scale value.

+
+

Returns the value used to scale the stipple-pattern. 1.0f is the default value and represents no scaling. A value less than 1.0f shrinks the pattern, and a value greater than 1.0 stretches the pattern.

+ + bb174025 + float ID3DXLine::GetPatternScale() + ID3DXLine::GetPatternScale +
+ + +

Specifies the thickness of the line.

+
+

Describes the line width.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174033 + HRESULT ID3DXLine::SetWidth([In] float fWidth) + ID3DXLine::SetWidth +
+ + +

Gets the thickness of the line.

+
+

The line thickness.

+ + bb174026 + float ID3DXLine::GetWidth() + ID3DXLine::GetWidth +
+ + +

Toggles line antialiasing.

+
+

Toggles antialiasing on and off. TRUE turns antialiasing on, and turns antialiasing off.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174029 + HRESULT ID3DXLine::SetAntialias([In] BOOL bAntialias) + ID3DXLine::SetAntialias +
+ + +

Gets the line antialiasing state.

+
+

Returns the antialiasing switch value. TRUE means antialiasing is on, and means antialiasing is off.

+ + bb174021 + BOOL ID3DXLine::GetAntialias() + ID3DXLine::GetAntialias +
+ + +

Toggles the mode to draw OpenGL-style lines.

+
+

Toggles OpenGL-style line drawing. TRUE enables OpenGL-style lines, and enables Direct3D-style lines.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174030 + HRESULT ID3DXLine::SetGLLines([In] BOOL bGLLines) + ID3DXLine::SetGLLines +
+ + +

Gets the OpenGL-style line-drawing mode.

+
+

Returns TRUE if OpenGL-style lines are enabled, and if Direct3D-style lines are enabled.

+ + bb174023 + BOOL ID3DXLine::GetGLLines() + ID3DXLine::GetGLLines +
+ + +

Restores the device state to how it was when was called.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

cannot be used as a substitute for either or .

+
+ + bb174020 + HRESULT ID3DXLine::End() + ID3DXLine::End +
+ + +

Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method should be called whenever the device is lost or before the user calls . Even if the device was not actually lost, is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling and then .

+
+ + bb174027 + HRESULT ID3DXLine::OnLostDevice() + ID3DXLine::OnLostDevice +
+ + +

Use this method to re-acquire resources and save initial state.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

should be called each time the device is reset (using ), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

+
+ + bb174028 + HRESULT ID3DXLine::OnResetDevice() + ID3DXLine::OnResetDevice +
+ + + Instantiates a left-handed coordinate system to create a . + + Pointer to an interface, representing the device associated with the created box mesh. + + This function creates a mesh with the creation option and | Flexible Vertex Format (FVF). + + HRESULT D3DXCreateLine([In] IDirect3DDevice9* pDevice,[Out, Fast] ID3DXLine** ppLine) + + + + Draws a line strip in screen space. Input is in the form of an array that defines points (of ) on the line strip. + + No documentation. + No documentation. + HRESULT ID3DXLine::Draw([In] const void* pVertexList,[In] unsigned int dwVertexListCount,[In] D3DCOLOR Color) + + + + Draws a line strip in screen space. Input is in the form of an array that defines points (of ) on the line strip. + + No documentation. + No documentation. + HRESULT ID3DXLine::Draw([In] const void* pVertexList,[In] unsigned int dwVertexListCount,[In] D3DCOLOR Color) + + + + Draws a line strip in screen space with a specified input transformation matrix. + + Array of vertices that make up the line. See . + A scale, rotate, and translate (SRT) matrix for transforming the points. See . If this matrix is a projection matrix, any stippled lines will be drawn with a perspective-correct stippling pattern. Or, you can transform the vertices and use to draw the line with a nonperspective-correct stipple pattern. + Color of the line. See . + If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA. + HRESULT ID3DXLine::DrawTransform([In] const void* pVertexList,[In] unsigned int dwVertexListCount,[In] const D3DXMATRIX* pTransform,[In] D3DCOLOR Color) + + + + Draws a line strip in screen space with a specified input transformation matrix. + + Array of vertices that make up the line. See . + A scale, rotate, and translate (SRT) matrix for transforming the points. See . If this matrix is a projection matrix, any stippled lines will be drawn with a perspective-correct stippling pattern. Or, you can transform the vertices and use to draw the line with a nonperspective-correct stipple pattern. + Color of the line. See . + If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA. + HRESULT ID3DXLine::DrawTransform([In] const void* pVertexList,[In] unsigned int dwVertexListCount,[In] const D3DXMATRIX* pTransform,[In] D3DCOLOR Color) + + + +

Retrieves the Direct3D device associated with the line object.

+
+ + bb174022 + GetDevice + GetDevice + HRESULT ID3DXLine::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Gets or sets the line stipple pattern.

+
+ + bb174024 + GetPattern / SetPattern + GetPattern + unsigned int ID3DXLine::GetPattern() +
+ + +

Gets or sets the stipple-pattern scale value.

+
+ + bb174025 + GetPatternScale / SetPatternScale + GetPatternScale + float ID3DXLine::GetPatternScale() +
+ + +

Gets or sets the thickness of the line.

+
+ + bb174026 + GetWidth / SetWidth + GetWidth + float ID3DXLine::GetWidth() +
+ + +

Gets or sets the line antialiasing state.

+
+ + bb174021 + GetAntialias / SetAntialias + GetAntialias + BOOL ID3DXLine::GetAntialias() +
+ + +

Gets or sets the OpenGL-style line-drawing mode.

+
+ + bb174023 + GetGLLines / SetGLLines + GetGLLines + BOOL ID3DXLine::GetGLLines() +
+ + +

Applications use the methods of the interface to manipulate mesh objects.

+
+ +

To obtain the interface, call either the or function.

This interface inherits additional functionality from the interface.

The LPD3DXMESH type is defined as a reference to the interface.

 typedef struct  *LPD3DXMESH;	
+            
+
+ + bb174069 + ID3DXMesh + ID3DXMesh +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Locks the mesh buffer that contains the mesh attribute data, and returns a reference to it.

+
+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

Address of a reference to a buffer containing a DWORD for each face in the mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If has been called, the mesh will also have an attribute table that can be accessed using the method.

+
+ + bb174070 + HRESULT ID3DXMesh::LockAttributeBuffer([In] unsigned int Flags,[In] unsigned int** ppData) + ID3DXMesh::LockAttributeBuffer +
+ + +

Unlocks an attribute buffer.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174074 + HRESULT ID3DXMesh::UnlockAttributeBuffer() + ID3DXMesh::UnlockAttributeBuffer +
+ + +

Generates a new mesh with reordered faces and vertices to optimize drawing performance.

+
+

Specifies the type of optimization to perform. This parameter can be set to a combination of one or more flags from D3DXMESHOPT and D3DXMESH (except , , and ).

+

Pointer to an array of three DWORDs per face that specifies the three neighbors for each face in the source mesh. If the edge has no adjacent faces, the value is 0xffffffff. See Remarks.

+

Pointer to an array of three DWORDs per face that specifies the three neighbors for each face in the optimized mesh. If the edge has no adjacent faces, the value is 0xffffffff.

+

An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the optimized mesh. If the value supplied for this argument is null, face remap data is not returned.

+

Address of a reference to an interface, which contains a DWORD for each vertex that specifies how the new vertices map to the old vertices. This remap is useful if you need to alter external data based on the new vertex mapping.

+

Address of a reference to an interface, representing the optimized mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This method generates a new mesh. Before running Optimize, an application must generate an adjacency buffer by calling . The adjacency buffer contains adjacency data, such as a list of edges and the faces that are adjacent to each other.

This method is very similar to the method, except that it can perform optimization while generating the new clone of the mesh. The output mesh inherits all of the creation parameters of the input mesh.

+
+ + bb174071 + HRESULT ID3DXMesh::Optimize([In] unsigned int Flags,[In] const unsigned int* pAdjacencyIn,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pFaceRemap,[In] ID3DXBuffer** ppVertexRemap,[In] ID3DXMesh** ppOptMesh) + ID3DXMesh::Optimize +
+ + +

Generates a mesh with reordered faces and vertices to optimize drawing performance. This method reorders the existing mesh.

+
+

Combination of one or more D3DXMESHOPT flags, specifying the type of optimization to perform.

+

Pointer to an array of three DWORDs per face that specifies the three neighbors for each face in the source mesh. If the edge has no adjacent faces, the value is 0xffffffff.

+

Pointer to an array of three DWORDs per face that specifies the three neighbors for each face in the optimized mesh. If the edge has no adjacent faces, the value is 0xffffffff. If the value supplied for this argument is null, adjacency data is not returned.

+

An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the optimized mesh. If the value supplied for this argument is null, face remap data is not returned.

+

Address of a reference to an interface, which contains a DWORD for each vertex that specifies how the new vertices map to the old vertices. This remap is useful if you need to alter external data based on the new vertex mapping. If the value supplied for this argument is null, vertex remap data is not returned.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_CANNOTATTRSORT, E_OUTOFMEMORY.

+ +

Before running , an application must generate an adjacency buffer by calling . The adjacency buffer contains adjacency data, such as a list of edges and the faces that are adjacent to each other.

Note??This method will fail if the mesh is sharing its vertex buffer with another mesh, unless the is set in Flags.

+
+ + bb174072 + HRESULT ID3DXMesh::OptimizeInplace([In] unsigned int Flags,[In] const unsigned int* pAdjacencyIn,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pFaceRemap,[In] ID3DXBuffer** ppVertexRemap) + ID3DXMesh::OptimizeInplace +
+ + +

Sets the attribute table for a mesh and the number of entries stored in the table.

+
+

Pointer to an array of structures, representing the entries in the mesh attribute table.

+

Number of attributes in the mesh attribute table.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

If an application keeps track of the information in an attribute table, and rearranges the table as a result of changes to attributes or faces, this method allows the application to update the attribute tables instead of calling again.

+
+ + bb174073 + HRESULT ID3DXMesh::SetAttributeTable([In] const D3DXATTRIBUTERANGE* pAttribTable,[In] unsigned int cAttribTableSize) + ID3DXMesh::SetAttributeTable +
+ + +

This interface encapsulates patch mesh functionality.

+
+ +

A patch mesh is a mesh that consists of a series of patches.

To obtain the interface, call the function.

The LPD3DXPATCHMESH type is defined as a reference to the interface, as follows:

 typedef struct  *LPD3DXPATCHMESH;	
+            
+
+ + bb174075 + ID3DXPatchMesh + ID3DXPatchMesh +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the number of patches in the mesh.

+
+

The number of patches.

+ + bb174083 + unsigned int ID3DXPatchMesh::GetNumPatches() + ID3DXPatchMesh::GetNumPatches +
+ + +

Gets the number of vertices in the mesh.

+
+

The number of vertices.

+ + bb174084 + unsigned int ID3DXPatchMesh::GetNumVertices() + ID3DXPatchMesh::GetNumVertices +
+ + +

Gets the vertex declaration.

+
+

Array of elements describing the vertex format of the mesh vertices. The dimension of this declarator array is . The vertex element array ends with the D3DDECL_END macro.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The array of elements includes the D3DDECL_END macro, which ends the declaration.

+
+ + bb174079 + HRESULT ID3DXPatchMesh::GetDeclaration([In] D3DVERTEXELEMENT9* Declaration) + ID3DXPatchMesh::GetDeclaration +
+ + +

Gets the number of control vertices per patch.

+
+

The number of control vertices per patch.

+ + bb174078 + unsigned int ID3DXPatchMesh::GetControlVerticesPerPatch() + ID3DXPatchMesh::GetControlVerticesPerPatch +
+ + +

Gets the type of patch.

+
+

The patch type.

+ +

For more information about patch types, see .

+
+ + bb174085 + unsigned int ID3DXPatchMesh::GetOptions() + ID3DXPatchMesh::GetOptions +
+ + +

Gets the device that created the mesh.

+
+

Pointer to the device.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb174080 + HRESULT ID3DXPatchMesh::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXPatchMesh::GetDevice +
+ + +

Gets the attributes of the patch.

+
+

Pointer to the structures containing the patch attributes. For more information about patch attributes, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ + bb174086 + HRESULT ID3DXPatchMesh::GetPatchInfo([In] D3DXPATCHINFO* PatchInfo) + ID3DXPatchMesh::GetPatchInfo +
+ + +

Gets the mesh vertex buffer.

+
+

Pointer to the vertex buffer.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This method assumes uniform tessellation.

+
+ + bb174088 + HRESULT ID3DXPatchMesh::GetVertexBuffer([Out] IDirect3DVertexBuffer9** ppVB) + ID3DXPatchMesh::GetVertexBuffer +
+ + +

Gets the mesh index buffer.

+
+

Pointer to the index buffer.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The index buffer contains the vertex ordering in the vertex buffer. The index buffer is used to access the vertex buffer when the mesh is rendered.

+
+ + bb174082 + HRESULT ID3DXPatchMesh::GetIndexBuffer([Out] IDirect3DIndexBuffer9** ppIB) + ID3DXPatchMesh::GetIndexBuffer +
+ + +

Lock the vertex buffer.

+
+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

VOID* reference to a memory buffer containing the returned vertex data.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The vertex buffer is usually locked, written to, and then unlocked for reading.

Patch meshes use 16-bit index buffers.

+
+ + bb174091 + HRESULT ID3DXPatchMesh::LockVertexBuffer([In] unsigned int flags,[In] void** ppData) + ID3DXPatchMesh::LockVertexBuffer +
+ + +

Unlock the vertex buffer.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The vertex buffer is usually locked, written to, and then unlocked for reading.

+
+ + bb174098 + HRESULT ID3DXPatchMesh::UnlockVertexBuffer() + ID3DXPatchMesh::UnlockVertexBuffer +
+ + +

Lock the index buffer.

+
+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

VOID* reference to a memory buffer containing the returned index data.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The index buffer is usually locked, written to, and then unlocked for reading. Patch mesh index buffers are 16-bit buffers.

+
+ + bb174090 + HRESULT ID3DXPatchMesh::LockIndexBuffer([In] unsigned int flags,[In] void** ppData) + ID3DXPatchMesh::LockIndexBuffer +
+ + +

Unlock the index buffer.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The index buffer is usually locked, written to, and then unlocked for reading.

+
+ + bb174097 + HRESULT ID3DXPatchMesh::UnlockIndexBuffer() + ID3DXPatchMesh::UnlockIndexBuffer +
+ + +

Locks the attribute buffer.

+
+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

Address of a reference to a buffer containing a DWORD for each face in the mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The attribute buffer is usually locked, written to, and then unlocked for reading.

+
+ + bb174089 + HRESULT ID3DXPatchMesh::LockAttributeBuffer([In] unsigned int flags,[In] unsigned int** ppData) + ID3DXPatchMesh::LockAttributeBuffer +
+ + +

Unlock the attribute buffer.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

The attribute buffer is usually locked, written to, and then unlocked for reading.

+
+ + bb174096 + HRESULT ID3DXPatchMesh::UnlockAttributeBuffer() + ID3DXPatchMesh::UnlockAttributeBuffer +
+ + +

Gets the size of the tessellated mesh, given a tessellation level.

+
+

Tessellation level.

+

Adaptive tessellation. For adaptive tessellation, set this value to TRUE and set fTessLevel to the maximum tessellation value. This will result in the maximum mesh size necessary for adaptive tessellation.

+

Pointer to the number of triangles generated by the tessellated mesh.

+

Pointer to the number of vertices generated by the tessellated mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This method assumes uniform tessellation.

+
+ + bb174087 + HRESULT ID3DXPatchMesh::GetTessSize([In] float fTessLevel,[In] unsigned int Adaptive,[Out] unsigned int* NumTriangles,[Out] unsigned int* NumVertices) + ID3DXPatchMesh::GetTessSize +
+ + +

Generate a list of mesh edges and the patches that share each edge.

+
+

Specifies that vertices that differ in position by less than the tolerance should be treated as coincident.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

After an application generates adjacency information for a mesh, the mesh data can be optimized for better drawing performance. This method determines which patches are adjacent (within the provided tolerance). This information is used internally to optimize tessellation.

+
+ + bb174077 + HRESULT ID3DXPatchMesh::GenerateAdjacency([In] float Tolerance) + ID3DXPatchMesh::GenerateAdjacency +
+ + +

Creates a new patch mesh with the specified vertex declaration.

+
+

Combination of one or more D3DXMESH flags that specify creation options for the mesh.

+

Array of elements that specify the vertex format for the vertices in the output mesh.

+

Address of a reference to an interface that represents the cloned mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

CloneMesh converts the vertex buffer to the new vertex declaration. Entries in the vertex declaration that are new to the original mesh are set to 0. If the current mesh has adjacency, the new mesh will also have adjacency.

+
+ + bb174076 + HRESULT ID3DXPatchMesh::CloneMesh([In] unsigned int Options,[In] const D3DVERTEXELEMENT9* pDecl,[In] ID3DXPatchMesh** pMesh) + ID3DXPatchMesh::CloneMesh +
+ + +

Optimizes the patch mesh for efficient tessellation.

+
+

Currently unused.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_CANNOTATTRSORT.

+ +

After an application generates adjacency information for a mesh, the mesh data can be optimized (reordered) for better drawing performance. This method determines which patches are adjacent (within the provided tolerance).

Adjacency information is also used to optimize tessellation. Generate adjacency information once and tessellate repeatedly by calling . The optimization performed is independent of the actual tessellation level used. However, if the mesh vertices are changed, you must regenerate the adjacency information.

+
+ + bb174092 + HRESULT ID3DXPatchMesh::Optimize([In] unsigned int flags) + ID3DXPatchMesh::Optimize +
+ + +

Sets mesh geometry displacement parameters.

+
+

Texture containing the displacement data.

+

Minification level. For more information, see .

+

Magnification level. For more information, see .

+

Mip filter level. For more information, see .

+

Texture address wrap mode. For more information, see

+

Level of detail bias value.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Displacement maps can only be 2D textures. Mipmapping is ignored for nonadaptive tessellation.

+
+ + bb174093 + HRESULT ID3DXPatchMesh::SetDisplaceParam([In] IDirect3DBaseTexture9* Texture,[In] D3DTEXTUREFILTERTYPE MinFilter,[In] D3DTEXTUREFILTERTYPE MagFilter,[In] D3DTEXTUREFILTERTYPE MipFilter,[In] D3DTEXTUREADDRESS Wrap,[In] unsigned int dwLODBias) + ID3DXPatchMesh::SetDisplaceParam +
+ + +

Gets mesh geometry displacement parameters.

+
+

Texture containing the displacement data.

+

Minification level. For more information, see .

+

Magnification level. For more information, see .

+

Mip filter level. For more information, see .

+

Texture address wrap mode. For more information, see .

+

Level of detail bias value.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Displacement maps can only be 2D textures. Mipmapping is ignored for nonadaptive tessellation.

+
+ + bb174081 + HRESULT ID3DXPatchMesh::GetDisplaceParam([Out] IDirect3DBaseTexture9** Texture,[Out] D3DTEXTUREFILTERTYPE* MinFilter,[Out] D3DTEXTUREFILTERTYPE* MagFilter,[Out] D3DTEXTUREFILTERTYPE* MipFilter,[Out] D3DTEXTUREADDRESS* Wrap,[Out] unsigned int* dwLODBias) + ID3DXPatchMesh::GetDisplaceParam +
+ + +

Performs uniform tessellation based on the tessellation level.

+
+

Tessellation level. This is the number of vertices introduced between existing vertices. The range of this float parameter is 0 < fTessLevel <= 32.

+

Resulting tessellated mesh. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This function will perform more efficiently if the patch mesh has been optimized using .

+
+ + bb174094 + HRESULT ID3DXPatchMesh::Tessellate([In] float fTessLevel,[In] ID3DXMesh* pMesh) + ID3DXPatchMesh::Tessellate +
+ + +

Performs adaptive tessellation based on the z-based adaptive tessellation criterion.

+
+

Specifies a 4D vector that is dotted with the vertices to get the per-vertex adaptive tessellation amount. Each edge is tessellated to the average value of the tessellation levels for the two vertices it connects.

+

Maximum limit for adaptive tessellation. This is the number of vertices introduced between existing vertices. This integer value can range from 1 to 32, inclusive.

+

Minimum limit for adaptive tessellation. This is the number of vertices introduced between existing vertices. This integer value can range from 1 to 32, inclusive.

+

Resulting tessellated mesh. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This function will perform more efficiently if the patch mesh has been optimized using .

+
+ + bb174095 + HRESULT ID3DXPatchMesh::TessellateAdaptive([In] const D3DXVECTOR4* pTrans,[In] unsigned int dwMaxTessLevel,[In] unsigned int dwMinTessLevel,[In] ID3DXMesh* pMesh) + ID3DXPatchMesh::TessellateAdaptive +
+ + +

Gets the number of patches in the mesh.

+
+ + bb174083 + GetNumPatches + GetNumPatches + unsigned int ID3DXPatchMesh::GetNumPatches() +
+ + +

Gets the number of vertices in the mesh.

+
+ + bb174084 + GetNumVertices + GetNumVertices + unsigned int ID3DXPatchMesh::GetNumVertices() +
+ + +

Gets the number of control vertices per patch.

+
+ + bb174078 + GetControlVerticesPerPatch + GetControlVerticesPerPatch + unsigned int ID3DXPatchMesh::GetControlVerticesPerPatch() +
+ + +

Gets the type of patch.

+
+ +

For more information about patch types, see .

+
+ + bb174085 + GetOptions + GetOptions + unsigned int ID3DXPatchMesh::GetOptions() +
+ + +

Gets the device that created the mesh.

+
+ + bb174080 + GetDevice + GetDevice + HRESULT ID3DXPatchMesh::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Gets the mesh vertex buffer.

+
+ +

This method assumes uniform tessellation.

+
+ + bb174088 + GetVertexBuffer + GetVertexBuffer + HRESULT ID3DXPatchMesh::GetVertexBuffer([Out] IDirect3DVertexBuffer9** ppVB) +
+ + +

Gets the mesh index buffer.

+
+ +

The index buffer contains the vertex ordering in the vertex buffer. The index buffer is used to access the vertex buffer when the mesh is rendered.

+
+ + bb174082 + GetIndexBuffer + GetIndexBuffer + HRESULT ID3DXPatchMesh::GetIndexBuffer([Out] IDirect3DIndexBuffer9** ppIB) +
+ + +

Applications use the methods of the interface to encapsulate the functionality of a pixel shader.

+
+ +

The LPDIRECT3DPIXELSHADER9 and PDIRECT3DPIXELSHADER9 types are defined as references to the interface.

typedef struct  *LPDIRECT3DPIXELSHADER9, *PDIRECT3DPIXELSHADER9;
+
+ + bb205869 + IDirect3DPixelShader9 + IDirect3DPixelShader9 +
+ + Constant MaxDynamicFlowControlDepth. + D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH + + + Constant MinDynamicFlowControlDepth. + D3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH + + + Constant MaxTemps. + D3DPS20_MAX_NUMTEMPS + + + Constant MinTemps. + D3DPS20_MIN_NUMTEMPS + + + Constant MaxStaticFlowControlDepth. + D3DPS20_MAX_STATICFLOWCONTROLDEPTH + + + Constant MinStaticFlowControlDepth. + D3DPS20_MIN_STATICFLOWCONTROLDEPTH + + + Constant MaxInstructionSlots. + D3DPS20_MAX_NUMINSTRUCTIONSLOTS + + + Constant MinInstructionSlots. + D3DPS20_MIN_NUMINSTRUCTIONSLOTS + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the device.

+
+

Pointer to the interface that is returned.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205870 + HRESULT IDirect3DPixelShader9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DPixelShader9::GetDevice +
+ + +

Gets a reference to the shader data.

+
+

Pointer to a buffer that contains the shader data. The application needs to allocate enough room for this.

+

Size of the data, in bytes. To get the buffer size that is needed to retrieve the data, set pData = null when calling GetFunction. Then call GetFunction with the returned size, to get the buffer data.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ + bb205871 + HRESULT IDirect3DPixelShader9::GetFunction([In] void* arg0,[InOut] unsigned int* pSizeOfData) + IDirect3DPixelShader9::GetFunction +
+ + + Initializes a new instance of the class. + + The device. + The function. + HRESULT IDirect3DDevice9::CreatePixelShader([In] const void* pFunction,[Out, Fast] IDirect3DPixelShader9** ppShader) + + + +

Gets the device.

+
+ + bb205870 + GetDevice + GetDevice + HRESULT IDirect3DPixelShader9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + + Gets the bytecode associated to this shader.. + + + + + No documentation. + + + bb280447 + ID3DXPMesh + ID3DXPMesh + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXPMesh::ClonePMeshFVF([In] unsigned int Options,[In] unsigned int FVF,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXPMesh** ppCloneMesh) + ID3DXPMesh::ClonePMeshFVF + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXPMesh::ClonePMesh([In] unsigned int Options,[In] const D3DVERTEXELEMENT9* pDeclaration,[In] IDirect3DDevice9* pD3DDevice,[In] ID3DXPMesh** ppCloneMesh) + ID3DXPMesh::ClonePMesh + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXPMesh::SetNumFaces([In] unsigned int Faces) + ID3DXPMesh::SetNumFaces + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXPMesh::SetNumVertices([In] unsigned int Vertices) + ID3DXPMesh::SetNumVertices + + + + No documentation. + + No documentation. + + unsigned int ID3DXPMesh::GetMaxFaces() + ID3DXPMesh::GetMaxFaces + + + + No documentation. + + No documentation. + + unsigned int ID3DXPMesh::GetMinFaces() + ID3DXPMesh::GetMinFaces + + + + No documentation. + + No documentation. + + unsigned int ID3DXPMesh::GetMaxVertices() + ID3DXPMesh::GetMaxVertices + + + + No documentation. + + No documentation. + + unsigned int ID3DXPMesh::GetMinVertices() + ID3DXPMesh::GetMinVertices + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXPMesh::Save([In] IStream* pStream,[In] const D3DXMATERIAL* pMaterials,[In] const D3DXEFFECTINSTANCE* pEffectInstances,[In] unsigned int NumMaterials) + ID3DXPMesh::Save + + + +

Generates a new mesh with reordered faces and vertices to optimize drawing performance.

+
+

Specifies the type of optimization to perform. This parameter can be set to a combination of one or more flags from D3DXMESHOPT and D3DXMESH (except , , and ).

+

Pointer to an array of three DWORDs per face that specifies the three neighbors for each face in the optimized mesh. If the edge has no adjacent faces, the value is 0xffffffff.

+

An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the optimized mesh. If the value supplied for this argument is null, face remap data is not returned.

+

Address of a reference to an interface, which contains a DWORD for each vertex that specifies how the new vertices map to the old vertices. This remap is useful if you need to alter external data based on the new vertex mapping.

+

Address of a reference to an interface, representing the optimized mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

This method generates a new mesh. Before running Optimize, an application must generate an adjacency buffer by calling . The adjacency buffer contains adjacency data, such as a list of edges and the faces that are adjacent to each other.

This method is very similar to the method, except that it can perform optimization while generating the new clone of the mesh. The output mesh inherits all of the creation parameters of the input mesh.

+
+ + bb174071 + HRESULT ID3DXPMesh::Optimize([In] unsigned int Flags,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pFaceRemap,[In] ID3DXBuffer** ppVertexRemap,[In] ID3DXMesh** ppOptMesh) + ID3DXPMesh::Optimize +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXPMesh::OptimizeBaseLOD([In] unsigned int Flags,[In] unsigned int* pFaceRemap) + ID3DXPMesh::OptimizeBaseLOD + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXPMesh::TrimByFaces([In] unsigned int NewFacesMin,[In] unsigned int NewFacesMax,[In] unsigned int* rgiFaceRemap,[In] unsigned int* rgiVertRemap) + ID3DXPMesh::TrimByFaces + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXPMesh::TrimByVertices([In] unsigned int NewVerticesMin,[In] unsigned int NewVerticesMax,[In] unsigned int* rgiFaceRemap,[In] unsigned int* rgiVertRemap) + ID3DXPMesh::TrimByVertices + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXPMesh::GetAdjacency([Out] unsigned int* pAdjacency) + ID3DXPMesh::GetAdjacency + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXPMesh::GenerateVertexHistory([In] unsigned int* pVertexHistory) + ID3DXPMesh::GenerateVertexHistory + + + + No documentation. + + + GetMaxFaces + GetMaxFaces + unsigned int ID3DXPMesh::GetMaxFaces() + + + + No documentation. + + + GetMinFaces + GetMinFaces + unsigned int ID3DXPMesh::GetMinFaces() + + + + No documentation. + + + GetMaxVertices + GetMaxVertices + unsigned int ID3DXPMesh::GetMaxVertices() + + + + No documentation. + + + GetMinVertices + GetMinVertices + unsigned int ID3DXPMesh::GetMinVertices() + + + + No documentation. + + + GetAdjacency + GetAdjacency + HRESULT ID3DXPMesh::GetAdjacency([Out] unsigned int* pAdjacency) + + + +

Applications use the methods of the interface to perform asynchronous queries on a driver.

+
+ +

The LPDIRECT3DQUERY9 and PDIRECT3DQUERY9 types are defined as references to the interface.

typedef struct  *LPDIRECT3DQUERY9, *PDIRECT3DQUERY9;
+
+ + bb205872 + IDirect3DQuery9 + IDirect3DQuery9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the device that is being queried.

+
+

Pointer to the device being queried. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205875 + HRESULT IDirect3DQuery9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DQuery9::GetDevice +
+ + +

Gets the query type.

+
+

Returns the query type. See .

+ + bb205876 + D3DQUERYTYPE IDirect3DQuery9::GetType() + IDirect3DQuery9::GetType +
+ + +

Gets the number of bytes in the query data.

+
+

Returns the number of bytes of query data.

+ + bb205874 + unsigned int IDirect3DQuery9::GetDataSize() + IDirect3DQuery9::GetDataSize +
+ + +

Issue a query.

+
+

Query flags specify the type of state change for the query. See and .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A signaled query means the query has completed, the data is available, and will return .

+
+ + bb205877 + HRESULT IDirect3DQuery9::Issue([In] D3DISSUE dwIssueFlags) + IDirect3DQuery9::Issue +
+ + +

Polls a queried resource to get the query state or a query result. For more information about queries, see Queries (Direct3D 9).

+
+ No documentation. + No documentation. + No documentation. +

The return type identifies the query state (see Queries (Direct3D 9)). The method returns if the query data is available and S_FALSE if it is not. These are considered successful return values. If the method fails when D3DGETDATA_FLUSH is used, the return value can be .

+ +

It is possible to lose the device while polling for query status. When D3DGETDATA_FLUSH is specified, this method will return in response to a lost device. This allows an application to prevent threads from endlessly polling due to a lost device (which cannot respond to the query).

An application must never write code that only invokes GetData ( ... , 0 ), expecting that GetData will eventually return by itself over time. This is true, even if the application has used the FLUSH flag with GetData in the past. For example:

// Enables an infinite loop:	
+            while( pQuery->GetData( ... , 0 ) == S_FALSE ) ; // Still enables an infinite loop:	
+            pQuery->GetData( ... , D3DGETDATA_FLUSH );	
+            while( pQuery->GetData( ... , 0 ) == S_FALSE ) ; // Does not enable an infinite loop because eventually the command	
+            // buffer will fill up and that will cause a flush to occur.	
+            while( pQuery->GetData( ..., 0 ) == S_FALSE ) { pDevice->SetTexture(...); pDevice->Draw(...);	
+            }	
+            
+
+ + bb205873 + HRESULT IDirect3DQuery9::GetData([In] void* pData,[In] unsigned int dwSize,[In] unsigned int dwGetDataFlags) + IDirect3DQuery9::GetData +
+ + + Initializes a new instance of the class. + + The device. + The type. + + + + +

Gets the device that is being queried.

+
+ + bb205875 + GetDevice + GetDevice + HRESULT IDirect3DQuery9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Gets the number of bytes in the query data.

+
+ + bb205874 + GetDataSize + GetDataSize + unsigned int IDirect3DQuery9::GetDataSize() +
+ + + Gets the type. + + D3DQUERYTYPE IDirect3DQuery9::GetType() + + + +

The interface is used to generalize the process of rendering to environment maps.

+
+ +

An environment map is used to texture-map scene geometry to provide a more sophisticated scene without using complex geometry. This interface supports creating surfaces for the following kinds of geometry: cube, half sphere or hemispheric, parabolic, or sphere.

The interface is obtained by calling the function.

The LPD3DXRenderToEnvMap type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXRenderToEnvMap;	
+            
+
+ + bb174181 + ID3DXRenderToEnvMap + ID3DXRenderToEnvMap +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the Direct3D device associated with the environment map.

+
+

Address of a reference to an interface that represents the Direct3D device object associated with the environment map.

+

If the method succeeds, the return value is . If the method fails, the return value can be . Calling this method increases the internal reference count on the interface. Be sure to call when you are done using this interface or you will have a memory leak.

+ + bb174189 + HRESULT ID3DXRenderToEnvMap::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXRenderToEnvMap::GetDevice +
+ + +

Retrieves the description of the render surface.

+
+

Pointer to a structure that describes the rendering surface.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174188 + HRESULT ID3DXRenderToEnvMap::GetDesc([Out] D3DXRTE_DESC* pDesc) + ID3DXRenderToEnvMap::GetDesc +
+ + +

Initiate the rendering of a cubic environment map.

+
+

Pointer to an interface that represents the cube texture to which to render.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

See to draw each of the 6 faces.

+
+ + bb174182 + HRESULT ID3DXRenderToEnvMap::BeginCube([In] IDirect3DCubeTexture9* pCubeTex) + ID3DXRenderToEnvMap::BeginCube +
+ + +

Initiate the rendering of a spherical environment map.

+
+

Pointer to an interface that represents the texture to which to render.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: .E_FAIL

+ +

See to draw the face.

+
+ + bb174185 + HRESULT ID3DXRenderToEnvMap::BeginSphere([In] IDirect3DTexture9* pTex) + ID3DXRenderToEnvMap::BeginSphere +
+ + +

Initiate the rendering of a hemispheric environment map.

+
+

Pointer to an interface that represents the positive texture render surface.

+

Pointer to an interface that represents the negative texture render surface.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: .E_FAIL

+ +

See to draw the face.

+
+ + bb174183 + HRESULT ID3DXRenderToEnvMap::BeginHemisphere([In] IDirect3DTexture9* pTexZPos,[In] IDirect3DTexture9* pTexZNeg) + ID3DXRenderToEnvMap::BeginHemisphere +
+ + +

Initiate the rendering of a parabolic environment map.

+
+

Pointer to an interface that represents the positive render texture.

+

Pointer to an interface that represents the negative render texture.

+

If the function succeeds, the return value is . If the function fails, the return value can be one of the following: .E_FAIL

+ +

See to draw the faces.

+
+ + bb174184 + HRESULT ID3DXRenderToEnvMap::BeginParabolic([In] IDirect3DTexture9* pTexZPos,[In] IDirect3DTexture9* pTexZNeg) + ID3DXRenderToEnvMap::BeginParabolic +
+ + +

Initiate the drawing of each face of an environment map.

+
+

The first face of the environmental cube map. See .

+

A valid combination of one or more flags.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method must be called once for each type of environment map. The only exception is a cubic environment map which requires this method to be called six times, once for each face in . For more information, see Environment Mapping (Direct3D 9).

+
+ + bb174187 + HRESULT ID3DXRenderToEnvMap::Face([In] D3DCUBEMAP_FACES Face,[In] unsigned int MipFilter) + ID3DXRenderToEnvMap::Face +
+ + +

Restore all render targets and, if needed, compose all the rendered faces into the environment map surface.

+
+

A valid combination of one or more flags.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174186 + HRESULT ID3DXRenderToEnvMap::End([In] unsigned int MipFilter) + ID3DXRenderToEnvMap::End +
+ + +

Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost, or before resetting a device.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method should be called whenever the device is lost or before the user calls . Even if the device was not actually lost, is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling and then .

+
+ + bb174190 + HRESULT ID3DXRenderToEnvMap::OnLostDevice() + ID3DXRenderToEnvMap::OnLostDevice +
+ + +

Use this method to re-acquire resources and save initial state.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

should be called each time the device is reset (using ), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

+
+ + bb174191 + HRESULT ID3DXRenderToEnvMap::OnResetDevice() + ID3DXRenderToEnvMap::OnResetDevice +
+ + +

Retrieves the Direct3D device associated with the environment map.

+
+ + bb174189 + GetDevice + GetDevice + HRESULT ID3DXRenderToEnvMap::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Retrieves the description of the render surface.

+
+ + bb174188 + GetDesc + GetDesc + HRESULT ID3DXRenderToEnvMap::GetDesc([Out] D3DXRTE_DESC* pDesc) +
+ + +

The interface is used to generalize the process of rendering to surfaces.

+
+ +

Surfaces can be used in a variety of ways including render targets, off-screen rendering, or rendering to textures.

A surface can be configured using a separate viewport using the method, to provide a custom render view. If the surface is not a render target, a compatible render target is used, and the result is copied to the surface at the end of the scene.

The interface is obtained by calling the function.

The LPD3DXRENDERTOSURFACE type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXRENDERTOSURFACE;	
+            
+
+ + bb174192 + ID3DXRenderToSurface + ID3DXRenderToSurface +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the Direct3D device associated with the render surface.

+
+

Address of a reference to an interface, representing the Direct3D device object associated with the render surface.

+

If the method succeeds, the return value is . If the method fails, the return value can be . Calling this method will increase the internal reference count on the interface. Be sure to call when you are done using this interface or you will have a memory leak.

+ + bb174196 + HRESULT ID3DXRenderToSurface::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXRenderToSurface::GetDevice +
+ + +

Retrieves the parameters of the render surface.

+
+

Pointer to a structure, describing the parameters of the render surface.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174195 + HRESULT ID3DXRenderToSurface::GetDesc([Out] D3DXRTS_DESC* pDesc) + ID3DXRenderToSurface::GetDesc +
+ + +

Begins a scene.

+
+

Pointer to an interface, representing the render surface.

+

Pointer to a structure, describing the viewport for the scene.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: . D3DXERR_INVALIDDATA E_OUTOFMEMORY

+ + bb174193 + HRESULT ID3DXRenderToSurface::BeginScene([In] IDirect3DSurface9* pSurface,[In] const D3DVIEWPORT9* pViewport) + ID3DXRenderToSurface::BeginScene +
+ + +

Ends a scene.

+
+

Filter options, enumerated in .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174194 + HRESULT ID3DXRenderToSurface::EndScene([In] D3DX_FILTER MipFilter) + ID3DXRenderToSurface::EndScene +
+ + +

Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost or before resetting a device.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method should be called whenever the device is lost or before the user calls . Even if the device was not actually lost, is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling and then .

+
+ + bb174197 + HRESULT ID3DXRenderToSurface::OnLostDevice() + ID3DXRenderToSurface::OnLostDevice +
+ + +

Use this method to re-acquire resources and save initial state.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

should be called each time the device is reset (using ), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

+
+ + bb174198 + HRESULT ID3DXRenderToSurface::OnResetDevice() + ID3DXRenderToSurface::OnResetDevice +
+ + + Creates a render surface. + +

Pointer to an interface, the device to be associated with the render surface.

+

Width of the render surface, in pixels.

+

Height of the render surface, in pixels.

+

Member of the enumerated type, describing the pixel format of the render surface.

+

If TRUE, the render surface supports a depth-stencil surface. Otherwise, this member is set to . This function will create a new depth buffer.

+

If DepthStencil is set to TRUE, this parameter is a member of the enumerated type, describing the depth-stencil format of the render surface.

+ bb172791 + HRESULT D3DXCreateRenderToSurface([In] IDirect3DDevice9* pDevice,[In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] BOOL DepthStencil,[In] D3DFORMAT DepthStencilFormat,[In] ID3DXRenderToSurface** ppRenderToSurface) + D3DXCreateRenderToSurface +
+ + +

Retrieves the Direct3D device associated with the render surface.

+
+ + bb174196 + GetDevice + GetDevice + HRESULT ID3DXRenderToSurface::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Retrieves the parameters of the render surface.

+
+ + bb174195 + GetDesc + GetDesc + HRESULT ID3DXRenderToSurface::GetDesc([Out] D3DXRTS_DESC* pDesc) +
+ + + No documentation. + + + bb280438 + ID3DXSPMesh + ID3DXSPMesh + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + + unsigned int ID3DXSPMesh::GetNumFaces() + ID3DXSPMesh::GetNumFaces + + + + No documentation. + + No documentation. + + unsigned int ID3DXSPMesh::GetNumVertices() + ID3DXSPMesh::GetNumVertices + + + + No documentation. + + No documentation. + + unsigned int ID3DXSPMesh::GetFVF() + ID3DXSPMesh::GetFVF + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::GetDeclaration([In] D3DVERTEXELEMENT9* Declaration) + ID3DXSPMesh::GetDeclaration + + + + No documentation. + + No documentation. + + unsigned int ID3DXSPMesh::GetOptions() + ID3DXSPMesh::GetOptions + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXSPMesh::GetDevice + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::CloneMeshFVF([In] unsigned int Options,[In] unsigned int FVF,[In] IDirect3DDevice9* pD3DDevice,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pVertexRemapOut,[In] ID3DXMesh** ppCloneMesh) + ID3DXSPMesh::CloneMeshFVF + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::CloneMesh([In] unsigned int Options,[In] const D3DVERTEXELEMENT9* pDeclaration,[In] IDirect3DDevice9* pD3DDevice,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pVertexRemapOut,[In] ID3DXMesh** ppCloneMesh) + ID3DXSPMesh::CloneMesh + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::ClonePMeshFVF([In] unsigned int Options,[In] unsigned int FVF,[In] IDirect3DDevice9* pD3DDevice,[In] unsigned int* pVertexRemapOut,[In] float* pErrorsByFace,[In] ID3DXPMesh** ppCloneMesh) + ID3DXSPMesh::ClonePMeshFVF + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::ClonePMesh([In] unsigned int Options,[In] const D3DVERTEXELEMENT9* pDeclaration,[In] IDirect3DDevice9* pD3DDevice,[In] unsigned int* pVertexRemapOut,[In] float* pErrorsbyFace,[In] ID3DXPMesh** ppCloneMesh) + ID3DXSPMesh::ClonePMesh + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::ReduceFaces([In] unsigned int Faces) + ID3DXSPMesh::ReduceFaces + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::ReduceVertices([In] unsigned int Vertices) + ID3DXSPMesh::ReduceVertices + + + + No documentation. + + No documentation. + + unsigned int ID3DXSPMesh::GetMaxFaces() + ID3DXSPMesh::GetMaxFaces + + + + No documentation. + + No documentation. + + unsigned int ID3DXSPMesh::GetMaxVertices() + ID3DXSPMesh::GetMaxVertices + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::GetVertexAttributeWeights([In] D3DXATTRIBUTEWEIGHTS* pVertexAttributeWeights) + ID3DXSPMesh::GetVertexAttributeWeights + + + + No documentation. + + No documentation. + No documentation. + + HRESULT ID3DXSPMesh::GetVertexWeights([Out] float* pVertexWeights) + ID3DXSPMesh::GetVertexWeights + + + + No documentation. + + + GetNumFaces + GetNumFaces + unsigned int ID3DXSPMesh::GetNumFaces() + + + + No documentation. + + + GetNumVertices + GetNumVertices + unsigned int ID3DXSPMesh::GetNumVertices() + + + + No documentation. + + + GetFVF + GetFVF + unsigned int ID3DXSPMesh::GetFVF() + + + + No documentation. + + + GetOptions + GetOptions + unsigned int ID3DXSPMesh::GetOptions() + + + + No documentation. + + + GetDevice + GetDevice + HRESULT ID3DXSPMesh::GetDevice([Out] IDirect3DDevice9** ppDevice) + + + + No documentation. + + + GetMaxFaces + GetMaxFaces + unsigned int ID3DXSPMesh::GetMaxFaces() + + + + No documentation. + + + GetMaxVertices + GetMaxVertices + unsigned int ID3DXSPMesh::GetMaxVertices() + + + + No documentation. + + + GetVertexWeights + GetVertexWeights + HRESULT ID3DXSPMesh::GetVertexWeights([Out] float* pVertexWeights) + + + + No documentation. + + + bb280439 + ID3DXSkinInfo + ID3DXSkinInfo + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the influence value for a bone.

+
+

Bone number.

+

Number of influences.

+

The array of vertices influenced by a bone.

+

The array of weights influenced by a bone.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174224 + HRESULT ID3DXSkinInfo::SetBoneInfluence([In] unsigned int bone,[In] unsigned int numInfluences,[In] const unsigned int* vertices,[In] const float* weights) + ID3DXSkinInfo::SetBoneInfluence +
+ + +

Sets an influence value of a bone on a single vertex.

+
+

Index of the bone. Must be between 0 and the number of bones.

+

Index of the influence array of the specified bone.

+

Blend factor of the specified bone influence.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174227 + HRESULT ID3DXSkinInfo::SetBoneVertexInfluence([In] unsigned int boneNum,[In] unsigned int influenceNum,[In] float weight) + ID3DXSkinInfo::SetBoneVertexInfluence +
+ + +

Gets the number of influences for a bone.

+
+

Bone number.

+

Returns the number of influences for a bone.

+ + bb174220 + unsigned int ID3DXSkinInfo::GetNumBoneInfluences([In] unsigned int bone) + ID3DXSkinInfo::GetNumBoneInfluences +
+ + +

Gets the vertices and weights that a bone influences.

+
+

Bone number.

+

Get the array of vertices influenced by a bone.

+

Get the array of weights influenced by a bone.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Use to find out how many vertices the bone influences.

+
+ + bb174211 + HRESULT ID3DXSkinInfo::GetBoneInfluence([In] unsigned int bone,[Out] unsigned int* vertices,[Out] float* weights) + ID3DXSkinInfo::GetBoneInfluence +
+ + +

Retrieves the blend factor and vertex affected by a specified bone influence.

+
+

Index of the bone. Must be between 0 and the number of bones.

+

Index of the influence array of the specified bone.

+

Pointer to the blend factor influenced by influenceNum.

+

Pointer to the vertex influenced by influenceNum.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174214 + HRESULT ID3DXSkinInfo::GetBoneVertexInfluence([In] unsigned int boneNum,[In] unsigned int influenceNum,[Out] float* pWeight,[Out] unsigned int* pVertexNum) + ID3DXSkinInfo::GetBoneVertexInfluence +
+ + +

Gets the maximum number of influences for any vertex in the mesh.

+
+

Pointer to the maximum vertex influence.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174218 + HRESULT ID3DXSkinInfo::GetMaxVertexInfluences([Out] unsigned int* maxVertexInfluences) + ID3DXSkinInfo::GetMaxVertexInfluences +
+ + +

Gets the number of bones.

+
+

Returns the number of bones.

+ + bb174221 + unsigned int ID3DXSkinInfo::GetNumBones() + ID3DXSkinInfo::GetNumBones +
+ + +

Retrieves the index of the bone influence affecting a single vertex.

+
+

Index of the bone. Must be between 0 and the number of bones.

+

Index of the vertex for which the bone influence is to be found. Must be between 0 and the number of vertices in the mesh.

+

Pointer to the index of the bone influence that affects vertexNum.

+

If the method succeeds, the return value is . If the specified bone does not influence the given vertex, S_FALSE is returned. If the method fails, the return value can be .

+ + bb174210 + HRESULT ID3DXSkinInfo::FindBoneVertexInfluenceIndex([In] unsigned int boneNum,[In] unsigned int vertexNum,[In] unsigned int* pInfluenceIndex) + ID3DXSkinInfo::FindBoneVertexInfluenceIndex +
+ + +

Gets the maximum face influences in a triangle mesh with the specified index buffer.

+
+

Pointer to the index buffer that contains the mesh index data.

+

Number of faces in the mesh.

+

Pointer to the maximum face influences.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174217 + HRESULT ID3DXSkinInfo::GetMaxFaceInfluences([In] IDirect3DIndexBuffer9* pIB,[In] unsigned int NumFaces,[Out] unsigned int* maxFaceInfluences) + ID3DXSkinInfo::GetMaxFaceInfluences +
+ + +

Sets the minimum bone influence. Influence values smaller than this are ignored.

+
+

Minimum influence value. Influence values smaller than this are ignored.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174230 + HRESULT ID3DXSkinInfo::SetMinBoneInfluence([In] float MinInfl) + ID3DXSkinInfo::SetMinBoneInfluence +
+ + +

Gets the minimum bone influence. Influence values smaller than this are ignored.

+
+

Returns the minimum bone influence value.

+ + bb174219 + float ID3DXSkinInfo::GetMinBoneInfluence() + ID3DXSkinInfo::GetMinBoneInfluence +
+ + +

Sets the bone name.

+
+

Bone number

+

Bone name

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Bone names are returned by .

+
+ + bb174225 + HRESULT ID3DXSkinInfo::SetBoneName([In] unsigned int Bone,[In] const char* pName) + ID3DXSkinInfo::SetBoneName +
+ + +

Gets the bone name, from the bone index.

+
+

Bone number.

+

Returns the bone name. Do not free this string.

+ + bb174212 + const char* ID3DXSkinInfo::GetBoneName([In] unsigned int Bone) + ID3DXSkinInfo::GetBoneName +
+ + +

Sets the bone offset matrix.

+
+

Bone number.

+

Pointer to the bone offset matrix.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Bone names are returned by .

+
+ + bb174226 + HRESULT ID3DXSkinInfo::SetBoneOffsetMatrix([In] unsigned int Bone,[In] const D3DXMATRIX* pBoneTransform) + ID3DXSkinInfo::SetBoneOffsetMatrix +
+ + +

Gets the bone offset matrix.

+
+

Bone number.

+

Returns a reference to the bone offset matrix. Do not free this reference.

+ + bb174213 + D3DXMATRIX* ID3DXSkinInfo::GetBoneOffsetMatrix([In] unsigned int Bone) + ID3DXSkinInfo::GetBoneOffsetMatrix +
+ + +

Clones a skin info object.

+
+

Address of a reference to an object, which will contain the cloned object if the method is successful.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174207 + HRESULT ID3DXSkinInfo::Clone([In] ID3DXSkinInfo** ppSkinInfo) + ID3DXSkinInfo::Clone +
+ + +

Updates bone influence information to match vertices after they are reordered. This method should be called if the target vertex buffer has been reordered externally.

+
+

Number of vertices to remap.

+

Array of DWORDS whose length is specified by NumVertices.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Each element in pVertexRemap specifies the previous vertex index for that position. For example, if a vertex was in position 3 but has been remapped to position 5, then the fifth element of pVertexRemap should contain 3. The vertex remap array returned by can be used.

+
+ + bb174223 + HRESULT ID3DXSkinInfo::Remap([In] unsigned int NumVertices,[In] unsigned int* pVertexRemap) + ID3DXSkinInfo::Remap +
+ + +

Sets the flexible vertex format (FVF) type.

+
+

Flexible vertex format. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174229 + HRESULT ID3DXSkinInfo::SetFVF([In] unsigned int FVF) + ID3DXSkinInfo::SetFVF +
+ + +

Sets the vertex declaration.

+
+

Pointer to an array of elements.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174228 + HRESULT ID3DXSkinInfo::SetDeclaration([In] const D3DVERTEXELEMENT9* pDeclaration) + ID3DXSkinInfo::SetDeclaration +
+ + +

Gets the fixed function vertex value.

+
+

Returns the flexible vertex format (FVF) codes.

+ +

This method can return 0 if the vertex format cannot be mapped directly to an FVF code. This will occur for a mesh created from a vertex declaration that doesn't have the same order and elements supported by the FVF codes.

+
+ + bb174216 + unsigned int ID3DXSkinInfo::GetFVF() + ID3DXSkinInfo::GetFVF +
+ + +

Gets the vertex declaration.

+
+

Array of elements describing the vertex format of the mesh vertices. The upper limit of this declarator array is . The vertex element array ends with the D3DDECL_END macro.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

The array of elements includes the D3DDECL_END macro, which ends the declaration.

+
+ + bb174215 + HRESULT ID3DXSkinInfo::GetDeclaration([In] D3DVERTEXELEMENT9* Declaration) + ID3DXSkinInfo::GetDeclaration +
+ + +

Applies software skinning to the target vertices based on the current matrices.

+
+

Bone transform matrix.

+

Inverse transpose of the bone transform matrix.

+

Pointer to the buffer containing the source vertices.

+

Pointer to the buffer containing the destination vertices.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

When used to skin vertices with two position elements, this method skins the second position element with the inverse of the bone instead of the bone itself.

+
+ + bb174231 + HRESULT ID3DXSkinInfo::UpdateSkinnedMesh([In] const D3DXMATRIX* pBoneTransforms,[In] const D3DXMATRIX* pBoneInvTransposeTransforms,[In] const void* pVerticesSrc,[In] void* pVerticesDst) + ID3DXSkinInfo::UpdateSkinnedMesh +
+ + +

Takes a mesh and returns a new mesh with per-vertex blend weights and a bone combination table. The table describes which bones affect which subsets of the mesh.

+
+

Input mesh. See .

+

Currently unused.

+

Input mesh adjacency information.

+

Output mesh adjacency information.

+

An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the blended mesh. If the value supplied for this argument is null, face remap data is not returned.

+

Address of a reference to an interface, which contains a DWORD for each vertex that specifies how the new vertices map to the old vertices. This remap is useful if you need to alter external data based on the new vertex mapping. This parameter is optional; null may be used.

+

Pointer to a DWORD that will contain the maximum number of bone influences required per vertex for this skinning method.

+

Pointer to the number of bones in the bone combination table.

+

Pointer to the bone combination table. The data is organized in a structure.

+

Pointer to the new mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Each element in the remap array specifies the previous index for that position. For example, if a vertex was in position 3 but has been remapped to position 5, then the fifth element of pVertexRemap will contain 3.

This method does not run on hardware that does not support fixed-function vertex blending.

+
+ + bb174208 + HRESULT ID3DXSkinInfo::ConvertToBlendedMesh([In] ID3DXMesh* pMesh,[In] unsigned int Options,[In] const unsigned int* pAdjacencyIn,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pFaceRemap,[In] ID3DXBuffer** ppVertexRemap,[In] unsigned int* pMaxFaceInfl,[In] unsigned int* pNumBoneCombinations,[In] ID3DXBuffer** ppBoneCombinationTable,[In] ID3DXMesh** ppMesh) + ID3DXSkinInfo::ConvertToBlendedMesh +
+ + +

Takes a mesh and returns a new mesh with per-vertex blend weights, indices, and a bone combination table. The table describes which bone palettes affect which subsets of the mesh.

+
+

The input mesh. See .

+

Currently unused.

+

Number of bone matrices available for matrix palette skinning.

+

Input mesh adjacency information.

+

Output mesh adjacency information.

+

An array of DWORDs, one per face, that identifies the original mesh face that corresponds to each face in the blended mesh. If the value supplied for this argument is null, face remap data is not returned.

+

Address of a reference to an interface, which contains a DWORD for each vertex that specifies how the new vertices map to the old vertices. This remap is useful if you need to alter external data based on the new vertex mapping. This parameter is optional; null may be used.

+

Pointer to a DWORD that will contain the maximum number of bone influences required per vertex for this skinning method.

+

Pointer to the number of bones in the bone combination table.

+

Pointer to the bone combination table. The data is organized in a structure.

+

Pointer to the new mesh.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Each element in the remap arrays specifies the previous index for that position. For example, if a vertex was in position 3 but has been remapped to position 5, then the fifth element of pVertexRemap will contain 3.

This method does not run on hardware that does not support fixed-function vertex blending.

+
+ + bb174209 + HRESULT ID3DXSkinInfo::ConvertToIndexedBlendedMesh([In] ID3DXMesh* pMesh,[In] unsigned int Options,[In] unsigned int paletteSize,[In] const unsigned int* pAdjacencyIn,[In] unsigned int* pAdjacencyOut,[In] unsigned int* pFaceRemap,[In] ID3DXBuffer** ppVertexRemap,[In] unsigned int* pMaxVertexInfl,[In] unsigned int* pNumBoneCombinations,[In] ID3DXBuffer** ppBoneCombinationTable,[In] ID3DXMesh** ppMesh) + ID3DXSkinInfo::ConvertToIndexedBlendedMesh +
+ + +

Gets the maximum number of influences for any vertex in the mesh.

+
+ + bb174218 + GetMaxVertexInfluences + GetMaxVertexInfluences + HRESULT ID3DXSkinInfo::GetMaxVertexInfluences([Out] unsigned int* maxVertexInfluences) +
+ + +

Gets the number of bones.

+
+ + bb174221 + GetNumBones + GetNumBones + unsigned int ID3DXSkinInfo::GetNumBones() +
+ + +

Gets or sets the minimum bone influence. Influence values smaller than this are ignored.

+
+ + bb174219 + GetMinBoneInfluence / SetMinBoneInfluence + GetMinBoneInfluence + float ID3DXSkinInfo::GetMinBoneInfluence() +
+ + +

Gets or sets the fixed function vertex value.

+
+ +

This method can return 0 if the vertex format cannot be mapped directly to an FVF code. This will occur for a mesh created from a vertex declaration that doesn't have the same order and elements supported by the FVF codes.

+
+ + bb174216 + GetFVF / SetFVF + GetFVF + unsigned int ID3DXSkinInfo::GetFVF() +
+ + +

The interface provides a set of methods that simplify the process of drawing sprites using Microsoft Direct3D.

+
+ +

The interface is obtained by calling the function.

The application typically first calls , which allows control over the device render state, alpha blending, and sprite transformation and sorting. Then for each sprite to be displayed, call . can be called repeatedly to store any number of sprites. To display the batched sprites to the device, call or .

The LPD3DXSPRITE type is defined as a reference to the interface.

 typedef interface  ;	
+            typedef interface  *LPD3DXSPRITE;	
+            
+
+ + bb174249 + ID3DXSprite + ID3DXSprite +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the device associated with the sprite object.

+
+

Address of a reference to an interface, representing the Direct3D device object associated with the sprite object.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ +

Calling this method will increase the internal reference count on the interface.

+
+ + bb174254 + HRESULT ID3DXSprite::GetDevice([Out] IDirect3DDevice9** ppDevice) + ID3DXSprite::GetDevice +
+ + +

Gets the sprite transform.

+
+

Pointer to a that contains a transform of the sprite from the original world space.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ + bb174255 + HRESULT ID3DXSprite::GetTransform([Out] D3DXMATRIX* pTransform) + ID3DXSprite::GetTransform +
+ + +

Sets the sprite transform.

+
+

Pointer to a that contains a transform of the sprite from the original world space. Use this transform to scale, rotate, or transform the sprite.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ + bb174258 + HRESULT ID3DXSprite::SetTransform([In] const D3DXMATRIX* pTransform) + ID3DXSprite::SetTransform +
+ + +

Sets the right-handed world-view transform for a sprite. A call to this method is required before billboarding or sorting sprites.

+
+

Pointer to a that contains a world transform. If null, the identity matrix is used for the world transform.

+

Pointer to a that contains a view transform. If null, the identity matrix is used for the view transform.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ +

A call to this method (or to ) is required if the sprite will be rendered with the D3DXSprite__BILLBOARD, D3DXSprite__SORT_DEPTH_FRONTTOBACK, or D3DXSprite__SORT_DEPTH_BACKTOFRONT flag value in .

+
+ + bb174260 + HRESULT ID3DXSprite::SetWorldViewRH([In] const D3DXMATRIX* pWorld,[In] const D3DXMATRIX* pView) + ID3DXSprite::SetWorldViewRH +
+ + +

Sets the left-handed world-view transform for a sprite. A call to this method is required before billboarding or sorting sprites.

+
+

Pointer to a that contains a world transform. If null, the identity matrix is used for the world transform.

+

Pointer to a that contains a view transform. If null, the identity matrix is used for the view transform.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ +

A call to this method (or to ) is required if the sprite will be rendered with the D3DXSprite__BILLBOARD, D3DXSprite__SORT_DEPTH_FRONTTOBACK, or D3DXSprite__SORT_DEPTH_BACKTOFRONT flag value in .

+
+ + bb174259 + HRESULT ID3DXSprite::SetWorldViewLH([In] const D3DXMATRIX* pWorld,[In] const D3DXMATRIX* pView) + ID3DXSprite::SetWorldViewLH +
+ + +

Prepares a device for drawing sprites.

+
+

Combination of zero or more flags that describe sprite rendering options. For this method, the valid flags are:

  • D3DXSPRITE__BILLBOARD
  • D3DXSPRITE__SORT_DEPTH_BACKTOFRONT
  • D3DXSPRITE__SORT_DEPTH_FRONTTOBACK
  • D3DXSPRITE__SORT_TEXTURE

For a description of the flags and for information on how to control device state capture and device view transforms, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , D3DXERR_INVALIDDATA, E_OUTOFMEMORY.

+ +

This method must be called from inside a . . . sequence. cannot be used as a substitute for either or .

This method will set the following states on the device.

Render States:

Type ()Value
TRUE
0x00
AlphaCmpCaps
TRUE
| | |
0

?

Texture Stage States:

Stage IdentifierType ()Value
0
0
0
0
0
0
00
0
1
1

?

Sampler States:

Sampler Stage IndexType ()Value
0
0
0 if TextureFilterCaps includes ; otherwise
00
0MaxAnisotropy
0 if TextureFilterCaps includes ; otherwise
0 if TextureFilterCaps includes ; otherwise
00
00

?

Note??This method disables N-patches.

+
+ + bb174250 + HRESULT ID3DXSprite::Begin([In] D3DXSPRITE Flags) + ID3DXSprite::Begin +
+ + +

Adds a sprite to the list of batched sprites.

+
+

Pointer to an interface that represents the sprite texture.

+

Pointer to a structure that indicates the portion of the source texture to use for the sprite. If this parameter is null, then the entire source image is used for the sprite.

+

Pointer to a vector that identifies the center of the sprite. If this argument is null, the point (0,0,0) is used, which is the upper-left corner.

+

Pointer to a vector that identifies the position of the sprite. If this argument is null, the point (0,0,0) is used, which is the upper-left corner.

+

type. The color and alpha channels are modulated by this value. A value of 0xFFFFFFFF maintains the original source color and alpha data. Use the D3DCOLOR_RGBA macro to help generate this color.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

To scale, rotate, or translate a sprite, call with a matrix that contains the scale, rotate, and translate (SRT) values, before calling . For information about setting SRT values in a matrix, see Matrix Transforms.

+
+ + bb174251 + HRESULT ID3DXSprite::Draw([In] IDirect3DTexture9* pTexture,[In] const void* pSrcRect,[In] const void* pCenter,[In] const void* pPosition,[In] D3DCOLOR Color) + ID3DXSprite::Draw +
+ + +

Forces all batched sprites to be submitted to the device. Device states remain as they were after the last call to . The list of batched sprites is then cleared.

+
+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ + bb174253 + HRESULT ID3DXSprite::Flush() + ID3DXSprite::Flush +
+ + +

Calls and restores the device state to how it was before was called.

+
+

If the method succeeds, the return value is . If the method fails, the following value will be returned.

+ +

cannot be used as a substitute for either or .

+
+ + bb174252 + HRESULT ID3DXSprite::End() + ID3DXSprite::End +
+ + +

Use this method to release all references to video memory resources and delete all stateblocks. This method should be called whenever a device is lost or before resetting a device.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method should be called whenever the device is lost or before the user calls . Even if the device was not actually lost, is responsible for freeing stateblocks and other resources that may need to be released before resetting the device. As a result, the font object cannot be used again before calling and then .

+
+ + bb174256 + HRESULT ID3DXSprite::OnLostDevice() + ID3DXSprite::OnLostDevice +
+ + +

Use this method to re-acquire resources and save initial state.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

should be called each time the device is reset (using ), before any other methods are called. This is a good place to re-acquire video-memory resources and capture state blocks.

+
+ + bb174257 + HRESULT ID3DXSprite::OnResetDevice() + ID3DXSprite::OnResetDevice +
+ + + Creates a sprite object which is associated with a particular device. Sprite objects are used to draw 2D images to the screen. + + A reference to the device (see ) that will draw the sprite. + + This interface can be used to draw two dimensional images in screen space of the associated device. + + HRESULT D3DXCreateSprite([In] IDirect3DDevice9* pDevice,[Out, Fast] ID3DXSprite** ppSprite) + + + +

Adds a sprite to the list of batched sprites.

+
+

Pointer to an interface that represents the sprite texture.

+

type. The color and alpha channels are modulated by this value. A value of 0xFFFFFFFF maintains the original source color and alpha data. Use the D3DCOLOR_RGBA macro to help generate this color.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

To scale, rotate, or translate a sprite, call with a matrix that contains the scale, rotate, and translate (SRT) values, before calling . For information about setting SRT values in a matrix, see Matrix Transforms.

+
+ bb174251 + HRESULT ID3DXSprite::Draw([In] IDirect3DTexture9* pTexture,[In] const RECT* pSrcRect,[In] const D3DXVECTOR3* pCenter,[In] const D3DXVECTOR3* pPosition,[In] D3DCOLOR Color) + ID3DXSprite::Draw +
+ + +

Adds a sprite to the list of batched sprites.

+
+

Pointer to an interface that represents the sprite texture.

+

Pointer to a structure that indicates the portion of the source texture to use for the sprite. If this parameter is null, then the entire source image is used for the sprite.

+

Pointer to a vector that identifies the center of the sprite. If this argument is null, the point (0,0,0) is used, which is the upper-left corner.

+

Pointer to a vector that identifies the position of the sprite. If this argument is null, the point (0,0,0) is used, which is the upper-left corner.

+

type. The color and alpha channels are modulated by this value. A value of 0xFFFFFFFF maintains the original source color and alpha data. Use the D3DCOLOR_RGBA macro to help generate this color.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

To scale, rotate, or translate a sprite, call with a matrix that contains the scale, rotate, and translate (SRT) values, before calling . For information about setting SRT values in a matrix, see Matrix Transforms.

+
+ bb174251 + HRESULT ID3DXSprite::Draw([In] IDirect3DTexture9* pTexture,[In] const RECT* pSrcRect,[In] const D3DXVECTOR3* pCenter,[In] const D3DXVECTOR3* pPosition,[In] D3DCOLOR Color) + ID3DXSprite::Draw +
+ + +

Retrieves the device associated with the sprite object.

+
+ +

Calling this method will increase the internal reference count on the interface.

+
+ + bb174254 + GetDevice + GetDevice + HRESULT ID3DXSprite::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Gets or sets the sprite transform.

+
+ + bb174255 + GetTransform / SetTransform + GetTransform + HRESULT ID3DXSprite::GetTransform([Out] D3DXMATRIX* pTransform) +
+ + +

Applications use the methods of the interface to encapsulate render states.

+
+ +

This interface can be used to save and restore pipeline state. It can also be used to capture the current state.

The LPDIRECT3DSTATEBLOCK9 and PDIRECT3DSTATEBLOCK9 types are defined as references to the interface.

typedef struct  *LPDIRECT3DSTATEBLOCK9, *PDIRECT3DSTATEBLOCK9;
+
+ + bb205887 + IDirect3DStateBlock9 + IDirect3DStateBlock9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the device.

+
+

Pointer to the interface that is returned.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205891 + HRESULT IDirect3DStateBlock9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DStateBlock9::GetDevice +
+ + +

Capture the current value of states that are included in a stateblock.

+
+

If the method succeeds, the return value is . If the method fails because capture cannot be done while in record mode, the return value is .

+ +

The Capture method captures current values for states within an existing state block. It does not capture the entire state of the device. For example:

 * pStateBlock = null; pd3dDevice->BeginStateBlock();	
+            // Add the ZENABLE state to the stateblock 	
+            pd3dDevice->SetRenderState ( ,  );	
+            pd3dDevice->EndStateBlock ( &pStateBlock ); // Change the current value that is stored in the state block	
+            pd3dDevice->SetRenderState ( ,  );	
+            pStateBlock->Capture();			 pStateBlock->Release();	
+            

Creating an empty stateblock and calling the Capture method does nothing if no states have been set.

The Capture method will not capture information for lights that are explicitly or implicitly created after the stateblock is created.

+
+ + bb205890 + HRESULT IDirect3DStateBlock9::Capture() + IDirect3DStateBlock9::Capture +
+ + +

Apply the state block to the current device state.

+
+

If the method succeeds, the return value is . If the method fails while in record mode, the return value is .

+ + bb205889 + HRESULT IDirect3DStateBlock9::Apply() + IDirect3DStateBlock9::Apply +
+ + + Initializes a new instance of the class. + + The device. + The type. + + + +

Gets the device.

+
+ + bb205891 + GetDevice + GetDevice + HRESULT IDirect3DStateBlock9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Applications use the methods of the interface to query and prepare surfaces.

+
+ +

The LPDIRECT3DSURFACE9 and PDIRECT3DSURFACE9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9;	
+            
+
+ + bb205892 + IDirect3DSurface9 + IDirect3DSurface9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. This method can also provide access to the parent swap chain if the surface is a back-buffer child.

+
+

Reference identifier of the container being requested.

+

Address of a reference to fill with the container reference if the query succeeds. See Remarks.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If the surface is created using CreateRenderTarget or CreateOffscreenPlainSurface or CreateDepthStencilSurface, the surface is considered stand alone. In this case, GetContainer will return the Direct3D device used to create the surface.

If the call succeeds, the reference count of the container is increased by one.

Here's an example getting the parent texture of a mip surface.

 // Assumes pSurface is a valid  reference	
+            void *pContainer = null;	
+             *pTexture = null;	
+             hr = pSurface->GetContainer(IID_IDirect3DTexture9, &pContainer);	
+            if (SUCCEEDED(hr) && pContainer)	
+            { pTexture = ( *)pContainer;	
+            }	
+            
+
+ + bb205893 + HRESULT IDirect3DSurface9::GetContainer([In] const GUID& riid,[Out] void** ppContainer) + IDirect3DSurface9::GetContainer +
+ + +

Retrieves a description of the surface.

+
+

Pointer to a structure, describing the surface.

+

If the method succeeds, the return value is .

is returned if the argument is invalid.

+ + bb205895 + HRESULT IDirect3DSurface9::GetDesc([Out] D3DSURFACE_DESC* pDesc) + IDirect3DSurface9::GetDesc +
+ + +

Locks a rectangle on a surface.

+
+

Pointer to a structure that describes the locked region.

+

Pointer to a rectangle to lock. Specified by a reference to a structure. Specifying null for this parameter expands the dirty region to cover the entire surface.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

You may not specify a subrect when using . For a description of the flags, see .

+

If the method succeeds, the return value is .

If the method fails, the return value can be or .

+ +

If the flag is specified and the driver cannot lock the surface immediately, will return so that an application can use the CPU cycles while waiting for the driver to lock the surface.

The only lockable format for a depth-stencil surface is . See .

For performance reasons, dirty regions are recorded only for level zero of a texture. Dirty regions are automatically recorded when is called without or . See for more information.

A multisample back buffer cannot be locked.

This method cannot retrieve data from a surface that is is contained by a texture resource created with because such a texture must be assigned to memory and is therefore not lockable. In this case, use instead to copy texture data from device memory to system memory.

+
+ + bb205896 + HRESULT IDirect3DSurface9::LockRect([Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + IDirect3DSurface9::LockRect +
+ + +

Unlocks a rectangle on a surface.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205898 + HRESULT IDirect3DSurface9::UnlockRect() + IDirect3DSurface9::UnlockRect +
+ + +

Retrieves a device context.

+
+

Pointer to the device context for the surface.

+ +

The following restrictions apply.

  • is valid on the following formats only: , , , and . Formats that contain Alpha are not supported because the GDI implementations don't have a well-defined behavior on the alpha channel. For more information about formats, see .
  • Only one device context per surface can be returned at a time.
  • will fail if the surface is already locked. If the surface is a member of a mipmap or cubemap, fails if any other mipmap or cubemap member is locked.
  • fails on render targets unless they were created lockable (or, in the case of back buffers, with the flag).
  • For surfaces not created with , will fail on default pool () surfaces unless they are dynamic () or are lockable render targets.
  • will fail on surfaces.

When a device context is outstanding on a surface, the application may not call these methods:

*

?

* (on a swap chain that contains the surface)

causes an implicit lock; do not retain the device context for later use. Call to release it.

It is valid to call / on levels of a mipmap or cubemap, however, these calls will be slow to all miplevels except the topmost level, and GDI operations to these miplevels will not be accelerated.

The hdc provides access to Win32 and GDI functionality.

+
+ + bb205894 + HRESULT IDirect3DSurface9::GetDC([Out] HDC* phdc) + IDirect3DSurface9::GetDC +
+ + +

Release a device context handle.

+
+

Handle to a device context.

+

If the method succeeds, the return value is . is returned if the argument is invalid.

+ +

An hdc is a Windows resource. It must be released after use so Windows can return it to the pool of available resources.

This method will release only the device context returned by . Otherwise, this method will fail.

+
+ + bb205897 + HRESULT IDirect3DSurface9::ReleaseDC([In] HDC hdc) + IDirect3DSurface9::ReleaseDC +
+ + + Creates a depth-stencil surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [discard]. + A reference to a , representing the created depth-stencil surface resource. + HRESULT IDirect3DDevice9::CreateDepthStencilSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Discard,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + + + + Creates a depth-stencil surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [discard]. + The shared handle. + A reference to a , representing the created depth-stencil surface resource. + HRESULT IDirect3DDevice9::CreateDepthStencilSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Discard,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + + + + Creates a depth-stencil surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [discard]. + The usage. + A reference to a , representing the created depth-stencil surface resource. + HRESULT IDirect3DDevice9Ex::CreateDepthStencilSurfaceEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Discard,[Out, Fast] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + + + + Creates a depth-stencil surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [discard]. + The usage. + The shared handle. + A reference to a , representing the created depth-stencil surface resource. + HRESULT IDirect3DDevice9Ex::CreateDepthStencilSurfaceEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Discard,[Out, Fast] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + + + + Create an off-screen surface. + + The device. + The width. + The height. + The format. + The pool. + A created. + HRESULT IDirect3DDevice9::CreateOffscreenPlainSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + + + + Create an off-screen surface. + + The device. + The width. + The height. + The format. + The pool. + The shared handle. + A created. + HRESULT IDirect3DDevice9::CreateOffscreenPlainSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + + + + Create an off-screen surface. + + The device. + The width. + The height. + The format. + The pool. + The usage. + + A created. + + HRESULT IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + + + + Create an off-screen surface. + + The device. + The width. + The height. + The format. + The pool. + The usage. + The shared handle. + + A created. + + HRESULT IDirect3DDevice9Ex::CreateOffscreenPlainSurfaceEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + + + + Creates a render-target surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [lockable]. + + A render-target . + + HRESULT IDirect3DDevice9::CreateRenderTarget([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Lockable,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + + + + Creates a render-target surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [lockable]. + The shared handle. + + A render-target . + + HRESULT IDirect3DDevice9::CreateRenderTarget([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Lockable,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle) + + + + Creates a render-target surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [lockable]. + The usage. + A render-target . + HRESULT IDirect3DDevice9Ex::CreateRenderTargetEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Lockable,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + + + + Creates a render-target surface. + + The device. + The width. + The height. + The format. + Type of the multisample. + The multisample quality. + if set to true [lockable]. + The usage. + The shared handle. + A render-target . + HRESULT IDirect3DDevice9Ex::CreateRenderTargetEx([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DMULTISAMPLE_TYPE MultiSample,[In] unsigned int MultisampleQuality,[In] BOOL Lockable,[Out] IDirect3DSurface9** ppSurface,[In] void** pSharedHandle,[In] unsigned int Usage) + + + + Loads a surface from a file. + + The surface. + Name of the file. + The filter. + The color key. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileW([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const wchar_t* pSrcFile,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file. + + The surface. + Name of the file. + The filter. + The color key. + The source rectangle. + The destination rectangle. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileW([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const wchar_t* pSrcFile,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file. + + The surface. + Name of the file. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The image information. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileW([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const wchar_t* pSrcFile,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file. + + The surface. + Name of the file. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The palette. + The image information. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileW([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const wchar_t* pSrcFile,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The memory. + The filter. + The color key. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The memory. + The filter. + The color key. + The source rectangle. + The destination rectangle. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The memory. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The image information. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The memory. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The palette. + The image information. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The stream. + The filter. + The color key. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The stream. + The filter. + The color key. + The source rectangle. + The destination rectangle. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The stream. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The stream. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The palette. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from a file in memory. + + The surface. + The stream. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The palette. + The image information. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromFileInMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a surface from memory. + + The surface. + The data. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The data. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + The destination rectangle. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The data. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + The source palette. + The destination palette. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The data. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + The destination rectangle. + The source palette. + The destination palette. + A object describing the result of the operation. + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The stream. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The stream. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + The destination rectangle. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The stream. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + The source palette. + The destination palette. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from memory. + + The surface. + The stream. + The filter. + The color key. + The source format. + The source pitch. + The source rectangle. + The destination rectangle. + The source palette. + The destination palette. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromMemory([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcPitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from a source surface. + + The destination surface. + The source surface. + The filter. + The color key. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromSurface([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from a source surface. + + The destination surface. + The source surface. + The filter. + The color key. + The source rectangle. + The destination rectangle. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromSurface([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a surface from a source surface. + + The destination surface. + The source surface. + The filter. + The color key. + The source rectangle. + The destination rectangle. + The destination palette. + The source palette. + + A object describing the result of the operation. + + HRESULT D3DXLoadSurfaceFromSurface([In] IDirect3DSurface9* pDestSurface,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestRect,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Gets the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. + This method can also provide access to the parent swap chain if the surface is a back-buffer child. + + + The GUID. + The parent container texture. + + + + Locks a rectangle on a surface. + + The type of lock to perform. + A pointer to the locked region + HRESULT IDirect3DSurface9::LockRect([Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a surface. + + The rectangle to lock. + The type of lock to perform. + A pointer to the locked region + HRESULT IDirect3DSurface9::LockRect([Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a surface. + + The type of lock to perform. + The stream pointing to the locked region. + A pointer to the locked region + HRESULT IDirect3DSurface9::LockRect([Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a surface. + + The rectangle to lock. + The type of lock to perform. + The stream pointing to the locked region. + A pointer to the locked region + HRESULT IDirect3DSurface9::LockRect([Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Saves a surface to a file. + + The surface. + Name of the file. + The format. + + A object describing the result of the operation. + + HRESULT D3DXSaveSurfaceToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + + + + Saves a surface to a file. + + The surface. + Name of the file. + The format. + The rectangle. + + A object describing the result of the operation. + + HRESULT D3DXSaveSurfaceToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + + + + Saves a surface to a file. + + The surface. + Name of the file. + The format. + The rectangle. + The palette. + + A object describing the result of the operation. + + HRESULT D3DXSaveSurfaceToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + + + + Saves a surface to a stream. + + The surface. + The format. + + A object describing the result of the operation. + + HRESULT D3DXSaveSurfaceToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + + + + Saves a surface to a stream. + + The surface. + The format. + The rectangle. + + A object describing the result of the operation. + + HRESULT D3DXSaveSurfaceToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + + + + Saves a surface to a stream. + + The surface. + The format. + The rectangle. + The palette. + + A object describing the result of the operation. + + HRESULT D3DXSaveSurfaceToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DSurface9* pSrcSurface,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcRect) + + + +

Retrieves a description of the surface.

+
+ + bb205895 + GetDesc + GetDesc + HRESULT IDirect3DSurface9::GetDesc([Out] D3DSURFACE_DESC* pDesc) +
+ + +

Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.

+
+ +

The Present method is a shortcut to Present. Present has been updated to take a flag allowing the application to request that the method return immediately when the driver reports that it cannot schedule a presentation.

If necessary, a stretch operation is applied to transfer the pixels within the source rectangle to the destination rectangle in the client area of the target window.

Present will fail if called between BeginScene and EndScene pairs unless the render target is not the current render target (such as the back buffer you get from creating an additional swap chain). This is a new behavior for Direct3D 9.

+
+ + bb205908 + IDirect3DSwapChain9 + IDirect3DSwapChain9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.

+
+

Pointer to the source rectangle (see ). Use null to present the entire surface. This value must be null unless the swap chain was created with . If the rectangle exceeds the source surface, the rectangle is clipped to the source surface.

+

Pointer to the destination rectangle in client coordinates (see ). This value must be null unless the swap chain was created with . Use null to fill the entire client area. If the rectangle exceeds the destination client area, the rectangle is clipped to the destination client area.

+

Destination window whose client area is taken as the target for this presentation. If this value is null, the runtime uses the hDeviceWindow member of for the presentation.

+

This value must be null unless the swap chain was created with . See Flipping Surfaces (Direct3D 9). If this value is non-null, the contained region is expressed in back buffer coordinates. The rectangles within the region are the minimal set of pixels that need to be updated. This method takes these rectangles into account when optimizing the presentation by copying only the pixels within the region, or some suitably expanded set of rectangles. This is an aid to optimization only, and the application should not rely on the region being copied exactly. The implementation may choose to copy the whole source rectangle.

+

Allows the application to request that the method return immediately when the driver reports that it cannot schedule a presentation. Valid values are 0, or any combination of or .

  • If dwFlags = 0, this method behaves as it did prior to Direct3D 9. Present will spin until the hardware is free, without returning an error.
  • If dwFlags = , and the hardware is busy processing or waiting for a vertical sync interval, the method will return .
  • If dwFlags = , gamma correction is performed from linear space to sRGB for windowed swap chains. This flag will take effect only when the driver exposes (see Gamma (Direct3D 9)). Appliations should specify this flag if the backbuffer format is 16-bit floating point in order to match windowed mode present to fullscreen gamma behavior.
+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , , , E_OUTOFMEMORY.

+ +

The Present method is a shortcut to Present. Present has been updated to take a flag allowing the application to request that the method return immediately when the driver reports that it cannot schedule a presentation.

If necessary, a stretch operation is applied to transfer the pixels within the source rectangle to the destination rectangle in the client area of the target window.

Present will fail if called between BeginScene and EndScene pairs unless the render target is not the current render target (such as the back buffer you get from creating an additional swap chain). This is a new behavior for Direct3D 9.

+
+ + bb205908 + HRESULT IDirect3DSwapChain9::Present([In, Optional] const void* pSourceRect,[InOut, Optional] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + IDirect3DSwapChain9::Present +
+ + +

Generates a copy of the swapchain's front buffer and places that copy in a system memory buffer provided by the application.

+
+

Pointer to an interface that will receive a copy of the swapchain's front buffer. The data is returned in successive rows with no intervening space, starting from the vertically highest row to the lowest. For windowed mode, the size of the destination surface should be the size of the desktop. For full screen mode, the size of the destination surface should be the screen size.

+

If the method succeeds, the return value is . If BackBuffer exceeds or equals the total number of back buffers, the function fails and returns .

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205905 + HRESULT IDirect3DSwapChain9::GetFrontBufferData([In] IDirect3DSurface9* pDestSurface) + IDirect3DSwapChain9::GetFrontBufferData +
+ + +

Retrieves a back buffer from the swap chain of the device.

+
+

Index of the back buffer object to return. Back buffers are numbered from 0 to the total number of back buffers - 1. A value of 0 returns the first back buffer, not the front buffer. The front buffer is not accessible through this method. Use to retrieve a copy of the front buffer.

+

Stereo view is not supported in Direct3D 9, so the only valid value for this parameter is .

+

Address of a reference to an interface, representing the returned back buffer surface.

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak. You must release any surfaces obtained through this method before releasing the swap chain it belongs to.

+
+ + bb205902 + HRESULT IDirect3DSwapChain9::GetBackBuffer([In] unsigned int iBackBuffer,[In] D3DBACKBUFFER_TYPE Type,[Out] IDirect3DSurface9** ppBackBuffer) + IDirect3DSwapChain9::GetBackBuffer +
+ + +

Returns information describing the raster of the monitor on which the swap chain is presented.

+
+

Pointer to a structure filled with information about the position or other status of the raster on the monitor driven by this adapter.

+

If the method succeeds, the return value is . is returned if pRasterStatus is invalid or if the device does not support reading the current scan line. To determine if the device supports reading the scan line, check for the flag in the Caps member of .

+ + bb205907 + HRESULT IDirect3DSwapChain9::GetRasterStatus([Out] D3DRASTER_STATUS* pRasterStatus) + IDirect3DSwapChain9::GetRasterStatus +
+ + +

Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.

+
+

Pointer to a structure containing data about the display mode of the adapter. As opposed to the display mode of the device, which may not be active if the device does not own full-screen mode.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205904 + HRESULT IDirect3DSwapChain9::GetDisplayMode([Out] D3DDISPLAYMODE* pMode) + IDirect3DSwapChain9::GetDisplayMode +
+ + +

Retrieves the device associated with the swap chain.

+
+

Address of a reference to an interface to fill with the device reference, if the query succeeds.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method allows navigation to the owning device object.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205903 + HRESULT IDirect3DSwapChain9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DSwapChain9::GetDevice +
+ + +

Retrieves the presentation parameters associated with a swap chain.

+
+

Pointer to the presentation parameters. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method can be used to see the presentation parameters of the parent swap chain of a surface (a back buffer, for instance). The parent swap chain can be retrieved with .

+
+ + bb205906 + HRESULT IDirect3DSwapChain9::GetPresentParameters([Out] D3DPRESENT_PARAMETERS* pPresentationParameters) + IDirect3DSwapChain9::GetPresentParameters +
+ + + Initializes a new instance of the class. + + The device. + The present parameters. + HRESULT IDirect3DDevice9::CreateAdditionalSwapChain([In] D3DPRESENT_PARAMETERS* pPresentationParameters,[In] IDirect3DSwapChain9** pSwapChain) + + + + Retrieves a back buffer from the swap chain of the device. + + The i back buffer. + The back buffer from the swap chain of the device. + HRESULT IDirect3DSwapChain9::GetBackBuffer([In] unsigned int iBackBuffer,[In] D3DBACKBUFFER_TYPE Type,[Out] IDirect3DSurface9** ppBackBuffer) + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The present flags. + HRESULT IDirect3DSwapChain9::Present([In, Optional] const void* pSourceRect,[InOut, Optional] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The present flags. + The area of the back buffer that should be presented. + The area of the front buffer that should receive the result of the presentation. + HRESULT IDirect3DSwapChain9::Present([In, Optional] const void* pSourceRect,[InOut, Optional] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The present flags. + The area of the back buffer that should be presented. + The area of the front buffer that should receive the result of the presentation. + The destination window whose client area is taken as the target for this presentation. + HRESULT IDirect3DSwapChain9::Present([In, Optional] const void* pSourceRect,[InOut, Optional] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + + Presents the contents of the next buffer in the sequence of back buffers to the screen. + + The flags. + The area of the back buffer that should be presented. + The area of the front buffer that should receive the result of the presentation. + The destination window whose client area is taken as the target for this presentation. + Specifies a region on the back buffer that contains the minimal amount of pixels that need to be updated. + HRESULT IDirect3DSwapChain9::Present([In, Optional] const void* pSourceRect,[InOut, Optional] const void* pDestRect,[In] HWND hDestWindowOverride,[In] const RGNDATA* pDirtyRegion,[In] unsigned int dwFlags) + + + +

Returns information describing the raster of the monitor on which the swap chain is presented.

+
+ + bb205907 + GetRasterStatus + GetRasterStatus + HRESULT IDirect3DSwapChain9::GetRasterStatus([Out] D3DRASTER_STATUS* pRasterStatus) +
+ + +

Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.

+
+ + bb205904 + GetDisplayMode + GetDisplayMode + HRESULT IDirect3DSwapChain9::GetDisplayMode([Out] D3DDISPLAYMODE* pMode) +
+ + +

Retrieves the device associated with the swap chain.

+
+ +

This method allows navigation to the owning device object.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205903 + GetDevice + GetDevice + HRESULT IDirect3DSwapChain9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Retrieves the presentation parameters associated with a swap chain.

+
+ +

This method can be used to see the presentation parameters of the parent swap chain of a surface (a back buffer, for instance). The parent swap chain can be retrieved with .

+
+ + bb205906 + GetPresentParameters + GetPresentParameters + HRESULT IDirect3DSwapChain9::GetPresentParameters([Out] D3DPRESENT_PARAMETERS* pPresentationParameters) +
+ + +

Applications use the methods of the interface to manipulate a swap chain.

+
+ +

There is always at least one swap chain for each device, known as the implicit swap chain. However, an additional swap chain for rendering multiple views from the same device can be created by calling the CreateAdditionalSwapChain method.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DSWAPCHAIN9 and PDIRECT3DSWAPCHAIN9 types are defined as references to the interface.

objects are returned as a reference to an object when GetSwapChain is called on an instance of . + The interface is obtained by calling QueryInterface on the instance of that was returned by GetSwapChain.

+
+ + bb172503 + IDirect3DSwapChain9Ex + IDirect3DSwapChain9Ex +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the number of times the swapchain has been processed.

+
+

Pointer to a UINT to be filled with the number of times the method has been called. The count will also be incremented by calling some other APIs such as .

+

the method was successful.

+ + bb205900 + HRESULT IDirect3DSwapChain9Ex::GetLastPresentCount([Out] unsigned int* pLastPresentCount) + IDirect3DSwapChain9Ex::GetLastPresentCount +
+ + + No documentation. + + No documentation. + No documentation. + + HRESULT IDirect3DSwapChain9Ex::GetPresentStats([Out] D3DPRESENTSTATS* pPresentationStatistics) + IDirect3DSwapChain9Ex::GetPresentStats + + + +

Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.

+
+

Pointer to a structure containing data about the display mode of the adapter. As opposed to the display mode of the device, which may not be active if the device does not own full-screen mode.

+

Pointer to a indicating the type of screen rotation the application will do. The value returned through this reference is important when the flag is used; otherwise, it can be set to null.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb509715 + HRESULT IDirect3DSwapChain9Ex::GetDisplayModeEx([Out] D3DDISPLAYMODEEX* pMode,[Out] D3DDISPLAYROTATION* pRotation) + IDirect3DSwapChain9Ex::GetDisplayModeEx +
+ + +

Returns the number of times the swapchain has been processed.

+
+ + bb205900 + GetLastPresentCount + GetLastPresentCount + HRESULT IDirect3DSwapChain9Ex::GetLastPresentCount([Out] unsigned int* pLastPresentCount) +
+ + + No documentation. + + + GetPresentStats + GetPresentStats + HRESULT IDirect3DSwapChain9Ex::GetPresentStats([Out] D3DPRESENTSTATS* pPresentationStatistics) + + + +

Applications use the methods of the interface to manipulate a texture resource.

+
+ +

The interface can be obtained by calling the method or one of the xxx functions.

This interface inherits additional functionality from the interface.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DTEXTURE9 and PDIRECT3DTEXTURE9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9;	
+            
+
+ + bb205909 + IDirect3DTexture9 + IDirect3DTexture9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a level description of a texture resource.

+
+

Identifies a level of the texture resource. This method returns a surface description for the level specified by this parameter.

+

Pointer to a structure, describing the returned level.

+ + bb205911 + HRESULT IDirect3DTexture9::GetLevelDesc([In] unsigned int Level,[Out] D3DSURFACE_DESC* pDesc) + IDirect3DTexture9::GetLevelDesc +
+ + +

Retrieves the specified texture surface level.

+
+

Identifies a level of the texture resource. This method returns a surface for the level specified by this parameter. The top-level surface is denoted by 0.

+

Address of a reference to an interface, representing the returned surface.

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205912 + HRESULT IDirect3DTexture9::GetSurfaceLevel([In] unsigned int Level,[Out] IDirect3DSurface9** ppSurfaceLevel) + IDirect3DTexture9::GetSurfaceLevel +
+ + +

Locks a rectangle on a texture resource.

+
+

Specifies the level of the texture resource to lock.

+

Pointer to a structure, describing the locked region.

+

Pointer to a rectangle to lock. Specified by a reference to a structure. Specifying null for this parameter expands the dirty region to cover the entire texture.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

You may not specify a subrect when using . For a description of the flags, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

Textures created with are not lockable. Textures created in video memory are lockable when created with USAGE_DYNAMIC.

For performance reasons, dirty regions are recorded only for level zero of a texture. Dirty regions are automatically recorded when is called without or . See for more information.

The only lockable format for a depth-stencil texture is D3DLOCK_D16_LOCKABLE.

Video memory textures cannot be locked, but must be modified by calling or . There are exceptions for some proprietary driver pixel formats that Direct3D 9 does not recognize. These can be locked.

This method cannot retrieve data from a texture resource created with because such a texture must be assigned to memory and is therefore not lockable. In this case, use instead to copy texture data from device memory to system memory.

+
+ + bb205913 + HRESULT IDirect3DTexture9::LockRect([In] unsigned int Level,[Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + IDirect3DTexture9::LockRect +
+ + +

Unlocks a rectangle on a texture resource.

+
+

Specifies the level of the texture resource to unlock.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205914 + HRESULT IDirect3DTexture9::UnlockRect([In] unsigned int Level) + IDirect3DTexture9::UnlockRect +
+ + +

Adds a dirty region to a texture resource.

+
+

Pointer to a structure, specifying the dirty region to add. Specifying null expands the dirty region to cover the entire texture.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For performance reasons, dirty regions are only recorded for level zero of a texture. For sublevels, it is assumed that the corresponding (scaled) rectangle or box is also dirty. Dirty regions are automatically recorded when is called without or . The destination surface of is also marked dirty automatically.

Using and explicitly specifying dirty regions can be used to increase the efficiency of . Using this method, applications can optimize what subset of a resource is copied by specifying dirty regions on the resource. However, the dirty regions may be expanded to optimize alignment.

+
+ + bb205910 + HRESULT IDirect3DTexture9::AddDirtyRect([In] const void* pDirtyRect) + IDirect3DTexture9::AddDirtyRect +
+ + + Initializes a new instance of the class. + + The device. + The width. + The height. + The level count. + The usage. + The format. + The pool. + HRESULT IDirect3DDevice9::CreateTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DTexture9** ppTexture,[In] void** pSharedHandle) + + + + Initializes a new instance of the class. + + The device. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The shared handle. + HRESULT IDirect3DDevice9::CreateTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DTexture9** ppTexture,[In] void** pSharedHandle) + + + + Checks texture-creation parameters. + + Device associated with the texture. + The width. + The height. + Requested number of mipmap levels for the texture. + The requested usage for the texture. + Requested format for the texture. + Memory class where the resource will be placed. + + A value type containing the proposed values to pass to the texture creation functions. + + HRESULT D3DXCheckTextureRequirements([In] IDirect3DDevice9* pDevice,[InOut] unsigned int* pWidth,[InOut] unsigned int* pHeight,[InOut] unsigned int* pNumMipLevels,[In] unsigned int Usage,[InOut] D3DFORMAT* pFormat,[In] D3DPOOL Pool) + + + + Computes the normal map. + + The texture. + The source texture. + The flags. + The channel. + The amplitude. + A object describing the result of the operation. + HRESULT D3DXComputeNormalMap([In] IDirect3DTexture9* pTexture,[In] IDirect3DTexture9* pSrcTexture,[Out, Buffer] const PALETTEENTRY* pSrcPalette,[In] unsigned int Flags,[In] unsigned int Channel,[In] float Amplitude) + + + + Computes the normal map. + + The texture. + The source texture. + The palette. + The flags. + The channel. + The amplitude. + A object describing the result of the operation. + HRESULT D3DXComputeNormalMap([In] IDirect3DTexture9* pTexture,[In] IDirect3DTexture9* pSrcTexture,[Out, Buffer] const PALETTEENTRY* pSrcPalette,[In] unsigned int Flags,[In] unsigned int Channel,[In] float Amplitude) + + + + Uses a user-provided function to fill each texel of each mip level of a given texture. + + A function that is used to fill the texture. + A object describing the result of the operation. + HRESULT D3DXFillTexture([In] IDirect3DTexture9* pTexture,[In] __function__stdcall* pFunction,[In] void* pData) + + + + Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture. + + A texture shader object that is used to fill the texture. + A object describing the result of the operation. + HRESULT D3DXFillTextureTX([In] IDirect3DTexture9* pTexture,[In] ID3DXTextureShader* pTextureShader) + + + + Locks a rectangle on a texture resource. + + The level. + The flags. + + A describing the region locked. + + HRESULT IDirect3DTexture9::LockRect([In] unsigned int Level,[Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a texture resource. + + The level. + The flags. + The stream pointing to the locked region. + + A describing the region locked. + + HRESULT IDirect3DTexture9::LockRect([In] unsigned int Level,[Out] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a texture resource. + + The level. + The rectangle. + The flags. + + A describing the region locked. + + HRESULT IDirect3DTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[In] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Locks a rectangle on a texture resource. + + The level. + The rectangle. + The flags. + The stream pointing to the locked region. + + A describing the region locked. + + HRESULT IDirect3DTexture9::LockRect([In] D3DCUBEMAP_FACES FaceType,[In] unsigned int Level,[In] D3DLOCKED_RECT* pLockedRect,[In] const void* pRect,[In] D3DLOCK Flags) + + + + Adds a dirty region to a texture resource. + + + A object describing the result of the operation. + + HRESULT IDirect3DTexture9::AddDirtyRect([In] const void* pDirtyRect) + + + + Adds a dirty region to a texture resource. + + The dirty rect ref. + + A object describing the result of the operation. + + HRESULT IDirect3DTexture9::AddDirtyRect([In] const void* pDirtyRect) + + + + Creates a from a file + + The device. + The filename. + + A + + HRESULT D3DXCreateTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a file + + The device. + The filename. + The usage. + The pool. + + A + + HRESULT D3DXCreateTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a file + + The device. + The filename. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a file + + The device. + The filename. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a file + + The device. + The filename. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + + A + + HRESULT D3DXCreateTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The usage. + The pool. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + A + HRESULT D3DXCreateTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + The usage. + The pool. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The buffer. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + A + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + The pointer. + The size in bytes. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + + Creates a from a stream. + + The device. + Name of the file. + The width. + The height. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DTexture9** ppTexture) + + + +

The interface.

+
+ +

The interface is obtained by calling the function.

The interface, like all COM interfaces, inherits the interface.

The LPD3DXTEXTURESHADER type is defined as a reference to the interface.

 typedef interface  *LPD3DXTEXTURESHADER;	
+            
+
+ + bb174276 + ID3DXTextureShader + ID3DXTextureShader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets a reference to the function DWORD stream.

+
+

A reference to the function DWORD stream. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174283 + HRESULT ID3DXTextureShader::GetFunction([Out] ID3DXBuffer** ppFunction) + ID3DXTextureShader::GetFunction +
+ + +

Get a reference to the constant table.

+
+

Pointer to an interface, which contains the constants.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174278 + HRESULT ID3DXTextureShader::GetConstantBuffer([Out] ID3DXBuffer** ppConstantBuffer) + ID3DXTextureShader::GetConstantBuffer +
+ + +

Gets a description of the constant table.

+
+

The attributes of the constant table. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ + bb174282 + HRESULT ID3DXTextureShader::GetDesc([Out] D3DXCONSTANTTABLE_DESC* pDesc) + ID3DXTextureShader::GetDesc +
+ + +

Gets a reference to the array of constants in the constant table.

+
+

Unique identifier to a constant. See .

+

Returns a reference to an array of descriptions. See .

+

The input supplied must be the maximum size of the array. The output is the number of elements that are filled in the array when the function returns.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , D3DXERR_INVALIDDATA.

+ +

Samplers can appear more than once in a constant table, therefore, this method can return an array of descriptions each with a different register index.

+
+ + bb174280 + HRESULT ID3DXTextureShader::GetConstantDesc([In] D3DXHANDLE hConstant,[Out, Buffer] D3DXCONSTANT_DESC* pConstantDesc,[InOut] unsigned int* pCount) + ID3DXTextureShader::GetConstantDesc +
+ + +

Gets a constant by looking up its index.

+
+

A handle to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use null.

+

Zero-based index of the constant.

+

Returns a unique identifier to the constant.

+ +

To get a constant from an array of constants, use .

+
+ + bb174277 + D3DXHANDLE ID3DXTextureShader::GetConstant([In] D3DXHANDLE hConstant,[In] unsigned int Index) + ID3DXTextureShader::GetConstant +
+ + +

Gets a constant by looking up its name.

+
+

A handle to the parent data structure. If the constant is a top-level parameter (there is no parent data structure), use null.

+

A string containing the name of the constant.

+

Returns a unique identifier to the constant.

+ + bb174279 + D3DXHANDLE ID3DXTextureShader::GetConstantByName([In] D3DXHANDLE hConstant,[In] const char* pName) + ID3DXTextureShader::GetConstantByName +
+ + +

Get a constant from the constant table.

+
+

A handle to the array of constants. This value may not be null.

+

Zero-based index of the element in the constant table.

+

Returns a unique identifier to the constant.

+ +

To get a constant that is not part of an array, use or .

+
+ + bb174281 + D3DXHANDLE ID3DXTextureShader::GetConstantElement([In] D3DXHANDLE hConstant,[In] unsigned int Index) + ID3DXTextureShader::GetConstantElement +
+ + +

Sets the constants to the default values declared in the shader.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174286 + HRESULT ID3DXTextureShader::SetDefaults() + ID3DXTextureShader::SetDefaults +
+ + +

Sets the constant table with the data in the buffer.

+
+

Unique identifier to a constant. See .

+

A reference to a buffer containing the constant data.

+

Size of the buffer, in bytes.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174297 + HRESULT ID3DXTextureShader::SetValue([In] D3DXHANDLE hConstant,[In] const void* pData,[In] unsigned int Bytes) + ID3DXTextureShader::SetValue +
+ + +

Sets a value.

+
+

Unique identifier to the constant. See .

+

value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174284 + HRESULT ID3DXTextureShader::SetBool([In] D3DXHANDLE hConstant,[In] BOOL b) + ID3DXTextureShader::SetBool +
+ + +

Sets an array of values.

+
+

Unique identifier to the array of constants. See .

+

Array of values.

+

Number of values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174285 + HRESULT ID3DXTextureShader::SetBoolArray([In] D3DXHANDLE hConstant,[In] const BOOL* pb,[In] unsigned int Count) + ID3DXTextureShader::SetBoolArray +
+ + +

Sets an integer value.

+
+

Unique identifier to the constant. See .

+

Integer value.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174289 + HRESULT ID3DXTextureShader::SetInt([In] D3DXHANDLE hConstant,[In] int n) + ID3DXTextureShader::SetInt +
+ + +

Sets an array of integers.

+
+

Unique identifier to the array of constants. See .

+

Array of integers.

+

Number of integers in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174290 + HRESULT ID3DXTextureShader::SetIntArray([In] D3DXHANDLE hConstant,[In] const int* pn,[In] unsigned int Count) + ID3DXTextureShader::SetIntArray +
+ + +

Sets a floating-point number.

+
+

Unique identifier to the constant. See .

+

Floating-point number.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174287 + HRESULT ID3DXTextureShader::SetFloat([In] D3DXHANDLE hConstant,[In] float f) + ID3DXTextureShader::SetFloat +
+ + +

Sets an array of floating-point numbers.

+
+

Unique identifier to the array of constants. See .

+

Array of floating-point numbers.

+

Number of floating-point values in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174288 + HRESULT ID3DXTextureShader::SetFloatArray([In] D3DXHANDLE hConstant,[In] const float* pf,[In] unsigned int Count) + ID3DXTextureShader::SetFloatArray +
+ + +

Sets a 4D vector.

+
+

Unique identifier to the vector constant. See .

+

Pointer to a 4D vector. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174298 + HRESULT ID3DXTextureShader::SetVector([In] D3DXHANDLE hConstant,[In] const D3DXVECTOR4* pVector) + ID3DXTextureShader::SetVector +
+ + +

Sets an array of 4D vectors.

+
+

Unique identifier to the array of vector constants. See .

+

Array of 4D vectors. See .

+

Number of vectors in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb174299 + HRESULT ID3DXTextureShader::SetVectorArray([In] D3DXHANDLE hConstant,[In] const D3DXVECTOR4* pVector,[In] unsigned int Count) + ID3DXTextureShader::SetVectorArray +
+ + +

Sets a non-transposed matrix.

+
+

Unique identifier to the matrix of constants. See .

+

Pointer to a non-transposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A non-transposed matrix contains row-major data; that is, each vector is contained in a row.

+
+ + bb174291 + HRESULT ID3DXTextureShader::SetMatrix([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix) + ID3DXTextureShader::SetMatrix +
+ + +

Sets an array of non-transposed matrices.

+
+

Unique identifier to the array of constant matrices. See .

+

Array of non-transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A non-transposed matrix contains row-major data; that is, each vector is contained in a row.

+
+ + bb174292 + HRESULT ID3DXTextureShader::SetMatrixArray([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXTextureShader::SetMatrixArray +
+ + +

Sets an array of references to non-transposed matrices.

+
+

Unique identifier to an array of constant matrices. See .

+

Array of references to non-transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A non-transposed matrix contains row-major data; that is, each vector is contained in a row.

+
+ + bb174293 + HRESULT ID3DXTextureShader::SetMatrixPointerArray([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXTextureShader::SetMatrixPointerArray +
+ + +

Sets a transposed matrix.

+
+

Unique identifier to the matrix of constants. See .

+

Pointer to a transposed matrix. See .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

+
+ + bb174294 + HRESULT ID3DXTextureShader::SetMatrixTranspose([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix) + ID3DXTextureShader::SetMatrixTranspose +
+ + +

Sets an array of transposed matrices.

+
+

Unique identifier to the array of matrix constants. See .

+

Array of transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

+
+ + bb174295 + HRESULT ID3DXTextureShader::SetMatrixTransposeArray([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX* pMatrix,[In] unsigned int Count) + ID3DXTextureShader::SetMatrixTransposeArray +
+ + +

Sets an array of references to transposed matrices.

+
+

Unique identifier to the array of matrix constants. See .

+

Array of references to transposed matrices. See .

+

Number of matrices in the array.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

A transposed matrix contains column-major data; that is, each vector is contained in a column.

+
+ + bb174296 + HRESULT ID3DXTextureShader::SetMatrixTransposePointerArray([In] D3DXHANDLE hConstant,[In] const D3DXMATRIX** ppMatrix,[In] unsigned int Count) + ID3DXTextureShader::SetMatrixTransposePointerArray +
+ + +

Gets a reference to the function DWORD stream.

+
+ + bb174283 + GetFunction + GetFunction + HRESULT ID3DXTextureShader::GetFunction([Out] ID3DXBuffer** ppFunction) +
+ + +

Get a reference to the constant table.

+
+ + bb174278 + GetConstantBuffer + GetConstantBuffer + HRESULT ID3DXTextureShader::GetConstantBuffer([Out] ID3DXBuffer** ppConstantBuffer) +
+ + +

Gets a description of the constant table.

+
+ + bb174282 + GetDesc + GetDesc + HRESULT ID3DXTextureShader::GetDesc([Out] D3DXCONSTANTTABLE_DESC* pDesc) +
+ + +

Applications use the methods of the interface to manipulate vertex buffer resources.

+
+ +

The interface is obtained by calling the method.

This interface inherits additional functionality from the interface.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DVERTEXBUFFER9 and PDIRECT3DVERTEXBUFFER9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9;	
+            
+
+ + bb205915 + IDirect3DVertexBuffer9 + IDirect3DVertexBuffer9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Locks a range of vertex data and obtains a reference to the vertex buffer memory.

+
+

Offset into the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock.

+

Size of the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock.

+

VOID* reference to a memory buffer containing the returned vertex data.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

As a general rule, do not hold a lock across more than one frame. When working with vertex buffers, you are allowed to make multiple lock calls; however, you must ensure that the number of lock calls match the number of unlock calls. DrawPrimitive calls will not succeed with any outstanding lock count on any currently set vertex buffer.

The and flags are valid only on buffers created with .

For information about using or with , see Using Dynamic Vertex and Index Buffers.

+
+ + bb205917 + HRESULT IDirect3DVertexBuffer9::Lock([In] unsigned int OffsetToLock,[In] unsigned int SizeToLock,[Out] void** ppbData,[In] D3DLOCK Flags) + IDirect3DVertexBuffer9::Lock +
+ + +

Unlocks vertex data.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205918 + HRESULT IDirect3DVertexBuffer9::Unlock() + IDirect3DVertexBuffer9::Unlock +
+ + +

Retrieves a description of the vertex buffer resource.

+
+

Pointer to a structure, describing the returned vertex buffer.

+

If the method succeeds, the return value is . is returned if the argument is invalid.

+ + bb205916 + HRESULT IDirect3DVertexBuffer9::GetDesc([Out] D3DVERTEXBUFFER_DESC* pDesc) + IDirect3DVertexBuffer9::GetDesc +
+ + + Initializes a new instance of the class. + + The device that will be used to create the buffer. + Size of the buffer, in bytes. + The requested usage of the buffer. + The vertex format of the vertices in the buffer. If set to .None, the buffer will be a non-FVF buffer. + The memory class into which the resource will be placed. + bb174364 + HRESULT IDirect3DDevice9::CreateVertexBuffer([In] unsigned int Length,[In] D3DUSAGE Usage,[In] D3DFVF FVF,[In] D3DPOOL Pool,[Out, Fast] IDirect3DVertexBuffer9** ppVertexBuffer,[In] void** pSharedHandle) + IDirect3DDevice9::CreateVertexBuffer + + + + Initializes a new instance of the class. + + The device that will be used to create the buffer. + Size of the buffer, in bytes. + The requested usage of the buffer. + The vertex format of the vertices in the buffer. If set to .None, the buffer will be a non-FVF buffer. + The memory class into which the resource will be placed. + The variable that will receive the shared handle for this resource. + This method is only available in Direct3D9 Ex. + bb174364 + HRESULT IDirect3DDevice9::CreateVertexBuffer([In] unsigned int Length,[In] D3DUSAGE Usage,[In] D3DFVF FVF,[In] D3DPOOL Pool,[Out, Fast] IDirect3DVertexBuffer9** ppVertexBuffer,[In] void** pSharedHandle) + IDirect3DDevice9::CreateVertexBuffer + + + + Locks a range of vertex data and obtains a pointer to the vertex buffer memory. + + + As a general rule, do not hold a lock across more than one frame. When working with vertex buffers, you are allowed to make multiple lock calls; however, you must ensure that the number of lock calls match the number of unlock calls. DrawPrimitive calls will not succeed with any outstanding lock count on any currently set vertex buffer. The D3DLOCK_DISCARD and D3DLOCK_NOOVERWRITE flags are valid only on buffers created with D3DUSAGE_DYNAMIC. For information about using D3DLOCK_DISCARD or D3DLOCK_NOOVERWRITE with IDirect3DVertexBuffer9::Lock, see {{Using Dynamic Vertex and Index Buffers}}. + + Offset into the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock. + Size of the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock. + Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are: D3DLOCK_DISCARD D3DLOCK_NO_DIRTY_UPDATE D3DLOCK_NOSYSLOCK D3DLOCK_READONLY D3DLOCK_NOOVERWRITE For a description of the flags, see . + A if the method succeeds. + bb205917 + HRESULT IDirect3DVertexBuffer9::Lock([In] unsigned int OffsetToLock,[In] unsigned int SizeToLock,[Out] void** ppbData,[In] D3DLOCK Flags) + IDirect3DVertexBuffer9::Lock + + + + Locks a range of vertex data and obtains a pointer to the vertex buffer memory. + + + As a general rule, do not hold a lock across more than one frame. When working with vertex buffers, you are allowed to make multiple lock calls; however, you must ensure that the number of lock calls match the number of unlock calls. DrawPrimitive calls will not succeed with any outstanding lock count on any currently set vertex buffer. The D3DLOCK_DISCARD and D3DLOCK_NOOVERWRITE flags are valid only on buffers created with D3DUSAGE_DYNAMIC. For information about using D3DLOCK_DISCARD or D3DLOCK_NOOVERWRITE with IDirect3DVertexBuffer9::Lock, see {{Using Dynamic Vertex and Index Buffers}}. + + Offset into the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock. + Size of the vertex data to lock, in bytes. To lock the entire vertex buffer, specify 0 for both parameters, SizeToLock and OffsetToLock. + Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are: D3DLOCK_DISCARD D3DLOCK_NO_DIRTY_UPDATE D3DLOCK_NOSYSLOCK D3DLOCK_READONLY D3DLOCK_NOOVERWRITE For a description of the flags, see . + A if the method succeeds. + bb205917 + HRESULT IDirect3DVertexBuffer9::Lock([In] unsigned int OffsetToLock,[In] unsigned int SizeToLock,[Out] void** ppbData,[In] D3DLOCK Flags) + IDirect3DVertexBuffer9::Lock + + + +

Retrieves a description of the vertex buffer resource.

+
+ + bb205916 + GetDesc + GetDesc + HRESULT IDirect3DVertexBuffer9::GetDesc([Out] D3DVERTEXBUFFER_DESC* pDesc) +
+ + +

Applications use the methods of the interface to encapsulate the vertex shader declaration.

+
+ +

A vertex shader declaration is made up of an array of vertex elements.

The LPDIRECT3DVERTEXDECLARATION9 and PDIRECT3DVERTEXDECLARATION9 types are defined as references to the interface.

typedef struct  *LPDIRECT3DVERTEXDECLARATION9, *PDIRECT3DVERTEXDECLARATION9;
+
+ + bb205919 + IDirect3DVertexDeclaration9 + IDirect3DVertexDeclaration9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the current device.

+
+

Pointer to the interface that is returned.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ + bb205921 + HRESULT IDirect3DVertexDeclaration9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DVertexDeclaration9::GetDevice +
+ + +

Gets the vertex shader declaration.

+
+

Array of vertex elements (see ) that make up a vertex shader declaration. The application needs to allocate enough room for this. The vertex element array ends with the D3DDECL_END macro.

+

Number of elements in the array. The application needs to allocate enough room for this.

+

If the method succeeds, the return value is . If the method fails, the return value can be: .

+ +

The number of elements, pNumElements, includes the D3DDECL_END macro, which ends the declaration. So the element count is actually one higher than the number of valid vertex elements.

Here's an example that will return the vertex declaration array of up to 256 elements:

  decl[MAXD3DDECLLENGTH];	
+            UINT numElements;	
+             hr = m_pVertexDeclaration->GetDeclaration( decl, &numElements);	
+            

Specify null for pDeclto get the number of elements in the declaration.

+
+ + bb205920 + HRESULT IDirect3DVertexDeclaration9::GetDeclaration([Out, Buffer] D3DVERTEXELEMENT9* pElement,[InOut] unsigned int* pNumElements) + IDirect3DVertexDeclaration9::GetDeclaration +
+ + + Create a vertex shader declaration from the device and the vertex elements. + + + See the {{Vertex Declaration (Direct3D 9)}} page for a detailed description of how to map vertex declarations between different versions of DirectX. + + The device. + An array of vertex elements. + If the method succeeds + HRESULT IDirect3DDevice9::CreateVertexDeclaration([In, Buffer] const D3DVERTEXELEMENT9* pVertexElements,[None] IDirect3DVertexDeclaration9** ppDecl) + + + +

Gets the current device.

+
+ + bb205921 + GetDevice + GetDevice + HRESULT IDirect3DVertexDeclaration9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + + Gets the elements. + + HRESULT IDirect3DVertexDeclaration9::GetDeclaration([Out, Buffer] D3DVERTEXELEMENT9* pElement,[InOut] unsigned int* pNumElements) + + + +

Applications use the methods of the interface to encapsulate the functionality of a vertex shader.

+
+ +

The LPDIRECT3DVERTEXSHADER9 and PDIRECT3DVERTEXSHADER9 types are defined as references to the interface.

typedef struct  *LPDIRECT3DVERTEXSHADER9, *PDIRECT3DVERTEXSHADER9;
+
+ + bb205922 + IDirect3DVertexShader9 + IDirect3DVertexShader9 +
+ + Constant MaxDynamicFlowControlDepth. + D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH + + + Constant MinDynamicFlowControlDepth. + D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH + + + Constant MaxTemps. + D3DVS20_MAX_NUMTEMPS + + + Constant MinTemps. + D3DVS20_MIN_NUMTEMPS + + + Constant MaxStaticFlowControlDepth. + D3DVS20_MAX_STATICFLOWCONTROLDEPTH + + + Constant MinStaticFlowControlDepth. + D3DVS20_MIN_STATICFLOWCONTROLDEPTH + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the device.

+
+

Pointer to the interface that is returned.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205923 + HRESULT IDirect3DVertexShader9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DVertexShader9::GetDevice +
+ + +

Gets a reference to the shader data.

+
+

Pointer to a buffer that contains the shader data. The application needs to allocate enough room for this.

+

Size of the data, in bytes. To get the buffer size that is needed to retrieve the data, set pData = null when calling GetFunction. Then call GetFunction with the returned size, to get the buffer data.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205924 + HRESULT IDirect3DVertexShader9::GetFunction([In] void* arg0,[InOut] unsigned int* pSizeOfData) + IDirect3DVertexShader9::GetFunction +
+ + + Initializes a new instance of the class. + + The device. + The function. + HRESULT IDirect3DDevice9::CreateVertexShader([In] const void* pFunction,[Out, Fast] IDirect3DVertexShader9** ppShader) + + + +

Gets the device.

+
+ + bb205923 + GetDevice + GetDevice + HRESULT IDirect3DVertexShader9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + + Gets the bytecode associated to this shader.. + + + + +

Applications use the methods of the interface to manipulate volume resources.

+
+ +

The interface is obtained by calling the method.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DVOLUME9 and PDIRECT3DVOLUME9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DVOLUME9, *PDIRECT3DVOLUME9;	
+            
+
+ + bb205932 + IDirect3DVolume9 + IDirect3DVolume9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the device associated with a volume.

+
+

Address of a reference to an interface to fill with the device reference, if the query succeeds.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

This method allows navigation to the owning device object.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205936 + HRESULT IDirect3DVolume9::GetDevice([Out] IDirect3DDevice9** ppDevice) + IDirect3DVolume9::GetDevice +
+ + +

Associates data with the volume that is intended for use by the application, not by Direct3D.

+
+

Reference to the globally unique identifier that identifies the private data to set.

+

Pointer to a buffer that contains the data to associate with the volume.

+

Size of the buffer at pData in bytes.

+

Value that describes the type of data being passed, or indicates to the application that the data should be invalidated when the resource changes.

ItemDescription

(none)

If no flags are specified, Direct3D allocates memory to hold the data within the buffer and copies the data into the new buffer. The buffer allocated by Direct3D is automatically freed, as appropriate.

D3DSPD_IUNKNOWN

The data at pData is a reference to an interface. SizeOfData must be set to the size of a reference to an interface, sizeof(*). Direct3D automatically calls through pData and when the private data is destroyed. Private data will be destroyed by a subsequent call to with the same , a subsequent call to , or when the object is released. For more information, see Remarks.

?

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , E_OUTOFMEMORY.

+ +

Direct3D does not manage the memory at pData. If this buffer was dynamically allocated, it is the calling application's responsibility to free the memory.

Data is passed by value, and multiple sets of data can be associated with a single volume.

+
+ + bb205939 + HRESULT IDirect3DVolume9::SetPrivateData([In] const GUID& refguid,[In] const void* pData,[In] unsigned int SizeOfData,[In] unsigned int Flags) + IDirect3DVolume9::SetPrivateData +
+ + +

Copies the private data associated with the volume to a provided buffer.

+
+

Reference to (C++) or address of (C) the globally unique identifier that identifies the private data to retrieve.

+

Pointer to a previously allocated buffer to fill with the requested private data if the call succeeds. The application calling this method is responsible for allocating and releasing this buffer. If this parameter is null, this method will return the buffer size in pSizeOfData.

+

Pointer to the size of the buffer at pData, in bytes. If this value is less than the actual size of the private data, such as 0, the method sets this parameter to the required buffer size, and the method returns .

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , , .

+ + bb205937 + HRESULT IDirect3DVolume9::GetPrivateData([In] const GUID& refguid,[In] void* pData,[Out] unsigned int* pSizeOfData) + IDirect3DVolume9::GetPrivateData +
+ + +

Frees the specified private data associated with this volume.

+
+

Reference to the globally unique identifier that identifies the private data to free.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: , .

+ +

Direct3D calls this method automatically when a volume is released.

+
+ + bb205933 + HRESULT IDirect3DVolume9::FreePrivateData([In] const GUID& refguid) + IDirect3DVolume9::FreePrivateData +
+ + +

Provides access to the parent volume texture object, if this surface is a child level of a volume texture.

+
+

Reference identifier of the volume being requested.

+

Address of a reference to fill with the container reference, if the query succeeds.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

If the call succeeds, the reference count of the container is increased by one.

Here's an example getting the parent volume texture of a volume texture.

 // Assumes pSurface is a valid  reference	
+            void *pContainer = null;	
+             *pVolumeTexture = null;	
+             hr = pVolume->GetContainer(IID_IDirect3DVolumeTexture9, &pContainer);	
+            if (SUCCEEDED(hr) && pContainer)	
+            { pVolumeTexture = ( *)pContainer;	
+            
+
+ + bb205934 + HRESULT IDirect3DVolume9::GetContainer([In] const GUID& riid,[In] void** ppContainer) + IDirect3DVolume9::GetContainer +
+ + +

Retrieves a description of the volume.

+
+

Pointer to a structure, describing the volume.

+

If the method succeeds, the return value is . is returned if the argument is invalid.

+ + bb205935 + HRESULT IDirect3DVolume9::GetDesc([Out] D3DVOLUME_DESC* pDesc) + IDirect3DVolume9::GetDesc +
+ + +

Locks a box on a volume resource.

+
+

Pointer to a structure, describing the locked region.

+

Pointer to a box to lock. Specified by a reference to a structure. Specifying null for this parameter locks the entire volume.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For performance reasons, dirty regions are only recorded for level zero of a texture. Dirty regions are automatically recorded when is called without or . See for more information.

+
+ + bb205938 + HRESULT IDirect3DVolume9::LockBox([Out] D3DLOCKED_BOX* pLockedVolume,[In] const void* pBox,[In] D3DLOCK Flags) + IDirect3DVolume9::LockBox +
+ + +

Unlocks a box on a volume resource.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205940 + HRESULT IDirect3DVolume9::UnlockBox() + IDirect3DVolume9::UnlockBox +
+ + + Loads a volume from memory. + + Pointer to a structure, the destination palette of 256 colors or null. + Pointer to a structure. Specifies the destination box. Set this parameter to null to specify the entire volume. + Pointer to the top-left corner of the source volume in memory. + Member of the enumerated type, the pixel format of the source volume. + Pitch of source image, in bytes. For DXT formats (compressed texture formats), this number should represent the size of one row of cells, in bytes. + Pitch of source image, in bytes. For DXT formats (compressed texture formats), this number should represent the size of one slice of cells, in bytes. + Pointer to a structure, the source palette of 256 colors or null. + Pointer to a structure. Specifies the source box. null is not a valid value for this parameter. + A combination of one or more controlling how the image is filtered. Specifying D3DX_DEFAULT for this parameter is the equivalent of specifying | . + value to replace with transparent black, or 0 to disable the color key. This is always a 32-bit ARGB color, independent of the source image format. Alpha is significant and should usually be set to FF for opaque color keys. Thus, for opaque black, the value would be equal to 0xFF000000. + If the function succeeds, the return value is . If the function fails, the return value can be one of the following values: , D3DXERR_INVALIDDATA. + + Writing to a non-level-zero surface of the volume texture will not cause the dirty rectangle to be updated. If is called and the texture was not already dirty (this is unlikely under normal usage scenarios), the application needs to explicitly call on the volume texture. + + HRESULT D3DXLoadVolumeFromMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcMemory,[In] D3DFORMAT SrcFormat,[In] unsigned int SrcRowPitch,[In] unsigned int SrcSlicePitch,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey) + + + + Loads a volume from a file on the disk. + + The volume. + Name of the file. + The filter. + The color key. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileW([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] const wchar_t* pSrcFile,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo) + + + + Loads a volume from a file on the disk. + + The volume. + Name of the file. + The filter. + The color key. + The source box. + The destination box. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileW([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] const wchar_t* pSrcFile,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo) + + + + Loads a volume from a file on the disk. + + The volume. + Name of the file. + The filter. + The color key. + The source box. + The destination box. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileW([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] const wchar_t* pSrcFile,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo) + + + + Loads a volume from a file on the disk. + + The volume. + Name of the file. + The filter. + The color key. + The source box. + The destination box. + The palette. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileW([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] const wchar_t* pSrcFile,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey,[In] D3DXIMAGE_INFO* pSrcInfo) + + + + Loads a volume from a file in memory. + + The volume. + The memory. + The filter. + The color key. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in memory. + + The volume. + The memory. + The filter. + The color key. + The source box. + The destination box. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in memory. + + The volume. + The memory. + The filter. + The color key. + The source box. + The destination box. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in memory. + + The volume. + The memory. + The filter. + The color key. + The source box. + The destination box. + The palette. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in a stream. + + The volume. + The stream. + The filter. + The color key. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in a stream. + + The volume. + The stream. + The filter. + The color key. + The source box. + The destination box. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in a stream. + + The volume. + The stream. + The filter. + The color key. + The source box. + The destination box. + The image information. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a file in a stream. + + The volume. + The stream. + The filter. + The color key. + The source box. + The destination box. + The palette. + The image information. + A object describing the result of the operation. + HRESULT D3DXLoadVolumeFromFileInMemory([In] IDirect3DVolume9* pDestVolume,[Out, Buffer] const PALETTEENTRY* pDestPalette,[In] const void* pDestBox,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] const void* pSrcBox,[In] D3DX_FILTER Filter,[In] int ColorKey,[In] void* pSrcInfo) + + + + Loads a volume from a source volume. + + The destination volume. + The source volume. + The filter. + The color key. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromVolume([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] IDirect3DVolume9* pSrcVolume,[In] const PALETTEENTRY* pSrcPalette,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey) + + + + Loads a volume from a source volume. + + The destination volume. + The source volume. + The filter. + The color key. + The source box. + The destination box. + + A object describing the result of the operation. + + HRESULT D3DXLoadVolumeFromVolume([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] IDirect3DVolume9* pSrcVolume,[In] const PALETTEENTRY* pSrcPalette,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey) + + + + Loads a volume from a source volume. + + The destination volume. + The source volume. + The filter. + The color key. + The source box. + The destination box. + The destination palette. + The source palette. + A object describing the result of the operation. + HRESULT D3DXLoadVolumeFromVolume([In] IDirect3DVolume9* pDestVolume,[In] const PALETTEENTRY* pDestPalette,[In] const D3DBOX* pDestBox,[In] IDirect3DVolume9* pSrcVolume,[In] const PALETTEENTRY* pSrcPalette,[In] const D3DBOX* pSrcBox,[In] unsigned int Filter,[In] D3DCOLOR ColorKey) + + + + Locks a box on a volume resource. + + The flags. + + The locked region of this resource + + HRESULT IDirect3DVolume9::LockBox([Out] D3DLOCKED_BOX* pLockedVolume,[In] const void* pBox,[In] D3DLOCK Flags) + + + + Locks a box on a volume resource. + + The box. + The flags. + The locked region of this resource + HRESULT IDirect3DVolume9::LockBox([Out] D3DLOCKED_BOX* pLockedVolume,[In] const void* pBox,[In] D3DLOCK Flags) + + + + Saves a volume to a file on disk. + + The volume. + Name of the file. + The format. + + A object describing the result of the operation. + + HRESULT D3DXSaveVolumeToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In] const PALETTEENTRY* pSrcPalette,[In] const D3DBOX* pSrcBox) + + + + Saves a volume to a file on disk. + + The volume. + Name of the file. + The format. + The box. + + A object describing the result of the operation. + + HRESULT D3DXSaveVolumeToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In] const PALETTEENTRY* pSrcPalette,[In] const D3DBOX* pSrcBox) + + + + Saves a volume to a file on disk. + + The volume. + Name of the file. + The format. + The box. + The palette. + A object describing the result of the operation. + HRESULT D3DXSaveVolumeToFileW([In] const wchar_t* pDestFile,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In] const PALETTEENTRY* pSrcPalette,[In] const D3DBOX* pSrcBox) + + + + Saves a volume to a . + + The volume. + The format. + + A object describing the result of the operation. + + HRESULT D3DXSaveVolumeToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox) + + + + Saves a volume to a . + + The volume. + The format. + The box. + + A object describing the result of the operation. + + HRESULT D3DXSaveVolumeToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox) + + + + Saves a volume to a . + + The volume. + The format. + The box. + The palette. + A object describing the result of the operation. + HRESULT D3DXSaveVolumeToFileInMemory([In] ID3DXBuffer** ppDestBuf,[In] D3DXIMAGE_FILEFORMAT DestFormat,[In] IDirect3DVolume9* pSrcVolume,[In, Buffer] const PALETTEENTRY* pSrcPalette,[In] const void* pSrcBox) + + + +

Retrieves the device associated with a volume.

+
+ +

This method allows navigation to the owning device object.

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205936 + GetDevice + GetDevice + HRESULT IDirect3DVolume9::GetDevice([Out] IDirect3DDevice9** ppDevice) +
+ + +

Retrieves a description of the volume.

+
+ + bb205935 + GetDesc + GetDesc + HRESULT IDirect3DVolume9::GetDesc([Out] D3DVOLUME_DESC* pDesc) +
+ + +

Applications use the methods of the interface to manipulate a volume texture resource.

+
+ +

The interface can be obtained by calling the CreateVolumeTexture method or one of the xxx functions.

This interface inherits additional functionality from the interface.

This interface, like all COM interfaces, inherits from the interface.

The LPDIRECT3DVOLUMETEXTURE9 and PDIRECT3DVOLUMETEXTURE9 types are defined as references to the interface.

 typedef struct  *LPDIRECT3DVOLUMETEXTURE9, *PDIRECT3DVOLUMETEXTURE9;	
+            
+
+ + bb205941 + IDirect3DVolumeTexture9 + IDirect3DVolumeTexture9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a level description of a volume texture resource.

+
+

Identifies a level of the volume texture resource. This method returns a volume description for the level specified by this parameter.

+

Pointer to a structure, describing the returned volume texture level.

+ + bb205943 + HRESULT IDirect3DVolumeTexture9::GetLevelDesc([In] unsigned int Level,[Out] D3DVOLUME_DESC* pDesc) + IDirect3DVolumeTexture9::GetLevelDesc +
+ + +

Retrieves the specified volume texture level.

+
+

Identifies a level of the volume texture resource. This method returns a volume for the level specified by this parameter.

+

Address of a reference to an interface, representing the returned volume level.

+ +

Calling this method will increase the internal reference count on the interface. Failure to call IUnknown::Release when finished using this interface results in a memory leak.

+
+ + bb205944 + HRESULT IDirect3DVolumeTexture9::GetVolumeLevel([In] unsigned int Level,[Out] IDirect3DVolume9** ppVolumeLevel) + IDirect3DVolumeTexture9::GetVolumeLevel +
+ + +

Locks a box on a volume texture resource.

+
+

Specifies the level of the volume texture resource to lock.

+

Pointer to a structure, describing the locked region.

+

Pointer to the volume to lock. This parameter is specified by a reference to a structure. Specifying null for this parameter locks the entire volume level.

+

Combination of zero or more locking flags that describe the type of lock to perform. For this method, the valid flags are:

For a description of the flags, see .

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For performance reasons, dirty regions are only recorded for level zero of a texture. Dirty regions are automatically recorded when LockBox is called without or . For more information, see UpdateTexture.

+
+ + bb205945 + HRESULT IDirect3DVolumeTexture9::LockBox([In] unsigned int Level,[Out] D3DLOCKED_BOX* pLockedVolume,[In] const void* pBox,[In] D3DLOCK Flags) + IDirect3DVolumeTexture9::LockBox +
+ + +

Unlocks a box on a volume texture resource.

+
+

Specifies the level of the volume texture resource to unlock.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ + bb205946 + HRESULT IDirect3DVolumeTexture9::UnlockBox([In] unsigned int Level) + IDirect3DVolumeTexture9::UnlockBox +
+ + +

Adds a dirty region to a volume texture resource.

+
+

Pointer to a structure, specifying the dirty region to add. Specifying null expands the dirty region to cover the entire volume texture.

+

If the method succeeds, the return value is . If the method fails, the return value can be .

+ +

For performance reasons, dirty regions are only recorded for level zero of a texture. For sublevels, it is assumed that the corresponding (scaled) box is also dirty. Dirty regions are automatically recorded when LockBox is called without or .

Using and explicitly specifying dirty regions can be used to increase the efficiency of UpdateTexture. Using this method, applications can optimize what subset of a resource is copied by specifying dirty boxes on the resource. However, the dirty regions may be expanded to optimize alignment.

+
+ + bb205942 + HRESULT IDirect3DVolumeTexture9::AddDirtyBox([In] const void* pDirtyBox) + IDirect3DVolumeTexture9::AddDirtyBox +
+ + + Initializes a new instance of the class. + + The device. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + HRESULT IDirect3DDevice9::CreateVolumeTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DVolumeTexture9** ppVolumeTexture,[In] void** pSharedHandle) + + + + Initializes a new instance of the class. + + The device. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The shared handle. + HRESULT IDirect3DDevice9::CreateVolumeTexture([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int Levels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[Out, Fast] IDirect3DVolumeTexture9** ppVolumeTexture,[In] void** pSharedHandle) + + + + Checks texture-creation parameters. + + Device associated with the texture. + The width. + The height. + The depth. + Requested number of mipmap levels for the texture. + The requested usage for the texture. + Requested format for the texture. + Memory class where the resource will be placed. + + A value type containing the proposed values to pass to the texture creation functions. + + HRESULT D3DXCheckVolumeTextureRequirements([In] IDirect3DDevice9* pDevice,[InOut] unsigned int* pWidth,[InOut] unsigned int* pHeight,[InOut] unsigned int* pDepth,[InOut] unsigned int* pNumMipLevels,[In] unsigned int Usage,[InOut] D3DFORMAT* pFormat,[In] D3DPOOL Pool) + + + + Uses a user-provided function to fill each texel of each mip level of a given texture. + + A function that is used to fill the texture. + A object describing the result of the operation. + HRESULT D3DXFillVolumeTexture([In] IDirect3DVolumeTexture9* pVolumeTexture,[In] __function__stdcall* pFunction,[In] void* pData) + + + + Uses a compiled high-level shader language (HLSL) function to fill each texel of each mipmap level of a texture. + + A texture shader object that is used to fill the texture. + A object describing the result of the operation. + HRESULT D3DXFillVolumeTextureTX([In] IDirect3DVolumeTexture9* pVolumeTexture,[In] ID3DXVolumeTextureShader* pVolumeTextureShader) + + + + Locks a box on a volume texture resource. + + The level. + The flags. + + A describing the region locked. + + HRESULT IDirect3DVolumeTexture9::LockBox([In] unsigned int Level,[Out] D3DLOCKED_BOX* pLockedVolume,[In] const void* pBox,[In] D3DLOCK Flags) + + + + Locks a box on a volume texture resource. + + The level. + The box. + The flags. + + A describing the region locked. + + HRESULT IDirect3DVolumeTexture9::LockBox([In] unsigned int Level,[Out] D3DLOCKED_BOX* pLockedVolume,[In] const void* pBox,[In] D3DLOCK Flags) + + + + Adds a dirty region to a texture resource. + + + A object describing the result of the operation. + + HRESULT IDirect3DVolumeTexture9::AddDirtyBox([In] const void* pDirtyBox) + + + + Adds a dirty region to a texture resource. + + The direct box ref. + + A object describing the result of the operation. + + HRESULT IDirect3DVolumeTexture9::AddDirtyBox([In] const void* pDirtyBox) + + + + Creates a from a file + + The device. + The filename. + + A + + HRESULT D3DXCreateVolumeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a file + + The device. + The filename. + The usage. + The pool. + + A + + HRESULT D3DXCreateVolumeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a file + + The device. + The filename. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateVolumeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a file + + The device. + The filename. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateVolumeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a file + + The device. + The filename. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateVolumeTextureFromFileExW([In] IDirect3DDevice9* pDevice,[In] const wchar_t* pSrcFile,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[In] void* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The usage. + The pool. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a memory buffer. + + The device. + The buffer. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + A + HRESULT D3DXCreateVolumeTextureFromFileInMemory([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The usage. + The pool. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The buffer. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The stream. + The size bytes. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + A + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + The pointer. + The size in bytes. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + + Creates a from a stream. + + The device. + Name of the file. + The width. + The height. + The depth. + The level count. + The usage. + The format. + The pool. + The filter. + The mip filter. + The color key. + The image information. + The palette. + + A + + HRESULT D3DXCreateVolumeTextureFromFileInMemoryEx([In] IDirect3DDevice9* pDevice,[In] const void* pSrcData,[In] unsigned int SrcDataSize,[In] unsigned int Size,[In] unsigned int MipLevels,[In] unsigned int Usage,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Filter,[In] unsigned int MipFilter,[In] D3DCOLOR ColorKey,[Out] D3DXIMAGE_INFO* pSrcInfo,[Out, Buffer] PALETTEENTRY* pPalette,[In] IDirect3DVolumeTexture9** ppVolumeTexture) + + + +

Applications use the methods of the interface to create instances of the and interfaces, and to register templates.

+
+ +

An object also contains a local template store. This local storage may be added to only with the and methods.

and objects created with and also utilize the template store of the parent object.

The interface is obtained by calling the function.

The globally unique identifier () for the interface is IID_ID3DXFile.

The LPD3DXFILE type is defined as a reference to the interface.

 typedef interface  *LPD3DXFILE;	
+            
+
+ + bb205836 + ID3DXFile + ID3DXFile +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates an enumerator object that will read a .x file.

+
+

The data source. Either:

  • A file name
  • A D3DXF_FILELOADMEMORY structure
  • A D3DXF_FILELOADRESOURCE structure

Depending on the value of loadflags.

+

Value that specifies the source of the data. This value can be one of the D3DXF_FILELOADOPTIONS flags.

+

Address of a reference to an interface, representing the created enumerator object.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADVALUE, D3DXFERR_PARSEERROR.

+ +

After using this method, use one of the methods to retrieve a data object.

+
+ + bb173957 + HRESULT ID3DXFile::CreateEnumObject([In] const void* arg0,[In] unsigned int arg1,[In] ID3DXFileEnumObject** arg2) + ID3DXFile::CreateEnumObject +
+ + +

Creates a save object that will be used to save data to a .x file.

+
+

Pointer to the name of the file to use for saving data.

+

Value that specifies the name of the file to which data is to be saved. This value can be one of the File Save Options flags.

+

Indicates the format to use when saving the .x file. This value can be one of the File Formats flags. For more information, see Remarks.

+

Address of a reference to an interface, representing the created save object.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADVALUE, D3DXFERR_PARSEERROR.

+ +

After using this method, use methods of the interface to create data objects and to save templates or data.

For the saved file format dwFileFormat, one of the binary, legacy binary, or text flags in File Formats must be specified. The file can be compressed by using the optional flag.

The file format values can be combined in a logical OR to create compressed text or compressed binary files. If you indicate that the file format should be text and compressed, the file will be written out first as text and then compressed. However, compressed text files are not as efficient as binary text files; in most cases, therefore, you will want to indicate binary and compressed.

+
+ + bb173958 + HRESULT ID3DXFile::CreateSaveObject([In] const void* arg0,[In] unsigned int arg1,[In] unsigned int arg2,[In] ID3DXFileSaveObject** arg3) + ID3DXFile::CreateSaveObject +
+ + +

Registers custom templates.

+
+

Pointer to a buffer consisting of a .x file in text or binary format that contains templates.

+

Size of the buffer pointed to by pvData, in bytes.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADVALUE, D3DXFERR_PARSEERROR.

+ +

The following code fragment provides an example call to RegisterTemplates And example contents for the buffer to which pvData points.

 #define XSKINEXP_TEMPLATES \ "xof 0303txt 0032\ template XSkinMeshHeader \ { \ <3CF169CE-FF7C-44ab-93C0-F78F62D172E2> \ WORD nMaxSkinWeightsPerVertex; \ WORD nMaxSkinWeightsPerFace; \ WORD nBones; \ } \ template VertexDuplicationIndices \ { \ <B8D65549-D7C9-4995-89CF-53A9A8B031E3> \ DWORD nIndices; \ DWORD nOriginalVertices; \ array DWORD indices[nIndices]; \ } \ template SkinWeights \ { \ <6F0D123B-BAD2-4167-A0D0-80224F25FABB> \ STRING transformNodeName;\ DWORD nWeights; \ array DWORD vertexIndices[nWeights]; \ array float weights[nWeights]; \ Matrix4x4 matrixOffset; \ }"	
+            .	
+            .	
+            . LPD3DXFILE pD3DXFile = null; if ( FAILED  (hr = pD3DXFile->RegisterTemplates(  (LPVOID)XSKINEXP_TEMPLATES, sizeof( XSKINEXP_TEMPLATES ) - 1 ) ) )	
+            goto End;	
+            

All templates must specify a name and a UUID.

This method calls the RegisterEnumTemplates method, obtaining an interface reference by calling CreateEnumObject with pvData as the first parameter.

+
+ + bb173960 + HRESULT ID3DXFile::RegisterTemplates([In] const void* arg0,[In] SIZE_T arg1) + ID3DXFile::RegisterTemplates +
+ + +

Registers custom templates, given an enumeration object.

+
+ No documentation. +

If the method succeeds, the return value is .

If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ +

When this method is called, it copies templates stored with the , representing the file, to the local template store of the object.

If an reference is not available, call the RegisterTemplates method instead.

+
+ + bb173959 + HRESULT ID3DXFile::RegisterEnumTemplates([In] ID3DXFileEnumObject* arg0) + ID3DXFile::RegisterEnumTemplates +
+ + +

Applications use the methods of the interface to build or to access the immediate hierarchy of the data object. Template restrictions determine the hierarchy.

+
+ +

Data types allowed by the template are called optional members. The optional members are not required, but an object might miss important information without them. These optional members are saved as children of the data object. A child can be another data object or a reference to an earlier data object.

The for the interface is IID_ID3DXFileData.

The LPD3DXFILEDATA type is defined as a reference to this interface.

 typedef interface  *LPD3DXFILEDATA;	
+            
+
+ + bb205837 + ID3DXFileData + ID3DXFileData +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the enumeration object in this file data object.

+
+

Address of a reference to receive the enumeration object in this file data object.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205840 + HRESULT ID3DXFileData::GetEnum([Out] ID3DXFileEnumObject** arg0) + ID3DXFileData::GetEnum +
+ + +

Retrieves the name of this file data object.

+
+

Address of a reference to receive the name of this file data object. If this parameter is null, then puiSize will return the size of the string. If szName points to valid memory, the name of this file data object will be copied into szName up to the number of characters given by puiSize.

+

Pointer to the size of the string that represents the name of this file data object. This parameter can be null if szName provides a reference to the name. This parameter will return the size of the string if szName is null.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ +

For this method to succeed, either szName or puiSize must be non-null.

+
+ + bb205842 + HRESULT ID3DXFileData::GetName([In] char* arg0,[Out] SIZE_T* arg1) + ID3DXFileData::GetName +
+ + +

Retrieves the of this file data object.

+
+

Pointer to a to receive the ID of this file data object. If the file data object has no ID, the returned parameter value will be GUID_NULL.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205841 + HRESULT ID3DXFileData::GetId([In] GUID* arg0) + ID3DXFileData::GetId +
+ + +

Accesses the .x file data.

+
+

Pointer to the size of the .x file data.

+

Address of a reference to receive the file data object's interface reference. See Remarks.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ +

The ppData reference is only valid during a ... sequence. You can make multiple lock calls. However, you must ensure that the number of lock calls matches the number of unlock calls.

Because file data is not guaranteed to be aligned properly with byte boundaries, you should access ppData with UNALIGNED references.

Returned parameter values are not guaranteed to be valid due to possible file corruption; therefore, your code should verify the returned parameter values.

+
+ + bb205845 + HRESULT ID3DXFileData::Lock([In] SIZE_T* arg0,[In] const void** arg1) + ID3DXFileData::Lock +
+ + +

Ends the lifespan of the ppData reference returned by .

+
+

The return value is .

+ +

You must ensure that the number of calls matches the number of calls. After calling Unlock, the ppData reference returned by should no longer be used.

+
+ + bb205846 + HRESULT ID3DXFileData::Unlock() + ID3DXFileData::Unlock +
+ + +

Retrieves the template ID in this file data object.

+
+

Pointer to the representing the template in this file data object.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205843 + HRESULT ID3DXFileData::GetType([Out] GUID* arg0) + ID3DXFileData::GetType +
+ + +

Indicates whether this file data object is a reference object that points to another child data object.

+
+

Returns TRUE if the file data object is a reference object; returns otherwise.

+ + bb205844 + BOOL ID3DXFileData::IsReference() + ID3DXFileData::IsReference +
+ + +

Retrieves the number of children in this file data object.

+
+

Address of a reference to receive the number of children in this file data object.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205839 + HRESULT ID3DXFileData::GetChildren([Out] SIZE_T* arg0) + ID3DXFileData::GetChildren +
+ + +

Retrieves a child object in this file data object.

+
+

ID of the child object to retrieve.

+

Address of a reference to receive the child object's interface reference.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following values: D3DXFERR_BADVALUE, D3DXFERR_NOMOREOBJECTS.

+ + bb205838 + HRESULT ID3DXFileData::GetChild([In] SIZE_T arg0,[Out] ID3DXFileData** arg1) + ID3DXFileData::GetChild +
+ + +

Retrieves the enumeration object in this file data object.

+
+ + bb205840 + GetEnum + GetEnum + HRESULT ID3DXFileData::GetEnum([Out] ID3DXFileEnumObject** arg0) +
+ + +

Retrieves the template ID in this file data object.

+
+ + bb205843 + GetType + GetType + HRESULT ID3DXFileData::GetType([Out] GUID* arg0) +
+ + +

Indicates whether this file data object is a reference object that points to another child data object.

+
+ + bb205844 + IsReference + IsReference + BOOL ID3DXFileData::IsReference() +
+ + +

Retrieves the number of children in this file data object.

+
+ + bb205839 + GetChildren + GetChildren + HRESULT ID3DXFileData::GetChildren([Out] SIZE_T* arg0) +
+ + +

Applications use the methods of the interface to cycle through the child file data objects in the file and to retrieve a child object by its globally unique identifier () or by its name.

+
+ +

The for the interface is IID_ID3DXFileEnumObject.

The LPD3DXFILEENUMOBJECT type is defined as a reference to this interface.

 typedef interface  *LPD3DXFILEENUMOBJECT;	
+            
+
+ + bb205847 + ID3DXFileEnumObject + ID3DXFileEnumObject +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the object.

+
+ No documentation. +

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205852 + HRESULT ID3DXFileEnumObject::GetFile([Out] ID3DXFile** arg0) + ID3DXFileEnumObject::GetFile +
+ + +

Retrieves the number of child objects in this file data object.

+
+

Address of a reference to receive the number of child objects in this file data object.

+

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205849 + HRESULT ID3DXFileEnumObject::GetChildren([Out] SIZE_T* arg0) + ID3DXFileEnumObject::GetChildren +
+ + +

Retrieves a child object in this file data object.

+
+

ID of the child object to retrieve.

+

Address of a reference to receive the child object's interface reference.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADVALUE, D3DXFERR_NOMOREOBJECTS.

+ + bb205848 + HRESULT ID3DXFileEnumObject::GetChild([In] SIZE_T arg0,[Out] ID3DXFileData** arg1) + ID3DXFileEnumObject::GetChild +
+ + +

Retrieves the data object that has the specified .

+
+

Reference to the requested .

+

Address of a reference to an interface, representing the returned file data object.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following:DXFILEERR_BADVALUE, DXFILEERR_NOTFOUND.

+ +

Obtain the rguid of the current file data object with the method.

+
+ + bb205850 + HRESULT ID3DXFileEnumObject::GetDataObjectById([In] const GUID& arg0,[In] ID3DXFileData** arg1) + ID3DXFileEnumObject::GetDataObjectById +
+ + +

Retrieves the data object that has the specified name.

+
+

Pointer to the requested name.

+

Address of a reference to an interface, representing the returned file data object.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following:DXFILEERR_BADVALUE, DXFILEERR_NOTFOUND.

+ +

Obtain the name szName of the current file data object with the method.

+
+ + bb205851 + HRESULT ID3DXFileEnumObject::GetDataObjectByName([In] const char* arg0,[In] ID3DXFileData** arg1) + ID3DXFileEnumObject::GetDataObjectByName +
+ + +

Retrieves the object.

+
+ + bb205852 + GetFile + GetFile + HRESULT ID3DXFileEnumObject::GetFile([Out] ID3DXFile** arg0) +
+ + +

Retrieves the number of child objects in this file data object.

+
+ + bb205849 + GetChildren + GetChildren + HRESULT ID3DXFileEnumObject::GetChildren([Out] SIZE_T* arg0) +
+ + +

Applications use the methods of the interface to add data objects as children of a .x file data node.

+
+ +

The for the interface is IID_ID3DXFileSaveObject.

The LPD3DXFileSaveData type is defined as a reference to this interface.

 typedef interface  *LPD3DXFILESAVEDATA;	
+            
+
+ + bb205853 + ID3DXFileSaveData + ID3DXFileSaveData +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a reference to this file data node.

+
+ No documentation. +

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb173951 + HRESULT ID3DXFileSaveData::GetSave([Out] ID3DXFileSaveObject** arg0) + ID3DXFileSaveData::GetSave +
+ + +

Retrieves the name of this file data node.

+
+ No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ +

For this method to succeed, either szName or puiSize must be non-null.

+
+ + bb173950 + HRESULT ID3DXFileSaveData::GetName([In] char* arg0,[Out] SIZE_T* arg1) + ID3DXFileSaveData::GetName +
+ + +

Retrieves the of this file data node.

+
+ No documentation. +

If the method succeeds, the return value is . If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

+ + bb205856 + HRESULT ID3DXFileSaveData::GetId([In] GUID* arg0) + ID3DXFileSaveData::GetId +
+ + +

Retrieves the template ID of this file data node.

+
+

Pointer to the representing the template in this file data node.

+

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADOBJECT, D3DXFERR_BADVALUE.

+ + bb173952 + HRESULT ID3DXFileSaveData::GetType([Out] GUID* arg0) + ID3DXFileSaveData::GetType +
+ + +

Adds a data object as a child of the file data node.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADOBJECT, D3DXFERR_BADVALUE, E_OUTOFMEMORY.

+ + bb205854 + HRESULT ID3DXFileSaveData::AddDataObject([In] const GUID& arg0,[In] const char* arg1,[In] const GUID* arg2,[In] SIZE_T arg3,[In] const void* arg4,[In] ID3DXFileSaveData** arg5) + ID3DXFileSaveData::AddDataObject +
+ + +

Adds a data reference as a child of this file data node. The data reference points to a file data object.

+
+ No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADOBJECT, D3DXFERR_BADVALUE, E_OUTOFMEMORY.

+ +

The file data object being referenced must have either a name or a . The file data object must also derive from a different parent object.

+
+ + bb205855 + HRESULT ID3DXFileSaveData::AddDataReference([In] const char* arg0,[In] const GUID* arg1) + ID3DXFileSaveData::AddDataReference +
+ + +

Retrieves a reference to this file data node.

+
+ + bb173951 + GetSave + GetSave + HRESULT ID3DXFileSaveData::GetSave([Out] ID3DXFileSaveObject** arg0) +
+ + +

Retrieves the template ID of this file data node.

+
+ + bb173952 + GetType + GetType + HRESULT ID3DXFileSaveData::GetType([Out] GUID* arg0) +
+ + +

Applications use the methods of the interface to write a .x file to disk, and to add and save data objects and templates.

+
+ +

Templates are not required in every file. For example, you could put all templates into a single .x file rather than duplicating them in every .x file.

The interface is obtained by calling the method.

The globally unique identifier () for the interface is IID_ID3DXFileSaveObject.

The LPD3DXFILESAVEOBJECT type is defined as a reference to this interface.

 typedef interface  *LPD3DXFILESAVEOBJECT;	
+            
+
+ + bb173953 + ID3DXFileSaveObject + ID3DXFileSaveObject +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the interface of the object that created this object.

+
+ No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADVALUE, E_NOINTERFACE, E_POINTER.

+ + bb173955 + HRESULT ID3DXFileSaveObject::GetFile([Out] ID3DXFile** arg0) + ID3DXFileSaveObject::GetFile +
+ + +

Adds a data object as a child of the object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the method succeeds, the return value is . If the method fails, the return value can be one of the following: D3DXFERR_BADOBJECT, DXFILEERR_BADVALUE, E_OUTOFMEMORY.

+ +

If a data reference object will reference the data object, either the szName or pId parameter must be non-null.

Save the created data to disk by using the method.

+
+ + bb173954 + HRESULT ID3DXFileSaveObject::AddDataObject([In] const GUID& arg0,[In] const char* arg1,[In] const GUID* arg2,[In] SIZE_T arg3,[In] const void* arg4,[In] ID3DXFileSaveData** arg5) + ID3DXFileSaveObject::AddDataObject +
+ + +

Saves a data object and its children to a .x file on disk.

+
+

If the method succeeds, the return value is . If the method fails, the return value can be the following: D3DXFERR_BADOBJECT.

+ +

After this method succeeds, , and can no longer be called until a new object is created.

+
+ + bb173956 + HRESULT ID3DXFileSaveObject::Save() + ID3DXFileSaveObject::Save +
+ + +

Gets the interface of the object that created this object.

+
+ + bb173955 + GetFile + GetFile + HRESULT ID3DXFileSaveObject::GetFile([Out] ID3DXFile** arg0) +
+ + +

Stores an attribute table entry.

+
+ +

An attribute table is used to identify areas of the mesh that need to be drawn with different textures, render states, materials, and so on. In addition, the application can use the attribute table to hide portions of a mesh by not drawing a given attribute identifier (AttribId) when drawing the frame.

The LPD3DXATTRIBUTERANGE type is defined as a reference to the structure.

 typedef * LPD3DXATTRIBUTERANGE;	
+            
+
+ + bb172710 + D3DXATTRIBUTERANGE + D3DXATTRIBUTERANGE +
+ + +

Attribute table identifier.

+
+ + bb172710 + unsigned int AttribId + unsigned int AttribId +
+ + +

Starting face.

+
+ + bb172710 + unsigned int FaceStart + unsigned int FaceStart +
+ + +

Face count.

+
+ + bb172710 + unsigned int FaceCount + unsigned int FaceCount +
+ + +

Starting vertex.

+
+ + bb172710 + unsigned int VertexStart + unsigned int VertexStart +
+ + +

Vertex count.

+
+ + bb172710 + unsigned int VertexCount + unsigned int VertexCount +
+ + +

Specifies mesh weight attributes.

+
+ +

This structure describes how a simplification operation will consider vertex data when calculating relative costs between collapsing edges. For example, if the Normal field is 0.0, the simplification operation will ignore the vertex normal component when calculating the error for the collapse. However, if the Normal field is 1.0, the simplification operation will use the vertex normal component. If the Normal field is 2.0, double the amount of errors; if the Normal field is 4.0, then quadruple the number of errors, and so on.

The LPD3DXATTRIBUTEWEIGHTS type is defined as a reference to the structure.

 typedef * LPD3DXATTRIBUTEWEIGHTS;	
+            
+
+ + bb172711 + D3DXATTRIBUTEWEIGHTS + D3DXATTRIBUTEWEIGHTS +
+ + +

Position.

+
+ + bb172711 + float Position + float Position +
+ + +

Blend weight.

+
+ + bb172711 + float Boundary + float Boundary +
+ + +

Normal.

+
+ + bb172711 + float Normal + float Normal +
+ + +

Diffuse lighting value.

+
+ + bb172711 + float Diffuse + float Diffuse +
+ + +

Specular lighting value.

+
+ + bb172711 + float Specular + float Specular +
+ + +

Tangent.

+
+ + bb172711 + float Tangent + float Tangent +
+ + +

Binormal.

+
+ + bb172711 + float Binormal + float Binormal +
+ + +

Eight texture coordinates.

+
+ + bb172711 + float Texcoord[8] + float Texcoord +
+ + +

Throughput metrics for help in understanding the performance of an application.

+
+ + bb172539 + D3DDEVINFO_D3D9BANDWIDTHTIMINGS + D3DDEVINFO_D3D9BANDWIDTHTIMINGS +
+ + +

The bandwidth or maximum data transfer rate from the host CPU to the GPU. This is typically the bandwidth of the PCI or AGP bus which connects the CPU and the GPU.

+
+ + bb172539 + float MaxBandwidthUtilized + float MaxBandwidthUtilized +
+ + +

Memory utilized percentage when uploading data from the host CPU to the GPU.

+
+ + bb172539 + float FrontEndUploadMemoryUtilizedPercent + float FrontEndUploadMemoryUtilizedPercent +
+ + +

Vertex throughput percentage. This is the number of vertices processed compared to the theoretical maximum vertex processing rate.

+
+ + bb172539 + float VertexRateUtilizedPercent + float VertexRateUtilizedPercent +
+ + +

Triangle set-up throughput percentage. This is the number of triangles that are set up for rasterization compared to the theoretical maximum triangle set-up rate.

+
+ + bb172539 + float TriangleSetupRateUtilizedPercent + float TriangleSetupRateUtilizedPercent +
+ + +

Pixel fill throughput percentage. This is the number of pixels that are filled compared to the theoretical pixel fill.

+
+ + bb172539 + float FillRateUtilizedPercent + float FillRateUtilizedPercent +
+ + +

Defines a volume.

+
+ +

includes the left, top, and front edges; however, the right, bottom, and back edges are not included. For example, a box that is 100 units wide and begins at 0 (thus, including the points up to and including 99) would be expressed with a value of 0 for the Left member and a value of 100 for the Right member. Note that a value of 99 is not used for the Right member.

The restrictions on side ordering observed for are left to right, top to bottom, and front to back.

+
+ + bb172510 + D3DBOX + D3DBOX +
+ + +

Position of the left side of the box on the x-axis.

+
+ + bb172510 + unsigned int Left + unsigned int Left +
+ + +

Position of the top of the box on the y-axis.

+
+ + bb172510 + unsigned int Top + unsigned int Top +
+ + +

Position of the right side of the box on the x-axis.

+
+ + bb172510 + unsigned int Right + unsigned int Right +
+ + +

Position of the bottom of the box on the y-axis.

+
+ + bb172510 + unsigned int Bottom + unsigned int Bottom +
+ + +

Position of the front of the box on the z-axis.

+
+ + bb172510 + unsigned int Front + unsigned int Front +
+ + +

Position of the back of the box on the z-axis.

+
+ + bb172510 + unsigned int Back + unsigned int Back +
+ + +

Measure the cache hit rate performance for textures and indexed vertices.

+
+ +

An efficient cache is typically closer to a 90 percent hit rate, and an inefficient cache is typically closer to a 10 percent hit rate (although a low percentage is not necessarily a problem).

+
+ + bb172540 + D3DDEVINFO_D3D9CACHEUTILIZATION + D3DDEVINFO_D3D9CACHEUTILIZATION +
+ + +

The hit rate for finding a texture in the texture cache. This assumes there is a texture cache. Increasing the level-of-detail bias to use the most detailed texture, using many large textures, or producing a near random texture access pattern on large textures with custom shader code can dramatically affect the texture cache hit rate.

+
+ + bb172540 + float TextureCacheHitRate + float TextureCacheHitRate +
+ + +

The hit rate for finding transformed vertices in the vertex cache. The GPU is designed to transform indexed vertices and may store them in a vertex cache. If you are using meshes, or may result in better vertex cache utilization.

+
+ + bb172540 + float PostTransformVertexCacheHitRate + float PostTransformVertexCacheHitRate +
+ + +

Describes a callback key for use in key frame animation.

+
+ + bb172886 + D3DXKEY_CALLBACK + D3DXKEY_CALLBACK +
+ + +

Key frame time stamp.

+
+ + bb172886 + float Time + float Time +
+ + +

Pointer to user callback data.

+
+ + bb172886 + void* pCallbackData + void pCallbackData +
+ + +

Describes the current clip status.

+
+ +

When clipping is enabled during vertex processing (by ProcessVertices, DrawPrimitive, or other drawing functions), Direct3D computes a clip code for every vertex. The clip code is a combination of D3DCS_* bits. When a vertex is outside a particular clipping plane, the corresponding bit is set in the clipping code. Direct3D maintains the clip status using , which has ClipUnion and ClipIntersection members. ClipUnion is a bitwise OR of all vertex clip codes and ClipIntersection is a bitwise AND of all vertex clip codes. Initial values are zero for ClipUnion and 0xFFFFFFFF for ClipIntersection. When is set to , ClipUnion and ClipIntersection are set to zero. Direct3D updates the clip status during drawing calls. To compute clip status for a particular object, set ClipUnion and ClipIntersection to their initial value and continue drawing.

Clip status is not updated by DrawRectPatch and DrawTriPatch because there is no software emulation for them.

+
+ + bb172516 + D3DCLIPSTATUS9 + D3DCLIPSTATUS9 +
+ + +

Clip union flags that describe the current clip status. This member can be one or more of the following flags:

ValueMeaning

Combination of all clip flags.

All vertices are clipped by the left plane of the viewing frustum.

All vertices are clipped by the right plane of the viewing frustum.

All vertices are clipped by the top plane of the viewing frustum.

All vertices are clipped by the bottom plane of the viewing frustum.

All vertices are clipped by the front plane of the viewing frustum.

All vertices are clipped by the back plane of the viewing frustum.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

Application-defined clipping planes.

?

+
+ + bb172516 + unsigned int ClipUnion + unsigned int ClipUnion +
+ + +

Clip intersection flags that describe the current clip status. This member can take the same flags as ClipUnion.

+
+ + bb172516 + unsigned int ClipIntersection + unsigned int ClipIntersection +
+ + +

A description of a constant in a constant table.

+
+ + bb172748 + D3DXCONSTANT_DESC + D3DXCONSTANT_DESC +
+ + +

Name of the constant.

+
+ + bb172748 + const char* Name + char Name +
+ + +

Constant data type. See .

+
+ + bb172748 + D3DXREGISTER_SET RegisterSet + D3DXREGISTER_SET RegisterSet +
+ + +

Zero-based index of the constant in the table.

+
+ + bb172748 + unsigned int RegisterIndex + unsigned int RegisterIndex +
+ + +

Number of registers that contain data.

+
+ + bb172748 + unsigned int RegisterCount + unsigned int RegisterCount +
+ + +

Parameter class. See .

+
+ + bb172748 + D3DXPARAMETER_CLASS Class + D3DXPARAMETER_CLASS Class +
+ + +

Parameter type. See .

+
+ + bb172748 + D3DXPARAMETER_TYPE Type + D3DXPARAMETER_TYPE Type +
+ + +

Number of rows.

+
+ + bb172748 + unsigned int Rows + unsigned int Rows +
+ + +

Number of columns.

+
+ + bb172748 + unsigned int Columns + unsigned int Columns +
+ + +

Number of elements in the array.

+
+ + bb172748 + unsigned int Elements + unsigned int Elements +
+ + +

Number of structure member sub-parameters.

+
+ + bb172748 + unsigned int StructMembers + unsigned int StructMembers +
+ + +

Data size in number of bytes.

+
+ + bb172748 + unsigned int Bytes + unsigned int Bytes +
+ + +

Pointer to the default value.

+
+ + bb172748 + const void* DefaultValue + void DefaultValue +
+ + +

A description of the constant table.

+
+ + bb172747 + D3DXCONSTANTTABLE_DESC + D3DXCONSTANTTABLE_DESC +
+ + +

Name of the constant table creator.

+
+ + bb172747 + const char* Creator + char Creator +
+ + +

Shader version.

+
+ + bb172747 + unsigned int Version + unsigned int Version +
+ + +

Number of constants in the constant table.

+
+ + bb172747 + unsigned int Constants + unsigned int Constants +
+ + +

Describes the creation parameters for a device.

+
+ + bb172538 + D3DDEVICE_CREATION_PARAMETERS + D3DDEVICE_CREATION_PARAMETERS +
+ + +

Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter. Use this ordinal as the Adapter parameter for any of the methods. Note that different instances of Direct3D 9.0 objects can use different ordinals. Adapters can enter or leave a system when users, for example, add or remove monitors from a multiple-monitor system or when they hot-swap a laptop. Consequently, use this ordinal only in a Direct3D 9.0 instance known to be valid, that is, either the Direct3D 9.0 that created this interface or the Direct3D 9.0 returned from GetDirect3D, as called through this interface.

+
+ + bb172538 + unsigned int AdapterOrdinal + unsigned int AdapterOrdinal +
+ + +

Member of the enumerated type. Denotes the amount of emulated functionality for this device. The value of this parameter mirrors the value passed to the CreateDevice call that created this device.

+
+ + bb172538 + D3DDEVTYPE DeviceType + D3DDEVTYPE DeviceType +
+ + +

Window handle to which focus belongs for this Direct3D device. The value of this parameter mirrors the value passed to the CreateDevice call that created this device.

+
+ + bb172538 + HWND hFocusWindow + HWND hFocusWindow +
+ + +

A combination of one or more constants that control global behavior of the device. These constants mirror the constants passed to CreateDevice when the device was created.

+
+ + bb172538 + unsigned int BehaviorFlags + unsigned int BehaviorFlags +
+ + +

Specifies types of display modes to filter out.

+
+ + bb172550 + D3DDISPLAYMODEFILTER + D3DDISPLAYMODEFILTER +
+ + +

The size of this structure. This should always be set to sizeof().

+
+ + bb172550 + unsigned int Size + unsigned int Size +
+ + +

The display mode format to filter out. See .

+
+ + bb172550 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Whether the scanline ordering is interlaced or progressive. See .

+
+ + bb172550 + D3DSCANLINEORDERING ScanLineOrdering + D3DSCANLINEORDERING ScanLineOrdering +
+ + +

Describes an effect object.

+
+ +

An effect object can contain multiple rendering techniques and parameters for the same effect.

+
+ + bb172824 + D3DXEFFECT_DESC + D3DXEFFECT_DESC +
+ + +

String that contains the name of the effect creator.

+
+ + bb172824 + const char* Creator + char Creator +
+ + +

Number of parameters used for effect.

+
+ + bb172824 + unsigned int Parameters + unsigned int Parameters +
+ + +

Number of techniques that can render the effect.

+
+ + bb172824 + unsigned int Techniques + unsigned int Techniques +
+ + +

Number of functions that can render the effect.

+
+ + bb172824 + unsigned int Functions + unsigned int Functions +
+ + +

Describes an animation event.

+
+ + bb172826 + D3DXEVENT_DESC + D3DXEVENT_DESC +
+ + +

Event type, as defined in .

+
+ + bb172826 + D3DXEVENT_TYPE Type + D3DXEVENT_TYPE Type +
+ + +

Event track identifier.

+
+ + bb172826 + unsigned int Track + unsigned int Track +
+ + +

Start time of the event in global time.

+
+ + bb172826 + double StartTime + double StartTime +
+ + +

Duration of the event in global time.

+
+ + bb172826 + double Duration + double Duration +
+ + +

Transition style of the event, as defined in .

+
+ + bb172826 + D3DXTRANSITION_TYPE Transition + D3DXTRANSITION_TYPE Transition +
+ + +

Track weight for the event.

+
+ + bb172826 + float Weight + float Weight +
+ + +

Track speed for the event.

+
+ + bb172826 + float Speed + float Speed +
+ + +

Track position for the event.

+
+ + bb172826 + double Position + double Position +
+ + +

Enable flag.

+
+ + bb172826 + BOOL Enable + BOOL Enable +
+ + +

Returns material information saved in Direct3D (.x) files.

+
+ +

The and functions return an array of structures that specify the material color and name of the texture for each material in the mesh. The application is then required to load the texture.

The LPD3DXMATERIAL type is defined as a reference to the structure.

 typedef struct * LPD3DXMATERIAL;	
+            
+
+ + bb172911 + D3DXMATERIAL + D3DXMATERIAL +
+ + +

structure that describes the material properties.

+
+ + bb172911 + D3DMATERIAL9 MatD3D + D3DMATERIAL9 MatD3D +
+ + +

Pointer to a string that specifies the file name of the texture.

+
+ + bb172911 + char* pTextureFilename + char pTextureFilename +
+ + +

Defines the attributes of a font.

+
+ +

The compiler setting also determines the structure type. If Unicode is defined, the structure type resolves to a ; otherwise the structure type resolves to a D3DXFONT_DESCA.

Possible values of the above members are given in the GDI structure.

+
+ + bb172843 + D3DXFONT_DESCW + D3DXFONT_DESCW +
+ + +

Height, in logical units, of the font's character cell or character.

+
+ + bb172843 + int Height + int Height +
+ + +

Width, in logical units, of characters in the font.

+
+ + bb172843 + unsigned int Width + unsigned int Width +
+ + +

Weight of the font in the range from 0 through 1000.

+
+ + bb172843 + D3DX9_FONT_WEIGHT Weight + D3DX9_FONT_WEIGHT Weight +
+ + +

Number of mip levels requested. If this value is zero or D3DX_DEFAULT, a complete mipmap chain is created. If the value is 1, the texture space is mapped identically to the screen space.

+
+ + bb172843 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

Set to TRUE for an Italic font.

+
+ + bb172843 + BOOL Italic + BOOL Italic +
+ + +

Character set.

+
+ + bb172843 + D3DX9_FONT_CHARSET CharSet + D3DX9_FONT_CHARSET CharSet +
+ + +

Output precision. The output precision defines how closely the output must match the requested font height, width, character orientation, escapement, pitch, and font type.

+
+ + bb172843 + D3DX9_FONT_PRECISION OutputPrecision + D3DX9_FONT_PRECISION OutputPrecision +
+ + +

Output quality.

+
+ + bb172843 + D3DX9_FONT_QUALITY Quality + D3DX9_FONT_QUALITY Quality +
+ + +

Pitch and family of the font.

+
+ + bb172843 + D3DX9_FONT_PITCHFAMILY PitchAndFamily + D3DX9_FONT_PITCHFAMILY PitchAndFamily +
+ + +

A null-terminated string or characters that specifies the typeface name of the font. The length of the string must not exceed 32 characters, including the terminating null character. If FaceName is an empty string, the first font that matches the other specified attributes will be used. If the compiler settings require Unicode, the data type TCHAR resolves to WCHAR; otherwise, the data type resolves to CHAR. See Remarks.

+
+ + bb172843 + wchar_t FaceName[32] + wchar_t FaceName +
+ + +

Encapsulates a transform frame in a transformation frame hierarchy.

+
+ +

An application can derive from this structure to add other data.

+
+ + bb172845 + D3DXFRAME + D3DXFRAME +
+ + +

Name of the frame.

+
+ + bb172845 + char* Name + char Name +
+ + +

Transformation matrix.

+
+ + bb172845 + D3DXMATRIX TransformationMatrix + D3DXMATRIX TransformationMatrix +
+ + +

Pointer to the mesh container.

+
+ + bb172845 + D3DXMESHCONTAINER* pMeshContainer + D3DXMESHCONTAINER pMeshContainer +
+ + +

Pointer to a sibling frame.

+
+ + bb172845 + D3DXFRAME* pFrameSibling + D3DXFRAME pFrameSibling +
+ + +

Pointer to a child frame.

+
+ + bb172845 + D3DXFRAME* pFrameFirstChild + D3DXFRAME pFrameFirstChild +
+ + + No documentation. + + + bb280311 + D3DXFUNCTION_DESC + D3DXFUNCTION_DESC + + + + No documentation. + + + bb280311 + const char* Name + char Name + + + + No documentation. + + + bb280311 + unsigned int Annotations + unsigned int Annotations + + + +

Contains red, green, and blue ramp data.

+
+ + bb172561 + D3DGAMMARAMP + D3DGAMMARAMP +
+ + +

Array of 256 WORD element that describes the red gamma ramp.

+
+ + bb172561 + unsigned short red[256] + unsigned short red +
+ + +

Array of 256 WORD element that describes the green gamma ramp.

+
+ + bb172561 + unsigned short green[256] + unsigned short green +
+ + +

Array of 256 WORD element that describes the blue gamma ramp.

+
+ + bb172561 + unsigned short blue[256] + unsigned short blue +
+ + +

Returns a description of the original contents of an image file.

+
+ + bb172879 + D3DXIMAGE_INFO + D3DXIMAGE_INFO +
+ + +

Width of original image in pixels.

+
+ + bb172879 + unsigned int Width + unsigned int Width +
+ + +

Height of original image in pixels.

+
+ + bb172879 + unsigned int Height + unsigned int Height +
+ + +

Depth of original image in pixels.

+
+ + bb172879 + unsigned int Depth + unsigned int Depth +
+ + +

Number of mip levels in original image.

+
+ + bb172879 + unsigned int MipLevels + unsigned int MipLevels +
+ + +

A value from the enumerated type that most closely describes the data in the original image.

+
+ + bb172879 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Represents the type of the texture stored in the file. It is either , , or D3DRTYPE_CubeTexture.

+
+ + bb172879 + D3DRESOURCETYPE ResourceType + D3DRESOURCETYPE ResourceType +
+ + +

Represents the format of the image file.

+
+ + bb172879 + D3DXIMAGE_FILEFORMAT ImageFileFormat + D3DXIMAGE_FILEFORMAT ImageFileFormat +
+ + + Retrieves information about a given image file on the disk. + + The filename. + A structure + HRESULT D3DXGetImageInfoFromFileInMemory([In] const void* pSrcData,[In] unsigned int SrcDataSize,[Out] D3DXIMAGE_INFO* pSrcInfo) + + + + Retrieves information about a given image file in memory. + + The memory. + A structure + HRESULT D3DXGetImageInfoFromFileInMemory([In] const void* pSrcData,[In] unsigned int SrcDataSize,[Out] D3DXIMAGE_INFO* pSrcInfo) + + + + Retrieves information about a given image file from a stream. + + The stream. + A structure + This method keeps the position of the stream + HRESULT D3DXGetImageInfoFromFileInMemory([In] const void* pSrcData,[In] unsigned int SrcDataSize,[Out] D3DXIMAGE_INFO* pSrcInfo) + + + + Retrieves information about a given image file from a stream. + + The stream. + if set to true preserve the stream position; false will move the stream pointer. + A structure + HRESULT D3DXGetImageInfoFromFileInMemory([In] const void* pSrcData,[In] unsigned int SrcDataSize,[Out] D3DXIMAGE_INFO* pSrcInfo) + + + +

Describes an index buffer.

+
+ + bb172563 + D3DINDEXBUFFER_DESC + D3DINDEXBUFFER_DESC +
+ + +

Member of the enumerated type, describing the surface format of the index buffer data.

+
+ + bb172563 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Member of the enumerated type, identifying this resource as an index buffer.

+
+ + bb172563 + D3DRESOURCETYPE Type + D3DRESOURCETYPE Type +
+ + +

Combination of one or more of the following flags, specifying the usage for this resource.

ValueMeaning

Set to indicate that the index buffer content will never require clipping.

Set to indicate that the index buffer requires dynamic memory use. This is useful for drivers because it enables them to decide where to place the buffer. In general, static index buffers are placed in video memory and dynamic index buffers are placed in AGP memory. Note that there is no separate static usage; if you do not specify the index buffer is made static. is strictly enforced through the and locking flags. As a result, and are only valid on index buffers created with ; they are not valid flags on static vertex buffers.

For more information about using dynamic index buffers, see Using Dynamic Vertex and Index Buffers.

Note that cannot be specified on managed index buffers. For more information, see Managing Resources (Direct3D 9).

Set to indicate when the index buffer is to be used for drawing high-order primitives.

Set to indicate when the index buffer is to be used for drawing N patches.

Set to indicate when the index buffer is to be used for drawing point sprites or indexed point lists.

Set to indicate that the buffer is to be used with software processing.

Informs the system that the application writes only to the index buffer. Using this flag enables the driver to choose the best memory location for efficient write operations and rendering. Attempts to read from an index buffer that is created with this capability can result in degraded performance.

?

+
+ + bb172563 + D3DUSAGE Usage + D3DUSAGE Usage +
+ + +

Member of the enumerated type, specifying the class of memory allocated for this index buffer.

+
+ + bb172563 + D3DPOOL Pool + D3DPOOL Pool +
+ + +

Size of the index buffer, in bytes.

+
+ + bb172563 + unsigned int Size + unsigned int Size +
+ + +

Percent of time processing data in the driver. These statistics may help identify cases when the driver is waiting for other resources.

+
+ +

These metrics help identify when a driver is waiting and what it is waiting for. High percentages are not necessarily a problem.

These system-global metrics may or may not be implemented. Depending on the specific hardware, these metrics may not support multiple queries simultaneously.

+
+ + bb172541 + D3DDEVINFO_D3D9INTERFACETIMINGS + D3DDEVINFO_D3D9INTERFACETIMINGS +
+ + +

Percentage of time the driver spent waiting for the GPU to finish using a locked resource (and wasn't specified).

+
+ + bb172541 + float WaitingForGPUToUseApplicationResourceTimePercent + float WaitingForGPUToUseApplicationResourceTimePercent +
+ + +

Percentage of time the driver spent waiting for the GPU to finish processing some commands before the driver could send more. This indicates the driver has run out of room to send commands to the GPU.

+
+ + bb172541 + float WaitingForGPUToAcceptMoreCommandsTimePercent + float WaitingForGPUToAcceptMoreCommandsTimePercent +
+ + +

Percentage of time the driver spent waiting for the GPU latency to reduce to less than three rendering frames.

If an application is GPU-limited, the driver must stall the CPU until the GPU gets within three frames. This prevents an application from queuing up many seconds' worth of rendering calls which may dramatically increase the latency between when the user inputs new data and when the user sees the results of that input. In general, the driver can track the number of times Present is called to prevent queuing up more than three frames of rendering work.

+
+ + bb172541 + float WaitingForGPUToStayWithinLatencyTimePercent + float WaitingForGPUToStayWithinLatencyTimePercent +
+ + +

Percentage of time the driver spent waiting for a resource that cannot be pipelined (that is operated in parallel). An application may want to avoid using a non-pipelined resource for performance reasons.

+
+ + bb172541 + float WaitingForGPUExclusiveResourceTimePercent + float WaitingForGPUExclusiveResourceTimePercent +
+ + +

Percentage of time the driver spent waiting for other GPU processing.

+
+ + bb172541 + float WaitingForGPUOtherTimePercent + float WaitingForGPUOtherTimePercent +
+ + +

Defines a set of lighting properties.

+
+ + bb172566 + D3DLIGHT9 + D3DLIGHT9 +
+ + +

Type of the light source. This value is one of the members of the enumerated type.

+
+ + bb172566 + D3DLIGHTTYPE Type + D3DLIGHTTYPE Type +
+ + +

Diffuse color emitted by the light. This member is a structure.

+
+ + bb172566 + D3DCOLORVALUE Diffuse + D3DCOLORVALUE Diffuse +
+ + +

Specular color emitted by the light. This member is a structure.

+
+ + bb172566 + D3DCOLORVALUE Specular + D3DCOLORVALUE Specular +
+ + +

Ambient color emitted by the light. This member is a structure.

+
+ + bb172566 + D3DCOLORVALUE Ambient + D3DCOLORVALUE Ambient +
+ + +

Position of the light in world space, specified by a structure. This member has no meaning for directional lights and is ignored in that case.

+
+ + bb172566 + D3DVECTOR Position + D3DVECTOR Position +
+ + +

Direction that the light is pointing in world space, specified by a structure. This member has meaning only for directional and spotlights. This vector need not be normalized, but it should have a nonzero length.

+
+ + bb172566 + D3DVECTOR Direction + D3DVECTOR Direction +
+ + +

Distance beyond which the light has no effect. The maximum allowable value for this member is the square root of FLT_MAX. This member does not affect directional lights.

+
+ + bb172566 + float Range + float Range +
+ + +

Decrease in illumination between a spotlight's inner cone (the angle specified by Theta) and the outer edge of the outer cone (the angle specified by Phi).

The effect of falloff on the lighting is subtle. Furthermore, a small performance penalty is incurred by shaping the falloff curve. For these reasons, most developers set this value to 1.0.

+
+ + bb172566 + float Falloff + float Falloff +
+ + +

Value specifying how the light intensity changes over distance. Attenuation values are ignored for directional lights. This member represents an attenuation constant. For information about attenuation, see Light Properties (Direct3D 9). Valid values for this member range from 0.0 to infinity. For non-directional lights, all three attenuation values should not be set to 0.0 at the same time.

+
+ + bb172566 + float Attenuation0 + float Attenuation0 +
+ + +

Value specifying how the light intensity changes over distance. Attenuation values are ignored for directional lights. This member represents an attenuation constant. For information about attenuation, see Light Properties (Direct3D 9). Valid values for this member range from 0.0 to infinity. For non-directional lights, all three attenuation values should not be set to 0.0 at the same time.

+
+ + bb172566 + float Attenuation1 + float Attenuation1 +
+ + +

Value specifying how the light intensity changes over distance. Attenuation values are ignored for directional lights. This member represents an attenuation constant. For information about attenuation, see Light Properties (Direct3D 9). Valid values for this member range from 0.0 to infinity. For non-directional lights, all three attenuation values should not be set to 0.0 at the same time.

+
+ + bb172566 + float Attenuation2 + float Attenuation2 +
+ + +

Angle, in radians, of a spotlight's inner cone - that is, the fully illuminated spotlight cone. This value must be in the range from 0 through the value specified by Phi.

+
+ + bb172566 + float Theta + float Theta +
+ + +

Angle, in radians, defining the outer edge of the spotlight's outer cone. Points outside this cone are not lit by the spotlight. This value must be between 0 and pi.

+
+ + bb172566 + float Phi + float Phi +
+ + + No documentation. + + + bb280342 + D3DLOCKED_BOX + D3DLOCKED_BOX + + + + No documentation. + + + bb280342 + int RowPitch + int RowPitch + + + + No documentation. + + + bb280342 + int SlicePitch + int SlicePitch + + + + No documentation. + + + bb280342 + void* pBits + void pBits + + + +

Describes a locked rectangular region.

+
+ +

The pitch for DXTn formats is different from what was returned in DirectX 7. It now refers to the number of bytes in a row of blocks. For example, if you have a width of 16, then you will have a pitch of 4 blocks (4*8 for DXT1, 4*16 for DXT2-5.)

+
+ + bb172570 + D3DLOCKED_RECT + D3DLOCKED_RECT +
+ + +

Number of bytes in one row of the surface.

+
+ + bb172570 + int Pitch + int Pitch +
+ + +

Pointer to the locked bits. If a was provided to the LockRect call, pBits will be appropriately offset from the start of the surface.

+
+ + bb172570 + void* pBits + void pBits +
+ + +

Describes preprocessor definitions used by an effect object.

+
+ +

To use s in more than one line, prefix each new line character with a backslash (like a #define in the C language). For example:

 sample=	
+            macro.Name = "DO_CODE_BLOCK";	
+            macro.Definition = "/* here is a block of code */\\\n" "{ do something ... }\\\n";	
+            

Notice the 3 backslash characters at the end of the line. The first two are required to output a single '\', followed by the newline character "\n". Optionally, you may also want to terminate your lines using "\\\r\n".

+
+ + bb172910 + D3DXMACRO + D3DXMACRO +
+ + +

Preprocessor name.

+
+ + bb172910 + const char* Name + char Name +
+ + +

Definition name.

+
+ + bb172910 + const char* Definition + char Definition +
+ + + Initializes a new instance of the struct. + + The name. + The definition. + + + +

Specifies material properties.

+
+ +

To turn off specular highlights, set to , using . This is the fastest option because no specular highlights will be calculated.

For more information about using the lighting engine to calculate specular lighting, see Specular Lighting (Direct3D 9).

+
+ + bb172571 + D3DMATERIAL9 + D3DMATERIAL9 +
+ + +

Value specifying the diffuse color of the material. See .

+
+ + bb172571 + D3DCOLORVALUE Diffuse + D3DCOLORVALUE Diffuse +
+ + +

Value specifying the ambient color of the material. See .

+
+ + bb172571 + D3DCOLORVALUE Ambient + D3DCOLORVALUE Ambient +
+ + +

Value specifying the specular color of the material. See .

+
+ + bb172571 + D3DCOLORVALUE Specular + D3DCOLORVALUE Specular +
+ + +

Value specifying the emissive color of the material. See .

+
+ + bb172571 + D3DCOLORVALUE Emissive + D3DCOLORVALUE Emissive +
+ + +

Floating-point value specifying the sharpness of specular highlights. The higher the value, the sharper the highlight.

+
+ + bb172571 + float Power + float Power +
+ + + No documentation. + + + bb280302 + D3DXMESHCONTAINER + D3DXMESHCONTAINER + + + + No documentation. + + + bb280302 + char* Name + char Name + + + + No documentation. + + + bb280302 + D3DXMESHDATA MeshData + D3DXMESHDATA MeshData + + + + No documentation. + + + bb280302 + D3DXMATERIAL* pMaterials + D3DXMATERIAL pMaterials + + + + No documentation. + + + bb280302 + D3DXEFFECTINSTANCE* pEffects + D3DXEFFECTINSTANCE pEffects + + + + No documentation. + + + bb280302 + unsigned int NumMaterials + unsigned int NumMaterials + + + + No documentation. + + + bb280302 + unsigned int* pAdjacency + unsigned int pAdjacency + + + + No documentation. + + + bb280302 + ID3DXSkinInfo* pSkinInfo + ID3DXSkinInfo pSkinInfo + + + + No documentation. + + + bb280302 + D3DXMESHCONTAINER* pNextMeshContainer + D3DXMESHCONTAINER pNextMeshContainer + + + + Gets or sets the materials. + + + The materials. + + + + +

Mesh data structure.

+
+ + bb205372 + D3DXMESHDATA + D3DXMESHDATA +
+ + +

Defines the mesh data type. See .

+
+ + bb205372 + D3DXMESHDATATYPE Type + D3DXMESHDATATYPE Type +
+ + +

Pointer to a mesh. See .

+
+ + bb205372 + ID3DXMesh* pMesh + ID3DXMesh pMesh +
+ + +

Pointer to a patch mesh. See .

+
+ + bb205372 + ID3DXPMesh* pPMesh + ID3DXPMesh pPMesh +
+ + +

Pointer to a patch mesh. See .

+
+ + bb205372 + ID3DXPatchMesh* pPatchMesh + ID3DXPatchMesh pPatchMesh +
+ + +

Describes a parameter used for an effect object.

+
+ + bb205379 + D3DXPARAMETER_DESC + D3DXPARAMETER_DESC +
+ + +

Name of the parameter.

+
+ + bb205379 + const char* Name + char Name +
+ + +

Semantic meaning, also called the usage.

+
+ + bb205379 + const char* Semantic + char Semantic +
+ + +

Parameter class. Set this to one of the values in .

+
+ + bb205379 + D3DXPARAMETER_CLASS Class + D3DXPARAMETER_CLASS Class +
+ + +

Parameter type. Set this to one of the values in .

+
+ + bb205379 + D3DXPARAMETER_TYPE Type + D3DXPARAMETER_TYPE Type +
+ + +

Number of rows in the array.

+
+ + bb205379 + unsigned int Rows + unsigned int Rows +
+ + +

Number of columns in the array.

+
+ + bb205379 + unsigned int Columns + unsigned int Columns +
+ + +

Number of elements in the array.

+
+ + bb205379 + unsigned int Elements + unsigned int Elements +
+ + +

Number of annotations.

+
+ + bb205379 + unsigned int Annotations + unsigned int Annotations +
+ + +

Number of structure members.

+
+ + bb205379 + unsigned int StructMembers + unsigned int StructMembers +
+ + +

Parameter attributes. See Effect Constants.

+
+ + bb205379 + unsigned int Flags + unsigned int Flags +
+ + +

The size of the parameter, in bytes.

+
+ + bb205379 + unsigned int Bytes + unsigned int Bytes +
+ + +

Describes a pass for an effect object.

+
+ + bb205381 + D3DXPASS_DESC + D3DXPASS_DESC +
+ + +

String value used for the pass.

+
+ + bb205381 + const char* Name + char Name +
+ + +

Annotations are user-specific data that can be attached to any technique, pass, or parameter. See Add Information to Effect Parameters with_Annotations.

+
+ + bb205381 + unsigned int Annotations + unsigned int Annotations +
+ + +

Pointer to the vertex shader function. If an effect is created with , this structure will return a null reference when called by GetPassDesc.

+
+ + bb205381 + const unsigned int* pVertexShaderFunction + unsigned int pVertexShaderFunction +
+ + +

Pointer to the pixel shader function. If an effect is created with , this structure will return a null reference when called by GetPassDesc.

+
+ + bb205381 + const unsigned int* pPixelShaderFunction + unsigned int pPixelShaderFunction +
+ + +

Structure that contains the attributes of a patch mesh.

+
+ +

A mesh is a set of faces, each of which is described by a simple polygon. Objects can be created by connecting several meshes together. A patch mesh is constructed from patches. A patch is a four-sided piece of geometry constructed from curves. The type of curve used and the order of the curve can be varied so that the patch surface will fit almost any surface shape.

The following types of patch combinations are supported:

Patch TypeBasisDegree
RectangleBezier2,3,5
RectangleB-Spline2,3,5
RectangleCatmull-Rom3
TriangleBezier2,3,5
N-patchN/A3

?

+
+ + bb205382 + D3DXPATCHINFO + D3DXPATCHINFO +
+ + +

The patch type. For information about patch types, see .

+
+ + bb205382 + D3DXPATCHMESHTYPE PatchType + D3DXPATCHMESHTYPE PatchType +
+ + +

Degree of the curves used to construct the patch. For information about the degrees supported, see .

+
+ + bb205382 + D3DDEGREETYPE Degree + D3DDEGREETYPE Degree +
+ + +

Type of curve used to construct the patch. For information about the basis types supported, see .

+
+ + bb205382 + D3DBASISTYPE Basis + D3DBASISTYPE Basis +
+ + +

Percent of time processing data in the pipeline.

+
+ +

For best performance, a balanced load is recommended.

+
+ + bb172542 + D3DDEVINFO_D3D9PIPELINETIMINGS + D3DDEVINFO_D3D9PIPELINETIMINGS +
+ + +

Percent of time spent running vertex shaders.

+
+ + bb172542 + float VertexProcessingTimePercent + float VertexProcessingTimePercent +
+ + +

Percent of time spent running pixel shaders.

+
+ + bb172542 + float PixelProcessingTimePercent + float PixelProcessingTimePercent +
+ + +

Percent of time spent doing other processing.

+
+ + bb172542 + float OtherGPUProcessingTimePercent + float OtherGPUProcessingTimePercent +
+ + +

Percent of time not processing anything.

+
+ + bb172542 + float GPUIdleTimePercent + float GPUIdleTimePercent +
+ + +

Pixel shader driver caps.

+
+ + bb172591 + D3DPSHADERCAPS2_0 + D3DPSHADERCAPS2_0 +
+ + +

Instruction predication is supported if this value is nonzero. See setp_comp - vs.

+
+ + bb172591 + D3DPS20CAPS Caps + D3DPS20CAPS Caps +
+ + +

Either 0 or 24, which represents the depth of the dynamic flow control instruction nesting. See .

+
+ + bb172591 + int DynamicFlowControlDepth + int DynamicFlowControlDepth +
+ + +

The number of temporary registers supported. See .

+
+ + bb172591 + int NumTemps + int NumTemps +
+ + +

The depth of nesting of the loop - vs/rep - vs and call - vs/callnz bool - vs instructions. See .

+
+ + bb172591 + int StaticFlowControlDepth + int StaticFlowControlDepth +
+ + +

The number of instruction slots supported. See .

+
+ + bb172591 + int NumInstructionSlots + int NumInstructionSlots +
+ + +

Describes swapchain statistics relating to PresentEx calls.

+
+ +

When a 9Ex application adopts Flip Mode present (), applications can detect frame dropping by calling GetPresentStatistics at any point in time. In effect, they can do the following.

  1. Render to the back buffer
  2. Call Present
  3. Call GetPresentStats and store the resulting structure
  4. Render the next frame to the back buffer
  5. Call Present
  6. Repeat steps 4 and 5 one or more times
  7. Call GetPresentStats and store the resulting structure
  8. Compare the values of PresentRefreshCount from the two stored structures. The application can calculate the corresponding PresentRefreshCount of a particular PresentCount parameter based on the assumptions of PresentRefreshCount increment and PresentCount assignment of frame presents. If the PresentRefreshCount last sampled does not match the PresentCount (i.e. if the PresentRefreshCount has incremented but PresentCount has not, then there was frame dropping.)

Applications can determine whether a frame has been dropped by sampling any two instances of PresentCount and GetPresentStats (by calling GetPresentStats API at any two points in time). For example, a media application that is presenting at the same rate as the monitor refresh rate (for example, monitor refresh rate is 60Hz, the application presents a frame every 1/60 seconds) wants to present frames A, B, C, D, E, each corresponding to Present IDs (PresentCount) 1, 2, 3, 7, 8.

The application code looks like the following sequence.

  1. Render frame A to the back buffer
  2. Call Present, PresentCount = 1
  3. Call GetPresentStats and store the resulting structure
  4. Render the next 4 frames, B, C, D, E, respectively
  5. Call Present 4 times, PresentCounts = 2, 3, 7, 8, respectively
  6. Call GetPresentStats and store the resulting structure
  7. Compare the values of PresentRefreshCount from the two stored structures. If the difference is 2, i.e. 2 vblank intervals has elapsed between the two GetPresentStats API calls, then the last presented frame should be frame C. Because the application presents once very vblank interval (the refresh rate of the monitor), the time elapsed between when frame A is presented and when frame C is presented should be 2 vblanks.
  8. Compare the values of PresentCount from the two stored structures. If the first PresentCount is 1 (corresponding to frame A) and the second PresentCount is 3 (corresponding to frame C), then no frames have been dropped. If the second PresentCount is 3, which corresponds to frame D, then the application knows that one frame has been dropped.

Note that GetPresentStatistics will be processed after it is called, regardless of the state of FLIPEX mode PresentEx calls.

Windows?Vista:??The Present calls will be queued and then processed before GetPresentStats call will be processed.

When an application detects that the presentation of certain frames are behind, it can skip those frames and correct the presentation to re-synchronize with the vblank. To do this, an application can simply not render the late frames and start rendering with the next correct frame in the queue. However, if an application has already started the rendering of late frames, it can use a new Present parameter in D3D9Ex called . The flag will be passed in the parameters of Present API call and indicates to the runtime that the frame will be processed immediately within the next vblank interval, effectively not visible on screen at all. Here is the application usage example after the last step in the previous example.

  1. Render the next frame to the back buffer
  2. Discover from PresentRefreshCount that the next frame is already late
  3. Set Present interval to
  4. Call Present on the next frame

Applications can synchronize video and audio streams in the same manner because the behavior of GetPresentStatistics does not change in that scenario.

D3D9Ex Flip Mode provides frame statistics information to windowed applications and full screen 9Ex applications.

Windows?Vista:??Use the DWM APIs for retrieving present statistics.

When Desktop Window Manager is turned off, windowed mode 9Ex applications using flip mode will receive present statistics information of limited accuracy.

Windows?Vista:??

If an application is not fast enough to keep up with the monitor's refresh rate, possibly due to slow hardware or lack of system resources, then it can experience a graphics glitch. A glitch is a so-called visual hiccup. If a monitor is set to refresh at 60 Hz, and the application can only manage 30 fps, then half of the frames will have glitches.

Applications can detect a glitch by keeping track of SynchRefreshCount. For example, an application might perform the following sequence of actions.

  1. Render to the back buffer.
  2. Call Present.
  3. Call GetPresentStats and store the resulting structure.
  4. Render the next frame to the back buffer.
  5. Call Present.
  6. Call GetPresentStats and store the resulting structure.
  7. Compare the values of SyncRefreshCount from the two stored structures. If the difference is greater than one, then a frame was skipped.
+
+ + bb172587 + D3DPRESENTSTATS + D3DPRESENTSTATS +
+ + + No documentation. + + + bb172587 + unsigned int PresentCount + unsigned int PresentCount + + + + No documentation. + + + bb172587 + unsigned int PresentRefreshCount + unsigned int PresentRefreshCount + + + + No documentation. + + + bb172587 + unsigned int SyncRefreshCount + unsigned int SyncRefreshCount + + + + No documentation. + + + bb172587 + LARGE_INTEGER SyncQPCTime + LARGE_INTEGER SyncQPCTime + + + + No documentation. + + + bb172587 + LARGE_INTEGER SyncGPUTime + LARGE_INTEGER SyncGPUTime + + + +

Describes the presentation parameters.

+
+ + bb172588 + D3DPRESENT_PARAMETERS + D3DPRESENT_PARAMETERS +
+ + +

Width of the new swap chain's back buffers, in pixels. If Windowed is (the presentation is full-screen), this value must equal the width of one of the enumerated display modes found through EnumAdapterModes. If Windowed is TRUE and either BackBufferWidth or BackBufferHeight is zero, the corresponding dimension of the client area of the hDeviceWindow (or the focus window, if hDeviceWindow is null) is taken.

+
+ + bb172588 + unsigned int BackBufferWidth + unsigned int BackBufferWidth +
+ + +

Height of the new swap chain's back buffers, in pixels. If Windowed is (the presentation is full-screen), this value must equal the height of one of the enumerated display modes found through EnumAdapterModes. If Windowed is TRUE and either BackBufferWidth or BackBufferHeight is zero, the corresponding dimension of the client area of the hDeviceWindow (or the focus window, if hDeviceWindow is null) is taken.

+
+ + bb172588 + unsigned int BackBufferHeight + unsigned int BackBufferHeight +
+ + +

The back buffer format. For more information about formats, see . This value must be one of the render-target formats as validated by CheckDeviceType. You can use GetDisplayMode to obtain the current format.

In fact, can be specified for the BackBufferFormat while in windowed mode. This tells the runtime to use the current display-mode format and eliminates the need to call GetDisplayMode.

For windowed applications, the back buffer format no longer needs to match the display-mode format because color conversion can now be done by the hardware (if the hardware supports color conversion). The set of possible back buffer formats is constrained, but the runtime will allow any valid back buffer format to be presented to any desktop format. (There is the additional requirement that the device be operable in the desktop; devices typically do not operate in 8 bits per pixel modes.)

Full-screen applications cannot do color conversion.

+
+ + bb172588 + D3DFORMAT BackBufferFormat + D3DFORMAT BackBufferFormat +
+ + +

This value can be between 0 and (or when using Direct3D 9Ex). Values of 0 are treated as 1. If the number of back buffers cannot be created, the runtime will fail the method call and fill this value with the number of back buffers that could be created. As a result, an application can call the method twice with the same structure and expect it to work the second time.

The method fails if one back buffer cannot be created. The value of BackBufferCount influences what set of swap effects are allowed. Specifically, any swap effect requires that there be exactly one back buffer.

+
+ + bb172588 + unsigned int BackBufferCount + unsigned int BackBufferCount +
+ + +

Member of the enumerated type. The value must be unless SwapEffect has been set to . Multisampling is supported only if the swap effect is .

+
+ + bb172588 + D3DMULTISAMPLE_TYPE MultiSampleType + D3DMULTISAMPLE_TYPE MultiSampleType +
+ + +

Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by CheckDeviceMultiSampleType. Passing a larger value returns the error . Paired values of render targets or of depth stencil surfaces and must match.

+
+ + bb172588 + unsigned int MultiSampleQuality + unsigned int MultiSampleQuality +
+ + +

Member of the enumerated type. The runtime will guarantee the implied semantics concerning buffer swap behavior; therefore, if Windowed is TRUE and SwapEffect is set to , the runtime will create one extra back buffer and copy whichever becomes the front buffer at presentation time.

requires that BackBufferCount be set to 1.

will be enforced in the debug runtime by filling any buffer with noise after it is presented.

Differences between Direct3D9 and Direct3D9Ex

In Direct3D9Ex, is added to designate when an application is adopting flip mode. That is, whan an application's frame is passed in window's mode (instead of copied) to the Desktop Window Manager(DWM) for composition. Flip mode provides more efficient memory bandwidth and enables an application to take advantage of full-screen-present statistics. It does not change full screen behavior. Flip mode behavior is available beginning with Windows 7.

?

+
+ + bb172588 + D3DSWAPEFFECT SwapEffect + D3DSWAPEFFECT SwapEffect +
+ + +

The device window determines the location and size of the back buffer on screen. This is used by Direct3D when the back buffer contents are copied to the front buffer during Present.

  • For a full-screen application, this is a handle to the top window (which is the focus window).

    For applications that use multiple full-screen devices (such as a multimonitor system), exactly one device can use the focus window as the device window. All other devices must have unique device windows.

  • For a windowed-mode application, this handle will be the default target window for Present. If this handle is null, the focus window will be taken.

Note that no attempt is made by the runtime to reflect user changes in window size. The back buffer is not implicitly reset when this window is reset. However, the Present method does automatically track window position changes.

+
+ + bb172588 + HWND hDeviceWindow + HWND hDeviceWindow +
+ + +

TRUE if the application runs windowed; if the application runs full-screen.

+
+ + bb172588 + BOOL Windowed + BOOL Windowed +
+ + +

If this value is TRUE, Direct3D will manage depth buffers for the application. The device will create a depth-stencil buffer when it is created. The depth-stencil buffer will be automatically set as the render target of the device. When the device is reset, the depth-stencil buffer will be automatically destroyed and recreated in the new size.

If EnableAutoDepthStencil is TRUE, then AutoDepthStencilFormat must be a valid depth-stencil format.

+
+ + bb172588 + BOOL EnableAutoDepthStencil + BOOL EnableAutoDepthStencil +
+ + +

Member of the enumerated type. The format of the automatic depth-stencil surface that the device will create. This member is ignored unless EnableAutoDepthStencil is TRUE.

+
+ + bb172588 + D3DFORMAT AutoDepthStencilFormat + D3DFORMAT AutoDepthStencilFormat +
+ + +

One of the constants.

+
+ + bb172588 + D3DPRESENTFLAG Flags + D3DPRESENTFLAG Flags +
+ + +

The rate at which the display adapter refreshes the screen. The value depends on the mode in which the application is running:

  • For windowed mode, the refresh rate must be 0.
  • For full-screen mode, the refresh rate is one of the refresh rates returned by EnumAdapterModes.
+
+ + bb172588 + unsigned int FullScreen_RefreshRateInHz + unsigned int FullScreen_RefreshRateInHz +
+ + +

The maximum rate at which the swap chain's back buffers can be presented to the front buffer. For a detailed explanation of the modes and the intervals that are supported, see .

+
+ + bb172588 + D3DPRESENT_INTERVAL PresentationInterval + D3DPRESENT_INTERVAL PresentationInterval +
+ + + Initializes a new instance of the struct. + + Width of the back buffer. + Height of the back buffer. + + + + Initializes a new instance of the struct. + + Width of the back buffer. + Height of the back buffer. + The back buffer format. + The back buffer count. + Type of the multi sample. + The multi sample quality. + The swap effect. + The device window handle. + if set to true [windowed]. + if set to true [enable auto depth stencil]. + The auto depth stencil format. + The present flags. + The full screen refresh rate in Hz. + The presentation interval. + + + + Init this structure to defaults + + + + +

Describes the raster status.

+
+ + bb172596 + D3DRASTER_STATUS + D3DRASTER_STATUS +
+ + +

TRUE if the raster is in the vertical blank period. if the raster is not in the vertical blank period.

+
+ + bb172596 + BOOL InVBlank + BOOL InVBlank +
+ + +

If InVBlank is , then this value is an integer roughly corresponding to the current scan line painted by the raster. Scan lines are numbered in the same way as Direct3D surface coordinates: 0 is the top of the primary surface, extending to the value (height of the surface - 1) at the bottom of the display.

If InVBlank is TRUE, then this value is set to zero and can be ignored.

+
+ + bb172596 + unsigned int ScanLine + unsigned int ScanLine +
+ + +

Describes a rectangular high-order patch.

+
+ +

The following diagram identifies the parameters that specify a rectangle patch.

Each of the vertices in the vertex buffer is shown as a black dot. In this case, the vertex buffer has 20 vertices in it, 16 of which are in the rectangle patch. The stride is the number of vertices in the width of the vertex buffer, in this case five. The x offset to the first vertex is called the StartIndexVertexWidth and is in this case 1. The y offset to the first patch vertex is called the StartIndexVertexHeight and is in this case 0.

To render a stream of individual rectangular patches (non-mosaic), you should interpret your geometry as a long narrow (1 x N) rectangular patch. The structure for such a strip (cubic B?zier) would be set up in the following manner.

  RectInfo; RectInfo.Width = 4;	
+            RectInfo.Height = 4;	
+            RectInfo.Stride = 4;	
+            RectInfo.Basis = ;	
+            RectInfo.Order = D3DORDER_CUBIC;	
+            RectInfo.StartVertexOffsetWidth = 0;	
+            RectInfo.StartVertexOffsetHeight = 4*i;  // The variable i is the index of the 	
+            //   patch you want to render.	
+            
+
+ + bb172598 + D3DRECTPATCH_INFO + D3DRECTPATCH_INFO +
+ + +

Starting vertex offset width, in number of vertices.

+
+ + bb172598 + unsigned int StartVertexOffsetWidth + unsigned int StartVertexOffsetWidth +
+ + +

Starting vertex offset height, in number of vertices.

+
+ + bb172598 + unsigned int StartVertexOffsetHeight + unsigned int StartVertexOffsetHeight +
+ + +

Width of each vertex, in number of vertices.

+
+ + bb172598 + unsigned int Width + unsigned int Width +
+ + +

Height of each vertex, in number of vertices.

+
+ + bb172598 + unsigned int Height + unsigned int Height +
+ + +

Width of the imaginary two-dimensional vertex array, which occupies the same space as the vertex buffer. For an example, see the diagram below.

+
+ + bb172598 + unsigned int Stride + unsigned int Stride +
+ + +

Member of the enumerated type, defining the basis type for the rectangular high-order patch.

ValueOrder supportedWidth and height
Linear, cubic, and quinticWidth = height = (DWORD)order + 1
Linear, cubic, and quinticWidth = height > (DWORD)order
D3DBASIS_INTERPOLATECubicWidth = height > (DWORD)order

?

+
+ + bb172598 + D3DBASISTYPE Basis + D3DBASISTYPE Basis +
+ + +

Member of the enumerated type, defining the degree for the rectangular patch.

+
+ + bb172598 + D3DDEGREETYPE Degree + D3DDEGREETYPE Degree +
+ + +

Describes an off-screen render target used by an instance of .

+
+ +

This method is used to return the creation parameters used when creating an object.

+
+ + bb205425 + D3DXRTE_DESC + D3DXRTE_DESC +
+ + + No documentation. + + + bb205425 + unsigned int Size + unsigned int Size + + + + No documentation. + + + bb205425 + unsigned int MipLevels + unsigned int MipLevels + + + + No documentation. + + + bb205425 + D3DFORMAT Format + D3DFORMAT Format + + + + No documentation. + + + bb205425 + BOOL DepthStencil + BOOL DepthStencil + + + + No documentation. + + + bb205425 + D3DFORMAT DepthStencilFormat + D3DFORMAT DepthStencilFormat + + + +

Describes a render surface.

+
+ + bb205426 + D3DXRTS_DESC + D3DXRTS_DESC +
+ + +

Width of the render surface, in pixels.

+
+ + bb205426 + unsigned int Width + unsigned int Width +
+ + +

Height of the render surface, in pixels.

+
+ + bb205426 + unsigned int Height + unsigned int Height +
+ + +

Member of the enumerated type, describing the pixel format of the render surface.

+
+ + bb205426 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

If TRUE, the render surface supports a depth-stencil surface; otherwise this member is set to .

+
+ + bb205426 + BOOL DepthStencil + BOOL DepthStencil +
+ + +

If DepthStencil is set to TRUE, this parameter is a member of the enumerated type, describing the depth-stencil format of the render surface.

+
+ + bb205426 + D3DFORMAT DepthStencilFormat + D3DFORMAT DepthStencilFormat +
+ + + No documentation. + + + bb280347 + D3DDEVINFO_RESOURCEMANAGER + D3DDEVINFO_RESOURCEMANAGER + + + + No documentation. + + + bb280347 + D3DRESOURCESTATS stats[8] + D3DRESOURCESTATS stats + + + +

Resource statistics gathered by the D3DDEVINFO_ResourceManager when using the asynchronous query mechanism.

+
+ + bb172600 + D3DRESOURCESTATS + D3DRESOURCESTATS +
+ + + No documentation. + + + bb172600 + BOOL bThrashing + BOOL bThrashing + + + + No documentation. + + + bb172600 + unsigned int ApproxBytesDownloaded + unsigned int ApproxBytesDownloaded + + + + No documentation. + + + bb172600 + unsigned int NumEvicts + unsigned int NumEvicts + + + + No documentation. + + + bb172600 + unsigned int NumVidCreates + unsigned int NumVidCreates + + + + No documentation. + + + bb172600 + unsigned int LastPri + unsigned int LastPri + + + + No documentation. + + + bb172600 + unsigned int NumUsed + unsigned int NumUsed + + + + No documentation. + + + bb172600 + unsigned int NumUsedInVidMem + unsigned int NumUsedInVidMem + + + + No documentation. + + + bb172600 + unsigned int WorkingSet + unsigned int WorkingSet + + + + No documentation. + + + bb172600 + unsigned int WorkingSetBytes + unsigned int WorkingSetBytes + + + + No documentation. + + + bb172600 + unsigned int TotalManaged + unsigned int TotalManaged + + + + No documentation. + + + bb172600 + unsigned int TotalBytes + unsigned int TotalBytes + + + + No documentation. + + + bb280307 + D3DXKEY_QUATERNION + D3DXKEY_QUATERNION + + + + No documentation. + + + bb280307 + float Time + float Time + + + + No documentation. + + + bb280307 + D3DXQUATERNION Value + D3DXQUATERNION Value + + + +

Describes a vector key for use in key frame animation. It specifies a vector at a given time. This is used for scale and translation keys.

+
+ + bb172889 + D3DXKEY_VECTOR3 + D3DXKEY_VECTOR3 +
+ + +

Key frame time stamp.

+
+ + bb172889 + float Time + float Time +
+ + +

3D vector that supplies scale and/or translation values.

+
+ + bb172889 + D3DXVECTOR3 Value + D3DXVECTOR3 Value +
+ + + No documentation. + + + bb205439 + D3DXSHADER_CONSTANTINFO + D3DXSHADER_CONSTANTINFO + + + +

Offset from the beginning of this structure, in bytes, to the string that contains the constant information.

+
+ + bb205439 + unsigned int Name + unsigned int Name +
+ + +

Register set. See .

+
+ + bb205439 + unsigned short RegisterSet + unsigned short RegisterSet +
+ + +

The register index.

+
+ + bb205439 + unsigned short RegisterIndex + unsigned short RegisterIndex +
+ + +

Number of registers.

+
+ + bb205439 + unsigned short RegisterCount + unsigned short RegisterCount +
+ + +

Reserved.

+
+ + bb205439 + unsigned short Reserved + unsigned short Reserved +
+ + +

Offset from the beginning of this structure, in bytes, to the string that contains the D3DXSHADER_TYPEINFO information.

+
+ + bb205439 + unsigned int TypeInfo + unsigned int TypeInfo +
+ + +

Offset from the beginning of this structure, in bytes, to the string that contains the default value.

+
+ + bb205439 + unsigned int DefaultValue + unsigned int DefaultValue +
+ + +

Helper structure for managing a shader constant table. This can also be done using .

+
+ +

Shader constant information is included in a tab-delimited table of comments. All offsets are measured in bytes from the beginning of the structure. Entries in the constant table are sorted by Creator in ascending order.

A shader constant table can be managed with the interfaces. Alternatively, you can manage the constant table with .

This size member is often initialized using the following:

  constantTable;	
+            constantTable.Size = sizeof()	
+            
+
+ + bb205440 + D3DXSHADER_CONSTANTTABLE + D3DXSHADER_CONSTANTTABLE +
+ + + No documentation. + + + bb205440 + unsigned int Size + unsigned int Size + + + + No documentation. + + + bb205440 + unsigned int Creator + unsigned int Creator + + + + No documentation. + + + bb205440 + unsigned int Version + unsigned int Version + + + + No documentation. + + + bb205440 + unsigned int Constants + unsigned int Constants + + + + No documentation. + + + bb205440 + unsigned int ConstantInfo + unsigned int ConstantInfo + + + + No documentation. + + + bb205440 + unsigned int Flags + unsigned int Flags + + + + No documentation. + + + bb205440 + unsigned int Target + unsigned int Target + + + +

Semantics map a parameter to vertex or pixel shader registers. They can also be optional descriptive strings attached to non-register parameters.

+
+ +

Semantics are required for vertex and pixel shader, input and output registers.

+
+ + bb205437 + D3DXSEMANTIC + D3DXSEMANTIC +
+ + +

Options that identify how resources are used. See .

+
+ + bb205437 + D3DDECLUSAGE Usage + D3DDECLUSAGE Usage +
+ + +

Options that modify how the usage is interpreted. The usage and usage index make up a vertex declaration. See Vertex Declaration (Direct3D 9).

+
+ + bb205437 + unsigned int UsageIndex + unsigned int UsageIndex +
+ + +

Percent of time processing shader data.

+
+ +

For best performance, a balanced load is recommended.

+
+ + bb172543 + D3DDEVINFO_D3D9STAGETIMINGS + D3DDEVINFO_D3D9STAGETIMINGS +
+ + +

Percent of time in shader spent on memory accesses.

+
+ + bb172543 + float MemoryProcessingPercent + float MemoryProcessingPercent +
+ + +

Percent of time processing (moving data around in registers or doing mathematical operations).

+
+ + bb172543 + float ComputationProcessingPercent + float ComputationProcessingPercent +
+ + +

Describes a surface.

+
+ + bb172611 + D3DSURFACE_DESC + D3DSURFACE_DESC +
+ + +

Member of the enumerated type, describing the surface format.

+
+ + bb172611 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Member of the enumerated type, identifying this resource as a surface.

+
+ + bb172611 + D3DRESOURCETYPE Type + D3DRESOURCETYPE Type +
+ + +

Either the or values. For more information, see .

+
+ + bb172611 + D3DUSAGE Usage + D3DUSAGE Usage +
+ + +

Member of the enumerated type, specifying the class of memory allocated for this surface.

+
+ + bb172611 + D3DPOOL Pool + D3DPOOL Pool +
+ + +

Member of the enumerated type, specifying the levels of full-scene multisampling supported by the surface.

+
+ + bb172611 + D3DMULTISAMPLE_TYPE MultiSampleType + D3DMULTISAMPLE_TYPE MultiSampleType +
+ + +

Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by CheckDeviceMultiSampleType. Passing a larger value returns the error, . The MultisampleQuality values of paired render targets, depth stencil surfaces and the MultiSample type must all match.

+
+ + bb172611 + unsigned int MultiSampleQuality + unsigned int MultiSampleQuality +
+ + +

Width of the surface, in pixels.

+
+ + bb172611 + unsigned int Width + unsigned int Width +
+ + +

Height of the surface, in pixels.

+
+ + bb172611 + unsigned int Height + unsigned int Height +
+ + +

Describes a technique used by an effect.

+
+ +

Some video cards can render two textures in a single pass. However, if a card does not have this capability, it is often possible to render the same effect in two passes, using one texture for each pass.

+
+ + bb205468 + D3DXTECHNIQUE_DESC + D3DXTECHNIQUE_DESC +
+ + +

String that contains the technique name.

+
+ + bb205468 + const char* Name + char Name +
+ + +

Number of rendering passes the technique requires. See Remarks.

+
+ + bb205468 + unsigned int Passes + unsigned int Passes +
+ + +

The number of annotations. See Add Information to Effect Parameters with_Annotations.

+
+ + bb205468 + unsigned int Annotations + unsigned int Annotations +
+ + +

Describes an animation track and specifies blending weight, speed, and position for the track at a given time.

+
+ +

Tracks with the same priority are blended together, and the two resulting values are then blended using the priority blend factor. A track must have an animation set (stored separately) associated with it.

+
+ + bb205474 + D3DXTRACK_DESC + D3DXTRACK_DESC +
+ + +

Priority type, as defined in .

+
+ + bb205474 + D3DXPRIORITY_TYPE Priority + D3DXPRIORITY_TYPE Priority +
+ + +

Weight value. The weight determines the proportion of this track to blend with other tracks.

+
+ + bb205474 + float Weight + float Weight +
+ + +

Speed value. This is used similarly to a multiplier to scale the period of the track.

+
+ + bb205474 + float Speed + float Speed +
+ + +

Time position of the track, in the local timeframe of its current animation set.

+
+ + bb205474 + double Position + double Position +
+ + +

Track enable/disable. To enable, set to TRUE. To disable, set to .

+
+ + bb205474 + BOOL Enable + BOOL Enable +
+ + +

Describes a triangular high-order patch.

+
+ +

For example, the following diagram identifies the vertex order and segment numbers for a cubic B?zier triangle patch. The vertex order determines the segment numbers used by DrawTriPatch. The offset is the number of bytes to the first triangle patch vertex in the vertex buffer.

+
+ + bb172620 + D3DTRIPATCH_INFO + D3DTRIPATCH_INFO +
+ + +

Starting vertex offset, in number of vertices.

+
+ + bb172620 + unsigned int StartVertexOffset + unsigned int StartVertexOffset +
+ + +

Number of vertices.

+
+ + bb172620 + unsigned int NumVertices + unsigned int NumVertices +
+ + +

Member of the enumerated type, which defines the basis type for the triangular high-order patch. The only valid value for this member is .

+
+ + bb172620 + D3DBASISTYPE Basis + D3DBASISTYPE Basis +
+ + +

Member of the enumerated type, defining the degree type for the triangular high-order patch.

ValueNumber of vertices
10
3
N/A
21

?

N/A - Not available. Not supported.

+
+ + bb172620 + D3DDEGREETYPE Degree + D3DDEGREETYPE Degree +
+ + +

DirectX 8.1 and later versions only.

The structure describes vertex-cache information of a device.

+
+ +

DirectX 8.1 versions only. The Direct3D runtime calls a driver's D3dGetDriverState function to obtain vertex-cache information from the driver. In this D3dGetDriverState call, the runtime specifies the D3DDEVINFOID_VCACHE flag in the dwFlags member of the DD_GETDRIVERSTATEDATA structure that the runtime passes. The driver specifies vertex-cache information in a structure and returns it at the lpdwStates member of DD_GETDRIVERSTATEDATA.

DirectX 9.0 and later versions only. The Direct3D runtime specifies D3DDP2OP_CREATEQUERY and D3DDP2OP_ISSUEQUERY commands in calls to the driver's D3dDrawPrimitives2 callback to create driver-side resources for the query and then to asynchronously query the driver for vertex-cache information. In the call with the D3DDP2OP_CREATEQUERY command, the runtime specifies the query type in the QueryType member of the D3DHAL_DP2CREATEQUERY structure.

When the driver completes a vertex-cache query, the driver sets the total size of the response buffer in the dwErrorOffset member of the D3DHAL_DRAWPRIMITIVES2DATA structure and sets the ddrval member of D3DHAL_DRAWPRIMITIVES2DATA to for successful completion. The driver also overwrites the incoming command buffer with the outgoing response buffer. This response buffer contains a D3DHAL_DP2RESPONSEQUERY structure that identifies a response for the vertex-cache query. This D3DHAL_DP2RESPONSEQUERY is followed by the vertex-cache data in the structure.

+
+ + ff544702 + D3DDEVINFO_VCACHE + D3DDEVINFO_VCACHE +
+ + +

Specifies the bit pattern. The driver must specify the bit pattern as the CACH four-character code (FOURCC) value. The driver can use the MAKEFOURCC macro as follows to specify the FOURCC value as CACH:

MAKEFOURCC('C', 'A', 'C', 'H');
+
+ + ff544702 + unsigned int Pattern + unsigned int Pattern +
+ + +

Specifies the method of mesh optimization. The driver can use one of the following values to specify the mesh optimization that it uses:

ValueMeaning

(0)

Longest strips optimization

D3DXMESHOPT_VCACHE (1)

Vertex-cache based optimization

?

+
+ + ff544702 + unsigned int OptMethod + unsigned int OptMethod +
+ + +

Specifies the effective size, in entries, for which the driver optimizes the vertex cache. The actual cache size is not required to be the size specified in CacheSize because in most cases the actual cache size turns out to be larger. The driver only specifies an optimized size in CacheSize if it also specifies D3DXMESHOPT_VCACHE in the OptMethod member.

+
+ + ff544702 + unsigned int CacheSize + unsigned int CacheSize +
+ + +

Specifies the number that should be used as part of a trial-and-error procedure when determining when to restart the strips list. This number can be set from 1 to the value in the CacheSize member. Typically, the best values are near CacheSize/2.

+
+ + ff544702 + unsigned int MagicNumber + unsigned int MagicNumber +
+ + +

Describes a vertex buffer.

+
+ + bb172629 + D3DVERTEXBUFFER_DESC + D3DVERTEXBUFFER_DESC +
+ + +

Member of the enumerated type, describing the surface format of the vertex buffer data.

+
+ + bb172629 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Member of the enumerated type, identifying this resource as a vertex buffer.

+
+ + bb172629 + D3DRESOURCETYPE Type + D3DRESOURCETYPE Type +
+ + +

Combination of one or more flags.

+
+ + bb172629 + D3DUSAGE Usage + D3DUSAGE Usage +
+ + +

Member of the enumerated type, specifying the class of memory allocated for this vertex buffer.

+
+ + bb172629 + D3DPOOL Pool + D3DPOOL Pool +
+ + +

Size of the vertex buffer, in bytes.

+
+ + bb172629 + unsigned int Size + unsigned int Size +
+ + +

Combination of that describes the vertex format of the vertices in this buffer.

+
+ + bb172629 + D3DFVF FVF + D3DFVF FVF +
+ + +

Defines the vertex data layout. Each vertex can contain one or more data types, and each data type is described by a vertex element.

+
+ +

Vertex data is defined using an array of structures. Use D3DDECL_END to declare the last element in the declaration.

+
+ + bb172630 + D3DVERTEXELEMENT9 + D3DVERTEXELEMENT9 +
+ + +

Stream number.

+
+ + bb172630 + unsigned short Stream + unsigned short Stream +
+ + +

Offset from the beginning of the vertex data to the data associated with the particular data type.

+
+ + bb172630 + unsigned short Offset + unsigned short Offset +
+ + +

The data type, specified as a . One of several predefined types that define the data size. Some methods have an implied type.

+
+ + bb172630 + D3DDECLTYPE Type + D3DDECLTYPE Type +
+ + +

The method specifies the tessellator processing, which determines how the tessellator interprets (or operates on) the vertex data. For more information, see .

+
+ + bb172630 + D3DDECLMETHOD Method + D3DDECLMETHOD Method +
+ + +

Defines what the data will be used for; that is, the interoperability between vertex data layouts and vertex shaders. Each usage acts to bind a vertex declaration to a vertex shader. In some cases, they have a special interpretation. For example, an element that specifies or is used by the N-patch tessellator to set up tessellation. See for a list of the available semantics. can be used for user-defined fields (which don't have an existing usage defined).

+
+ + bb172630 + D3DDECLUSAGE Usage + D3DDECLUSAGE Usage +
+ + +

Modifies the usage data to allow the user to specify multiple usage types.

+
+ + bb172630 + unsigned char UsageIndex + unsigned char UsageIndex +
+ + + Used for closing a VertexElement declaration. + + + + + Initializes the struct. + + + + + Initializes a new instance of the struct. + + The stream. + The offset. + The type. + The method. + The usage. + Index of the usage. + + + +

Vertex shader caps.

+
+ + bb172635 + D3DVSHADERCAPS2_0 + D3DVSHADERCAPS2_0 +
+ + +

Instruction predication is supported if this value is nonzero. See setp_comp - vs.

+
+ + bb172635 + D3DVS20CAPS Caps + D3DVS20CAPS Caps +
+ + +

Either 0 or 24, which represents the depth of the dynamic flow control instruction nesting. See .

+
+ + bb172635 + int DynamicFlowControlDepth + int DynamicFlowControlDepth +
+ + +

The number of temporary registers supported. See .

+
+ + bb172635 + int NumTemps + int NumTemps +
+ + +

The depth of nesting of the loop - vs/rep - vs and call - vs/callnz bool - vs instructions. See .

+
+ + bb172635 + int StaticFlowControlDepth + int StaticFlowControlDepth +
+ + +

Reports the number of triangles that have been processed and clipped by the runtime's software vertex processing.

+
+ +

Use the debug runtime and software vertex processing to get the number of non-clipped and clipped primitives for a particular scene. Primitives will typically be clipped based on a guard band (if one is present). The clipping guard band is set with parameters such as GuardBandLeft in .

+
+ + bb172544 + D3DDEVINFO_D3DVERTEXSTATS + D3DDEVINFO_D3DVERTEXSTATS +
+ + +

Total number of triangles that are not clipped in this frame.

+
+ + bb172544 + unsigned int NumRenderedTriangles + unsigned int NumRenderedTriangles +
+ + +

Number of new triangles generated by clipping.

+
+ + bb172544 + unsigned int NumExtraClippingTriangles + unsigned int NumExtraClippingTriangles +
+ + +

Describes a volume.

+
+ + bb172633 + D3DVOLUME_DESC + D3DVOLUME_DESC +
+ + +

Member of the enumerated type, describing the surface format of the volume.

+
+ + bb172633 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Member of the enumerated type, identifying this resource as a volume.

+
+ + bb172633 + D3DRESOURCETYPE Type + D3DRESOURCETYPE Type +
+ + +

Currently not used. Always returned as 0.

+
+ + bb172633 + D3DUSAGE Usage + D3DUSAGE Usage +
+ + +

Member of the enumerated type, specifying the class of memory allocated for this volume.

+
+ + bb172633 + D3DPOOL Pool + D3DPOOL Pool +
+ + +

Width of the volume, in pixels.

+
+ + bb172633 + unsigned int Width + unsigned int Width +
+ + +

Height of the volume, in pixels.

+
+ + bb172633 + unsigned int Height + unsigned int Height +
+ + +

Depth of the volume, in pixels.

+
+ + bb172633 + unsigned int Depth + unsigned int Depth +
+ + +

Specifies tolerance values for each vertex component when comparing vertices to determine if they are similar enough to be welded together.

+
+ +

The LPD3DXWELDEPSILONS type is defined as a reference to the structure.

 typedef  *LPD3DXWELDEPSILONS;	
+            
+
+ + bb205560 + D3DXWELDEPSILONS + D3DXWELDEPSILONS +
+ + +

Position

+
+ + bb205560 + float Position + float Position +
+ + +

Blend weight

+
+ + bb205560 + float BlendWeights + float BlendWeights +
+ + +

Normal

+
+ + bb205560 + float Normal + float Normal +
+ + +

Point size value

+
+ + bb205560 + float PSize + float PSize +
+ + +

Specular lighting value

+
+ + bb205560 + float Specular + float Specular +
+ + +

Diffuse lighting value

+
+ + bb205560 + float Diffuse + float Diffuse +
+ + +

Tangent

+
+ + bb205560 + float Tangent + float Tangent +
+ + +

Binormal

+
+ + bb205560 + float Binormal + float Binormal +
+ + +

Tessellation factor

+
+ + bb205560 + float TessFactor + float TessFactor +
+ + +

Eight texture coordinates

+
+ + bb205560 + float Texcoord[8] + float Texcoord +
+ + +

Identifies compressed key frame animation data.

+
+ + bb174824 + XFILECOMPRESSEDANIMATIONSET + XFILECOMPRESSEDANIMATIONSET +
+ + +

Total size, in bytes, of the compressed data in the compressed key frame animation data buffer.

+
+ + bb174824 + unsigned int CompressedBlockSize + unsigned int CompressedBlockSize +
+ + +

Number of animation key frame ticks that occur per second.

+
+ + bb174824 + float TicksPerSec + float TicksPerSec +
+ + +

Type of the animation set playback loop. See .

+
+ + bb174824 + unsigned int PlaybackType + unsigned int PlaybackType +
+ + +

Minimum buffer size, in bytes, required to hold compressed key frame animation data. Value is equal to ( ( CompressedBlockSize + 3 ) / 4 ).

+
+ + bb174824 + unsigned int BufferLength + unsigned int BufferLength +
+ + + Shadow callback for . + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + Internal Include Callback + + + + + A user-implemented method for opening and reading the contents of a shader #include file. + + This pointer + A -typed value that indicates the location of the #include file. + Name of the #include file. + Pointer to the container that includes the #include file. + Pointer to the buffer that Open returns that contains the include directives. This pointer remains valid until is called. + Pointer to the number of bytes that Open returns in ppData. + The user-implemented method should return S_OK. If Open fails when reading the #include file, the application programming interface (API) that caused Open to be called fails. This failure can occur in one of the following situations:The high-level shader language (HLSL) shader fails one of the D3D10CompileShader*** functions.The effect fails one of the D3D10CreateEffect*** functions. + HRESULT Open([None] D3D_INCLUDE_TYPE IncludeType,[None] const char* pFileName,[None] LPCVOID pParentData,[None] LPCVOID* ppData,[None] UINT* pBytes) + + + + A user-implemented method for closing a shader #include file. + + + If was successful, Close is guaranteed to be called before the API using the interface returns. + + This pointer + Pointer to the buffer that contains the include directives. This is the pointer that was returned by the corresponding call. + The user-implemented Close method should return S_OK. If Close fails when it closes the #include file, the application programming interface (API) that caused Close to be called fails. This failure can occur in one of the following situations:The high-level shader language (HLSL) shader fails one of the D3D10CompileShader*** functions.The effect fails one of the D3D10CreateEffect*** functions. + HRESULT Close([None] LPCVOID pData) + + + + Internal class used to initialize this assembly. + + + + + Initializes this assembly. + + + This method is called when the assembly is loaded. + + + + + The namespace provides a managed Direct3D9 API. + + bb219837 + Direct3D9 + Direct3D9 + + + The PaletteEntry struct contains the color and usage of an entry in a logical palette. + PALETTEENTRY + + + + The red intensity value for the palette entry. + + + + + The green intensity value for the palette entry. + + + + + The blue intensity value for the palette entry. + + + + + Indicates how the palette entry is to be used. + TODO define an enum for flags + + + + + Represents the compiled bytecode of a shader or effect. + + Blob + + + + Initializes a new instance of the class. + + A containing the compiled bytecode. + + + + Initializes a new instance of the class. + + A containing the compiled bytecode. + + + + Initializes a new instance of the class. + + The buffer. + + + + Initializes a new instance of the class. + + a pointer to a compiler bytecode + size of the bytecode + + + + Initializes a new instance of the class. + + The BLOB. + + + + Gets the size of the shader from a function pointer. + + The shader function pointer. + Size of the shader + + + + Assembles a shader from the given source data. + + The source shader data. + Compilation options. + A object representing the raw shader stream. + HRESULT D3DXAssembleShader([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + + + + Assembles a shader from the given source data. + + The source shader data. + Compilation options. + A object representing the raw shader stream. + HRESULT D3DXAssembleShader([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + + + + Assembles a shader from the given source data. + + The source shader data. + Macro definitions. + An interface to use for handling #include directives. + Compilation options. + A object representing the raw shader stream. + HRESULT D3DXAssembleShader([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + + + + Assembles a shader from the given source data. + + The source shader data. + Macro definitions. + An interface to use for handling #include directives. + Compilation options. + A object representing the raw shader stream. + HRESULT D3DXAssembleShader([In] const void* pSrcData,[In] unsigned int SrcDataLen,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs) + + + + Assembles a shader from file. + + Name of the shader file. + Compilation options. + A object representing the raw shader stream. + + + + Assembles a shader from file. + + Name of the shader file. + Macro definitions. + An interface to use for handling #include directives. + Compilation options. + + A object representing the raw shader stream. + + + + + Compiles the provided shader or effect source. + + A string containing the source of the shader or effect to compile. + The shader target or set of shader features to compile against. + Shader compilation options. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + An array of bytes containing the raw source of the shader or effect to compile. + The shader target or set of shader features to compile against. + Shader compilation options. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + A string containing the source of the shader or effect to compile. + The name of the shader entry-point function, or null for an effect file. + The shader target or set of shader features to compile against. + Shader compilation options. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + An array of bytes containing the raw source of the shader or effect to compile. + The name of the shader entry-point function, or null for an effect file. + The shader target or set of shader features to compile against. + Shader compilation options. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + A string containing the source of the shader or effect to compile. + The shader target or set of shader features to compile against. + Shader compilation options. + A set of macros to define during compilation. + An interface for handling include files. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + An array of bytes containing the raw source of the shader or effect to compile. + The shader target or set of shader features to compile against. + Shader compilation options. + A set of macros to define during compilation. + An interface for handling include files. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + A string containing the source of the shader or effect to compile. + The name of the shader entry-point function, or null for an effect file. + The shader target or set of shader features to compile against. + Shader compilation options. + A set of macros to define during compilation. + An interface for handling include files. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles a shader or effect from a file on disk. + + The name of the source file to compile. + The shader target or set of shader features to compile against. + Shader compilation options. + A set of macros to define during compilation. + An interface for handling include files. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles a shader or effect from a file on disk. + + The name of the source file to compile. + The name of the shader entry-point function, or null for an effect file. + The shader target or set of shader features to compile against. + Shader compilation options. + A set of macros to define during compilation. + An interface for handling include files. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Compiles the provided shader or effect source. + + An array of bytes containing the raw source of the shader or effect to compile. + The name of the shader entry-point function, or null for an effect file. + The shader target or set of shader features to compile against. + Shader compilation options. + A set of macros to define during compilation. + An interface for handling include files. + + The compiled shader bytecode, or null if the method fails. + + HRESULT D3DXCompileShader([In] const char* pSrcData,[In] unsigned int SrcDataLen,[In] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] const char* pFunctionName,[In] const char* pProfile,[In] unsigned int Flags,[In] ID3DXBuffer** ppShader,[In] ID3DXBuffer** ppErrorMsgs,[In] ID3DXConstantTable** ppConstantTable) + + + + Disassembles compiled HLSL code back into textual source. + + The textual source of the shader or effect. + HRESULT D3DXDisassembleShader([In] const void* pShader,[In] BOOL EnableColorCode,[In] const char* pComments,[In] ID3DXBuffer** ppDisassembly) + + + + Disassembles compiled HLSL code back into textual source. + + if set to true [enable color code]. + + The textual source of the shader or effect. + + HRESULT D3DXDisassembleShader([In] const void* pShader,[In] BOOL EnableColorCode,[In] const char* pComments,[In] ID3DXBuffer** ppDisassembly) + + + + Disassembles compiled HLSL code back into textual source. + + if set to true [enable color code]. + Commenting information to embed in the disassembly. + + The textual source of the shader or effect. + + HRESULT D3DXDisassembleShader([In] const void* pShader,[In] BOOL EnableColorCode,[In] const char* pComments,[In] ID3DXBuffer** ppDisassembly) + + + + Searches through the shader for the specified comment. + + A FOURCC code used to identify the comment. + The comment data. + HRESULT D3DXFindShaderComment([In] const void* pFunction,[In] unsigned int FourCC,[Out] const void** ppData,[Out] unsigned int* pSizeInBytes) + + + + Gets the set of semantics for shader inputs. + + The set of semantics for shader inputs. + HRESULT D3DXGetShaderInputSemantics([In] const void* pFunction,[In, Out, Buffer] D3DXSEMANTIC* pSemantics,[InOut] unsigned int* pCount) + + + + Gets the set of semantics for shader outputs. + + The set of semantics for shader outputs. + HRESULT D3DXGetShaderOutputSemantics([In] const void* pFunction,[In, Out, Buffer] D3DXSEMANTIC* pSemantics,[InOut] unsigned int* pCount) + + + + Gets the sampler names references in the shader. + + The set of referenced sampler names. + HRESULT D3DXGetShaderSamplers([In] const void* pFunction,[In] const char** pSamplers,[In] unsigned int* pCount) + + + + Extracts the major version component of a shader version number. + + The shader version number. + The major version component. + + + + Extracts the minor version component of a shader version number. + + The shader version number. + The minor version component. + + + + Converts a shader version number into a managed object. + + The shader version number. + The parsed shader version information. + + + + Loads from the specified stream. + + The stream. + A shader bytecode + + + + Saves to the specified file name. + + Name of the file. + + + + Saves this bytecode to the specified stream. + + The stream. + + + + Create a ShaderBytecode from a pointer. + + The pointer. + + + + + Preprocesses the provided shader or effect source. + + A string containing the source of the shader or effect to preprocess. + A set of macros to define during preprocessing. + An interface for handling include files. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses the provided shader or effect source. + + An array of bytes containing the raw source of the shader or effect to preprocess. + A set of macros to define during preprocessing. + An interface for handling include files. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses the provided shader or effect source. + + An array of bytes containing the raw source of the shader or effect to preprocess. + A set of macros to define during preprocessing. + An interface for handling include files. + When the method completes, contains a string of compilation errors, or an empty string if preprocessing succeeded. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses the provided shader or effect source. + + The shader source PTR. + Length of the shader source. + A set of macros to define during preprocessing. + An interface for handling include files. + When the method completes, contains a string of compilation errors, or an empty string if preprocessing succeeded. + + The preprocessed shader source. + + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses the provided shader or effect source. + + A string containing the source of the shader or effect to preprocess. + A set of macros to define during preprocessing. + An interface for handling include files. + When the method completes, contains a string of compilation errors, or an empty string if preprocessing succeeded. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses a shader or effect from a file on disk. + + The name of the source file to compile. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses a shader or effect from a file on disk. + + The name of the source file to compile. + A set of macros to define during preprocessing. + An interface for handling include files. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Preprocesses a shader or effect from a file on disk. + + The name of the source file to compile. + A set of macros to define during preprocessing. + An interface for handling include files. + When the method completes, contains a string of compilation errors, or an empty string if preprocessing succeeded. + The preprocessed shader source. + HRESULT D3DXPreprocessShader([In] const void* pSrcData,[In] unsigned int SrcDataSize,[In, Buffer] const D3DXMACRO* pDefines,[In] ID3DXInclude* pInclude,[In] ID3DXBuffer** ppShaderText,[In] ID3DXBuffer** ppErrorMsgs) + + + + Read a compiled shader bytecode from a Stream and return a ShaderBytecode + + + + + + + Read a compiled shader bytecode from a Stream and return a ShaderBytecode + + + + + + + Gets the buffer pointer. + + + + + Gets or sets the size of the buffer. + + + The size of the buffer. + + + + + Gets the shader constant table. + + HRESULT D3DXGetShaderConstantTable([In] const void* pFunction,[In] ID3DXConstantTable** ppConstantTable) + + + + Gets the version of the shader. + + unsigned int D3DXGetShaderVersion([In] const void* pFunction) + + + + Gets the raw data of the compiled bytecode. + + + + + Width of the texture. + + + + + Height of the texture. + + + + + Format of the texture. + + + + + Mip level count of the texture. + + + + + Helper methods to create special . + + + + + Calculates a specific TEXCOORDSIZEN . + + The size of the texcoord. The value must be in the range [1,4] (Number of floating point values) + Index of the coord. + The + If size is not in the range [1,4] + + + + + + Contains requested texture creation parameters for volume textures. + + None + + + + The requested width of the texture, in pixels. + + + + + The requested height of the texture, in pixels. + + + + + The requested depth of the texture, in pixels. + + + + + The requested surface format. + + + + + The requested mip level count. + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.MediaFoundation.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.MediaFoundation.dll new file mode 100644 index 0000000..69b78ab Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.MediaFoundation.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.MediaFoundation.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.MediaFoundation.xml new file mode 100644 index 0000000..4c79bd5 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.MediaFoundation.xml @@ -0,0 +1,42011 @@ + + + + SharpDX.MediaFoundation + + + + + The assembly provides managed MediaFoundation API. + + + MediaFoundation + MediaFoundation + + + + A default implementation of AsyncCallbackBase. + + + + +

Callback interface to notify the application when an asynchronous method completes.

+
+ +

For more information about asynchronous methods in Microsoft Media Foundation, see Asynchronous Callback Methods.

This interface is also used to perform a work item in a Media Foundation work-queue. For more information, see Work Queues.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms699856 + IMFAsyncCallback + IMFAsyncCallback +
+ + +

Applies to: desktop apps | Metro style apps

Called when an asynchronous operation is completed.

+
+

Pointer to the interface. Pass this reference to the asynchronous End... method to complete the asynchronous call.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Within your implementation of Invoke, call the corresponding End... method.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970360 + HRESULT IMFAsyncCallback::Invoke([In, Optional] IMFAsyncResult* pAsyncResult) + IMFAsyncCallback::Invoke +
+ + + Gets a flag indicating the behavior of the callback object's method. Default behavior should be . + + The a flag indicating the behavior of the callback object's method. + bb970381 + HRESULT IMFAsyncCallback::GetParameters([Out] MFASYNC_CALLBACK_FLAGS* pdwFlags,[Out] unsigned int* pdwQueue) + IMFAsyncCallback::GetParameters + + + + Gets the identifier of the work queue on which the callback is dispatched. See remarks. + + The work queue identifier. + +

This value can specify one of the standard Media Foundation work queues, or a work queue created by the application. For list of standard Media Foundation work queues, see Work Queue Identifiers. To create a new work queue, call . The default value is .

If the work queue is not compatible with the value returned in pdwFlags, the Media Foundation platform returns when it tries to dispatch the callback. (See .)

+
+ bb970381 + HRESULT IMFAsyncCallback::GetParameters([Out] MFASYNC_CALLBACK_FLAGS* pdwFlags,[Out] unsigned int* pdwQueue) + IMFAsyncCallback::GetParameters +
+ + + Decoder from compressed audio (mp3, wma...etc.) to PCM. + + + This class was developed following the "Tutorial: Decoding Audio" + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The stream to read the compressed audio. + + + + Gets or sets the source stream. See remarks. + + The source. + + The source must be set before calling + + + + + Gets the decoded PCM samples. See remarks. + + An enumerator of pointer to PCM decoded data with the same format as returned by . + + This method is only working as a single enumerator at a time. + + + The must be set before calling + + + + + Gets the decoded PCM samples. See remarks. + + The starting position in seconds. + An enumerator of pointer to PCM decoded data with the same format as returned by . + + This method is only working as a single enumerator at a time. + The must be set before calling + + + + + Gets the total duration in seconds. + + The duration. + + + + Gets the PCM wave format output by this decoder. + + The wave format. + + + + ByteStream class used + + +

Represents a byte stream from some data source, which might be a local file, a network file, or some other source. The interface supports the typical stream operations, such as reading, writing, and seeking.

+
+ +

The following functions return references for local files:

A byte stream for a media souce can be opened with read access. A byte stream for an archive media sink should be opened with both read and write access. (Read access may be required, because the archive sink might need to read portions of the file as it writes.)

Some implementations of this interface also expose one or more of the following interfaces:

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698720 + IMFByteStream + IMFByteStream +
+ + +

Represents a byte stream from some data source, which might be a local file, a network file, or some other source. The interface supports the typical stream operations, such as reading, writing, and seeking.

+
+ +

The following functions return references for local files:

A byte stream for a media souce can be opened with read access. A byte stream for an archive media sink should be opened with both read and write access. (Read access may be required, because the archive sink might need to read portions of the file as it writes.)

Some implementations of this interface also expose one or more of the following interfaces:

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698720 + IMFByteStream + IMFByteStream +
+ + +

Applies to: desktop apps | Metro style apps

Reads data from the stream.

+
+

Pointer to a buffer that receives the data. The caller must allocate the buffer.

+ Offset to begin reading from +

Size of the buffer in bytes.

+ The number of bytes that are copied into the buffer + +

This method reads at most cb bytes from the current position in the stream and copies them into the buffer provided by the caller. The number of bytes that were read is returned in the pcbRead parameter. The method does not return an error code on reaching the end of the file, so the application should check the value in pcbRead after the method returns.

This method is synchronous. It blocks until the read operation completes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms698913 + HRESULT IMFByteStream::Read([Out, Buffer] unsigned char* pb,[In] unsigned int cb,[Out] unsigned int* pcbRead) + IMFByteStream::Read +
+ + +

Applies to: desktop apps | Metro style apps

Begins an asynchronous read operation from the stream.

+
+

Pointer to a buffer that receives the data. The caller must allocate the buffer.

+ Offset within the buffer to begin reading at. +

Size of the buffer in bytes.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When all of the data has been read into the buffer, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

Do not read from, write to, free, or reallocate the buffer while an asynchronous read is pending.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms704810 + HRESULT IMFByteStream::BeginRead([Out, Buffer] unsigned char* pb,[In] unsigned int cb,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFByteStream::BeginRead +
+ + +

Applies to: desktop apps | Metro style apps

Completes an asynchronous read operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+ The number of bytes that were read + +

Call this method after the method completes asynchronously.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms704042 + HRESULT IMFByteStream::EndRead([In] IMFAsyncResult* pResult,[Out] unsigned int* pcbRead) + IMFByteStream::EndRead +
+ + +

Applies to: desktop apps | Metro style apps

Writes data to the stream.

+
+

Pointer to a buffer that contains the data to write.

+ The offset within the buffer to begin writing to. +

Size of the buffer in bytes.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method writes the contents of the pb buffer to the stream, starting at the current stream position. The number of bytes that were written is returned in the pcbWritten parameter.

This method is synchronous. It blocks until the write operation completes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms703843 + HRESULT IMFByteStream::Write([In, Buffer] const unsigned char* pb,[In] unsigned int cb,[Out] unsigned int* pcbWritten) + IMFByteStream::Write +
+ + +

Applies to: desktop apps | Metro style apps

Begins an asynchronous write operation to the stream.

+
+

Pointer to a buffer containing the data to write.

+ The offset within the buffer to begin writing at. +

Size of the buffer in bytes.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When all of the data has been written to the stream, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

Do not reallocate, free, or write to the buffer while an asynchronous write is still pending.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms694005 + HRESULT IMFByteStream::BeginWrite([In, Buffer] const unsigned char* pb,[In] unsigned int cb,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFByteStream::BeginWrite +
+ + +

Applies to: desktop apps | Metro style apps

Completes an asynchronous write operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+ The number of bytes that were written + +

Call this method when the method completes asynchronously.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms703863 + HRESULT IMFByteStream::EndWrite([In] IMFAsyncResult* pResult,[Out] unsigned int* pcbWritten) + IMFByteStream::EndWrite +
+ + +

Applies to: desktop apps | Metro style apps

Moves the current position in the stream by a specified offset.

+
+

Specifies the origin of the seek as a member of the enumeration. The offset is calculated relative to this position.

+

Specifies the new position, as a byte offset from the seek origin.

+

Specifies zero or more flags. The following flags are defined.

ValueMeaning
MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO

All pending I/O requests are canceled after the seek request completes successfully.

?

+ The new position after the seek + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms697053 + HRESULT IMFByteStream::Seek([In] MFBYTESTREAM_SEEK_ORIGIN SeekOrigin,[In] longlong llSeekOffset,[In] unsigned int dwSeekFlags,[Out] unsigned longlong* pqwCurrentPosition) + IMFByteStream::Seek +
+ + +

Applies to: desktop apps | Metro style apps

Clears any internal buffers used by the stream. If you are writing to the stream, the buffered data is written to the underlying file or device.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the byte stream is read-only, this method has no effect.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms694833 + HRESULT IMFByteStream::Flush() + IMFByteStream::Flush +
+ + +

Applies to: desktop apps | Metro style apps

Closes the stream and releases any resources associated with the stream, such as sockets or file handles. This method also cancels any pending asynchronous I/O requests.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms703909 + HRESULT IMFByteStream::Close() + IMFByteStream::Close +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the characteristics of the byte stream.

+
+ The capabilities of the stream. + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms698962 + HRESULT IMFByteStream::GetCapabilities([Out] unsigned int* pdwCapabilities) + IMFByteStream::GetCapabilities +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the length of the stream.

+
+ The length of the stream, in bytes. If the length is unknown, this value is -1. + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms698941 + HRESULT IMFByteStream::GetLength([Out] unsigned longlong* pqwLength) + IMFByteStream::GetLength +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the current read or write position in the stream.

+
+ The current position, in bytes. + +

The methods that update the current position are Read, BeginRead, Write, BeginWrite, SetCurrentPosition, and Seek.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms704059 + HRESULT IMFByteStream::GetCurrentPosition([Out] unsigned longlong* pqwPosition) + IMFByteStream::GetCurrentPosition +
+ + +

Applies to: desktop apps | Metro style apps

Queries whether the current position has reached the end of the stream.

+
+ true if the end of the stream has been reached + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms697369 + HRESULT IMFByteStream::IsEndOfStream([Out] BOOL* pfEndOfStream) + IMFByteStream::IsEndOfStream +
+ + + Instantiates a new instance from a . + + hh162754 + HRESULT MFCreateMFByteStreamOnStreamEx([In] IUnknown* punkStream,[Out] IMFByteStream** ppByteStream) + MFCreateMFByteStreamOnStreamEx + + + + Instantiates a new instance from a . + + hh162754 + HRESULT MFCreateMFByteStreamOnStreamEx([In] IUnknown* punkStream,[Out] IMFByteStream** ppByteStream) + MFCreateMFByteStreamOnStreamEx + + + + Instantiates a new instance from a . + + hh162754 + HRESULT MFCreateMFByteStreamOnStreamEx([In] IUnknown* punkStream,[Out] IMFByteStream** ppByteStream) + MFCreateMFByteStreamOnStreamEx + + + +

Applies to: desktop apps | Metro style apps

Reads data from the stream.

+
+

Pointer to a buffer that receives the data. The caller must allocate the buffer.

+ Offset into the buffer. +

Size of the buffer in bytes.

+ The number of bytes that are copied into the buffer + +

This method reads at most cb bytes from the current position in the stream and copies them into the buffer provided by the caller. The number of bytes that were read is returned in the pcbRead parameter. The method does not return an error code on reaching the end of the file, so the application should check the value in pcbRead after the method returns.

This method is synchronous. It blocks until the read operation completes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms698913 + HRESULT IMFByteStream::Read([Out, Buffer] unsigned char* pb,[In] unsigned int cb,[Out] unsigned int* pcbRead) + IMFByteStream::Read +
+ + +

Applies to: desktop apps | Metro style apps

Begins an asynchronous read operation from the stream.

+
+

Pointer to a buffer that receives the data. The caller must allocate the buffer.

+ The offset in the buffer to begin reading from. +

Size of the buffer in bytes.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When all of the data has been read into the buffer, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

Do not read from, write to, free, or reallocate the buffer while an asynchronous read is pending.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms704810 + HRESULT IMFByteStream::BeginRead([Out, Buffer] unsigned char* pb,[In] unsigned int cb,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFByteStream::BeginRead +
+ + +

Applies to: desktop apps | Metro style apps

Completes an asynchronous read operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+ The number of bytes that were read + +

Call this method after the method completes asynchronously.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms704042 + HRESULT IMFByteStream::EndRead([In] IMFAsyncResult* pResult,[Out] unsigned int* pcbRead) + IMFByteStream::EndRead +
+ + +

Applies to: desktop apps | Metro style apps

Writes data to the stream.

+
+

Pointer to a buffer that contains the data to write.

+ The offset within the buffer to begin writing at. +

Size of the buffer in bytes.

+ The number of bytes that are written. + +

This method writes the contents of the pb buffer to the stream, starting at the current stream position. The number of bytes that were written is returned in the pcbWritten parameter.

This method is synchronous. It blocks until the write operation completes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms703843 + HRESULT IMFByteStream::Write([In, Buffer] const unsigned char* pb,[In] unsigned int cb,[Out] unsigned int* pcbWritten) + IMFByteStream::Write +
+ + +

Applies to: desktop apps | Metro style apps

Begins an asynchronous write operation to the stream.

+
+

Pointer to a buffer containing the data to write.

+ The offset within the buffer to begin writing at. +

Size of the buffer in bytes.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When all of the data has been written to the stream, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

Do not reallocate, free, or write to the buffer while an asynchronous write is still pending.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms694005 + HRESULT IMFByteStream::BeginWrite([In, Buffer] const unsigned char* pb,[In] unsigned int cb,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFByteStream::BeginWrite +
+ + +

Applies to: desktop apps | Metro style apps

Completes an asynchronous write operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+ The number of bytes that were written + +

Call this method when the method completes asynchronously.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms703863 + HRESULT IMFByteStream::EndWrite([In] IMFAsyncResult* pResult,[Out] unsigned int* pcbWritten) + IMFByteStream::EndWrite +
+ + +

Applies to: desktop apps | Metro style apps

Moves the current position in the stream by a specified offset.

+
+

Specifies the origin of the seek as a member of the enumeration. The offset is calculated relative to this position.

+

Specifies the new position, as a byte offset from the seek origin.

+

Specifies zero or more flags. The following flags are defined.

ValueMeaning
MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO

All pending I/O requests are canceled after the seek request completes successfully.

?

+ The new position after the seek + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms697053 + HRESULT IMFByteStream::Seek([In] MFBYTESTREAM_SEEK_ORIGIN SeekOrigin,[In] longlong llSeekOffset,[In] unsigned int dwSeekFlags,[Out] unsigned longlong* pqwCurrentPosition) + IMFByteStream::Seek +
+ + +

Applies to: desktop apps | Metro style apps

Clears any internal buffers used by the stream. If you are writing to the stream, the buffered data is written to the underlying file or device.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the byte stream is read-only, this method has no effect.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms694833 + HRESULT IMFByteStream::Flush() + IMFByteStream::Flush +
+ + +

Applies to: desktop apps | Metro style apps

Closes the stream and releases any resources associated with the stream, such as sockets or file handles. This method also cancels any pending asynchronous I/O requests.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms703909 + HRESULT IMFByteStream::Close() + IMFByteStream::Close +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the characteristics of the byte stream.

+
+

Receives a bitwise OR of zero or more flags. The following flags are defined.

ValueMeaning
MFBYTESTREAM_IS_READABLE
0x00000001

The byte stream can be read.

MFBYTESTREAM_IS_WRITABLE
0x00000002

The byte stream can be written to.

MFBYTESTREAM_IS_SEEKABLE
0x00000004

The byte stream can be seeked.

MFBYTESTREAM_IS_REMOTE
0x00000008

The byte stream is from a remote source, such as a network.

MFBYTESTREAM_IS_DIRECTORY
0x00000080

The byte stream represents a file directory.

MFBYTESTREAM_HAS_SLOW_SEEK
0x00000100

Seeking within this stream might be slow. For example, the byte stream might download from a network.

MFBYTESTREAM_IS_PARTIALLY_DOWNLOADED
0x00000200

The byte stream is currently downloading data to a local cache. Read operations on the byte stream might take longer until the data is completely downloaded.

This flag is cleared after all of the data has been downloaded.

If the MFBYTESTREAM_HAS_SLOW_SEEK flag is also set, it means the byte stream must download the entire file sequentially. Otherwise, the byte stream can respond to seek requests by restarting the download from a new point in the stream.

MFBYTESTREAM_SHARE_WRITE
0x00000400

Another thread or process can open this byte stream for writing. If this flag is present, the length of thebyte stream could change while it is being read.

This flag can affect the behavior of byte-stream handlers. For more information, see .

Note??Requires Windows?7 or later.

MFBYTESTREAM_DOES_NOT_USE_NETWORK
0x00000800

The byte stream is not currentlyusing the network to receive the content. Networking hardwaremay enter a power saving state when this bit is set.

Note??Requires Windows?8 or later.

?

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698962 + HRESULT IMFByteStream::GetCapabilities([Out] unsigned int* pdwCapabilities) + IMFByteStream::GetCapabilities +
+ + +

Retrieves the length of the stream.

+
+

Receives the length of the stream, in bytes. If the length is unknown, this value is -1.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698941 + HRESULT IMFByteStream::GetLength([Out] unsigned longlong* pqwLength) + IMFByteStream::GetLength +
+ + +

Sets the length of the stream.

+
+

Length of the stream in bytes.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697225 + HRESULT IMFByteStream::SetLength([In] unsigned longlong qwLength) + IMFByteStream::SetLength +
+ + +

Retrieves the current read or write position in the stream.

+
+

Receives the current position, in bytes.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The methods that update the current position are Read, BeginRead, Write, BeginWrite, SetCurrentPosition, and Seek.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704059 + HRESULT IMFByteStream::GetCurrentPosition([Out] unsigned longlong* pqwPosition) + IMFByteStream::GetCurrentPosition +
+ + +

Sets the current read or write position.

+
+

New position in the stream, as a byte offset from the start of the stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

?

+ +

If the new position is larger than the length of the stream, the method returns E_INVALIDARG.

Implementation notes: This method should update the current position in the stream by setting the current position to the value passed in to the qwPosition parameter. Other methods that can update the current position are Read, BeginRead, Write, BeginWrite, and Seek. +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms695238 + HRESULT IMFByteStream::SetCurrentPosition([In] unsigned longlong qwPosition) + IMFByteStream::SetCurrentPosition +
+ + +

Queries whether the current position has reached the end of the stream.

+
+

Receives the value TRUE if the end of the stream has been reached, or otherwise.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697369 + HRESULT IMFByteStream::IsEndOfStream([Out] BOOL* pfEndOfStream) + IMFByteStream::IsEndOfStream +
+ + +

Reads data from the stream.

+
+

Pointer to a buffer that receives the data. The caller must allocate the buffer.

+

Size of the buffer in bytes.

+

Receives the number of bytes that are copied into the buffer. This parameter cannot be null.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method reads at most cb bytes from the current position in the stream and copies them into the buffer provided by the caller. The number of bytes that were read is returned in the pcbRead parameter. The method does not return an error code on reaching the end of the file, so the application should check the value in pcbRead after the method returns.

This method is synchronous. It blocks until the read operation completes.

Implementation notes: This method should update the current position in the stream by adding the number of bytes that were read, which is specified by the value returned in the pcbRead parameter, to the current position. Other methods that can update the current position are Read, Write, BeginWrite, Seek, and SetCurrentPosition. +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698913 + HRESULT IMFByteStream::Read([In] void* pb,[In] unsigned int cb,[Out] unsigned int* pcbRead) + IMFByteStream::Read +
+ + +

Begins an asynchronous read operation from the stream.

+
+

Pointer to a buffer that receives the data. The caller must allocate the buffer.

+

Size of the buffer in bytes.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When all of the data has been read into the buffer, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

Do not read from, write to, free, or reallocate the buffer while an asynchronous read is pending.

Implementation notes: This method should update the current position in the stream by adding the number of bytes that will be read, which is specified by the value returned in the pcbRead parameter, to the current position. Other methods that can update the current position are BeginRead, Write, BeginWrite, Seek, and SetCurrentPosition. +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704810 + HRESULT IMFByteStream::BeginRead([In] void* pb,[In] unsigned int cb,[In] IMFAsyncCallback* pCallback,[In] void* punkState) + IMFByteStream::BeginRead +
+ + +

Completes an asynchronous read operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

Receives the number of bytes that were read.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method after the method completes asynchronously.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704042 + HRESULT IMFByteStream::EndRead([In] IMFAsyncResult* pResult,[Out] unsigned int* pcbRead) + IMFByteStream::EndRead +
+ + +

Represents a byte stream from some data source, which might be a local file, a network file, or some other source. The interface supports the typical stream operations, such as reading, writing, and seeking.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + +

The following functions return references for local files:

A byte stream for a media souce can be opened with read access. A byte stream for an archive media sink should be opened with both read and write access. (Read access may be required, because the archive sink might need to read portions of the file as it writes.)

Some implementations of this interface also expose one or more of the following interfaces:

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698720 + HRESULT IMFByteStream::Write([In] const void* pb,[In] unsigned int cb,[Out] unsigned int* pcbWritten) + IMFByteStream::Write +
+ + +

Begins an asynchronous write operation to the stream.

+
+

Pointer to a buffer containing the data to write.

+

Size of the buffer in bytes.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When all of the data has been written to the stream, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

Do not reallocate, free, or write to the buffer while an asynchronous write is still pending.

Implementation notes: This method should update the current position in the stream by adding the number of bytes that will be written to the stream, which is specified by the value returned in the pcbWritten, to the current position. Other methods that can update the current position are Read, BeginRead, Write, Seek, and SetCurrentPosition. +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms694005 + HRESULT IMFByteStream::BeginWrite([In] const void* pb,[In] unsigned int cb,[In] IMFAsyncCallback* pCallback,[In] void* punkState) + IMFByteStream::BeginWrite +
+ + +

Completes an asynchronous write operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

Receives the number of bytes that were written.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method when the method completes asynchronously.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703863 + HRESULT IMFByteStream::EndWrite([In] IMFAsyncResult* pResult,[Out] unsigned int* pcbWritten) + IMFByteStream::EndWrite +
+ + +

Moves the current position in the stream by a specified offset.

+
+

Specifies the origin of the seek as a member of the enumeration. The offset is calculated relative to this position.

+

Specifies the new position, as a byte offset from the seek origin.

+

Specifies zero or more flags. The following flags are defined.

ValueMeaning
MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO

All pending I/O requests are canceled after the seek request completes successfully.

?

+

Receives the new position after the seek.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Implementation notes: This method should update the current position in the stream by adding the qwSeekOffset to the seek SeekOrigin position. This should be the same value passed back in the pqwCurrentPosition parameter. + Other methods that can update the current position are Read, BeginRead, Write, BeginWrite, and SetCurrentPosition. +

+
+ + ms697053 + HRESULT IMFByteStream::Seek([In] MFBYTESTREAM_SEEK_ORIGIN SeekOrigin,[In] longlong llSeekOffset,[In] unsigned int dwSeekFlags,[Out, Optional] unsigned longlong* pqwCurrentPosition) + IMFByteStream::Seek +
+ + +

Clears any internal buffers used by the stream. If you are writing to the stream, the buffered data is written to the underlying file or device.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the byte stream is read-only, this method has no effect.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms694833 + HRESULT IMFByteStream::Flush() + IMFByteStream::Flush +
+ + +

Closes the stream and releases any resources associated with the stream, such as sockets or file handles. This method also cancels any pending asynchronous I/O requests.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703909 + HRESULT IMFByteStream::Close() + IMFByteStream::Close +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the characteristics of the byte stream.

+
+ The capabilities of the stream. + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms698962 + HRESULT IMFByteStream::GetCapabilities([Out] unsigned int* pdwCapabilities) + IMFByteStream::GetCapabilities +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the length of the stream.

+
+ The length of the stream, in bytes. If the length is unknown, this value is -1. + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms698941 + HRESULT IMFByteStream::GetLength([Out] unsigned longlong* pqwLength) + IMFByteStream::GetLength +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the current read or write position in the stream.

+
+ The current position, in bytes. + +

The methods that update the current position are Read, BeginRead, Write, BeginWrite, SetCurrentPosition, and Seek.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms704059 + HRESULT IMFByteStream::GetCurrentPosition([Out] unsigned longlong* pqwPosition) + IMFByteStream::GetCurrentPosition +
+ + +

Applies to: desktop apps | Metro style apps

Queries whether the current position has reached the end of the stream.

+
+ true if the end of the stream has been reached + +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms697369 + HRESULT IMFByteStream::IsEndOfStream([Out] BOOL* pfEndOfStream) + IMFByteStream::IsEndOfStream +
+ + + Internal AsyncCallback Callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IMFAsyncCallback::GetParameters([Out] MFASYNC_CALLBACK_FLAGS* pdwFlags,[Out] unsigned int* pdwQueue) + + + HRESULT IMFAsyncCallback::Invoke([In, Optional] IMFAsyncResult* pAsyncResult) + + + +

Receives state-change notifications from the presentation clock.

+
+ +

To receive state-change notifications from the presentation clock, implement this interface and call on the presentation clock.

This interface must be implemented by:

  • Presentation time sources. The presentation clock uses this interface to request change states from the time source.

  • Media sinks. Media sinks use this interface to get notifications when the presentation clock changes.

Other objects that need to be notified can implement this interface.

+
+ + ms701593 + IMFClockStateSink + IMFClockStateSink +
+ + + Called when the presentation clock pauses. + + The system time when the clock was paused, in 100-nanosecond units. + + When the presentation clock's Pause method is called, the clock notifies the presentation time source by calling the time source's OnClockPause method. This call occurs synchronously within the Pause method. If the time source returns an error from OnClockPause, the presentation clock's Pause method returns an error and the state change does not take place. For any object that is not the presentation time source, the OnClockPause method is called asynchronously, after the state change is completed. In that case, the return value from this method is ignored. + + + HRESULT IMFClockStateSink::OnClockPause([In] longlong hnsSystemTime) + + + + Called when the presentation clock restarts from the same position while paused. + + The system time when the clock restarted, in 100-nanosecond units. + + This method is called if the presentation clock is paused and the Start method is called with the value PRESENTATION_CURRENT_POSITION. The clock notifies the presentation time source by calling the time source's OnClockRestart method. This call occurs synchronously within the Start method. If the time source returns an error from OnClockRestart, the presentation clock's Start method returns an error and the state change does not take place. For any object that is not the presentation time source, the OnClockRestart method is called asynchronously, after the state change is completed. In that case, the return value from this method is ignored. + + + HRESULT IMFClockStateSink::OnClockRestart([In] longlong hnsSystemTime) + + + + Called when the rate changes on the presentation clock. + + The system time when the rate was set, in 100-nanosecond units. + The new rate, as a multiplier of the normal playback rate. + + When the presentation clock's SetRate method is called, the clock notifies the presentation time source by calling the time source's OnClockSetRate method. This call occurs synchronously within the SetRate method. If the time source returns an error from OnClockSetRate, the presentation clock's SetRate method returns an error and the state change does not take place. For any object that is not the presentation time source, the OnClockSetRate method is called asynchronously, after the state change is completed. In that case, the return value from this method is ignored. + + + HRESULT IMFClockStateSink::OnClockSetRate([In] longlong hnsSystemTime,[In] float flRate) + + + + Called when the presentation clock starts. + + The system time when the clock started, in 100-nanosecond units. + The new starting time for the clock, in 100-nanosecond units. This parameter can also equal PRESENTATION_CURRENT_POSITION, indicating the clock has started or restarted from its current position. + + This method is called whe the presentation clock's Start method is called, with the following exception: If the clock is paused and Start is called with the value PRESENTATION_CURRENT_POSITION, OnClockRestart is called instead of OnClockStart. The clock notifies the presentation time source by calling the time source's OnClockStart method. This call occurs synchronously within the Start method. If the time source returns an error from OnClockStart, the presentation clock's Start method returns an error and the state change does not take place. For any object that is not the presentation time source, the OnClockStart method is called asynchronously, after the state change is completed. In that case, the return value from this method is ignored. The value given in llClockStartOffset is the presentation time when the clock starts, so it is relative to the start of the presentation. Media sinks should not render any data with a presentation time earlier than llClockStartOffSet. If a sample straddles the offset?that is, if the offset falls between the sample's start and stop times?the sink should either trim the sample so that only data after llClockStartOffset is rendered, or else simply drop the sample. + + + HRESULT IMFClockStateSink::OnClockStart([In] longlong hnsSystemTime,[In] longlong llClockStartOffset) + + + + Called when the presentation clock stops. + + The system time when the clock stopped, in 100-nanosecond units. + + When the presentation clock's Stop method is called, the clock notifies the presentation time source by calling the presentation time source's OnClockStop method. This call occurs synchronously within the Stop method. If the time source returns an error from OnClockStop, the presentation clock's Stop method returns an error and the state change does not take place. For any object that is not the presentation time source, the OnClockStop method is called asynchronously, after the state change is completed. If an object is already stopped, it should return Ok from OnClockStop. It should not return an error code. Note??Although the header file mferror.h defines an error code named MF_E_SINK_ALREADYSTOPPED, it should not be returned in this situation. + + + HRESULT IMFClockStateSink::OnClockStop([In] longlong hnsSystemTime) + + + + Internal ClockStateSink callback + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IMFClockStateSink::OnClockStop([In] longlong hnsSystemTime) + + + HRESULT IMFClockStateSink::OnClockPause([In] longlong hnsSystemTime) + + + HRESULT IMFClockStateSink::OnClockRestart([In] longlong hnsSystemTime) + + + HRESULT IMFClockStateSink::OnClockStart([In] longlong hnsSystemTime,[In] longlong llClockStartOffset) + + + HRESULT IMFClockStateSink::OnClockSetRate([In] longlong hnsSystemTime,[In] float flRate) + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IMFSampleGrabberSinkCallback::OnSetPresentationClock([in] IMFPresentationClock *pPresentationClock); + + + HRESULT OnProcessSample([in] REFGUID guidMajorMediaType, [in] DWORD dwSampleFlags, [in] LONGLONG llSampleTime, [in] LONGLONG llSampleDuration, [in] const BYTE *pSampleBuffer, [in] DWORD dwSampleSize); + + + HRESULT IMFSampleGrabberSinkCallback::OnShutdown(); + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + +

Called when the sample-grabber sink receives a new media sample.

+
+ +

If you use the sample-grabber sink in a playback topology, this method should return quickly, or it might interfere with playback. Do not block the thread, wait on events, or perform other lengthy operations inside this method.

+
+ + dd374518 + IMFSampleGrabberSinkCallback2 + IMFSampleGrabberSinkCallback2 +
+ + +

Callback interface to get media data from the sample-grabber sink.

+
+ +

The sample-grabber sink enables an application to get data from the Media Foundation pipeline without implementing a custom media sink. To use the sample-grabber sink, the application must perform the following steps:

  1. Implement the interface.

  2. Call , passing in the interface reference. This function returns an object.

  3. Create a topology that includes an output node with the sink's object.

  4. Pass this topology to the Media Session.

During playback, the sample-grabber sink calls methods on the application's callback.

You cannot use the sample-grabber sink to get protected content.

+
+ + ms697548 + IMFSampleGrabberSinkCallback + IMFSampleGrabberSinkCallback +
+ + + Called when the sample-grabber sink is shut down. + + + This method is called when the sink's Shutdown method is called. The OnShutdown method should return quickly, or it might interfere with playback. Do not block the thread, wait on events, or perform other lengthy operations inside this method. + + + HRESULT IMFSampleGrabberSinkCallback::OnShutdown() + + + + Called when the presentation clock is set on the sample-grabber sink. + + Pointer to the presentation clock's PresentationClock interface. + + This method should return quickly, or it might interfere with playback. Do not block the thread, wait on events, or perform other lengthy operations inside this method. + + + HRESULT IMFSampleGrabberSinkCallback::OnSetPresentationClock([In] IMFPresentationClock* pPresentationClock) + + + + + +

Applies to: desktop apps only

Gets the range of values for an image filter that the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device supports.

+
+ +

To find out which image filters the device supports, check the FilterCaps member of the structure. Call the method to get this value.

+
+ + dd373915 + IDXVAHD_Device + IDXVAHD_Device + +

Gets the range of values for an image filter that the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device supports.

+
+ +

To find out which image filters the device supports, check the FilterCaps member of the structure. Call the method to get this value.

+
+ + dd373915 + IDXVAHD_Device + IDXVAHD_Device +
+ + +

Applies to: desktop apps only

Creates a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

A reference to the interface of a Direct3D 9 device.

+

A reference to a structure that describes the video content. The driver uses this information as a hint when it creates the device.

+

A member of the enumeration, describing how the device will be used. The value indicates the desired trade-off between speed and video quality. The driver uses this flag as a hint when it creates the device.

+ +

Use the interface to get the device capabilities, create the video processor, and allocate video surfaces.

+
+ + dd318412 + HRESULT DXVAHD_CreateDevice([In] IDirect3DDevice9Ex* pD3DDevice,[In] const DXVAHD_CONTENT_DESC* pContentDesc,[In] DXVAHD_DEVICE_USAGE Usage,[In, Optional] __function__stdcall* pPlugin,[Out, Fast] IDXVAHD_Device** ppDevice) + DXVAHD_CreateDevice +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates one or more Microsoft Direct3D video surfaces.

+
+

The width of each surface, in pixels.

+

The height of each surface, in pixels.

+

The pixel format, specified as a value or FOURCC code. For more information, see Video FOURCCs.

+

The memory pool in which the surface is created. This parameter must equal the InputPool member of the structure. Call the method to get this value.

+

Reserved. Set to 0.

+

The type of surface to create, specified as a member of the enumeration.

+

The number of surfaces to create.

+

A reference to an array of references. The NumSurfaces parameter specifies the number of elements in the array. The method fills the array with references to the new video surfaces. The caller must release the references.

+

Reserved. Set to null.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373911 + HRESULT IDXVAHD_Device::CreateVideoSurface([In] unsigned int Width,[In] unsigned int Height,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Usage,[In] DXVAHD_SURFACE_TYPE Type,[In] unsigned int NumSurfaces,[Out, Buffer] IDirect3DSurface9** ppSurfaces,[InOut, Optional] void** pSharedHandle) + IDXVAHD_Device::CreateVideoSurface +
+ + +

Gets the capabilities of the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

A reference to a structure that receives the device capabilities.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373914 + HRESULT IDXVAHD_Device::GetVideoProcessorDeviceCaps([Out] DXVAHD_VPDEVCAPS* pCaps) + IDXVAHD_Device::GetVideoProcessorDeviceCaps +
+ + +

Gets a list of the output formats supported by the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

The number of formats to retrieve. This parameter must equal the OutputFormatCount member of the structure. Call the method to get this value.

+

A reference to an array of values. The Count parameter specifies the number of elements in the array. The method fills the array with a list of output formats.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The list of formats can include both values, such as , and FOURCC codes, such as 'NV12'. For more information, see Video FOURCCs.

+
+ + dd373917 + HRESULT IDXVAHD_Device::GetVideoProcessorOutputFormats([In] unsigned int Count,[Out, Buffer] D3DFORMAT* pFormats) + IDXVAHD_Device::GetVideoProcessorOutputFormats +
+ + +

Gets a list of the input formats supported by the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

The number of formats to retrieve. This parameter must equal the InputFormatCount member of the structure. Call the method to get this value.

+

A reference to an array of values. The Count parameter specifies the number of elements in the array. The method fills the array with a list of input formats.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The list of formats can include both values, such as , and FOURCC codes, such as 'NV12'. For more information, see Video FOURCCs.

+
+ + dd373916 + HRESULT IDXVAHD_Device::GetVideoProcessorInputFormats([In] unsigned int Count,[Out, Buffer] D3DFORMAT* pFormats) + IDXVAHD_Device::GetVideoProcessorInputFormats +
+ + +

Gets the capabilities of one or more Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processors.

+
+

The number of elements in the pCaps array. This parameter must equal the VideoProcessorCount member of the structure. Call the method to get this value.

+

A reference to an array of structures. The method fills the structures with the capabilities of the video processors supported by the driver.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373912 + HRESULT IDXVAHD_Device::GetVideoProcessorCaps([In] unsigned int Count,[Out, Buffer] DXVAHD_VPCAPS* pCaps) + IDXVAHD_Device::GetVideoProcessorCaps +
+ + +

Gets a list of custom rates that a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor supports. Custom rates are used for frame-rate conversion and inverse telecine (IVTC).

+
+

A that identifies the video processor to query. This must equal the valud of the VPGuid member from one of the structures retrieved by the method.

+

The number of rates to retrieve. This parameter must equal the CustomRateCount member of the structure for the video processor.

+

A reference to an array of structures. The Count parameter specifies the number of elements in the array. The method fills the array with a list of custom rates.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373913 + HRESULT IDXVAHD_Device::GetVideoProcessorCustomRates([In] const GUID* pVPGuid,[In] unsigned int Count,[Out, Buffer] DXVAHD_CUSTOM_RATE_DATA* pRates) + IDXVAHD_Device::GetVideoProcessorCustomRates +
+ + +

Gets the range of values for an image filter that the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device supports.

+
+

The type of image filter, specified as a member of the enumeration.

+

A reference to a structure. The method fills the structure with the range of values for the specified filter.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The Filter parameter is invalid or the device does not support the specified filter.

?

+ +

To find out which image filters the device supports, check the FilterCaps member of the structure. Call the method to get this value.

+
+ + dd373915 + HRESULT IDXVAHD_Device::GetVideoProcessorFilterRange([In] DXVAHD_FILTER Filter,[Out] DXVAHD_FILTER_RANGE_DATA* pRange) + IDXVAHD_Device::GetVideoProcessorFilterRange +
+ + +

Creates a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

+
+

A that identifies the video processor to create. This must equal the value of the VPGuid member from one of the structures retrieved by the method.

+

Receives a reference to the interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373910 + HRESULT IDXVAHD_Device::CreateVideoProcessor([In] const GUID* pVPGuid,[Out] IDXVAHD_VideoProcessor** ppVideoProcessor) + IDXVAHD_Device::CreateVideoProcessor +
+ + +

Gets the capabilities of the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ + dd373914 + GetVideoProcessorDeviceCaps + GetVideoProcessorDeviceCaps + HRESULT IDXVAHD_Device::GetVideoProcessorDeviceCaps([Out] DXVAHD_VPDEVCAPS* pCaps) +
+ + +

Applies to: desktop apps only

Enables two threads to share the same Direct3D 9 device, and provides access to the DirectX Video Acceleration (DXVA) features of the device.

+
+ +

This interface is exposed by the Direct3D Device Manager. To create the Direct3D device manager, call .

To get this interface from the Enhanced Video Renderer (EVR), call . The service is . For the DirectShow EVR filter, call GetService on the filter's pins.

The Direct3D Device Manager supports Direct3D 9 devices only. It does not support DXGI devices.

+
+ + ms704727 + IDirect3DDeviceManager9 + IDirect3DDeviceManager9 + +

Enables two threads to share the same Direct3D 9 device, and provides access to the DirectX Video Acceleration (DXVA) features of the device.

+
+ +

This interface is exposed by the Direct3D Device Manager. To create the Direct3D device manager, call .

To get this interface from the Enhanced Video Renderer (EVR), call . The service is . For the DirectShow EVR filter, call GetService on the filter's pins.

The Direct3D Device Manager supports Direct3D 9 devices only. It does not support DXGI devices.

Windows Store apps must use IMFDXGIDeviceManager and Direct3D 11 Video APIs.

+
+ + ms704727 + IDirect3DDeviceManager9 + IDirect3DDeviceManager9 +
+ + +

Applies to: desktop apps only

Creates an instance of the Direct3D Device Manager.

+
+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + bb970490 + HRESULT DXVA2CreateDirect3DDeviceManager9([Out] unsigned int* pResetToken,[Out, Fast] IDirect3DDeviceManager9** ppDeviceManager) + DXVA2CreateDirect3DDeviceManager9 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the Direct3D device or notifies the device manager that the Direct3D device was reset.

+
+

Pointer to the interface of the Direct3D device.

+

Token received in the pResetToken parameter of the function.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid token

Direct3D device error.

?

+ +

When you first create the Direct3D device manager, call this method with a reference to the Direct3D device. The device manager does not create the device; the caller must provide the device reference initially.

Also call this method if the Direct3D device becomes lost and you need to reset the device or create a new device. This occurs if returns or . For more information about lost devices, see the Direct3D documentation.

The resetToken parameter ensures that only the component which originally created the device manager can invalidate the current device.

If this method succeeds, all open device handles become invalid.

+
+ + ms693525 + HRESULT IDirect3DDeviceManager9::ResetDevice([In] IDirect3DDevice9* pDevice,[In] unsigned int resetToken) + IDirect3DDeviceManager9::ResetDevice +
+ + +

Gets a handle to the Direct3D device.

+
+

Receives the device handle.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

DXVA2_E_NOT_INITIALIZED

The Direct3D device manager was not initialized. The owner of the device must call .

?

+ +

To get the Direct3D device's reference, call with the handle returned in phDevice. Close the device handle when you are done using it, by calling .

To test whether a device handle is still valid, call .

+
+ + ms698976 + HRESULT IDirect3DDeviceManager9::OpenDeviceHandle([Out] void** phDevice) + IDirect3DDeviceManager9::OpenDeviceHandle +
+ + +

Closes a Direct3D device handle. Call this method to release a device handle retrieved by the method.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_HANDLE

Invalid handle.

?

+ + ms697332 + HRESULT IDirect3DDeviceManager9::CloseDeviceHandle([In] void* hDevice) + IDirect3DDeviceManager9::CloseDeviceHandle +
+ + +

Tests whether a Direct3D device handle is valid.

+
+

Handle to a Direct3D device. To get a device handle, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The device handle is valid.

E_HANDLE

The specified handle is not a Direct3D device handle.

DXVA2_E_NEW_VIDEO_DEVICE

The device handle is invalid.

?

+ +

If the method returns DXVA2_E_NEW_VIDEO_DEVICE, call to close the handle and then call OpenDeviceHandle again to get a new handle. The method invalidates all open device handles.

+
+ + ms704778 + HRESULT IDirect3DDeviceManager9::TestDevice([In] void* hDevice) + IDirect3DDeviceManager9::TestDevice +
+ + +

Gives the caller exclusive access to the Direct3D device.

+
+

A handle to the Direct3D device. To get the device handle, call .

+

Receives a reference to the device's interface.

+

Specifies whether to wait for the device lock. If the device is already locked and this parameter is TRUE, the method blocks until the device is unlocked. Otherwise, if the device is locked and this parmater is , the method returns immediately with the error code DXVA2_E_VIDEO_DEVICE_LOCKED.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

DXVA2_E_NEW_VIDEO_DEVICE

The device handle is invalid.

DXVA2_E_NOT_INITIALIZED

The Direct3D device manager was not initialized. The owner of the device must call .

DXVA2_E_VIDEO_DEVICE_LOCKED

The device is locked and fBlock is .

E_HANDLE

The specified handle is not a Direct3D device handle.

?

+ +

When you are done using the Direct3D device, call to unlock to the device.

If the method returns DXVA2_E_NEW_VIDEO_DEVICE, call to close the handle and then call OpenDeviceHandle again to get a new handle. The method invalidates all open device handles.

If fBlock is TRUE, this method can potentially deadlock. For example, it will deadlock if a thread calls LockDevice and then waits on another thread that calls LockDevice. It will also deadlock if a thread calls LockDevice twice without calling UnlockDevice in between.

+
+ + ms697056 + HRESULT IDirect3DDeviceManager9::LockDevice([In] void* hDevice,[Out] IDirect3DDevice9** ppDevice,[In] BOOL fBlock) + IDirect3DDeviceManager9::LockDevice +
+ + +

Unlocks the Direct3D device. Call this method to release the device after calling .

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The specified device handle is not locked, or is not a valid handle.

?

+ + ms704707 + HRESULT IDirect3DDeviceManager9::UnlockDevice([In] void* hDevice,[In] BOOL fSaveState) + IDirect3DDeviceManager9::UnlockDevice +
+ + +

Gets a DirectX Video Acceleration (DXVA) service interface.

+
+

A handle to a Direct3D device. To get a device handle, call .

+

The interface identifier (IID) of the requested interface. The Direct3D device might support the following DXVA service interfaces:

+

Receives a reference to the requested interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

DXVA2_E_NEW_VIDEO_DEVICE

The device handle is invalid.

DXVA2_E_NOT_AVAILABLE

The Direct3D device does not support video acceleration.

DXVA2_E_NOT_INITIALIZED

The Direct3D device manager was not initialized. The owner of the device must call .

E_HANDLE

The specified handle is not a Direct3D device handle.

?

+ +

If the method returns DXVA2_E_NEW_VIDEO_DEVICE, call to close the handle and then call OpenDeviceHandle again to get a new handle. The method invalidates all open device handles.

+
+ + ms696198 + HRESULT IDirect3DDeviceManager9::GetVideoService([In] void* hDevice,[In] const GUID& riid,[Out] void** ppService) + IDirect3DDeviceManager9::GetVideoService +
+ + + A token that identifies this instance of the Direct3D device manager. Use this token when calling . + + + + + The namespace provides a managed MediaFoundation for DirectX integration API. + + + MediaFoundation + MediaFoundation + + + +

Applies to: desktop apps only

Provides DirectX Video Acceleration (DXVA) services from a Direct3D device. To get a reference to this interface, call or .

+
+ +

This is the base interface for DXVA services. The Direct3D device can support any of the following DXVA services, which derive from :

  • Video decoding:
  • Video processing:
+
+ + ms697049 + IDirectXVideoAccelerationService + IDirectXVideoAccelerationService + +

Provides DirectX Video Acceleration (DXVA) services from a Direct3D device. To get a reference to this interface, call or .

+
+ +

This is the base interface for DXVA services. The Direct3D device can support any of the following DXVA services, which derive from :

  • Video decoding:
  • Video processing:
+
+ + ms697049 + IDirectXVideoAccelerationService + IDirectXVideoAccelerationService +
+ + +

Applies to: desktop apps only

Creates a DirectX Video Acceleration (DXVA) services object. Call this function if your application uses DXVA directly, without using DirectShow or Media Foundation.

+
+

A reference to the interface of a Direct3D device.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms704721 + HRESULT DXVA2CreateVideoService([In] IDirect3DDevice9* pDD,[In] const GUID& riid,[Out] void** ppService) + DXVA2CreateVideoService +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a DirectX Video Acceleration (DXVA) video processor or DXVA decoder render target.

+
+

The width of the surface, in pixels.

+

The height of the surface, in pixels.

+

The number of back buffers. The method creates BackBuffers + 1 surfaces.

+

The pixel format, specified as a value or FOURCC code. For more information, see the Direct3D documentation.

+

The memory pool in which to create the surface, specified as a value. For more information, see the Direct3D documentation. Decoders should generally use the value .

+

Reserved. Set this value to zero.

+

The type of surface to create. Use one of the following values.

ValueMeaning

Video decoder render target.

Video processor render target. Used for operations.

Software render target. This surface type is for use with software DXVA devices.

?

+

The address of an array of references allocated by the caller. The size of the array must be 1 + BackBuffers (enough for the back buffers plus one front buffer). The method fills the array with references. The caller must release all of the interface references. In addition, the front buffer holds a reference count on each of the back buffers. Therefore, the back buffers are never deleted until the front buffer is deleted.

+

A reference to a handle that is used to share the surfaces between Direct3D devices. Set this parameter to null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid parameter

E_FAIL

The DirectX Video Acceleration Manager is not initialized.

E_POINTER

null reference argument.

?

+ +

If the method returns E_FAIL, try calling to reset the DirectX Video Acceleration Manager.

+
+ + ms696227 + HRESULT IDirectXVideoAccelerationService::CreateSurface([In] unsigned int Width,[In] unsigned int Height,[In] unsigned int BackBuffers,[In] D3DFORMAT Format,[In] D3DPOOL Pool,[In] unsigned int Usage,[In] unsigned int DxvaType,[Out, Buffer] IDirect3DSurface9** ppSurface,[InOut, Optional] void** pSharedHandle) + IDirectXVideoAccelerationService::CreateSurface +
+ + +

Applies to: desktop apps only

Provides access to DirectX Video Acceleration (DXVA) decoder services. Use this interface to query which hardware-accelerated decoding operations are available and to create DXVA video decoder devices.

To get a reference to this interface, call or with the interface identifier IID_IDirectXVideoDecoderService.

+
+ + ms704820 + IDirectXVideoDecoderService + IDirectXVideoDecoderService + +

Provides access to DirectX Video Acceleration (DXVA) decoder services. Use this interface to query which hardware-accelerated decoding operations are available and to create DXVA video decoder devices.

To get a reference to this interface, call or with the interface identifier IID_IDirectXVideoDecoderService.

+
+ + ms704820 + IDirectXVideoDecoderService + IDirectXVideoDecoderService +
+ + +

Applies to: desktop apps only

Creates a DirectX Video Acceleration (DXVA) services object. Call this function if your application uses DXVA directly, without using DirectShow or Media Foundation.

+
+

A reference to the interface of a Direct3D device.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms704721 + HRESULT DXVA2CreateVideoService([In] IDirect3DDevice9* pDD,[In] const GUID& riid,[Out] void** ppService) + DXVA2CreateVideoService +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves an array of GUIDs that identifies the decoder devices supported by the graphics hardware.

+
+

Receives the number of GUIDs.

+

Receives an array of GUIDs. The size of the array is retrieved in the Count parameter. The method allocates the memory for the array. The caller must free the memory by calling CoTaskMemFree.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Error from the Direct3D device.

E_FAIL

If the Microsoft Basic Display Adapter is being used or the Direct3D?11 device type is the reference rasterizer. These devices do not support video decoders.

?

+ +

The following decoder GUIDs are defined. Some of these GUIDs have alternate names, shown in parentheses.

Description
DXVA2_ModeH264_A (DXVA2_ModeH264_MoComp_NoFGT)H.264 motion compensation (MoComp), no film grain technology (FGT).
DXVA2_ModeH264_B (DXVA2_ModeH264_MoComp_FGT)H.264 MoComp, FGT.
DXVA2_ModeH264_C (DXVA2_ModeH264_IDCT_NoFGT)H.264 inverse discrete cosine transform (IDCT), no FGT.
DXVA2_ModeH264_D (DXVA2_ModeH264_IDCT_FGT)H.264 IDCT, FGT.
DXVA2_ModeH264_E (DXVA2_ModeH264_VLD_NoFGT)H.264 VLD, no FGT.
DXVA2_ModeH264_F (DXVA2_ModeH264_VLD_FGT)H.264 variable-length decoder (VLD), FGT.
DXVA2_ModeMPEG2_IDCTMPEG-2 IDCT.
DXVA2_ModeMPEG2_MoCompMPEG-2 MoComp.
DXVA2_ModeMPEG2_VLDMPEG-2 VLD.
DXVA2_ModeVC1_A (DXVA2_ModeVC1_PostProc)VC-1 post processing.
DXVA2_ModeVC1_B (DXVA2_ModeVC1_MoComp)VC-1 MoComp.
DXVA2_ModeVC1_C (DXVA2_ModeVC1_IDCT)VC-1 IDCT.
DXVA2_ModeVC1_D (DXVA2_ModeVC1_VLD)VC-1 VLD.
DXVA2_ModeWMV8_A (DXVA2_ModeWMV8_PostProc)Windows Media Video 8 post processing.
DXVA2_ModeWMV8_B (DXVA2_ModeWMV8_MoComp)Windows Media Video 8 MoComp.
DXVA2_ModeWMV9_A (DXVA2_ModeWMV9_PostProc)Windows Media Video 9 post processing.
DXVA2_ModeWMV9_B (DXVA2_ModeWMV9_MoComp)Windows Media Video 9 MoComp.
DXVA2_ModeWMV9_C (DXVA2_ModeWMV9_IDCT)Windows Media Video 9 IDCT.

?

+
+ + ms697067 + HRESULT IDirectXVideoDecoderService::GetDecoderDeviceGuids([Out] unsigned int* pCount,[Out, Buffer, Optional] GUID** pGuids) + IDirectXVideoDecoderService::GetDecoderDeviceGuids +
+ + +

Retrieves the supported render targets for a specified decoder device.

+
+

that identifies the decoder device. To get the available device GUIDs, call .

+

Receives the number of formats.

+

Receives an array of formats, specified as values. The size of the array is retrieved in the pCount parameter. The method allocates the memory for the array. The caller must free the memory by calling CoTaskMemFree.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703193 + HRESULT IDirectXVideoDecoderService::GetDecoderRenderTargets([In] const GUID& Guid,[Out] unsigned int* pCount,[Out, Buffer, Optional] D3DFORMAT** pFormats) + IDirectXVideoDecoderService::GetDecoderRenderTargets +
+ + +

Gets the configurations that are available for a decoder device.

+
+

A that identifies the decoder device. To get the available device GUIDs, call .

+

A reference to a structure that describes the video content.

+

Reserved. Set to null.

+

Receives the number of configurations.

+

Receives an array of structures. The size of the array is retrieved in the pCount parameter. The caller must free the memory for the array by calling CoTaskMemFree. This parameter can be null if you simply want the number of configurations (returned in pCount) but not the GUIDs.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms699833 + HRESULT IDirectXVideoDecoderService::GetDecoderConfigurations([In] const GUID& Guid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] void* pReserved,[Out] unsigned int* pCount,[Out, Buffer, Optional] DXVA2_ConfigPictureDecode** ppConfigs) + IDirectXVideoDecoderService::GetDecoderConfigurations +
+ + +

Creates a video decoder device.

+
+

that specifies the decoder device to create. To get the available device GUIDs, call .

+

Pointer to a structure that describes the video content.

+

Pointer to a structure that specifies the decoder configuration.

+

Pointer to an array of references containing references to the decoder render targets. To create these surfaces, call . Specify for the DxvaType parameter.

+

Size of the ppDecoderRenderTargets array. This value cannot be zero.

+

Receives a reference to the decoder's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696175 + HRESULT IDirectXVideoDecoderService::CreateVideoDecoder([In] const GUID& Guid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] const DXVA2_ConfigPictureDecode* pConfig,[In, Buffer] IDirect3DSurface9** ppDecoderRenderTargets,[In] unsigned int NumRenderTargets,[Out] IDirectXVideoDecoder** ppDecode) + IDirectXVideoDecoderService::CreateVideoDecoder +
+ + +

Creates a video decoder device.

+
+

that specifies the decoder device to create. To get the available device GUIDs, call .

+

Pointer to a structure that describes the video content.

+

Pointer to a structure that specifies the decoder configuration.

+

Pointer to an array of references containing references to the decoder render targets. To create these surfaces, call . Specify for the DxvaType parameter.

+

Size of the ppDecoderRenderTargets array. This value cannot be zero.

+

Receives a reference to the decoder's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696175 + HRESULT IDirectXVideoDecoderService::CreateVideoDecoder([In] const GUID& Guid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] const DXVA2_ConfigPictureDecode* pConfig,[In, Buffer] IDirect3DSurface9** ppDecoderRenderTargets,[In] unsigned int NumRenderTargets,[Out] IDirectXVideoDecoder** ppDecode) + IDirectXVideoDecoderService::CreateVideoDecoder +
+ + +

Applies to: desktop apps only

Provides access to DirectX Video Acceleration (DXVA) video processing services.

Use this interface to query which hardware-accelerated video processing operations are available and to create DXVA video processor devices. To obtain a reference to this interface, call or with the interface identifier IID_IDirectXVideoProcessorService.

+
+ + ms705631 + IDirectXVideoProcessorService + IDirectXVideoProcessorService + +

Provides access to DirectX Video Acceleration (DXVA) video processing services.

Use this interface to query which hardware-accelerated video processing operations are available and to create DXVA video processor devices. To obtain a reference to this interface, call or with the interface identifier IID_IDirectXVideoProcessorService.

+
+ + ms705631 + IDirectXVideoProcessorService + IDirectXVideoProcessorService +
+ + +

Applies to: desktop apps only

Creates a DirectX Video Acceleration (DXVA) services object. Call this function if your application uses DXVA directly, without using DirectShow or Media Foundation.

+
+

A reference to the interface of a Direct3D device.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms704721 + HRESULT DXVA2CreateVideoService([In] IDirect3DDevice9* pDD,[In] const GUID& riid,[Out] void** ppService) + DXVA2CreateVideoService +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Registers a software video processing device.

+
+

Pointer to an initialization function.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696262 + HRESULT IDirectXVideoProcessorService::RegisterVideoProcessorSoftwareDevice([In] void* pCallbacks) + IDirectXVideoProcessorService::RegisterVideoProcessorSoftwareDevice +
+ + +

Gets an array of GUIDs which identify the video processors supported by the graphics hardware.

+
+

Pointer to a structure that describes the video content.

+

Receives the number of GUIDs.

+

Receives an array of GUIDs. The size of the array is retrieved in the pCount parameter. The method allocates the memory for the array. The caller must free the memory by calling CoTaskMemFree.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The following video processor GUIDs are predefined.

Description
DXVA2_VideoProcBobDeviceBob deinterlace device. This device uses a "bob" algorithm to deinterlace the video. Bob algorithms create missing field lines by interpolating the lines in a single field.
DXVA2_VideoProcProgressiveDeviceProgressive video device. This device is available for progressive video, which does not require a deinterlace algorithm.
DXVA2_VideoProcSoftwareDeviceReference (software) device.

?

The graphics device may define additional vendor-specific GUIDs. The driver provides the list of GUIDs in descending quality order. The mode with the highest quality is first in the list. To get the capabilities of each mode, call and pass in the for the mode.

+
+ + ms695370 + HRESULT IDirectXVideoProcessorService::GetVideoProcessorDeviceGuids([In] const DXVA2_VideoDesc* pVideoDesc,[Out] unsigned int* pCount,[Out, Buffer, Optional] GUID** pGuids) + IDirectXVideoProcessorService::GetVideoProcessorDeviceGuids +
+ + +

Gets the render target formats that a video processor device supports. The list may include RGB and YUV formats.

+
+

A that identifies the video processor device. To get the list of video processor GUIDs, call .

+

A reference to a structure that describes the video content.

+

Receives the number of formats.

+

Receives an array of formats, specified as values. The size of the array is retrieved in the pCount parameter. The method allocates the memory for the array. The caller must free the memory by calling CoTaskMemFree.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms702118 + HRESULT IDirectXVideoProcessorService::GetVideoProcessorRenderTargets([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[Out] unsigned int* pCount,[Out, Buffer, Optional] D3DFORMAT** pFormats) + IDirectXVideoProcessorService::GetVideoProcessorRenderTargets +
+ + +

Gets a list of substream formats supported by a specified video processor device.

+
+

A that identifies the video processor device. To get the list of video processor GUIDs, call .

+

A reference to a structure that describes the video content.

+

The format of the render target surface, specified as a value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the enumeration. See Video FOURCCs.

+

Receives the number of elements returned in the ppFormats array.

+

Receives an array of values. The caller must free the array by calling CoTaskMemFree. The array can contain both RGB and YUB pixel formats.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms694271 + HRESULT IDirectXVideoProcessorService::GetVideoProcessorSubStreamFormats([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] D3DFORMAT RenderTargetFormat,[Out] unsigned int* pCount,[Out, Buffer, Optional] D3DFORMAT** pFormats) + IDirectXVideoProcessorService::GetVideoProcessorSubStreamFormats +
+ + +

Gets the capabilities of a specified video processor device.

+
+

A that identifies the video processor device. To get the list of video processor GUIDs, call .

+

A reference to a structure that describes the video content.

+

The format of the render target surface, specified as a value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the enumeration. See Video FOURCCs.

+

A reference to a structure that receives the video processor capabilities.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms702988 + HRESULT IDirectXVideoProcessorService::GetVideoProcessorCaps([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] D3DFORMAT RenderTargetFormat,[Out] DXVA2_VideoProcessorCaps* pCaps) + IDirectXVideoProcessorService::GetVideoProcessorCaps +
+ + +

Gets the range of values for a video processor (ProcAmp) setting.

+
+

A that identifies the video processor device. To get the list of video processor GUIDs, call .

+

A reference to a structure that describes the video content.

+

The format of the render target surface, specified as a value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the enumeration. See Video FOURCCs.

+

The ProcAmp setting to query. See ProcAmp Settings.

+

A reference to a structure that receives the range of values for the setting specified in ProcAmpCaps.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms702244 + HRESULT IDirectXVideoProcessorService::GetProcAmpRange([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] D3DFORMAT RenderTargetFormat,[In] unsigned int ProcAmpCap,[Out] DXVA2_ValueRange* pRange) + IDirectXVideoProcessorService::GetProcAmpRange +
+ + +

Retrieves the range of values for an image filter supported by a video processor device.

+
+

A that identifies the video processor device. To get the list of video processor GUIDs, call .

+

A reference to a structure that describes the video content.

+

The format of the render target surface, specified as a value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the enumeration. See Video FOURCCs.

+

The filter setting to query. See DXVA Image Filter Settings.

+

A reference to a structure that receives range of values for the image filter setting specified in FilterSetting.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms694173 + HRESULT IDirectXVideoProcessorService::GetFilterPropertyRange([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] D3DFORMAT RenderTargetFormat,[In] unsigned int FilterSetting,[Out] DXVA2_ValueRange* pRange) + IDirectXVideoProcessorService::GetFilterPropertyRange +
+ + +

Creates a video processor device.

+
+

A that specifies the video processor to create. To get the list of video processor GUIDs, call .

+

A reference to a structure that describes the video content.

+

The format of the render target surface, specified as a value. For more information, see the Direct3D documentation. You can also use a FOURCC code to specify a format that is not defined in the enumeration. See Video FOURCCs.

+

The maximum number of substreams that will be used with this device.

+

Receives a reference to the video processor's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms694848 + HRESULT IDirectXVideoProcessorService::CreateVideoProcessor([In] const GUID& VideoProcDeviceGuid,[In] const DXVA2_VideoDesc* pVideoDesc,[In] D3DFORMAT RenderTargetFormat,[In] unsigned int MaxNumSubStreams,[Out] IDirectXVideoProcessor** ppVidProcess) + IDirectXVideoProcessorService::CreateVideoProcessor +
+ + + The namespace provides a managed MediaFoundation for Dsp API. + + + MediaFoundation + MediaFoundation + + + +

Provides information about the result of an asynchronous operation.

+
+ +

Use this interface to complete an asynchronous operation. You get a reference to this interface when your callback object's method is called. To complete the operation, pass the reference to the End... method that corresponds to the Begin... method that starts the operation. For example, if the asynchronous method is named BeginRead, call the EndRead method. For more information, see Calling Asynchronous Methods.

If you are implementing an asynchronous method, call to create an instance of this object. For more information, see Writing an Asynchronous Method.

Any custom implementation of this interface must inherit the structure.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms700196 + IMFAsyncResult + IMFAsyncResult +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the state object specified by the caller in the asynchronous Begin method.

+
+

Receives a reference to the state object's interface. If the value is not null, the caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

There is no state object associated with this asynchronous result.

?

+ +

The caller of the asynchronous method specifies the state object, and can use it for any caller-defined purpose. The state object can be null. If the state object is null, GetState returns E_POINTER.

If you are implementing an asynchronous method, set the state object on the through the punkState parameter of the function.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970576 + HRESULT IMFAsyncResult::GetState([Out] void** ppunkState) + IMFAsyncResult::GetState +
+ + +

Returns the status of the asynchronous operation.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The operation completed successfully.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702095 + HRESULT IMFAsyncResult::GetStatus() + IMFAsyncResult::GetStatus +
+ + +

Sets the status of the asynchronous operation.

+
+

The status of the asynchronous operation.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If you implement an asynchronous method, call SetStatus to set the status code for the operation.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970435 + HRESULT IMFAsyncResult::SetStatus([In] HRESULT hrStatus) + IMFAsyncResult::SetStatus +
+ + +

Returns an object associated with the asynchronous operation. The type of object, if any, depends on the asynchronous method that was called.

+
+

Receives a reference to the object's interface. If no object is associated with the operation, this parameter receives the value null. If the value is not null, the caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

There is no object associated with this asynchronous result.

?

+ +

Typically, this object is used by the component that implements the asynchronous method. It provides a way for the function that invokes the callback to pass information to the asynchronous End... method that completes the operation.

If you are implementing an asynchronous method, you can set the object through the punkObject parameter of the function.

If the asynchronous result object's internal reference is null, the method returns E_POINTER.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970500 + HRESULT IMFAsyncResult::GetObjectW([Out] IUnknown** ppObject) + IMFAsyncResult::GetObjectW +
+ + +

Returns the state object specified by the caller in the asynchronous Begin method, without incrementing the object's reference count.

+
+

Returns a reference to the state object's interface, or null if no object was set. This reference does not have an outstanding reference count. If you store this reference, you must call AddRef on the reference.

+ +

This method cannot be called remotely.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696238 + IUnknown* IMFAsyncResult::GetStateNoAddRef() + IMFAsyncResult::GetStateNoAddRef +
+ + + Gets the state object specified by the caller in the asynchronous Begin method. If the value is not null, the caller must dispose. + + The state. + +

The caller of the asynchronous method specifies the state object, and can use it for any caller-defined purpose. The state object can be null. If the state object is null, GetState returns E_POINTER.

If you are implementing an asynchronous method, set the state object on the through the punkState parameter of the function.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ bb970576 + HRESULT IMFAsyncResult::GetState([Out] IUnknown** ppunkState) + IMFAsyncResult::GetState +
+ + +

Get or sets the status of the asynchronous operation.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The operation completed successfully.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms702095 + HRESULT IMFAsyncResult::GetStatus() + IMFAsyncResult::GetStatus +
+ + +

Applies to: desktop apps | Metro style apps

Returns an object associated with the asynchronous operation. The type of object, if any, depends on the asynchronous method that was called.

+
+

Receives a reference to the object's interface. If no object is associated with the operation, this parameter receives the value null. If the value is not null, the caller must release the interface.

+ +

Typically, this object is used by the component that implements the asynchronous method. It provides a way for the function that invokes the callback to pass information to the asynchronous End... method that completes the operation.

If you are implementing an asynchronous method, you can set the object through the punkObject parameter of the function.

If the asynchronous result object's internal reference is null, the method returns E_POINTER.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ bb970500 + HRESULT IMFAsyncResult::GetObjectW([Out] IUnknown** ppObject) + IMFAsyncResult::GetObjectW +
+ + + No documentation. + + + ff536174 + AEC_INPUT_STREAM + AEC_INPUT_STREAM + + + + No documentation. + + + ff536174 + AEC_CAPTURE_STREAM + AEC_CAPTURE_STREAM + + + + No documentation. + + + ff536174 + AEC_REFERENCE_STREAM + AEC_REFERENCE_STREAM + + + +

Specifies the processing mode for the voice capture DSP. This enumeration is used with the MFPKEY_WMAAECMA_SYSTEM_MODE property.

+
+ +

In all modes, the DSP applies noise suppression and automatic gain control by default. To disable noise suppression, set the MFPKEY_WMAAECMA_FEATR_NS property. To disable automatic gain control, set the MFPKEY_WMAAECMA_FEATR_AGC property.

+
+ + ff819068 + AEC_SYSTEM_MODE + AEC_SYSTEM_MODE +
+ + + No documentation. + + + ff819068 + SINGLE_CHANNEL_AEC + SINGLE_CHANNEL_AEC + + + + No documentation. + + + ff819068 + ADAPTIVE_ARRAY_ONLY + ADAPTIVE_ARRAY_ONLY + + + + No documentation. + + + ff819068 + OPTIBEAM_ARRAY_ONLY + OPTIBEAM_ARRAY_ONLY + + + + No documentation. + + + ff819068 + ADAPTIVE_ARRAY_AND_AEC + ADAPTIVE_ARRAY_AND_AEC + + + + No documentation. + + + ff819068 + OPTIBEAM_ARRAY_AND_AEC + OPTIBEAM_ARRAY_AND_AEC + + + + No documentation. + + + ff819068 + SINGLE_CHANNEL_NSAGC + SINGLE_CHANNEL_NSAGC + + + + No documentation. + + + ff819068 + MODE_NOT_SET + MODE_NOT_SET + + + +

Specifies the type of voice activity detection (VAD) for the voice capture DSP. This enumeration is used with the MFPKEY_WMAAECMA_FEATR_VAD property.

+
+ + ff819069 + AEC_VAD_MODE + AEC_VAD_MODE +
+ + + No documentation. + + + ff819069 + AEC_VAD_DISABLED + AEC_VAD_DISABLED + + + + No documentation. + + + ff819069 + AEC_VAD_NORMAL + AEC_VAD_NORMAL + + + + No documentation. + + + ff819069 + AEC_VAD_FOR_AGC + AEC_VAD_FOR_AGC + + + + No documentation. + + + ff819069 + AEC_VAD_FOR_SILENCE_SUPPRESSION + AEC_VAD_FOR_SILENCE_SUPPRESSION + + + + No documentation. + + + FILE_ACCESSMODE + FILE_ACCESSMODE + + + + No documentation. + + + ACCESSMODE_READ + ACCESSMODE_READ + + + + No documentation. + + + ACCESSMODE_WRITE + ACCESSMODE_WRITE + + + + No documentation. + + + ACCESSMODE_READWRITE + ACCESSMODE_READWRITE + + + + No documentation. + + + ACCESSMODE_WRITE_EXCLUSIVE + ACCESSMODE_WRITE_EXCLUSIVE + + + +

Specifies how to open or create a file.

+
+ + ms694164 + FILE_OPENMODE + FILE_OPENMODE +
+ + +

Open an existing file. Fail if the file does not exist.

+
+ + ms694164 + OPENMODE_FAIL_IF_NOT_EXIST + OPENMODE_FAIL_IF_NOT_EXIST +
+ + +

Create a new file. Fail if the file already exists.

+
+ + ms694164 + OPENMODE_FAIL_IF_EXIST + OPENMODE_FAIL_IF_EXIST +
+ + +

Open an existing file and truncate it, so that the size is zero bytes. Fail if the file does not already exist.

+
+ + ms694164 + OPENMODE_RESET_IF_EXIST + OPENMODE_RESET_IF_EXIST +
+ + +

If the file does not exist, create a new file. If the file exists, open it.

+
+ + ms694164 + OPENMODE_APPEND_IF_EXIST + OPENMODE_APPEND_IF_EXIST +
+ + +

Create a new file. If the file exists, overwrite the file.

+
+ + ms694164 + OPENMODE_DELETE_IF_EXIST + OPENMODE_DELETE_IF_EXIST +
+ + + No documentation. + + + MF_AUVRHP_ROOMMODEL + MF_AUVRHP_ROOMMODEL + + + + No documentation. + + + VRHP_SMALLROOM + VRHP_SMALLROOM + + + + No documentation. + + + VRHP_MEDIUMROOM + VRHP_MEDIUMROOM + + + + No documentation. + + + VRHP_BIGROOM + VRHP_BIGROOM + + + + No documentation. + + + VRHP_CUSTUMIZEDROOM + VRHP_CUSTUMIZEDROOM + + + +

Specifies how the voice capture DSP performs microphone array processing. This enumeration is used with the MFPKEY_WMAAECMA_FEATR_MICARR_MODE property.

+
+ + ff819453 + MIC_ARRAY_MODE + MIC_ARRAY_MODE +
+ + + No documentation. + + + ff819453 + MICARRAY_SINGLE_CHAN + MICARRAY_SINGLE_CHAN + + + + No documentation. + + + ff819453 + MICARRAY_SIMPLE_SUM + MICARRAY_SIMPLE_SUM + + + + No documentation. + + + ff819453 + MICARRAY_SINGLE_BEAM + MICARRAY_SINGLE_BEAM + + + + No documentation. + + + ff819453 + MICARRAY_FIXED_BEAM + MICARRAY_FIXED_BEAM + + + + No documentation. + + + ff819453 + MICARRAY_EXTERN_BEAM + MICARRAY_EXTERN_BEAM + + + + When overridden in a derived class, sets the position within the current stream.

Namespace: System.IOAssembly: mscorlib (in mscorlib.dll)Public MustOverride Function Seek ( _ offset As Long, _ origin As SeekOrigin _ + ) As LongDim instance As Stream + Dim offset As Long + Dim origin As SeekOrigin + Dim returnValue As Long returnValue = instance.Seek(offset, origin)public abstract long Seek ( long offset, SeekOrigin origin + )public: + virtual long long Seek ( long long offset, SeekOrigin origin + ) abstractpublic abstract long Seek ( long offset, SeekOrigin origin + )public abstract function Seek ( offset : long, origin : SeekOrigin + ) : longNot applicable.

Parameters
offset

A byte offset relative to the origin parameter.

origin

A value of type SeekOrigin indicating the reference point used to obtain the new position.

Return Value The new position within the current stream.
Exception typeCondition

IOException

An I/O error occurs.

NotSupportedException

The stream does not support seeking, such as if the stream is constructed from a pipe or console output.

ObjectDisposedException

Methods were called after the stream was closed.

For an example of creating a file and writing text to a file, see Writing Text to a File. For an example of reading text from a file, see Reading Text from a File. For an example of reading from and writing to a binary file, see Reading and Writing to a Newly Created Data File.

Use the CanSeek property to determine whether the current instance supports seeking.

If offset is negative, the new position is required to precede the position specified by origin by the number of bytes specified by offset. If offset is zero (0), the new position is required to be the position specified by origin. If offset is positive, the new position is required to follow the position specified by origin by the number of bytes specified by offset.

Classes derived from Stream that support seeking must override this method to provide the functionality described above.

Seeking to any location beyond the length of the stream is supported.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1. .NET FrameworkSupported in: 3.0, 2.0, 1.1, 1.0.NET Compact FrameworkSupported in: 2.0, 1.0XNA FrameworkSupported in: 1.0ReferenceStream ClassStream MembersSystem.IO NamespaceOther ResourcesFile and Stream I/OReading Text from a FileWriting Text to a File +
+ + system.io.stream.seek + SEEK_ORIGIN + SEEK_ORIGIN +
+ + +

A byte offset relative to the origin parameter.

+
+ + system.io.stream.seek + _msoBegin + _msoBegin +
+ + + No documentation. + + + system.io.stream.seek + _msoCurrent + _msoCurrent + + + +

The enumeration contains members that specify the position type of a table of contents.

+
+ +

Currently, only is supported.

+
+ + ff819475 + TOC_POS_TYPE + TOC_POS_TYPE +
+ + + No documentation. + + + ff819475 + TOC_POS_INHEADER + TOC_POS_INHEADER + + + + No documentation. + + + ff819475 + TOC_POS_TOPLEVELOBJECT + TOC_POS_TOPLEVELOBJECT + + + +

Defines the data types used for the codec and DSP properties that are accessed by using the methods of the interface.

+
+ +

Most properties are accessed by using the methods of the interface. The data types of those properties are defined as constants used with VARIANTARG values.

+
+ + ff819511 + WMT_PROP_DATATYPE + WMT_PROP_DATATYPE +
+ + + No documentation. + + + ff819511 + WMT_PROP_TYPE_DWORD + WMT_PROP_TYPE_DWORD + + + + No documentation. + + + ff819511 + WMT_PROP_TYPE_STRING + WMT_PROP_TYPE_STRING + + + + No documentation. + + + ff819511 + WMT_PROP_TYPE_BINARY + WMT_PROP_TYPE_BINARY + + + + No documentation. + + + ff819511 + WMT_PROP_TYPE_BOOL + WMT_PROP_TYPE_BOOL + + + + No documentation. + + + ff819511 + WMT_PROP_TYPE_QWORD + WMT_PROP_TYPE_QWORD + + + + No documentation. + + + ff819511 + WMT_PROP_TYPE_WORD + WMT_PROP_TYPE_WORD + + + + No documentation. + + + ff819511 + WMT_PROP_TYPE_GUID + WMT_PROP_TYPE_GUID + + + + No documentation. + + + IClusterDetector + IClusterDetector + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IClusterDetector::Initialize([In] unsigned short wBaseEntryLevel,[In] unsigned short wClusterEntryLevel) + IClusterDetector::Initialize + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IClusterDetector::Detect([In] unsigned int dwMaxNumClusters,[In] float fMinClusterDuration,[In] float fMaxClusterDuration,[In] IToc* pSrcToc,[In] IToc** ppDstToc) + IClusterDetector::Detect + + + +

Configures the "leaky bucket" parameters on a video encoder.

This interface is implemented by all of the encoder objects. You can get a reference to the interface for a Windows Media video encoder by calling the QueryInterface method of any other interface on the object, such as or . This interface is not implemented on any of the decoders.

+
+ + ff819233 + IWMCodecLeakyBucket + IWMCodecLeakyBucket +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the buffer size in bits. +

+
+

The buffer size, in bits.

+

This method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is not implemented on the audio encoder objects. If you call this method from the interface it returns E_NOTIMPL.

The buffer size is equal to the bit rate of the stream multiplied by the buffer window. For example, a stream with a bit rate of 28 kilobits per second with a buffer window of 3 seconds would have a buffer of 28000 bits per second x 3 seconds = 84000 bits.

This method is an alternative to setting the MFPKEY_VIDEOWINDOW property. Using this method does not alter the bit rate of the stream, but does alter the buffer window. Using the stream with a bit rate of 28000 bits per second from the previous example, setting the buffer size to 84000 using this method would have exactly the same effect as setting MFPKEY_VIDEOWINDOW to 3000 milliseconds (3 seconds).

+
+ + ff819235 + HRESULT IWMCodecLeakyBucket::SetBufferSizeBits([In] unsigned int ulBufferSize) + IWMCodecLeakyBucket::SetBufferSizeBits +
+ + +

Retrieves the current size of the buffer in bits. +

+
+

Pointer to a variable containing the buffer size, in bits.

+

This method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The buffer size is equal to the bit rate of the stream multiplied by the buffer window. For example, a stream with a bit rate of 28 kilobits per second with a buffer window of 3 seconds would have a buffer of 28000 bits per second x 3 seconds = 84000 bits.

+
+ + ff819232 + HRESULT IWMCodecLeakyBucket::GetBufferSizeBits([In] unsigned int* pulBufferSize) + IWMCodecLeakyBucket::GetBufferSizeBits +
+ + +

Not implemented in this release. +

+
+
+

This method always returns E_NOTIMPL.

+ + ff819234 + HRESULT IWMCodecLeakyBucket::SetBufferFullnessBits([In] unsigned int ulBufferFullness) + IWMCodecLeakyBucket::SetBufferFullnessBits +
+ + +

Not implemented in this release. +

+
+
+

This method always returns E_NOTIMPL.

+ + ff819231 + HRESULT IWMCodecLeakyBucket::GetBufferFullnessBits([In] unsigned int* pulBufferFullness) + IWMCodecLeakyBucket::GetBufferFullnessBits +
+ + +

Gets the time stamp of the next video frame to be decoded.

This interface is implemented by the video decoders. You can obtain a reference to by calling the QueryInterface method of any other interface of the decoder object, such as or .

+
+ + ff819237 + IWMCodecOutputTimestamp + IWMCodecOutputTimestamp +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Queries the decoder for the time stamp of the upcoming output sample. Use this method if you need to know the time of the sample before calling or to get the sample. +

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is important when decoding video using frame interpolation, because the rendering application cannot predict the time stamps of interpolated frames.

+
+ + ff819236 + HRESULT IWMCodecOutputTimestamp::GetNextOutputTime([In] longlong* prtTime) + IWMCodecOutputTimestamp::GetNextOutputTime +
+ + +

Gets the private codec data that must be appended to the output media type. This codec data is required for properly decoding Windows Media Video content.

This interface is implemented by the video encoder object and the screen capture encoder object. You do not need codec private data to decode content of the subtype WMCMEDIASUBTYPE_WMV1 (Windows Media Video version 7). For any other output type, you must obtain a reference to the encoder's interface by calling the QueryInterface method of any other interface on the object, such as or .

+
+ + ff819239 + IWMCodecPrivateData + IWMCodecPrivateData +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gives the codec the output media type without the codec data. This enables the codec to generate the private data. +

+
+

Address of the partial output media type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The that you pass to this method is only partial in that it does not include the appended private data. It must be complete in all other ways.

If you are setting properties on an encoder, you must finish that configuration before getting the private data. Changing properties invalidates any private data previously retrieved. If you change properties after getting the private data, retrieve it again and reset the output type.

You must call this method before calling to get the private data.

+
+ + ff819240 + HRESULT IWMCodecPrivateData::SetPartialOutputType([In] DMO_MEDIA_TYPE* pmt) + IWMCodecPrivateData::SetPartialOutputType +
+ + +

Retrieves the codec data for the video content based on the output type passed using the method. +

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If you are setting properties on the encoder object, you must finish that configuration before getting the private data. Changing properties invalidates any private data that was previously retrieved. If you change properties after getting the private data, retrieve it again and reset the output type.

You must call this method after providing the codec with the output media type (without the private data appended) by calling .

After retrieving the private data, allocate a buffer the size of plus pcbData. Then copy the data from your partial output type to the beginning of the buffer and append the private data.

+
+ + ff819238 + HRESULT IWMCodecPrivateData::GetPrivateData([In] unsigned char* pbData,[In] unsigned int* pcbData) + IWMCodecPrivateData::GetPrivateData +
+ + +

Gives the codec the output media type without the codec data. This enables the codec to generate the private data. +

+
+ +

The that you pass to this method is only partial in that it does not include the appended private data. It must be complete in all other ways.

If you are setting properties on an encoder, you must finish that configuration before getting the private data. Changing properties invalidates any private data previously retrieved. If you change properties after getting the private data, retrieve it again and reset the output type.

You must call this method before calling to get the private data.

+
+ + ff819240 + SetPartialOutputType + SetPartialOutputType + HRESULT IWMCodecPrivateData::SetPartialOutputType([In] DMO_MEDIA_TYPE* pmt) +
+ + +

Provides methods that retrieve format-specific codec properties.

This interface is implemented by the video encoder objects. You can obtain a reference to by calling the QueryInterface method of any other interface on the object, such as or .

This interface enables you to receive information about a specific media type that is supported by a video encoder.

+
+ + ff819243 + IWMCodecProps + IWMCodecProps +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a format property for an output media type. Use this method to get information about enumerated audio formats. +

+
+

Pointer to the output media type.

+

Wide-character, null-terminated string containing the property name. The properties listed in the following table are supported only through the interface.

Property name constantMeaning
g_wszSpeechFormatCaps

Retrieves the speech modes available for the format (used only by the Windows Media Audio 9 Voice codec). Value contains flags identical to the values used to specify the mode for MFPKEY_WMAVOICE_ENC_MusicSpeechClassMode.

?

The properties in the following list are also supported. They are used with for video.

  • MFPKEY_VBRENABLED
  • MFPKEY_VBRQUALITY
+

Address of a variable that receives the data type of the property value.

+

Address of the byte buffer that receives the property value.

+

Pointer to the size of the value buffer, in bytes. If pValue is null, the method will set this value to the size required.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ff819242 + HRESULT IWMCodecProps::GetFormatProp([In] DMO_MEDIA_TYPE* pmt,[In] const wchar_t* pszName,[In] WMT_PROP_DATATYPE* pType,[In] unsigned char* pValue,[In] unsigned int* pdwSize) + IWMCodecProps::GetFormatProp +
+ + +

Retrieves a codec property specific to an output format. +

+
+

The output format to which the property applies. Set this value to the FOURCC value of the desired video format.

+

Wide-character, null-terminated string containing the property name. The properties listed in the following table are supported only through the interface.

Property name constantMeaning
g_wszWMCPCodecName

Retrieves the name of the codec that is associated with the format (or FOURCC). This is an alternative to the interface.

g_wszWMCPSupportedVBRModes

Retrieves the encoding modes supported by the codec. The value returned contains one or more of the following flags:

  • WM_CODEC_ONEPASS_CBR
  • WM_CODEC_ONEPASS_VBR
  • WM_CODEC_TWOPASS_CBR
  • WM_CODEC_TWOPASS_VBR_UNCONSTRAINED
  • WM_CODEC_TWOPASS_VBR_PEAKCONSTRAINED

?

+

Address of a variable that receives the data type of the property value.

+

Address of the byte buffer that receives the property value.

+

Pointer to the size of the value buffer, in bytes. If pValue is null, the method will set this value to the size required.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819241 + HRESULT IWMCodecProps::GetCodecProp([In] unsigned int dwFormat,[In] const wchar_t* pszName,[In] WMT_PROP_DATATYPE* pType,[In] unsigned char* pValue,[In] unsigned int* pdwSize) + IWMCodecProps::GetCodecProp +
+ + +

Retrieves names and descriptive strings for codecs and formats.

This interface is implemented by all of the codec encoder objects. You can retrieve a reference to the interface for any encoder by calling the QueryInterface method of any other interface on the object, such as or , This interface is not implemented on any of the decoder DMOs.

+
+ + ff819246 + IWMCodecStrings + IWMCodecStrings +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the name of a codec. +

+
+

Pointer to the output media type. If null, the codec will use the media type that is currently set.

+

Size of szName buffer in wide characters.

+

Address of the wide-character buffer that receives the name. If null, pcchLength receives the required length.

+

Pointer to the required buffer length in wide characters, including the null terminating character.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819245 + HRESULT IWMCodecStrings::GetName([In] DMO_MEDIA_TYPE* pmt,[In] unsigned int cchLength,[Out, Buffer, Optional] wchar_t* szName,[In] unsigned int* pcchLength) + IWMCodecStrings::GetName +
+ + +

Retrieves the description of an output format. +

+
+

Pointer to the output media type. If null, the codec will use the media type that is currently set.

+

Size of szDescription buffer, in wide characters.

+

Address of the wide-character buffer that receives the description. If null, pcchLength receives the required length.

+

Pointer to the required buffer length in wide characters, including the null terminating character.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819244 + HRESULT IWMCodecStrings::GetDescription([In] DMO_MEDIA_TYPE* pmt,[In] unsigned int cchLength,[Out, Buffer, Optional] wchar_t* szDescription,[In] unsigned int* pcchLength) + IWMCodecStrings::GetDescription +
+ + +

Sets properties on the color converter DSP.

+
+ + ff819247 + IWMColorConvProps + IWMColorConvProps +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies whether the input video stream is interlaced. +

+
+

Specifies one of the following values.

ValueMeaning
0

Progressive video

2

Interlaced video

?

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

By default, the color converter uses the input media type to determine whether the video is interlaced. You can call this method to override the media type setting.

This method is equivalent to setting the MFPKEY_COLORCONV_MODE property.

+
+ + ff819249 + HRESULT IWMColorConvProps::SetMode([In] int lMode) + IWMColorConvProps::SetMode +
+ + +

Sets the source and destination rectangles. +

+
+

Specifies the left edge of the source rectangle, in pixels.

+

Specifies the top edge of the source rectangle, in pixels.

+

Specifies the left edge of the destination rectangle, in pixels.

+

Specifies the top edge of the destination rectangle, in pixels.

+

Specifies the width of the source and destination rectangles, in pixels.

+

Specifies the height of the source and destination rectangles, in pixels.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

By default, the color converter copies the entire video frame. When you call this method, the color converter crops the video to the source rectangle and copies that portion to the destination rectangle.

This method is equivalent to setting the following properties:

  • MFPKEY_COLORCONV_SRCLEFT
  • MFPKEY_COLORCONV_SRCTOP
  • MFPKEY_COLORCONV_DSTLEFT
  • MFPKEY_COLORCONV_DSTTOP
  • MFPKEY_COLORCONV_WIDTH
  • MFPKEY_COLORCONV_HEIGHT
+
+ + ff819248 + HRESULT IWMColorConvProps::SetFullCroppingParam([In] int lSrcCropLeft,[In] int lSrcCropTop,[In] int lDstCropLeft,[In] int lDstCropTop,[In] int lCropWidth,[In] int lCropHeight) + IWMColorConvProps::SetFullCroppingParam +
+ + +

Specifies whether the input video stream is interlaced. +

+
+ +

By default, the color converter uses the input media type to determine whether the video is interlaced. You can call this method to override the media type setting.

This method is equivalent to setting the MFPKEY_COLORCONV_MODE property.

+
+ + ff819249 + SetMode + SetMode + HRESULT IWMColorConvProps::SetMode([In] int lMode) +
+ + + No documentation. + + + IWMColorLegalizerProps + IWMColorLegalizerProps + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IWMColorLegalizerProps::SetColorLegalizerQuality([In] int lquality) + IWMColorLegalizerProps::SetColorLegalizerQuality + + + + No documentation. + + + SetColorLegalizerQuality + SetColorLegalizerQuality + HRESULT IWMColorLegalizerProps::SetColorLegalizerQuality([In] int lquality) + + + + No documentation. + + + IFileClient + IFileClient + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileClient::GetObjectDiskSize([In] unsigned longlong* pqwSize) + IFileClient::GetObjectDiskSize + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileClient::Write([In] IFileIo* pFio) + IFileClient::Write + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileClient::Read([In] IFileIo* pFio) + IFileClient::Read + + + + No documentation. + + + IFileIo + IFileIo + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IFileIo::Initialize([In] FILE_ACCESSMODE eAccessMode,[In] FILE_OPENMODE eOpenMode,[In] const wchar_t* pwszFileName) + IFileIo::Initialize + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileIo::GetLength([In] unsigned longlong* pqwLength) + IFileIo::GetLength + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileIo::SetLength([In] unsigned longlong qwLength) + IFileIo::SetLength + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileIo::GetCurrentPosition([In] unsigned longlong* pqwPosition) + IFileIo::GetCurrentPosition + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileIo::SetCurrentPosition([In] unsigned longlong qwPosition) + IFileIo::SetCurrentPosition + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IFileIo::IsEndOfStream([In] BOOL* pbEndOfStream) + IFileIo::IsEndOfStream + + + +

The following code examples show how to read text from a text file. The second example notifies you when the end of the file is detected. This functionality can also be achieved by using the ReadAllLines or ReadAllText methods.

Example Imports System + Imports System.IO Class Test Public Shared Sub Main() Try ' Create an instance of StreamReader to read from a file. Using sr As StreamReader = New StreamReader("TestFile.txt") Dim line As String ' Read and display the lines from the file until the end ' of the file is reached. Do line = sr.ReadLine() Console.WriteLine(Line) Loop Until line Is Nothing sr.Close() End Using Catch E As Exception ' Let the user know what went wrong. Console.WriteLine("The file could not be read:") Console.WriteLine(E.Message) End Try End Sub + End Class using System; + using System.IO; class Test + { public static void Main() { try { // Create an instance of StreamReader to read from a file. // The using statement also closes the StreamReader. using (StreamReader sr = new StreamReader("TestFile.txt")) { String line; // Read and display lines from the file until the end of // the file is reached. while ((line = sr.ReadLine()) != null) { Console.WriteLine(line); } } } catch (Exception e) { // Let the user know what went wrong. Console.WriteLine("The file could not be read:"); Console.WriteLine(e.Message); } } + } Option Explicit On + Option Strict On + Imports System + Imports System.IO + Public Class TextFromFile Private Const FILE_NAME As String = "MyFile.txt" Public Shared Sub Main() If Not File.Exists(FILE_NAME) Then Console.WriteLine("{0} does not exist.", FILE_NAME) Return End If Using sr As StreamReader = File.OpenText(FILE_NAME) Dim input As String input = sr.ReadLine() While Not input Is Nothing Console.WriteLine(input) input = sr.ReadLine() End While Console.WriteLine("The end of the stream has been reached.") sr.Close() End Using End Sub + End Class using System; + using System.IO; + public class TextFromFile + { private const string FILE_NAME = "MyFile.txt"; public static void Main(String[] args) { if (!File.Exists(FILE_NAME)) { Console.WriteLine("{0} does not exist.", FILE_NAME); return; } using (StreamReader sr = File.OpenText(FILE_NAME)) { String input; while ((input=sr.ReadLine())!=null) { Console.WriteLine(input); } Console.WriteLine ("The end of the stream has been reached."); sr.Close(); } } Robust Programming

This code creates a StreamReader that points to MyFile.txt through a call to File.OpenText. StreamReader.ReadLine returns each line as a string. When there are no more characters to read, a message is displayed to that effect, and the stream is closed.

Note

Visual Basic users may choose to use the methods and properties provided by the My.Computer.FileSystem object for file I/O. For more information, see My.Computer.FileSystem Object.

See AlsoTasksHow to: Create a Directory ListingHow to: Read and Write to a Newly Created Data FileHow to: Open and Append to a Log FileHow to: Write Text to a FileHow to: Read Characters from a StringHow to: Write Characters to a StringReferenceStreamReaderFile.OpenTextStreamReader.ReadLineConceptsBasic File I/O +
+ No documentation. + No documentation. + No documentation. + No documentation. + + db5x7c0d + HRESULT IFileIo::Read([In] unsigned char* pbt,[In] unsigned int ul,[In] unsigned int* pulRead) + IFileIo::Read +
+ + +

The following code examples show how to write text to a text file.

The first example shows how to add text to an existing file. The second example shows how to create a new text file and write a string to it. Similar functionality can be provided by the WriteAllText methods.

Note

Visual Basic users may choose to use the methods and properties provided by the My.Computer.FileSystem object for file I/O. For more information, see My.Computer.FileSystem Object.

Example Imports System + Imports System.IO Class Test Public Shared Sub Main() ' Create an instance of StreamWriter to write text to a file. Using sw As StreamWriter = New StreamWriter("TestFile.txt") ' Add some text to the file. sw.Write("This is the ") sw.WriteLine("header for the file.") sw.WriteLine("-------------------") ' Arbitrary objects can also be written to the file. sw.Write("The date is: ") sw.WriteLine(DateTime.Now) sw.Close() End Using End Sub + End Class using System; + using System.IO; class Test + { public static void Main() { // Create an instance of StreamWriter to write text to a file. // The using statement also closes the StreamWriter. using (StreamWriter sw = new StreamWriter("TestFile.txt")) { // Add some text to the file. sw.Write("This is the "); sw.WriteLine("header for the file."); sw.WriteLine("-------------------"); // Arbitrary objects can also be written to the file. sw.Write("The date is: "); sw.WriteLine(DateTime.Now); } } + } Option Explicit On + Option Strict On + Imports System + Imports System.IO + Public Class TextToFile Private Const FILE_NAME As String = "MyFile.txt" Public Shared Sub Main() If File.Exists(FILE_NAME) Then Console.WriteLine("{0} already exists.", FILE_NAME) Return End If Using sw As StreamWriter = File.CreateText(FILE_NAME) sw.WriteLine("This is my file.") sw.WriteLine("I can write ints {0} or floats {1}, and so on.", 1, 4.2) sw.Close() End Using End Sub + End Class using System; + using System.IO; + public class TextToFile + { private const string FILE_NAME = "MyFile.txt"; public static void Main(String[] args) { if (File.Exists(FILE_NAME)) { Console.WriteLine("{0} already exists.", FILE_NAME); return; } using (StreamWriter sw = File.CreateText(FILE_NAME)) { sw.WriteLine ("This is my file."); sw.WriteLine ("I can write ints {0} or floats {1}, and so on.", 1, 4.2); sw.Close(); } } + } See AlsoTasksHow to: Create a Directory ListingHow to: Read and Write to a Newly Created Data FileHow to: Open and Append to a Log FileHow to: Read Text from a FileHow to: Read Characters from a StringHow to: Write Characters to a StringReferenceStreamWriterFile.CreateTextConceptsBasic File I/O +
+ No documentation. + No documentation. + No documentation. + No documentation. + + 6ka1wd3w + HRESULT IFileIo::Write([In] unsigned char* pbt,[In] unsigned int ul,[In] unsigned int* pulWritten) + IFileIo::Write +
+ + + Sets the current position of this stream to the given value.

Namespace: System.IOAssembly: mscorlib (in mscorlib.dll)Public Overrides Function Seek ( _ offset As Long, _ origin As SeekOrigin _ + ) As LongDim instance As FileStream + Dim offset As Long + Dim origin As SeekOrigin + Dim returnValue As Long returnValue = instance.Seek(offset, origin)public override long Seek ( long offset, SeekOrigin origin + )public: + virtual long long Seek ( long long offset, SeekOrigin origin + ) overridepublic long Seek ( long offset, SeekOrigin origin + )public override function Seek ( offset : long, origin : SeekOrigin + ) : longNot applicable.

Parameters
offset

The point relative to origin from which to begin seeking.

origin

Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type SeekOrigin.

Return Value The new position in the stream.
Exception typeCondition

IOException

An I/O error occurs.

NotSupportedException

The stream does not support seeking, such as if the FileStream is constructed from a pipe or console output.

ArgumentException

Attempted seeking before the beginning of the stream.

ObjectDisposedException

Methods were called after the stream was closed.

This method overrides Seek.

Note:

Use the CanSeek property to determine whether the current instance supports seeking. For additional information, see CanSeek.

Seeking to any location beyond the length of the stream is supported. When you seek beyond the length of the file, the file size grows. In Microsoft Windows NT and greater, any data added to the end of the file is set to zero. In Microsoft Windows 98 or earlier, any data added to the end of the file is not set to zero, which means that previously deleted data is visible to the stream.

For a list of common I/O tasks, see Common I/O Tasks.

The following code example shows how to write data to a file, byte by byte, and then verify that the data was written correctly.

Imports Microsoft.VisualBasic + Imports System + Imports System.IO + Imports System.Text Class FStream Shared Sub Main() Const fileName As String = "Test#@@#.dat" ' Create random data to write to the file. Dim dataArray(100000) As Byte Dim randomGenerator As New Random() randomGenerator.NextBytes(dataArray) Dim fileStream As FileStream = _ new FileStream(fileName, FileMode.Create) Try ' Write the data to the file, byte by byte. For i As Integer = 0 To dataArray.Length - 1 fileStream.WriteByte(dataArray(i)) Next i ' Set the stream position to the beginning of the stream. fileStream.Seek(0, SeekOrigin.Begin) ' Read and verify the data. For i As Integer = 0 To _ CType(fileStream.Length, Integer) - 1 If dataArray(i) <> fileStream.ReadByte() Then Console.WriteLine("Error writing data.") Return End If Next i Console.WriteLine("The data was written to {0} " & _ "and verified.", fileStream.Name) Finally fileStream.Close() End Try End Sub + End Class + using System; + using System.IO; class FStream + { static void Main() { const string fileName = "Test#@@#.dat"; // Create random data to write to the file. byte[] dataArray = new byte[100000]; new Random().NextBytes(dataArray); using(FileStream fileStream = new FileStream(fileName, FileMode.Create)) { // Write the data to the file, byte by byte. for(int i = 0; i < dataArray.Length; i++) { fileStream.WriteByte(dataArray[i]); } // Set the stream position to the beginning of the file. fileStream.Seek(0, SeekOrigin.Begin); // Read and verify the data. for(int i = 0; i < fileStream.Length; i++) { if(dataArray[i] != fileStream.ReadByte()) { Console.WriteLine("Error writing data."); return; } } Console.WriteLine("The data was written to {0} " + "and verified.", fileStream.Name); } } + } + using namespace System; + using namespace System::IO; + int main() + { String^ fileName = "Test@##@.dat"; // Create random data to write to the file. array<Byte>^dataArray = gcnew array<Byte>(100000); (gcnew Random)->NextBytes( dataArray ); FileStream^ fileStream = gcnew FileStream( fileName,FileMode::Create ); try { // Write the data to the file, byte by byte. for ( int i = 0; i < dataArray->Length; i++ ) { fileStream->WriteByte( dataArray[ i ] ); } // Set the stream position to the beginning of the file. fileStream->Seek( 0, SeekOrigin::Begin ); // Read and verify the data. for ( int i = 0; i < fileStream->Length; i++ ) { if ( dataArray[ i ] != fileStream->ReadByte() ) { Console::WriteLine( "Error writing data." ); return -1; } } Console::WriteLine( "The data was written to {0} " "and verified.", fileStream->Name ); } finally { fileStream->Close(); } } import System.*; + import System.IO.*; class FStream + { public static void main(String[] args) { final String fileName = "Test#@@#.dat"; // Create random data to write to the file. ubyte dataArray[] = new ubyte[100000]; new Random().NextBytes(dataArray); FileStream fileStream = new FileStream(fileName, FileMode.Create); try { // Write the data to the file, byte by byte. for(int i=0;i < dataArray.length;i++) { fileStream.WriteByte(dataArray[i]); } // Set the stream position to the beginning of the file. fileStream.Seek(0, SeekOrigin.Begin); // Read and verify the data. for(int i=0;i < fileStream.get_Length();i++) { if ( dataArray[i] != fileStream.ReadByte() ) { Console.WriteLine("Error writing data."); return; } } Console.WriteLine("The data was written to {0} " + "and verified.", fileStream.get_Name()); } finally { fileStream.Dispose(); } } //main + } //FStream +

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1. .NET FrameworkSupported in: 3.0, 2.0, 1.1, 1.0.NET Compact FrameworkSupported in: 2.0, 1.0XNA FrameworkSupported in: 1.0ReferenceFileStream ClassFileStream MembersSystem.IO NamespaceOther ResourcesFile and Stream I/OReading Text from a FileWriting Text to a File +
+

The point relative to origin from which to begin seeking.

+ No documentation. + No documentation. + No documentation. + No documentation. + + system.io.filestream.seek + HRESULT IFileIo::Seek([In] SEEK_ORIGIN eSeekOrigin,[In] unsigned longlong qwSeekOffset,[In] unsigned int dwSeekFlags,[In] unsigned longlong* pqwCurrentPosition) + IFileIo::Seek +
+ + + Provides static methods for the creation, copying, deletion, moving, and opening of files, and aids in the creation of FileStream objects.

Namespace: System.IOAssembly: mscorlib (in mscorlib.dll)<ComVisibleAttribute(True)> _ + Public NotInheritable Class File[ComVisibleAttribute(true)] + public static class File[ComVisibleAttribute(true)] + public ref class File abstract sealed/** @attribute ComVisibleAttribute(true) */ + public final class FileComVisibleAttribute(true) + public final class FileNot applicable.

Use the File class for typical operations such as copying, moving, renaming, creating, opening, deleting, and appending to files. You can also use the File class to get and set file attributes or DateTime information related to the creation, access, and writing of a file.

Many of the File methods return other I/O types when you create or open files. You can use these other types to further manipulate a file. For more information, see specific File members such as OpenText, CreateText, or Create.

Because all File methods are static, it might be more efficient to use a File method rather than a corresponding FileInfo instance method if you want to perform only one action. All File methods require the path to the file that you are manipulating.

The static methods of the File class perform security checks on all methods. If you are going to reuse an object several times, consider using the corresponding instance method of FileInfo instead, because the security check will not always be necessary.

By default, full read/write access to new files is granted to all users.

The following table describes the enumerations that are used to customize the behavior of various File methods.

Enumeration

Description

FileAccess

Specifies read and write access to a file.

FileShare

Specifies the level of access permitted for a file that is already in use.

FileMode

Specifies whether the contents of an existing file are preserved or overwritten, and whether requests to create an existing file cause an exception.

Note:

In members that accept a path as an input string, that path must be well-formed or an exception is raised. For example, if a path is fully qualified but begins with a space, the path is not trimmed in methods of the class. Therefore, the path is malformed and an exception is raised. Similarly, a path or a combination of paths cannot be fully qualified twice. For example, "c:\temp c:\windows" also raises an exception in most cases. Ensure that your paths are well-formed when using methods that accept a path string.

In members that accept a path, the path can refer to a file or just a directory. The specified path can also refer to a relative path or a Universal Naming Convention (UNC) path for a server and share name. For example, all the following are acceptable paths:

  • "c:\\MyDir\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.

  • "c:\\MyDir" in C#, or "c:\MyDir" in Visual Basic.

  • "MyDir\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.

  • "\\\\MyServer\\MyShare" in C#, or "\\MyServer\MyShare" in Visual Basic.

For a list of common I/O tasks, see Common I/O Tasks.

The following example demonstrates some of the main members of the File class.

Imports System + Imports System.IO Public Class Test Public Shared Sub Main() Dim path As String = "c:\temp\MyTest.txt" If File.Exists(path) = False Then ' Create a file to write to. Dim sw As StreamWriter = File.CreateText(path) sw.WriteLine("Hello") sw.WriteLine("And") sw.WriteLine("Welcome") sw.Flush() sw.Close() End If Try ' Open the file to read from. Dim sr As StreamReader = File.OpenText(path) Do While sr.Peek() >= 0 Console.WriteLine(sr.ReadLine()) Loop sr.Close() Dim path2 As String = path + "temp" ' Ensure that the target does not exist. File.Delete(path2) ' Copy the file. File.Copy(path, path2) Console.WriteLine("{0} was copied to {1}.", path, path2) ' Delete the newly created file. File.Delete(path2) Console.WriteLine("{0} was successfully deleted.", path2) Catch e As Exception Console.WriteLine("The process failed: {0}", e.ToString()) End Try End Sub + End Class + using System; + using System.IO; class Test + { public static void Main() { string path = @"c:\temp\MyTest.txt"; if (!File.Exists(path)) { // Create a file to write to. using (StreamWriter sw = File.CreateText(path)) { sw.WriteLine("Hello"); sw.WriteLine("And"); sw.WriteLine("Welcome"); } } // Open the file to read from. using (StreamReader sr = File.OpenText(path)) { string s = ""; while ((s = sr.ReadLine()) != null) { Console.WriteLine(s); } } try { string path2 = path + "temp"; // Ensure that the target does not exist. File.Delete(path2); // Copy the file. File.Copy(path, path2); Console.WriteLine("{0} was copied to {1}.", path, path2); // Delete the newly created file. File.Delete(path2); Console.WriteLine("{0} was successfully deleted.", path2); } catch (Exception e) { Console.WriteLine("The process failed: {0}", e.ToString()); } } + } + using namespace System; + using namespace System::IO; + int main() + { String^ path = "c:\\temp\\MyTest.txt"; if ( !File::Exists( path ) ) { // Create a file to write to. StreamWriter^ sw = File::CreateText( path ); try { sw->WriteLine( "Hello" ); sw->WriteLine( "And" ); sw->WriteLine( "Welcome" ); } finally { if ( sw ) delete (IDisposable^)(sw); } } // Open the file to read from. StreamReader^ sr = File::OpenText( path ); try { String^ s = ""; while ( s = sr->ReadLine() ) { Console::WriteLine( s ); } } finally { if ( sr ) delete (IDisposable^)(sr); } try { String^ path2 = String::Concat( path, "temp" ); // Ensure that the target does not exist. File::Delete( path2 ); // Copy the file. File::Copy( path, path2 ); Console::WriteLine( "{0} was copied to {1}.", path, path2 ); // Delete the newly created file. File::Delete( path2 ); Console::WriteLine( "{0} was successfully deleted.", path2 ); } catch ( Exception^ e ) { Console::WriteLine( "The process failed: {0}", e ); } + } + import System.*; + import System.IO.*; class Test + { public static void main(String[] args) { String path = "c:\\temp\\MyTest.txt"; if (!(File.Exists(path))) { // Create a file to write to. StreamWriter sw = File.CreateText(path); try { sw.WriteLine("Hello"); sw.WriteLine("And"); sw.WriteLine("Welcome"); } finally { sw.Dispose(); } } // Open the file to read from. StreamReader sr = File.OpenText(path); try { String s = ""; while ((s = sr.ReadLine()) != null) { Console.WriteLine(s); } } finally { sr.Dispose(); } try { String path2 = path + "temp"; // Ensure that the target does not exist. File.Delete(path2); // Copy the file. File.Copy(path, path2); Console.WriteLine("{0} was copied to {1}.", path, path2); // Delete the newly created file. File.Delete(path2); Console.WriteLine("{0} was successfully deleted.", path2); } catch (System.Exception e) { Console.WriteLine("The process failed: {0}", e.ToString()); } } //main + } //Test + System.Object ??System.IO.FileAny public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1. .NET FrameworkSupported in: 3.0, 2.0, 1.1, 1.0.NET Compact FrameworkSupported in: 2.0, 1.0XNA FrameworkSupported in: 1.0ReferenceFile MembersSystem.IO NamespaceDriveInfoOther ResourcesFile and Stream I/OReading Text from a FileWriting Text to a FileBasic File I/OReading and Writing to a Newly Created Data File +
+ No documentation. + + system.io.file + HRESULT IFileIo::Close() + IFileIo::Close +
+ + + No documentation. + + + SetLength + SetLength + HRESULT IFileIo::SetLength([In] unsigned longlong qwLength) + + + + No documentation. + + + SetCurrentPosition + SetCurrentPosition + HRESULT IFileIo::SetCurrentPosition([In] unsigned longlong qwPosition) + + + + No documentation. + + + IWMFrameInterpProps + IWMFrameInterpProps + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IWMFrameInterpProps::SetFrameRateIn([In] int lFrameRate,[In] int lScale) + IWMFrameInterpProps::SetFrameRateIn + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IWMFrameInterpProps::SetFrameRateOut([In] int lFrameRate,[In] int lScale) + IWMFrameInterpProps::SetFrameRateOut + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IWMFrameInterpProps::SetFrameInterpEnabled([In] BOOL bFIEnabled) + IWMFrameInterpProps::SetFrameInterpEnabled + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IWMFrameInterpProps::SetComplexityLevel([In] int iComplexity) + IWMFrameInterpProps::SetComplexityLevel + + + + No documentation. + + + SetFrameInterpEnabled + SetFrameInterpEnabled + HRESULT IWMFrameInterpProps::SetFrameInterpEnabled([In] BOOL bFIEnabled) + + + + No documentation. + + + SetComplexityLevel + SetComplexityLevel + HRESULT IWMFrameInterpProps::SetComplexityLevel([In] int iComplexity) + + + + No documentation. + + + IWMInterlaceProps + IWMInterlaceProps + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IWMInterlaceProps::SetProcessType([In] int iProcessType) + IWMInterlaceProps::SetProcessType + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IWMInterlaceProps::SetInitInverseTeleCinePattern([In] int iInitPattern) + IWMInterlaceProps::SetInitInverseTeleCinePattern + + + + No documentation. + + No documentation. + + HRESULT IWMInterlaceProps::SetLastFrame() + IWMInterlaceProps::SetLastFrame + + + + No documentation. + + + SetProcessType + SetProcessType + HRESULT IWMInterlaceProps::SetProcessType([In] int iProcessType) + + + + No documentation. + + + SetInitInverseTeleCinePattern + SetInitInverseTeleCinePattern + HRESULT IWMInterlaceProps::SetInitInverseTeleCinePattern([In] int iInitPattern) + + + +

Sets properties on the audio resampler DSP.

+
+ + ff819250 + IWMResamplerProps + IWMResamplerProps +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies the quality of the output. +

+
+

Specifies the quality of the output. The valid range is 1 to 60, inclusive.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is equivalent to setting the MFPKEY_WMRESAMP_FILTERQUALITY property.

+
+ + ff819251 + HRESULT IWMResamplerProps::SetHalfFilterLength([In] int lhalfFilterLen) + IWMResamplerProps::SetHalfFilterLength +
+ + +

Specifies the channel matrix. +

+
+

Pointer to an array of floating-point values that represents a channel conversion matrix.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is equivalent to setting the MFPKEY_WMRESAMP_CHANNELMTX property, except that the matrix is represented differently:

  • Values are floating point.
  • The matrix is transposed.

To convert from the integer values given in the MFPKEY_WMRESAMP_CHANNELMTX property to floating-point values, use the following formula:

(float)pow(10.0,((double)Coeff)/(65536.0*20.0))

where Coeff is an integer coefficient.

+
+ + ff819252 + HRESULT IWMResamplerProps::SetUserChannelMtx([In] float* userChannelMtx) + IWMResamplerProps::SetUserChannelMtx +
+ + +

Specifies the quality of the output. +

+
+ +

This method is equivalent to setting the MFPKEY_WMRESAMP_FILTERQUALITY property.

+
+ + ff819251 + SetHalfFilterLength + SetHalfFilterLength + HRESULT IWMResamplerProps::SetHalfFilterLength([In] int lhalfFilterLen) +
+ + +

Specifies the channel matrix. +

+
+ +

This method is equivalent to setting the MFPKEY_WMRESAMP_CHANNELMTX property, except that the matrix is represented differently:

  • Values are floating point.
  • The matrix is transposed.

To convert from the integer values given in the MFPKEY_WMRESAMP_CHANNELMTX property to floating-point values, use the following formula:

(float)pow(10.0,((double)Coeff)/(65536.0*20.0))

where Coeff is an integer coefficient.

+
+ + ff819252 + SetUserChannelMtx + SetUserChannelMtx + HRESULT IWMResamplerProps::SetUserChannelMtx([In] float* userChannelMtx) +
+ + +

Sets properties on the video resizer DSP.

+
+ + ff819254 + IWMResizerProps + IWMResizerProps +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies whether to use an algorithm that produces higher-quality video, or a faster algorithm. +

+
+

Boolean value. If TRUE, the video resizer uses an algorithm that produces higher-quality video. If , the video resizer uses a faster algorithm.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is equivalent to setting the MFPKEY_RESIZE_QUALITY property.

+
+ + ff819258 + HRESULT IWMResizerProps::SetResizerQuality([In] int lquality) + IWMResizerProps::SetResizerQuality +
+ + +

The SetInterlaceMode method specifies whether the input video stream is interlaced. +

+
+

Boolean value. If TRUE, the video is interlaced. If , the video is progressive.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is equivalent to setting the MFPKEY_RESIZE_INTERLACE property.

+
+ + ff819257 + HRESULT IWMResizerProps::SetInterlaceMode([In] int lmode) + IWMResizerProps::SetInterlaceMode +
+ + +

Sets the source rectangle. +

+
+

Specifies the left edge of the source rectangle, in pixels.

+

Specifies the top edge of the source rectangle, in pixels.

+

Specifies the width of the source rectangle, in pixels.

+

Specifies the height of the source rectangle, in pixels.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

By default, the video resizer copies the entire video frame. When you call this method, the video resizer crops the video to the source rectangle and copies that portion to the output buffer.

This method is equivalent to setting the following properties:

  • MFPKEY_RESIZE_SRC_LEFT
  • MFPKEY_RESIZE_SRC_TOP
  • MFPKEY_RESIZE_SRC_WIDTH
  • MFPKEY_RESIZE_SRC_HEIGHT
+
+ + ff819255 + HRESULT IWMResizerProps::SetClipRegion([In] int lClipOriXSrc,[In] int lClipOriYSrc,[In] int lClipWidthSrc,[In] int lClipHeightSrc) + IWMResizerProps::SetClipRegion +
+ + +

Sets the source and destination rectangles. +

+
+

Specifies the left edge of the source rectangle, in pixels.

+

Specifies the top edge of the source rectangle, in pixels.

+

Specifies the width of the source rectangle, in pixels.

+

Specifies the height of the source rectangle, in pixels.

+

Specifies the left edge of the destination rectangle, in pixels.

+

Specifies the top edge of the destination rectangle, in pixels.

+

Specifies the width of the destination rectangle, in pixels.

+

Specifies the height of the destination rectangle, in pixels.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

By default, the video resizer copies the entire video frame. When you call this method, the video resizer crops the video to the source rectangle and copies that portion to the destination rectangle.

This method is equivalent to setting the following properties:

  • MFPKEY_RESIZE_SRC_LEFT
  • MFPKEY_RESIZE_SRC_TOP
  • MFPKEY_RESIZE_SRC_WIDTH
  • MFPKEY_RESIZE_SRC_HEIGHT
  • MFPKEY_RESIZE_DST_LEFT
  • MFPKEY_RESIZE_DST_TOP
  • MFPKEY_RESIZE_DST_WIDTH
  • MFPKEY_RESIZE_DST_HEIGHT
+
+ + ff819256 + HRESULT IWMResizerProps::SetFullCropRegion([In] int lClipOriXSrc,[In] int lClipOriYSrc,[In] int lClipWidthSrc,[In] int lClipHeightSrc,[In] int lClipOriXDst,[In] int lClipOriYDst,[In] int lClipWidthDst,[In] int lClipHeightDst) + IWMResizerProps::SetFullCropRegion +
+ + +

Retrieves the source and destination rectangles. +

+
+

Receives the left edge of the source rectangle, in pixels.

+

Receives the top edge of the source rectangle, in pixels.

+

Receives the width of the source rectangle, in pixels.

+

Receives the height of the source rectangle, in pixels.

+

Receives the left edge of the destination rectangle, in pixels.

+

Receives the top edge of the destination rectangle, in pixels.

+

Receives the width of the destination rectangle, in pixels.

+

Receives the height of the destination rectangle, in pixels.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819253 + HRESULT IWMResizerProps::GetFullCropRegion([In] int* lClipOriXSrc,[In] int* lClipOriYSrc,[In] int* lClipWidthSrc,[In] int* lClipHeightSrc,[In] int* lClipOriXDst,[In] int* lClipOriYDst,[In] int* lClipWidthDst,[In] int* lClipHeightDst) + IWMResizerProps::GetFullCropRegion +
+ + +

Specifies whether to use an algorithm that produces higher-quality video, or a faster algorithm. +

+
+ +

This method is equivalent to setting the MFPKEY_RESIZE_QUALITY property.

+
+ + ff819258 + SetResizerQuality + SetResizerQuality + HRESULT IWMResizerProps::SetResizerQuality([In] int lquality) +
+ + +

The SetInterlaceMode method specifies whether the input video stream is interlaced. +

+
+ +

This method is equivalent to setting the MFPKEY_RESIZE_INTERLACE property.

+
+ + ff819257 + SetInterlaceMode + SetInterlaceMode + HRESULT IWMResizerProps::SetInterlaceMode([In] int lmode) +
+ + +

Configures codec support for sample extensions.

+
+ + ff819259 + IWMSampleExtensionSupport + IWMSampleExtensionSupport +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Configures whether the codec supports sample extensions. +

+
+

Flag, true indicating to use extensions.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819260 + HRESULT IWMSampleExtensionSupport::SetUseSampleExtensions([In] BOOL fUseExtensions) + IWMSampleExtensionSupport::SetUseSampleExtensions +
+ + +

Configures whether the codec supports sample extensions. +

+
+ + ff819260 + SetUseSampleExtensions + SetUseSampleExtensions + HRESULT IWMSampleExtensionSupport::SetUseSampleExtensions([In] BOOL fUseExtensions) +
+ + +

The interface represents an individual table of contents. It provides methods for adding entries to, and removing entries from the table of contents.

+
+ + ff819187 + IToc + IToc +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The SetDescriptor method associates a descriptor with the table of contents.

+
+

Pointer to a structure that contains the descriptor.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819230 + HRESULT IToc::SetDescriptor([In] TOC_DESCRIPTOR* pDescriptor) + IToc::SetDescriptor +
+ + +

The GetDescriptor method retrieves the descriptor, previously set by SetDescriptor, of the table of contents.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819224 + HRESULT IToc::GetDescriptor([In] TOC_DESCRIPTOR* pDescriptor) + IToc::GetDescriptor +
+ + +

The SetDescription method associates a description with the table of contents.

+
+

Pointer to a null-terminated, wide-character string that contains the description.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can use this method to associate any description with the table of contents. TOC parser does not inspect or interpret the description.

+
+ + ff819229 + HRESULT IToc::SetDescription([In] const wchar_t* pwszDescription) + IToc::SetDescription +
+ + +

The GetDescription method retrieves the description, set by a previous call to SetDescription, of the table of contents.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The method returns this error code if pwszDescription is not null and the description, including its null terminator, is larger than the size specified by pwDescriptionSize. In that case, pwDescriptionSize serves as an output parameter and receives the size of the required buffer.

?

+ + ff819223 + HRESULT IToc::GetDescription([In] unsigned short* pwDescriptionSize,[Out, Buffer, Optional] wchar_t* pwszDescription) + IToc::GetDescription +
+ + +

The SetContext method associates a caller-supplied context block with the table of contents.

+
+

The size, in bytes, of the context block.

+

Pointer to the first byte of the context block.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can use this method to associate any information with the table of contents. The type of information you store in the context block is completely up to you. TOC Parser does not inspect or interpret the context block.

+
+ + ff819228 + HRESULT IToc::SetContext([In] unsigned int dwContextSize,[In] unsigned char* pbtContext) + IToc::SetContext +
+ + +

The GetContext method retrieves a block of bytes that was previously associated with the table of contents by a call to SetContext.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The method returns this error code if pbtContext is not null and the context block is larger than the size specified by bdwContextSize. In that case, pdwContextSize serves as an output parameter and receives the size, in bytes, of the required buffer.

?

+ + ff819221 + HRESULT IToc::GetContext([In] unsigned int* pdwContextSize,[In] unsigned char* pbtContext) + IToc::GetContext +
+ + +

The GetEntryListCount method retrieves the number of entry lists in the table of contents.

+
+

Pointer to a WORD that receives the number of entry lists.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819226 + HRESULT IToc::GetEntryListCount([In] unsigned short* pwCount) + IToc::GetEntryListCount +
+ + +

The GetEntryListByIndex method retrieves an entry list, specified by an index, from the table of contents.

+
+

The index of the entry list to retrieve.

+

Pointer to a variable that receives a reference to an interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819225 + HRESULT IToc::GetEntryListByIndex([In] unsigned short wEntryListIndex,[In] ITocEntryList** ppEntryList) + IToc::GetEntryListByIndex +
+ + +

The AddEntryList method adds an entry list to the table of contents and assigns an index to the entry list.

+
+

Pointer to an interface that represents the entry list to be added.

+

Receives the index of the added entry list.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819219 + HRESULT IToc::AddEntryList([In] ITocEntryList* pEntryList,[In] unsigned short* pwEntryListIndex) + IToc::AddEntryList +
+ + +

The AddEntryListByIndex method adds an entry list to the table of contents and associates a caller-supplied index with the entry list.

+
+

The index, specified by the caller, to be associated with the entry list.

+

Pointer to an interface that represents the entry list to be added.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819220 + HRESULT IToc::AddEntryListByIndex([In] unsigned short wEntryListIndex,[In] ITocEntryList* pEntryList) + IToc::AddEntryListByIndex +
+ + +

The RemoveEntryListByIndex method removes an entry list, specified by an index, from the table of contents.

+
+

The index of the entry list to be removed.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819227 + HRESULT IToc::RemoveEntryListByIndex([In] unsigned short wEntryListIndex) + IToc::RemoveEntryListByIndex +
+ + +

The represents a collection of tables of contents. It provides methods for adding, retrieving, and removing, tables of contents from the collection.

+
+ + ff819188 + ITocCollection + ITocCollection +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The GetEntryCount method retrieves the number of tables of contents in the collection.

+
+

Pointer to a DWORD that receives the number of tables of contents.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In the context of an interface, the word entry refers to an indivdual table of contents. That meaning of the word entry is in contrast to its meaning in the context of other interfaces in the TOC Parser technology. For example, in the context of an interface, the word entry refers to a block of information, in a table of contents, that represents a section of a video file.

+
+ + ff819192 + HRESULT ITocCollection::GetEntryCount([In] unsigned int* pdwEntryCount) + ITocCollection::GetEntryCount +
+ + +

The GetEntryByIndex method retrieves a table of contents, specified by an index, from the collection.

+
+

Specifies the index of the table of contents to retrieve.

+

Pointer to a variable that receives a reference to an interface that represents the table of contents.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In the context of an interface, the word entry refers to an indivdual table of contents. That meaning of the word entry is in contrast to its meaning in the context of other interfaces in the TOC Parser technology. For example, in the context of an interface, the word entry refers to a block of information, in a table of contents, that represents a section of a video file.

+
+ + ff819191 + HRESULT ITocCollection::GetEntryByIndex([In] unsigned int dwEntryIndex,[In] IToc** ppToc) + ITocCollection::GetEntryByIndex +
+ + +

The AddEntry method adds an individual table of contents to the collection and assigns an index to the added table of contents.

+
+

Pointer to an interface that represents the table of contents to be added.

+

Pointer to a DWORD that receives the index of the added table of contents.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In the context of an interface, the word entry refers to an indivdual table of contents. That meaning of the word entry is in contrast to its meaning in the context of other interfaces in the TOC Parser technology. For example, in the context of an interface, the word entry refers to a block of information, in a table of contents, that represents a section of a video file.

+
+ + ff819189 + HRESULT ITocCollection::AddEntry([In] IToc* pToc,[In] unsigned int* pdwEntryIndex) + ITocCollection::AddEntry +
+ + +

The AddEntryByIndex adds an individual table of contents to the collection and associates a caller-supplied index with the table of contents.

+
+

The index, specified by the caller, to be associated with the table of contents.

+

Pointer to an interface that represents the table of contents to be added.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In the context of an interface, the word entry refers to an indivdual table of contents. That meaning of the word entry is in contrast to its meaning in the context of other interfaces in the TOC Parser technology. For example, in the context of an interface, the word entry refers to a block of information, in a table of contents, that represents a section of a video file.

+
+ + ff819190 + HRESULT ITocCollection::AddEntryByIndex([In] unsigned int dwEntryIndex,[In] IToc* pToc) + ITocCollection::AddEntryByIndex +
+ + +

The RemoveEntryByIndex method removes a table of contents, specified by an index, from the collection.

+
+

Specifies the index of the table of contents to be removed.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In the context of an interface, the word entry refers to an indivdual table of contents. That meaning of the word entry is in contrast to its meaning in the context of other interfaces in the TOC Parser technology. For example, in the context of an interface, the word entry refers to a block of information, in a table of contents, that represents a section of a video file.

+
+ + ff819193 + HRESULT ITocCollection::RemoveEntryByIndex([In] unsigned int dwEntryIndex) + ITocCollection::RemoveEntryByIndex +
+ + +

The interface represents an individual entry in a table of contents. It provides methods for setting and retrieving descriptive information for the entry.

+
+ + ff819194 + ITocEntry + ITocEntry +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The SetTitle method sets the title of the entry.

+
+

Pointer to a null-terminated wide-character string that contains the title.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819209 + HRESULT ITocEntry::SetTitle([In] const wchar_t* pwszTitle) + ITocEntry::SetTitle +
+ + +

The GetTitle method retrieves the title, set by a previous call to SetTitle, of the entry.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The method returns this error code if pwszTitle is not null and the title, including its null terminator, is larger than the size specified by pwTitleSize. In that case, pwTitleSize serves as an output parameter and receives the size of the required buffer.

?

+ + ff819204 + HRESULT ITocEntry::GetTitle([In] unsigned short* pwTitleSize,[Out, Buffer, Optional] wchar_t* pwszTitle) + ITocEntry::GetTitle +
+ + +

The SetDescriptor method associates a descriptor with the entry.

+
+

Pointer to a structure that contains the descriptor.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819206 + HRESULT ITocEntry::SetDescriptor([In] TOC_ENTRY_DESCRIPTOR* pDescriptor) + ITocEntry::SetDescriptor +
+ + +

The GetDescriptor method retrieves the descriptor, previously set by a call to SetDescriptor, of the entry.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819202 + HRESULT ITocEntry::GetDescriptor([In] TOC_ENTRY_DESCRIPTOR* pDescriptor) + ITocEntry::GetDescriptor +
+ + +

The SetSubEntries identifies a set of entries as being subentries of this entry.

+
+

The number of indices in the array pointed to by pwSubEntryIndices.

+

Pointer to an array of WORDs. Each WORD in the array specifies the index of an entry that is to be considered a subentry of this entry.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819208 + HRESULT ITocEntry::SetSubEntries([In] unsigned int dwNumSubEntries,[In] unsigned short* pwSubEntryIndices) + ITocEntry::SetSubEntries +
+ + +

The GetSubEntries method gets an array of subentry indices that were set by a previous call to SetSubEntries.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The method returns this error code if pwSubEntryIndices is not null and the number of subentries is larger than the number specified by pdwNumSubEntries. In that case, pdwNumSubEntries serves as an output parameter and receives the number of available subentry indices.

?

+ + ff819203 + HRESULT ITocEntry::GetSubEntries([In] unsigned int* pdwNumSubEntries,[In] unsigned short* pwSubEntryIndices) + ITocEntry::GetSubEntries +
+ + +

The SetDescriptionData method associates a caller-supplied data block with the entry.

+
+

The size, in bytes, of the data block.

+

Pointer to the first byte of the data block.

+

Pointer to a that identifies the type of data in the block. This parameter can be null. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can use this method to associate any information of your choice with the entry. The nature of the information you store in the description data block is completely up to you. TOC Parser does not inspect or interpret the description data block.

You can associate only one description data block with a given entry at a given time. However, you might want to design different types of description data blocks and identfy each type of block with a globally unique identifier (). That way, you could associate description data of a certain type with some of your entries and description data of a different type with other entries. If you do not need to distinguish between different types of description data blocks, you can set pguidType to null.

+
+ + ff819205 + HRESULT ITocEntry::SetDescriptionData([In] unsigned int dwDescriptionDataSize,[In] unsigned char* pbtDescriptionData,[In] GUID* pguidType) + ITocEntry::SetDescriptionData +
+ + +

The GetDescriptionData method gets a description data block that was previously associated with the entry by a call to SetDescriptionData.

+
+ No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The method returns this error code if pbtDescriptionData is not null and the context block is larger than the size specified by pdwDescriptionDataSize. In that case, pdwDescriptionDataSize serves as an output parameter and receives the size, in bytes, of the required buffer.

?

+ +

You can associate only one description data block with a given entry at a given time. However, you might want to design different types of description data blocks and identfy each type of block with a globally unique identifier (). That way, when you call SetDescriptionData, you can mark the data block as being of a specific type. When you call GetDescriptionData, you can determine the type of the data block retrieved by inspecting the value returned in pGuidType.

+
+ + ff819201 + HRESULT ITocEntry::GetDescriptionData([In] unsigned int* pdwDescriptionDataSize,[In] unsigned char* pbtDescriptionData,[In] GUID* pGuidType) + ITocEntry::GetDescriptionData +
+ + +

The interface represents a list of entries in a table of contents. It provides methods for adding entries to, and removing entries from the list.

+
+ + ff819195 + ITocEntryList + ITocEntryList +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The GetEntryCount method retrieves the number of entries in the list.

+
+

Pointer to a DWORD that receives the number of entries.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819199 + HRESULT ITocEntryList::GetEntryCount([In] unsigned int* pdwEntryCount) + ITocEntryList::GetEntryCount +
+ + +

The GetEntryByIndex method retrieves an entry, specified by an index, from the list.

+
+

The index of the entry to retrieve.

+

Pointer to a variable that receives a reference to an interface that represents the entry.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819198 + HRESULT ITocEntryList::GetEntryByIndex([In] unsigned int dwEntryIndex,[In] ITocEntry** ppEntry) + ITocEntryList::GetEntryByIndex +
+ + +

The AddEntry method adds an individual entry to the list and assigns an index to the entry.

+
+

Pointer to an interface that represents the entry to be added.

+

Pointer to a DWORD that receives the index of the added entry.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819196 + HRESULT ITocEntryList::AddEntry([In] ITocEntry* pEntry,[In] unsigned int* pdwEntryIndex) + ITocEntryList::AddEntry +
+ + +

The AddEntryByIndex method adds an individual entry to the list and associates a caller-supplied index with the entry.

+
+

The index of the entry to be added.

+

Pointer to an interface that represents the entry to be added.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819197 + HRESULT ITocEntryList::AddEntryByIndex([In] unsigned int dwEntryIndex,[In] ITocEntry* pEntry) + ITocEntryList::AddEntryByIndex +
+ + +

The RemoveEntryByIndex method removes an entry, specified by an index, from the list.

+
+

The index of the entry to be removed.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819200 + HRESULT ITocEntryList::RemoveEntryByIndex([In] unsigned int dwEntryIndex) + ITocEntryList::RemoveEntryByIndex +
+ + +

The interface represents a TOC Parser object. It provides methods for storing tables of contents in a video file and retrieving tables of contents from a video file.

+
+ + ff819210 + ITocParser + ITocParser +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The Init method initializes the TOC Parser object and associates it with a media file.

+
+

Pointer to a null-terminated wide-character string that specifies the path of the media file. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The path that you pass in pwszFileName must be a long Universal Naming Convention (UNC) file path. A long UNC file path begins with "\\?\". The following line of code shows how to set the path for the file c:\experiment\seattle.wmv.

pTocParser->Init(L"\\\\?\\c:\\experiment\\seattle.wmv");

+
+ + ff819216 + HRESULT ITocParser::Init([In] const wchar_t* pwszFileName) + ITocParser::Init +
+ + +

The GetTocCount method retrieves the number of tables of contents, of a specified position type, in the TOC Parser object.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819215 + HRESULT ITocParser::GetTocCount([In] TOC_POS_TYPE enumTocPosType,[In] unsigned int* pdwTocCount) + ITocParser::GetTocCount +
+ + +

The GetTocByIndex method retrieves a table of contents, specified by an index, from the TOC Parser object.

+
+

A member of the enumeration that specifies the position type of the table of contents to be retrieved.

+

The index of the table of contents to be retrieved.

+

Pointer to a variable that receives a reference to an interface that represents the retrieved table of contents.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819213 + HRESULT ITocParser::GetTocByIndex([In] TOC_POS_TYPE enumTocPosType,[In] unsigned int dwTocIndex,[In] IToc** ppToc) + ITocParser::GetTocByIndex +
+ + +

The GetTocByType retrieves all tables of contents of a specified type from the TOC Parser object.

+
+

A member of the enumeration that specifies the position type of the table of contents to be retrieved.

+

A globally unique identifier () that specifies the type of table of contents to retrieve. See Remarks.

+

Pointer to an interface that represents the colleciton of retrieved tables of contents.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You might want to design several different type of tables of contents. In that case, you can distinguish between types by creating a that represents each type. You can identify a table of contents as a particular type by setting the guidType member of a structure and then passing the structure to .

+
+ + ff819214 + HRESULT ITocParser::GetTocByType([In] TOC_POS_TYPE enumTocPosType,[In] GUID guidTocType,[In] ITocCollection** ppTocs) + ITocParser::GetTocByType +
+ + +

The AddToc method adds a table of contents to the TOC Parser object and assigns an index to the added table of contents.

+
+

A member of the enumeration that specifies the position type of the table of contents to be added.

+

Pointer to an interface that represents the table of contents to be added.

+

Pointer to a DWORD that receives the index of the added table of contents.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819211 + HRESULT ITocParser::AddToc([In] TOC_POS_TYPE enumTocPosType,[In] IToc* pToc,[In] unsigned int* pdwTocIndex) + ITocParser::AddToc +
+ + +

The RemoveTocByIndex method removes a table of contents, specified by an index, from the TOC Parser object.

+
+

A member of the enumeration that specifies the position type of the table of contents to be removed.

+

The index of the table of contents to be removed.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819217 + HRESULT ITocParser::RemoveTocByIndex([In] TOC_POS_TYPE enumTocPosType,[In] unsigned int dwTocIndex) + ITocParser::RemoveTocByIndex +
+ + +

The RemoveTocByType method removes all tables of contents of a specified type from the TOC Parser object.

+
+

A member of the enumeration that specifies the position type of the tables of contents to be removed.

+

A globally unique identifier () that specifies the type of table of contents to removed. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You might want to design several different type of tables of contents. In that case, you can distinguish between types by creating a that represents each type. You can identify a table of contents as a particular type by setting the guidType member of a structure and then passing the structure to .

+
+ + ff819218 + HRESULT ITocParser::RemoveTocByType([In] TOC_POS_TYPE enumTocPosType,[In] GUID guidTocType) + ITocParser::RemoveTocByType +
+ + +

The Commit method stores the current state of the TOC Parser object in its associated media file.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can associate a TOC Parser object with a media file by calling . As you add, modify, or remove tables of contents from the TOC Parser object, those chages are made only to the TOC Parser object in memory, not to the media file. To store your changes in the media file, you must call .

+
+ + ff819212 + HRESULT ITocParser::Commit() + ITocParser::Commit +
+ + + Invalidates the entire surface of the control and causes the control to be redrawn.

Namespace: System.Windows.FormsAssembly: System.Windows.Forms (in system.windows.forms.dll)Public Sub InvalidateDim instance As Control instance.Invalidatepublic void Invalidate ()public: + void Invalidate ()public void Invalidate ()public function Invalidate ()Not applicable.

Calling the Invalidate method does not force a synchronous paint; to force a synchronous paint, call the Update method after calling the Invalidate method. When this method is called with no parameters, the entire client area is added to the update region.

The following code example enables the user to drag an image or image file onto the form, and have it be displayed at the point on it is dropped. The OnPaint method is overridden to repaint the image each time the form is painted; otherwise the image would only persist until the next repainting. The DragEnter event-handling method determines the type of data being dragged into the form and provides the appropriate feedback. The DragDrop event-handling method displays the image on the form, if an Image can be created from the data. Because the DragEventArgs.X and DragEventArgs.Y values are screen coordinates, the example uses the PointToClient method to convert them to client coordinates.

Private picture As Image + Private pictureLocation As Point Public Sub New() ' Enable drag-and-drop operations. Me.AllowDrop = True + End Sub Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs) MyBase.OnPaint(e) ' If there is an image and it has a location, ' paint it when the Form is repainted. If (Me.picture IsNot Nothing) And _ Not (Me.pictureLocation.Equals(Point.Empty)) Then e.Graphics.DrawImage(Me.picture, Me.pictureLocation) End If + End Sub Private Sub Form1_DragDrop(ByVal sender As Object, _ ByVal e As DragEventArgs) Handles MyBase.DragDrop ' Handle FileDrop data. If e.Data.GetDataPresent(DataFormats.FileDrop) Then ' Assign the file names to a string array, in ' case the user has selected multiple files. Dim files As String() = CType(e.Data.GetData(DataFormats.FileDrop), String()) Try ' Assign the first image to the 'picture' variable. Me.picture = Image.FromFile(files(0)) ' Set the picture location equal to the drop point. Me.pictureLocation = Me.PointToClient(New Point(e.X, e.Y)) Catch ex As Exception MessageBox.Show(ex.Message) Return End Try End If ' Handle Bitmap data. If e.Data.GetDataPresent(DataFormats.Bitmap) Then Try ' Create an Image and assign it to the picture variable. Me.picture = CType(e.Data.GetData(DataFormats.Bitmap), Image) ' Set the picture location equal to the drop point. Me.pictureLocation = Me.PointToClient(New Point(e.X, e.Y)) Catch ex As Exception MessageBox.Show(ex.Message) Return End Try End If ' Force the form to be redrawn with the image. Me.Invalidate() + End Sub Private Sub Form1_DragEnter(ByVal sender As Object, _ ByVal e As DragEventArgs) Handles MyBase.DragEnter ' If the data is a file or a bitmap, display the copy cursor. If e.Data.GetDataPresent(DataFormats.Bitmap) _ Or e.Data.GetDataPresent(DataFormats.FileDrop) Then e.Effect = DragDropEffects.Copy Else e.Effect = DragDropEffects.None End If + End Sub + private Image picture; + private Point pictureLocation; public Form1() + { // Enable drag-and-drop operations and // add handlers for DragEnter and DragDrop. this.AllowDrop = true; this.DragDrop += new DragEventHandler(this.Form1_DragDrop); this.DragEnter += new DragEventHandler(this.Form1_DragEnter); + } protected override void OnPaint(PaintEventArgs e) + { // If there is an image and it has a location, // paint it when the Form is repainted. base.OnPaint(e); if(this.picture != null && this.pictureLocation != Point.Empty) { e.Graphics.DrawImage(this.picture, this.pictureLocation); } + } private void Form1_DragDrop(object sender, DragEventArgs e) + { // Handle FileDrop data. if(e.Data.GetDataPresent(DataFormats.FileDrop) ) { // Assign the file names to a string array, in // case the user has selected multiple files. string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); try { // Assign the first image to the picture variable. this.picture = Image.FromFile(files[0]); // Set the picture location equal to the drop point. this.pictureLocation = this.PointToClient(new Point(e.X, e.Y) ); } catch(Exception ex) { MessageBox.Show(ex.Message); return; } } // Handle Bitmap data. if(e.Data.GetDataPresent(DataFormats.Bitmap) ) { try { // Create an Image and assign it to the picture variable. this.picture = (Image)e.Data.GetData(DataFormats.Bitmap); // Set the picture location equal to the drop point. this.pictureLocation = this.PointToClient(new Point(e.X, e.Y) ); } catch(Exception ex) { MessageBox.Show(ex.Message); return; } } // Force the form to be redrawn with the image. this.Invalidate(); + } private void Form1_DragEnter(object sender, DragEventArgs e) + { // If the data is a file or a bitmap, display the copy cursor. if (e.Data.GetDataPresent(DataFormats.Bitmap) || e.Data.GetDataPresent(DataFormats.FileDrop) ) { e.Effect = DragDropEffects.Copy; } else { e.Effect = DragDropEffects.None; } + } + private: Image^ picture; Point pictureLocation; public: Form1() { // Enable drag-and-drop operations and // add handlers for DragEnter and DragDrop. this->AllowDrop = true; this->DragDrop += gcnew DragEventHandler( this, &Form1::Form1_DragDrop ); this->DragEnter += gcnew DragEventHandler( this, &Form1::Form1_DragEnter ); } protected: virtual void OnPaint( PaintEventArgs^ e ) override { // If there is an image and it has a location, // paint it when the Form is repainted. Form::OnPaint( e ); if ( this->picture != nullptr && this->pictureLocation != Point::Empty ) { e->Graphics->DrawImage( this->picture, this->pictureLocation ); } } private: void Form1_DragDrop( Object^ /*sender*/, DragEventArgs^ e ) { // Handle FileDrop data. if ( e->Data->GetDataPresent( DataFormats::FileDrop ) ) { // Assign the file names to a String* array, in // case the user has selected multiple files. array<String^>^files = (array<String^>^)e->Data->GetData( DataFormats::FileDrop ); try { // Assign the first image to the picture variable. this->picture = Image::FromFile( files[ 0 ] ); // Set the picture location equal to the drop point. this->pictureLocation = this->PointToClient( Point(e->X,e->Y) ); } catch ( Exception^ ex ) { MessageBox::Show( ex->Message ); return; } } // Handle Bitmap data. if ( e->Data->GetDataPresent( DataFormats::Bitmap ) ) { try { // Create an Image and assign it to the picture variable. this->picture = dynamic_cast<Image^>(e->Data->GetData( DataFormats::Bitmap )); // Set the picture location equal to the drop point. this->pictureLocation = this->PointToClient( Point(e->X,e->Y) ); } catch ( Exception^ ex ) { MessageBox::Show( ex->Message ); return; } } // Force the form to be redrawn with the image. this->Invalidate(); } void Form1_DragEnter( Object^ /*sender*/, DragEventArgs^ e ) { // If the data is a file or a bitmap, display the copy cursor. if ( e->Data->GetDataPresent( DataFormats::Bitmap ) || e->Data->GetDataPresent( DataFormats::FileDrop ) ) { e->Effect = DragDropEffects::Copy; } else { e->Effect = DragDropEffects::None; } } + private Image picture; + private Point pictureLocation; public Form1() + { // Enable drag-and-drop operations and // add handlers for DragEnter and DragDrop. this.set_AllowDrop(true); this.add_DragDrop(new DragEventHandler(this.Form1_DragDrop)); this.add_DragEnter(new DragEventHandler(this.Form1_DragEnter)); + } //Form1 protected void OnPaint(PaintEventArgs e) + { // If there is an image and it has a location, // paint it when the Form is repainted. super.OnPaint(e); if (this.picture != null && !this.pictureLocation.Equals(Point.Empty)) { e.get_Graphics().DrawImage(this.picture, this.pictureLocation); } + } //OnPaint private void Form1_DragDrop(Object sender, DragEventArgs e) + { // Handle FileDrop data. if (e.get_Data().GetDataPresent(DataFormats.FileDrop)) { // Assign the file names to a string array, in // case the user has selected multiple files. String files[] = (String[])(e.get_Data().GetData( DataFormats.FileDrop)); try { // Assign the first image to the picture variable. this.picture = Image.FromFile(files.toString()); // Set the picture location equal to the drop point. this.pictureLocation = this.PointToClient(new Point(e.get_X(), e.get_Y())); } catch (System.Exception ex) { MessageBox.Show(ex.get_Message()); return; } } // Handle Bitmap data. if (e.get_Data().GetDataPresent(DataFormats.Bitmap)) { try { // Create an Image and assign it to the picture variable. this.picture = (Image)e.get_Data().GetData(DataFormats.Bitmap); // Set the picture location equal to the drop point. this.pictureLocation = this.PointToClient(new Point(e.get_X(), e.get_Y())); } catch (System.Exception ex) { MessageBox.Show(ex.get_Message()); return; } } // Force the form to be redrawn with the image. this.Invalidate(); + } //Form1_DragDrop private void Form1_DragEnter(Object sender, DragEventArgs e) + { // If the data is a file or a bitmap, display the copy cursor. if (e.get_Data().GetDataPresent(DataFormats.Bitmap) || e.get_Data(). GetDataPresent(DataFormats.FileDrop)) { e.set_Effect(DragDropEffects.Copy); } else { e.set_Effect(DragDropEffects.None); } + } //Form1_DragEnter +

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1. .NET FrameworkSupported in: 3.0, 2.0, 1.1, 1.0.NET Compact FrameworkSupported in: 2.0, 1.0ReferenceControl ClassControl MembersSystem.Windows.Forms NamespaceRefreshUpdate +
+ + 598t492a + IWMValidate + IWMValidate +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IWMValidate::SetIdentifier([In] GUID guidValidationID) + IWMValidate::SetIdentifier + + + + No documentation. + + + SetIdentifier + SetIdentifier + HRESULT IWMValidate::SetIdentifier([In] GUID guidValidationID) + + + + No documentation. + + + IValidateBinding + IValidateBinding + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IValidateBinding::GetIdentifier([In] GUID guidLicensorID,[In, Buffer] unsigned char* pbEphemeron,[In] unsigned int cbEphemeron,[Out, Buffer, Optional] unsigned char** ppbBlobValidationID,[Out] unsigned int* pcbBlobSize) + IValidateBinding::GetIdentifier + + + +

Controls the speed of the video decoder.

This interface is implemented by the video decoder objects. You can obtain a reference to by calling the QueryInterface method of any other interface of the decoder, such as or

+
+ + ff819262 + IWMVideoDecoderHurryup + IWMVideoDecoderHurryup +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the speed mode of the video decoder. +

+
+

The speed mode of the video decoder.

ValueMeaning
-1 (default)

The decoder will determine the decoding speed.

0

The decoder will decode in real time.

1 to 4

The decoder will decode faster than real time. The higher the value, the faster the decoding.

?

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819263 + HRESULT IWMVideoDecoderHurryup::SetHurryup([In] int lHurryup) + IWMVideoDecoderHurryup::SetHurryup +
+ + +

Retrieves the current speed mode of the video decoder. +

+
+

Address of a variable that receives the decoder speed mode.

ValueMeaning
-1 (default)

The decoder will determine the decoding speed.

0

The decoder will decode in real time.

1 to 4

The decoder will decode faster than real time.

?

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819261 + HRESULT IWMVideoDecoderHurryup::GetHurryup([In] int* plHurryup) + IWMVideoDecoderHurryup::GetHurryup +
+ + +

Note??This interface is obsolete and should not be used.

Manages reconstructed video frames.

+
+ + ff819266 + IWMVideoDecoderReconBuffer + IWMVideoDecoderReconBuffer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Note??This method is obsolete and should not be used.

Retrieves the size of the current reconstructed video frame.

+
+

Address of a variable that receives the frame size in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819265 + HRESULT IWMVideoDecoderReconBuffer::GetReconstructedVideoFrameSize([In] unsigned int* pdwSize) + IWMVideoDecoderReconBuffer::GetReconstructedVideoFrameSize +
+ + +

Note??This method is obsolete and should not be used.

Retrieves the current reconstructed video frame.

+
+

Address of a media buffer that receives the reconstructed video frame.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819264 + HRESULT IWMVideoDecoderReconBuffer::GetReconstructedVideoFrame([In] IMediaBuffer* pBuf) + IWMVideoDecoderReconBuffer::GetReconstructedVideoFrame +
+ + +

Note??This method is obsolete and should not be used.

Restores the current reconstructed video frame.

+
+

Address of an interface containing the reconstructed frame to restore.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ff819267 + HRESULT IWMVideoDecoderReconBuffer::SetReconstructedVideoFrame([In] IMediaBuffer* pBuf) + IWMVideoDecoderReconBuffer::SetReconstructedVideoFrame +
+ + +

Note??This method is obsolete and should not be used.

Restores the current reconstructed video frame.

+
+ + ff819267 + SetReconstructedVideoFrame + SetReconstructedVideoFrame + HRESULT IWMVideoDecoderReconBuffer::SetReconstructedVideoFrame([In] IMediaBuffer* pBuf) +
+ + +

Forces the encoder to encode the current frame as a key frame.

+
+ + ff819268 + IWMVideoForceKeyFrame + IWMVideoForceKeyFrame +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies that the current frame will be encoded as a key frame.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To force the encoder to make the current frame a key frame, call this method before calling or .

Each call to this method applies to a single frame. After processing this frame, the encoder resumes automatically assigning key frames (bounded by the maximum key frame distance).

+
+ + ff819269 + HRESULT IWMVideoForceKeyFrame::SetKeyFrame() + IWMVideoForceKeyFrame::SetKeyFrame +
+ + +

Contains quality metrics for acoustic echo cancellation (AEC). This structure is used with the MFPKEY_WMAAECMA_RETRIEVE_TS_STATS property. +

+
+ + ff819067 + AecQualityMetrics_Struct + AecQualityMetrics_Struct +
+ + + No documentation. + + + ff819067 + longlong i64Timestamp + longlong i64Timestamp + + + + No documentation. + + + ff819067 + unsigned char ConvergenceFlag + unsigned char ConvergenceFlag + + + + No documentation. + + + ff819067 + unsigned char MicClippedFlag + unsigned char MicClippedFlag + + + + No documentation. + + + ff819067 + unsigned char MicSilenceFlag + unsigned char MicSilenceFlag + + + + No documentation. + + + ff819067 + unsigned char PstvFeadbackFlag + unsigned char PstvFeadbackFlag + + + + No documentation. + + + ff819067 + unsigned char SpkClippedFlag + unsigned char SpkClippedFlag + + + + No documentation. + + + ff819067 + unsigned char SpkMuteFlag + unsigned char SpkMuteFlag + + + + No documentation. + + + ff819067 + unsigned char GlitchFlag + unsigned char GlitchFlag + + + + No documentation. + + + ff819067 + unsigned char DoubleTalkFlag + unsigned char DoubleTalkFlag + + + + No documentation. + + + ff819067 + unsigned int uGlitchCount + unsigned int uGlitchCount + + + + No documentation. + + + ff819067 + unsigned int uMicClipCount + unsigned int uMicClipCount + + + + No documentation. + + + ff819067 + float fDuration + float fDuration + + + + No documentation. + + + ff819067 + float fTSVariance + float fTSVariance + + + + No documentation. + + + ff819067 + float fTSDriftRate + float fTSDriftRate + + + + No documentation. + + + ff819067 + float fVoiceLevel + float fVoiceLevel + + + + No documentation. + + + ff819067 + float fNoiseLevel + float fNoiseLevel + + + + No documentation. + + + ff819067 + float fERLE + float fERLE + + + + No documentation. + + + ff819067 + float fAvgERLE + float fAvgERLE + + + + No documentation. + + + ff819067 + unsigned int dwReserved + unsigned int dwReserved + + + +

The structure holds descriptive information for a table of contents.

+
+ +

You might want to design several different type of tables of contents. In that case, you can distinguish between types by creating a that represents each type. You can identify a table of contents as a particular type by setting the guidType member of a structure and then passing the structure to .

+
+ + ff819464 + TOC_DESCRIPTOR + TOC_DESCRIPTOR +
+ + +

A globally unique identifier () that identifies an individual table of contents. This identifier has meaning only to the you, the developer. TOC Parser does not inspect or interpret this identifier.

+
+ + ff819464 + GUID guidID + GUID guidID +
+ + +

Not used.

+
+ + ff819464 + unsigned short wStreamNumber + unsigned short wStreamNumber +
+ + +

A globally unique identifier () that identifies a table of contents as belonging to a particular type. This identifier has meaning only to you, the developer. TOC Parser does not inspect or interpret this identifier. See Remarks.

+
+ + ff819464 + GUID guidType + GUID guidType +
+ + +

An integer that identifies the language of a table of contents. This index has meaning only to you, the developer. TOC Parser does not inspect or interpret this index.

+
+ + ff819464 + unsigned short wLanguageIndex + unsigned short wLanguageIndex +
+ + +

The structure holds descriptive information for an entry in a table of contents. An entry in a table of contents describes a portion of a media file. For example, an entry might describe a ten-second chunk of video that starts 90 seconds after the beginning of a video file.

+
+ + ff819465 + TOC_ENTRY_DESCRIPTOR + TOC_ENTRY_DESCRIPTOR +
+ + +

The start time, in 100-nanosecond units, of the portion of a media file represented by an entry in a table of contents.

+
+ + ff819465 + unsigned longlong qwStartTime + unsigned longlong qwStartTime +
+ + +

The end time, in 100-nanosecond units, of the portion of a media file represented by an entry in a table of contents.

+
+ + ff819465 + unsigned longlong qwEndTime + unsigned longlong qwEndTime +
+ + +

Not used.

+
+ + ff819465 + unsigned longlong qwStartPacketOffset + unsigned longlong qwStartPacketOffset +
+ + +

Not used.

+
+ + ff819465 + unsigned longlong qwEndPacketOffset + unsigned longlong qwEndPacketOffset +
+ + +

The presentation time, in 100-nanosecond units, of a frame that is a good representation of the entry. This frame could be used for a thumbnail image that represents the entry.

+
+ + ff819465 + unsigned longlong qwRepresentativeFrameTime + unsigned longlong qwRepresentativeFrameTime +
+ + +

Specifies how the output alpha values are calculated for Microsoft DirectX Video Acceleration High Definition (DXVA-HD) blit operations.

+
+ +

The Mode member of the structure has this enumeration type. That member specifies the alpha-fill mode for the input stream identified by the StreamNumber member of the same structure. To set the alpha-fill mode, call .

To find out which modes the device supports, call the method. If the device sets the flag in the FeatureCaps member of the structure, the DXVA-HD device supports any of the modes listed here. Otherwise, the alpha-fill mode must be .

+
+ + dd318388 + DXVAHD_ALPHA_FILL_MODE + DXVAHD_ALPHA_FILL_MODE +
+ + +

Alpha values inside the target rectangle are set to opaque.

+
+ + dd318388 + DXVAHD_ALPHA_FILL_MODE_OPAQUE + DXVAHD_ALPHA_FILL_MODE_OPAQUE +
+ + +

Alpha values inside the target rectangle are set to the alpha value specified in the background color. See .

+
+ + dd318388 + DXVAHD_ALPHA_FILL_MODE_BACKGROUND + DXVAHD_ALPHA_FILL_MODE_BACKGROUND +
+ + +

Existing alpha values remain unchanged in the output surface.

+
+ + dd318388 + DXVAHD_ALPHA_FILL_MODE_DESTINATION + DXVAHD_ALPHA_FILL_MODE_DESTINATION +
+ + +

Alpha values from the input stream are scaled and copied to the corresponding destination rectangle for that stream. If the input stream does not have alpha data, the DXVA-HD device sets the alpha values in the target rectangle to an opaque value. If the input stream is disabled or the source rectangle is empty, the alpha values in the target rectangle are not modified.

+
+ + dd318388 + DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM + DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM +
+ + +

Specifies state parameters for blit operations when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

To set a state parameter, call the method. This method takes a value and a byte array as input. The byte array contains state data, the structure of which is defined by the value.

+
+ + dd318389 + DXVAHD_BLT_STATE + DXVAHD_BLT_STATE +
+ + + No documentation. + + + dd318389 + DXVAHD_BLT_STATE_TARGET_RECT + DXVAHD_BLT_STATE_TARGET_RECT + + + + No documentation. + + + dd318389 + DXVAHD_BLT_STATE_BACKGROUND_COLOR + DXVAHD_BLT_STATE_BACKGROUND_COLOR + + + + No documentation. + + + dd318389 + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE + + + + No documentation. + + + dd318389 + DXVAHD_BLT_STATE_ALPHA_FILL + DXVAHD_BLT_STATE_ALPHA_FILL + + + + No documentation. + + + dd318389 + DXVAHD_BLT_STATE_CONSTRICTION + DXVAHD_BLT_STATE_CONSTRICTION + + + + No documentation. + + + dd318389 + DXVAHD_BLT_STATE_PRIVATE + DXVAHD_BLT_STATE_PRIVATE + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0012 + __MIDL___MIDL_itf_dxva2api_0000_0000_0012 + + + + No documentation. + + + DXVA2_PictureParametersBufferType + DXVA2_PictureParametersBufferType + + + + No documentation. + + + DXVA2_MacroBlockControlBufferType + DXVA2_MacroBlockControlBufferType + + + + No documentation. + + + DXVA2_ResidualDifferenceBufferType + DXVA2_ResidualDifferenceBufferType + + + + No documentation. + + + DXVA2_DeblockingControlBufferType + DXVA2_DeblockingControlBufferType + + + + No documentation. + + + DXVA2_InverseQuantizationMatrixBufferType + DXVA2_InverseQuantizationMatrixBufferType + + + + No documentation. + + + DXVA2_SliceControlBufferType + DXVA2_SliceControlBufferType + + + + No documentation. + + + DXVA2_BitStreamDateBufferType + DXVA2_BitStreamDateBufferType + + + + No documentation. + + + DXVA2_MotionVectorBuffer + DXVA2_MotionVectorBuffer + + + + No documentation. + + + DXVA2_FilmGrainBuffer + DXVA2_FilmGrainBuffer + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0003 + __MIDL___MIDL_itf_dxva2api_0000_0000_0003 + + + + No documentation. + + + DXVA2_DeinterlaceTech_Unknown + DXVA2_DeinterlaceTech_Unknown + + + + No documentation. + + + DXVA2_DeinterlaceTech_BOBLineReplicate + DXVA2_DeinterlaceTech_BOBLineReplicate + + + + No documentation. + + + DXVA2_DeinterlaceTech_BOBVerticalStretch + DXVA2_DeinterlaceTech_BOBVerticalStretch + + + + No documentation. + + + DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap + DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap + + + + No documentation. + + + DXVA2_DeinterlaceTech_MedianFiltering + DXVA2_DeinterlaceTech_MedianFiltering + + + + No documentation. + + + DXVA2_DeinterlaceTech_EdgeFiltering + DXVA2_DeinterlaceTech_EdgeFiltering + + + + No documentation. + + + DXVA2_DeinterlaceTech_FieldAdaptive + DXVA2_DeinterlaceTech_FieldAdaptive + + + + No documentation. + + + DXVA2_DeinterlaceTech_PixelAdaptive + DXVA2_DeinterlaceTech_PixelAdaptive + + + + No documentation. + + + DXVA2_DeinterlaceTech_MotionVectorSteered + DXVA2_DeinterlaceTech_MotionVectorSteered + + + + No documentation. + + + DXVA2_DeinterlaceTech_InverseTelecine + DXVA2_DeinterlaceTech_InverseTelecine + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0006 + __MIDL___MIDL_itf_dxva2api_0000_0000_0006 + + + + No documentation. + + + DXVA2_DetailFilterTech_Unsupported + DXVA2_DetailFilterTech_Unsupported + + + + No documentation. + + + DXVA2_DetailFilterTech_Unknown + DXVA2_DetailFilterTech_Unknown + + + + No documentation. + + + DXVA2_DetailFilterTech_Edge + DXVA2_DetailFilterTech_Edge + + + + No documentation. + + + DXVA2_DetailFilterTech_Sharpening + DXVA2_DetailFilterTech_Sharpening + + + +

Defines video processing capabilities for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ + dd318415 + DXVAHD_DEVICE_CAPS + DXVAHD_DEVICE_CAPS +
+ + +

The device can blend video content in linear color space. Most video content is gamma corrected, resulting in nonlinear values. If the DXVA-HD device sets this flag, it means the device converts colors to linear space before blending, which produces better results. +

+
+ + dd318415 + DXVAHD_DEVICE_CAPS_LINEAR_SPACE + DXVAHD_DEVICE_CAPS_LINEAR_SPACE +
+ + +

The device supports the xvYCC color space for YCbCr data.

+
+ + dd318415 + DXVAHD_DEVICE_CAPS_xvYCC + DXVAHD_DEVICE_CAPS_xvYCC +
+ + +

The device can perform range conversion when the input and output are both RGB but use different color ranges (0-255 or 16-235, for 8-bit RGB).

+
+ + dd318415 + DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION + DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION +
+ + +

The device can apply a matrix conversion to YCbCr values when the input and output are both YCbCr. For example, the driver can convert colors from BT.601 to BT.709.

+
+ + dd318415 + DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION + DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION +
+ + +

Specifies the type of Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ + dd318417 + DXVAHD_DEVICE_TYPE + DXVAHD_DEVICE_TYPE +
+ + +

Hardware device. Video processing is performed in the GPU by the driver.

+
+ + dd318417 + DXVAHD_DEVICE_TYPE_HARDWARE + DXVAHD_DEVICE_TYPE_HARDWARE +
+ + +

Software device. Video processing is performed in the CPU by a software plug-in.

+
+ + dd318417 + DXVAHD_DEVICE_TYPE_SOFTWARE + DXVAHD_DEVICE_TYPE_SOFTWARE +
+ + +

Reference device. Video processing is performed in the CPU by a software plug-in.

+
+ + dd318417 + DXVAHD_DEVICE_TYPE_REFERENCE + DXVAHD_DEVICE_TYPE_REFERENCE +
+ + +

Other. The device is neither a hardware device nor a software plug-in.

+
+ + dd318417 + DXVAHD_DEVICE_TYPE_OTHER + DXVAHD_DEVICE_TYPE_OTHER +
+ + +

Specifies the intended use for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ +

The graphics driver uses one of these enumeration constants as a hint when it creates the DXVA-HD device.

+
+ + dd318420 + DXVAHD_DEVICE_USAGE + DXVAHD_DEVICE_USAGE +
+ + +

Normal video playback. The graphics driver should expose a set of capabilities that are appropriate for real-time video playback.

+
+ + dd318420 + DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL + DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL +
+ + +

Optimal speed. The graphics driver should expose a minimal set of capabilities that are optimized for performance.

Use this setting if you want better performance and can accept some reduction in video quality. For example, you might use this setting in power-saving mode or to play video thumbnails.

+
+ + dd318420 + DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED + DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED +
+ + +

Optimal quality. The grahics driver should expose its maximum set of capabilities.

Specify this setting to get the best video quality possible. It is appropriate for tasks such as video editing, when quality is more important than speed. It is not appropriate for real-time playback.

+
+ + dd318420 + DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY + DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY +
+ + +

Defines features that a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device can support.

+
+ + dd318422 + DXVAHD_FEATURE_CAPS + DXVAHD_FEATURE_CAPS +
+ + +

The device can set the alpha values on the video output. See .

+
+ + dd318422 + DXVAHD_FEATURE_CAPS_ALPHA_FILL + DXVAHD_FEATURE_CAPS_ALPHA_FILL +
+ + +

The device can downsample the video output. See .

+
+ + dd318422 + DXVAHD_FEATURE_CAPS_CONSTRICTION + DXVAHD_FEATURE_CAPS_CONSTRICTION +
+ + +

The device can perform luma keying. See .

+
+ + dd318422 + DXVAHD_FEATURE_CAPS_LUMA_KEY + DXVAHD_FEATURE_CAPS_LUMA_KEY +
+ + +

The device can apply alpha values from color palette entries. See .

+
+ + dd318422 + DXVAHD_FEATURE_CAPS_ALPHA_PALETTE + DXVAHD_FEATURE_CAPS_ALPHA_PALETTE +
+ + +

Defines the range of supported values for an image filter.

+
+ +

The multiplier enables the filter range to have a fractional step value.

For example, a hue filter might have an actual range of [-180.0 ... +180.0] with a step size of 0.25. The device would report the following range and multiplier:

  • Minimum: -720
  • Maximum: +720
  • Multiplier: 0.25

In this case, a filter value of 2 would be interpreted by the device as 0.50 (or 2 ? 0.25).

The device should use a multiplier that can be represented exactly as a base-2 fraction.

+
+ + dd318428 + DXVAHD_FILTER + DXVAHD_FILTER +
+ + +

The minimum value of the filter.

+
+ + dd318428 + DXVAHD_FILTER_BRIGHTNESS + DXVAHD_FILTER_BRIGHTNESS +
+ + +

The maximum value of the filter.

+
+ + dd318428 + DXVAHD_FILTER_CONTRAST + DXVAHD_FILTER_CONTRAST +
+ + +

The default value of the filter.

+
+ + dd318428 + DXVAHD_FILTER_HUE + DXVAHD_FILTER_HUE +
+ + +

A multiplier. Use the following formula to translate the filter setting into the actual filter value: Actual Value = Set Value???Multiplier.

+
+ + dd318428 + DXVAHD_FILTER_SATURATION + DXVAHD_FILTER_SATURATION +
+ + + No documentation. + + + dd318428 + DXVAHD_FILTER_NOISE_REDUCTION + DXVAHD_FILTER_NOISE_REDUCTION + + + + No documentation. + + + dd318428 + DXVAHD_FILTER_EDGE_ENHANCEMENT + DXVAHD_FILTER_EDGE_ENHANCEMENT + + + + No documentation. + + + dd318428 + DXVAHD_FILTER_ANAMORPHIC_SCALING + DXVAHD_FILTER_ANAMORPHIC_SCALING + + + +

Defines capabilities related to image adjustment and filtering for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ + dd318426 + DXVAHD_FILTER_CAPS + DXVAHD_FILTER_CAPS +
+ + +

The device can adjust the brightness level.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_BRIGHTNESS + DXVAHD_FILTER_CAPS_BRIGHTNESS +
+ + +

The device can adjust the contrast level.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_CONTRAST + DXVAHD_FILTER_CAPS_CONTRAST +
+ + +

The device can adjust hue.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_HUE + DXVAHD_FILTER_CAPS_HUE +
+ + +

The device can adjust the saturation level.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_SATURATION + DXVAHD_FILTER_CAPS_SATURATION +
+ + +

The device can perform noise reduction.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_NOISE_REDUCTION + DXVAHD_FILTER_CAPS_NOISE_REDUCTION +
+ + +

The device can perform edge enhancement.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT + DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT +
+ + +

The device can perform anamorphic scaling. Anamorphic scaling can be used to stretch 4:3 content to a widescreen 16:9 aspect ratio.

+
+ + dd318426 + DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING + DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING +
+ + +

Describes how a video stream is interlaced.

+
+ + dd318431 + DXVAHD_FRAME_FORMAT + DXVAHD_FRAME_FORMAT +
+ + +

Frames are progressive.

+
+ + dd318431 + DXVAHD_FRAME_FORMAT_PROGRESSIVE + DXVAHD_FRAME_FORMAT_PROGRESSIVE +
+ + +

Frames are interlaced. The top field of each frame is displayed first.

+
+ + dd318431 + DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST + DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST +
+ + +

Frame are interlaced. The bottom field of each frame is displayed first.

+
+ + dd318431 + DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST + DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST +
+ + +

Defines capabilities related to input formats for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ +

These flags define video processing capabilities that are usually not needed, and therefore are not required for DXVA-HD devices to support.

The first three flags relate to RGB support for functions that are normally applied to YCbCr video: deinterlacing, color adjustment, and luma keying. A DXVA-HD device that supports these functions for YCbCr is not required to support them for RGB input. Supporting RGB input for these functions is an additional capability, reflected by these constants. The driver might convert the input to another color space, perform the indicated function, and then convert the result back to RGB.

Similarly, a device that supports de-interlacing is not required to support deinterlacing of palettized formats. This capability is indicated by the flag.

+
+ + dd318433 + DXVAHD_INPUT_FORMAT_CAPS + DXVAHD_INPUT_FORMAT_CAPS +
+ + +

The device can deinterlace an input stream that contains interlaced RGB video.

+
+ + dd318433 + DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED + DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED +
+ + +

The device can perform color adjustment on RGB video.

+
+ + dd318433 + DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP + DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP +
+ + +

The device can perform luma keying on RGB video.

+
+ + dd318433 + DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY + DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY +
+ + +

The device can deinterlace input streams with palettized color formats.

+
+ + dd318433 + DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED + DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED +
+ + +

Specifies the inverse telecine (IVTC) capabilities of a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS + DXVAHD_ITELECINE_CAPS +
+ + +

The video processor can reverse 3:2 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_32 + DXVAHD_ITELECINE_CAPS_32 +
+ + +

The video processor can reverse 2:2 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_22 + DXVAHD_ITELECINE_CAPS_22 +
+ + +

The video processor can reverse 2:2:2:4 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_2224 + DXVAHD_ITELECINE_CAPS_2224 +
+ + +

The video processor can reverse 2:3:3:2 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_2332 + DXVAHD_ITELECINE_CAPS_2332 +
+ + +

The video processor can reverse 3:2:3:2:2 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_32322 + DXVAHD_ITELECINE_CAPS_32322 +
+ + +

The video processor can reverse 5:5 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_55 + DXVAHD_ITELECINE_CAPS_55 +
+ + +

The video processor can reverse 6:4 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_64 + DXVAHD_ITELECINE_CAPS_64 +
+ + +

The video processor can reverse 8:7 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_87 + DXVAHD_ITELECINE_CAPS_87 +
+ + +

The video processor can reverse 2:2:2:2:2:2:2:2:2:2:2:3 pulldown.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_222222222223 + DXVAHD_ITELECINE_CAPS_222222222223 +
+ + +

The video processor can reverse other telecine modes not listed here.

+
+ + dd318435 + DXVAHD_ITELECINE_CAPS_OTHER + DXVAHD_ITELECINE_CAPS_OTHER +
+ + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0004 + __MIDL___MIDL_itf_dxva2api_0000_0000_0004 + + + + No documentation. + + + DXVA2_NoiseFilterLumaLevel + DXVA2_NoiseFilterLumaLevel + + + + No documentation. + + + DXVA2_NoiseFilterLumaThreshold + DXVA2_NoiseFilterLumaThreshold + + + + No documentation. + + + DXVA2_NoiseFilterLumaRadius + DXVA2_NoiseFilterLumaRadius + + + + No documentation. + + + DXVA2_NoiseFilterChromaLevel + DXVA2_NoiseFilterChromaLevel + + + + No documentation. + + + DXVA2_NoiseFilterChromaThreshold + DXVA2_NoiseFilterChromaThreshold + + + + No documentation. + + + DXVA2_NoiseFilterChromaRadius + DXVA2_NoiseFilterChromaRadius + + + + No documentation. + + + DXVA2_DetailFilterLumaLevel + DXVA2_DetailFilterLumaLevel + + + + No documentation. + + + DXVA2_DetailFilterLumaThreshold + DXVA2_DetailFilterLumaThreshold + + + + No documentation. + + + DXVA2_DetailFilterLumaRadius + DXVA2_DetailFilterLumaRadius + + + + No documentation. + + + DXVA2_DetailFilterChromaLevel + DXVA2_DetailFilterChromaLevel + + + + No documentation. + + + DXVA2_DetailFilterChromaThreshold + DXVA2_DetailFilterChromaThreshold + + + + No documentation. + + + DXVA2_DetailFilterChromaRadius + DXVA2_DetailFilterChromaRadius + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0005 + __MIDL___MIDL_itf_dxva2api_0000_0000_0005 + + + + No documentation. + + + DXVA2_NoiseFilterTech_Unsupported + DXVA2_NoiseFilterTech_Unsupported + + + + No documentation. + + + DXVA2_NoiseFilterTech_Unknown + DXVA2_NoiseFilterTech_Unknown + + + + No documentation. + + + DXVA2_NoiseFilterTech_Median + DXVA2_NoiseFilterTech_Median + + + + No documentation. + + + DXVA2_NoiseFilterTech_Temporal + DXVA2_NoiseFilterTech_Temporal + + + + No documentation. + + + DXVA2_NoiseFilterTech_BlockNoise + DXVA2_NoiseFilterTech_BlockNoise + + + + No documentation. + + + DXVA2_NoiseFilterTech_MosquitoNoise + DXVA2_NoiseFilterTech_MosquitoNoise + + + +

Describes how to map color data to a normalized [0...1] range.

These flags are used in the structure. They indicate whether the range of color values includes headroom (values above 100% white) and toeroom (values below reference black).

+
+ +

For YUV colors, these flags specify how to convert between Y'CbCr and Y'PbPr. The Y'PbPr color space has a range of [0..1] for Y' (luma) and [-0.5...0.5] for Pb/Pr (chroma).

ValueDescription
Should not be used for YUV data.

For 8-bit Y'CbCr components:

  • Y' range of [0...1] maps to [16..235] for 8-bit Y' values.

  • Pb/Pr ranges of [-0.5...0.5] map to [16...240] for 8-bit Cb/Cr values.

For samples with n bits of precision, the general equations are:

  • Y' = (Y' * 219 + 16) * 2 ^ (n-8)

  • Cb = (Pb * 224 + 128) * 2 ^ (n-8)

  • Cr = (Pr * 224 + 128) * 2 ^ (n-8)

The inverse equations to convert from Y'CbCr to Y'PbPr are:

  • Y' = (Y' / 2 ^ (n-8) - 16) / 219

  • Pb = (Cb / 2 ^ (n-8) - 128) / 224

  • Pr = (Cr / 2 ^ (n-8) - 128) / 224

For 8-bit Y'CbCr values, Y' range of [0..1] maps to [48...208].

?

For RGB colors, the flags differentiate various RGB spaces.

ValueDescription
sRGB
Studio RGB; ITU-R BT.709
ITU-R BT.1361 RGB

?

Video data might contain values above or below the nominal range.

Note??The values named and are a potential source of confusion. Wide refers to the possible range of analog values that can be represented, by mapping the nominal range [0...1] into a narrower range of digital values. Because the meaning of wide in this context is ambiguous, the equivalent values named and are preferred. These names explicitly convey the meaning of the enumeration, and are less likely to be misinterpreted.

This enumeration is equivalent to the DXVA_NominalRange enumeration used in DXVA 1.0, although it defines additional values.

If you are using the interface to describe the video format, the nominal range is specified in the attribute.

+
+ + bb970561 + DXVA2_NominalRange + DXVA2_NominalRange +
+ + + No documentation. + + + bb970561 + DXVA2_NominalRangeMask + DXVA2_NominalRangeMask + + + + No documentation. + + + bb970561 + DXVA2_NominalRange_Unknown + DXVA2_NominalRange_Unknown + + + + No documentation. + + + bb970561 + DXVA2_NominalRange_Normal + DXVA2_NominalRange_Normal + + + + No documentation. + + + bb970561 + DXVA2_NominalRange_Wide + DXVA2_NominalRange_Wide + + + + No documentation. + + + bb970561 + DXVA2_NominalRange_0_255 + DXVA2_NominalRange_0_255 + + + + No documentation. + + + bb970561 + DXVA2_NominalRange_16_235 + DXVA2_NominalRange_16_235 + + + + No documentation. + + + bb970561 + DXVA2_NominalRange_48_208 + DXVA2_NominalRange_48_208 + + + +

Specifies the output frame rates for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

This enumeration type is used in the structure.

+
+ + dd318437 + DXVAHD_OUTPUT_RATE + DXVAHD_OUTPUT_RATE +
+ + + No documentation. + + + dd318437 + DXVAHD_OUTPUT_RATE_NORMAL + DXVAHD_OUTPUT_RATE_NORMAL + + + + No documentation. + + + dd318437 + DXVAHD_OUTPUT_RATE_HALF + DXVAHD_OUTPUT_RATE_HALF + + + + No documentation. + + + dd318437 + DXVAHD_OUTPUT_RATE_CUSTOM + DXVAHD_OUTPUT_RATE_CUSTOM + + + +

Specifies the processing capabilities of a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS + DXVAHD_PROCESSOR_CAPS +
+ + +

The video processor can perform blend deinterlacing.

In blend deinterlacing, the two fields from an interlaced frame are blended into a single progressive frame. A video processor uses blend deinterlacing when it deinterlaces at half rate, as when converting 60i to 30p. Blend deinterlacing does not require reference frames.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND +
+ + +

The video processor can perform bob deinterlacing.

In bob deinterlacing, missing field lines are interpolated from the lines above and below. Bob deinterlacing does not require reference frames.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB +
+ + +

The video processor can perform adaptive deinterlacing.

Adaptive deinterlacing uses spatial or temporal interpolation, and switches between the two on a field-by-field basis, depending on the amount of motion. If the video processor does not receive enough reference frames to perform adaptive deinterlacing, it falls back to bob deinterlacing.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE +
+ + +

The video processor can perform motion-compensated deinterlacing.

Motion-compensated deinterlacing uses motion vectors to recreate missing lines. If the video processor does not receive enough reference frames to perform motion-compensated deinterlacing, it falls back to bob deinterlacing.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION +
+ + +

The video processor can perform inverse telecine (IVTC).

If the video processor supports this capability, the ITelecineCaps member of the structure specifies which IVTC modes are supported.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE + DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE +
+ + +

The video processor can convert the frame rate by interpolating frames.

+
+ + dd318439 + DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION + DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION +
+ + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0013 + __MIDL___MIDL_itf_dxva2api_0000_0000_0013 + + + + No documentation. + + + DXVA2_VideoDecoderRenderTarget + DXVA2_VideoDecoderRenderTarget + + + + No documentation. + + + DXVA2_VideoProcessorRenderTarget + DXVA2_VideoProcessorRenderTarget + + + + No documentation. + + + DXVA2_VideoSoftwareRenderTarget + DXVA2_VideoSoftwareRenderTarget + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0010 + __MIDL___MIDL_itf_dxva2api_0000_0000_0010 + + + + No documentation. + + + DXVA2_SampleData_RFF + DXVA2_SampleData_RFF + + + + No documentation. + + + DXVA2_SampleData_TFF + DXVA2_SampleData_TFF + + + + No documentation. + + + DXVA2_SampleData_RFF_TFF_Present + DXVA2_SampleData_RFF_TFF_Present + + + +

Describes the content of a video sample. These flags are used in the structure.

+
+ +

This enumeration is equivalent to the DXVA_SampleFormat enumeration used in DXVA 1.0.

The following table shows the mapping from enumeration values, which are used in Media Foundation media types, to values.

Value Value
.
.
.
.
.
No exact match. Use as an initial value, then use the interlace flags from the media samples. For more information, see Video Interlacing.

?

With the exception of , each pair of corresponding enumeration values has the same numeric value.

The value has no equivalent in the enumeration.

+
+ + ms699834 + DXVA2_SampleFormat + DXVA2_SampleFormat +
+ + + No documentation. + + + ms699834 + DXVA2_SampleFormatMask + DXVA2_SampleFormatMask + + + + No documentation. + + + ms699834 + DXVA2_SampleUnknown + DXVA2_SampleUnknown + + + + No documentation. + + + ms699834 + DXVA2_SampleProgressiveFrame + DXVA2_SampleProgressiveFrame + + + + No documentation. + + + ms699834 + DXVA2_SampleFieldInterleavedEvenFirst + DXVA2_SampleFieldInterleavedEvenFirst + + + + No documentation. + + + ms699834 + DXVA2_SampleFieldInterleavedOddFirst + DXVA2_SampleFieldInterleavedOddFirst + + + + No documentation. + + + ms699834 + DXVA2_SampleFieldSingleEven + DXVA2_SampleFieldSingleEven + + + + No documentation. + + + ms699834 + DXVA2_SampleFieldSingleOdd + DXVA2_SampleFieldSingleOdd + + + + No documentation. + + + ms699834 + DXVA2_SampleSubStream + DXVA2_SampleSubStream + + + +

Specifies the luma key for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

To use this state, the device must support luma keying, indicated by the capability flag. To query for this capability, call . If the device supports luma keying, it sets the flag in the FeatureCaps member of the structure.

If the device does not support luma keying, the method fails for this state.

If the input format is RGB, the device must also support the capability. This capability flag is set in the InputFormatCaps member of the structure. If the flag is not present, the device ignores the luma key value for RGB input.

The values of Lower and Upper give the lower and upper bounds of the luma key, using a nominal range of [0...1]. Given a format with n bits per channel, these values are converted to luma values as follows:

val = f * ((1 << n)-1)

Any pixel whose luma value falls within the upper and lower bounds (inclusive) is treated as transparent.

For example, if the pixel format uses 8-bit luma, the upper bound is calculated as follows:

BYTE Y = BYTE(max(min(1.0, Upper), 0.0) * 255.0)

Note that the value is clamped to the range [0...1] before multiplying by 255.

+
+ + dd318766 + DXVAHD_STREAM_STATE + DXVAHD_STREAM_STATE +
+ + +

If TRUE, luma keying is enabled. Otherwise, luma keying is disabled. The default value is .

+
+ + dd318766 + DXVAHD_STREAM_STATE_D3DFORMAT + DXVAHD_STREAM_STATE_D3DFORMAT +
+ + +

The lower bound for the luma key. The range is [0?1]. The default state value is 0.0.

+
+ + dd318766 + DXVAHD_STREAM_STATE_FRAME_FORMAT + DXVAHD_STREAM_STATE_FRAME_FORMAT +
+ + +

The upper bound for the luma key. The range is [0?1]. The default state value is 0.0.

+
+ + dd318766 + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE +
+ + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_OUTPUT_RATE + DXVAHD_STREAM_STATE_OUTPUT_RATE + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_SOURCE_RECT + DXVAHD_STREAM_STATE_SOURCE_RECT + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_DESTINATION_RECT + DXVAHD_STREAM_STATE_DESTINATION_RECT + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_ALPHA + DXVAHD_STREAM_STATE_ALPHA + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_PALETTE + DXVAHD_STREAM_STATE_PALETTE + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_LUMA_KEY + DXVAHD_STREAM_STATE_LUMA_KEY + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_ASPECT_RATIO + DXVAHD_STREAM_STATE_ASPECT_RATIO + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS + DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_CONTRAST + DXVAHD_STREAM_STATE_FILTER_CONTRAST + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_HUE + DXVAHD_STREAM_STATE_FILTER_HUE + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_SATURATION + DXVAHD_STREAM_STATE_FILTER_SATURATION + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION + DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT + DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING + DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING + + + + No documentation. + + + dd318766 + DXVAHD_STREAM_STATE_PRIVATE + DXVAHD_STREAM_STATE_PRIVATE + + + +

Describes a DirectX surface type for DirectX Video Acceleration (DXVA).

+
+ + ms699850 + DXVA2_SurfaceType + DXVA2_SurfaceType +
+ + +

The surface is a decoder render target.

+
+ + ms699850 + DXVA2_SurfaceType_DecoderRenderTarget + DXVA2_SurfaceType_DecoderRenderTarget +
+ + +

The surface is a video processor render target.

+
+ + ms699850 + DXVA2_SurfaceType_ProcessorRenderTarget + DXVA2_SurfaceType_ProcessorRenderTarget +
+ + +

The surface is a Direct3D texture render target.

+
+ + ms699850 + DXVA2_SurfaceType_D3DRenderTargetTexture + DXVA2_SurfaceType_D3DRenderTargetTexture +
+ + +

Specifies the type of video surface created by a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ +

If the DXVA-HD device is a software plug-in and the surface type is , the device can support format types that are not supported natively by the graphics driver. For example, if the application requests an AYUV surface, the device could allocate a surface with a surface type of .

+
+ + dd318772 + DXVAHD_SURFACE_TYPE + DXVAHD_SURFACE_TYPE +
+ + +

A surface for an input stream. This surface type is equivalent to an off-screen plain surface in Microsoft Direct3D. The application can use the surface in Direct3D calls.

+
+ + dd318772 + DXVAHD_SURFACE_TYPE_VIDEO_INPUT + DXVAHD_SURFACE_TYPE_VIDEO_INPUT +
+ + +

A private surface for an input stream. This surface type is equivalent to an off-screen plain surface, except that the application cannot use the surface in Direct3D calls.

+
+ + dd318772 + DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE + DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE +
+ + +

A surface for an output stream. This surface type is equivalent to an off-screen plain surface in Direct3D. The application can use the surface in Direct3D calls.

This surface type is recommended for video processing applications that need to lock the surface and access the surface memory. For video playback with optimal performance, a render-target surface or swap chain is recommended instead.

+
+ + dd318772 + DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT + DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT +
+ + +

Describes how chroma values are positioned relative to the luma samples in a YUV video frame. These flags are used in the structure.

+
+ +

The following diagrams show the most common arrangements.

+
+ + ms694252 + DXVA2_VideoChromaSubSampling + DXVA2_VideoChromaSubSampling +
+ + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsamplingMask + DXVA2_VideoChromaSubsamplingMask + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_Unknown + DXVA2_VideoChromaSubsampling_Unknown + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_ProgressiveChroma + DXVA2_VideoChromaSubsampling_ProgressiveChroma + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_Horizontally_Cosited + DXVA2_VideoChromaSubsampling_Horizontally_Cosited + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_Vertically_Cosited + DXVA2_VideoChromaSubsampling_Vertically_Cosited + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_MPEG2 + DXVA2_VideoChromaSubsampling_MPEG2 + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_MPEG1 + DXVA2_VideoChromaSubsampling_MPEG1 + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_DV_PAL + DXVA2_VideoChromaSubsampling_DV_PAL + + + + No documentation. + + + ms694252 + DXVA2_VideoChromaSubsampling_Cosited + DXVA2_VideoChromaSubsampling_Cosited + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0009 + __MIDL___MIDL_itf_dxva2api_0000_0000_0009 + + + + No documentation. + + + DXVA2_VPDev_HardwareDevice + DXVA2_VPDev_HardwareDevice + + + + No documentation. + + + DXVA2_VPDev_EmulatedDXVA1 + DXVA2_VPDev_EmulatedDXVA1 + + + + No documentation. + + + DXVA2_VPDev_SoftwareDevice + DXVA2_VPDev_SoftwareDevice + + + +

Describes the intended lighting conditions for viewing video content. These flags are used in the structure.

+
+ +

This enumeration is equivalent to the DXVA_VideoLighting enumeration used in DXVA 1.0.

If you are using the interface to describe the video format, the video lighting is specified in the attribute.

+
+ + ms703932 + DXVA2_VideoLighting + DXVA2_VideoLighting +
+ + + No documentation. + + + ms703932 + DXVA2_VideoLightingMask + DXVA2_VideoLightingMask + + + + No documentation. + + + ms703932 + DXVA2_VideoLighting_Unknown + DXVA2_VideoLighting_Unknown + + + + No documentation. + + + ms703932 + DXVA2_VideoLighting_bright + DXVA2_VideoLighting_bright + + + + No documentation. + + + ms703932 + DXVA2_VideoLighting_office + DXVA2_VideoLighting_office + + + + No documentation. + + + ms703932 + DXVA2_VideoLighting_dim + DXVA2_VideoLighting_dim + + + + No documentation. + + + ms703932 + DXVA2_VideoLighting_dark + DXVA2_VideoLighting_dark + + + +

Specifies the color primaries of a video source. These flags are used in the structure.

+
+ +

Color primaries define how to convert RGB colors into the CIE XYZ color space, and can be used to translate colors between different RGB color spaces. An RGB color space is defined by the chromaticity coordinates (x,y) of the RGB primaries plus the white point, as listed in the following table.

Color space(Rx, Ry)(Gx, Gy)(Bx, By)White point (Wx, Wy)
BT.709(0.64, 0.33)(0.30, 0.60)(0.15, 0.06) D65 (0.3127, 0.3290)
BT.470-2 System M; EBU 3212 (0.64, 0.33)(0.29, 0.60)(0.15, 0.06) D65 (0.3127, 0.3290)
BT.470-4 System B,G(0.67, 0.33)(0.21, 0.71)(0.14, 0.08) CIE III.C (0.310, 0.316)
SMPTE 170M; SMPTE 240M; SMPTE C (0.63, 0.34)(0.31, 0.595)(0.155, 0.07) D65 (0.3127, 0.3291)

?

The z coordinates can be derived from x and y as follows: z = 1 - x - y. To convert between RGB colors to CIE XYZ tristimulus values, compute a matrix T as follows:

Given T, you can use the following formulas to convert between an RGB color value and a CIE XYZ tristimulus value. These formulas assume that the RGB components are linear (not gamma corrected) and are normalized to the range [0...1].

To convert colors directly from one RGB color space to another, use the following formula, where T1 is the matrix for color space RGB1, and T2 is the matrix for color space RGB2.

For a derivation of these formulas, refer to Charles Poynton, Digital Video and HDTV Algorithms and Interfaces (Morgan Kaufmann, 2003).

This enumeration is equivalent to the DXVA_VideoPrimaries enumeration used in DXVA 1.0.

If you are using the interface to describe the video format, the color primaries are specified in the attribute.

+
+ + ms696997 + DXVA2_VideoPrimaries + DXVA2_VideoPrimaries +
+ + + No documentation. + + + ms696997 + DXVA2_VideoPrimariesMask + DXVA2_VideoPrimariesMask + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_Unknown + DXVA2_VideoPrimaries_Unknown + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_reserved + DXVA2_VideoPrimaries_reserved + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_BT709 + DXVA2_VideoPrimaries_BT709 + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_BT470_2_SysM + DXVA2_VideoPrimaries_BT470_2_SysM + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_BT470_2_SysBG + DXVA2_VideoPrimaries_BT470_2_SysBG + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_SMPTE170M + DXVA2_VideoPrimaries_SMPTE170M + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_SMPTE240M + DXVA2_VideoPrimaries_SMPTE240M + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_EBU3213 + DXVA2_VideoPrimaries_EBU3213 + + + + No documentation. + + + ms696997 + DXVA2_VideoPrimaries_SMPTE_C + DXVA2_VideoPrimaries_SMPTE_C + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0008 + __MIDL___MIDL_itf_dxva2api_0000_0000_0008 + + + + No documentation. + + + DXVA2_VideoProcess_None + DXVA2_VideoProcess_None + + + + No documentation. + + + DXVA2_VideoProcess_YUV2RGB + DXVA2_VideoProcess_YUV2RGB + + + + No documentation. + + + DXVA2_VideoProcess_StretchX + DXVA2_VideoProcess_StretchX + + + + No documentation. + + + DXVA2_VideoProcess_StretchY + DXVA2_VideoProcess_StretchY + + + + No documentation. + + + DXVA2_VideoProcess_AlphaBlend + DXVA2_VideoProcess_AlphaBlend + + + + No documentation. + + + DXVA2_VideoProcess_SubRects + DXVA2_VideoProcess_SubRects + + + + No documentation. + + + DXVA2_VideoProcess_SubStreams + DXVA2_VideoProcess_SubStreams + + + + No documentation. + + + DXVA2_VideoProcess_SubStreamsExtended + DXVA2_VideoProcess_SubStreamsExtended + + + + No documentation. + + + DXVA2_VideoProcess_YUV2RGBExtended + DXVA2_VideoProcess_YUV2RGBExtended + + + + No documentation. + + + DXVA2_VideoProcess_AlphaBlendExtended + DXVA2_VideoProcess_AlphaBlendExtended + + + + No documentation. + + + DXVA2_VideoProcess_Constriction + DXVA2_VideoProcess_Constriction + + + + No documentation. + + + DXVA2_VideoProcess_NoiseFilter + DXVA2_VideoProcess_NoiseFilter + + + + No documentation. + + + DXVA2_VideoProcess_DetailFilter + DXVA2_VideoProcess_DetailFilter + + + + No documentation. + + + DXVA2_VideoProcess_PlanarAlpha + DXVA2_VideoProcess_PlanarAlpha + + + + No documentation. + + + DXVA2_VideoProcess_LinearScaling + DXVA2_VideoProcess_LinearScaling + + + + No documentation. + + + DXVA2_VideoProcess_GammaCompensated + DXVA2_VideoProcess_GammaCompensated + + + + No documentation. + + + DXVA2_VideoProcess_MaintainsOriginalFieldData + DXVA2_VideoProcess_MaintainsOriginalFieldData + + + + No documentation. + + + __MIDL___MIDL_itf_dxva2api_0000_0000_0007 + __MIDL___MIDL_itf_dxva2api_0000_0000_0007 + + + + No documentation. + + + DXVA2_ProcAmp_None + DXVA2_ProcAmp_None + + + + No documentation. + + + DXVA2_ProcAmp_Brightness + DXVA2_ProcAmp_Brightness + + + + No documentation. + + + DXVA2_ProcAmp_Contrast + DXVA2_ProcAmp_Contrast + + + + No documentation. + + + DXVA2_ProcAmp_Hue + DXVA2_ProcAmp_Hue + + + + No documentation. + + + DXVA2_ProcAmp_Saturation + DXVA2_ProcAmp_Saturation + + + +

Specifies the conversion function from linear RGB to non-linear RGB (R'G'B'). These flags are used in the Structure.

+
+ +

The following table shows the formulas for the most common transfer functions. In these formulas, L is the linear value and L' is the non-linear (gamma corrected) value. These values are relative to a normalized range [0...1].

Color spaceTransfer function
sRGB (8-bit)

L' = 12.92L, for L < 0.031308

L' = 1.055L^1/2.4? 0.055, for L >= 0.031308

BT.470-2 System B, GL' = L^0.36
BT.470-2 System ML' = L^0.45
BT.709

L' = 4.50L, for L < 0.018

L' = 1.099L^0.45? 0.099, for L >= 0.018

scRGBL' = L
SMPTE 240M

L' = 4.0L, for L < 0.0228

L' = 1.1115L^0.45? 0.01115, for L >= 0.0228

?

The following table shows the inverse formulas to obtain the original gamma-corrected values:

Color spaceTransfer function
sRGB (8-bit)

L = 1/12.92L', for L' < 0.03928

L = ((L' + 0.055)/1055)^2.4, for L' >= 0.03928

BT.470-2 System B, GL = L'^1/0.36
BT.470-2 System ML = L'^1/0.45
BT.709

L = L'/4.50, for L' < 0.081

L = ((L' + 0.099) / 1.099)^1/0.45, for L' >= 0.081

scRGBL = L'
SMPTE 240M

L = L'/4.0, for L' < 0.0913

L= ((L' + 0.1115)/1.1115)^1/0.45, for L' >= 0.0913

?

This enumeration is equivalent to the DXVA_VideoTransferFunction enumeration used in DXVA 1.0.

If you are using the interface to describe the video format, the transfer function is specified in the attribute.

+
+ + bb970392 + DXVA2_VideoTransferFunction + DXVA2_VideoTransferFunction +
+ + +

Bitmask to validate flag values. This value is not a valid flag.

+
+ + bb970392 + DXVA2_VideoTransFuncMask + DXVA2_VideoTransFuncMask +
+ + +

Unknown. Treat as .

+
+ + bb970392 + DXVA2_VideoTransFunc_Unknown + DXVA2_VideoTransFunc_Unknown +
+ + +

Linear RGB (gamma = 1.0).

+
+ + bb970392 + DXVA2_VideoTransFunc_10 + DXVA2_VideoTransFunc_10 +
+ + +

True 1.8 gamma, L' = L^1/1.8.

+
+ + bb970392 + DXVA2_VideoTransFunc_18 + DXVA2_VideoTransFunc_18 +
+ + +

True 2.0 gamma, L' = L^1/2.0.

+
+ + bb970392 + DXVA2_VideoTransFunc_20 + DXVA2_VideoTransFunc_20 +
+ + +

True 2.2 gamma, L' = L^1/2.2. This transfer function is used in ITU-R BT.470-2 System M (NTSC).

+
+ + bb970392 + DXVA2_VideoTransFunc_22 + DXVA2_VideoTransFunc_22 +
+ + +

ITU-R BT.709 transfer function. Gamma 2.2 curve with a linear segment in the lower range. This transfer function is used in BT.709, BT.601, SMPTE 296M, SMPTE 170M, BT.470, and SMPTE 274M. In addition BT-1361 uses this function within the range [0...1].

+
+ + bb970392 + DXVA2_VideoTransFunc_709 + DXVA2_VideoTransFunc_709 +
+ + +

SMPTE 240M transfer function. Gamma 2.2 curve with a linear segment in the lower range.

+
+ + bb970392 + DXVA2_VideoTransFunc_240M + DXVA2_VideoTransFunc_240M +
+ + +

sRGB transfer function. Gamma 2.4 curve with a linear segment in the lower range.

+
+ + bb970392 + DXVA2_VideoTransFunc_sRGB + DXVA2_VideoTransFunc_sRGB +
+ + +

True 2.8 gamma. L' = L^1/2.8. This transfer function is used in ITU-R BT.470-2 System B, G (PAL).

+
+ + bb970392 + DXVA2_VideoTransFunc_28 + DXVA2_VideoTransFunc_28 +
+ + +

Describes the conversion matrices between Y'PbPr (component video) and studio R'G'B'. These flags are used in the structure.

+
+ +

The transfer matrices are defined as follows.

BT.709 transfer matrices:

Y' 0.212600 0.715200 0.072200 R' + Pb = -0.114572 -0.385428 0.500000 x G' + Pr 0.500000 -0.454153 -0.045847 B' R' 1.000000 0.000000 1.574800 Y' + G' = 1.000000 -0.187324 -0.468124 x Pb + B' 1.000000 1.855600 0.000000 Pr +

BT.601 transfer matrices:

Y' 0.299000 0.587000 0.114000 R' + Pb = -0.168736 -0.331264 0.500000 x G' + Pr 0.500000 -0.418688 -0.081312 B' R' 1.000000 0.000000 1.402000 Y' + G' = 1.000000 -0.344136 -0.714136 x Pb + B' 1.000000 1.772000 0.000000 Pr +

SMPTE 240M (SMPTE RP 145) transfer matrices:

Y' 0.212000 0.701000 0.087000 R' + Pb = -0.116000 -0.384000 0.500000 x G' + Pr 0.500000 -0.445000 -0.055000 B' R' 1.000000 -0.000000 1.576000 Y' + G' = 1.000000 -0.227000 -0.477000 x Pb + B' 1.000000 1.826000 0.000000 Pr +

This enumeration is equivalent to the DXVA_VideoTransferMatrix enumeration used in DXVA 1.0.

If you are using the interface to describe the video format, the video transfer matrix is specified in the attribute.

+
+ + ms698715 + DXVA2_VideoTransferMatrix + DXVA2_VideoTransferMatrix +
+ + + No documentation. + + + ms698715 + DXVA2_VideoTransferMatrixMask + DXVA2_VideoTransferMatrixMask + + + + No documentation. + + + ms698715 + DXVA2_VideoTransferMatrix_Unknown + DXVA2_VideoTransferMatrix_Unknown + + + + No documentation. + + + ms698715 + DXVA2_VideoTransferMatrix_BT709 + DXVA2_VideoTransferMatrix_BT709 + + + + No documentation. + + + ms698715 + DXVA2_VideoTransferMatrix_BT601 + DXVA2_VideoTransferMatrix_BT601 + + + + No documentation. + + + ms698715 + DXVA2_VideoTransferMatrix_SMPTE240M + DXVA2_VideoTransferMatrix_SMPTE240M + + + + Functions + + + + + +

Creates an instance of the Direct3D Device Manager.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Windows Store apps must use IMFDXGIDeviceManager and Direct3D 11 Video APIs.

+
+ + bb970490 + HRESULT DXVA2CreateDirect3DDeviceManager9([Out] unsigned int* pResetToken,[Out, Fast] IDirect3DDeviceManager9** ppDeviceManager) + DXVA2CreateDirect3DDeviceManager9 +
+ + +

Creates a DirectX Video Acceleration (DXVA) services object. Call this function if your application uses DXVA directly, without using DirectShow or Media Foundation.

+
+

A reference to the interface of a Direct3D device.

+

The interface identifier (IID) of the requested interface. Any of the following interfaces might be supported by the Direct3D device:

+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms704721 + HRESULT DXVA2CreateVideoService([In] IDirect3DDevice9* pDD,[In] const GUID& riid,[Out] void** ppService) + DXVA2CreateVideoService +
+ + +

Creates a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

A reference to the interface of a Direct3D 9 device.

+

A reference to a structure that describes the video content. The driver uses this information as a hint when it creates the device.

+

A member of the enumeration, describing how the device will be used. The value indicates the desired trade-off between speed and video quality. The driver uses this flag as a hint when it creates the device.

+

A reference to an initialization function for a software device. Set this reference if you are using a software plug-in device. Otherwise, set this parameter to null. If the value is null, the driver creates the DXVA-HD device.

The function reference type is PDXVAHDSW_Plugin.

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOINTERFACE

The Direct3D device does not support DXVA-HD.

?

+ +

Use the interface to get the device capabilities, create the video processor, and allocate video surfaces.

+
+ + dd318412 + HRESULT DXVAHD_CreateDevice([In] IDirect3DDevice9Ex* pD3DDevice,[In] const DXVAHD_CONTENT_DESC* pContentDesc,[In] DXVAHD_DEVICE_USAGE Usage,[In, Optional] __function__stdcall* pPlugin,[Out, Fast] IDXVAHD_Device** ppDevice) + DXVAHD_CreateDevice +
+ + +

Represents a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

To get a reference to this interface, call the method.

+
+ + dd373918 + IDXVAHD_VideoProcessor + IDXVAHD_VideoProcessor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets a state parameter for a blit operation by a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

The state parameter to set, specified as a member of the enumeration.

+

The size, in bytes, of the buffer pointed to by pData.

+

A reference to a buffer that contains the state data. The meaning of the data depends on the State parameter. Each state has a corresponding data structure; for more information, see . The caller allocates the buffer and fills in the parameter data before calling this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373921 + HRESULT IDXVAHD_VideoProcessor::SetVideoProcessBltState([In] DXVAHD_BLT_STATE State,[In] unsigned int DataSize,[In, Buffer] const void* pData) + IDXVAHD_VideoProcessor::SetVideoProcessBltState +
+ + +

Gets the value of a state parameter for blit operations performed by a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

The state parameter to query, specified as a member of the enumeration.

+

The size, in bytes, of the buffer pointed to by pData.

+

A reference to a buffer allocated by the caller. The method copies the state data into the buffer. The buffer must be large enough to hold the data structure that corresponds to the state parameter. For more information, see .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373919 + HRESULT IDXVAHD_VideoProcessor::GetVideoProcessBltState([In] DXVAHD_BLT_STATE State,[In] unsigned int DataSize,[Out, Buffer] void* pData) + IDXVAHD_VideoProcessor::GetVideoProcessBltState +
+ + +

Sets a state parameter for an input stream on a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

The zero-based index of the input stream. To get the maximum number of streams, call and check the MaxStreamStates member of the structure.

+

The state parameter to set, specified as a member of the enumeration.

+

The size, in bytes, of the buffer pointed to by pData.

+

A reference to a buffer that contains the state data. The meaning of the data depends on the State parameter. Each state has a corresponding data structure; for more information, see . The caller allocates the buffer and fills in the parameter data before calling this method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method to set state parameters that apply to individual input streams.

+
+ + dd373922 + HRESULT IDXVAHD_VideoProcessor::SetVideoProcessStreamState([In] unsigned int StreamNumber,[In] DXVAHD_STREAM_STATE State,[In] unsigned int DataSize,[In, Buffer] const void* pData) + IDXVAHD_VideoProcessor::SetVideoProcessStreamState +
+ + +

Gets the value of a state parameter for an input stream on a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+

The zero-based index of the input stream. To get the maximum number of streams, call and check the MaxStreamStates member of the structure.

+

The state parameter to query, specified as a member of the enumeration.

+

The size, in bytes, of the buffer pointed to by pData.

+

A reference to a buffer allocated by the caller. The method copies the state data into the buffer. The buffer must be large enough to hold the data structure that corresponds to the state parameter. For more information, see .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373920 + HRESULT IDXVAHD_VideoProcessor::GetVideoProcessStreamState([In] unsigned int StreamNumber,[In] DXVAHD_STREAM_STATE State,[In] unsigned int DataSize,[Out, Buffer] void* pData) + IDXVAHD_VideoProcessor::GetVideoProcessStreamState +
+ + +

Performs a video processing blit on one or more input samples and writes the result to a Microsoft Direct3D surface.

+
+

A reference to the interface of a Direct3D surface. The output of the video processing operation will be written to this surface. The following surface types can be used:

  • A video surface of type . See .
  • A render-target surface or texture surface created with usage.
  • A swap chain.
  • A swap chain with overlay support ().
+

Frame number of the output video frame, indexed from zero.

+

Number of input streams to process.

+

Pointer to an array of structures that contain information about the input streams. The caller allocates the array and fills in each structure. The number of elements in the array is given in the StreamCount parameter.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The maximum value of StreamCount is given in the MaxStreamStates member of the structure. The maximum numbr of streams that can be enabled at one time is given in the MaxInputStreams member of that structure.

+
+ + dd373923 + HRESULT IDXVAHD_VideoProcessor::VideoProcessBltHD([In] IDirect3DSurface9* pOutputSurface,[In] unsigned int OutputFrame,[In] unsigned int StreamCount,[In, Buffer] const DXVAHD_STREAM_DATA* pStreams) + IDXVAHD_VideoProcessor::VideoProcessBltHD +
+ + +

Represents a DirectX Video Acceleration (DXVA) video decoder device.

To get a reference to this interface, call .

+
+ +

The methods make calls to the Direct3D device. Therefore, the flags that you specify when creating the device can affect the behavior of this interface. For example, if you specify the flag, the Direct3D global critical section will be held during decode operations.

+
+ + ms694281 + IDirectXVideoDecoder + IDirectXVideoDecoder +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the DirectX Video Acceleration (DXVA) decoder service that created this decoder device.

+
+

Receives a reference to interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms694049 + HRESULT IDirectXVideoDecoder::GetVideoDecoderService([Out] IDirectXVideoDecoderService** ppService) + IDirectXVideoDecoder::GetVideoDecoderService +
+ + +

Retrieves the parameters that were used to create this device.

+
+

Receives the device . This parameter can be null.

+

Pointer to a structure that receives a description of the video format. This parameter can be null.

+

Pointer to a structure structure that receives the decoder configuration. This parameter can be null.

+

Receives an array of interface references. These references represent the decoder render targets. The method allocates the memory for the array and calls AddRef on each of the references. The caller must release the references and call CoTaskMemFree to free the memory for the array. This parameter can be null.

+

Receives the number of elements in the pppDecoderRenderTargets array. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument. At least one parameter must be non-null.

?

+ +

You can set any parameter to null if you are not interested in the result. At least one parameter must be non-null.

If you specify a non-null value for pppDecoderRenderTargets (to receive the render target surfaces), then pNumSurfaces cannot be null, because it receives the size of the array returned in pppDecoderRenderTargets.

+
+ + ms697355 + HRESULT IDirectXVideoDecoder::GetCreationParameters([Out, Optional] GUID* pDeviceGuid,[Out, Optional] DXVA2_VideoDesc* pVideoDesc,[Out, Optional] DXVA2_ConfigPictureDecode* pConfig,[Out, Buffer] IDirect3DSurface9*** pDecoderRenderTargets,[Out, Optional] unsigned int* pNumSurfaces) + IDirectXVideoDecoder::GetCreationParameters +
+ + +

Retrieves a reference to a DirectX Video Acceleration (DXVA) decoder buffer.

+
+

Type of buffer to retrieve. Use one of the following values.

ValueMeaning

Picture decoding parameter buffer.

Macroblock control command buffer.

Residual difference block data buffer.

Deblocking filter control command buffer.

Inverse quantization matrix buffer.

Slice-control buffer.

Bitstream data buffer.

Motion vector buffer.

Film grain synthesis data buffer.

?

+

Receives a reference to the start of the memory buffer.

+

Receives the size of the buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The method locks the Direct3D surface that contains the buffer. When you are done using the buffer, call to unlock the surface.

This method might block if too many operations have been queued on the GPU. The method unblocks when a free buffer becomes available.

+
+ + ms703992 + HRESULT IDirectXVideoDecoder::GetBuffer([In] unsigned int BufferType,[Out] void** ppBuffer,[Out] unsigned int* pBufferSize) + IDirectXVideoDecoder::GetBuffer +
+ + +

Releases a buffer that was obtained by calling .

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704764 + HRESULT IDirectXVideoDecoder::ReleaseBuffer([In] unsigned int BufferType) + IDirectXVideoDecoder::ReleaseBuffer +
+ + +

Starts the decoding operation.

+
+

Pointer to the interface of the render target where the decoded frame will be written.

+

Reserved; set to null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid surface type. See Remarks.

?

+ +

After this method is called, call to perform decoding operations. When all decoding operations have been executed, call .

Each call to BeginFrame must have a matching call to EndFrame, and BeginFrame calls cannot be nested.

DXVA 1.0 migration note: Unlike the IAMVideoAccelerator::BeginFrame method, which specifies the buffer as an index, this method takes a reference directly to the uncompressed buffer.

The surface pointed to by pRenderTarget must be created by calling with the value for DxvaType.

+
+ + ms694840 + HRESULT IDirectXVideoDecoder::BeginFrame([In] IDirect3DSurface9* pRenderTarget,[In, Optional] void* pvPVPData) + IDirectXVideoDecoder::BeginFrame +
+ + +

Signals the end of the decoding operation.

+
+

Reserved.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697031 + HRESULT IDirectXVideoDecoder::EndFrame([InOut, Optional] void** pHandleComplete) + IDirectXVideoDecoder::EndFrame +
+ + +

Executes a decoding operation on the current frame.

+
+

Pointer to a structure that contains the information needed for the decoding operation.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You must call before calling this method.

+
+ + ms696258 + HRESULT IDirectXVideoDecoder::Execute([In] const DXVA2_DecodeExecuteParams* pExecuteParams) + IDirectXVideoDecoder::Execute +
+ + +

Retrieves the DirectX Video Acceleration (DXVA) decoder service that created this decoder device.

+
+ + ms694049 + GetVideoDecoderService + GetVideoDecoderService + HRESULT IDirectXVideoDecoder::GetVideoDecoderService([Out] IDirectXVideoDecoderService** ppService) +
+ + +

Sets the type of video memory for uncompressed video surfaces. This interface is used by video decoders and transforms.

The DirectShow enhanced video renderer (EVR) filter exposes this interface as a service on the filter's input pins. To obtain a reference to this interface, call with the service identifier .

A video decoder can use this interface to enumerate the EVR filter's preferred surface types and then select the surface type. The decoder should then create surfaces of that type to hold the results of the decoding operation.

This interface does not define a way to clear the surface type. In the case of DirectShow, disconnecting two filters invalidates the surface type.

+
+ + ms703164 + IDirectXVideoMemoryConfiguration + IDirectXVideoMemoryConfiguration +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a supported video surface type.

+
+

Zero-based index of the surface type to retrieve. Surface types are indexed in order of preference, starting with the most preferred type.

+

Receives a member of the enumeration that specifies the surface type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The index was out of range.

?

+ + ms697493 + HRESULT IDirectXVideoMemoryConfiguration::GetAvailableSurfaceTypeByIndex([In] unsigned int dwTypeIndex,[Out] DXVA2_SurfaceType* pdwType) + IDirectXVideoMemoryConfiguration::GetAvailableSurfaceTypeByIndex +
+ + +

Sets the video surface type that a decoder will use for DirectX Video Acceleration (DVXA) 2.0.

+
+

Member of the enumeration specifying the surface type. Currently, the only supported value is .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The renderer does not support the specified surface type.

?

+ +

By calling this method, the caller agrees to create surfaces of the type specified in the dwType parameter.

In DirectShow, during pin connection, a video decoder that supports DVXA 2.0 should call SetSurface with the value . This notifies the video renderer that the decoder will provide the allocator and will create the Direct3D surfaces for decoding. For more information, see Supporting DXVA 2.0 in DirectShow.

The only way to undo the setting is to break the pin connection.

+
+ + ms693977 + HRESULT IDirectXVideoMemoryConfiguration::SetSurfaceType([In] DXVA2_SurfaceType dwType) + IDirectXVideoMemoryConfiguration::SetSurfaceType +
+ + +

Sets the video surface type that a decoder will use for DirectX Video Acceleration (DVXA) 2.0.

+
+ +

By calling this method, the caller agrees to create surfaces of the type specified in the dwType parameter.

In DirectShow, during pin connection, a video decoder that supports DVXA 2.0 should call SetSurface with the value . This notifies the video renderer that the decoder will provide the allocator and will create the Direct3D surfaces for decoding. For more information, see Supporting DXVA 2.0 in DirectShow.

The only way to undo the setting is to break the pin connection.

+
+ + ms693977 + SetSurfaceType + SetSurfaceType + HRESULT IDirectXVideoMemoryConfiguration::SetSurfaceType([In] DXVA2_SurfaceType dwType) +
+ + +

Retrieves the parameters that were used to create this device.

+
+ +

You can set any parameter to null if you are not interested in the result. At least one parameter must be non-null.

+
+ + ms704783 + IDirectXVideoProcessor + IDirectXVideoProcessor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the DirectX Video Acceleration (DXVA) video processor service that created this video processor device.

+
+

Receives a reference to interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms700812 + HRESULT IDirectXVideoProcessor::GetVideoProcessorService([Out] IDirectXVideoProcessorService** ppService) + IDirectXVideoProcessor::GetVideoProcessorService +
+ + +

Retrieves the parameters that were used to create this device.

+
+

Receives the device . This parameter can be null.

+

Pointer to a structure allocated by the caller. The method fills the structure with a description of the video format. This parameter can be null.

+

Receives the render target format, specified as a value. For more information, see the Direct3D documentation. This parameter can be null.

+

Receives the maximum number of streams supported by the device. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument. At least one parameter must be non-null.

?

+ +

You can set any parameter to null if you are not interested in the result. At least one parameter must be non-null.

+
+ + ms704783 + HRESULT IDirectXVideoProcessor::GetCreationParameters([Out, Optional] GUID* pDeviceGuid,[Out, Optional] DXVA2_VideoDesc* pVideoDesc,[Out, Optional] D3DFORMAT* pRenderTargetFormat,[Out, Optional] unsigned int* pMaxNumSubStreams) + IDirectXVideoProcessor::GetCreationParameters +
+ + +

Retrieves the capabilities of the video processor device.

+
+

Pointer to a structure that receives the video processor capabilities.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704831 + HRESULT IDirectXVideoProcessor::GetVideoProcessorCaps([Out] DXVA2_VideoProcessorCaps* pCaps) + IDirectXVideoProcessor::GetVideoProcessorCaps +
+ + +

Retrieves the range of values for a video processor (ProcAmp) setting on this video processor device.

+
+

The ProcAmp setting to query. See ProcAmp Settings.

+

Pointer to a structure that receives the range of values for the setting specified in ProcAmpCaps.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms704610 + HRESULT IDirectXVideoProcessor::GetProcAmpRange([In] unsigned int ProcAmpCap,[Out] DXVA2_ValueRange* pRange) + IDirectXVideoProcessor::GetProcAmpRange +
+ + +

Retrieves the range of values for an image filter supported by this device.

+
+

Filter setting to query. For more information, see DXVA Image Filter Settings.

+

Pointer to a structure that receives the range of values for the setting specified in FilterSetting.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697209 + HRESULT IDirectXVideoProcessor::GetFilterPropertyRange([In] unsigned int FilterSetting,[Out] DXVA2_ValueRange* pRange) + IDirectXVideoProcessor::GetFilterPropertyRange +
+ + +

Performs a video process operation on one or more input samples and writes the result to a Direct3D9 surface.

+
+

A reference to the interface of a Direct3D surface. The output of the video processing operation will be written to this surface. The surface may be any of the following types:

  • A surface created by calling with the DXVA2_VideoProcessRenderTarget flag. You can also use the flag, but only when the device is DXVA2_VideoProcSoftwareDevice (software video processing device).
  • A surface created from a Direct3D device with the usage flag.
  • A Direct3D swap chain.
+

A reference to a structure that describes the video processing operation to perform.

+

A reference to an array of structures that contain the input samples. There must be at least one element in the array.

The maximum number of input samples is given by the constant MAX_DEINTERLACE_SURFACES, defined in the header file dxva2api.h.

+

The number of elements in the pSamples array.

+

Reserved; set to null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Internal driver error.

E_INVALIDARG

Invalid arguments.

?

+ +

When the method returns, the operation might not be complete.

If the method returns E_INVALIDARG, check for the following:

  • The number of input samples (NumSamples) must be less than or equal to MAX_DEINTERLACE_SURFACES.
  • The Direct3D surface must be a valid target for VideoProcessBlt. See the description of the pRT parameter for details.
  • The presentation time (TargetFrame) given in pBltParams must match the start and end times for the current picture from the primary stream. Specifically, it must be less than the end time and greater than or equal to the start time. Note that the first sample in pSamples might not be the current picture, if the pSamples array contains backward reference pictures. For more information, see Input Sample Order.
  • The target rectangle (TargetRect) given in pBltParams cannot be larger than the destination surface (pRT).
  • The constriction size (ConstrictionSize) given in pBltParams cannot be less than zero or larger than the target rectangle.
  • The alpha component of the background color must be opqaue.
  • The ProcAmp values given in pBltParams must be valid. For any ProcAmp settings that are supported by the driver, these values must fall within the ranges returned by the method.
  • The noise and detail filters given in pBltParams must be valid. For any filters that are supported by the driver, these values must fall within the ranges returned by the method.
  • The alpha value given in pBltParams must be in the range [0...1] inclusive.
  • For each input sample given in pSamples:
    • The start time cannot be greater than the end time.
    • A valid reference must be provided.
    • The source rectangle cannot be larger than the input surface.
    • The destination rectangle cannot be larger than than the destination surface.
    • The planar alpha must be in the range [0...1] inclusive.
  • For all rectangles (source, destination, and target), the rectangle cannot be inverted (left > right or top > bottom) or have negative values.
+
+ + ms697022 + HRESULT IDirectXVideoProcessor::VideoProcessBlt([In] IDirect3DSurface9* pRenderTarget,[In] const DXVA2_VideoProcessBltParams* pBltParams,[In, Buffer] const DXVA2_VideoSample* pSamples,[In] unsigned int NumSamples,[InOut, Optional] void** pHandleComplete) + IDirectXVideoProcessor::VideoProcessBlt +
+ + +

Retrieves the DirectX Video Acceleration (DXVA) video processor service that created this video processor device.

+
+ + ms700812 + GetVideoProcessorService + GetVideoProcessorService + HRESULT IDirectXVideoProcessor::GetVideoProcessorService([Out] IDirectXVideoProcessorService** ppService) +
+ + +

Retrieves the capabilities of the video processor device.

+
+ + ms704831 + GetVideoProcessorCaps + GetVideoProcessorCaps + HRESULT IDirectXVideoProcessor::GetVideoProcessorCaps([Out] DXVA2_VideoProcessorCaps* pCaps) +
+ + +

Contains an initialization vector (IV) for 128-bit Advanced Encryption Standard CTR mode (AES-CTR) block cipher encryption.

+
+ +

For AES-CTR encyption, the pvPVPState member of the structure points to a structure.

The D3DAES_CTR_IV structure and the structure are equivalent.

+
+ + ff728850 + DXVA2_AES_CTR_IV + DXVA2_AES_CTR_IV +
+ + +

The IV, in big-endian format.

+
+ + ff728850 + unsigned longlong IV + unsigned longlong IV +
+ + +

The block count, in big-endian format.

+
+ + ff728850 + unsigned longlong Count + unsigned longlong Count +
+ + +

Defines a 16-bit AYUV pixel value.

+
+ + bb970388 + DXVA2_AYUVSample16 + DXVA2_AYUVSample16 +
+ + +

Contains the Cr chroma value (also called V).

+
+ + bb970388 + unsigned short Cr + unsigned short Cr +
+ + +

Contains the Cb chroma value (also called U).

+
+ + bb970388 + unsigned short Cb + unsigned short Cb +
+ + +

Contains the luma value.

+
+ + bb970388 + unsigned short Y + unsigned short Y +
+ + +

Contains the alpha value.

+
+ + bb970388 + unsigned short Alpha + unsigned short Alpha +
+ + +

Defines an 8-bit AYUV pixel value.

+
+ + bb970398 + DXVA2_AYUVSample8 + DXVA2_AYUVSample8 +
+ + +

Contains the Cr chroma value (also called V).

+
+ + bb970398 + unsigned char Cr + unsigned char Cr +
+ + +

Contains the Cb chroma value (also called U).

+
+ + bb970398 + unsigned char Cb + unsigned char Cb +
+ + +

Contains the luma value.

+
+ + bb970398 + unsigned char Y + unsigned char Y +
+ + +

Contains the alpha value.

+
+ + bb970398 + unsigned char Alpha + unsigned char Alpha +
+ + +

Specifies how the output alpha values are calculated for blit operations when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ + dd318391 + DXVAHD_BLT_STATE_ALPHA_FILL_DATA + DXVAHD_BLT_STATE_ALPHA_FILL_DATA +
+ + +

Specifies the alpha fill mode, as a member of the enumeration.

If the FeatureCaps member of the structure does not contain the flag, the alpha fill mode must be set to .

The default state value is .

+
+ + dd318391 + DXVAHD_ALPHA_FILL_MODE Mode + DXVAHD_ALPHA_FILL_MODE Mode +
+ + +

Zero-based index of the input stream to use for the alpha values. This member is used when the alpha fill mode is ; otherwise, the value is ignored.

To get the maximum number of streams, call and check the MaxStreamStates member of the structure.

+
+ + dd318391 + unsigned int StreamNumber + unsigned int StreamNumber +
+ + +

Specifies the background color for blit operations, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

The background color is used to fill the target rectangle wherever no video image appears. Areas outside the target rectangle are not affected. See .

The color space of the background color is determined by the color space of the output. See .

The alpha value of the background color is used only when the alpha fill mode is . Otherwise, the alpha value is ignored. See .

The default background color is full-range RGB black, with opaque alpha.

+
+ + dd318392 + DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA + DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA +
+ + +

If TRUE, the BackgroundColor member specifies a YCbCr color. Otherwise, it specifies an RGB color. The default device state is (RGB color).

+
+ + dd318392 + BOOL YCbCr + BOOL YCbCr +
+ + +

A union that specifies the background color. The default state value is (0.0, 0.0, 0.0, 1.0).

+
+ + dd318392 + DXVAHD_COLOR BackgroundColor + DXVAHD_COLOR BackgroundColor +
+ + +

Specifies whether the output is downsampled in a blit operation, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

If the Enable member is TRUE, the device downsamples the composed target rectangle to the size given in the Size member, and then scales it back to the size of the target rectangle.

The width and height of Size must be greater than zero. If the size is larger than the target rectangle, downsampling does not occur.

To use this state, the device must support downsampling, indicated by the capability flag. To query for this capability, call . If the device supports downsampling, it sets the flag in the FeatureCaps member of the structure.

If the device does not support downsampling, the method fails for this state.

Downsampling is sometimes used to reduce the quality of premium content when other forms of content protection are not available.

+
+ + dd318394 + DXVAHD_BLT_STATE_CONSTRICTION_DATA + DXVAHD_BLT_STATE_CONSTRICTION_DATA +
+ + +

If TRUE, downsampling is enabled. Otherwise, downsampling is disabled and the Size member is ignored. The default state value is (downsampling is disabled).

+
+ + dd318394 + BOOL Enable + BOOL Enable +
+ + +

The sampling size. The default value is (1,1).

+
+ + dd318394 + SIZE Size + SIZE Size +
+ + +

Specifies the output color space for blit operations, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

The RGB_Range member applies to RGB output, while the YCbCr_Matrix and YCbCr_xvYCC members apply to YCbCr (YUV) output. If the device performs color-space conversion on the background color, it uses the values that apply to both color spaces.

Extended YCbCr can be used with either transfer matrix. Extended YCbCr does not change the black point or white point?the black point is still 16 and the white point is still 235. However, extended YCbCr explicitly allows blacker-than-black values in the range 1?15, and whiter-than-white values in the range 236?254. When extended YCbCr is used, the driver should not clip the luma values to the nominal 16?235 range.

If the device supports extended YCbCr, it sets the capability flag in the DeviceCaps member of the structure. Otherwise, the device ignores the value of the YCbCr_xvYCC member and treats all YCbCr output as conventional YCbCr. To get the device's capabilities, call .

If the output format is a wide-gamut RGB format, output might fall outside the nominal [0...1] range of sRGB. This is particularly true if one or more input streams use extended YCbCr.

+
+ + dd318395 + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA +
+ + + No documentation. + + + dd318395 + unsigned int Value + unsigned int Value + + + +

Specifies whether the output is intended for playback or video processing (such as editing or authoring). The device can optimize the processing based on the type. The default state value is 0 (playback).

ValueMeaning
0

Playback.

1

Video processing.

?

+
+ + dd318395 + unsigned int Usage + unsigned int Usage +
+ + +

Specifies the RGB color range. The default state value is 0 (full range).

ValueMeaning
0

Full range (0-255).

1

Limited range (16-235).

?

+
+ + dd318395 + unsigned int RGB_Range + unsigned int RGB_Range +
+ + +

Specifies the YCbCr transfer matrix. The default state value is 0 (BT.601).

ValueMeaning
0

ITU-R BT.601.

1

ITU-R BT.709.

?

+
+ + dd318395 + unsigned int YCbCr_Matrix + unsigned int YCbCr_Matrix +
+ + +

Specifies whether the output uses conventional YCbCr or extended YCbCr (xvYCC). The default state value is zero (conventional YCbCr).

ValueMeaning
0

Conventional YCbCr.

1

Extended YCbCr (xvYCC).

?

+
+ + dd318395 + unsigned int YCbCr_xvYCC + unsigned int YCbCr_xvYCC +
+ + + No documentation. + + + dd318395 + unsigned int Reserved + unsigned int Reserved + + + +

Contains data for a private blit state for Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

Use this structure for proprietary or device-specific state parameters.

The caller allocates the pData array. Set the DataSize member to the size of the array in bytes. When retrieving the state data, you can set pData to null to get the size of the data. The device will return the size in the DataSize member.

+
+ + dd318397 + DXVAHD_BLT_STATE_PRIVATE_DATA + DXVAHD_BLT_STATE_PRIVATE_DATA +
+ + +

A that identifies the private state. The meaning of this value is defined by the device.

+
+ + dd318397 + GUID Guid + GUID Guid +
+ + +

The size, in bytes, of the buffer pointed to by the pData member.

+
+ + dd318397 + unsigned int DataSize + unsigned int DataSize +
+ + +

A reference to a buffer that contains the private state data. The DXVA-HD runtime passes this buffer directly to the device without validation.

+
+ + dd318397 + void* pData + void pData +
+ + +

Specifies the target rectangle for blitting, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ + dd318400 + DXVAHD_BLT_STATE_TARGET_RECT_DATA + DXVAHD_BLT_STATE_TARGET_RECT_DATA +
+ + +

Specifies whether to use the target rectangle. The default state value is .

ValueMeaning
TRUE

Use the target rectangle specified by the TargetRect member.

Use the entire destination surface as the target rectangle. Ignore the TargetRect member.

?

+
+ + dd318400 + BOOL Enable + BOOL Enable +
+ + +

Specifies the target rectangle. The target rectangle is the area within the destination surface where the output will be drawn. The target rectangle is given in pixel coordinates, relative to the destination surface. The default state value is an empty rectangle, (0, 0, 0, 0).

If the Enable member is , the TargetRect member is ignored.

+
+ + dd318400 + RECT TargetRect + RECT TargetRect +
+ + +

Defines a color value for Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

This union can represent both RGB and YCbCr colors. The interpretation of the union depends on the context.

+
+ + dd318402 + DXVAHD_COLOR + DXVAHD_COLOR +
+ + +

A structure that contains an RGB color value.

+
+ + dd318402 + DXVAHD_COLOR_RGBA RGB + DXVAHD_COLOR_RGBA RGB +
+ + +

A structure that contains a YCbCr color value.

+
+ + dd318402 + DXVAHD_COLOR_YCbCrA YCbCr + DXVAHD_COLOR_YCbCrA YCbCr +
+ + +

Specifies an RGB color value.

+
+ +

The RGB values have a nominal range of [0...1]. For an RGB format with n bits per channel, the value of each color component is calculated as follows:

val = f * ((1 << n)-1)

For example, for RGB-32 (8 bits per channel), val = BYTE(f * 255.0).

For full-range RGB, reference black is (0.0, 0.0, 0.0), which corresponds to (0, 0, 0) in an 8-bit representation. For limited-range RGB, reference black is (0.0625, 0.0625, 0.0625), which corresponds to (16, 16, 16) in an 8-bit representation. For wide-gamut formats, the values might fall outside of the [0...1] range.

+
+ + dd318405 + DXVAHD_COLOR_RGBA + DXVAHD_COLOR_RGBA +
+ + +

The red value.

+
+ + dd318405 + float R + float R +
+ + +

The green value.

+
+ + dd318405 + float G + float G +
+ + +

The blue value.

+
+ + dd318405 + float B + float B +
+ + +

The alpha value. Values range from 0 (transparent) to 1 (opaque).

+
+ + dd318405 + float A + float A +
+ + +

Defines a color value for Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

This union can represent both RGB and YCbCr colors. The interpretation of the union depends on the context.

+
+ + dd318402 + DXVAHD_COLOR_YCbCrA + DXVAHD_COLOR_YCbCrA +
+ + +

A structure that contains an RGB color value.

+
+ + dd318402 + float Y + float Y +
+ + +

A structure that contains a YCbCr color value.

+
+ + dd318402 + float Cb + float Cb +
+ + + No documentation. + + + dd318402 + float Cr + float Cr + + + + No documentation. + + + dd318402 + float A + float A + + + +

Describes the configuration of a DXVA decoder device.

+
+ + ms694823 + DXVA2_ConfigPictureDecode + DXVA2_ConfigPictureDecode +
+ + +

Defines the encryption protocol type for bit-stream data buffers. If no encryption is applied, the value is DXVA_NoEncrypt. If ConfigBitstreamRaw is 0, the value must be DXVA_NoEncrypt.

+
+ + ms694823 + GUID guidConfigBitstreamEncryption + GUID guidConfigBitstreamEncryption +
+ + +

Defines the encryption protocol type for macroblock control data buffers. If no encryption is applied, the value is DXVA_NoEncrypt. If ConfigBitstreamRaw is 1, the value must be DXVA_NoEncrypt.

+
+ + ms694823 + GUID guidConfigMBcontrolEncryption + GUID guidConfigMBcontrolEncryption +
+ + +

Defines the encryption protocol type for residual difference decoding data buffers (buffers containing spatial-domain data or sets of transform-domain coefficients for accelerator-based IDCT). If no encryption is applied, the value is DXVA_NoEncrypt. If ConfigBitstreamRaw is 1, the value must be DXVA_NoEncrypt.

+
+ + ms694823 + GUID guidConfigResidDiffEncryption + GUID guidConfigResidDiffEncryption +
+ + +

Indicates whether the host-decoder sends raw bit-stream data. If the value is 1, the data for the pictures will be sent in bit-stream buffers as raw bit-stream content. If the value is 0, picture data will be sent using macroblock control command buffers. If either ConfigResidDiffHost or ConfigResidDiffAccelerator is 1, the value must be 0.

+
+ + ms694823 + unsigned int ConfigBitstreamRaw + unsigned int ConfigBitstreamRaw +
+ + +

Specifies whether macroblock control commands are in raster scan order or in arbitrary order. If the value is 1, the macroblock control commands within each macroblock control command buffer are in raster-scan order. If the value is 0, the order is arbitrary. For some types of bit streams, forcing raster order either greatly increases the number of required macroblock control buffers that must be processed, or requires host reordering of the control information. Therefore, supporting arbitrary order can be more efficient.

+
+ + ms694823 + unsigned int ConfigMBcontrolRasterOrder + unsigned int ConfigMBcontrolRasterOrder +
+ + +

Contains the host residual difference configuration. If the value is 1, some residual difference decoding data may be sent as blocks in the spatial domain from the host. If the value is 0, spatial domain data will not be sent.

+
+ + ms694823 + unsigned int ConfigResidDiffHost + unsigned int ConfigResidDiffHost +
+ + +

Indicates the word size used to represent residual difference spatial-domain blocks for predicted (non-intra) pictures when using host-based residual difference decoding.

If ConfigResidDiffHost is 1 and ConfigSpatialResid8 is 1, the host will send residual difference spatial-domain blocks for non-intra macroblocks using 8-bit signed samples and for intra macroblocks in predicted (non-intra) pictures in a format that depends on the value of ConfigIntraResidUnsigned:

  • If ConfigIntraResidUnsigned is 0, spatial-domain blocks for intra macroblocks are sent as 8-bit signed integer values relative to a constant reference value of 2^(BPP?1).
  • If ConfigIntraResidUnsigned is 1, spatial-domain blocks for intra macroblocks are sent as 8-bit unsigned integer values relative to a constant reference value of 0.

If ConfigResidDiffHost is 1 and ConfigSpatialResid8 is 0, the host will send residual difference spatial-domain blocks of data for non-intra macroblocks using 16- bit signed samples and for intra macroblocks in predicted (non-intra) pictures in a format that depends on the value of ConfigIntraResidUnsigned:

  • If ConfigIntraResidUnsigned is 0, spatial domain blocks for intra macroblocks are sent as 16-bit signed integer values relative to a constant reference value of 2^(BPP?1).
  • If ConfigIntraResidUnsigned is 1, spatial domain blocks for intra macroblocks are sent as 16-bit unsigned integer values relative to a constant reference value of 0.

If ConfigResidDiffHost is 0, ConfigSpatialResid8 must be 0.

For intra pictures, spatial-domain blocks must be sent using 8-bit samples if bits-per-pixel (BPP) is 8, and using 16-bit samples if BPP > 8. If ConfigIntraResidUnsigned is 0, these samples are sent as signed integer values relative to a constant reference value of 2^(BPP?1), and if ConfigIntraResidUnsigned is 1, these samples are sent as unsigned integer values relative to a constant reference value of 0.

+
+ + ms694823 + unsigned int ConfigSpatialResid8 + unsigned int ConfigSpatialResid8 +
+ + +

If the value is 1, 8-bit difference overflow blocks are subtracted rather than added. The value must be 0 unless ConfigSpatialResid8 is 1.

The ability to subtract differences rather than add them enables 8-bit difference decoding to be fully compliant with the full ?255 range of values required in video decoder specifications, because +255 cannot be represented as the addition of two signed 8-bit numbers, but any number in the range ?255 can be represented as the difference between two signed 8-bit numbers (+255 = +127 minus ?128).

+
+ + ms694823 + unsigned int ConfigResid8Subtraction + unsigned int ConfigResid8Subtraction +
+ + +

If the value is 1, spatial-domain blocks for intra macroblocks must be clipped to an 8-bit range on the host and spatial-domain blocks for non-intra macroblocks must be clipped to a 9-bit range on the host. If the value is 0, no such clipping is necessary by the host.

The value must be 0 unless ConfigSpatialResid8 is 0 and ConfigResidDiffHost is 1.

+
+ + ms694823 + unsigned int ConfigSpatialHost8or9Clipping + unsigned int ConfigSpatialHost8or9Clipping +
+ + +

If the value is 1, any spatial-domain residual difference data must be sent in a chrominance-interleaved form matching the YUV format chrominance interleaving pattern. The value must be 0 unless ConfigResidDiffHost is 1 and the YUV format is NV12 or NV21.

+
+ + ms694823 + unsigned int ConfigSpatialResidInterleaved + unsigned int ConfigSpatialResidInterleaved +
+ + +

Indicates the method of representation of spatial-domain blocks of residual difference data for intra blocks when using host-based difference decoding.

If ConfigResidDiffHost is 1 and ConfigIntraResidUnsigned is 0, spatial-domain residual difference data blocks for intra macroblocks must be sent as follows:

  • In a non-intra picture, if ConfigSpatialResid8 is 0, the spatial-domain residual difference data blocks for intra macroblocks are sent as 16-bit signed integer values relative to a constant reference value of 2^(BPP?1).
  • In a non-intra picture, if ConfigSpatialResid8 is 1, the spatial-domain residual difference data blocks for intra macroblocks are sent as 8-bit signed integer values relative to a constant reference value of 2^(BPP?1).
  • In an intra picture, if BPP is 8, the spatial-domain residual difference data blocks for intra macroblocks are sent as 8-bit signed integer values relative to a constant reference value of 2^(BPP?1), regardless of the value of ConfigSpatialResid8.

If ConfigResidDiffHost is 1 and ConfigIntraResidUnsigned is 1, spatial-domain residual difference data blocks for intra macroblocks must be sent as follows:

  • In a non-intra picture, if ConfigSpatialResid8 is 0, the spatial-domain residual difference data blocks for intra macroblocks must be sent as 16-bit unsigned integer values relative to a constant reference value of 0.
  • In a non-intra picture, if ConfigSpatialResid8 is 1, the spatial-domain residual difference data blocks for intra macroblocks are sent as 8-bit unsigned integer values relative to a constant reference value of 0.
  • In an intra picture, if BPP is 8, the spatial-domain residual difference data blocks for intra macroblocks are sent as 8-bit unsigned integer values relative to a constant reference value of 0, regardless of the value of ConfigSpatialResid8.

The value of the member must be 0 unless ConfigResidDiffHost is 1.

+
+ + ms694823 + unsigned int ConfigIntraResidUnsigned + unsigned int ConfigIntraResidUnsigned +
+ + +

If the value is 1, transform-domain blocks of coefficient data may be sent from the host for accelerator-based IDCT. If the value is 0, accelerator-based IDCT will not be used. If both ConfigResidDiffHost and ConfigResidDiffAccelerator are 1, this indicates that some residual difference decoding will be done on the host and some on the accelerator, as indicated by macroblock-level control commands.

The value must be 0 if ConfigBitstreamRaw is 1.

+
+ + ms694823 + unsigned int ConfigResidDiffAccelerator + unsigned int ConfigResidDiffAccelerator +
+ + +

If the value is 1, the inverse scan for transform-domain block processing will be performed on the host, and absolute indices will be sent instead for any transform coefficients. If the value is 0, the inverse scan will be performed on the accelerator.

The value must be 0 if ConfigResidDiffAccelerator is 0 or if Config4GroupedCoefs is 1.

+
+ + ms694823 + unsigned int ConfigHostInverseScan + unsigned int ConfigHostInverseScan +
+ + +

If the value is 1, the IDCT specified in Annex W of ITU-T Recommendation H.263 is used. If the value is 0, any compliant IDCT can be used for off-host IDCT.

The H.263 annex does not comply with the IDCT requirements of MPEG-2 corrigendum 2, so the value must not be 1 for use with MPEG-2 video.

The value must be 0 if ConfigResidDiffAccelerator is 0, indicating purely host-based residual difference decoding.

+
+ + ms694823 + unsigned int ConfigSpecificIDCT + unsigned int ConfigSpecificIDCT +
+ + +

If the value is 1, transform coefficients for off-host IDCT will be sent using the DXVA_TCoef4Group structure. If the value is 0, the DXVA_TCoefSingle structure is used. The value must be 0 if ConfigResidDiffAccelerator is 0 or if ConfigHostInverseScan is 1.

+
+ + ms694823 + unsigned int Config4GroupedCoefs + unsigned int Config4GroupedCoefs +
+ + +

Specifies how many frames the decoder device processes at any one time.

+
+ + ms694823 + unsigned short ConfigMinRenderTargetBuffCount + unsigned short ConfigMinRenderTargetBuffCount +
+ + +

Contains decoder-specific configuration information.

+
+ + ms694823 + unsigned short ConfigDecoderSpecific + unsigned short ConfigDecoderSpecific +
+ + +

Describes a video stream for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

The display driver can use the information in this structure to optimize the capabilities of the video processor. For example, some capabilities might not be exposed for high-definition (HD) content, for performance reasons.

+
+ +

Frame rates are expressed as ratios. For example, 30 frames per second (fps) is expressed as 30:1, and 29.97 fps is expressed as 30000/1001. For interlaced content, a frame consists of two fields, so that the frame rate is half the field rate.

If the application will composite two or more input streams, use the largest stream for the values of InputWidth and InputHeight.

+
+ + dd318409 + DXVAHD_CONTENT_DESC + DXVAHD_CONTENT_DESC +
+ + +

A member of the enumeration that describes how the video stream is interlaced.

+
+ + dd318409 + DXVAHD_FRAME_FORMAT InputFrameFormat + DXVAHD_FRAME_FORMAT InputFrameFormat +
+ + +

The frame rate of the input video stream, specified as a structure.

+
+ + dd318409 + DXVAHD_RATIONAL InputFrameRate + DXVAHD_RATIONAL InputFrameRate +
+ + +

The width of the input frames, in pixels.

+
+ + dd318409 + unsigned int InputWidth + unsigned int InputWidth +
+ + +

The height of the input frames, in pixels.

+
+ + dd318409 + unsigned int InputHeight + unsigned int InputHeight +
+ + +

The frame rate of the output video stream, specified as a structure.

+
+ + dd318409 + DXVAHD_RATIONAL OutputFrameRate + DXVAHD_RATIONAL OutputFrameRate +
+ + +

The width of the output frames, in pixels.

+
+ + dd318409 + unsigned int OutputWidth + unsigned int OutputWidth +
+ + +

The height of the output frames, in pixels.

+
+ + dd318409 + unsigned int OutputHeight + unsigned int OutputHeight +
+ + +

Specifies a custom rate for frame-rate conversion or inverse telecine (IVTC).

+
+ +

The CustomRate member gives the rate conversion factor, while the remaining members define the pattern of input and output samples.

Here are some example uses for this structure:

  • Frame rate conversion from 60p to 120p (doubling the frame rate).

    • CustomRate: 2/1
    • OutputFrames: 2
    • InputInterlaced:
    • InputFramesOrFields: 1
  • Reverse 2:3 pulldown (IVTC) from 60i to 24p.

    • CustomRate: 4/5
    • OutputFrames: 4
    • InputInterlaced: TRUE
    • InputFramesOrFields: 10

    (Ten interlaced fields are converted into four progressive frames.)

+
+ + dd318414 + DXVAHD_CUSTOM_RATE_DATA + DXVAHD_CUSTOM_RATE_DATA +
+ + +

The ratio of the output frame rate to the input frame rate, expressed as a structure that holds a rational number.

+
+ + dd318414 + DXVAHD_RATIONAL CustomRate + DXVAHD_RATIONAL CustomRate +
+ + +

The number of output frames that will be generated for every N input samples, where N = InputFramesOrFields.

+
+ + dd318414 + unsigned int OutputFrames + unsigned int OutputFrames +
+ + +

If TRUE, the input stream must be interlaced. Otherwise, the input stream must be progressive.

+
+ + dd318414 + BOOL InputInterlaced + BOOL InputInterlaced +
+ + +

The number of input fields or frames for every N output frames that will be generated, where N = OutputFrames.

+
+ + dd318414 + unsigned int InputFramesOrFields + unsigned int InputFramesOrFields +
+ + +

Describes a buffer sent from a decoder to a DirectX Video Acceleration (DXVA) device.

+
+ +

This structure corresponds closely to the DXVA_BufferDescription structure in DXVA 1, but some of the fields are no longer used in DXVA 2.

+
+ + ms704794 + DXVA2_DecodeBufferDesc + DXVA2_DecodeBufferDesc +
+ + +

Identifies the type of buffer passed to the accelerator. Must be one of the following values.

ValueMeaning

Picture decoding parameter buffer.

Macroblock control command buffer.

Residual difference block data buffer.

Deblocking filter control command buffer.

Inverse quantization matrix buffer.

Slice-control buffer.

Bitstream data buffer.

Motion vector buffer.

Film grain synthesis data buffer.

?

+
+ + ms704794 + unsigned int CompressedBufferType + unsigned int CompressedBufferType +
+ + +

Reserved. Set to zero.

+
+ + ms704794 + unsigned int BufferIndex + unsigned int BufferIndex +
+ + +

Specifies the offset of the relevant data from the beginning of the buffer, in bytes. Currently this value must be zero.

+
+ + ms704794 + unsigned int DataOffset + unsigned int DataOffset +
+ + +

Specifies the amount of relevant data in the buffer, in bytes. The location of the last byte of content in the buffer is DataOffset + DataSize ? 1.

+
+ + ms704794 + unsigned int DataSize + unsigned int DataSize +
+ + +

Specifies the macroblock address of the first macroblock in the buffer. The macroblock address is given in raster scan order.

+
+ + ms704794 + unsigned int FirstMBaddress + unsigned int FirstMBaddress +
+ + +

Specifies the number of macroblocks of data in the buffer. This count includes skipped macroblocks. This value must be zero if the data buffer type is one of the following: picture decoding parameters, inverse-quantization matrix, AYUV, IA44/AI44, DPXD, Highlight, or DCCMD.

+
+ + ms704794 + unsigned int NumMBsInBuffer + unsigned int NumMBsInBuffer +
+ + +

Reserved. Set to zero.

+
+ + ms704794 + unsigned int Width + unsigned int Width +
+ + +

Reserved. Set to zero.

+
+ + ms704794 + unsigned int Height + unsigned int Height +
+ + +

Reserved. Set to zero.

+
+ + ms704794 + unsigned int Stride + unsigned int Stride +
+ + +

Reserved. Set to zero.

+
+ + ms704794 + unsigned int ReservedBits + unsigned int ReservedBits +
+ + +

Pointer to a byte array that contains an initialization vector (IV) for encrypted data. If the decode buffer does not contain encrypted data, set this member to null. If the decode buffer contains encrypted data, the contents of pvPVPState depends on the type of encryption. For D3DCRYPTOTYPE_AES128_CTR, the pvPVPState member points to a structure.

+
+ + ms704794 + void* pvPVPState + void pvPVPState +
+ + +

Contains parameters for the method.

+
+ + ms704591 + DXVA2_DecodeExecuteParams + DXVA2_DecodeExecuteParams +
+ + + No documentation. + + + ms704591 + unsigned int NumCompBuffers + unsigned int NumCompBuffers + + + + No documentation. + + + ms704591 + DXVA2_DecodeBufferDesc* pCompressedBuffers + DXVA2_DecodeBufferDesc pCompressedBuffers + + + + No documentation. + + + ms704591 + DXVA2_DecodeExtensionData* pExtensionData + DXVA2_DecodeExtensionData pExtensionData + + + +

Contains private data for the method.

+
+ +

This structure corresponds to parameters of the IAMVideoAccelerator::Execute method in DirectX Video Acceleration (DXVA) version 1.

+
+ + ms696173 + DXVA2_DecodeExtensionData + DXVA2_DecodeExtensionData +
+ + + No documentation. + + + ms696173 + unsigned int Function + unsigned int Function + + + + No documentation. + + + ms696173 + void* pPrivateInputData + void pPrivateInputData + + + + No documentation. + + + ms696173 + unsigned int PrivateInputDataSize + unsigned int PrivateInputDataSize + + + + No documentation. + + + ms696173 + void* pPrivateOutputData + void pPrivateOutputData + + + + No documentation. + + + ms696173 + unsigned int PrivateOutputDataSize + unsigned int PrivateOutputDataSize + + + + No documentation. + + + DXVAHDETW_CREATEVIDEOPROCESSOR + DXVAHDETW_CREATEVIDEOPROCESSOR + + + + No documentation. + + + unsigned longlong pObject + unsigned longlong pObject + + + + No documentation. + + + unsigned longlong pD3D9Ex + unsigned longlong pD3D9Ex + + + + No documentation. + + + GUID VPGuid + GUID VPGuid + + + + No documentation. + + + DXVAHDETW_DESTROYVIDEOPROCESSOR + DXVAHDETW_DESTROYVIDEOPROCESSOR + + + + No documentation. + + + unsigned longlong pObject + unsigned longlong pObject + + + + No documentation. + + + DXVAHDETW_VIDEOPROCESSBLTHD + DXVAHDETW_VIDEOPROCESSBLTHD + + + + No documentation. + + + unsigned longlong pObject + unsigned longlong pObject + + + + No documentation. + + + unsigned longlong pOutputSurface + unsigned longlong pOutputSurface + + + + No documentation. + + + RECT TargetRect + RECT TargetRect + + + + No documentation. + + + D3DFORMAT OutputFormat + D3DFORMAT OutputFormat + + + + No documentation. + + + unsigned int ColorSpace + unsigned int ColorSpace + + + + No documentation. + + + unsigned int OutputFrame + unsigned int OutputFrame + + + + No documentation. + + + unsigned int StreamCount + unsigned int StreamCount + + + + No documentation. + + + BOOL Enter + BOOL Enter + + + + No documentation. + + + DXVAHDETW_VIDEOPROCESSBLTHD_STREAM + DXVAHDETW_VIDEOPROCESSBLTHD_STREAM + + + + No documentation. + + + unsigned longlong pObject + unsigned longlong pObject + + + + No documentation. + + + unsigned longlong pInputSurface + unsigned longlong pInputSurface + + + + No documentation. + + + RECT SourceRect + RECT SourceRect + + + + No documentation. + + + RECT DestinationRect + RECT DestinationRect + + + + No documentation. + + + D3DFORMAT InputFormat + D3DFORMAT InputFormat + + + + No documentation. + + + DXVAHD_FRAME_FORMAT FrameFormat + DXVAHD_FRAME_FORMAT FrameFormat + + + + No documentation. + + + unsigned int ColorSpace + unsigned int ColorSpace + + + + No documentation. + + + unsigned int StreamNumber + unsigned int StreamNumber + + + + No documentation. + + + unsigned int OutputIndex + unsigned int OutputIndex + + + + No documentation. + + + unsigned int InputFrameOrField + unsigned int InputFrameOrField + + + + No documentation. + + + unsigned int PastFrames + unsigned int PastFrames + + + + No documentation. + + + unsigned int FutureFrames + unsigned int FutureFrames + + + + No documentation. + + + DXVAHDETW_VIDEOPROCESSBLTSTATE + DXVAHDETW_VIDEOPROCESSBLTSTATE + + + + No documentation. + + + unsigned longlong pObject + unsigned longlong pObject + + + + No documentation. + + + DXVAHD_BLT_STATE State + DXVAHD_BLT_STATE State + + + + No documentation. + + + unsigned int DataSize + unsigned int DataSize + + + + No documentation. + + + BOOL SetState + BOOL SetState + + + + No documentation. + + + DXVAHDETW_VIDEOPROCESSSTREAMSTATE + DXVAHDETW_VIDEOPROCESSSTREAMSTATE + + + + No documentation. + + + unsigned longlong pObject + unsigned longlong pObject + + + + No documentation. + + + unsigned int StreamNumber + unsigned int StreamNumber + + + + No documentation. + + + DXVAHD_STREAM_STATE State + DXVAHD_STREAM_STATE State + + + + No documentation. + + + unsigned int DataSize + unsigned int DataSize + + + + No documentation. + + + BOOL SetState + BOOL SetState + + + +

Describes the format of a video stream.

+
+ +

Most of the values in this structure can be translated directly to and from attributes. For a code example that fills in the values from an reference, see .

+
+ + ms704798 + DXVA2_ExtendedFormat + DXVA2_ExtendedFormat +
+ + +

Use this member to access all of the bits in the union.

+
+ + ms704798 + unsigned int value + unsigned int value +
+ + +

Describes the interlacing of the video frames. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int SampleFormat + unsigned int SampleFormat +
+ + +

Describes the chroma siting. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int VideoChromaSubsampling + unsigned int VideoChromaSubsampling +
+ + +

Describes the nominal range of the Y'CbCr or RGB color data. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int NominalRange + unsigned int NominalRange +
+ + +

Describes the transform from Y'PbPr (component video) to studio R'G'B'. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int VideoTransferMatrix + unsigned int VideoTransferMatrix +
+ + +

Describes the intended viewing conditions. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int VideoLighting + unsigned int VideoLighting +
+ + +

Describes the color primaries. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int VideoPrimaries + unsigned int VideoPrimaries +
+ + +

Describes the gamma correction transfer function. Contains a value from the enumeration.

+
+ + ms704798 + unsigned int VideoTransferFunction + unsigned int VideoTransferFunction +
+ + +

Defines the range of supported values for an image filter.

+
+ +

The multiplier enables the filter range to have a fractional step value.

For example, a hue filter might have an actual range of [-180.0 ... +180.0] with a step size of 0.25. The device would report the following range and multiplier:

  • Minimum: -720
  • Maximum: +720
  • Multiplier: 0.25

In this case, a filter value of 2 would be interpreted by the device as 0.50 (or 2 ? 0.25).

The device should use a multiplier that can be represented exactly as a base-2 fraction.

+
+ + dd318428 + DXVAHD_FILTER_RANGE_DATA + DXVAHD_FILTER_RANGE_DATA +
+ + +

The minimum value of the filter.

+
+ + dd318428 + int Minimum + int Minimum +
+ + +

The maximum value of the filter.

+
+ + dd318428 + int Maximum + int Maximum +
+ + +

The default value of the filter.

+
+ + dd318428 + int Default + int Default +
+ + +

A multiplier. Use the following formula to translate the filter setting into the actual filter value: Actual Value = Set Value???Multiplier.

+
+ + dd318428 + float Multiplier + float Multiplier +
+ + +

Contains parameters for a DirectX Video Acceleration (DXVA) image filter.

+
+ + ms697015 + DXVA2_FilterValues + DXVA2_FilterValues +
+ + +

Filter level.

+
+ + ms697015 + DXVA2_Fixed32 Level + DXVA2_Fixed32 Level +
+ + +

Filter threshold.

+
+ + ms697015 + DXVA2_Fixed32 Threshold + DXVA2_Fixed32 Threshold +
+ + +

Filter radius.

+
+ + ms697015 + DXVA2_Fixed32 Radius + DXVA2_Fixed32 Radius +
+ + +

Returns a structure that contains an opaque alpha value.

You can use this function for DirectX Video Acceleration (DXVA) operations that require alpha values expressed as fixed-point numbers.

+
+ + aa473831 + DXVA2_Fixed32 + DXVA2_Fixed32 +
+ + + No documentation. + + + aa473831 + unsigned short Fraction + unsigned short Fraction + + + + No documentation. + + + aa473831 + short Value + short Value + + + + No documentation. + + + aa473831 + int ll + int ll + + + +

Defines a video frequency.

+
+ +

The value 0/0 indicates an unknown frequency. Values of the form n/0, where n is not zero, are invalid. Values of the form 0/n, where n is not zero, indicate a frequency of zero.

+
+ + ms693574 + DXVA2_Frequency + DXVA2_Frequency +
+ + +

Numerator of the frequency.

+
+ + ms693574 + unsigned int Numerator + unsigned int Numerator +
+ + +

Denominator of the frequency.

+
+ + ms693574 + unsigned int Denominator + unsigned int Denominator +
+ + +

Contains values for DirectX Video Acceleration (DXVA) video processing operations.

+
+ + ms703115 + DXVA2_ProcAmpValues + DXVA2_ProcAmpValues +
+ + +

Brightness value.

+
+ + ms703115 + DXVA2_Fixed32 Brightness + DXVA2_Fixed32 Brightness +
+ + +

Contrast value.

+
+ + ms703115 + DXVA2_Fixed32 Contrast + DXVA2_Fixed32 Contrast +
+ + +

Hue value.

+
+ + ms703115 + DXVA2_Fixed32 Hue + DXVA2_Fixed32 Hue +
+ + +

Saturation value.

+
+ + ms703115 + DXVA2_Fixed32 Saturation + DXVA2_Fixed32 Saturation +
+ + +

Contains a rational number (ratio).

+
+ +

Values of the form 0/n are interpreted as zero. The value 0/0 is interpreted as zero. However, these values are not necessarily valid in all contexts.

Values of the form n/0, where n is nonzero, are invalid.

+
+ + dd318756 + DXVAHD_RATIONAL + DXVAHD_RATIONAL +
+ + +

The numerator of the ratio.

+
+ + dd318756 + unsigned int Numerator + unsigned int Numerator +
+ + +

The denominator of the ratio.

+
+ + dd318756 + unsigned int Denominator + unsigned int Denominator +
+ + +

Contains per-stream data for the method.

+
+ + dd318757 + DXVAHD_STREAM_DATA + DXVAHD_STREAM_DATA +
+ + + No documentation. + + + dd318757 + BOOL Enable + BOOL Enable + + + + No documentation. + + + dd318757 + unsigned int OutputIndex + unsigned int OutputIndex + + + + No documentation. + + + dd318757 + unsigned int InputFrameOrField + unsigned int InputFrameOrField + + + + No documentation. + + + dd318757 + unsigned int PastFrames + unsigned int PastFrames + + + + No documentation. + + + dd318757 + unsigned int FutureFrames + unsigned int FutureFrames + + + + No documentation. + + + dd318757 + IDirect3DSurface9** ppPastSurfaces + IDirect3DSurface9 ppPastSurfaces + + + + No documentation. + + + dd318757 + IDirect3DSurface9* pInputSurface + IDirect3DSurface9 pInputSurface + + + + No documentation. + + + dd318757 + IDirect3DSurface9** ppFutureSurfaces + IDirect3DSurface9 ppFutureSurfaces + + + +

Specifies the planar alpha value for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

For each pixel, the destination color value is computed as follows:

Cd = Cs * (As * Ap * Ae) + Cd * (1.0 - As * Ap * Ae)

where

  • Cd = Color value of the destination pixel.
  • Cs = Color value of source pixel.
  • As = Per-pixel source alpha.
  • Ap = Planar alpha value.
  • Ae = Palette-entry alpha value, or 1.0 (see Note).

Note??Palette-entry alpha values apply only to palettized color formats, and only when the device supports the capability. Otherwise, this factor equals 1.0.

The destination alpha value is computed according to the state. For more information, see .

To get the device capabilities, call and check the FeatureCaps member of the structure.

+
+ + dd318759 + DXVAHD_STREAM_STATE_ALPHA_DATA + DXVAHD_STREAM_STATE_ALPHA_DATA +
+ + +

If TRUE, alpha blending is enabled. Otherwise, alpha blending is disabled. The default state value is .

+
+ + dd318759 + BOOL Enable + BOOL Enable +
+ + +

Specifies the planar alpha value as a floating-point number from 0.0 (transparent) to 1.0 (opaque).

If the Enable member is , this member is ignored.

+
+ + dd318759 + float Alpha + float Alpha +
+ + +

Specifies the pixel aspect ratio (PAR) for the source and destination rectangles.

+
+ +

Pixel aspect ratios of the form 0/n and n/0 are not valid.

If the Enable member is , the device ignores the values of SourceAspectRatio and DestinationAspectRatio.

+
+ + dd318760 + DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA + DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA +
+ + +

If TRUE, the SourceAspectRatio and DestinationAspectRatio members contain valid values. Otherwise, the pixel aspect ratios are unspecified.

+
+ + dd318760 + BOOL Enable + BOOL Enable +
+ + +

A structure that contains the source PAR. The default state value is 1:1 (square pixels).

+
+ + dd318760 + DXVAHD_RATIONAL SourceAspectRatio + DXVAHD_RATIONAL SourceAspectRatio +
+ + +

A structure that contains the destination PAR. The default state value is 1:1 (square pixels).

+
+ + dd318760 + DXVAHD_RATIONAL DestinationAspectRatio + DXVAHD_RATIONAL DestinationAspectRatio +
+ + +

Specifies the format for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ + dd318761 + DXVAHD_STREAM_STATE_D3DFORMAT_DATA + DXVAHD_STREAM_STATE_D3DFORMAT_DATA +
+ + +

The surface format, specified as a value. You can also use a FOURCC code to specify a format that is not defined in the enumeration. For more information, see Video FOURCCs.

The default state value is .

+
+ + dd318761 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Specifies the destination rectangle for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ + dd318762 + DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA + DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA +
+ + +

Specifies whether to use the destination rectangle, or use the entire output surface. The default state value is .

ValueMeaning
TRUE

Use the destination rectangle given in the DestinationRect member.

Use the entire output surface as the destination rectangle.

?

+
+ + dd318762 + BOOL Enable + BOOL Enable +
+ + +

The destination rectangle, which defines the portion of the output surface where the source rectangle is blitted. The destination rectangle is given in pixel coordinates, relative to the output surface. The default value is an empty rectangle, (0, 0, 0, 0).

If the Enable member is , the DestinationRect member is ignored.

+
+ + dd318762 + RECT DestinationRect + RECT DestinationRect +
+ + +

Specifies the level for a filtering operation on a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) input stream.

+
+ +

For a list of image filters that are defined for DXVA-HD, see . The device might not support every type of image filter. To find out whether the device supports a particular filter, call the method and check the FilterCaps member of the structure.

+
+ + dd318763 + DXVAHD_STREAM_STATE_FILTER_DATA + DXVAHD_STREAM_STATE_FILTER_DATA +
+ + +

If TRUE, the filter is enabled. Otherwise, the filter is disabled.

+
+ + dd318763 + BOOL Enable + BOOL Enable +
+ + +

The level for the filter. The meaning of this value depends on the implementation. To get the range and default value of a particular filter, call the method.

If the Enable member is , the Level member is ignored.

+
+ + dd318763 + int Level + int Level +
+ + +

Specifies how a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) input stream is interlaced.

+
+ +

Some devices do not support interlaced RGB. Interlaced RGB support is indicated by the capability flag. If the device does not support interlaced RGB, it treats all RGB input streams as progressive frames.

Some devices do not support interlaced formats with palettized color. This support is indicated by the flag. If the device does not support this capability, all palettized input streams are treated as progressive frames.

To get the device's capabilities, call and check the InputFormatCaps member of the structure.

+
+ + dd318764 + DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA + DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA +
+ + +

The video interlacing, specified as a value.

The default state value is (progressive frames).

+
+ + dd318764 + DXVAHD_FRAME_FORMAT FrameFormat + DXVAHD_FRAME_FORMAT FrameFormat +
+ + +

Specifies the color space for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) input stream.

+
+ +

The RGB_Range member applies to RGB input, while the YCbCr_Matrix and YCbCr_xvYCC members apply to YCbCr (YUV) input.

In some situations, the device might perform an intermediate color conversion on the input stream. If so, it uses the flags that apply to both color spaces. For example, suppose the device converts from RGB to YCbCr. If the RGB_Range member is 0 and the YCbCr_Matrix member is 1, the device will convert from full-range RGB to BT.709 YCbCr.

If the device supports xvYCC, it returns the capability flag in the DeviceCaps member of the structure. Otherwise, the device ignores the value of YCbCr_xvYCC and treats all YCbCr input as conventional YCbCr. To get the device's capabilities, call .

+
+ + dd318765 + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA +
+ + + No documentation. + + + dd318765 + unsigned int Value + unsigned int Value + + + +

Specifies whether the input stream contains video or graphics. The device can optimize the processing based on the type. The default state value is 0 (video).

ValueMeaning
0

Video.

1

Graphics.

?

+
+ + dd318765 + unsigned int Type + unsigned int Type +
+ + +

Specifies the RGB color range. The default state value is 0 (full range).

ValueMeaning
0

Full range (0-255).

1

Limited range (16-235).

?

+
+ + dd318765 + unsigned int RGB_Range + unsigned int RGB_Range +
+ + +

Specifies the YCbCr transfer matrix. The default state value is 0 (BT.601).

ValueMeaning
0

ITU-R BT.601.

1

ITU-R BT.709.

?

+
+ + dd318765 + unsigned int YCbCr_Matrix + unsigned int YCbCr_Matrix +
+ + +

Specifies whether the input stream uses conventional YCbCr or extended YCbCr (xvYCC). The default state value is 0 (conventional YCbCr).

ValueMeaning
0

Conventional YCbCr.

1

Extended YCbCr (xvYCC).

?

+
+ + dd318765 + unsigned int YCbCr_xvYCC + unsigned int YCbCr_xvYCC +
+ + + No documentation. + + + dd318765 + unsigned int Reserved + unsigned int Reserved + + + +

Specifies the luma key for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

To use this state, the device must support luma keying, indicated by the capability flag. To query for this capability, call . If the device supports luma keying, it sets the flag in the FeatureCaps member of the structure.

If the device does not support luma keying, the method fails for this state.

If the input format is RGB, the device must also support the capability. This capability flag is set in the InputFormatCaps member of the structure. If the flag is not present, the device ignores the luma key value for RGB input.

The values of Lower and Upper give the lower and upper bounds of the luma key, using a nominal range of [0...1]. Given a format with n bits per channel, these values are converted to luma values as follows:

val = f * ((1 << n)-1)

Any pixel whose luma value falls within the upper and lower bounds (inclusive) is treated as transparent.

For example, if the pixel format uses 8-bit luma, the upper bound is calculated as follows:

BYTE Y = BYTE(max(min(1.0, Upper), 0.0) * 255.0)

Note that the value is clamped to the range [0...1] before multiplying by 255.

+
+ + dd318766 + DXVAHD_STREAM_STATE_LUMA_KEY_DATA + DXVAHD_STREAM_STATE_LUMA_KEY_DATA +
+ + +

If TRUE, luma keying is enabled. Otherwise, luma keying is disabled. The default value is .

+
+ + dd318766 + BOOL Enable + BOOL Enable +
+ + +

The lower bound for the luma key. The range is [0?1]. The default state value is 0.0.

+
+ + dd318766 + float Lower + float Lower +
+ + +

The upper bound for the luma key. The range is [0?1]. The default state value is 0.0.

+
+ + dd318766 + float Upper + float Upper +
+ + +

Specifies the output frame rate for an input stream when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

The output rate might require the device to convert the frame rate of the input stream. If so, the value of RepeatFrame controls whether the device creates interpolated frames or simply repeats input frames.

+
+ + dd318767 + DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA + DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA +
+ + +

Specifies how the device performs frame-rate conversion, if required. The default state value is (interpolation).

ValueMeaning
TRUE

The device repeats frames.

The device interpolates frames.

?

+
+ + dd318767 + BOOL RepeatFrame + BOOL RepeatFrame +
+ + +

Specifies the output rate, as a member of the enumeration.

+
+ + dd318767 + DXVAHD_OUTPUT_RATE OutputRate + DXVAHD_OUTPUT_RATE OutputRate +
+ + +

Specifies a custom output rate, as a structure. This member is ignored unless OutputRate equals . The default state value is 1/1.

To get the list of custom rates supported by the video processor, call . If a custom rate is used, it must be taken from this list.

+
+ + dd318767 + DXVAHD_RATIONAL CustomRate + DXVAHD_RATIONAL CustomRate +
+ + +

Contains the color palette entries for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

This stream state is used for input streams that have a palettized color format. Palettized formats with 4 bits per pixel (bpp) use the first 16 entries in the list. Formats with 8 bpp use the first 256 entries.

If a pixel has a palette index greater than the number of entries, the device treats the pixel as being white with opaque alpha. For full-range RGB, this value will be (255, 255, 255, 255); for YCbCr the value will be (255, 235, 128, 128).

The caller allocates the pEntries array. Set the Count member to the number of elements in the array. When retrieving the state data, you can set the pEntries member to null to get the number of palette entries. The device will return the count in the Count member.

If the DXVA-HD device does not have the capability, every palette entry must have an alpha value of 0xFF (opaque). Otherwise, an error is returned from .

To get the device capabilities, call and check the FeatureCaps member of the structure.

+
+ + dd318768 + DXVAHD_STREAM_STATE_PALETTE_DATA + DXVAHD_STREAM_STATE_PALETTE_DATA +
+ + +

The number of palette entries. The default state value is 0.

+
+ + dd318768 + unsigned int Count + unsigned int Count +
+ + +

A reference to an array of values. For RGB streams, the palette entries use a (ARGB-32) representation. For YCbCr streams, the palette entries use an AYUV representation. The alpha channel is used for alpha blending; see .

+
+ + dd318768 + void* pEntries + void pEntries +
+ + +

Contains data for a private stream state, for a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) input stream.

+
+ +

Use this structure for proprietary or device-specific state parameters.

The caller allocates the pData array. Set the DataSize member to the size of the array in bytes. When retrieving the state data, you can set the pData member to null to get the size of the data. The device will return the size in the DataSize member.

+
+ + dd318769 + DXVAHD_STREAM_STATE_PRIVATE_DATA + DXVAHD_STREAM_STATE_PRIVATE_DATA +
+ + +

A that identifies the private stream state. The following is defined.

ValueMeaning
DXVAHD_STREAM_STATE_PRIVATE_IVTC

Retrieves statistics about inverse telecine. The state data (pData) is a structure.

?

A device can define additional GUIDs for use with custom stream states. The interpretation of the data is then defined by the device.

+
+ + dd318769 + GUID Guid + GUID Guid +
+ + +

The size, in bytes, of the buffer pointed to by the pData member.

+
+ + dd318769 + unsigned int DataSize + unsigned int DataSize +
+ + +

A reference to a buffer that contains the private state data. The DXVA-HD runtime passes this buffer directly to the device, without validation.

+
+ + dd318769 + void* pData + void pData +
+ + +

Contains inverse telecine (IVTC) statistics from a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ +

If the DXVA-HD device supports IVTC statistics, it can detect when the input video contains telecined frames. You can use this information to enable IVTC in the device.

To enable IVTC statistics, do the following:

  1. Allocate a structure and set the Enable member to TRUE.
  2. Initialize a structure with these values:
    • Set Guid to DXVAHD_STREAM_STATE_PRIVATE_IVTC.
    • Set DataSize to sizeof().
    • Set pData to point to the structure.
  3. Call the method. Set the State parameter of that method to and the pData parameter to the address of the structure.

To get the most recent IVTC statistics from the device, call the method. The state parameter and data buffer are the same.

Typically, an application would use this feature as follows:

  1. Enable IVTC statistics.
  2. Begin sending interlaced video frames to the DXVA-HD device.
  3. At some point, query the device for the current IVTC statistics.
  4. If the device detects telecined frames, use a custom frame rate to perform IVTC. For more information, see .
+
+ + dd318770 + DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA + DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA +
+ + +

Specifies whether IVTC statistics are enabled. The default state value is . Setting the value to TRUE enables IVTC statistics, and resets all of the IVTC statistical data to zero.

+
+ + dd318770 + BOOL Enable + BOOL Enable +
+ + +

If the driver detects that the frames are telecined, and is able to perform inverse telecine, this field contains a member of the enumeration. Otherwise, the value is 0.

+
+ + dd318770 + unsigned int ITelecineFlags + unsigned int ITelecineFlags +
+ + +

The number of consecutive telecined frames that the device has detected.

+
+ + dd318770 + unsigned int Frames + unsigned int Frames +
+ + +

The index of the most recent input field. The value of this member equals the most recent value of the InputFrameOrField member of the structure.

+
+ + dd318770 + unsigned int InputField + unsigned int InputField +
+ + +

Specifies the source rectangle for an input stream when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD)

+
+ + dd318771 + DXVAHD_STREAM_STATE_SOURCE_RECT_DATA + DXVAHD_STREAM_STATE_SOURCE_RECT_DATA +
+ + +

Specifies whether to blit the entire input surface or just the source rectangle. The default state value is .

ValueMeaning
TRUE

Use the source rectangle specified in the SourceRect member.

Blit the entire input surface. Ignore the SourceRect member.

?

+
+ + dd318771 + BOOL Enable + BOOL Enable +
+ + +

The source rectangle, which defines the portion of the input sample that is blitted to the destination surface. The source rectangle is given in pixel coordinates, relative to the input surface. The default state value is an empty rectangle, (0, 0, 0, 0).

If the Enable member is , the SourceRect member is ignored.

+
+ + dd318771 + RECT SourceRect + RECT SourceRect +
+ + +

Contains references to functions implemented by a software plug-in for Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

+
+ +

If you provide a software plug-in for DXVA-HD, the plug-in must implement a set of functions that are defined by the function reference types in this structure.

At initialization, the DXVA-HD runtime calls the plug-in device's PDXVAHDSW_Plugin function. This function fills in a structure with references to the set of functions that are implemented by the plug-in device. When the application calls DXVA-HD methods, the DXVA-HD runtime calls the corresponding plug-in functions.

+
+ + dd318386 + DXVAHDSW_CALLBACKS + DXVAHDSW_CALLBACKS +
+ + +

Function reference of type PDXVAHDSW_CreateDevice.

+
+ + dd318386 + __function__stdcall* CreateDevice + __function__stdcall CreateDevice +
+ + +

Function reference of type PDXVAHDSW_ProposeVideoPrivateFormat.

+
+ + dd318386 + __function__stdcall* ProposeVideoPrivateFormat + __function__stdcall ProposeVideoPrivateFormat +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessorDeviceCaps.

+
+ + dd318386 + __function__stdcall* GetVideoProcessorDeviceCaps + __function__stdcall GetVideoProcessorDeviceCaps +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessorOutputFormats.

+
+ + dd318386 + __function__stdcall* GetVideoProcessorOutputFormats + __function__stdcall GetVideoProcessorOutputFormats +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessorInputFormats.

+
+ + dd318386 + __function__stdcall* GetVideoProcessorInputFormats + __function__stdcall GetVideoProcessorInputFormats +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessorCaps.

+
+ + dd318386 + __function__stdcall* GetVideoProcessorCaps + __function__stdcall GetVideoProcessorCaps +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessorCustomRates.

+
+ + dd318386 + __function__stdcall* GetVideoProcessorCustomRates + __function__stdcall GetVideoProcessorCustomRates +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessorFilterRange.

+
+ + dd318386 + __function__stdcall* GetVideoProcessorFilterRange + __function__stdcall GetVideoProcessorFilterRange +
+ + +

Function reference of type PDXVAHDSW_DestroyDevice.

+
+ + dd318386 + __function__stdcall* DestroyDevice + __function__stdcall DestroyDevice +
+ + +

Function reference of type PDXVAHDSW_CreateVideoProcessor.

+
+ + dd318386 + __function__stdcall* CreateVideoProcessor + __function__stdcall CreateVideoProcessor +
+ + +

Function reference of type PDXVAHDSW_SetVideoProcessBltState.

+
+ + dd318386 + __function__stdcall* SetVideoProcessBltState + __function__stdcall SetVideoProcessBltState +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessBltStatePrivate.

+
+ + dd318386 + __function__stdcall* GetVideoProcessBltStatePrivate + __function__stdcall GetVideoProcessBltStatePrivate +
+ + +

Function reference of type PDXVAHDSW_SetVideoProcessStreamState.

+
+ + dd318386 + __function__stdcall* SetVideoProcessStreamState + __function__stdcall SetVideoProcessStreamState +
+ + +

Function reference of type PDXVAHDSW_GetVideoProcessStreamStatePrivate.

+
+ + dd318386 + __function__stdcall* GetVideoProcessStreamStatePrivate + __function__stdcall GetVideoProcessStreamStatePrivate +
+ + +

Function reference of type PDXVAHDSW_VideoProcessBltHD.

+
+ + dd318386 + __function__stdcall* VideoProcessBltHD + __function__stdcall VideoProcessBltHD +
+ + +

Function reference of type PDXVAHDSW_DestroyVideoProcessor.

+
+ + dd318386 + __function__stdcall* DestroyVideoProcessor + __function__stdcall DestroyVideoProcessor +
+ + +

Defines the range of supported values for a DirectX Video Acceleration (DXVA) operation.

+
+ +

All values in this structure are specified as structures.

+
+ + ms704572 + DXVA2_ValueRange + DXVA2_ValueRange +
+ + +

Minimum supported value.

+
+ + ms704572 + DXVA2_Fixed32 MinValue + DXVA2_Fixed32 MinValue +
+ + +

Maximum supported value.

+
+ + ms704572 + DXVA2_Fixed32 MaxValue + DXVA2_Fixed32 MaxValue +
+ + +

Default value.

+
+ + ms704572 + DXVA2_Fixed32 DefaultValue + DXVA2_Fixed32 DefaultValue +
+ + +

Minimum increment between values.

+
+ + ms704572 + DXVA2_Fixed32 StepSize + DXVA2_Fixed32 StepSize +
+ + +

Describes a video stream for a DXVA decoder device or video processor device.

+
+ +

The InputSampleFreq member gives the frame rate of the decoded video stream, as received by the video renderer. The OutputFrameFreq member gives the frame rate of the video that is displayed after deinterlacing. If the input video is interlaced and the samples contain interleaved fields, the output frame rate is twice the input frame rate. If the input video is progressive or contains single fields, the output frame rate is the same as the input frame rate.

Decoders should set the values of InputSampleFreq and OutputFrameFreq if the frame rate is known. Otherwise, set these members to 0/0 to indicate an unknown frame rate.

+
+ + ms694235 + DXVA2_VideoDesc + DXVA2_VideoDesc +
+ + +

Width of the video frame, in pixels.

+
+ + ms694235 + unsigned int SampleWidth + unsigned int SampleWidth +
+ + +

Height of the video frame, in pixels.

+
+ + ms694235 + unsigned int SampleHeight + unsigned int SampleHeight +
+ + +

Additional details about the video format, specified as a structure.

+
+ + ms694235 + DXVA2_ExtendedFormat SampleFormat + DXVA2_ExtendedFormat SampleFormat +
+ + +

Surface format, specified as a value or FOURCC code. A FOURCC code can be constructed using the or MAKEFOURCC macros.

+
+ + ms694235 + D3DFORMAT Format + D3DFORMAT Format +
+ + +

Frame rate of the input video stream, specified as a structure.

+
+ + ms694235 + DXVA2_Frequency InputSampleFreq + DXVA2_Frequency InputSampleFreq +
+ + +

Frame rate of the output video, specified as a structure.

+
+ + ms694235 + DXVA2_Frequency OutputFrameFreq + DXVA2_Frequency OutputFrameFreq +
+ + +

Level of data protection required when the user accessible bus (UAB) is present. If TRUE, the video must be protected when a UAB is present. If , the video is not required to be protected.

+
+ + ms694235 + unsigned int UABProtectionLevel + unsigned int UABProtectionLevel +
+ + +

Reserved. Must be zero.

+
+ + ms694235 + unsigned int Reserved + unsigned int Reserved +
+ + +

Contains parameters for the method.

+
+ + ms698741 + DXVA2_VideoProcessBltParams + DXVA2_VideoProcessBltParams +
+ + + No documentation. + + + ms698741 + longlong TargetFrame + longlong TargetFrame + + + + No documentation. + + + ms698741 + RECT TargetRect + RECT TargetRect + + + + No documentation. + + + ms698741 + SIZE ConstrictionSize + SIZE ConstrictionSize + + + + No documentation. + + + ms698741 + unsigned int StreamingFlags + unsigned int StreamingFlags + + + + No documentation. + + + ms698741 + DXVA2_AYUVSample16 BackgroundColor + DXVA2_AYUVSample16 BackgroundColor + + + + No documentation. + + + ms698741 + DXVA2_ExtendedFormat DestFormat + DXVA2_ExtendedFormat DestFormat + + + + No documentation. + + + ms698741 + DXVA2_ProcAmpValues ProcAmpValues + DXVA2_ProcAmpValues ProcAmpValues + + + + No documentation. + + + ms698741 + DXVA2_Fixed32 Alpha + DXVA2_Fixed32 Alpha + + + + No documentation. + + + ms698741 + DXVA2_FilterValues NoiseFilterLuma + DXVA2_FilterValues NoiseFilterLuma + + + + No documentation. + + + ms698741 + DXVA2_FilterValues NoiseFilterChroma + DXVA2_FilterValues NoiseFilterChroma + + + + No documentation. + + + ms698741 + DXVA2_FilterValues DetailFilterLuma + DXVA2_FilterValues DetailFilterLuma + + + + No documentation. + + + ms698741 + DXVA2_FilterValues DetailFilterChroma + DXVA2_FilterValues DetailFilterChroma + + + + No documentation. + + + ms698741 + unsigned int DestData + unsigned int DestData + + + +

Describes the capabilities of a DirectX Video Acceleration (DVXA) video processor mode.

+
+ + ms703795 + DXVA2_VideoProcessorCaps + DXVA2_VideoProcessorCaps +
+ + +

Identifies the type of device. The following values are defined.

ValueMeaning

DXVA 2.0 video processing is emulated by using DXVA 1.0. An emulated device may be missing significant processing capabilities and have lower image quality and performance.

Hardware device.

Software device.

?

+
+ + ms703795 + unsigned int DeviceCaps + unsigned int DeviceCaps +
+ + +

The Direct3D memory pool used by the device.

+
+ + ms703795 + D3DPOOL InputPool + D3DPOOL InputPool +
+ + +

Number of forward reference samples the device needs to perform deinterlacing. For the bob, progressive scan, and software devices, the value is zero.

+
+ + ms703795 + unsigned int NumForwardRefSamples + unsigned int NumForwardRefSamples +
+ + +

Number of backward reference samples the device needs to perform deinterlacing. For the bob, progressive scan, and software devices, the value is zero.

+
+ + ms703795 + unsigned int NumBackwardRefSamples + unsigned int NumBackwardRefSamples +
+ + +

Reserved. Must be zero.

+
+ + ms703795 + unsigned int Reserved + unsigned int Reserved +
+ + +

Identifies the deinteracing technique used by the device. This value is a bitwise OR of one or more of the following flags.

ValueMeaning

The algorithm is unknown or proprietary.

The algorithm creates missing lines by repeating the line either above or below the missing line. This algorithm produces a jagged image and is not recommended.

The algorithm creates missing lines by averaging two lines. Slight vertical adjustments are made so that the resulting image does not bob up and down.

The algorithm creates missing lines by applying a [?1, 9, 9, ?1]/16 filter across four lines. Slight vertical adjustments are made so that the resulting image does not bob up and down.

The algorithm uses median filtering to recreate the pixels in the missing lines.

The algorithm uses an edge filter to create the missing lines. In this process, spatial directional filters are applied to determine the orientation of edges in the picture content. Missing pixels are created by filtering along (rather than across) the detected edges.

The algorithm uses spatial or temporal interpolation, switching between the two on a field-by-field basis, depending on the amount of motion.

The algorithm uses spatial or temporal interpolation, switching between the two on a pixel-by-pixel basis, depending on the amount of motion.

The algorithm identifies objects within a sequence of video fields. Before it recreates the missing pixels, it aligns the movement axes of the individual objects in the scene to make them parallel with the time axis.

The device can undo the 3:2 pulldown process used in telecine.

?

+
+ + ms703795 + unsigned int DeinterlaceTechnology + unsigned int DeinterlaceTechnology +
+ + +

Specifies the available video processor (ProcAmp) operations. The value is a bitwise OR of ProcAmp Settings constants.

+
+ + ms703795 + unsigned int ProcAmpControlCaps + unsigned int ProcAmpControlCaps +
+ + +

Specifies operations that the device can perform concurrently with the operation. The value is a bitwise OR of the following flags.

ValueMeaning

The device can convert the video from YUV color space to RGB color space, with at least 8 bits of precision for each RGB component.

The device can stretch or shrink the video horizontally. If this capability is present, aspect ratio correction can be performed at the same time as deinterlacing.

The device can stretch or shrink the video vertically. If this capability is present, image resizing and aspect ratio correction can be performed at the same time.

The device can alpha blend the video.

The device can operate on a subrectangle of the video frame. If this capability is present, source images can be cropped before further processing occurs.

The device can accept substreams in addition to the primary video stream, and can composite them.

The device can perform color adjustments on the primary video stream and substreams, at the same time that it deinterlaces the video and composites the substreams. The destination color space is defined in the DestFormat member of the structure. The source color space for each stream is defined in the SampleFormat member of the structure.

The device can convert the video from YUV to RGB color space when it writes the deinterlaced and composited pixels to the destination surface.

An RGB destination surface could be an off-screen surface, texture, Direct3D render target, or combined texture/render target surface. An RGB destination surface must use at least 8 bits for each color channel.

The device can perform an alpha blend operation with the destination surface when it writes the deinterlaced and composited pixels to the destination surface.

The device can downsample the output frame, as specified by the ConstrictionSize member of the structure.

The device can perform noise filtering.

The device can perform detail filtering.

The device can perform a constant alpha blend to the entire video stream when it composites the video stream and substreams.

The device can perform accurate linear RGB scaling, rather than performing them in nonlinear gamma space.

The device can correct the image to compensate for artifacts introduced when performing scaling in nonlinear gamma space.

The deinterlacing algorithm preserves the original field lines from the interlaced field picture, unless scaling is also applied.

For example, in deinterlacing algorithms such as bob and median filtering, the device copies the original field into every other scan line and then applies a filter to reconstruct the missing scan lines. As a result, the original field can be recovered by discarding the scan lines that were interpolated.

If the image is scaled vertically, however, the original field lines cannot be recovered. If the image is scaled horizontally (but not vertically), the resulting field lines will be equivalent to scaling the original field picture. (In other words, discarding the interpolated scan lines will yield the same result as stretching the original picture without deinterlacing.)

?

+
+ + ms703795 + unsigned int VideoProcessorOperations + unsigned int VideoProcessorOperations +
+ + +

Specifies the supported noise filters. The value is a bitwise OR of the following flags.

ValueMeaning

Noise filtering is not supported.

Unknown or proprietary filter.

Median filter.

Temporal filter.

Block noise filter.

Mosquito noise filter.

?

+
+ + ms703795 + unsigned int NoiseFilterTechnology + unsigned int NoiseFilterTechnology +
+ + +

Specifies the supported detail filters. The value is a bitwise OR of the following flags.

ValueMeaning

Detail filtering is not supported.

Unknown or proprietary filter.

Edge filter.

Sharpen filter.

?

+
+ + ms703795 + unsigned int DetailFilterTechnology + unsigned int DetailFilterTechnology +
+ + +

Specifies an input sample for the method.

+
+ + ms693598 + DXVA2_VideoSample + DXVA2_VideoSample +
+ + + No documentation. + + + ms693598 + longlong Start + longlong Start + + + + No documentation. + + + ms693598 + longlong End + longlong End + + + + No documentation. + + + ms693598 + DXVA2_ExtendedFormat SampleFormat + DXVA2_ExtendedFormat SampleFormat + + + + No documentation. + + + ms693598 + IDirect3DSurface9* SrcSurface + IDirect3DSurface9 SrcSurface + + + + No documentation. + + + ms693598 + RECT SrcRect + RECT SrcRect + + + + No documentation. + + + ms693598 + RECT DstRect + RECT DstRect + + + + No documentation. + + + ms693598 + DXVA2_Fixed32 PlanarAlpha + DXVA2_Fixed32 PlanarAlpha + + + + No documentation. + + + ms693598 + unsigned int SampleData + unsigned int SampleData + + + + No documentation. + + + ms693598 + DXVA2_AYUVSample8 Pal[16] + DXVA2_AYUVSample8 Pal + + + +

Specifies the capabilities of the Microsoft DirectX Video Acceleration High Definition (DXVA-HD) video processor.

+
+ + dd318773 + DXVAHD_VPCAPS + DXVAHD_VPCAPS +
+ + +

A that identifies the video processor. This is defined by the device, and is used in various methods to specify the video processor.

+
+ + dd318773 + GUID VPGuid + GUID VPGuid +
+ + +

The number of past reference frames required to perform the optimal video processing.

+
+ + dd318773 + unsigned int PastFrames + unsigned int PastFrames +
+ + +

The number of future reference frames required to perform the optimal video processing.

+
+ + dd318773 + unsigned int FutureFrames + unsigned int FutureFrames +
+ + +

A bitwise OR of zero or more flags from the enumeration.

+
+ + dd318773 + unsigned int ProcessorCaps + unsigned int ProcessorCaps +
+ + +

A bitwise OR of zero or more flags from the enumeration.

+
+ + dd318773 + unsigned int ITelecineCaps + unsigned int ITelecineCaps +
+ + +

The number of custom output frame rates. To get the list of custom frame rates, call the method. Custom frame rates are used for frame-rate conversion and inverse telecine.

+
+ + dd318773 + unsigned int CustomRateCount + unsigned int CustomRateCount +
+ + +

Specifies the capabilities of a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

+
+ +

In DXVA-HD, the device stores state information for each input stream. These states persist between blits. With each blit, the application selects which streams to enable or disable. Disabling a stream does not affect the state information for that stream.

The MaxStreamStates member gives the maximum number of stream states that can be set by the application. The MaxInputStreams member gives the maximum number of streams that can be enabled during a blit. These two values can differ.

To set the state data for a stream, call .

+
+ + dd318774 + DXVAHD_VPDEVCAPS + DXVAHD_VPDEVCAPS +
+ + +

Specifies the device type, as a member of the enumeration.

+
+ + dd318774 + DXVAHD_DEVICE_TYPE DeviceType + DXVAHD_DEVICE_TYPE DeviceType +
+ + +

A bitwise OR of zero or more flags from the enumeration.

+
+ + dd318774 + unsigned int DeviceCaps + unsigned int DeviceCaps +
+ + +

A bitwise OR of zero or more flags from the enumeration.

+
+ + dd318774 + unsigned int FeatureCaps + unsigned int FeatureCaps +
+ + +

A bitwise OR of zero or more flags from the enumeration.

+
+ + dd318774 + unsigned int FilterCaps + unsigned int FilterCaps +
+ + +

A bitwise OR of zero or more flags from the enumeration.

+
+ + dd318774 + unsigned int InputFormatCaps + unsigned int InputFormatCaps +
+ + +

The memory pool that is required for the input video surfaces.

+
+ + dd318774 + D3DPOOL InputPool + D3DPOOL InputPool +
+ + +

The number of supported output formats. To get the list of output formats, call the method.

+
+ + dd318774 + unsigned int OutputFormatCount + unsigned int OutputFormatCount +
+ + +

The number of supported input formats. To get the list of input formats, call the method.

+
+ + dd318774 + unsigned int InputFormatCount + unsigned int InputFormatCount +
+ + +

The number of video processors. Each video processor represents a distinct set of processing capabilities. To get the capabilities of each video processor, call the method. To create a video processor, call the method.

+
+ + dd318774 + unsigned int VideoProcessorCount + unsigned int VideoProcessorCount +
+ + +

The maximum number of input streams that can be enabled at the same time.

+
+ + dd318774 + unsigned int MaxInputStreams + unsigned int MaxInputStreams +
+ + +

The maximum number of input streams for which the device can store state data.

+
+ + dd318774 + unsigned int MaxStreamStates + unsigned int MaxStreamStates +
+ + + No documentation. + + + __MIDL___MIDL_itf_mfidl_0000_0020_0001 + __MIDL___MIDL_itf_mfidl_0000_0020_0001 + + + + No documentation. + + + MF_ACTIVATE_CUSTOM_MIXER_ALLOWFAIL + MF_ACTIVATE_CUSTOM_MIXER_ALLOWFAIL + + + + None. + + + None + None + + + + No documentation. + + + __MIDL___MIDL_itf_mfidl_0000_0020_0002 + __MIDL___MIDL_itf_mfidl_0000_0020_0002 + + + + No documentation. + + + MF_ACTIVATE_CUSTOM_PRESENTER_ALLOWFAIL + MF_ACTIVATE_CUSTOM_PRESENTER_ALLOWFAIL + + + + None. + + + None + None + + + +

Defines the ASF indexer options.

+
+ + ms704695 + MFASF_INDEXERFLAGS + MFASF_INDEXERFLAGS +
+ + +

The indexer creates a new index object.

+
+ + ms704695 + MFASF_INDEXER_WRITE_NEW_INDEX + MFASF_INDEXER_WRITE_NEW_INDEX +
+ + +

The indexer returns values for reverse playback.

+
+ + ms704695 + MFASF_INDEXER_READ_FOR_REVERSEPLAYBACK + MFASF_INDEXER_READ_FOR_REVERSEPLAYBACK +
+ + +

The indexer creates an index object for a live ASF stream.

+
+ + ms704695 + MFASF_INDEXER_WRITE_FOR_LIVEREAD + MFASF_INDEXER_WRITE_FOR_LIVEREAD +
+ + + None. + + + None + None + + + +

Defines the ASF multiplexer options.

+
+ + ms698843 + MFASF_MULTIPLEXERFLAGS + MFASF_MULTIPLEXERFLAGS +
+ + +

The multiplexer automatically adjusts the bit rate of the ASF content in response to the characteristics of the streams being multiplexed.

+
+ + ms698843 + MFASF_MULTIPLEXER_AUTOADJUST_BITRATE + MFASF_MULTIPLEXER_AUTOADJUST_BITRATE +
+ + + None. + + + None + None + + + +

Defines the selection options for an ASF stream.

+
+ + ms694827 + ASF_SELECTION_STATUS + ASF_SELECTION_STATUS +
+ + +

No samples from the stream are delivered.

+
+ + ms694827 + ASF_STATUS_NOTSELECTED + ASF_STATUS_NOTSELECTED +
+ + +

Only samples from the stream that are clean points are delivered.

+
+ + ms694827 + ASF_STATUS_CLEANPOINTSONLY + ASF_STATUS_CLEANPOINTSONLY +
+ + +

All samples from the stream are delivered.

+
+ + ms694827 + ASF_STATUS_ALLDATAUNITS + ASF_STATUS_ALLDATAUNITS +
+ + +

Defines the ASF splitter options.

+
+ + ms700211 + MFASF_SPLITTERFLAGS + MFASF_SPLITTERFLAGS +
+ + +

The splitter delivers samples for the ASF content in reverse order to accommodate reverse playback.

+
+ + ms700211 + MFASF_SPLITTER_REVERSE + MFASF_SPLITTER_REVERSE +
+ + +

The splitter delivers samples for streams that are protected with Windows Media Digital Rights Management.

+
+ + ms700211 + MFASF_SPLITTER_WMDRM + MFASF_SPLITTER_WMDRM +
+ + + None. + + + None + None + + + +

Defines status conditions for the method.

+
+ + ms703127 + ASF_STATUSFLAGS + ASF_STATUSFLAGS +
+ + + No documentation. + + + ms703127 + ASF_STATUSFLAGS_INCOMPLETE + ASF_STATUSFLAGS_INCOMPLETE + + + + No documentation. + + + ms703127 + ASF_STATUSFLAGS_NONFATAL_ERROR + ASF_STATUSFLAGS_NONFATAL_ERROR + + + + None. + + + None + None + + + +

Defines the ASF stream selector options.

+
+ + ms696200 + MFASF_STREAMSELECTORFLAGS + MFASF_STREAMSELECTORFLAGS +
+ + +

The stream selector will not set thinning. Thinning is the process of removing samples from a stream to reduce the bit rate.

+
+ + ms696200 + MFASF_STREAMSELECTOR_DISABLE_THINNING + MFASF_STREAMSELECTOR_DISABLE_THINNING +
+ + +

The stream selector will use the average bit rate of streams when selecting streams.

+
+ + ms696200 + MFASF_STREAMSELECTOR_USE_AVERAGE_BITRATE + MFASF_STREAMSELECTOR_USE_AVERAGE_BITRATE +
+ + + None. + + + None + None + + + +

Creates a work queue that is guaranteed to serialize work items. The serial work queue wraps an existing multithreaded work queue. The serial work queue enforces a first-in, first-out (FIFO) execution order.

+
+ +

When you are done using the work queue, call .

Multithreaded queues use a thread pool, which can reduce the total number of threads in the pipeline. However, they do not serialize work items. A serial work queue enables the application to get the benefits of the thread pool, without needing to perform manual serialization of its own work items.

+
+ + hh162744 + MFASYNC_CALLBACK_FLAGS + MFASYNC_CALLBACK_FLAGS +
+ + +

The identifier of an existing work queue. This must be either a multithreaded queue or another serial work queue. Any of the following can be used:

  • The default work queue ()
  • The platform multithreaded queue (MFASYNC_CALLBACK_QUEUE_MULTITHREADED)
  • A multithreaded queue returned by the MFLockSharedWorkQueue function.
  • A serial queue created by the MFAllocateSerialWorkQueue function.
+
+ + hh162744 + MFASYNC_FAST_IO_PROCESSING_CALLBACK + MFASYNC_FAST_IO_PROCESSING_CALLBACK +
+ + +

Receives an identifier for the new serial work queue. Use this identifier when queuing work items.

+
+ + hh162744 + MFASYNC_SIGNAL_CALLBACK + MFASYNC_SIGNAL_CALLBACK +
+ + + None. + + + None + None + + + +

Specifies the type of work queue for the function to create.

+
+ + dd388081 + MFASYNC_WORKQUEUE_TYPE + MFASYNC_WORKQUEUE_TYPE +
+ + + No documentation. + + + dd388081 + MF_STANDARD_WORKQUEUE + MF_STANDARD_WORKQUEUE + + + + No documentation. + + + dd388081 + MF_WINDOW_WORKQUEUE + MF_WINDOW_WORKQUEUE + + + +

Defines flags for serializing and deserializing attribute stores.

+
+ + ms704675 + MF_ATTRIBUTE_SERIALIZE_OPTIONS + MF_ATTRIBUTE_SERIALIZE_OPTIONS +
+ + +

If this flag is set, references in the attribute store are marshaled to and from the stream. If this flag is absent, references in the attribute store are not marshaled or serialized.

+
+ + ms704675 + MF_ATTRIBUTE_SERIALIZE_UNKNOWN_BYREF + MF_ATTRIBUTE_SERIALIZE_UNKNOWN_BYREF +
+ + +

Specifies how to compare the attributes on two objects.

+
+ + ms703793 + MF_ATTRIBUTES_MATCH_TYPE + MF_ATTRIBUTES_MATCH_TYPE +
+ + +

Check whether all the attributes in pThis exist in pTheirs and have the same data, where pThis is the object whose Compare method is being called and pTheirs is the object given in the pTheirs parameter.

+
+ + ms703793 + MF_ATTRIBUTES_MATCH_OUR_ITEMS + MF_ATTRIBUTES_MATCH_OUR_ITEMS +
+ + +

Check whether all the attributes in pTheirs exist in pThis and have the same data, where pThis is the object whose Compare method is being called and pTheirs is the object given in the pTheirs parameter.

+
+ + ms703793 + MF_ATTRIBUTES_MATCH_THEIR_ITEMS + MF_ATTRIBUTES_MATCH_THEIR_ITEMS +
+ + +

Check whether both objects have identical attributes with the same data.

+
+ + ms703793 + MF_ATTRIBUTES_MATCH_ALL_ITEMS + MF_ATTRIBUTES_MATCH_ALL_ITEMS +
+ + +

Check whether the attributes that exist in both objects have the same data.

+
+ + ms703793 + MF_ATTRIBUTES_MATCH_INTERSECTION + MF_ATTRIBUTES_MATCH_INTERSECTION +
+ + +

Find the object with the fewest number of attributes, and check if those attributes exist in the other object and have the same data.

+
+ + ms703793 + MF_ATTRIBUTES_MATCH_SMALLER + MF_ATTRIBUTES_MATCH_SMALLER +
+ + +

Defines the data type for a key/value pair.

+
+ + ms694854 + MF_ATTRIBUTE_TYPE + MF_ATTRIBUTE_TYPE +
+ + +

Unsigned 32-bit integer.

+
+ + ms694854 + MF_ATTRIBUTE_UINT32 + MF_ATTRIBUTE_UINT32 +
+ + +

Unsigned 64-bit integer.

+
+ + ms694854 + MF_ATTRIBUTE_UINT64 + MF_ATTRIBUTE_UINT64 +
+ + +

Floating-point number.

+
+ + ms694854 + MF_ATTRIBUTE_DOUBLE + MF_ATTRIBUTE_DOUBLE +
+ + +

value.

+
+ + ms694854 + MF_ATTRIBUTE_GUID + MF_ATTRIBUTE_GUID +
+ + +

null-terminated wide-character string.

+
+ + ms694854 + MF_ATTRIBUTE_STRING + MF_ATTRIBUTE_STRING +
+ + +

Byte array.

+
+ + ms694854 + MF_ATTRIBUTE_BLOB + MF_ATTRIBUTE_BLOB +
+ + +

reference.

+
+ + ms694854 + MF_ATTRIBUTE_IUNKNOWN + MF_ATTRIBUTE_IUNKNOWN +
+ + +

Specifies the origin for a seek request.

+
+ + ms702091 + MFBYTESTREAM_SEEK_ORIGIN + MFBYTESTREAM_SEEK_ORIGIN +
+ + +

The seek position is specified relative to the start of the stream.

+
+ + ms702091 + msoBegin + msoBegin +
+ + +

The seek position is specified relative to the current read/write position in the stream.

+
+ + ms702091 + msoCurrent + msoCurrent +
+ + +

Contains flags that describe the characteristics of a clock. These flags are returned by the method.

+
+ + ms699872 + MFCLOCK_CHARACTERISTICS_FLAGS + MFCLOCK_CHARACTERISTICS_FLAGS +
+ + + No documentation. + + + ms699872 + MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ + MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ + + + + No documentation. + + + ms699872 + MFCLOCK_CHARACTERISTICS_FLAG_ALWAYS_RUNNING + MFCLOCK_CHARACTERISTICS_FLAG_ALWAYS_RUNNING + + + + No documentation. + + + ms699872 + MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK + MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK + + + + None. + + + None + None + + + +

Defines properties of a clock.

+
+ + ms703927 + MFCLOCK_RELATIONAL_FLAGS + MFCLOCK_RELATIONAL_FLAGS +
+ + +

Jitter values are always negative. In other words, the time returned by might jitter behind the actual clock time, but will never jitter ahead of the actual time. If this flag is not present, the clock might jitter in either direction.

+
+ + ms703927 + MFCLOCK_RELATIONAL_FLAG_JITTER_NEVER_AHEAD + MFCLOCK_RELATIONAL_FLAG_JITTER_NEVER_AHEAD +
+ + + None. + + + None + None + + + +

Defines the state of a clock.

+
+ + ms700794 + MFCLOCK_STATE + MFCLOCK_STATE +
+ + +

The clock is invalid. A clock might be invalid for several reasons. Some clocks return this state before the first start. This state can also occur if the underlying device is lost.

+
+ + ms700794 + MFCLOCK_STATE_INVALID + MFCLOCK_STATE_INVALID +
+ + +

The clock is running. While the clock is running, the time advances at the clock's frequency and current rate.

+
+ + ms700794 + MFCLOCK_STATE_RUNNING + MFCLOCK_STATE_RUNNING +
+ + +

The clock is stopped. While stopped, the clock reports a time of 0.

+
+ + ms700794 + MFCLOCK_STATE_STOPPED + MFCLOCK_STATE_STOPPED +
+ + +

The clock is paused. While paused, the clock reports the time it was paused.

+
+ + ms700794 + MFCLOCK_STATE_PAUSED + MFCLOCK_STATE_PAUSED +
+ + +

Specifies how the topology loader connects a topology node. This enumeration is used with the attribute.

+
+ + ms700178 + MF_CONNECT_METHOD + MF_CONNECT_METHOD +
+ + + No documentation. + + + ms700178 + MF_CONNECT_DIRECT + MF_CONNECT_DIRECT + + + + No documentation. + + + ms700178 + MF_CONNECT_ALLOW_CONVERTER + MF_CONNECT_ALLOW_CONVERTER + + + + No documentation. + + + ms700178 + MF_CONNECT_ALLOW_DECODER + MF_CONNECT_ALLOW_DECODER + + + + No documentation. + + + ms700178 + MF_CONNECT_RESOLVE_INDEPENDENT_OUTPUTTYPES + MF_CONNECT_RESOLVE_INDEPENDENT_OUTPUTTYPES + + + + No documentation. + + + ms700178 + MF_CONNECT_AS_OPTIONAL + MF_CONNECT_AS_OPTIONAL + + + + No documentation. + + + ms700178 + MF_CONNECT_AS_OPTIONAL_BRANCH + MF_CONNECT_AS_OPTIONAL_BRANCH + + + + No documentation. + + + _DMO_INPLACE_PROCESS_FLAGS + _DMO_INPLACE_PROCESS_FLAGS + + + + No documentation. + + + DMO_INPLACE_NORMAL + DMO_INPLACE_NORMAL + + + + No documentation. + + + DMO_INPLACE_ZERO + DMO_INPLACE_ZERO + + + + None. + + + None + None + + + + No documentation. + + + _DMO_INPUT_DATA_BUFFER_FLAGS + _DMO_INPUT_DATA_BUFFER_FLAGS + + + + No documentation. + + + DMO_INPUT_DATA_BUFFERF_SYNCPOINT + DMO_INPUT_DATA_BUFFERF_SYNCPOINT + + + + No documentation. + + + DMO_INPUT_DATA_BUFFERF_TIME + DMO_INPUT_DATA_BUFFERF_TIME + + + + No documentation. + + + DMO_INPUT_DATA_BUFFERF_TIMELENGTH + DMO_INPUT_DATA_BUFFERF_TIMELENGTH + + + + None. + + + None + None + + + +

Media Foundation transforms (MFTs) are an evolution of the transform model first introduced with DirectX Media Objects (DMOs). This topic summarizes the main ways in which MFTs differ from DMOs. Read this topic if you are already familiar with the DMO interfaces, or if you want to convert an existing DMO into an MFT.

This topic contains the following sections:

  • Number
  • Format
  • Streaming
    • Allocating
    • Processing
    • Flushing
    • Stream
  • Miscellaneous
  • Flags
    • ProcessInput
    • ProcessOutput
    • GetInputStatus
    • GetOutputStatus
    • GetInputStreamInfo
    • GetOutputStreamInfo
    • SetInputType/SetOutputType
  • Error
  • Creating
  • Related
+
+ + bb250374 + _DMO_INPUT_STATUS_FLAGS + _DMO_INPUT_STATUS_FLAGS +
+ + + No documentation. + + + bb250374 + DMO_INPUT_STATUSF_ACCEPT_DATA + DMO_INPUT_STATUSF_ACCEPT_DATA + + + + None. + + + None + None + + + +

The DMO_INPUT_STREAM_INFO_FLAGS enumeration defines flags that describe an input stream.

+
+ + dd375502 + _DMO_INPUT_STREAM_INFO_FLAGS + _DMO_INPUT_STREAM_INFO_FLAGS +
+ + +

The stream requires whole samples. Samples must not span multiple buffers, and buffers must not contain partial samples.

+
+ + dd375502 + DMO_INPUT_STREAMF_WHOLE_SAMPLES + DMO_INPUT_STREAMF_WHOLE_SAMPLES +
+ + +

Each buffer must contain exactly one sample.

+
+ + dd375502 + DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER + DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER +
+ + +

All the samples in this stream must be the same size.

+
+ + dd375502 + DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE + DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE +
+ + +

The DMO performs lookahead on the incoming data, and may hold multiple input buffers for this stream.

+
+ + dd375502 + DMO_INPUT_STREAMF_HOLDS_BUFFERS + DMO_INPUT_STREAMF_HOLDS_BUFFERS +
+ + + None. + + + None + None + + + + No documentation. + + + _DMO_OUTPUT_DATA_BUFFER_FLAGS + _DMO_OUTPUT_DATA_BUFFER_FLAGS + + + + No documentation. + + + DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT + DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT + + + + No documentation. + + + DMO_OUTPUT_DATA_BUFFERF_TIME + DMO_OUTPUT_DATA_BUFFERF_TIME + + + + No documentation. + + + DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH + DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH + + + + No documentation. + + + DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE + DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE + + + + None. + + + None + None + + + + No documentation. + + + _DMO_OUTPUT_STREAM_INFO_FLAGS + _DMO_OUTPUT_STREAM_INFO_FLAGS + + + + No documentation. + + + DMO_OUTPUT_STREAMF_WHOLE_SAMPLES + DMO_OUTPUT_STREAMF_WHOLE_SAMPLES + + + + No documentation. + + + DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER + DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER + + + + No documentation. + + + DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE + DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE + + + + No documentation. + + + DMO_OUTPUT_STREAMF_DISCARDABLE + DMO_OUTPUT_STREAMF_DISCARDABLE + + + + No documentation. + + + DMO_OUTPUT_STREAMF_OPTIONAL + DMO_OUTPUT_STREAMF_OPTIONAL + + + + None. + + + None + None + + + + No documentation. + + + _DMO_PROCESS_OUTPUT_FLAGS + _DMO_PROCESS_OUTPUT_FLAGS + + + + No documentation. + + + DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER + DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER + + + + None. + + + None + None + + + +

The interface supports quality control on a Microsoft DirectX Media Object (DMO).

A DMO exposes this interface if it can respond to late samples. When quality control is enabled, the DMO attempts to process samples on time, discarding late samples if necessary. When quality control is disabled, the DMO processes every sample. By default, quality control is disabled.

Applications use this interface to enable or disable quality control. Using quality control is appropriate when you are viewing media data in real time. If you are capturing data to a file, do not enable quality control, because the DMO might discard samples. It does not matter in file capture whether samples arrive late, and you do not want to lose the data.

To use quality control, perform the following steps:

  1. Call the method with the reference time of the earliest sample to be processed.
  2. Call the method with the flag.

To disable quality control, call SetStatus with no flag.

+
+ + dd406839 + _DMO_QUALITY_STATUS_FLAGS + _DMO_QUALITY_STATUS_FLAGS +
+ + + No documentation. + + + dd406839 + DMO_QUALITY_STATUS_ENABLED + DMO_QUALITY_STATUS_ENABLED + + + + None. + + + None + None + + + +

The DMO_SET_TYPE_FLAGS enumeration defines flags for setting the media type on a stream.

+
+ +

The and flags are mutually exclusive. Do not set both flags.

+
+ + dd375514 + _DMO_SET_TYPE_FLAGS + _DMO_SET_TYPE_FLAGS +
+ + +

Test the media type but do not set it.

+
+ + dd375514 + DMO_SET_TYPEF_TEST_ONLY + DMO_SET_TYPEF_TEST_ONLY +
+ + +

Clear the media type that was set for the stream.

+
+ + dd375514 + DMO_SET_TYPEF_CLEAR + DMO_SET_TYPEF_CLEAR +
+ + + None. + + + None + None + + + +

The DMO_VIDEO_OUTPUT_STREAM_FLAGS enumeration defines flags that describe requested features, for video optimizations.

+
+ + dd375517 + _DMO_VIDEO_OUTPUT_STREAM_FLAGS + _DMO_VIDEO_OUTPUT_STREAM_FLAGS +
+ + +

Requests that every output buffer passed to the DMO contain the previous data that was generated.

+
+ + dd375517 + DMO_VOSF_NEEDS_PREVIOUS_SAMPLE + DMO_VOSF_NEEDS_PREVIOUS_SAMPLE +
+ + + None. + + + None + None + + + + No documentation. + + + EAllocationType + EAllocationType + + + + No documentation. + + + eAllocationTypeDynamic + eAllocationTypeDynamic + + + + No documentation. + + + eAllocationTypeRT + eAllocationTypeRT + + + + No documentation. + + + eAllocationTypePageable + eAllocationTypePageable + + + + No documentation. + + + eAllocationTypeIgnore + eAllocationTypeIgnore + + + +

Contains flags that are used to configure the Microsoft DirectShow enhanced video renderer (EVR) filter.

+
+ + dd318789 + EVRFilterConfigPrefs + EVRFilterConfigPrefs +
+ + +

Enables dynamic adjustments to video quality during playback.

+
+ + dd318789 + EVRFilterConfigPrefs_EnableQoS + EVRFilterConfigPrefs_EnableQoS +
+ + +

Specifies the requested access mode for opening a file.

+
+ + ms696239 + MF_FILE_ACCESSMODE + MF_FILE_ACCESSMODE +
+ + +

Read mode.

+
+ + ms696239 + MF_ACCESSMODE_READ + MF_ACCESSMODE_READ +
+ + +

Write mode.

+
+ + ms696239 + MF_ACCESSMODE_WRITE + MF_ACCESSMODE_WRITE +
+ + +

Read and write mode.

+
+ + ms696239 + MF_ACCESSMODE_READWRITE + MF_ACCESSMODE_READWRITE +
+ + +

Specifies the behavior when opening a file.

+
+ + ms694926 + MF_FILE_FLAGS + MF_FILE_FLAGS +
+ + +

Use the default behavior.

+
+ + ms694926 + MF_FILEFLAGS_NONE + MF_FILEFLAGS_NONE +
+ + +

Open the file with no system caching.

+
+ + ms694926 + MF_FILEFLAGS_NOBUFFERING + MF_FILEFLAGS_NOBUFFERING +
+ + +

Subsequent open operations can have write access to the file.

Note??Requires Windows?7 or later.

+
+ + ms694926 + MF_FILEFLAGS_ALLOW_WRITE_SHARING + MF_FILEFLAGS_ALLOW_WRITE_SHARING +
+ + + None. + + + None + None + + + +

Specifies how to open or create a file.

+
+ + ms694164 + MF_FILE_OPENMODE + MF_FILE_OPENMODE +
+ + +

Open an existing file. Fail if the file does not exist.

+
+ + ms694164 + MF_OPENMODE_FAIL_IF_NOT_EXIST + MF_OPENMODE_FAIL_IF_NOT_EXIST +
+ + +

Create a new file. Fail if the file already exists.

+
+ + ms694164 + MF_OPENMODE_FAIL_IF_EXIST + MF_OPENMODE_FAIL_IF_EXIST +
+ + +

Open an existing file and truncate it, so that the size is zero bytes. Fail if the file does not already exist.

+
+ + ms694164 + MF_OPENMODE_RESET_IF_EXIST + MF_OPENMODE_RESET_IF_EXIST +
+ + +

If the file does not exist, create a new file. If the file exists, open it.

+
+ + ms694164 + MF_OPENMODE_APPEND_IF_EXIST + MF_OPENMODE_APPEND_IF_EXIST +
+ + +

Create a new file. If the file exists, overwrite the file.

+
+ + ms694164 + MF_OPENMODE_DELETE_IF_EXIST + MF_OPENMODE_DELETE_IF_EXIST +
+ + + No documentation. + + + __MIDL___MIDL_itf_mfobjects_0000_0009_0001 + __MIDL___MIDL_itf_mfobjects_0000_0009_0001 + + + + No documentation. + + + MEUnknown + MEUnknown + + + + No documentation. + + + MEError + MEError + + + + No documentation. + + + MEExtendedType + MEExtendedType + + + + No documentation. + + + MENonFatalError + MENonFatalError + + + + No documentation. + + + MEGenericV1Anchor + MEGenericV1Anchor + + + + No documentation. + + + MESessionUnknown + MESessionUnknown + + + + No documentation. + + + MESessionTopologySet + MESessionTopologySet + + + + No documentation. + + + MESessionTopologiesCleared + MESessionTopologiesCleared + + + + No documentation. + + + MESessionStarted + MESessionStarted + + + + No documentation. + + + MESessionPaused + MESessionPaused + + + + No documentation. + + + MESessionStopped + MESessionStopped + + + + No documentation. + + + MESessionClosed + MESessionClosed + + + + No documentation. + + + MESessionEnded + MESessionEnded + + + + No documentation. + + + MESessionRateChanged + MESessionRateChanged + + + + No documentation. + + + MESessionScrubSampleComplete + MESessionScrubSampleComplete + + + + No documentation. + + + MESessionCapabilitiesChanged + MESessionCapabilitiesChanged + + + + No documentation. + + + MESessionTopologyStatus + MESessionTopologyStatus + + + + No documentation. + + + MESessionNotifyPresentationTime + MESessionNotifyPresentationTime + + + + No documentation. + + + MENewPresentation + MENewPresentation + + + + No documentation. + + + MELicenseAcquisitionStart + MELicenseAcquisitionStart + + + + No documentation. + + + MELicenseAcquisitionCompleted + MELicenseAcquisitionCompleted + + + + No documentation. + + + MEIndividualizationStart + MEIndividualizationStart + + + + No documentation. + + + MEIndividualizationCompleted + MEIndividualizationCompleted + + + + No documentation. + + + MEEnablerProgress + MEEnablerProgress + + + + No documentation. + + + MEEnablerCompleted + MEEnablerCompleted + + + + No documentation. + + + MEPolicyError + MEPolicyError + + + + No documentation. + + + MEPolicyReport + MEPolicyReport + + + + No documentation. + + + MEBufferingStarted + MEBufferingStarted + + + + No documentation. + + + MEBufferingStopped + MEBufferingStopped + + + + No documentation. + + + MEConnectStart + MEConnectStart + + + + No documentation. + + + MEConnectEnd + MEConnectEnd + + + + No documentation. + + + MEReconnectStart + MEReconnectStart + + + + No documentation. + + + MEReconnectEnd + MEReconnectEnd + + + + No documentation. + + + MERendererEvent + MERendererEvent + + + + No documentation. + + + MESessionStreamSinkFormatChanged + MESessionStreamSinkFormatChanged + + + + No documentation. + + + MESessionV1Anchor + MESessionV1Anchor + + + + No documentation. + + + MESourceUnknown + MESourceUnknown + + + + No documentation. + + + MESourceStarted + MESourceStarted + + + + No documentation. + + + MEStreamStarted + MEStreamStarted + + + + No documentation. + + + MESourceSeeked + MESourceSeeked + + + + No documentation. + + + MEStreamSeeked + MEStreamSeeked + + + + No documentation. + + + MENewStream + MENewStream + + + + No documentation. + + + MEUpdatedStream + MEUpdatedStream + + + + No documentation. + + + MESourceStopped + MESourceStopped + + + + No documentation. + + + MEStreamStopped + MEStreamStopped + + + + No documentation. + + + MESourcePaused + MESourcePaused + + + + No documentation. + + + MEStreamPaused + MEStreamPaused + + + + No documentation. + + + MEEndOfPresentation + MEEndOfPresentation + + + + No documentation. + + + MEEndOfStream + MEEndOfStream + + + + No documentation. + + + MEMediaSample + MEMediaSample + + + + No documentation. + + + MEStreamTick + MEStreamTick + + + + No documentation. + + + MEStreamThinMode + MEStreamThinMode + + + + No documentation. + + + MEStreamFormatChanged + MEStreamFormatChanged + + + + No documentation. + + + MESourceRateChanged + MESourceRateChanged + + + + No documentation. + + + MEEndOfPresentationSegment + MEEndOfPresentationSegment + + + + No documentation. + + + MESourceCharacteristicsChanged + MESourceCharacteristicsChanged + + + + No documentation. + + + MESourceRateChangeRequested + MESourceRateChangeRequested + + + + No documentation. + + + MESourceMetadataChanged + MESourceMetadataChanged + + + + No documentation. + + + MESequencerSourceTopologyUpdated + MESequencerSourceTopologyUpdated + + + + No documentation. + + + MESourceV1Anchor + MESourceV1Anchor + + + + No documentation. + + + MESinkUnknown + MESinkUnknown + + + + No documentation. + + + MEStreamSinkStarted + MEStreamSinkStarted + + + + No documentation. + + + MEStreamSinkStopped + MEStreamSinkStopped + + + + No documentation. + + + MEStreamSinkPaused + MEStreamSinkPaused + + + + No documentation. + + + MEStreamSinkRateChanged + MEStreamSinkRateChanged + + + + No documentation. + + + MEStreamSinkRequestSample + MEStreamSinkRequestSample + + + + No documentation. + + + MEStreamSinkMarker + MEStreamSinkMarker + + + + No documentation. + + + MEStreamSinkPrerolled + MEStreamSinkPrerolled + + + + No documentation. + + + MEStreamSinkScrubSampleComplete + MEStreamSinkScrubSampleComplete + + + + No documentation. + + + MEStreamSinkFormatChanged + MEStreamSinkFormatChanged + + + + No documentation. + + + MEStreamSinkDeviceChanged + MEStreamSinkDeviceChanged + + + + No documentation. + + + MEQualityNotify + MEQualityNotify + + + + No documentation. + + + MESinkInvalidated + MESinkInvalidated + + + + No documentation. + + + MEAudioSessionNameChanged + MEAudioSessionNameChanged + + + + No documentation. + + + MEAudioSessionVolumeChanged + MEAudioSessionVolumeChanged + + + + No documentation. + + + MEAudioSessionDeviceRemoved + MEAudioSessionDeviceRemoved + + + + No documentation. + + + MEAudioSessionServerShutdown + MEAudioSessionServerShutdown + + + + No documentation. + + + MEAudioSessionGroupingParamChanged + MEAudioSessionGroupingParamChanged + + + + No documentation. + + + MEAudioSessionIconChanged + MEAudioSessionIconChanged + + + + No documentation. + + + MEAudioSessionFormatChanged + MEAudioSessionFormatChanged + + + + No documentation. + + + MEAudioSessionDisconnected + MEAudioSessionDisconnected + + + + No documentation. + + + MEAudioSessionExclusiveModeOverride + MEAudioSessionExclusiveModeOverride + + + + No documentation. + + + MESinkV1Anchor + MESinkV1Anchor + + + + No documentation. + + + METrustUnknown + METrustUnknown + + + + No documentation. + + + MEPolicyChanged + MEPolicyChanged + + + + No documentation. + + + MEContentProtectionMessage + MEContentProtectionMessage + + + + No documentation. + + + MEPolicySet + MEPolicySet + + + + No documentation. + + + METrustV1Anchor + METrustV1Anchor + + + + No documentation. + + + MEWMDRMLicenseBackupCompleted + MEWMDRMLicenseBackupCompleted + + + + No documentation. + + + MEWMDRMLicenseBackupProgress + MEWMDRMLicenseBackupProgress + + + + No documentation. + + + MEWMDRMLicenseRestoreCompleted + MEWMDRMLicenseRestoreCompleted + + + + No documentation. + + + MEWMDRMLicenseRestoreProgress + MEWMDRMLicenseRestoreProgress + + + + No documentation. + + + MEWMDRMLicenseAcquisitionCompleted + MEWMDRMLicenseAcquisitionCompleted + + + + No documentation. + + + MEWMDRMIndividualizationCompleted + MEWMDRMIndividualizationCompleted + + + + No documentation. + + + MEWMDRMIndividualizationProgress + MEWMDRMIndividualizationProgress + + + + No documentation. + + + MEWMDRMProximityCompleted + MEWMDRMProximityCompleted + + + + No documentation. + + + MEWMDRMLicenseStoreCleaned + MEWMDRMLicenseStoreCleaned + + + + No documentation. + + + MEWMDRMRevocationDownloadCompleted + MEWMDRMRevocationDownloadCompleted + + + + No documentation. + + + MEWMDRMV1Anchor + MEWMDRMV1Anchor + + + + No documentation. + + + METransformUnknown + METransformUnknown + + + + No documentation. + + + METransformNeedInput + METransformNeedInput + + + + No documentation. + + + METransformHaveOutput + METransformHaveOutput + + + + No documentation. + + + METransformDrainComplete + METransformDrainComplete + + + + No documentation. + + + METransformMarker + METransformMarker + + + + No documentation. + + + MEReservedMax + MEReservedMax + + + +

Defines the characteristics of a media source. These flags are retrieved by the method.

+
+ +

To skip forward or backward in a playlist, call or with the MF_TIME_FORMAT_ENTRY_RELATIVE time-format . This capability applies only when the flag is present.

+
+ + ms694277 + MFMEDIASOURCE_CHARACTERISTICS + MFMEDIASOURCE_CHARACTERISTICS +
+ + + No documentation. + + + ms694277 + MFMEDIASOURCE_IS_LIVE + MFMEDIASOURCE_IS_LIVE + + + + No documentation. + + + ms694277 + MFMEDIASOURCE_CAN_SEEK + MFMEDIASOURCE_CAN_SEEK + + + + No documentation. + + + ms694277 + MFMEDIASOURCE_CAN_PAUSE + MFMEDIASOURCE_CAN_PAUSE + + + + No documentation. + + + ms694277 + MFMEDIASOURCE_HAS_SLOW_SEEK + MFMEDIASOURCE_HAS_SLOW_SEEK + + + + No documentation. + + + ms694277 + MFMEDIASOURCE_HAS_MULTIPLE_PRESENTATIONS + MFMEDIASOURCE_HAS_MULTIPLE_PRESENTATIONS + + + + No documentation. + + + ms694277 + MFMEDIASOURCE_CAN_SKIPFORWARD + MFMEDIASOURCE_CAN_SKIPFORWARD + + + + No documentation. + + + ms694277 + MFMEDIASOURCE_CAN_SKIPBACKWARD + MFMEDIASOURCE_CAN_SKIPBACKWARD + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Specifies options for the function.

+
+ +

The following typedef is defined for combining flags from this enumeration.

typedef UINT32 MFP_CREATION_OPTIONS; +
+ + dd757934 + _MFP_CREATION_OPTIONS + _MFP_CREATION_OPTIONS +
+ + + No documentation. + + + dd757934 + MFP_OPTION_NONE + MFP_OPTION_NONE + + + + No documentation. + + + dd757934 + MFP_OPTION_FREE_THREADED_CALLBACK + MFP_OPTION_FREE_THREADED_CALLBACK + + + + No documentation. + + + dd757934 + MFP_OPTION_NO_MMCSS + MFP_OPTION_NO_MMCSS + + + + No documentation. + + + dd757934 + MFP_OPTION_NO_REMOTE_DESKTOP_OPTIMIZATION + MFP_OPTION_NO_REMOTE_DESKTOP_OPTIMIZATION + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Contains flags for the structure.

Some of these flags, marked [out], convey information back to the MFPlay player object. The application should set or clear these flags as appropriate, before returning from the callback method.

+
+ + dd757935 + _MFP_CREDENTIAL_FLAGS + _MFP_CREDENTIAL_FLAGS +
+ + + No documentation. + + + dd757935 + MFP_CREDENTIAL_PROMPT + MFP_CREDENTIAL_PROMPT + + + + No documentation. + + + dd757935 + MFP_CREDENTIAL_SAVE + MFP_CREDENTIAL_SAVE + + + + No documentation. + + + dd757935 + MFP_CREDENTIAL_DO_NOT_CACHE + MFP_CREDENTIAL_DO_NOT_CACHE + + + + No documentation. + + + dd757935 + MFP_CREDENTIAL_CLEAR_TEXT + MFP_CREDENTIAL_CLEAR_TEXT + + + + No documentation. + + + dd757935 + MFP_CREDENTIAL_PROXY + MFP_CREDENTIAL_PROXY + + + + No documentation. + + + dd757935 + MFP_CREDENTIAL_LOGGED_ON_USER + MFP_CREDENTIAL_LOGGED_ON_USER + + + + None. + + + None + None + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Contains flags that describe a media item.

+
+ +

The following typedef is defined for combining flags from this enumeration.

typedef UINT32 MFP_MEDIAITEM_CHARACTERISTICS; +
+ + dd757936 + _MFP_MEDIAITEM_CHARACTERISTICS + _MFP_MEDIAITEM_CHARACTERISTICS +
+ + + No documentation. + + + dd757936 + MFP_MEDIAITEM_IS_LIVE + MFP_MEDIAITEM_IS_LIVE + + + + No documentation. + + + dd757936 + MFP_MEDIAITEM_CAN_SEEK + MFP_MEDIAITEM_CAN_SEEK + + + + No documentation. + + + dd757936 + MFP_MEDIAITEM_CAN_PAUSE + MFP_MEDIAITEM_CAN_PAUSE + + + + No documentation. + + + dd757936 + MFP_MEDIAITEM_HAS_SLOW_SEEK + MFP_MEDIAITEM_HAS_SLOW_SEEK + + + +

Not supported.

Note??Earlier versions of this documentation described the _MFT_DRAIN_TYPE enumeration incorrectly. The enumeration is not supported. For more information, see .

+
+ + ms700116 + _MFT_DRAIN_TYPE + _MFT_DRAIN_TYPE +
+ + + No documentation. + + + ms700116 + MFT_DRAIN_PRODUCE_TAILS + MFT_DRAIN_PRODUCE_TAILS + + + + No documentation. + + + ms700116 + MFT_DRAIN_NO_TAILS + MFT_DRAIN_NO_TAILS + + + +

Defines flags for the method.

+
+ +

The values in this enumeration are not bit flags, so they should not be combined with a bitwise OR. Also, the caller should test for these flags with the equality operator, not a bitwise AND:

// Correct. + if (Buffer.dwStatus == ) + { ... + } // Incorrect. + if ((Buffer.dwStatus & ) != 0) + { ... + } + +
+ + ms702281 + _MFT_INPUT_DATA_BUFFER_FLAGS + _MFT_INPUT_DATA_BUFFER_FLAGS +
+ + + No documentation. + + + ms702281 + MFT_INPUT_DATA_BUFFER_PLACEHOLDER + MFT_INPUT_DATA_BUFFER_PLACEHOLDER + + + + None. + + + None + None + + + +

Indicates the status of an input stream on a Media Foundation transform (MFT).

+
+ + ms703084 + _MFT_INPUT_STATUS_FLAGS + _MFT_INPUT_STATUS_FLAGS +
+ + +

The input stream can receive more data at this time. To deliver more input data, call .

+
+ + ms703084 + MFT_INPUT_STATUS_ACCEPT_DATA + MFT_INPUT_STATUS_ACCEPT_DATA +
+ + + None. + + + None + None + + + +

Describes an input stream on a Media Foundation transform (MFT).

+
+ +

Before the client sets the media types on the transform, the only flags guaranteed to be accurate are the and flags. For all other flags, the client should first set the media type on every non-optional stream.

In the default processing model, an MFT holds a reference count on the sample that it receives in ProcessInput. It does not process the sample immediately inside ProcessInput. When ProcessOutput is called, the MFT produces output data and then discards the input sample. The following variations on this model are defined:

  • If an MFT never holds onto input samples between ProcessInput and ProcessOutput, it can set the .

  • If an MFT holds some input samples beyond the next call to ProcessOutput, it can set the .

+
+ + ms703975 + _MFT_INPUT_STREAM_INFO_FLAGS + _MFT_INPUT_STREAM_INFO_FLAGS +
+ + +

Each media sample ( interface) of input data must contain complete, unbroken units of data. The definition of a unit of data depends on the media type: For uncompressed video, a video frame; for compressed data, a compressed packet; for uncompressed audio, a single audio frame.

For uncompressed audio formats, this flag is always implied. (It is valid to set the flag, but not required.) An uncompressed audio frame should never span more than one media sample.

+
+ + ms703975 + MFT_INPUT_STREAM_WHOLE_SAMPLES + MFT_INPUT_STREAM_WHOLE_SAMPLES +
+ + +

Each media sample that the client provides as input must contain exactly one unit of data, as defined for the flag.

If this flag is present, the flag must also be present.

An MFT that processes uncompressed audio should not set this flag. The MFT should accept buffers that contain more than a single audio frame, for efficiency.

+
+ + ms703975 + MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER + MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER +
+ + +

All input samples must be the same size. The size is given in the cbSize member of the structure. The MFT must provide this value. During processing, the MFT should verify the size of input samples, and may drop samples with incorrect size.

+
+ + ms703975 + MFT_INPUT_STREAM_FIXED_SAMPLE_SIZE + MFT_INPUT_STREAM_FIXED_SAMPLE_SIZE +
+ + +

The MFT might hold one or more input samples after is called. If this flag is present, the hnsMaxLatency member of the structure gives the maximum latency, and the cbMaxLookahead member gives the maximum number of bytes of lookahead.

+
+ + ms703975 + MFT_INPUT_STREAM_HOLDS_BUFFERS + MFT_INPUT_STREAM_HOLDS_BUFFERS +
+ + +

The MFT does not hold input samples after the method returns. It releases the sample before the ProcessInput method returns.

If this flag is absent, the MFT might hold a reference count on the samples that are passed to the ProcessInput method. The client must not re-use or delete the buffer memory until the MFT releases the sample's reference.

If this flag is absent, it does not guarantee that the MFT holds a reference count on the input samples. It is valid for an MFT to release input samples in ProcessInput even if the MFT does not set this flag. However, setting this flag might enable to client to optimize how it re-uses buffers.

An MFT should not set this flag if it ever holds onto an input sample after returning from ProcessInput.

+
+ + ms703975 + MFT_INPUT_STREAM_DOES_NOT_ADDREF + MFT_INPUT_STREAM_DOES_NOT_ADDREF +
+ + +

This input stream can be removed by calling .

+
+ + ms703975 + MFT_INPUT_STREAM_REMOVABLE + MFT_INPUT_STREAM_REMOVABLE +
+ + +

This input stream is optional. The transform can produce output without receiving input from this stream. The caller can deselect the stream by not setting a media type or by setting a null media type. It is possible for every input stream on a transform to be optional, but at least one input must be selected in order to produce output.

+
+ + ms703975 + MFT_INPUT_STREAM_OPTIONAL + MFT_INPUT_STREAM_OPTIONAL +
+ + +

The MFT can perform in-place processing. In this mode, the MFT directly modifies the input buffer. When the client calls ProcessOutput, the same sample that was delivered to this stream is returned in the output stream that has a matching stream identifier. This flag implies that the MFT holds onto the input buffer, so this flag cannot combined with the flag.

If this flag is present, the MFT must set the or flag for the output stream that corresponds to this input stream. (See ).

+
+ + ms703975 + MFT_INPUT_STREAM_PROCESSES_IN_PLACE + MFT_INPUT_STREAM_PROCESSES_IN_PLACE +
+ + + None. + + + None + None + + + +

Defines flags for the method.

+
+ +

The values in this enumeration are not bit flags, so they should not be combined with a bitwise OR. Also, the caller should test for these flags with the equality operator, not a bitwise AND:

// Correct. + if (Buffer.dwStatus == ) + { ... + } // Incorrect. + if ((Buffer.dwStatus & ) != 0) + { ... + } + +
+ + ms702281 + _MFT_OUTPUT_DATA_BUFFER_FLAGS + _MFT_OUTPUT_DATA_BUFFER_FLAGS +
+ + + No documentation. + + + ms702281 + MFT_OUTPUT_DATA_BUFFER_INCOMPLETE + MFT_OUTPUT_DATA_BUFFER_INCOMPLETE + + + + No documentation. + + + ms702281 + MFT_OUTPUT_DATA_BUFFER_FORMAT_CHANGE + MFT_OUTPUT_DATA_BUFFER_FORMAT_CHANGE + + + + No documentation. + + + ms702281 + MFT_OUTPUT_DATA_BUFFER_STREAM_END + MFT_OUTPUT_DATA_BUFFER_STREAM_END + + + + No documentation. + + + ms702281 + MFT_OUTPUT_DATA_BUFFER_NO_SAMPLE + MFT_OUTPUT_DATA_BUFFER_NO_SAMPLE + + + + None. + + + None + None + + + +

Indicates whether a Media Foundation transform (MFT) can produce output data.

+
+ + ms701553 + _MFT_OUTPUT_STATUS_FLAGS + _MFT_OUTPUT_STATUS_FLAGS +
+ + +

There is a sample available for at least one output stream. To retrieve the available output samples, call .

+
+ + ms701553 + MFT_OUTPUT_STATUS_SAMPLE_READY + MFT_OUTPUT_STATUS_SAMPLE_READY +
+ + + None. + + + None + None + + + +

Describes an output stream on a Media Foundation transform (MFT).

+
+ +

Before the client sets the media types on the MFT, the only flag guaranteed to be accurate is the flag. For all other flags, the client should first set the media type on every non-optional stream.

The and flags define different behaviors for how the MFT can discard output data.

  • MFT_OUTPUT_STREAM_DISCARDABLE: The MFT discards output data only if the client calls ProcessOutput with the flag. The MFT never discards data when the client calls ProcessInput.

  • MFT_OUTPUT_STREAM_LAZY_READ: If the client continues to call ProcessInput without collecting the output from this stream, the MFT eventually discards the output. If all output streams have the flag, the MFT never refuses more input data.

If neither of these flags is set, the MFT never discards output data.

+
+ + ms705618 + _MFT_OUTPUT_STREAM_INFO_FLAGS + _MFT_OUTPUT_STREAM_INFO_FLAGS +
+ + +

Each media sample ( interface) of output data from the MFT contains complete, unbroken units of data. The definition of a unit of data depends on the media type: For uncompressed video, a video frame; for compressed data, a compressed packet; for uncompressed audio, a single audio frame.

For uncompressed audio formats, this flag is always implied. (It is valid to set the flag, but not required.) An uncompressed audio frame should never span more than one media sample.

+
+ + ms705618 + MFT_OUTPUT_STREAM_WHOLE_SAMPLES + MFT_OUTPUT_STREAM_WHOLE_SAMPLES +
+ + +

Each output sample contains exactly one unit of data, as defined for the flag.

If this flag is present, the flag must also be present.

An MFT that outputs uncompressed audio should not set this flag. For efficiency, it should output more than one audio frame at a time.

+
+ + ms705618 + MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER + MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER +
+ + +

All output samples are the same size.

+
+ + ms705618 + MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE + MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE +
+ + +

The MFT can discard the output data from this output stream, if requested by the client. To discard the output, set the flag in the method.

+
+ + ms705618 + MFT_OUTPUT_STREAM_DISCARDABLE + MFT_OUTPUT_STREAM_DISCARDABLE +
+ + +

This output stream is optional. The client can deselect the stream by not setting a media type or by setting a null media type. When an optional stream is deselected, it does not produce any output data.

+
+ + ms705618 + MFT_OUTPUT_STREAM_OPTIONAL + MFT_OUTPUT_STREAM_OPTIONAL +
+ + +

The MFT provides the output samples for this stream, either by allocating them internally or by operating directly on the input samples. The MFT cannot use output samples provided by the client for this stream.

If this flag is not set, the MFT must set cbSize to a nonzero value in the structure, so that the client can allocate the correct buffer size. For more information, see . This flag cannot be combined with the flag.

+
+ + ms705618 + MFT_OUTPUT_STREAM_PROVIDES_SAMPLES + MFT_OUTPUT_STREAM_PROVIDES_SAMPLES +
+ + +

The MFT can either provide output samples for this stream or it can use samples that the client allocates. This flag cannot be combined with the flag.

If the MFT does not set this flag or the flag, the client must allocate the samples for this output stream. The MFT will not provide its own samples.

+
+ + ms705618 + MFT_OUTPUT_STREAM_CAN_PROVIDE_SAMPLES + MFT_OUTPUT_STREAM_CAN_PROVIDE_SAMPLES +
+ + +

The MFT does not require the client to process the output for this stream. If the client continues to send input data without getting the output from this stream, the MFT simply discards the previous input.

+
+ + ms705618 + MFT_OUTPUT_STREAM_LAZY_READ + MFT_OUTPUT_STREAM_LAZY_READ +
+ + +

The MFT might remove this output stream during streaming. This flag typically applies to demultiplexers, where the input data contains multiple streams that can start and stop during streaming. For more information, see .

+
+ + ms705618 + MFT_OUTPUT_STREAM_REMOVABLE + MFT_OUTPUT_STREAM_REMOVABLE +
+ + + None. + + + None + None + + + +

Defines flags for the setting or testing the media type on a Media Foundation transform (MFT).

+
+ + ms704051 + _MFT_SET_TYPE_FLAGS + _MFT_SET_TYPE_FLAGS +
+ + +

Test the proposed media type, but do not set it.

+
+ + ms704051 + MFT_SET_TYPE_TEST_ONLY + MFT_SET_TYPE_TEST_ONLY +
+ + + None. + + + None + None + + + +

Specifies how the user's credentials will be used.

+
+ + ms697023 + MFNetAuthenticationFlags + MFNetAuthenticationFlags +
+ + +

The credentials will be used to authenticate with a proxy.

+
+ + ms697023 + MFNET_AUTHENTICATION_PROXY + MFNET_AUTHENTICATION_PROXY +
+ + +

The credentials will be sent over the network unencrypted.

+
+ + ms697023 + MFNET_AUTHENTICATION_CLEAR_TEXT + MFNET_AUTHENTICATION_CLEAR_TEXT +
+ + +

The credentials must be from a user who is currently logged on.

+
+ + ms697023 + MFNET_AUTHENTICATION_LOGGED_ON_USER + MFNET_AUTHENTICATION_LOGGED_ON_USER +
+ + +

Describes options for the caching network credentials.

+
+ + ms697386 + MFNetCredentialOptions + MFNetCredentialOptions +
+ + +

Allow the credential cache object to save credentials in persistant storage.

+
+ + ms697386 + MFNET_CREDENTIAL_SAVE + MFNET_CREDENTIAL_SAVE +
+ + +

Do not allow the credential cache object to cache the credentials in memory. This flag cannot be combined with the flag.

+
+ + ms697386 + MFNET_CREDENTIAL_DONT_CACHE + MFNET_CREDENTIAL_DONT_CACHE +
+ + +

The user allows credentials to be sent over the network in clear text.

By default, always returns the flag when the authentication flags include , even if cached credentials are available. If you set the option, the GetCredential method will not return for clear text, if cached credentials are available.

Do not set this flag without notifying the user that credentials might be sent in clear text.

+
+ + ms697386 + MFNET_CREDENTIAL_ALLOW_CLEAR_TEXT + MFNET_CREDENTIAL_ALLOW_CLEAR_TEXT +
+ + +

Specifies how the credential manager should obtain user credentials.

+
+ +

The application implements the credential manager, which must expose the interface. If the flag is set, the credential manager should prompt the user for his or her name and password.

The credential cache object sets the flag if the cache does not yet contain valid credentials. It also sets this flag if the credentials will be sent as plain text, unless the credential manager previously set the option. (See .)

+
+ + ms700813 + MFNetCredentialRequirements + MFNetCredentialRequirements +
+ + +

The credential manager should prompt the user to provide the credentials.

+
+ + ms700813 + REQUIRE_PROMPT + REQUIRE_PROMPT +
+ + +

Note??Requires Windows?7 or later.

The credentials are saved to persistent storage. This flag acts as a hint for the application's UI. If the application prompts the user for credentials, the UI can indicate that the credentials have already been saved.

+
+ + ms700813 + REQUIRE_SAVE_SELECTED + REQUIRE_SAVE_SELECTED +
+ + +

Specifies how the default proxy locator will specify the connection settings to a proxy server. The application must set these values in the MFNETSOURCE_PROXYSETTINGS property.

+
+ + aa372538 + MFNET_PROXYSETTINGS + MFNET_PROXYSETTINGS +
+ + + No documentation. + + + aa372538 + MFNET_PROXYSETTING_NONE + MFNET_PROXYSETTING_NONE + + + + No documentation. + + + aa372538 + MFNET_PROXYSETTING_MANUAL + MFNET_PROXYSETTING_MANUAL + + + + No documentation. + + + aa372538 + MFNET_PROXYSETTING_AUTO + MFNET_PROXYSETTING_AUTO + + + + No documentation. + + + aa372538 + MFNET_PROXYSETTING_BROWSER + MFNET_PROXYSETTING_BROWSER + + + +

Defines statistics collected by the network source. The values in this enumeration define property identifiers (PIDs) for the MFNETSOURCE_STATISTICS property.

To retrieve statistics from the network source, call with the service identifier and the interface identifier IID_IPropertyStore. The retrieved reference is an reference. To get the value of a network statistic, construct a PROPERTYKEY with fmtid equal to MFNETSOURCE_STATISTICS and pid equal to a value from this enumeration. Then call IPropertyStore::GetValue with the property key to retrieve the value of the statistic as a .

In the descriptions that follow, the data type and value-type tag for the are listed in parentheses.

+
+ + ms697019 + MFNETSOURCE_CACHE_STATE + MFNETSOURCE_CACHE_STATE +
+ + + No documentation. + + + ms697019 + MFNETSOURCE_CACHE_UNAVAILABLE + MFNETSOURCE_CACHE_UNAVAILABLE + + + + No documentation. + + + ms697019 + MFNETSOURCE_CACHE_ACTIVE_WRITING + MFNETSOURCE_CACHE_ACTIVE_WRITING + + + + No documentation. + + + ms697019 + MFNETSOURCE_CACHE_ACTIVE_COMPLETE + MFNETSOURCE_CACHE_ACTIVE_COMPLETE + + + +

Indicates the type of control protocol that is used in streaming or downloading.

+
+ + ms704031 + MFNETSOURCE_PROTOCOL_TYPE + MFNETSOURCE_PROTOCOL_TYPE +
+ + +

The protocol type has not yet been determined.

+
+ + ms704031 + MFNETSOURCE_UNDEFINED + MFNETSOURCE_UNDEFINED +
+ + +

The protocol type is HTTP. This includes HTTPv9, WMSP, and HTTP download.

+
+ + ms704031 + MFNETSOURCE_HTTP + MFNETSOURCE_HTTP +
+ + +

The protocol type is Real Time Streaming Protocol (RTSP).

+
+ + ms704031 + MFNETSOURCE_RTSP + MFNETSOURCE_RTSP +
+ + +

The content is read from a file. The file might be local or on a remote share.

+
+ + ms704031 + MFNETSOURCE_FILE + MFNETSOURCE_FILE +
+ + +

The protocol type is multicast.

Note??Requires Windows?7 or later.

+
+ + ms704031 + MFNETSOURCE_MULTICAST + MFNETSOURCE_MULTICAST +
+ + +

Defines statistics collected by the network source. The values in this enumeration define property identifiers (PIDs) for the MFNETSOURCE_STATISTICS property.

To retrieve statistics from the network source, call with the service identifier and the interface identifier IID_IPropertyStore. The retrieved reference is an reference. To get the value of a network statistic, construct a PROPERTYKEY with fmtid equal to MFNETSOURCE_STATISTICS and pid equal to a value from this enumeration. Then call IPropertyStore::GetValue with the property key to retrieve the value of the statistic as a .

In the descriptions that follow, the data type and value-type tag for the are listed in parentheses.

+
+ + ms697019 + MFNETSOURCE_STATISTICS_IDS + MFNETSOURCE_STATISTICS_IDS +
+ + + No documentation. + + + ms697019 + MFNETSOURCE_RECVPACKETS_ID + MFNETSOURCE_RECVPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_LOSTPACKETS_ID + MFNETSOURCE_LOSTPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RESENDSREQUESTED_ID + MFNETSOURCE_RESENDSREQUESTED_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RESENDSRECEIVED_ID + MFNETSOURCE_RESENDSRECEIVED_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RECOVEREDBYECCPACKETS_ID + MFNETSOURCE_RECOVEREDBYECCPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RECOVEREDBYRTXPACKETS_ID + MFNETSOURCE_RECOVEREDBYRTXPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_OUTPACKETS_ID + MFNETSOURCE_OUTPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RECVRATE_ID + MFNETSOURCE_RECVRATE_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_AVGBANDWIDTHBPS_ID + MFNETSOURCE_AVGBANDWIDTHBPS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_BYTESRECEIVED_ID + MFNETSOURCE_BYTESRECEIVED_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_PROTOCOL_ID + MFNETSOURCE_PROTOCOL_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_TRANSPORT_ID + MFNETSOURCE_TRANSPORT_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_CACHE_STATE_ID + MFNETSOURCE_CACHE_STATE_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_LINKBANDWIDTH_ID + MFNETSOURCE_LINKBANDWIDTH_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_CONTENTBITRATE_ID + MFNETSOURCE_CONTENTBITRATE_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_SPEEDFACTOR_ID + MFNETSOURCE_SPEEDFACTOR_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_BUFFERSIZE_ID + MFNETSOURCE_BUFFERSIZE_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_BUFFERPROGRESS_ID + MFNETSOURCE_BUFFERPROGRESS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_LASTBWSWITCHTS_ID + MFNETSOURCE_LASTBWSWITCHTS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_SEEKRANGESTART_ID + MFNETSOURCE_SEEKRANGESTART_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_SEEKRANGEEND_ID + MFNETSOURCE_SEEKRANGEEND_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_BUFFERINGCOUNT_ID + MFNETSOURCE_BUFFERINGCOUNT_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_INCORRECTLYSIGNEDPACKETS_ID + MFNETSOURCE_INCORRECTLYSIGNEDPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_SIGNEDSESSION_ID + MFNETSOURCE_SIGNEDSESSION_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_MAXBITRATE_ID + MFNETSOURCE_MAXBITRATE_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RECEPTION_QUALITY_ID + MFNETSOURCE_RECEPTION_QUALITY_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_RECOVEREDPACKETS_ID + MFNETSOURCE_RECOVEREDPACKETS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_VBR_ID + MFNETSOURCE_VBR_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_DOWNLOADPROGRESS_ID + MFNETSOURCE_DOWNLOADPROGRESS_ID + + + + No documentation. + + + ms697019 + MFNETSOURCE_UNPREDEFINEDPROTOCOLNAME_ID + MFNETSOURCE_UNPREDEFINEDPROTOCOLNAME_ID + + + +

Describes the type of transport used in streaming or downloading data (TCP or UDP).

+
+ + ms702233 + MFNETSOURCE_TRANSPORT_TYPE + MFNETSOURCE_TRANSPORT_TYPE +
+ + +

The data transport type is UDP.

+
+ + ms702233 + MFNETSOURCE_UDP + MFNETSOURCE_UDP +
+ + +

The data transport type is TCP.

+
+ + ms702233 + MFNETSOURCE_TCP + MFNETSOURCE_TCP +
+ + +

Specifies whether color data includes headroom and toeroom. Headroom allows for values beyond 1.0 white ("whiter than white"), and toeroom allows for values below reference 0.0 black ("blacker than black").

+
+ +

This enumeration is used with the attribute.

For more information about these values, see the remarks for the enumeration, which is the DirectX Video Acceleration (DXVA) equivalent of this enumeration.

+
+ + ms705659 + MFNominalRange + MFNominalRange +
+ + +

Unknown nominal range.

+
+ + ms705659 + MFNominalRange_Unknown + MFNominalRange_Unknown +
+ + +

Equivalent to .

+
+ + ms705659 + MFNominalRange_Normal + MFNominalRange_Normal +
+ + +

Equivalent to .

+
+ + ms705659 + MFNominalRange_Wide + MFNominalRange_Wide +
+ + +

The normalized range [0...1] maps to [0...255] for 8-bit samples or [0...1023] for 10-bit samples.

+
+ + ms705659 + MFNominalRange_0_255 + MFNominalRange_0_255 +
+ + +

The normalized range [0...1] maps to [16...235] for 8-bit samples or [64...940] for 10-bit samples.

+
+ + ms705659 + MFNominalRange_16_235 + MFNominalRange_16_235 +
+ + +

The normalized range [0..1] maps to [48...208] for 8-bit samples or [64...940] for 10-bit samples.

+
+ + ms705659 + MFNominalRange_48_208 + MFNominalRange_48_208 +
+ + +

The normalized range [0..1] maps to [64...127] for 8-bit samples or [256...508] for 10-bit samples. This range is used in the xRGB color space.

Note??Requires Windows?7 or later.

+
+ + ms705659 + MFNominalRange_64_127 + MFNominalRange_64_127 +
+ + + No documentation. + + + ms705659 + MFNominalRange_Last + MFNominalRange_Last + + + + No documentation. + + + ms705659 + MFNominalRange_ForceDWORD + MFNominalRange_ForceDWORD + + + +

Defines the object types that are created by the source resolver.

+
+ + ms704771 + MF_OBJECT_TYPE + MF_OBJECT_TYPE +
+ + +

Media source. You can query the object for the interface.

+
+ + ms704771 + MF_OBJECT_MEDIASOURCE + MF_OBJECT_MEDIASOURCE +
+ + +

Byte stream. You can query the object for the interface.

+
+ + ms704771 + MF_OBJECT_BYTESTREAM + MF_OBJECT_BYTESTREAM +
+ + +

Invalid type.

+
+ + ms704771 + MF_OBJECT_INVALID + MF_OBJECT_INVALID +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Defines event types for the interface.

+
+ +

For each event type, the callback receives a reference to a data structure. The first part of the data structure is always an structure. The following table lists the data structure for each event type.

In your implementation of OnMediaPlayerEvent, you must cast the pEventHeader parameter to the correct structure type. A set of macros is defined for this purpose. These macros check the value of the event type and return null if there is a mismatch; otherwise they return a reference to the correct structure type.

Event type

Event structure

Pointer cast macro

MFP_GET_PLAY_EVENT

MFP_GET_PAUSE_EVENT

MFP_GET_STOP_EVENT

MFP_GET_POSITION_SET_EVENT

MFP_GET_RATE_SET_EVENT

MFP_GET_MEDIAITEM_CREATED_EVENT

MFP_GET_MEDIAITEM_SET_EVENT

MFP_GET_FRAME_STEP_EVENT

MFP_GET_MEDIAITEM_CLEARED_EVENT

MFP_GET_MF_EVENT

MFP_GET_ERROR_EVENT

MFP_GET_PLAYBACK_ENDED_EVENT

MFP_GET_ACQUIRE_USER_CREDENTIAL_EVENT

?

+
+ + dd375532 + MFP_EVENT_TYPE + MFP_EVENT_TYPE +
+ + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_PLAY + MFP_EVENT_TYPE_PLAY + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_PAUSE + MFP_EVENT_TYPE_PAUSE + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_STOP + MFP_EVENT_TYPE_STOP + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_POSITION_SET + MFP_EVENT_TYPE_POSITION_SET + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_RATE_SET + MFP_EVENT_TYPE_RATE_SET + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_MEDIAITEM_CREATED + MFP_EVENT_TYPE_MEDIAITEM_CREATED + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_MEDIAITEM_SET + MFP_EVENT_TYPE_MEDIAITEM_SET + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_FRAME_STEP + MFP_EVENT_TYPE_FRAME_STEP + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_MEDIAITEM_CLEARED + MFP_EVENT_TYPE_MEDIAITEM_CLEARED + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_MF + MFP_EVENT_TYPE_MF + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_ERROR + MFP_EVENT_TYPE_ERROR + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_PLAYBACK_ENDED + MFP_EVENT_TYPE_PLAYBACK_ENDED + + + + No documentation. + + + dd375532 + MFP_EVENT_TYPE_ACQUIRE_USER_CREDENTIAL + MFP_EVENT_TYPE_ACQUIRE_USER_CREDENTIAL + + + +

Specifies the object type for the interface.

+
+ + dd375763 + MF_Plugin_Type + MF_Plugin_Type +
+ + + No documentation. + + + dd375763 + MF_Plugin_Type_MFT + MF_Plugin_Type_MFT + + + + No documentation. + + + dd375763 + MF_Plugin_Type_MediaSource + MF_Plugin_Type_MediaSource + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Specifies the current playback state.

+
+ + dd375562 + MFP_MEDIAPLAYER_STATE + MFP_MEDIAPLAYER_STATE +
+ + + No documentation. + + + dd375562 + MFP_MEDIAPLAYER_STATE_EMPTY + MFP_MEDIAPLAYER_STATE_EMPTY + + + + No documentation. + + + dd375562 + MFP_MEDIAPLAYER_STATE_STOPPED + MFP_MEDIAPLAYER_STATE_STOPPED + + + + No documentation. + + + dd375562 + MFP_MEDIAPLAYER_STATE_PLAYING + MFP_MEDIAPLAYER_STATE_PLAYING + + + + No documentation. + + + dd375562 + MFP_MEDIAPLAYER_STATE_PAUSED + MFP_MEDIAPLAYER_STATE_PAUSED + + + + No documentation. + + + dd375562 + MFP_MEDIAPLAYER_STATE_SHUTDOWN + MFP_MEDIAPLAYER_STATE_SHUTDOWN + + + +

Contains flags that define the behavior of the function.

+
+ + ms697495 + MFPMPSESSION_CREATION_FLAGS + MFPMPSESSION_CREATION_FLAGS +
+ + + No documentation. + + + ms697495 + MFPMPSESSION_UNPROTECTED_PROCESS + MFPMPSESSION_UNPROTECTED_PROCESS + + + + None. + + + None + None + + + +

Defines actions that can be performed on a stream.

+
+ + ms698977 + MFPOLICYMANAGER_ACTION + MFPOLICYMANAGER_ACTION +
+ + +

No action.

+
+ + ms698977 + PEACTION_NO + PEACTION_NO +
+ + +

Play the stream.

+
+ + ms698977 + PEACTION_PLAY + PEACTION_PLAY +
+ + +

Copy the stream.

+
+ + ms698977 + PEACTION_COPY + PEACTION_COPY +
+ + +

Export the stream to another format.

+
+ + ms698977 + PEACTION_EXPORT + PEACTION_EXPORT +
+ + +

Extract the data from the stream and pass it to the application. For example, acoustic echo cancellation requires this action.

+
+ + ms698977 + PEACTION_EXTRACT + PEACTION_EXTRACT +
+ + +

Reserved.

+
+ + ms698977 + PEACTION_RESERVED1 + PEACTION_RESERVED1 +
+ + +

Reserved.

+
+ + ms698977 + PEACTION_RESERVED2 + PEACTION_RESERVED2 +
+ + +

Reserved.

+
+ + ms698977 + PEACTION_RESERVED3 + PEACTION_RESERVED3 +
+ + +

Last member of the enumeration.

+
+ + ms698977 + PEACTION_LAST + PEACTION_LAST +
+ + +

Contains flags for the method.

+
+ +

If the decoder sets the flag, the quality manager tries to reduce latency through the media source and the media sink. For example, it might request the Enhanced Video Renderer (EVR) to drop frames. During this period, the quality manager stops calling the decoder's method, until samples are no longer arriving late at the sink. At that point, the quality manager resumes calling NotifyQualityEvent on the decoder.

+
+ + dd743824 + MF_QUALITY_ADVISE_FLAGS + MF_QUALITY_ADVISE_FLAGS +
+ + + No documentation. + + + dd743824 + MF_QUALITY_CANNOT_KEEP_UP + MF_QUALITY_CANNOT_KEEP_UP + + + + None. + + + None + None + + + +

Specifies how aggressively a pipeline component should drop samples.

+
+ +

In drop mode, a component drops samples, more or less aggressively depending on the level of the drop mode. The specific algorithm used depends on the component. Mode 1 is the least aggressive mode, and mode 5 is the most aggressive. A component is not required to implement all five levels.

For example, suppose an encoded video stream has three B-frames between each pair of P-frames. A decoder might implement the following drop modes:

  • Mode 1: Drop one out of every three B frames.

  • Mode 2: Drop one out of every two B frames.

  • Mode 3: Drop all delta frames.

  • Modes 4 and 5: Unsupported.

The enhanced video renderer (EVR) can drop video frames before sending them to the EVR mixer.

+
+ + ms704659 + MF_QUALITY_DROP_MODE + MF_QUALITY_DROP_MODE +
+ + +

Normal processing of samples. Drop mode is disabled.

+
+ + ms704659 + MF_DROP_MODE_NONE + MF_DROP_MODE_NONE +
+ + +

First drop mode (least aggressive).

+
+ + ms704659 + MF_DROP_MODE_1 + MF_DROP_MODE_1 +
+ + +

Second drop mode.

+
+ + ms704659 + MF_DROP_MODE_2 + MF_DROP_MODE_2 +
+ + +

Third drop mode.

+
+ + ms704659 + MF_DROP_MODE_3 + MF_DROP_MODE_3 +
+ + +

Fourth drop mode.

+
+ + ms704659 + MF_DROP_MODE_4 + MF_DROP_MODE_4 +
+ + +

Fifth drop mode (most aggressive, if it is supported; see Remarks).

+
+ + ms704659 + MF_DROP_MODE_5 + MF_DROP_MODE_5 +
+ + +

Maximum number of drop modes. This value is not a valid flag.

+
+ + ms704659 + MF_NUM_DROP_MODES + MF_NUM_DROP_MODES +
+ + +

Specifies the quality level for a pipeline component. The quality level determines how the component consumes or produces samples.

+
+ +

Each successive quality level decreases the amount of processing that is needed, while also reducing the resulting quality of the audio or video. The specific algorithm used to reduce quality depends on the component. Mode 1 is the least aggressive mode, and mode 5 is the most aggressive. A component is not required to implement all five levels. Also, the same quality level might not be comparable between two different components.

Video decoders can often reduce quality by leaving out certain post-processing steps. The enhanced video renderer (EVR) can sometimes reduce quality by switching to a different deinterlacing mode.

+
+ + ms698949 + MF_QUALITY_LEVEL + MF_QUALITY_LEVEL +
+ + +

Normal quality.

+
+ + ms698949 + MF_QUALITY_NORMAL + MF_QUALITY_NORMAL +
+ + +

One level below normal quality.

+
+ + ms698949 + MF_QUALITY_NORMAL_MINUS_1 + MF_QUALITY_NORMAL_MINUS_1 +
+ + +

Two levels below normal quality.

+
+ + ms698949 + MF_QUALITY_NORMAL_MINUS_2 + MF_QUALITY_NORMAL_MINUS_2 +
+ + +

Three levels below normal quality.

+
+ + ms698949 + MF_QUALITY_NORMAL_MINUS_3 + MF_QUALITY_NORMAL_MINUS_3 +
+ + +

Four levels below normal quality.

+
+ + ms698949 + MF_QUALITY_NORMAL_MINUS_4 + MF_QUALITY_NORMAL_MINUS_4 +
+ + +

Five levels below normal quality.

+
+ + ms698949 + MF_QUALITY_NORMAL_MINUS_5 + MF_QUALITY_NORMAL_MINUS_5 +
+ + +

Maximum number of quality levels. This value is not a valid flag.

+
+ + ms698949 + MF_NUM_QUALITY_LEVELS + MF_NUM_QUALITY_LEVELS +
+ + +

Specifies the direction of playback (forward or reverse).

+
+ + ms696225 + MFRATE_DIRECTION + MFRATE_DIRECTION +
+ + +

Forward playback.

+
+ + ms696225 + MFRATE_FORWARD + MFRATE_FORWARD +
+ + +

Reverse playback.

+
+ + ms696225 + MFRATE_REVERSE + MFRATE_REVERSE +
+ + +

Defines the version number for sample protection.

+
+ + ms697061 + SAMPLE_PROTECTION_VERSION + SAMPLE_PROTECTION_VERSION +
+ + +

No sample protection.

+
+ + ms697061 + SAMPLE_PROTECTION_VERSION_NO + SAMPLE_PROTECTION_VERSION_NO +
+ + +

Version 1.

+
+ + ms697061 + SAMPLE_PROTECTION_VERSION_BASIC_LOKI + SAMPLE_PROTECTION_VERSION_BASIC_LOKI +
+ + +

Version 2.

+
+ + ms697061 + SAMPLE_PROTECTION_VERSION_SCATTER + SAMPLE_PROTECTION_VERSION_SCATTER +
+ + +

Version 3.

+
+ + ms697061 + SAMPLE_PROTECTION_VERSION_RC4 + SAMPLE_PROTECTION_VERSION_RC4 +
+ + +

Contains flags for adding a topology to the sequencer source, or updating a topology already in the queue.

+
+ + ms703884 + MFSequencerTopologyFlags + MFSequencerTopologyFlags +
+ + +

This topology is the last topology in the sequence.

+
+ + ms703884 + SequencerTopologyFlags_Last + SequencerTopologyFlags_Last +
+ + +

Retrieves an interface from the enhanced video renderer (EVR), or from the video mixer or video presenter.

+
+ +

This method can be called only from inside the method. At any other time, the method returns .

The presenter can use this method to query the EVR and the mixer. The mixer can use it to query the EVR and the presenter. Which objects are queried depends on the caller and the service , as shown in the following table.

CallerService Objects queried
PresenterMR_VIDEO_RENDER_SERVICEEVR
PresenterMR_VIDEO_MIXER_SERVICEMixer
MixerMR_VIDEO_RENDER_SERVICEPresenter and EVR

?

The following interfaces are available from the EVR:

  • IMediaEventSink. This interface is documented in the DirectShow SDK documentation.

  • interface. This interface is available if the EVR has access to a clock (reference clock in DirectShow or presentation clock in Media Foundation). This interface might not be available. Presenter and mixers must be able to process data without a clock. If the interface is available, you can also get these related interfaces:

    • (Media Foundation EVR only)

The following interfaces are available from the mixer:

+
+ + bb970504 + MF_SERVICE_LOOKUP_TYPE + MF_SERVICE_LOOKUP_TYPE +
+ + +

Specifies the scope of the search. Currently this parameter is ignored. Use the value .

+
+ + bb970504 + MF_SERVICE_LOOKUP_UPSTREAM + MF_SERVICE_LOOKUP_UPSTREAM +
+ + +

Reserved, must be zero.

+
+ + bb970504 + MF_SERVICE_LOOKUP_UPSTREAM_DIRECT + MF_SERVICE_LOOKUP_UPSTREAM_DIRECT +
+ + +

Service of the requested interface.

+
+ + bb970504 + MF_SERVICE_LOOKUP_DOWNSTREAM + MF_SERVICE_LOOKUP_DOWNSTREAM +
+ + +

Interface identifier of the requested interface.

+
+ + bb970504 + MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT + MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT +
+ + +

Array of interface references. If the method succeeds, each member of the array contains either a valid interface reference or null. The caller must release the interface references when the EVR calls (or earlier). If the method fails, every member of the array is null.

+
+ + bb970504 + MF_SERVICE_LOOKUP_ALL + MF_SERVICE_LOOKUP_ALL +
+ + +

Pointer to a value that specifies the size of the ppvObjects array. The value must be at least 1. In the current implementation, there is no reason to specify an array size larger than one element. The value is not changed on output.

+
+ + bb970504 + MF_SERVICE_LOOKUP_GLOBAL + MF_SERVICE_LOOKUP_GLOBAL +
+ + +

Defines flags for the method.

+
+ + ms701845 + MFSESSION_GETFULLTOPOLOGY_FLAGS + MFSESSION_GETFULLTOPOLOGY_FLAGS +
+ + + No documentation. + + + ms701845 + MFSESSION_GETFULLTOPOLOGY_CURRENT + MFSESSION_GETFULLTOPOLOGY_CURRENT + + + + None. + + + None + None + + + +

Defines the behavior of the method.

+
+ +

These flags are optional, and are not mutually exclusive. If no flags are set, the Media Session resolves the topology and then adds it to the queue of pending presentations.

+
+ + ms696169 + MFSESSION_SETTOPOLOGY_FLAGS + MFSESSION_SETTOPOLOGY_FLAGS +
+ + + No documentation. + + + ms696169 + MFSESSION_SETTOPOLOGY_IMMEDIATE + MFSESSION_SETTOPOLOGY_IMMEDIATE + + + + No documentation. + + + ms696169 + MFSESSION_SETTOPOLOGY_NORESOLUTION + MFSESSION_SETTOPOLOGY_NORESOLUTION + + + + No documentation. + + + ms696169 + MFSESSION_SETTOPOLOGY_CLEAR_CURRENT + MFSESSION_SETTOPOLOGY_CLEAR_CURRENT + + + + None. + + + None + None + + + +

Describes the current status of a call to the method.

+
+ + ms701630 + MFSHUTDOWN_STATUS + MFSHUTDOWN_STATUS +
+ + + No documentation. + + + ms701630 + MFSHUTDOWN_INITIATED + MFSHUTDOWN_INITIATED + + + + No documentation. + + + ms701630 + MFSHUTDOWN_COMPLETED + MFSHUTDOWN_COMPLETED + + + +

Specifies how the ASF file sink should apply Windows Media DRM.

+
+ + ms703949 + MFSINK_WMDRMACTION + MFSINK_WMDRMACTION +
+ + +

Undefined action.

+
+ + ms703949 + MFSINK_WMDRMACTION_UNDEFINED + MFSINK_WMDRMACTION_UNDEFINED +
+ + +

Encode the content using Windows Media DRM. Use this flag if the source content does not have DRM protection.

+
+ + ms703949 + MFSINK_WMDRMACTION_ENCODE + MFSINK_WMDRMACTION_ENCODE +
+ + +

Transcode the content using Windows Media DRM. Use this flag if the source content has Windows Media DRM protection and you want to change the encoding parameters but not the DRM protection.

+
+ + ms703949 + MFSINK_WMDRMACTION_TRANSCODE + MFSINK_WMDRMACTION_TRANSCODE +
+ + +

Transcrypt the content. Use this flag if the source content has DRM protection and you want to change the DRM protection; for example, if you want to convert from Windows Media DRM version 1 to Windows Media DRM version 7 or later.

+
+ + ms703949 + MFSINK_WMDRMACTION_TRANSCRYPT + MFSINK_WMDRMACTION_TRANSCRYPT +
+ + +

Reserved. Do not use.

+
+ + ms703949 + MFSINK_WMDRMACTION_LAST + MFSINK_WMDRMACTION_LAST +
+ + + No documentation. + + + __MIDL___MIDL_itf_mfreadwrite_0000_0003_0001 + __MIDL___MIDL_itf_mfreadwrite_0000_0003_0001 + + + + No documentation. + + + MF_SINK_WRITER_INVALID_STREAM_INDEX + MF_SINK_WRITER_INVALID_STREAM_INDEX + + + + No documentation. + + + MF_SINK_WRITER_ALL_STREAMS + MF_SINK_WRITER_ALL_STREAMS + + + + No documentation. + + + MF_SINK_WRITER_MEDIASINK + MF_SINK_WRITER_MEDIASINK + + + +

Contains flags for the method.

+
+ + dd375771 + MF_SOURCE_READER_CONTROL_FLAG + MF_SOURCE_READER_CONTROL_FLAG +
+ + + No documentation. + + + dd375771 + MF_SOURCE_READER_CONTROLF_DRAIN + MF_SOURCE_READER_CONTROLF_DRAIN + + + + None. + + + None + None + + + +

Contains flags that indicate the status of the method.

+
+ + dd375773 + MF_SOURCE_READER_FLAG + MF_SOURCE_READER_FLAG +
+ + + No documentation. + + + dd375773 + MF_SOURCE_READERF_ERROR + MF_SOURCE_READERF_ERROR + + + + No documentation. + + + dd375773 + MF_SOURCE_READERF_ENDOFSTREAM + MF_SOURCE_READERF_ENDOFSTREAM + + + + No documentation. + + + dd375773 + MF_SOURCE_READERF_NEWSTREAM + MF_SOURCE_READERF_NEWSTREAM + + + + No documentation. + + + dd375773 + MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED + MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED + + + + No documentation. + + + dd375773 + MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED + MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED + + + + No documentation. + + + dd375773 + MF_SOURCE_READERF_STREAMTICK + MF_SOURCE_READERF_STREAMTICK + + + + None. + + + None + None + + + + No documentation. + + + ee663274 + __MIDL___MIDL_itf_mfreadwrite_0000_0001_0001 + __MIDL___MIDL_itf_mfreadwrite_0000_0001_0001 + + + + No documentation. + + + ee663274 + MF_SOURCE_READER_INVALID_STREAM_INDEX + MF_SOURCE_READER_INVALID_STREAM_INDEX + + + + No documentation. + + + ee663274 + MF_SOURCE_READER_ALL_STREAMS + MF_SOURCE_READER_ALL_STREAMS + + + + No documentation. + + + ee663274 + MF_SOURCE_READER_ANY_STREAM + MF_SOURCE_READER_ANY_STREAM + + + + No documentation. + + + ee663274 + MF_SOURCE_READER_FIRST_AUDIO_STREAM + MF_SOURCE_READER_FIRST_AUDIO_STREAM + + + + No documentation. + + + ee663274 + MF_SOURCE_READER_FIRST_VIDEO_STREAM + MF_SOURCE_READER_FIRST_VIDEO_STREAM + + + + No documentation. + + + ee663274 + MF_SOURCE_READER_MEDIASOURCE + MF_SOURCE_READER_MEDIASOURCE + + + + No documentation. + + + __MIDL___MIDL_itf_mfidl_0000_0001_0001 + __MIDL___MIDL_itf_mfidl_0000_0001_0001 + + + + No documentation. + + + MF_RESOLUTION_MEDIASOURCE + MF_RESOLUTION_MEDIASOURCE + + + + No documentation. + + + MF_RESOLUTION_BYTESTREAM + MF_RESOLUTION_BYTESTREAM + + + + No documentation. + + + MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE + MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE + + + + No documentation. + + + MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL + MF_RESOLUTION_KEEP_BYTE_STREAM_ALIVE_ON_FAIL + + + + No documentation. + + + MF_RESOLUTION_READ + MF_RESOLUTION_READ + + + + No documentation. + + + MF_RESOLUTION_WRITE + MF_RESOLUTION_WRITE + + + + None. + + + None + None + + + +

Contains values that specify common video formats.

+
+ + aa473799 + MFStandardVideoFormat + MFStandardVideoFormat +
+ + +

Reserved; do not use.

+
+ + aa473799 + MFStdVideoFormat_reserved + MFStdVideoFormat_reserved +
+ + +

NTSC television (720 x 480i).

+
+ + aa473799 + MFStdVideoFormat_NTSC + MFStdVideoFormat_NTSC +
+ + +

PAL television (720 x 576i).

+
+ + aa473799 + MFStdVideoFormat_PAL + MFStdVideoFormat_PAL +
+ + +

DVD, NTSC standard (720 x 480).

+
+ + aa473799 + MFStdVideoFormat_DVD_NTSC + MFStdVideoFormat_DVD_NTSC +
+ + +

DVD, PAL standard (720 x 576).

+
+ + aa473799 + MFStdVideoFormat_DVD_PAL + MFStdVideoFormat_DVD_PAL +
+ + +

DV video, PAL standard.

+
+ + aa473799 + MFStdVideoFormat_DV_PAL + MFStdVideoFormat_DV_PAL +
+ + +

DV video, NTSC standard.

+
+ + aa473799 + MFStdVideoFormat_DV_NTSC + MFStdVideoFormat_DV_NTSC +
+ + +

ATSC digital television, SD (480i).

+
+ + aa473799 + MFStdVideoFormat_ATSC_SD480i + MFStdVideoFormat_ATSC_SD480i +
+ + +

ATSC digital television, HD interlaced (1080i)

+
+ + aa473799 + MFStdVideoFormat_ATSC_HD1080i + MFStdVideoFormat_ATSC_HD1080i +
+ + +

ATSC digital television, HD progressive (720p)

+
+ + aa473799 + MFStdVideoFormat_ATSC_HD720p + MFStdVideoFormat_ATSC_HD720p +
+ + +

Defines stream marker information for the method. The PlaceMarker method places a marker on the stream between samples. The enumeration defines the marker type and the type of information associated with the marker.

+
+ +

If the Streaming Audio Renderer receives an marker, it inserts silence to cover the gap in the data.

+
+ + ms703837 + MFSTREAMSINK_MARKER_TYPE + MFSTREAMSINK_MARKER_TYPE +
+ + + No documentation. + + + ms703837 + MFSTREAMSINK_MARKER_DEFAULT + MFSTREAMSINK_MARKER_DEFAULT + + + + No documentation. + + + ms703837 + MFSTREAMSINK_MARKER_ENDOFSEGMENT + MFSTREAMSINK_MARKER_ENDOFSEGMENT + + + + No documentation. + + + ms703837 + MFSTREAMSINK_MARKER_TICK + MFSTREAMSINK_MARKER_TICK + + + + No documentation. + + + ms703837 + MFSTREAMSINK_MARKER_EVENT + MFSTREAMSINK_MARKER_EVENT + + + +

Contains flags for the method.

+
+ + ms703005 + MFTIMER_FLAGS + MFTIMER_FLAGS +
+ + + No documentation. + + + ms703005 + MFTIMER_RELATIVE + MFTIMER_RELATIVE + + + + None. + + + None + None + + + +

Defines messages for a Media Foundation transform (MFT). To send a message to an MFT, call .

+
+ +

Some messages require specific actions from the MFT. These events have "MESSAGE" in the message name. Other messages are informational; they notify the MFT of some action by the client, and do not require any particular response from the MFT. These messages have "NOTIFY" in the messages name. Except where noted, an MFT should not rely on the client sending notification messages.

+
+ + ms697223 + MFT_MESSAGE_TYPE + MFT_MESSAGE_TYPE +
+ + + No documentation. + + + ms697223 + MFT_MESSAGE_COMMAND_FLUSH + MFT_MESSAGE_COMMAND_FLUSH + + + + No documentation. + + + ms697223 + MFT_MESSAGE_COMMAND_DRAIN + MFT_MESSAGE_COMMAND_DRAIN + + + + No documentation. + + + ms697223 + MFT_MESSAGE_SET_D3D_MANAGER + MFT_MESSAGE_SET_D3D_MANAGER + + + + No documentation. + + + ms697223 + MFT_MESSAGE_DROP_SAMPLES + MFT_MESSAGE_DROP_SAMPLES + + + + No documentation. + + + ms697223 + MFT_MESSAGE_NOTIFY_BEGIN_STREAMING + MFT_MESSAGE_NOTIFY_BEGIN_STREAMING + + + + No documentation. + + + ms697223 + MFT_MESSAGE_NOTIFY_END_STREAMING + MFT_MESSAGE_NOTIFY_END_STREAMING + + + + No documentation. + + + ms697223 + MFT_MESSAGE_NOTIFY_END_OF_STREAM + MFT_MESSAGE_NOTIFY_END_OF_STREAM + + + + No documentation. + + + ms697223 + MFT_MESSAGE_NOTIFY_START_OF_STREAM + MFT_MESSAGE_NOTIFY_START_OF_STREAM + + + + No documentation. + + + ms697223 + MFT_MESSAGE_COMMAND_MARKER + MFT_MESSAGE_COMMAND_MARKER + + + +

Specifies whether the topology loader enables Microsoft DirectX Video Acceleration (DXVA) in the topology.

+
+ +

The value of this attribute is an enumeration constant. The default value is .

This attribute controls which MFTs receive a reference to the Direct3D device manager. To enable full video acceleration, set the value to . The value is defined for backward compatibility; it matches the behavior of all earlier versions of Microsoft Media Foundation.

The constant for this attribute is exported from mfuuid.lib.

+
+ + dd375776 + MFTOPOLOGY_DXVA_MODE + MFTOPOLOGY_DXVA_MODE +
+ + + No documentation. + + + dd375776 + MFTOPOLOGY_DXVA_DEFAULT + MFTOPOLOGY_DXVA_DEFAULT + + + + No documentation. + + + dd375776 + MFTOPOLOGY_DXVA_NONE + MFTOPOLOGY_DXVA_NONE + + + + No documentation. + + + dd375776 + MFTOPOLOGY_DXVA_FULL + MFTOPOLOGY_DXVA_FULL + + + +

Specifies whether to load hardware-based Microsoft Media Foundation transforms (MFTs) in the topology.

+
+ +

This attribute is optional. Set the attribute before resolving the topology.

ValueDescription

The Topology Loader will load hardware-based MFTs, such as hardware decoders, when available.

The Topology Loader automatically falls back to software decoding if no hardware decoder is found, or if a hardware decoder fails to connect for some reason.

The Topology Loader will load only software MFTs, including software decoders.

?

The default value is , for compatibility with existing applications. The recommended value is .

If the Topology Loader inserts a hardware MFT into the topology, it sets the attribute on the topology node. To check whether a hardware MFT is present, enumerate the nodes in the resolved topology and check whether this attribute is present.

The constant for this attribute is exported from mfuuid.lib.

+
+ + dd375780 + MFTOPOLOGY_HARDWARE_MODE + MFTOPOLOGY_HARDWARE_MODE +
+ + + No documentation. + + + dd375780 + MFTOPOLOGY_HWMODE_SOFTWARE_ONLY + MFTOPOLOGY_HWMODE_SOFTWARE_ONLY + + + + No documentation. + + + dd375780 + MFTOPOLOGY_HWMODE_USE_HARDWARE + MFTOPOLOGY_HWMODE_USE_HARDWARE + + + +

Defines status flags for the attribute.

+
+ + ms704637 + MF_TOPOLOGY_RESOLUTION_STATUS_FLAGS + MF_TOPOLOGY_RESOLUTION_STATUS_FLAGS +
+ + + No documentation. + + + ms704637 + MF_TOPOLOGY_RESOLUTION_SUCCEEDED + MF_TOPOLOGY_RESOLUTION_SUCCEEDED + + + + No documentation. + + + ms704637 + MF_OPTIONAL_NODE_REJECTED_MEDIA_TYPE + MF_OPTIONAL_NODE_REJECTED_MEDIA_TYPE + + + + No documentation. + + + ms704637 + MF_OPTIONAL_NODE_REJECTED_PROTECTED_PROCESS + MF_OPTIONAL_NODE_REJECTED_PROTECTED_PROCESS + + + + None. + + + None + None + + + +

Specifies the status of a topology during playback.

+
+ +

This enumeration is used with the event. The event always has an attribute whose value is a member of this enumeration.

For a single topology, the Media Session sends these status flags in numerical order, starting with . However, there is no guarantee about the ordering of the events across two different topologies. For example, you might get for a topology before you get for the previous topology.

+
+ + aa370812 + MF_TOPOSTATUS + MF_TOPOSTATUS +
+ + +

This value is not used.

+
+ + aa370812 + MF_TOPOSTATUS_INVALID + MF_TOPOSTATUS_INVALID +
+ + +

The topology is ready to start. After this status flag is received, you can use the Media Session's method to query the topology for services, such as rate control.

+
+ + aa370812 + MF_TOPOSTATUS_READY + MF_TOPOSTATUS_READY +
+ + +

The Media Session has started to read data from the media sources in the topology.

+
+ + aa370812 + MF_TOPOSTATUS_STARTED_SOURCE + MF_TOPOSTATUS_STARTED_SOURCE +
+ + +

The Media Session modified the topology, because the format of a stream changed.

+
+ + aa370812 + MF_TOPOSTATUS_DYNAMIC_CHANGED + MF_TOPOSTATUS_DYNAMIC_CHANGED +
+ + +

The media sinks have switched from the previous topology to this topology. This status value is not sent for the first topology that is played. For the first topology, the event indicates that the media sinks have started receiving data.

+
+ + aa370812 + MF_TOPOSTATUS_SINK_SWITCHED + MF_TOPOSTATUS_SINK_SWITCHED +
+ + +

Playback of this topology is complete. The Media Session might still use the topology internally. The Media Session does not completely release the topology until it sends the next status event or the event.

+
+ + aa370812 + MF_TOPOSTATUS_ENDED + MF_TOPOSTATUS_ENDED +
+ + +

Defines the type of a topology node.

+
+ + ms698973 + MF_TOPOLOGY_TYPE + MF_TOPOLOGY_TYPE +
+ + +

Output node. Represents a media sink in the topology.

+
+ + ms698973 + MF_TOPOLOGY_OUTPUT_NODE + MF_TOPOLOGY_OUTPUT_NODE +
+ + +

Source node. Represents a media stream in the topology.

+
+ + ms698973 + MF_TOPOLOGY_SOURCESTREAM_NODE + MF_TOPOLOGY_SOURCESTREAM_NODE +
+ + +

Transform node. Represents a Media Foundation Transform (MFT) in the topology.

+
+ + ms698973 + MF_TOPOLOGY_TRANSFORM_NODE + MF_TOPOLOGY_TRANSFORM_NODE +
+ + +

Tee node. A tee node does not hold a reference to an object. Instead, it represents a fork in the stream. A tee node has one input and multiple outputs, and samples from the upstream node are delivered to all of the downstream nodes.

+
+ + ms698973 + MF_TOPOLOGY_TEE_NODE + MF_TOPOLOGY_TEE_NODE +
+ + +

Reserved.

+
+ + ms698973 + MF_TOPOLOGY_MAX + MF_TOPOLOGY_MAX +
+ + +

Defines at what times a transform in a topology is drained.

+
+ + aa370822 + MF_TOPONODE_DRAIN_MODE + MF_TOPONODE_DRAIN_MODE +
+ + +

The transform is drained when the end of a stream is reached. It is not drained when markout is reached at the end of a segment.

+
+ + aa370822 + MF_TOPONODE_DRAIN_DEFAULT + MF_TOPONODE_DRAIN_DEFAULT +
+ + +

The transform is drained whenever a topology ends.

+
+ + aa370822 + MF_TOPONODE_DRAIN_ALWAYS + MF_TOPONODE_DRAIN_ALWAYS +
+ + +

The transform is never drained.

+
+ + aa370822 + MF_TOPONODE_DRAIN_NEVER + MF_TOPONODE_DRAIN_NEVER +
+ + +

Defines when a transform in a topology is flushed.

+
+ + ms704760 + MF_TOPONODE_FLUSH_MODE + MF_TOPONODE_FLUSH_MODE +
+ + +

The transform is flushed whenever the stream changes, including seeks and new segments.

+
+ + ms704760 + MF_TOPONODE_FLUSH_ALWAYS + MF_TOPONODE_FLUSH_ALWAYS +
+ + +

The transform is flushed when seeking is performed on the stream.

+
+ + ms704760 + MF_TOPONODE_FLUSH_SEEK + MF_TOPONODE_FLUSH_SEEK +
+ + +

The transform is never flushed during streaming. It is flushed only when the object is released.

+
+ + ms704760 + MF_TOPONODE_FLUSH_NEVER + MF_TOPONODE_FLUSH_NEVER +
+ + +

Defines the profile flags that are set in the attribute.

These flags are checked by during topology building. Based on these flags, adjusts the transcode profile by modifying the configuration settings for the streams according to the input requirements of the encoder used in the topology.

For more information about the stream settings that an application can specify, see Using the Transcode API.

+
+ +

If the flag is specified, the following changes are made for the video stream:

  • If the frame rate of the media source specified in the pSrc parameter of and the frame rate specified by the application in the attribute differ by less than 1/1000, the profile uses the media source frame rate. This is because the pipeline considers the difference to be negligible.
  • If the application does not specify an interlaced mode by setting the attribute, the profile is changed to use progressive frames.

The flag must be accompanied with the required audio and video stream attributes provided by the application. For the audio stream, the required attributes are as follows:

For the video stream, the required attributes are as follows:

If these attributes are not set, creates the topology but Media Session fails to generate the encoded file. The failure code depends on the MFT node in the topology. For example, if the application does not set the frame size, the WMV encoder fails to encode the content and application gets the error code through the Media Session.

Use the flag when you want to transcode the file by using the input stream attributes. The input source stream attributes are copied to the output media type before the MFT node is inserted in the topology. If you set additional stream attributes, this flag does not overwrite the set values. Only the missing attributes are filled with the input source's attribute values. This flag is useful in remux scenario where you want to generate the output file in the same format as the input source. If you want to perform format conversion, make sure you set the attribute for the stream to specify the encoder that topology builder must use. The transform node is added in the topology unless is set. In this case, and the content is not encoded. Instead, if permitted by the container, the content is embedded in the specified container.

For example, assume that your input source is an MP3 file. You set the container to be MFTranscodeContainerType_ASF, you do not set any stream attributes, and you set the flag. In this case, the generated output file is an ASF file (.wma) containing MP3 media data. Note that if you use this flag, certain input stream attributes and the container type might not be compatible.

+
+ + dd388918 + MF_TRANSCODE_ADJUST_PROFILE_FLAGS + MF_TRANSCODE_ADJUST_PROFILE_FLAGS +
+ + + No documentation. + + + dd388918 + MF_TRANSCODE_ADJUST_PROFILE_DEFAULT + MF_TRANSCODE_ADJUST_PROFILE_DEFAULT + + + + No documentation. + + + dd388918 + MF_TRANSCODE_ADJUST_PROFILE_USE_SOURCE_ATTRIBUTES + MF_TRANSCODE_ADJUST_PROFILE_USE_SOURCE_ATTRIBUTES + + + + None. + + + None + None + + + +

Defines flags for the attribute.

+
+ + dd388926 + MF_TRANSCODE_TOPOLOGYMODE_FLAGS + MF_TRANSCODE_TOPOLOGYMODE_FLAGS +
+ + + No documentation. + + + dd388926 + MF_TRANSCODE_TOPOLOGYMODE_SOFTWARE_ONLY + MF_TRANSCODE_TOPOLOGYMODE_SOFTWARE_ONLY + + + + No documentation. + + + dd388926 + MF_TRANSCODE_TOPOLOGYMODE_HARDWARE_ALLOWED + MF_TRANSCODE_TOPOLOGYMODE_HARDWARE_ALLOWED + + + + None. + + + None + None + + + +

Contains flags for registering and enumeration Media Foundation transforms (MFTs).

These flags are used in the following functions:

  • : These flags control which Media Foundation transforms (MFTs) are enumerated, as well as the enumeration order.
  • : A subset of these flags are used when registering an MFT.
+
+ +

For registration, these flags describe the MFT that is being registered. Some flags do not apply in that context. For enumeration, these flags control which MFTs are selected in the enumeration. For more details about the precise meaning of these flags, see the reference topics for and

For registration, the , , and flags are mutually exclusive. For enumeration, these three flags can be combined.

+
+ + dd389302 + _MFT_ENUM_FLAG + _MFT_ENUM_FLAG +
+ + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_SYNCMFT + MFT_ENUM_FLAG_SYNCMFT + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_ASYNCMFT + MFT_ENUM_FLAG_ASYNCMFT + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_HARDWARE + MFT_ENUM_FLAG_HARDWARE + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_FIELDOFUSE + MFT_ENUM_FLAG_FIELDOFUSE + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_LOCALMFT + MFT_ENUM_FLAG_LOCALMFT + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_TRANSCODE_ONLY + MFT_ENUM_FLAG_TRANSCODE_ONLY + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_SORTANDFILTER + MFT_ENUM_FLAG_SORTANDFILTER + + + + No documentation. + + + dd389302 + MFT_ENUM_FLAG_ALL + MFT_ENUM_FLAG_ALL + + + + None. + + + None + None + + + +

Defines flags for processing output samples in a Media Foundation transform (MFT).

+
+ + ms700163 + _MFT_PROCESS_OUTPUT_FLAGS + _MFT_PROCESS_OUTPUT_FLAGS +
+ + +

Do not produce output for streams in which the pSample member of the structure is null. This flag is not valid unless the MFT has marked the output stream with the or flag. For more information, see .

+
+ + ms700163 + MFT_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER + MFT_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER +
+ + + None. + + + None + None + + + +

Indicates the status of a call to .

+
+ +

If the MFT sets this flag, the ProcessOutput method returns and no output data is produced. The client should respond as follows:

  1. Call to get the new number of streams.

  2. Call to get the new stream identifiers.

  3. Call and to set the media types on the new streams.

Until these steps are completed, all further calls to ProcessOutput return .

+
+ + ms699875 + _MFT_PROCESS_OUTPUT_STATUS + _MFT_PROCESS_OUTPUT_STATUS +
+ + + No documentation. + + + ms699875 + MFT_PROCESS_OUTPUT_STATUS_NEW_STREAMS + MFT_PROCESS_OUTPUT_STATUS_NEW_STREAMS + + + +

Indicates whether the URL is from a trusted source.

+
+ + ms705652 + MF_URL_TRUST_STATUS + MF_URL_TRUST_STATUS +
+ + +

The validity of the URL cannot be guaranteed because it is not signed. The application should warn the user.

+
+ + ms705652 + MF_LICENSE_URL_UNTRUSTED + MF_LICENSE_URL_UNTRUSTED +
+ + +

The URL is the original one provided with the content.

+
+ + ms705652 + MF_LICENSE_URL_TRUSTED + MF_LICENSE_URL_TRUSTED +
+ + +

The URL was originally signed and has been tampered with. The file should be considered corrupted, and the application should not navigate to the URL without issuing a strong warning the user.

+
+ + ms705652 + MF_LICENSE_URL_TAMPERED + MF_LICENSE_URL_TAMPERED +
+ + +

Defines flags for the structure.

+
+ + ms703973 + MFVideoAlphaBitmapFlags + MFVideoAlphaBitmapFlags +
+ + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_EntireDDS + MFVideoAlphaBitmap_EntireDDS + + + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_SrcColorKey + MFVideoAlphaBitmap_SrcColorKey + + + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_SrcRect + MFVideoAlphaBitmap_SrcRect + + + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_DestRect + MFVideoAlphaBitmap_DestRect + + + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_FilterMode + MFVideoAlphaBitmap_FilterMode + + + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_Alpha + MFVideoAlphaBitmap_Alpha + + + + No documentation. + + + ms703973 + MFVideoAlphaBitmap_BitMask + MFVideoAlphaBitmap_BitMask + + + +

Specifies the aspect-ratio mode.

+
+ + ms703040 + MFVideoAspectRatioMode + MFVideoAspectRatioMode +
+ + +

Do not maintain the aspect ratio of the video. Stretch the video to fit the output rectangle.

+
+ + ms703040 + MFVideoARMode_None + MFVideoARMode_None +
+ + +

Preserve the aspect ratio of the video by letterboxing or within the output rectangle.

+
+ + ms703040 + MFVideoARMode_PreservePicture + MFVideoARMode_PreservePicture +
+ + +

Note??Currently the EVR ignores this flag.

Correct the aspect ratio if the physical size of the display device does not match the display resolution. For example, if the native resolution of the monitor is 1600 by 1200 (4:3) but the display resolution is 1280 by 1024 (5:4), the monitor will display non-square pixels.

If this flag is set, you must also set the flag.

+
+ + ms703040 + MFVideoARMode_PreservePixel + MFVideoARMode_PreservePixel +
+ + +

Apply a non-linear horizontal stretch if the aspect ratio of the destination rectangle does not match the aspect ratio of the source rectangle.

The non-linear stretch algorithm preserves the aspect ratio in the middle of the picture and stretches (or shrinks) the image progressively more toward the left and right. This mode is useful when viewing 4:3 content full-screen on a 16:9 display, instead of pillar-boxing. Non-linear vertical stretch is not supported, because the visual results are generally poor.

This mode may cause performance degradation.

If this flag is set, you must also set the and flags.

+
+ + ms703040 + MFVideoARMode_NonLinearStretch + MFVideoARMode_NonLinearStretch +
+ + +

Contains flags that define the chroma encoding scheme for Y'Cb'Cr' data.

+
+ +

These flags are used with the attribute.

For more information about these values, see the remarks for the enumeration, which is the DirectX Video Acceleration (DXVA) equivalent of this enumeration.

+
+ + ms698989 + MFVideoChromaSubsampling + MFVideoChromaSubsampling +
+ + +

Unknown encoding scheme.

+
+ + ms698989 + MFVideoChromaSubsampling_Unknown + MFVideoChromaSubsampling_Unknown +
+ + +

Chroma should be reconstructed as if the underlying video was progressive content, rather than skipping fields or applying chroma filtering to minimize artifacts from reconstructing 4:2:0 interlaced chroma.

+
+ + ms698989 + MFVideoChromaSubsampling_ProgressiveChroma + MFVideoChromaSubsampling_ProgressiveChroma +
+ + +

Chroma samples are aligned horizontally with the luma samples, or with multiples of the luma samples. If this flag is not set, chroma samples are located 1/2 pixel to the right of the corresponding luma sample.

+
+ + ms698989 + MFVideoChromaSubsampling_Horizontally_Cosited + MFVideoChromaSubsampling_Horizontally_Cosited +
+ + +

Chroma samples are aligned vertically with the luma samples, or with multiples of the luma samples. If this flag is not set, chroma samples are located 1/2 pixel down from the corresponding luma sample.

+
+ + ms698989 + MFVideoChromaSubsampling_Vertically_Cosited + MFVideoChromaSubsampling_Vertically_Cosited +
+ + +

The U and V planes are aligned vertically. If this flag is not set, the chroma planes are assumed to be out of phase by 1/2 chroma sample, alternating between a line of U followed by a line of V.

+
+ + ms698989 + MFVideoChromaSubsampling_Vertically_AlignedChromaPlanes + MFVideoChromaSubsampling_Vertically_AlignedChromaPlanes +
+ + +

Specifies the chroma encoding scheme for MPEG-2 video. Chroma samples are aligned horizontally with the luma samples, but are not aligned vertically. The U and V planes are aligned vertically.

+
+ + ms698989 + MFVideoChromaSubsampling_MPEG2 + MFVideoChromaSubsampling_MPEG2 +
+ + +

Specifies the chroma encoding scheme for MPEG-1 video.

+
+ + ms698989 + MFVideoChromaSubsampling_MPEG1 + MFVideoChromaSubsampling_MPEG1 +
+ + +

Specifies the chroma encoding scheme for PAL DV video.

+
+ + ms698989 + MFVideoChromaSubsampling_DV_PAL + MFVideoChromaSubsampling_DV_PAL +
+ + +

Chroma samples are aligned vertically and horizontally with the luma samples. YUV formats such as 4:4:4, 4:2:2, and 4:1:1 are always cosited in both directions and should use this flag.

+
+ + ms698989 + MFVideoChromaSubsampling_Cosited + MFVideoChromaSubsampling_Cosited +
+ + +

Reserved.

+
+ + ms698989 + MFVideoChromaSubsampling_Last + MFVideoChromaSubsampling_Last +
+ + +

Reserved. This member forces the enumeration type to compile as a DWORD value.

+
+ + ms698989 + MFVideoChromaSubsampling_ForceDWORD + MFVideoChromaSubsampling_ForceDWORD +
+ + +

Specifies the type of copy protection required for a video stream.

+
+ +

Use these flags with the attribute.

+
+ + ms698900 + MFVideoDRMFlags + MFVideoDRMFlags +
+ + +

No copy protection is required.

+
+ + ms698900 + MFVideoDRMFlag_None + MFVideoDRMFlag_None +
+ + +

Analog copy protection should be applied.

+
+ + ms698900 + MFVideoDRMFlag_AnalogProtected + MFVideoDRMFlag_AnalogProtected +
+ + +

Digital copy protection should be applied.

+
+ + ms698900 + MFVideoDRMFlag_DigitallyProtected + MFVideoDRMFlag_DigitallyProtected +
+ + +

Contains flags that describe a video stream.

These flags are used in the structure, which is part of the structure.

+
+ +

Developers are encouraged to use media type attributes instead of using the structure. The following table lists the attributes that correspond to the flags defined in this enumeration.

FlagsMedia Type Attribute

Use the attribute to specify a negative stride.

?

The following flags were defined to describe per-sample interlacing information, but are obsolete:

Instead, components should use sample attributes to describe per-sample interlacing information, as described in the topic Video Interlacing.

+
+ + aa473786 + MFVideoFlags + MFVideoFlags +
+ + + No documentation. + + + aa473786 + MFVideoFlag_PAD_TO_None + MFVideoFlag_PAD_TO_None + + + + No documentation. + + + aa473786 + MFVideoFlag_PAD_TO_4x3 + MFVideoFlag_PAD_TO_4x3 + + + + No documentation. + + + aa473786 + MFVideoFlag_PAD_TO_16x9 + MFVideoFlag_PAD_TO_16x9 + + + + No documentation. + + + aa473786 + MFVideoFlag_SrcContentHintMask + MFVideoFlag_SrcContentHintMask + + + + No documentation. + + + aa473786 + MFVideoFlag_SrcContentHintNone + MFVideoFlag_SrcContentHintNone + + + + No documentation. + + + aa473786 + MFVideoFlag_SrcContentHint16x9 + MFVideoFlag_SrcContentHint16x9 + + + + No documentation. + + + aa473786 + MFVideoFlag_SrcContentHint235_1 + MFVideoFlag_SrcContentHint235_1 + + + + No documentation. + + + aa473786 + MFVideoFlag_AnalogProtected + MFVideoFlag_AnalogProtected + + + + No documentation. + + + aa473786 + MFVideoFlag_DigitallyProtected + MFVideoFlag_DigitallyProtected + + + + No documentation. + + + aa473786 + MFVideoFlag_ProgressiveContent + MFVideoFlag_ProgressiveContent + + + + No documentation. + + + aa473786 + MFVideoFlag_FieldRepeatCountMask + MFVideoFlag_FieldRepeatCountMask + + + + No documentation. + + + aa473786 + MFVideoFlag_FieldRepeatCountShift + MFVideoFlag_FieldRepeatCountShift + + + + No documentation. + + + aa473786 + MFVideoFlag_ProgressiveSeqReset + MFVideoFlag_ProgressiveSeqReset + + + + No documentation. + + + aa473786 + MFVideoFlag_PanScanEnabled + MFVideoFlag_PanScanEnabled + + + + No documentation. + + + aa473786 + MFVideoFlag_LowerFieldFirst + MFVideoFlag_LowerFieldFirst + + + + No documentation. + + + aa473786 + MFVideoFlag_BottomUpLinearRep + MFVideoFlag_BottomUpLinearRep + + + + No documentation. + + + aa473786 + MFVideoFlags_DXVASurface + MFVideoFlags_DXVASurface + + + + No documentation. + + + aa473786 + MFVideoFlags_RenderTargetSurface + MFVideoFlags_RenderTargetSurface + + + + No documentation. + + + aa473786 + MFVideoFlags_ForceQWORD + MFVideoFlags_ForceQWORD + + + +

Specifies how a video stream is interlaced.

In the descriptions that follow, upper field refers to the field that contains the leading half scan line. Lower field refers to the field that contains the first full scan line.

+
+ +

Scan lines in the lower field are 0.5 scan line lower than those in the upper field. In NTSC television, a frame consists of a lower field followed by an upper field. In PAL television, a frame consists of an upper field followed by a lower field.

The upper field is also called the even field, the top field, or field 2. The lower field is also called the odd field, the bottom field, or field 1.

If the interlace mode is or , each sample contains a single field, so each buffer contains only half the number of field lines given in the media type.

+
+ + ms694269 + MFVideoInterlaceMode + MFVideoInterlaceMode +
+ + +

The type of interlacing is not known.

+
+ + ms694269 + MFVideoInterlace_Unknown + MFVideoInterlace_Unknown +
+ + +

Progressive frames.

+
+ + ms694269 + MFVideoInterlace_Progressive + MFVideoInterlace_Progressive +
+ + +

Interlaced frames. Each frame contains two fields. The field lines are interleaved, with the upper field appearing on the first line.

+
+ + ms694269 + MFVideoInterlace_FieldInterleavedUpperFirst + MFVideoInterlace_FieldInterleavedUpperFirst +
+ + +

Interlaced frames. Each frame contains two fields. The field lines are interleaved, with the lower field appearing on the first line.

+
+ + ms694269 + MFVideoInterlace_FieldInterleavedLowerFirst + MFVideoInterlace_FieldInterleavedLowerFirst +
+ + +

Interlaced frames. Each frame contains one field, with the upper field appearing first.

+
+ + ms694269 + MFVideoInterlace_FieldSingleUpper + MFVideoInterlace_FieldSingleUpper +
+ + +

Interlaced frames. Each frame contains one field, with the lower field appearing first.

+
+ + ms694269 + MFVideoInterlace_FieldSingleLower + MFVideoInterlace_FieldSingleLower +
+ + +

The stream contains a mix of interlaced and progressive modes.

+
+ + ms694269 + MFVideoInterlace_MixedInterlaceOrProgressive + MFVideoInterlace_MixedInterlaceOrProgressive +
+ + +

Reserved.

+
+ + ms694269 + MFVideoInterlace_Last + MFVideoInterlace_Last +
+ + +

Reserved. This member forces the enumeration type to compile as a DWORD value.

+
+ + ms694269 + MFVideoInterlace_ForceDWORD + MFVideoInterlace_ForceDWORD +
+ + +

Describes the optimal lighting for viewing a particular set of video content.

+
+ +

This enumeration is used with the attribute.

+
+ + ms696202 + MFVideoLighting + MFVideoLighting +
+ + +

The optimal lighting is unknown.

+
+ + ms696202 + MFVideoLighting_Unknown + MFVideoLighting_Unknown +
+ + +

Bright lighting; for example, outdoors.

+
+ + ms696202 + MFVideoLighting_bright + MFVideoLighting_bright +
+ + +

Medium brightness; for example, normal office lighting.

+
+ + ms696202 + MFVideoLighting_office + MFVideoLighting_office +
+ + +

Dim; for example, a living room with a television and additional low lighting.

+
+ + ms696202 + MFVideoLighting_dim + MFVideoLighting_dim +
+ + +

Dark; for example, a movie theater.

+
+ + ms696202 + MFVideoLighting_dark + MFVideoLighting_dark +
+ + +

Reserved.

+
+ + ms696202 + MFVideoLighting_Last + MFVideoLighting_Last +
+ + +

Reserved. This member forces the enumeration type to compile as a DWORD value.

+
+ + ms696202 + MFVideoLighting_ForceDWORD + MFVideoLighting_ForceDWORD +
+ + +

Contains flags that are used to configure how the enhanced video renderer (EVR) performs deinterlacing.

+
+ +

To set these flags, call the method.

These flags control some trade-offs between video quality and rendering speed. The constants named "MFVideoMixPrefs_Allow..." enable lower-quality settings, but only when the quality manager requests a drop in quality. The constants named "MFVideoMixPrefs_Force..." force the EVR to use lower-quality settings regardless of what the quality manager requests. (For more information about the quality manager, see .)

Currently two lower-quality modes are supported, as described in the following table. Either is preferable to dropping an entire frame.

ModeDescription

Half interface

The EVR's video mixer skips the second field (relative to temporal order) of each interlaced frame. The video mixer still deinterlaces the first field, and this operation typically interpolates data from the second field. The overall frame rate is unaffected.

Bob deinterlacing

The video mixer uses bob deinterlacing, even if the driver supports a higher-quality deinterlacing algorithm.

?

+
+ + dd388675 + MFVideoMixPrefs + MFVideoMixPrefs +
+ + +

Force the EVR to skip the second field (in temporal order) of every interlaced frame.

+
+ + dd388675 + MFVideoMixPrefs_ForceHalfInterlace + MFVideoMixPrefs_ForceHalfInterlace +
+ + +

If the EVR is falling behind, allow it to skip the second field (in temporal order) of every interlaced frame.

+
+ + dd388675 + MFVideoMixPrefs_AllowDropToHalfInterlace + MFVideoMixPrefs_AllowDropToHalfInterlace +
+ + +

If the EVR is falling behind, allow it to use bob deinterlacing, even if the driver supports a higher-quality deinterlacing mode.

+
+ + dd388675 + MFVideoMixPrefs_AllowDropToBob + MFVideoMixPrefs_AllowDropToBob +
+ + +

Force the EVR to use bob deinterlacing, even if the driver supports a higher-quality mode.

+
+ + dd388675 + MFVideoMixPrefs_ForceBob + MFVideoMixPrefs_ForceBob +
+ + +

Specifies whether to pad a video image so that it fits within a specified aspect ratio.

+
+ +

Use these flags with the attribute.

+
+ + ms703091 + MFVideoPadFlags + MFVideoPadFlags +
+ + +

Do not pad the image.

+
+ + ms703091 + MFVideoPadFlag_PAD_TO_None + MFVideoPadFlag_PAD_TO_None +
+ + +

Pad the image so that it can be displayed in a 4?3 area.

+
+ + ms703091 + MFVideoPadFlag_PAD_TO_4x3 + MFVideoPadFlag_PAD_TO_4x3 +
+ + +

Pad the image so that it can be displayed in a 16?9 area.

+
+ + ms703091 + MFVideoPadFlag_PAD_TO_16x9 + MFVideoPadFlag_PAD_TO_16x9 +
+ + +

Specifies the color primaries of a video source. The color primaries define how to convert colors from RGB color space to CIE XYZ color space.

+
+ +

This enumeration is used with the attribute.

For more information about these values, see the remarks for the enumeration, which is the DirectX Video Acceleration (DXVA) equivalent of this enumeration.

+
+ + ms701628 + MFVideoPrimaries + MFVideoPrimaries +
+ + +

The color primaries are unknown.

+
+ + ms701628 + MFVideoPrimaries_Unknown + MFVideoPrimaries_Unknown +
+ + +

Reserved.

+
+ + ms701628 + MFVideoPrimaries_reserved + MFVideoPrimaries_reserved +
+ + +

ITU-R BT.709. Also used for sRGB and scRGB.

+
+ + ms701628 + MFVideoPrimaries_BT709 + MFVideoPrimaries_BT709 +
+ + +

ITU-R BT.470-4 System M (NTSC).

+
+ + ms701628 + MFVideoPrimaries_BT470_2_SysM + MFVideoPrimaries_BT470_2_SysM +
+ + +

ITU-R BT.470-4 System B,G (NTSC).

+
+ + ms701628 + MFVideoPrimaries_BT470_2_SysBG + MFVideoPrimaries_BT470_2_SysBG +
+ + +

SMPTE 170M.

+
+ + ms701628 + MFVideoPrimaries_SMPTE170M + MFVideoPrimaries_SMPTE170M +
+ + +

SMPTE 240M.

+
+ + ms701628 + MFVideoPrimaries_SMPTE240M + MFVideoPrimaries_SMPTE240M +
+ + +

EBU 3213.

+
+ + ms701628 + MFVideoPrimaries_EBU3213 + MFVideoPrimaries_EBU3213 +
+ + +

SMPTE C (SMPTE RP 145).

+
+ + ms701628 + MFVideoPrimaries_SMPTE_C + MFVideoPrimaries_SMPTE_C +
+ + +

Reserved.

+
+ + ms701628 + MFVideoPrimaries_Last + MFVideoPrimaries_Last +
+ + +

Reserved. This member forces the enumeration type to compile as a DWORD value.

+
+ + ms701628 + MFVideoPrimaries_ForceDWORD + MFVideoPrimaries_ForceDWORD +
+ + +

Contains flags that define how the enhanced video renderer (EVR) displays the video.

+
+ +

To set these flags, call .

The flags named "MFVideoRenderPrefs_Allow..." cause the EVR to use lower-quality settings only when requested by the quality manager. (For more information, see .) The flags named "MFVideoRenderPrefs_Force..." cause the video mixer to use lower-quality settings regardless of the quality manager.

+
+ + ms701834 + MFVideoRenderPrefs + MFVideoRenderPrefs +
+ + +

If this flag is set, the EVR does not draw the border color. By default, the EVR draws a border on areas of the destination rectangle that have no video. See .

+
+ + ms701834 + MFVideoRenderPrefs_DoNotRenderBorder + MFVideoRenderPrefs_DoNotRenderBorder +
+ + +

If this flag is set, the EVR does not clip the video when the video window straddles two monitors. By default, if the video window straddles two monitors, the EVR clips the video to the monitor that contains the largest area of video.

+
+ + ms701834 + MFVideoRenderPrefs_DoNotClipToDevice + MFVideoRenderPrefs_DoNotClipToDevice +
+ + +

Note??Requires Windows?7 or later.

Allow the EVR to limit its output to match GPU bandwidth.

+
+ + ms701834 + MFVideoRenderPrefs_AllowOutputThrottling + MFVideoRenderPrefs_AllowOutputThrottling +
+ + +

Note??Requires Windows?7 or later.

Force the EVR to limit its output to match GPU bandwidth.

+
+ + ms701834 + MFVideoRenderPrefs_ForceOutputThrottling + MFVideoRenderPrefs_ForceOutputThrottling +
+ + +

Note??Requires Windows?7 or later.

Force the EVR to batch Direct3D Present calls. This optimization enables the system to enter to idle states more frequently, which can reduce power consumption.

+
+ + ms701834 + MFVideoRenderPrefs_ForceBatching + MFVideoRenderPrefs_ForceBatching +
+ + +

Note??Requires Windows?7 or later.

Allow the EVR to batch Direct3D Present calls.

+
+ + ms701834 + MFVideoRenderPrefs_AllowBatching + MFVideoRenderPrefs_AllowBatching +
+ + +

Note??Requires Windows?7 or later.

Force the EVR to mix the video inside a rectangle that is smaller than the output rectangle. The EVR will then scale the result to the correct output size. The effective resolution will be lower if this setting is applied.

+
+ + ms701834 + MFVideoRenderPrefs_ForceScaling + MFVideoRenderPrefs_ForceScaling +
+ + +

Note??Requires Windows?7 or later.

Allow the EVR to mix the video inside a rectangle that is smaller than the output rectangle.

+
+ + ms701834 + MFVideoRenderPrefs_AllowScaling + MFVideoRenderPrefs_AllowScaling +
+ + +

Note??Requires Windows?7 or later.

Prevent the EVR from repainting the video window after a stop command. By default, the EVR repaints the video window black after a stop command.

+
+ + ms701834 + MFVideoRenderPrefs_DoNotRepaintOnStop + MFVideoRenderPrefs_DoNotRepaintOnStop +
+ + +

Describes the intended aspect ratio for a video stream.

+
+ +

Use these flags with the attribute.

+
+ + ms697451 + MFVideoSrcContentHintFlags + MFVideoSrcContentHintFlags +
+ + +

The aspect ratio is unknown.

+
+ + ms697451 + MFVideoSrcContentHintFlag_None + MFVideoSrcContentHintFlag_None +
+ + +

The source is 16?9 content encoded within a 4?3 area.

+
+ + ms697451 + MFVideoSrcContentHintFlag_16x9 + MFVideoSrcContentHintFlag_16x9 +
+ + +

The source is 2.35:1 content encoded within a 16?9 or 4?3 area.

+
+ + ms697451 + MFVideoSrcContentHintFlag_235_1 + MFVideoSrcContentHintFlag_235_1 +
+ + +

Specifies the conversion function from linear RGB to non-linear RGB (R'G'B').

+
+ +

These flags are used with the attribute.

For more information about these values, see the remarks for the enumeration, which is the DirectX Video Acceleration (DXVA) equivalent of this enumeration.

+
+ + ms705629 + MFVideoTransferFunction + MFVideoTransferFunction +
+ + +

Unknown. Treat as .

+
+ + ms705629 + MFVideoTransFunc_Unknown + MFVideoTransFunc_Unknown +
+ + +

Linear RGB (gamma = 1.0).

+
+ + ms705629 + MFVideoTransFunc_10 + MFVideoTransFunc_10 +
+ + +

True 1.8 gamma, L' = L^1/1.8.

+
+ + ms705629 + MFVideoTransFunc_18 + MFVideoTransFunc_18 +
+ + +

True 2.0 gamma, L' = L^1/2.0.

+
+ + ms705629 + MFVideoTransFunc_20 + MFVideoTransFunc_20 +
+ + +

True 2.2 gamma, L' = L^1/2.2. This transfer function is used in ITU-R BT.470-2 System M (NTSC).

+
+ + ms705629 + MFVideoTransFunc_22 + MFVideoTransFunc_22 +
+ + +

ITU-R BT.709 transfer function. Gamma 2.2 curve with a linear segment in the lower range. This transfer function is used in BT.709, BT.601, SMPTE 296M, SMPTE 170M, BT.470, and SPMTE 274M. In addition BT-1361 uses this function within the range [0...1].

+
+ + ms705629 + MFVideoTransFunc_709 + MFVideoTransFunc_709 +
+ + +

SPMTE 240M transfer function. Gamma 2.2 curve with a linear segment in the lower range.

+
+ + ms705629 + MFVideoTransFunc_240M + MFVideoTransFunc_240M +
+ + +

sRGB transfer function. Gamma 2.4 curve with a linear segment in the lower range.

+
+ + ms705629 + MFVideoTransFunc_sRGB + MFVideoTransFunc_sRGB +
+ + +

True 2.8 gamma. L' = L^1/2.8. This transfer function is used in ITU-R BT.470-2 System B, G (PAL).

+
+ + ms705629 + MFVideoTransFunc_28 + MFVideoTransFunc_28 +
+ + +

Logarithmic transfer (100:1 range); for example, as used in H.264 video.

Note??Requires Windows?7 or later.

+
+ + ms705629 + MFVideoTransFunc_Log_100 + MFVideoTransFunc_Log_100 +
+ + +

Logarithmic transfer (316.22777:1 range); for example, as used in H.264 video.

Note??Requires Windows?7 or later.

+
+ + ms705629 + MFVideoTransFunc_Log_316 + MFVideoTransFunc_Log_316 +
+ + +

Symmetric ITU-R BT.709.

Note??Requires Windows?7 or later.

+
+ + ms705629 + MFVideoTransFunc_709_sym + MFVideoTransFunc_709_sym +
+ + +

Reserved.

+
+ + ms705629 + MFVideoTransFunc_Last + MFVideoTransFunc_Last +
+ + +

Reserved. This member forces the enumeration type to compile as a DWORD value.

+
+ + ms705629 + MFVideoTransFunc_ForceDWORD + MFVideoTransFunc_ForceDWORD +
+ + +

Describes the conversion matrices between Y'PbPr (component video) and studio R'G'B'.

+
+ +

This enumeration is used with the attribute.

For more information about these values, see the remarks for the enumeration, which is the DirectX Video Acceleration (DXVA) equivalent of this enumeration.

+
+ + ms694036 + MFVideoTransferMatrix + MFVideoTransferMatrix +
+ + +

Unknown transfer matrix. Treat as .

+
+ + ms694036 + MFVideoTransferMatrix_Unknown + MFVideoTransferMatrix_Unknown +
+ + +

ITU-R BT.709 transfer matrix.

+
+ + ms694036 + MFVideoTransferMatrix_BT709 + MFVideoTransferMatrix_BT709 +
+ + +

ITU-R BT.601 transfer matrix. Also used for SMPTE 170 and ITU-R BT.470-2 System B,G.

+
+ + ms694036 + MFVideoTransferMatrix_BT601 + MFVideoTransferMatrix_BT601 +
+ + +

SMPTE 240M transfer matrix.

+
+ + ms694036 + MFVideoTransferMatrix_SMPTE240M + MFVideoTransferMatrix_SMPTE240M +
+ + +

Reserved.

+
+ + ms694036 + MFVideoTransferMatrix_Last + MFVideoTransferMatrix_Last +
+ + +

Reserved. This member forces the enumeration type to compile as a DWORD value.

+
+ + ms694036 + MFVideoTransferMatrix_ForceDWORD + MFVideoTransferMatrix_ForceDWORD +
+ + +

Defines messages for an enhanced video renderer (EVR) presenter. This enumeration is used with the method.

+
+ + ms698964 + MFVP_MESSAGE_TYPE + MFVP_MESSAGE_TYPE +
+ + + No documentation. + + + ms698964 + MFVP_MESSAGE_FLUSH + MFVP_MESSAGE_FLUSH + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_INVALIDATEMEDIATYPE + MFVP_MESSAGE_INVALIDATEMEDIATYPE + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_PROCESSINPUTNOTIFY + MFVP_MESSAGE_PROCESSINPUTNOTIFY + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_BEGINSTREAMING + MFVP_MESSAGE_BEGINSTREAMING + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_ENDSTREAMING + MFVP_MESSAGE_ENDSTREAMING + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_ENDOFSTREAM + MFVP_MESSAGE_ENDOFSTREAM + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_STEP + MFVP_MESSAGE_STEP + + + + No documentation. + + + ms698964 + MFVP_MESSAGE_CANCELSTEP + MFVP_MESSAGE_CANCELSTEP + + + +

Contains flags that specify how to convert an audio media type.

+
+ + ms703181 + MFWaveFormatExConvertFlags + MFWaveFormatExConvertFlags +
+ + +

Convert the media type to a structure if possible, or a structure otherwise.

+
+ + ms703181 + MFWaveFormatExConvertFlag_Normal + MFWaveFormatExConvertFlag_Normal +
+ + +

Convert the media type to a structure.

+
+ + ms703181 + MFWaveFormatExConvertFlag_ForceExtensible + MFWaveFormatExConvertFlag_ForceExtensible +
+ + +

The following constants identify the standard Media Foundation work queues.

Applications should use MFASYNC_CALLBACK_QUEUE_MULTITHREADED or use a work queue obtained from MFLockSharedWorkQueue if they want to control the execution priority. Note that the default platform work queue priorities can dynamically change when an application calls RegisterPlatformWithMMCSS. For more information about work queues, see Work Queues.

+
+ + ms703102 + MFASYNC_CALLBACK_QUEUE + MFASYNC_CALLBACK_QUEUE +
+ + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_UNDEFINED + MFASYNC_CALLBACK_QUEUE_UNDEFINED + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_STANDARD + MFASYNC_CALLBACK_QUEUE_STANDARD + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_RT + MFASYNC_CALLBACK_QUEUE_RT + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_IO + MFASYNC_CALLBACK_QUEUE_IO + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_TIMER + MFASYNC_CALLBACK_QUEUE_TIMER + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_LONG_FUNCTION + MFASYNC_CALLBACK_QUEUE_LONG_FUNCTION + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_PRIVATE_MASK + MFASYNC_CALLBACK_QUEUE_PRIVATE_MASK + + + + No documentation. + + + ms703102 + MFASYNC_CALLBACK_QUEUE_ALL + MFASYNC_CALLBACK_QUEUE_ALL + + + + Functions + + + + + Constant Maxpacketsize. + MF_ASFPROFILE_MAXPACKETSIZE + + + Constant Minpacketsize. + MF_ASFPROFILE_MINPACKETSIZE + + + + Functions + + + + + Constant PacketBoundary. + MFASFSPLITTER_PACKET_BOUNDARY + + + + Functions + + + + + Constant LeakyBucket1. + MF_ASFSTREAMCONFIG_LEAKYBUCKET1 + + + Constant LeakyBucket2. + MF_ASFSTREAMCONFIG_LEAKYBUCKET2 + + + + Functions + + + + + Constant MultisampledP1. + MFAudioFormat_MSP1 + + + Constant Drm. + MFAudioFormat_DRM + + + Constant Dts. + MFAudioFormat_DTS + + + Constant DolbyAc3Spdif. + MFAudioFormat_Dolby_AC3_SPDIF + + + Constant Wmaspdif. + MFAudioFormat_WMASPDIF + + + Constant Pcm. + MFAudioFormat_PCM + + + Constant Mp3. + MFAudioFormat_MP3 + + + Constant WMAudioLossless. + MFAudioFormat_WMAudio_Lossless + + + Constant Float. + MFAudioFormat_Float + + + Constant WMAudioV8. + MFAudioFormat_WMAudioV8 + + + Constant Base. + MFAudioFormat_Base + + + Constant Mpeg. + MFAudioFormat_MPEG + + + Constant Aac. + MFAudioFormat_AAC + + + Constant WMAudioV9. + MFAudioFormat_WMAudioV9 + + + Constant Adts. + MFAudioFormat_ADTS + + + + Functions + + + + + Constant EndpointId. + MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ID + + + Constant EndpointRole. + MF_AUDIO_RENDERER_ATTRIBUTE_ENDPOINT_ROLE + + + Constant Flags. + MF_AUDIO_RENDERER_ATTRIBUTE_FLAGS + + + Constant SessionId. + MF_AUDIO_RENDERER_ATTRIBUTE_SESSION_ID + + + + Functions + + + + + Constant ContentType. + MF_BYTESTREAM_CONTENT_TYPE + + + Constant Duration. + MF_BYTESTREAM_DURATION + + + Constant IfoFileUri. + MF_BYTESTREAM_IFO_FILE_URI + + + Constant LastModifiedTime. + MF_BYTESTREAM_LAST_MODIFIED_TIME + + + Constant OriginName. + MF_BYTESTREAM_ORIGIN_NAME + + + Constant HandlerAcceptsShareWrite. + MF_BYTESTREAMHANDLER_ACCEPTS_SHARE_WRITE + + + + Functions + + + + + Constant SourceTypeVideoCapture. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_GUID + + + Constant SourceTypeAudioCapture. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_GUID + + + Constant FriendlyName. + MF_DEVSOURCE_ATTRIBUTE_FRIENDLY_NAME + + + Constant MediaType. + MF_DEVSOURCE_ATTRIBUTE_MEDIA_TYPE + + + Constant SourceType. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE + + + Constant SourceTypeAudcapEndpointId. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_ENDPOINT_ID + + + Constant SourceTypeAudcapRole. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_AUDCAP_ROLE + + + Constant SourceTypeVidcapCategory. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_CATEGORY + + + Constant SourceTypeVidcapHwSource. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_HW_SOURCE + + + Constant SourceTypeVidcapMaxBuffers. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_MAX_BUFFERS + + + Constant SourceTypeVidcapSymbolicLink. + MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK + + + + Functions + + + + + Constant AudioBitRate. + MF_MP2DLNA_AUDIO_BIT_RATE + + + Constant EncodeQuality. + MF_MP2DLNA_ENCODE_QUALITY + + + Constant Statistics. + MF_MP2DLNA_STATISTICS + + + Constant UseMmcss. + MF_MP2DLNA_USE_MMCSS + + + Constant VideoBitRate. + MF_MP2DLNA_VIDEO_BIT_RATE + + + + Functions + + + + + Constant DoThinning. + MF_EVENT_DO_THINNING + + + Constant TransformContext. + MF_EVENT_MFT_CONTEXT + + + Constant TransformInputStreamId. + MF_EVENT_MFT_INPUT_STREAM_ID + + + Constant OutputNode. + MF_EVENT_OUTPUT_NODE + + + Constant PresentationTimeOffset. + MF_EVENT_PRESENTATION_TIME_OFFSET + + + Constant ScrubsampleTime. + MF_EVENT_SCRUBSAMPLE_TIME + + + Constant Sessioncaps. + MF_EVENT_SESSIONCAPS + + + Constant SessioncapsDelta. + MF_EVENT_SESSIONCAPS_DELTA + + + Constant SourceActualStart. + MF_EVENT_SOURCE_ACTUAL_START + + + Constant SourceCharacteristics. + MF_EVENT_SOURCE_CHARACTERISTICS + + + Constant SourceCharacteristicsOld. + MF_EVENT_SOURCE_CHARACTERISTICS_OLD + + + Constant SourceFakeStart. + MF_EVENT_SOURCE_FAKE_START + + + Constant SourceProjectstart. + MF_EVENT_SOURCE_PROJECTSTART + + + Constant SourceTopologyCanceled. + MF_EVENT_SOURCE_TOPOLOGY_CANCELED + + + Constant StartPresentationTime. + MF_EVENT_START_PRESENTATION_TIME + + + Constant StartPresentationTimeAtOutput. + MF_EVENT_START_PRESENTATION_TIME_AT_OUTPUT + + + Constant TopologyStatus. + MF_EVENT_TOPOLOGY_STATUS + + + + Functions + + + + + Constant SaRequiredSampleCount. + MF_SA_REQUIRED_SAMPLE_COUNT + + + Constant VideoZoomRect. + VIDEO_ZOOM_RECT + + + + Functions + + + + + Constant AllowBatching. + EVRConfig_AllowBatching + + + Constant AllowDropToBob. + EVRConfig_AllowDropToBob + + + Constant AllowDropToHalfInterlace. + EVRConfig_AllowDropToHalfInterlace + + + Constant AllowDropToThrottle. + EVRConfig_AllowDropToThrottle + + + Constant AllowScaling. + EVRConfig_AllowScaling + + + Constant ForceBatching. + EVRConfig_ForceBatching + + + Constant ForceBob. + EVRConfig_ForceBob + + + Constant ForceHalfInterlace. + EVRConfig_ForceHalfInterlace + + + Constant ForceScaling. + EVRConfig_ForceScaling + + + Constant ForceThrottle. + EVRConfig_ForceThrottle + + + + Functions + + + + + Constant MixerActivate. + MF_ACTIVATE_CUSTOM_VIDEO_MIXER_ACTIVATE + + + Constant MixerClsid. + MF_ACTIVATE_CUSTOM_VIDEO_MIXER_CLSID + + + Constant MixerFlags. + MF_ACTIVATE_CUSTOM_VIDEO_MIXER_FLAGS + + + Constant PresenterActivate. + MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_ACTIVATE + + + Constant PresenterClsid. + MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID + + + Constant PresenterFlags. + MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_FLAGS + + + Constant ActivateVideoWindow. + MF_ACTIVATE_VIDEO_WINDOW + + + + Functions + + + + + Constant Version. + MF_VERSION + + + +

Creates an instance of the enhanced video renderer (EVR) media sink.

+
+

Interface identifier (IID) of the requested interface on the EVR.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This function creates the Media Foundation version of the EVR. To create the DirectShow EVR filter, call CoCreateInstance with the class identifier CLSID_EnhancedVideoRenderer.

+
+ + ms703814 + HRESULT MFCreateVideoRenderer([In] const GUID& riidRenderer,[Out, Optional] void** ppVideoRenderer) + MFCreateVideoRenderer +
+ + +

Creates a media sample that manages a Direct3D surface.

+
+

A reference to the interface of the Direct3D surface. This parameter can be null.

+

Receives a reference to the sample's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The media sample created by this function exposes the following interfaces in addition to :

If pUnkSurface is non-null, the sample contains a single media buffer, which holds a reference to the Direct3D surface. To get the Direct3D surface from the media buffer, call on the buffer, using the service identifier . The media buffer does not implement , nor does it implement the and Unlock methods.

Alternatively, you can set pUnkSurface to null, and later add a DirectX surface buffer to the sample by calling . To create a DirectX surface buffer, call .

+
+ + ms703859 + HRESULT MFCreateVideoSampleFromSurface([In, Optional] IUnknown* pUnkSurface,[Out, Optional] IMFSample** ppSample) + MFCreateVideoSampleFromSurface +
+ + +

Creates the default video presenter for the enhanced video renderer (EVR).

+
+

Pointer to the owner of the object. If the object is aggregated, pass a reference to the aggregating object's interface. Otherwise, set this parameter to null.

+

Interface identifier (IID) of the video device interface that will be used for processing the video. Currently the only supported value is IID_IDirect3DDevice9.

+

IID of the requested interface on the video presenter. The video presenter exposes the interface.

+

Receives a reference to the requested interface on the video presenter. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms693842 + HRESULT MFCreateVideoPresenter([In, Optional] IUnknown* pOwner,[In] const GUID& riidDevice,[In] const GUID& riid,[Out, Optional] void** ppVideoPresenter) + MFCreateVideoPresenter +
+ + +

Creates the default video mixer for the enhanced video renderer (EVR).

+
+

Pointer to the owner of this object. If the object is aggregated, pass a reference to the aggregating object's interface. Otherwise, set this parameter to null.

+

Interface identifier (IID) of the video device interface that will be used for processing the video. Currently the only supported value is IID_IDirect3DDevice9.

+

IID of the requested interface on the video mixer. The video mixer exposes the interface.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms705653 + HRESULT MFCreateVideoMixer([In, Optional] IUnknown* pOwner,[In] const GUID& riidDevice,[In] const GUID& riid,[Out, Optional] void** ppVideoMixer) + MFCreateVideoMixer +
+ + +

Creates the default video mixer and video presenter for the enhanced video renderer (EVR).

+
+

Pointer to the owner of the video mixer. If the mixer is aggregated, pass a reference to the aggregating object's interface. Otherwise, set this parameter to null.

+

Pointer to the owner of the video presenter. If the presenter is aggregated, pass a reference to the aggregating object's interface. Otherwise, set this parameter to null.

+

Interface identifier (IID) of the requested interface on the video mixer. The video mixer exposes the interface.

+

Receives a reference to the requested interface on the video mixer. The caller must release the interface.

+

IID of the requested interface on the video presenter. The video presenter exposes the interface.

+

Receives a reference to the requested interface on the video presenter. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms694842 + HRESULT MFCreateVideoMixerAndPresenter([In, Optional] IUnknown* pMixerOwner,[In, Optional] IUnknown* pPresenterOwner,[In] const GUID& riidMixer,[Out] void** ppvVideoMixer,[In] const GUID& riidPresenter,[Out] void** ppvVideoPresenter) + MFCreateVideoMixerAndPresenter +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Creates a new instance of the MFPlay player object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Before calling this function, call CoIntialize(Ex) from the same thread to initialize the COM library.

Internally, calls to initialize the Microsoft Media Foundation platform. When the player object is destroyed, it calls to shut down the platform. It is not necessary for an application to call or when using MFPlay.

Note??If you use other Media Foundation APIs outside the life time of the player object, then your application should call and .

+
+ + dd375520 + HRESULT MFPCreateMediaPlayer([In, Optional] const wchar_t* pwszURL,[In] BOOL fStartPlayback,[In, Optional] unsigned int creationOptions,[In, Optional] IMFPMediaPlayerCallback* pCallback,[In, Optional] HWND hWnd,[Out, Optional] IMFPMediaPlayer** ppMediaPlayer) + MFPCreateMediaPlayer +
+ + +

Creates the ASF profile object.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms705632 + HRESULT MFCreateASFProfile([In] IMFASFProfile** ppIProfile) + MFCreateASFProfile +
+ + +

Creates the ASF Splitter.

+
+ No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + bb970321 + HRESULT MFCreateASFSplitter([In] IMFASFSplitter** ppISplitter) + MFCreateASFSplitter +
+ + +

Creates an activation object that can be used to create the ASF media sink.

+
+

Null-terminated wide-character string that contains the output file name.

+

A reference to the interface of an initialized ASF Header Object object. Use this interface to configure the ASF media sink.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + bb970403 + HRESULT MFCreateASFMediaSinkActivate([In] const wchar_t* pwszFileName,[In] IMFASFContentInfo* pContentInfo,[In] IMFActivate** ppIActivate) + MFCreateASFMediaSinkActivate +
+ + +

Creates an activation object for the ASF streaming sink.

The ASF streaming sink enables an application to write streaming Advanced Systems Format (ASF) packets to an HTTP byte stream.

+
+

A reference to a byte stream object in which the ASF media sink writes the streamed content.

+

Receives a reference to the interface of the ASF streaming-media sink object. To create the media sink, the application must call on the received reference. The caller must release the interface reference.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

To create the ASF streaming sink in another process, call .

An application can get a reference to the ASF ContentInfo Object by calling IUnknown::QueryInterface on the media sink object received in the ppIMediaSink parameter. The ContentInfo object is used to set the encoder configuration settings, provide stream properties supplied by an ASF profile, and add metadata information. These configuration settings populate the various ASF header objects of the encoded ASF file. For more information, see + Setting Properties in the ContentInfo Object.

+
+ + dd388087 + HRESULT MFCreateASFStreamingMediaSink([In] IMFByteStream* pIByteStream,[In] IMFMediaSink** ppIMediaSink) + MFCreateASFStreamingMediaSink +
+ + +

Creates a presentation descriptor from an ASF profile object.

+
+

Pointer to the interface of the ASF profile object.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms704656 + HRESULT MFCreatePresentationDescriptorFromASFProfile([In] IMFASFProfile* pIProfile,[In] IMFPresentationDescriptor** ppIPD) + MFCreatePresentationDescriptorFromASFProfile +
+ + +

Creates an ASF profile object from a presentation descriptor.

+
+

Pointer to the interface of the presentation descriptor that contains the profile information.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms694279 + HRESULT MFCreateASFProfileFromPresentationDescriptor([In] IMFPresentationDescriptor* pIPD,[In] IMFASFProfile** ppIProfile) + MFCreateASFProfileFromPresentationDescriptor +
+ + +

Creates an activation object that can be used to create a Windows Media Video (WMV) encoder.

+
+

A reference to the interface. This parameter specifies the encoded output format.

+

A reference to the interface of a property store that contains encoding parameters. Encoding parameters for the WMV encoder are defined in the header file wmcodecdsp.h. If you have an ASF ContentInfo object that contains an ASF profile object with all the streams for the output file, you can get the property store by calling .

+

Receives a reference to the interface. Use this interface to create the encoder. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms705622 + HRESULT MFCreateWMVEncoderActivate([In] IMFMediaType* pMediaType,[In] IPropertyStore* pEncodingConfigurationProperties,[In] IMFActivate** ppActivate) + MFCreateWMVEncoderActivate +
+ + +

Creates the ASF Multiplexer.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + bb970397 + HRESULT MFCreateASFMultiplexer([In] IMFASFMultiplexer** ppIMultiplexer) + MFCreateASFMultiplexer +
+ + +

Creates a byte stream to access the index in an ASF stream.

+
+

Pointer to the interface of a byte stream that contains the ASF stream.

+

Byte offset of the index within the ASF stream. To get this value, call .

+

Receives a reference to the interface. Use this interface to read from the index or write to the index. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table:

Return codeDescription

The call succeeded.

The offset specified in cbIndexStartOffset is invalid.

?

+ + bb970563 + HRESULT MFCreateASFIndexerByteStream([In] IMFByteStream* pIContentByteStream,[In] unsigned longlong cbIndexStartOffset,[In] IMFByteStream** pIIndexByteStream) + MFCreateASFIndexerByteStream +
+ + +

Creates the ASF stream selector.

+
+

Pointer to the interface.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms698963 + HRESULT MFCreateASFStreamSelector([In] IMFASFProfile* pIASFProfile,[In] IMFASFStreamSelector** ppSelector) + MFCreateASFStreamSelector +
+ + +

Creates an activation object for the ASF streaming sink.

The ASF streaming sink enables an application to write streaming Advanced Systems Format (ASF) packets to an HTTP byte stream. The activation object can be used to create the ASF streaming sink in another process.

+
+

A reference to the interface of an activation object. The caller implements this interface. The method of the activation object must create a byte-stream object. The byte stream exposes the interface. The ASF streaming sink will write data to this byte stream.

+

A reference to an ASF ContentInfo Object that contains the properties that describe the ASF content. These settings can contain stream settings, encoding properties, and metadata. For more information about these properties, see Setting Properties in the ContentInfo Object.

+

Receives a reference to the interface of the activation object that is used to create the ASF streaming-media sink. To create the media sink, the application must call by using the received reference. The ActivateObject method also calls IMFActivate::Activate on the byte stream activate object specified by pByteStreamActivate, to create it so that the media sink can write streamed content in the byte stream. The caller must release the interface reference of the media sink activation object received in ppIActivate.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Starting in Windows?7, Media Foundation provides an ASF streaming sink that writes the content in a live streaming scenario. This function should be used in secure transcode scenarios where this media sink needs to be created and configured in the remote + process. Like the ASF file sink, the new media sink performs ASF related tasks such as writing the ASF header, generating data packets (muxing). The content is written to a caller-implemented byte stream such as an HTTP byte stream. + The caller must also provide an activation object that media sink can use to create the byte stream remotely.

In addition, it performs transcryption for streaming protected content. It hosts the Windows Media Digital Rights Management (DRM) for Network Devices Output Trust Authority (OTA) that handles the license request and response. For more information, see interface.

The new media sink does not perform any time adjustments. If the clock seeks, the timestamps are not changed.

+
+ + dd388090 + HRESULT MFCreateASFStreamingMediaSinkActivate([In] IMFActivate* pByteStreamActivate,[In] IMFASFContentInfo* pContentInfo,[In] IMFActivate** ppIActivate) + MFCreateASFStreamingMediaSinkActivate +
+ + +

Creates an activation object that can be used to create a Windows Media Audio (WMA) encoder.

+
+

A reference to the interface. This parameter specifies the encoded output format.

+

A reference to the interface of a property store that contains encoding parameters. Encoding parameters for the WMV encoder are defined in the header file wmcodecdsp.h. If you have an ASF ContentInfo object that contains an ASF profile object with all the streams for the output file, you can get the property store by calling .

+

Receives a reference to the interface. Use this interface to create the encoder. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms702208 + HRESULT MFCreateWMAEncoderActivate([In] IMFMediaType* pMediaType,[In] IPropertyStore* pEncodingConfigurationProperties,[In] IMFActivate** ppActivate) + MFCreateWMAEncoderActivate +
+ + +

Creates the ASF Indexer object.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms704561 + HRESULT MFCreateASFIndexer([In] IMFASFIndexer** ppIIndexer) + MFCreateASFIndexer +
+ + +

Creates the ASF Header Object object.

+
+ No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + bb970315 + HRESULT MFCreateASFContentInfo([In] IMFASFContentInfo** ppIContentInfo) + MFCreateASFContentInfo +
+ + +

Creates the ASF media sink.

+
+

Pointer to a byte stream that will be used to write the ASF stream.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms703955 + HRESULT MFCreateASFMediaSink([In] IMFByteStream* pIByteStream,[In] IMFMediaSink** ppIMediaSink) + MFCreateASFMediaSink +
+ + +

Initializes Microsoft Media Foundation.

+
+

Version number. Use the value , defined in mfapi.h.

+

This parameter is optional when using C++ but required in C. The value must be one of the following flags:

ValueMeaning
MFSTARTUP_NOSOCKET

Do not initialize the sockets library.

MFSTARTUP_LITE

Equivalent to MFSTARTUP_NOSOCKET.

MFSTARTUP_FULL

Initialize the entire Media Foundation platform. This is the default value when dwFlags is not specified.

?

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Version parameter requires a newer version of Media Foundation than the version that is running.

The Media Foundation platform is disabled because the system was started in "Safe Mode" (fail-safe boot).

E_NOTIMPL

Media Foundation is not implemented on the system. This error can occur if the media components are not present (See KB2703761 for more info).

?

+ +

An application must call this function before using Media Foundation. Before your application quits, call once for every previous call to .

Do not call or from work queue threads. For more information about work queues, see Work Queues.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms702238 + HRESULT MFStartup([In] unsigned int Version,[In] unsigned int dwFlags) + MFStartup +
+ + +

Unregisters a Media Foundation transform (MFT) from the caller's process.

+
+

The class identifier (CLSID) of the MFT.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

HRESULT_FROM_WIN32()

The MFT specified by the clsidMFT parameter was not registered in this process.

?

+ +

Use this function to unregister a local MFT that was previously registered through the function.

+
+ + dd388659 + HRESULT MFTUnregisterLocalByCLSID([In] GUID clsidMFT) + MFTUnregisterLocalByCLSID +
+ + +

[This API is not supported and may be altered or unavailable in the future.]

Creates an audio media type from a structure.

+
+

Pointer to a structure that describes the audio format.

+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The interface is deprecrated, so applications should avoid using this function. To create a media type from a structure, do the following:

  1. Call . This function returns a reference to the interface. The returned media type object is initially empty.
  2. Call to populate the media type from the structure.

Alternatively, you can call and then set the media type attributes directly.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + aa473812 + HRESULT MFCreateAudioMediaType([In] const WAVEFORMATEX* pAudioFormat,[Out] IMFAudioMediaType** ppIAudioMediaType) + MFCreateAudioMediaType +
+ + +

Cancels an asynchronous request to create a byte stream from a file.

+
+

A reference to the interface of the cancellation object. This reference is received in the ppCancelCookie parameter of the function.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

You can use this function to cancel a previous call to . Because that function is asynchronous, however, it might complete before the operation can be canceled. Therefore, your callback might still be invoked after you call this function.

+
+ + ms702218 + HRESULT MFCancelCreateFile([In] IUnknown* pCancelCookie) + MFCancelCreateFile +
+ + +

Converts a video frame rate into a frame duration.

+
+

The numerator of the frame rate.

+

The denominator of the frame rate.

+

Receives the average duration of a video frame, in 100-nanosecond units.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is useful for calculating time stamps on a sample, given the frame rate.

Also, average time per frame is used in the older and format structures. This function provides a standard conversion so that all components in the pipeline can use consistent values, if they need to translate between the older format structures and the media type attributes used in Media Foundation.

For certain common frame rates, the function gets the frame duration from a look-up table:

Frames per second (floating point)Frames per second (fractional)Average time per frame
59.9460000/1001166833
29.9730000/1001333667
23.97624000/1001417188
6060/1166667
3030/1333333
5050/1200000
2525/1400000
2424/1416667

?

Most video content uses one of the frame rates listed here. For other frame rates, the function calculates the duration.

+
+ + aa370467 + HRESULT MFFrameRateToAverageTimePerFrame([In] unsigned int unNumerator,[In] unsigned int unDenominator,[Out] unsigned longlong* punAverageTimePerFrame) + MFFrameRateToAverageTimePerFrame +
+ + +

This function is not implemented.

+
+

Reserved.

+

Reserved.

+

Reserved.

+

Reserved.

+

Reserved.

+

Reserved.

+

Reserved.

+

Reserved.

+

Reserved.

+

Returns E_FAIL.

+ +

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473801 + HRESULT MFCreateVideoMediaTypeFromBitMapInfoHeader([In] const BITMAPINFOHEADER* pbmihBitMapInfoHeader,[In] unsigned int dwPixelAspectRatioX,[In] unsigned int dwPixelAspectRatioY,[In] MFVideoInterlaceMode InterlaceMode,[In] unsigned longlong VideoFlags,[In] unsigned longlong qwFramesPerSecondNumerator,[In] unsigned longlong qwFramesPerSecondDenominator,[In] unsigned int dwMaxBitRate,[Out] IMFVideoMediaType** ppIVideoMediaType) + MFCreateVideoMediaTypeFromBitMapInfoHeader +
+ + +

Attempts to cancel an asynchronous operation that was scheduled with or .

+
+ No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Because work items are asynchronous, the work-item callback might still be invoked after is called.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms701633 + HRESULT MFCancelWorkItem([In] unsigned longlong Key) + MFCancelWorkItem +
+ + +

Converts an array of 16-bit floating-point numbers into an array of 32-bit floating-point numbers.

+
+

Pointer to an array of float values. The array must contain at least dwCount elements.

+

Pointer to an array of 16-bit floating-point values, typed as WORD values. The array must contain at least dwCount elements.

+

Number of elements in the pSrc array to convert.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The function converts dwCount values in the pSrc array and writes them into the pDest array.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + bb970412 + HRESULT MFConvertFromFP16Array([Out, Buffer] float* pDest,[In, Buffer] const unsigned short* pSrc,[In] unsigned int dwCount) + MFConvertFromFP16Array +
+ + +

Adds information about a Media Foundation transform (MFT) to the registry.

Applications can enumerate the MFT by calling the or function.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The registry entries created by this function are read by the following functions:

FunctionDescription
Enumerates MFTs by media type and category.
Extended version of .
Looks up an MFT by CLSID and retrieves the registry information.

?

This function does not register the CLSID of the MFT for the CoCreateInstance or CoGetClassObject functions.

To remove the entries from the registry, call . If you remove an MFT from the system, you should always call .

The formats given in the pInputTypes and pOutputTypes parameters are intended to help applications search for MFTs by format. Applications can use the or functions to enumerate MFTs that match a particular set of formats.

It is recommended to specify at least one input type in pInputTypes and one output type in the pOutputTypes parameter. Otherwise, the MFT might be skipped in the enumeration.

On 64-bit Windows, the 32-bit version of this function registers the MFT in the 32-bit node of the registry. For more information, see 32-bit and 64-bit Application Data in the Registry.

+
+ + ms705640 + HRESULT MFTRegister([In] GUID clsidMFT,[In] GUID guidCategory,[In] wchar_t* pszName,[In] unsigned int Flags,[In] unsigned int cInputTypes,[In, Buffer, Optional] MFT_REGISTER_TYPE_INFO* pInputTypes,[In] unsigned int cOutputTypes,[In, Buffer, Optional] MFT_REGISTER_TYPE_INFO* pOutputTypes,[In, Optional] IMFAttributes* pAttributes) + MFTRegister +
+ + +

Creates an empty attribute store.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The initial number of elements allocated for the attribute store. The attribute store grows as needed.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Attributes are used throughout Microsoft Media Foundation to configure objects, describe media formats, query object properties, and other purposes. For more information, see Attributes in Media Foundation.

For a complete list of all the defined attribute GUIDs in Media Foundation, see Media Foundation Attributes.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms701878 + HRESULT MFCreateAttributes([Out, Fast] IMFAttributes** ppMFAttributes,[In] unsigned int cInitialSize) + MFCreateAttributes +
+ + +

Converts a Media Foundation audio media type to a structure.

+
+

Pointer to the interface of the media type.

+

Receives a reference to the structure. The caller must release the memory allocated for the structure by calling CoTaskMemFree.

+

Receives the size of the structure.

+

Contains a flag from the enumeration.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

If the wFormatTag member of the returned structure is , you can cast the reference to a structure.

Windows Phone 8.1: This API is supported.

+
+ + ms702177 + HRESULT MFCreateWaveFormatExFromMFMediaType([In] IMFMediaType* pMFType,[Out] void** ppWF,[Out, Optional] unsigned int* pcbSize,[In] unsigned int Flags) + MFCreateWaveFormatExFromMFMediaType +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Video Media Types.]

Returns the FOURCC or value for an uncompressed video format.

+
+ No documentation. +

Returns a FOURCC or value that identifies the video format. If the video format is compressed or not recognized, the return value is .

+ +

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473806 + unsigned int MFGetUncompressedVideoFormat([In] const MFVIDEOFORMAT* pVideoFormat) + MFGetUncompressedVideoFormat +
+ + +

Puts an asynchronous operation on a work queue.

+
+

The identifier for the work queue. This value can specify one of the standard Media Foundation work queues, or a work queue created by the application. For list of standard Media Foundation work queues, see Work Queue Identifiers. To create a new work queue, call or .

+

A reference to the interface of an asynchronous result object. To create the result object, call .

+

Returns an value. Possible values include the following.

Return codeDescription

Success.

Invalid work queue identifier. For more information, see .

The function was not called, or was called.

?

+ +

To invoke the work-item, this function passes pResult to the function. The callback is specified when you create the result object specified by pResult.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697572 + HRESULT MFPutWorkItemEx([In] unsigned int dwQueue,[In] IMFAsyncResult* pResult) + MFPutWorkItemEx +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Video Media Types.]

Creates an structure from a video media type.

+
+ No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + aa473827 + HRESULT MFCreateMFVideoFormatFromMFMediaType([In] IMFMediaType* pMFType,[Out] MFVIDEOFORMAT** ppMFVF,[Out, Optional] unsigned int* pcbSize) + MFCreateMFVideoFormatFromMFMediaType +
+ + +

Enumerates Media Foundation transforms (MFTs) in the registry.

Starting in Windows?7, applications should use the function instead.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function returns a list of all the MFTs in the specified category that match the search criteria given by the pInputType, pOutputType, and pAttributes parameters. Any of those parameters can be null.

If no MFTs match the criteria, the method succeeds but returns the value zero in pcMFTs.

+
+ + ms701774 + HRESULT MFTEnum([In] GUID guidCategory,[In] unsigned int Flags,[In, Optional] MFT_REGISTER_TYPE_INFO* pInputType,[In, Optional] MFT_REGISTER_TYPE_INFO* pOutputType,[In, Optional] IMFAttributes* pAttributes,[Out, Buffer] GUID** ppclsidMFT,[Out] unsigned int* pcMFTs) + MFTEnum +
+ + +

Completes an asynchronous request to associate a work queue with a Multimedia Class Scheduler Service (MMCSS) task.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The unique task identifier.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

Call this function when the function completes asynchronously.

To unregister the work queue from the MMCSS class, call .

+
+ + ms696982 + HRESULT MFEndRegisterWorkQueueWithMMCSS([In] IMFAsyncResult* pResult,[Out] unsigned int* pdwTaskId) + MFEndRegisterWorkQueueWithMMCSS +
+ + +

Retrieves a media type that was wrapped in another media type by the function.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms696190 + HRESULT MFUnwrapMediaType([In] IMFMediaType* pWrap,[Out] IMFMediaType** ppOrig) + MFUnwrapMediaType +
+ + +

Compares a full media type to a partial media type.

+
+

Pointer to the interface of the full media type.

+

Pointer to the interface of the partial media type.

+

If the full media type is compatible with the partial media type, the function returns TRUE. Otherwise, the function returns .

+ +

A pipeline component can return a partial media type to describe a range of possible formats the component might accept. A partial media type has at least a major type , but might be missing some of the other attributes that are needed to fully describe the type. The missing attributes represent "don't care" values for the partial type. For example, a partial video type might be missing the attributes for the width and height of the video.

This function returns TRUE if the following conditions are both true:

  • The partial media type contains a major type .
  • All of the attributes in the partial type exist in the full type and are set to the same value.

Otherwise, the function returns .

+
+ + ms697237 + BOOL MFCompareFullToPartialMediaType([In] IMFMediaType* pMFTypeFull,[In] IMFMediaType* pMFTypePartial) + MFCompareFullToPartialMediaType +
+ + +

Converts the contents of an attribute store to a byte array.

+
+

Pointer to the interface of the attribute store.

+

Pointer to an array that receives the attribute data.

+

Size of the pBuf array, in bytes. To get the required size of the buffer, call .

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

The buffer given in pBuf is too small.

?

+ +

The function skips any attributes with reference values (); they are not stored in the array.

To convert the byte array back into an attribute store, call .

To write an attribute store to a stream, call the function.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms694877 + HRESULT MFGetAttributesAsBlob([In] IMFAttributes* pAttributes,[Out, Buffer] unsigned char* pBuf,[In] unsigned int cbBufSize) + MFGetAttributesAsBlob +
+ + +

Copies an image or image plane from one buffer to another.

+
+

Pointer to the start of the first row of pixels in the destination buffer.

+

Stride of the destination buffer, in bytes.

+

Pointer to the start of the first row of pixels in the source image.

+

Stride of the source image, in bytes.

+

Width of the image, in bytes.

+

Number of rows of pixels to copy.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function copies a single plane of the image. For planar YUV formats, you must call the function once for each plane. In this case, pDest and pSrc must point to the start of each plane.

This function is optimized if the MMX, SSE, or SSE2 instruction sets are available on the processor. The function performs a non-temporal store (the data is written to memory directly without polluting the cache).

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

Windows Phone 8.1: This API is supported.

+
+ + bb970554 + HRESULT MFCopyImage([Out, Buffer] unsigned char* pDest,[In] int lDestStride,[In, Buffer] const unsigned char* pSrc,[In] int lSrcStride,[In] unsigned int dwWidthInBytes,[In] unsigned int dwLines) + MFCopyImage +
+ + +

Registers a Media Foundation transform (MFT) in the caller's process.

+
+

A reference to the interface of a class factory object. The class factory creates the MFT.

+

A that specifies the category of the MFT. For a list of MFT categories, see MFT_CATEGORY.

+

A wide-character null-terminated string that contains the friendly name of the MFT.

+

A bitwise OR of zero or more flags from the _MFT_ENUM_FLAG enumeration.

+

The number of elements in the pInputTypes array.

+

A reference to an array of structures. Each member of the array specifies an input format that the MFT supports. This parameter can be null if cInputTypes is zero.

+

The number of elements in the pOutputTypes array.

+

A reference to an array of structures. Each member of the array defines an output format that the MFT supports. This parameter can be null if cOutputTypes is zero.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The primary purpose of this function is to make an MFT available for automatic topology resolution without making the MFT available to other processes or applications.

After you call this function, the MFT can be enumerated by calling the function with the flag. The MFT can be enumerated from within the same process, but is not visible to other processes.

The pClassFactory parameter specifies a class factory object that creates the MFT. The class factory's IClassFactory::CreateInstance method must return an object that supports the interface.

Note??The function retrieves a list of references. However, the class factory does not need to support the interface. Instead, the function provides an implementation of that wraps the class factory.

To unregister the MFT from the current process, call .

If you need to register an MFT in the Protected Media Path (PMP) process, use the interface.

+
+ + dd388656 + HRESULT MFTRegisterLocal([In] IClassFactory* pClassFactory,[In] const GUID& guidCategory,[In] const wchar_t* pszName,[In] unsigned int Flags,[In] unsigned int cInputTypes,[In, Buffer, Optional] const MFT_REGISTER_TYPE_INFO* pInputTypes,[In] unsigned int cOutputTypes,[In, Buffer, Optional] const MFT_REGISTER_TYPE_INFO* pOutputTypes) + MFTRegisterLocal +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Video Media Types.]

Creates a video media type from an structure.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Instead of using the structure to initialize a video media type, you can call and set the media type attributes directly.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473781 + HRESULT MFCreateVideoMediaType([In] const MFVIDEOFORMAT* pVideoFormat,[Out] IMFVideoMediaType** ppIVideoMediaType) + MFCreateVideoMediaType +
+ + +

Gets information from the registry about a Media Foundation transform (MFT).

+
+

The CLSID of the MFT.

+

Receives a reference to a wide-character string containing the friendly name of the MFT. The caller must free the string by calling CoTaskMemFree. This parameter can be null.

+

Receives a reference to an array of structures. Each member of the array describes an input format that the MFT supports. The caller must free the array by calling CoTaskMemFree. This parameter can be null.

+

Receives the number of elements in the ppInputTypes array. If ppInputTypes is null, this parameter is ignored and can be null.

+

Receives a reference to an array of structures. Each member of the array describes an output format that the MFT supports. The caller must free the array by calling CoTaskMemFree. This parameter can be null.

+

Receives the number of elements in the ppOutputType array. If ppOutputTypes is null, this parameter is ignored and can be null.

+

Receives a reference to the interface of an attribute store. The caller must release the interface. The attribute store might contain attributes that are stored in the registry for the specified MFT. (For more information, see .) If no attributes are stored in the registry for this MFT, the attribute store is empty.

This parameter can be null.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms703830 + HRESULT MFTGetInfo([In] GUID clsidMFT,[Out, Optional] wchar_t** pszName,[Out, Buffer, Optional] MFT_REGISTER_TYPE_INFO** ppInputTypes,[Out, Optional] unsigned int* pcInputTypes,[Out, Buffer, Optional] MFT_REGISTER_TYPE_INFO** ppOutputTypes,[Out, Optional] unsigned int* pcOutputTypes,[Out, Optional] IMFAttributes** ppAttributes) + MFTGetInfo +
+ + +

Completes an asynchronous request to unregister a work queue from a Multimedia Class Scheduler Service (MMCSS) task.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

Call this function when the function completes asynchronously.

+
+ + ms704803 + HRESULT MFEndUnregisterWorkQueueWithMMCSS([In] IMFAsyncResult* pResult) + MFEndUnregisterWorkQueueWithMMCSS +
+ + +

Unregisters a work queue from a Multimedia Class Scheduler Service (MMCSS) task.

+
+

The identifier of the work queue. For private work queues, the identifier is returned by the function. For platform work queues, see Work Queue Identifiers.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function unregisters a work queue that was associated with an MMCSS class through the function.

This function is asynchronous. When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

+
+ + ms704613 + HRESULT MFBeginUnregisterWorkQueueWithMMCSS([In] unsigned int dwWorkQueueId,[In] IMFAsyncCallback* pDoneCallback,[In] IUnknown* pDoneState) + MFBeginUnregisterWorkQueueWithMMCSS +
+ + +

Begins an asynchronous request to create a byte stream from a file.

+
+

The requested access mode, specified as a member of the enumeration.

+

The behavior of the function if the file already exists or does not exist, specified as a member of the enumeration.

+

Bitwise OR of values from the enumeration.

+

Pointer to a null-terminated string containing the file name.

+

Pointer to the interface of a callback object. The caller must implement this interface

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

Receives an reference or the value null. If the value is not null, you can cancel the asynchronous operation by passing this reference to the function. The caller must release the interface. This parameter is optional and can be null.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

When the request is completed, the callback object's method is called. The callback object should then call the function to get a reference to the byte stream.

+
+ + ms702074 + HRESULT MFBeginCreateFile([In] MF_FILE_ACCESSMODE AccessMode,[In] MF_FILE_OPENMODE OpenMode,[In] MF_FILE_FLAGS fFlags,[In] const wchar_t* pwszFilePath,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState,[Out] IUnknown** ppCancelCookie) + MFBeginCreateFile +
+ + +

Queries whether a FOURCC code or value is a YUV format.

+
+

FOURCC code or value.

+

The function returns one of the following values.

Return codeDescription
TRUE

The value specifies a YUV format.

The value does not specify a recognized YUV format.

?

+ +

This function checks whether Format specifies a YUV format. Not every YUV format is recognized by this function. However, if a YUV format is not recognized by this function, it is probably not supported for video rendering or DirectX video acceleration (DXVA).

+
+ + ms704010 + BOOL MFIsFormatYUV([In] unsigned int Format) + MFIsFormatYUV +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Extended Color Information.]

Sets the extended color information in a structure.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function sets the following fields in the structure.

  • videoInfo.
  • videoInfo.
  • videoInfo.
  • videoInfo.
  • videoInfo.
  • videoInfo.SourceChromaSubsampling

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + bb970494 + HRESULT MFConvertColorInfoFromDXVA([InOut] MFVIDEOFORMAT* pToFormat,[In] unsigned int dwFromDXVA) + MFConvertColorInfoFromDXVA +
+ + +

Calculates the frame rate, in frames per second, from the average duration of a video frame.

+
+

The average duration of a video frame, in 100-nanosecond units.

+

Receives the numerator of the frame rate.

+

Receives the denominator of the frame rate.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

Average time per frame is used in the older and format structures. This function provides a standard conversion so that all components in the pipeline can use consistent values, if they need to translate between the older format structures and the media type attributes used in Media Foundation.

This function uses a look-up table for certain common durations. The table is listed in the Remarks section for the function.

+
+ + bb970468 + HRESULT MFAverageTimePerFrameToFrameRate([In] unsigned longlong unAverageTimePerFrame,[Out] unsigned int* punNumerator,[Out] unsigned int* punDenominator) + MFAverageTimePerFrameToFrameRate +
+ + +

Completes an asynchronous request to create a byte stream from a file.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the Invoke method.

+

Receives a reference to the interface of the byte stream. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

Call this function when the function completes asynchronously.

+
+ + ms703984 + HRESULT MFEndCreateFile([In] IMFAsyncResult* pResult,[Out] IMFByteStream** ppFile) + MFEndCreateFile +
+ + +

Locks a work queue.

+
+

The identifier for the work queue. The identifier is returned by the function.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function prevents the function from shutting down the work queue. Use this function to ensure that asynchronous operations on the work queue complete gracefully before the platform shuts down. The function blocks until the work queue is unlocked, or until a fixed wait period has elapsed. (The wait period is a few seconds.)

Call to unlock the work queue. Each call to must be matched by a corresponding call to .

Note??The function implicitly locks the work queue that it creates.

Windows Phone 8.1: This API is supported.

+
+ + aa367740 + HRESULT MFLockWorkQueue([In] unsigned int dwWorkQueue) + MFLockWorkQueue +
+ + +

Creates a video media type from a structure.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If the function succeeds, it returns . Otherwise, it returns an error code.

+ + dd388121 + HRESULT MFCreateVideoMediaTypeFromBitMapInfoHeaderEx([In, Buffer] const BITMAPINFOHEADER* pbmihBitMapInfoHeader,[In] unsigned int cbBitMapInfoHeader,[In] unsigned int dwPixelAspectRatioX,[In] unsigned int dwPixelAspectRatioY,[In] MFVideoInterlaceMode InterlaceMode,[In] unsigned longlong VideoFlags,[In] unsigned int dwFramesPerSecondNumerator,[In] unsigned int dwFramesPerSecondDenominator,[In] unsigned int dwMaxBitRate,[Out] IMFVideoMediaType** ppIVideoMediaType) + MFCreateVideoMediaTypeFromBitMapInfoHeaderEx +
+ + +

Creates an asynchronous result object. Use this function if you are implementing an asynchronous method.

+
+

Pointer to the object stored in the asynchronous result. This reference is returned by the method. This parameter can be null.

+

Pointer to the interface. This interface is implemented by the caller of the asynchronous method.

+

Pointer to the interface of a state object. This value is provided by the caller of the asynchronous method. This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

To invoke the callback specified in pCallback, call the function.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms698952 + HRESULT MFCreateAsyncResult([In] IUnknown* punkObject,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState,[Out] IMFAsyncResult** ppAsyncResult) + MFCreateAsyncResult +
+ + +

Initializes a media type from a structure.

+
+

Pointer to the interface of the media type to initialize. To create the uninitialized media type object, call .

+

Pointer to a structure that describes the media type. The caller must fill in the structure members before calling this function.

+

Size of the structure, in bytes.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

Windows Phone 8.1: This API is supported.

+
+ + ms700801 + HRESULT MFInitMediaTypeFromWaveFormatEx([In] IMFMediaType* pMFType,[In, Buffer] const WAVEFORMATEX* pWaveFormat,[In] unsigned int cbBufSize) + MFInitMediaTypeFromWaveFormatEx +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Extended Color Information.]

Converts the extended color information from an to the equivalent DirectX Video Acceleration (DXVA) color information.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + bb970405 + HRESULT MFConvertColorInfoToDXVA([Out] unsigned int* pdwToDXVA,[In] const MFVIDEOFORMAT* pFromFormat) + MFConvertColorInfoToDXVA +
+ + +

Creates a byte stream that is backed by a temporary local file.

+
+

The requested access mode, specified as a member of the enumeration.

+

The behavior of the function if the file already exists or does not exist, specified as a member of the enumeration.

+

Bitwise OR of values from the enumeration.

+

Receives a reference to the interface of the byte stream. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function creates a file in the system temporary folder, and then returns a byte stream object for that file. The full path name of the file is storted in the attribute. The file is created with the FILE_FLAG_DELETE_ON_CLOSE flag, and is deleted after the byte stream is released.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms695209 + HRESULT MFCreateTempFile([In] MF_FILE_ACCESSMODE AccessMode,[In] MF_FILE_OPENMODE OpenMode,[In] MF_FILE_FLAGS fFlags,[Out] IMFByteStream** ppIByteStream) + MFCreateTempFile +
+ + +

Retrieves the size of the buffer needed for the function.

+
+ No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

Use this function to find the size of the array that is needed for the function.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms697064 + HRESULT MFGetAttributesAsBlobSize([In] IMFAttributes* pAttributes,[Out] unsigned int* pcbBufSize) + MFGetAttributesAsBlobSize +
+ + +

Gets a reference to the Microsoft Media Foundation plug-in manager.

+
+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + dd388507 + HRESULT MFGetPluginControl([Out] IMFPluginControl** ppPluginControl) + MFGetPluginControl +
+ + +

Retrieves the timer interval for the function.

+
+ No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms694873 + HRESULT MFGetTimerPeriodicity([Out] unsigned int* Periodicity) + MFGetTimerPeriodicity +
+ + +

Creates a new work queue.

+
+

Receives an identifier for the work queue.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_FAIL

The application exceeded the maximum number of work queues.

The application did not call , or the application has already called .

?

+ +

When you are done using the work queue, call .

+
+ + ms700204 + HRESULT MFAllocateWorkQueue([Out] unsigned int* pdwWorkQueue) + MFAllocateWorkQueue +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Video Media Types.]

Initializes an structure for an uncompressed RGB video format.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function fills in some reasonable default values for the specified RGB format.

Developers are encouraged to use media type attributes instead of using the structure. See Media Type Attributes.

In general, you should avoid calling this function. If you know all of the format details, you can fill in the structure without this function. If you do not know all of the format details, attributes are preferable to using the structure.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473797 + HRESULT MFInitVideoFormat_RGB([In] MFVIDEOFORMAT* pVideoFormat,[In] unsigned int dwWidth,[In] unsigned int dwHeight,[In] unsigned int D3Dfmt) + MFInitVideoFormat_RGB +
+ + +

Converts an array of 32-bit floating-point numbers into an array of 16-bit floating-point numbers.

+
+

Pointer to an array of 16-bit floating-point values, typed as WORD values. The array must contain at least dwCount elements.

+

Pointer to an array of float values. The array must contain at least dwCount elements.

+

Number of elements in the pSrc array to convert.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The function converts the values in the pSrc array and writes them into the pDest array.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473816 + HRESULT MFConvertToFP16Array([Out, Buffer] unsigned short* pDest,[In, Buffer] const float* pSrc,[In] unsigned int dwCount) + MFConvertToFP16Array +
+ + +

Cancels a callback function that was set by the function.

+
+ No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

The callback is dispatched on another thread, and this function does not attempt to synchronize with the callback thread. Therefore, it is possible for the callback to be invoked after this function returns.

+
+ + ms704741 + HRESULT MFRemovePeriodicCallback([In] unsigned int dwKey) + MFRemovePeriodicCallback +
+ + +

Sets a callback function to be called at a fixed interval.

+
+

Pointer to the callback function, of type MFPERIODICCALLBACK.

+

Pointer to a caller-provided object that implements , or null. This parameter is passed to the callback function.

+

Receives a key that can be used to cancel the callback. To cancel the callback, call and pass this key as the dwKey parameter.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

To get the timer interval for the periodic callback, call .

+
+ + ms704699 + HRESULT MFAddPeriodicCallback([In] __function__stdcall* Callback,[In] IUnknown* pContext,[Out, Optional] unsigned int* pdwKey) + MFAddPeriodicCallback +
+ + +

Initializes the contents of an attribute store from a byte array.

+
+

Pointer to the interface of the attribute store.

+

Pointer to the array that contains the initialization data.

+

Size of the pBuf array, in bytes.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_INVALIDARG

The buffer is not valid.

?

+ +

Use this function to deserialize an attribute store that was serialized with the function.

This function deletes any attributes that were previously stored in pAttributes.

Windows Phone 8.1: This API is supported.

+
+ + ms703978 + HRESULT MFInitAttributesFromBlob([In] IMFAttributes* pAttributes,[In, Buffer] const unsigned char* pBuf,[In] unsigned int cbBufSize) + MFInitAttributesFromBlob +
+ + +

Puts an asynchronous operation on a work queue.

+
+

The identifier for the work queue. This value can specify one of the standard Media Foundation work queues, or a work queue created by the application. For list of standard Media Foundation work queues, see Work Queue Identifiers. To create a new work queue, call or .

+

A reference to the interface. The caller must implement this interface.

+

A reference to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

Returns an value. Possible values include the following.

Return codeDescription

Success.

Invalid work queue. For more information, see .

The function was not called, or was called.

?

+ +

This function creates an asynchronous result object and puts the result object on the work queue. The work queue calls the method specified by pCallback.

+
+ + ms702164 + HRESULT MFPutWorkItem([In] unsigned int dwQueue,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + MFPutWorkItem +
+ + +

Unregisters a Media Foundation transform (MFT).

+
+

The CLSID of the MFT.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function removes the registry entries created by the function.

It is safe to call twice with the same CLSID. If the CLSID is not found in the registry, the function succeeds and does nothing.

+
+ + ms696199 + HRESULT MFTUnregister([In] GUID clsidMFT) + MFTUnregister +
+ + +

Retrieves the Multimedia Class Scheduler Service (MMCSS) task identifier currently associated with this work queue.

+
+

Identifier for the work queue. The identifier is retrieved by the function.

+

Receives the task identifier.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

To associate a work queue with an MMCSS task, call .

+
+ + ms704780 + HRESULT MFGetWorkQueueMMCSSTaskId([In] unsigned int dwWorkQueueId,[Out] unsigned int* pdwTaskId) + MFGetWorkQueueMMCSSTaskId +
+ + +

Converts a Media Foundation media buffer into a buffer that is compatible with DirectX Media Objects (DMOs).

+
+

Pointer to the interface of the sample that contains the Media Foundation buffer. This parameter can be null.

+

Pointer to the interface of the Media Foundation buffer.

+

Offset in bytes from the start of the Media Foundation buffer. This offset defines where the DMO buffer starts. If this parameter is zero, the DMO buffer starts at the beginning of the Media Foundation buffer.

+

Receives a reference to the interface. This interface is documented in the DirectShow SDK documentation. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_INVALIDARG

Invalid argument. The pIMFMediaBuffer parameter must not be null.

?

+ +

The DMO buffer created by this function also exposes the interface. If pIMFSample is null, all of the methods return . Otherwise, they call through to the pIMFSample reference.

If the Media Foundation buffer specified by pIMFMediaBuffer exposes the interface, the DMO buffer also exposes .

+
+ + ms696233 + HRESULT MFCreateLegacyMediaBufferOnMFMediaBuffer([In, Optional] IMFSample* pSample,[In] IMFMediaBuffer* pMFMediaBuffer,[In] unsigned int cbOffset,[Out] IMediaBuffer** ppMediaBuffer) + MFCreateLegacyMediaBufferOnMFMediaBuffer +
+ + +

Creates a media buffer that wraps an existing media buffer. The new media buffer points to the same memory as the original media buffer, or to an offset from the start of the memory.

+
+

A reference to the interface of the original media buffer.

+

The start of the new buffer, as an offset in bytes from the start of the original buffer.

+

The size of the new buffer. The value of cbOffset + dwLength must be less than or equal to the size of valid data the original buffer. (The size of the valid data is returned by the method.)

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_INVALIDARG

The requested offset or the requested length is not valid.

?

+ +

The maximum size of the wrapper buffer is limited to the size of the valid data in the original buffer. This might be less than the allocated size of the original buffer. To set the size of the valid data, call .

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + aa370450 + HRESULT MFCreateMediaBufferWrapper([In] IMFMediaBuffer* pBuffer,[In] unsigned int cbOffset,[In] unsigned int dwLength,[Out] IMFMediaBuffer** ppBuffer) + MFCreateMediaBufferWrapper +
+ + +

Unlocks the Media Foundation platform after it was locked by a call to the function.

+
+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

The application must call once for every call to .

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms703879 + HRESULT MFUnlockPlatform() + MFUnlockPlatform +
+ + +

Retrieves the image size for a video format. Given a structure, this function calculates the correct value of the biSizeImage member.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_INVALIDARG

The structure is not valid, or the value of cbBufSize is too small.

?

+ +

Before calling this function, you must set at least the following members of the structure:

  • biCompression
  • biBitCount
  • biWidth
  • biHeight

Also, if biCompression is BI_BITFIELDS, the structure must be followed by an array of color masks.

This function fails if the structure describes a format that is not a video format. For example, it fails if biCompresson is BI_JPEG or BI_PNG .

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697582 + HRESULT MFCalculateBitmapImageSize([In, Buffer] const BITMAPINFOHEADER* pBMIH,[In] unsigned int cbBufSize,[Out] unsigned int* pcbImageSize,[Out, Optional] BOOL* pbKnown) + MFCalculateBitmapImageSize +
+ + +

Creates an event queue.

+
+

Receives a reference to the interface of the event queue. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function creates a helper object that you can use to implement the interface.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms695252 + HRESULT MFCreateEventQueue([Out] IMFMediaEventQueue** ppMediaEventQueue) + MFCreateEventQueue +
+ + +

Creates a media buffer object that manages a Direct3D 9 surface.

+
+

Identifies the type of Direct3D 9 surface. Currently this value must be IID_IDirect3DSurface9.

+

A reference to the interface of the DirectX surface.

+

If TRUE, the buffer's method copies the buffer into a bottom-up format. The bottom-up format is compatible with GDI for uncompressed RGB images. If this parameter is , the ContiguousCopyTo method copies the buffer into a top-down format, which is compatible with DirectX.

For more information about top-down versus bottom-up images, see Image Stride.

+

Receives a reference to the interface. The caller must release the buffer.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

?

+ +

This function creates a media buffer object that holds a reference to the Direct3D surface specified in punkSurface. Locking the buffer gives the caller access to the surface memory. When the buffer object is destroyed, it releases the surface. For more information about media buffers, see Media Buffers.

Note??This function does not allocate the Direct3D surface itself.

The buffer object created by this function also exposes the interface. For more information, see DirectX Surface Buffer.

This function does not support DXGI surfaces.

+
+ + ms703840 + HRESULT MFCreateDXSurfaceBuffer([In] const GUID& riid,[In] IUnknown* punkSurface,[In] BOOL fBottomUpWhenLinear,[Out] IMFMediaBuffer** ppBuffer) + MFCreateDXSurfaceBuffer +
+ + +

Associates a work queue with a Multimedia Class Scheduler Service (MMCSS) task.

+
+

The identifier of the work queue. For private work queues, the identifier is returned by the function. For platform work queues, see Work Queue Identifiers.

+

The name of the MMCSS task.For more information, see Multimedia Class Scheduler Service.

+

The unique task identifier. To obtain a new task identifier, set this value to zero.

+

A reference to the interface of a callback object. The caller must implement this interface.

+

A reference to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function is asynchronous. When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

To unregister the work queue from the MMCSS task, call .

+
+ + ms701600 + HRESULT MFBeginRegisterWorkQueueWithMMCSS([In] unsigned int dwWorkQueueId,[In] const wchar_t* wszClass,[In] unsigned int dwTaskId,[In] IMFAsyncCallback* pDoneCallback,[In] IUnknown* pDoneState) + MFBeginRegisterWorkQueueWithMMCSS +
+ + +

Creates a partial video media type with a specified subtype.

+
+

Pointer to a that specifies the subtype. See Video Subtype GUIDs.

+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function creates a media type and sets the major type equal to and the subtype equal to the value specified in pAMSubtype.

You can get the same result with the following steps:

  1. Call . This function returns a reference to the interface.
  2. Set the attribute to .
  3. Set the attribute to the subtype.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473791 + HRESULT MFCreateVideoMediaTypeFromSubtype([In] const GUID* pAMSubtype,[Out] IMFVideoMediaType** ppIVideoMediaType) + MFCreateVideoMediaTypeFromSubtype +
+ + +

Creates an empty media sample.

+
+

Receives a reference to the interface of the media sample. The caller must release the interface.

+ +

Initially the sample does not contain any media buffers.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms702276 + HRESULT MFCreateSample([Out] IMFSample** ppIMFSample) + MFCreateSample +
+ + +

Creates a Media Foundation media type from another format representation.

+
+

that specifies which format representation to convert. The following value is defined.

Description
AM_MEDIA_TYPE_REPRESENTATIONConvert a DirectShow structure.

?

+

Pointer to a buffer that contains the format representation to convert. The layout of the buffer depends on the value of guidRepresentation.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

The specified in guidRepresentation is not supported.

?

+ +

If the original format is a DirectShow audio media type, and the format type is not recognized, the function sets the following attributes on the converted media type.

AttributeDescription
Contains the format type .
Contains the format block.

?

+
+ + aa369931 + HRESULT MFCreateMediaTypeFromRepresentation([In] GUID guidRepresentation,[In] void* pvRepresentation,[Out] IMFMediaType** ppIMediaType) + MFCreateMediaTypeFromRepresentation +
+ + +

Calculates the minimum surface stride for a video format.

+
+

FOURCC code or value that specifies the video format. If you have a video subtype , you can use the first DWORD of the subtype.

+

Width of the image, in pixels.

+

Receives the minimum surface stride, in pixels.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function calculates the minimum stride needed to hold the image in memory. Use this function if you are allocating buffers in system memory. Surfaces allocated in video memory might require a larger stride, depending on the graphics card.

If you are working with a DirectX surface buffer, use the method to find the surface stride.

For planar YUV formats, this function returns the stride for the Y plane. Depending on the format, the chroma planes might have a different stride.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473720 + HRESULT MFGetStrideForBitmapInfoHeader([In] unsigned int format,[In] unsigned int dwWidth,[Out] int* pStride) + MFGetStrideForBitmapInfoHeader +
+ + +

Registers a Media Foundation transform (MFT) in the caller's process.

+
+

The class identifier (CLSID) of the MFT.

+

A that specifies the category of the MFT. For a list of MFT categories, see MFT_CATEGORY.

+

A wide-character null-terminated string that contains the friendly name of the MFT.

+

A bitwise OR of zero or more flags from the _MFT_ENUM_FLAG enumeration.

+

The number of elements in the pInputTypes array.

+

A reference to an array of structures. Each member of the array specifies an input format that the MFT supports. This parameter can be null if cInputTypes is zero.

+

The number of elements in the pOutputTypes array.

+

A reference to an array of structures. Each member of the array defines an output format that the MFT supports. This parameter can be null if cOutputTypes is zero.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The primary purpose of this function is to make an MFT available for automatic topology resolution without making the MFT available to other processes or applications.

After you call this function, the MFT can be enumerated by calling the function with the flag. The MFT can be enumerated from within the same process, but is not visible to other processes.

To unregister the MFT from the current process, call .

If you need to register an MFT in the Protected Media Path (PMP) process, use the interface.

+
+ + dd388657 + HRESULT MFTRegisterLocalByCLSID([In] const GUID& clisdMFT,[In] const GUID& guidCategory,[In] const wchar_t* pszName,[In] unsigned int Flags,[In] unsigned int cInputTypes,[In, Buffer, Optional] const MFT_REGISTER_TYPE_INFO* pInputTypes,[In] unsigned int cOutputTypes,[In, Buffer, Optional] const MFT_REGISTER_TYPE_INFO* pOutputTypes) + MFTRegisterLocalByCLSID +
+ + +

Frees a block of memory that was allocated by calling the function.

+
+ No documentation. + + aa473826 + void MFHeapFree([In] void* pv) + MFHeapFree +
+ + +

Allocates a block of memory.

+
+

Number of bytes to allocate.

+

Zero or more flags. For a list of valid flags, see HeapAlloc in the Windows SDK documentation.

+

Reserved. Set to null.

+

Reserved. Set to zero.

+

Reserved. Set to eAllocationTypeIgnore.

+

If the function succeeds, it returns a reference to the allocated memory block. If the function fails, it returns null.

+ +

In the current version of Media Foundation, this function is equivalent to calling the HeapAlloc function and specifying the heap of the calling process.

To free the allocated memory, call .

+
+ + aa473790 + void* MFHeapAlloc([In] unsigned int nSize,[In] unsigned int dwFlags,[In, Optional] char* pszFile,[In] int line,[In] EAllocationType eat) + MFHeapAlloc +
+ + +

Creates an empty collection object.

+
+

Receives a reference to the collection object's interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms698852 + HRESULT MFCreateCollection([Out] IMFCollection** ppIMFCollection) + MFCreateCollection +
+ + +

Schedules an asynchronous operation to be completed after a specified interval.

+
+

Pointer to the interface. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

Time-out interval, in milliseconds. Set this parameter to a negative value. The callback is invoked after ?Timeout milliseconds. For example, if Timeout is ?5000, the callback is invoked after 5000 milliseconds.

+

Receives a key that can be used to cancel the timer. To cancel the timer, call and pass this key in the Key parameter.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function creates an asynchronous result object. When the timer interval elapses, the method specified by pCallback is called.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703045 + HRESULT MFScheduleWorkItem([In] IMFAsyncCallback* pCallback,[In] IUnknown* pState,[In] longlong Timeout,[Out, Optional] unsigned longlong* pKey) + MFScheduleWorkItem +
+ + +

Retrieves the Multimedia Class Scheduler Service (MMCSS) class currently associated with this work queue.

+
+

Identifier for the work queue. The identifier is retrieved by the function.

+

Pointer to a buffer that receives the name of the MMCSS class. This parameter can be null.

+

On input, specifies the size of the pwszClass buffer, in characters. On output, receives the required size of the buffer, in characters. The size includes the terminating null character.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

The pwszClass buffer is too small to receive the task name.

?

+ +

If the work queue is not associated with an MMCSS task, the function retrieves an empty string.

To associate a work queue with an MMCSS task, call .

+
+ + ms701582 + HRESULT MFGetWorkQueueMMCSSClass([In] unsigned int dwWorkQueueId,[Out, Buffer, Optional] wchar_t* pwszClass,[InOut] unsigned int* pcchClass) + MFGetWorkQueueMMCSSClass +
+ + +

Retrieves the image size, in bytes, for an uncompressed video format.

+
+

FOURCC code or value that specifies the video format.

+

Width of the image, in pixels.

+

Height of the image, in pixels.

+

Receives the size of one frame, in bytes. If the format is compressed or is not recognized, this value is zero.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function is equivalent to the function.

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll.

+
+ + aa473798 + HRESULT MFGetPlaneSize([In] unsigned int format,[In] unsigned int dwWidth,[In] unsigned int dwHeight,[Out] unsigned int* pdwPlaneSize) + MFGetPlaneSize +
+ + +

Invokes a callback method to complete an asynchronous operation.

+
+

Pointer to the interface. To create this object, call .

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

Invalid work queue. For more information, see .

The function was called to shut down the Media Foundation platform.

?

+ +

If you are implementing an asynchronous method, use this function to invoke the caller's method.

The callback is invoked from a Media Foundation work queue. For more information, see Writing an Asynchronous Method.

The function shuts down the work queue threads, so the callback is not guaranteed to be invoked after is called.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms695400 + HRESULT MFInvokeCallback([In] IMFAsyncResult* pAsyncResult) + MFInvokeCallback +
+ + +

Shuts down the Microsoft Media Foundation platform. Call this function once for every call to . Do not call this function from work queue threads.

+
+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms694273 + HRESULT MFShutdown() + MFShutdown +
+ + +

Retrieves the image size, in bytes, for an uncompressed video format.

+
+

Media subtype for the video format. For a list of subtypes, see Media Type GUIDs.

+

Width of the image, in pixels.

+

Height of the image, in pixels.

+

Receives the size of each frame, in bytes. If the format is compressed or is not recognized, the value is zero.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + bb970318 + HRESULT MFCalculateImageSize([In] const GUID& guidSubtype,[In] unsigned int unWidth,[In] unsigned int unHeight,[Out] unsigned int* pcbImageSize) + MFCalculateImageSize +
+ + +

Gets the merit value of a hardware codec.

+
+

A reference to the interface of the Media Foundation transform (MFT) that represents the codec.

+

The size, in bytes, of the verifier array.

+

The address of a buffer that contains one of the following:

  • The class identifier (CLSID) of the MFT.
  • A null-terminated wide-character string that contains the symbol link for the underlying hardware device. Include the size of the terminating null in the value of cbVerifier.
+

Receives the merit value.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The function fails if the MFT does not represent a hardware device with a valid Output Protection Manager (OPM) certificate.

+
+ + dd388506 + HRESULT MFGetMFTMerit([InOut] IUnknown* pMFT,[In] unsigned int cbVerifier,[In, Buffer] const unsigned char* verifier,[Out] unsigned int* merit) + MFGetMFTMerit +
+ + +

Creates a media type that wraps another media type.

+
+

A reference to the interface of the media type to wrap in a new media type.

+

A that specifies the major type for the new media type. For a list of possible values, see Major Media Types.

+

A that specifies the subtype for the new media type. For possible values, see:

  • Audio Subtypes
  • Video Subtypes

Applications can define custom subtype GUIDs.

+

Receives a reference to the interface of the new media type that wraps the original media type. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The original media type (pOrig) is stored in the new media type under the attribute. To extract the original media type, call .

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms701782 + HRESULT MFWrapMediaType([In] IMFMediaType* pOrig,[In] const GUID& MajorType,[In] const GUID& SubType,[Out] IMFMediaType** ppWrap) + MFWrapMediaType +
+ + +

Validates the size of a buffer for a video format block.

+
+

that specifies the type of format block. It must be one of the following values:

FORMAT_DvInfo
FORMAT_MFVideoFormat
FORMAT_MPEG2Video
FORMAT_MPEGStreams
FORMAT_MPEGVideo
FORMAT_VideoInfo
FORMAT_VideoInfo2
FORMAT_WaveFormatEx
+

Pointer to a buffer that contains the format block.

+

Size of the pBlock buffer, in bytes.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The buffer that contains the format block is large enough.

The buffer that contains the format block is too small, or the format block is not valid.

This function does not support the specified format type.

?

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698993 + HRESULT MFValidateMediaTypeSize([In] GUID FormatType,[In, Buffer, Optional] unsigned char* pBlock,[In] unsigned int cbSize) + MFValidateMediaTypeSize +
+ + +

Schedules an asynchronous operation to be completed after a specified interval.

+
+

Pointer to the interface of an asynchronous result object. To create the result object, call .

+

Time-out interval, in milliseconds. Set this parameter to a negative value. The callback is invoked after ?Timeout milliseconds. For example, if Timeout is ?5000, the callback is invoked after 5000 milliseconds.

+

Receives a key that can be used to cancel the timer. To cancel the timer, call and pass this key in the Key parameter.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

When the timer interval elapses, the timer calls with the pResult reference to invoke the asynchronous callback. The callback is specified when you create the result object.

+
+ + ms702259 + HRESULT MFScheduleWorkItemEx([In] IMFAsyncResult* pResult,[In] longlong Timeout,[Out, Optional] unsigned longlong* pKey) + MFScheduleWorkItemEx +
+ + +

Allocates system memory with a specified byte alignment and creates a media buffer to manage the memory.

+
+

Size of the buffer, in bytes.

+

Specifies the memory alignment for the buffer. Use one of the following constants.

ValueMeaning
MF_1_BYTE_ALIGNMENT
0x00000000

Align to 1 bytes.

MF_2_BYTE_ALIGNMENT
0x00000001

Align to 2 bytes.

MF_4_BYTE_ALIGNMENT
0x00000003

Align to 4 bytes.

MF_8_BYTE_ALIGNMENT
0x00000007

Align to 8 bytes.

MF_16_BYTE_ALIGNMENT
0x0000000F

Align to 16 bytes.

MF_32_BYTE_ALIGNMENT
0x0000001F

Align to 32 bytes.

MF_64_BYTE_ALIGNMENT
0x0000003F

Align to 64 bytes.

MF_128_BYTE_ALIGNMENT
0x0000007F

Align to 128 bytes.

MF_256_BYTE_ALIGNMENT
0x000000FF

Align to 256 bytes.

MF_512_BYTE_ALIGNMENT
0x000001FF

Align to 512 bytes.

?

+

Receives a reference to the interface of the media buffer. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

When the media buffer object is destroyed, it releases the allocated memory.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + bb970523 + HRESULT MFCreateAlignedMemoryBuffer([In] unsigned int cbMaxLength,[In] unsigned int cbAligment,[Out] IMFMediaBuffer** ppBuffer) + MFCreateAlignedMemoryBuffer +
+ + +

Unlocks a work queue.

+
+

Identifier for the work queue to be unlocked. The identifier is returned by the function.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

The application must call once for every call to and then once for every call to .

Windows Phone 8.1: This API is supported.

+
+ + aa372543 + HRESULT MFUnlockWorkQueue([In] unsigned int dwWorkQueue) + MFUnlockWorkQueue +
+ + +

Blocks the function.

+
+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function prevents work queue threads from being shut down when is called. Use this function to ensure that asynchronous operations complete gracefully before the platform shuts down.

This function holds a lock on the Media Foundation platform. To unlock the platform, call . The application must call once for every call to .

The function blocks until the platform is unlocked, or until a fixed wait period has elapsed. (The wait period is a few seconds.) To avoid memory leaks, the application should unlock the platform before the wait period ends. For example, cancel any asynchronous operations that are waiting to complete and are holding a lock on the platform.

The default implementation of the interface automatically locks the Media Foundation platform when the result object is created. Releasing the interface unlocks the platform. Therefore, in most cases your application does not need to lock the platform directly. For more information, see Work Queues.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms693588 + HRESULT MFLockPlatform() + MFLockPlatform +
+ + +

Allocates system memory and creates a media buffer to manage it.

+
+

Size of the buffer, in bytes.

+

Receives a reference to the interface of the media buffer. The caller must release the interface.

+ +

The function allocates a buffer with a 1-byte memory alignment. To allocate a buffer that is aligned to a larger memory boundary, call .

When the media buffer object is destroyed, it releases the allocated memory.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms695212 + HRESULT MFCreateMemoryBuffer([In] unsigned int cbMaxLength,[Out] IMFMediaBuffer** ppBuffer) + MFCreateMemoryBuffer +
+ + +

Unregisters one or more Media Foundation transforms (MFTs) from the caller's process.

+
+

A reference to the interface of a class factory object. This parameter can be null.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

HRESULT_FROM_WIN32()

The MFT specified by the pClassFactory parameter was not registered in this process.

?

+ +

Use this function to unregister a local MFT that was previously registered through the function.

If the pClassFactory parameter is null, all local MFTs in the process are unregistered. Otherwise, the function unregisters the MFT associated with the class factory specified by the pClassFactory parameter. In that case, the pClassFactory parameter should equal a reference value that was previously passed to the function.

+
+ + dd388658 + HRESULT MFTUnregisterLocal([In, Optional] IClassFactory* pClassFactory) + MFTUnregisterLocal +
+ + +

Creates a media event object.

+
+

The event type. See . For a list of event types, see Media Foundation Events.

+

The extended type. See . If the event type does not have an extended type, use the value GUID_NULL.

+

The event status. See

+

The value associated with the event, if any. See . This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms697521 + HRESULT MFCreateMediaEvent([In] unsigned int met,[In] const GUID& guidExtendedType,[In] HRESULT hrStatus,[In, Optional] const PROPVARIANT* pvValue,[Out] IMFMediaEvent** ppEvent) + MFCreateMediaEvent +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Video Media Types.]

Initializes an structure for a standard video format such as DVD, analog television, or ATSC digital television.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + aa473783 + HRESULT MFInitVideoFormat([In] MFVIDEOFORMAT* pVideoFormat,[In] MFStandardVideoFormat type) + MFInitVideoFormat +
+ + +

Calculates ((a * b) + d) / c, where each term is a 64-bit signed value.

+
+

A multiplier.

+

Another multiplier.

+

The divisor.

+

The rounding factor.

+

Returns the result of the calculation. If numeric overflow occurs, the function returns _I64_MAX (positive overflow) or LLONG_MIN (negative overflow). If Mfplat.dll cannot be loaded, the function returns _I64_MAX.

+ +

Note??A previous version of this topic described the parameters incorrectly. The divisor is c and the rounding factor is d.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + dd388510 + longlong MFllMulDiv([In] longlong a,[In] longlong b,[In] longlong c,[In] longlong d) + MFllMulDiv +
+ + +

Creates a byte stream from a file.

+
+

The requested access mode, specified as a member of the enumeration.

+

The behavior of the function if the file already exists or does not exist, specified as a member of the enumeration.

+

Bitwise OR of values from the enumeration.

+

Pointer to a null-terminated string that contains the file name.

+

Receives a reference to the interface of the byte stream. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696166 + HRESULT MFCreateFile([In] MF_FILE_ACCESSMODE AccessMode,[In] MF_FILE_OPENMODE OpenMode,[In] MF_FILE_FLAGS fFlags,[In] const wchar_t* pwszFileURL,[Out] IMFByteStream** ppIByteStream) + MFCreateFile +
+ + +

[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the structure, and use media type attributes instead. For more information, see Video Media Types.]

Initializes a media type from an structure.

+
+ No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + aa473795 + HRESULT MFInitMediaTypeFromMFVideoFormat([In] IMFMediaType* pMFType,[In, Buffer] const MFVIDEOFORMAT* pMFVF,[In] unsigned int cbBufSize) + MFInitMediaTypeFromMFVideoFormat +
+ + +

Creates an empty media type.

+
+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The media type is created without any attributes.

Windows Phone 8.1: This API is supported.

+
+ + ms693861 + HRESULT MFCreateMediaType([Out, Fast] IMFMediaType** ppMFType) + MFCreateMediaType +
+ + +

Creates a new work queue. This function extends the capabilities of the function by making it possible to create a work queue that has a message loop.

+
+ No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_FAIL

The application exceeded the maximum number of work queues.

E_INVALIDARG

Invalid argument.

The application did not call , or the application has already called .

?

+ +

When you are done using the work queue, call .

The function is equivalent to calling with the value for the WorkQueueType parameter.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd375150 + HRESULT MFAllocateWorkQueueEx([In] MFASYNC_WORKQUEUE_TYPE WorkQueueType,[Out] unsigned int* pdwWorkQueue) + MFAllocateWorkQueueEx +
+ + +

Gets a list of Microsoft Media Foundation transforms (MFTs) that match specified search criteria. This function extends the function.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The Flags parameter controls which MFTs are enumerated, and the order in which they are returned. The flags for this parameter fall into several groups.

The first set of flags specifies how an MFT processes data.

FlagDescription

The MFT performs synchronous data processing in software. This is the original MFT processing model, and is compatible with Windows?Vista.

The MFT performs asynchronous data processing in software. This processing model requires Windows?7. For more information, see Asynchronous MFTs.

The MFT performs hardware-based data processing, using either the AVStream driver or a GPU-based proxy MFT. MFTs in this category always process data asynchronously. For more information, see Hardware MFTs.

?

Every MFT falls into exactly one of these categories. To enumerate a category, set the corresponding flag in the Flags parameter. You can combine these flags to enumerate more than one category. If none of these flags is specified, the default category is synchronous MFTs ().

Next, the following flags include MFTs that are otherwise excluded from the results. By default, flags that match these criteria are excluded from the results. Use any these flags to include them.

FlagDescription

Include MFTs that must be unlocked by the application.

Include MFTs that are registered in the caller's process through either the or function.

Include MFTs that are optimized for transcoding rather than playback.

?

The last flag is used to sort and filter the results:

FlagDescription

Sort and filter the results.

?

If the flag is set, the function sorts the results as follows:

  • Local: If the flag is set, local MFTs appear first in the list. To register a local MFT, call the or function.
  • Merit: MFTs with a merit value appear next on the list, in order of merit value (highest to lowest). For more information about merit, see .
  • Preferred: If an MFT is listed in the plug-in control's preferred list, it appears next in the list. For more information about the plug-in control, see .
  • If an MFT appears on the blocked list, it is excluded from the results. For more information about the blocked list, see .
  • Any other MFTs that match the search criteria appear at the end of the list, unsorted.

If you do not set the flag, the function returns an unsorted list.

Setting the Flags parameter to zero is equivalent to using the value | | .

Setting Flags to is equivalent to calling the function.

If no MFTs match the search criteria, the function returns , unless some other error occurs. Therefore, always check the count received in the pcMFTActivate parameter before you dereference the pppMFTActivate reference.

Note??There is no way to enumerate just local MFTs and nothing else. Setting Flags equal to is equivalent to including the flag. However, if you also sort the results by specifying the flag, local MFTs appear first in the list.

+
+ + dd388652 + HRESULT MFTEnumEx([In] GUID guidCategory,[In] unsigned int Flags,[In, Optional] const MFT_REGISTER_TYPE_INFO* pInputType,[In, Optional] const MFT_REGISTER_TYPE_INFO* pOutputType,[Out] void*** pppMFTActivate,[Out] unsigned int* pnumMFTActivate) + MFTEnumEx +
+ + +

Creates the presentation clock. The presentation clock is used to schedule the time at which samples are rendered and to synchronize multiple streams. +

+
+

Receives a reference to the clock's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The caller must shut down the presentation clock by calling on the clock.

Typically applications do not create the presentation clock. The Media Session automatically creates the presentation clock. To get a reference to the presentation clock from the Media Session, call .

+
+ + ms702174 + HRESULT MFCreatePresentationClock([Out] IMFPresentationClock** ppPresentationClock) + MFCreatePresentationClock +
+ + +

Creates a presentation time source that is based on the system time.

+
+

Receives a reference to the object's interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms705610 + HRESULT MFCreateSystemTimeSource([Out] IMFPresentationTimeSource** ppSystemTimeSource) + MFCreateSystemTimeSource +
+ + +

Enumerates a list of audio or video capture devices.

+
+

Pointer to an attribute store that contains search criteria. To create the attribute store, call . Set one or more of the following attributes on the attribute store:

ValueMeaning

Specifies whether to enumerate audio or video devices. (Required.)

For audio capture devices, specifies the device role. (Optional.)

For video capture devices, specifies the device category. (Optional.)

?

+

Receives an array of interface references. Each reference represents an activation object for a media source. The function allocates the memory for the array. The caller must release the references in the array and call CoTaskMemFree to free the memory for the array.

+

Receives the number of elements in the pppSourceActivate array. If no capture devices match the search criteria, this parameter receives the value 0.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Each returned reference represents a capture device, and can be used to create a media source for that device. You can also use the reference to query for attributes that describe the device. The following attributes might be set:

AttributeDescription
The display name of the device.
The major type and subtype GUIDs that describe the device's output format.
The type of capture device (audio or video).
The audio endpoint ID string. (Audio devices only.)
The device category. (Video devices only.)
Whether a device is a hardware or software device. (Video devices only.)
The symbolic link for the device driver. (Video devices only.)

?

To create a media source from an reference, call the method.

+
+ + dd388503 + HRESULT MFEnumDeviceSources([In] IMFAttributes* pAttributes,[Out] void*** pppSourceActivate,[Out] unsigned int* pcSourceActivate) + MFEnumDeviceSources +
+ + +

Creates an empty transcode profile object.

The transcode profile stores configuration settings for the output file. These configuration settings are specified by the caller, and include audio and video stream properties, encoder settings, and container settings. To set these properties, the caller must call the appropriate methods.

The configured transcode profile is passed to the function. The underlying topology builder uses these settings to build the transcode topology.

+
+ No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The function creates an empty transcode profile. You must configure the transcode profile setting attributes that define the media types and the container properties. Use the following methods to configure the profile:

For example code that uses this function, see the following topics:

  • Tutorial: Encoding an MP4 File
  • Tutorial: Encoding a WMA File
+
+ + dd388113 + HRESULT MFCreateTranscodeProfile([Out] IMFTranscodeProfile** ppTranscodeProfile) + MFCreateTranscodeProfile +
+ + +

Creates a credential cache object. An application can use this object to implement a custom credential manager.

+
+

Receives a reference to the interface of the new credential cache object. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms704802 + HRESULT MFCreateCredentialCache([Out] IMFNetCredentialCache** ppCache) + MFCreateCredentialCache +
+ + +

Creates the sequencer source.

+
+

Reserved. Must be null.

+

Receives a reference to the interface of the sequencer source. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms704663 + HRESULT MFCreateSequencerSource([In] IUnknown* pReserved,[Out] IMFSequencerSource** ppSequencerSource) + MFCreateSequencerSource +
+ + +

Creates a Microsoft Media Foundation byte stream that wraps an reference.

+
+

A reference to the interface.

+

Receives a reference to the interface. The caller must release the interface.

+

Returns an value.

+ +

This function enables applications to pass an object to a Media Foundation API that takes an reference.

+
+ + dd388095 + HRESULT MFCreateMFByteStreamOnStream([In] IStream* pStream,[Out] IMFByteStream** ppByteStream) + MFCreateMFByteStreamOnStream +
+ + +

Creates an activation object for the enhanced video renderer (EVR) media sink.

+
+

Handle to the window where the video will be displayed.

+

Receives a reference to the interface. Use this interface to create the EVR. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To create the EVR, call on the retrieved reference. (If you are using the Media Session, the Media Session automatically calls ActivateObject when you queue the topology.)

To configure the EVR, set any of the following attributes on the object before calling ActivateObject.

AttributeDescription
Activation object for a custom mixer.
CLSID for a custom mixer.
Flags for creating a custom mixer.
Activation object for a custom presenter.
CLSID for a custom presenter.
Flags for creating a custom presenter.

?

When is called, the activation objects sets the video window on the EVR by calling . Passing null for the hwndVideo parameter is not an error, but no video will render unless the EVR has a valid video window.

+
+ + ms693543 + HRESULT MFCreateVideoRendererActivate([In] HWND hwndVideo,[Out] IMFActivate** ppActivate) + MFCreateVideoRendererActivate +
+ + +

Creates a default proxy locator.

+
+

The name of the protocol.

Note??In this release of Media Foundation, the default proxy locator does not support RTSP.

+

Pointer to the interface of a property store that contains the proxy configuration in the MFNETSOURCE_PROXYSETTINGS property.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms701595 + HRESULT MFCreateProxyLocator([In] const wchar_t* pszProtocol,[In] IPropertyStore* pProxyConfig,[Out] IMFNetProxyLocator** ppProxyLocator) + MFCreateProxyLocator +
+ + +

Creates an activation object for the sample grabber media sink.

+
+

Pointer to the interface, defining the media type for the sample grabber's input stream.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Receives a reference to the interface. Use this interface to complete the creation of the sample grabber. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

To create the sample grabber sink, call on the reference received in the ppIActivate parameter.

Before calling ActivateObject, you can configure the sample grabber by setting any of the following attributes on the ppIActivate reference:

+
+ + ms702068 + HRESULT MFCreateSampleGrabberSinkActivate([In] IMFMediaType* pIMFMediaType,[In] IMFSampleGrabberSinkCallback* pIMFSampleGrabberSinkCallback,[Out] IMFActivate** ppIActivate) + MFCreateSampleGrabberSinkActivate +
+ + +

Creates a media sink for authoring MP4 files.

+
+

A reference to the interface of a byte stream. The media sink writes the MP4 file to this byte stream. The byte stream must be writable and support seeking.

+

A reference to the interface of a video media type. This type specifies the format of the video stream.

This parameter can be null, but not if pAudioMediaType is null.

+

A reference to the interface of an audio media type. This type specifies the format of the audio stream.

This parameter can be null, but not if pVideoMediaType is null.

+

Receives a reference to the MP4 media sink's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The MP4 media sink supports a maximum of one video stream and one audio stream. The initial stream formats are given in the pVideoMediaType and pAudioMediaType parameters. To create an MP4 file with one stream, set the other stream type to null. For example, to create an audio-only file, set pVideoMediaType to null.

The number of streams is fixed when you create the media sink. The sink does not support the method.

To author 3GP files, use the function.

+
+ + dd388100 + HRESULT MFCreateMPEG4MediaSink([In] IMFByteStream* pIByteStream,[In, Optional] IMFMediaType* pVideoMediaType,[In, Optional] IMFMediaType* pAudioMediaType,[Out] IMFMediaSink** ppIMediaSink) + MFCreateMPEG4MediaSink +
+ + +

Creates the transcode sink activation object.

The transcode sink activation object can be used to create any of the following file sinks:

  • 3GP file sink
  • MP3 file sink
  • MP4 file sink

The transcode sink activation object exposes the interface.

+
+ No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + dd388115 + HRESULT MFCreateTranscodeSinkActivate([Out] IMFActivate** ppActivate) + MFCreateTranscodeSinkActivate +
+ + +

Queries an object for a specified service interface.

This function is a helper function that wraps the method. The function queries the object for the interface and, if successful, calls GetService on the object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The service requested cannot be found in the object represented by punkObject.

?

+ +

Windows Phone 8.1: This API is supported.

+
+ + ms694284 + HRESULT MFGetService([In] IUnknown* punkObject,[In] const GUID& guidService,[In] const GUID& riid,[Out] void** ppvObject) + MFGetService +
+ + +

Retrieves the MIME types that are registered for the source resolver.

+
+

Pointer to a that receives the MIME types. Before calling this method, call PropVariantInit to initialize the . If the method succeeds, the contains an array of wide-character strings. The data type is VT_VECTOR | VT_LPWSTR. The caller must release the by calling PropVariantClear.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms699844 + HRESULT MFGetSupportedMimeTypes([Out] PROPVARIANT* pPropVarMimeTypeArray) + MFGetSupportedMimeTypes +
+ + +

Creates a media sink for authoring 3GP files.

+
+

A reference to the interface of a byte stream. The media sink writes the 3GP file to this byte stream. The byte stream must be writable and support seeking.

+

A reference to the interface of a video media type. This type specifies the format of the video stream.

This parameter can be null, but not if pAudioMediaType is null.

+

A reference to the interface of an audio media type. This type specifies the format of the audio stream.

This parameter can be null, but not if pVideoMediaType is null.

+

Receives a reference to the 3GP media sink's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The 3GP media sink supports a maximum of one video stream and one audio stream. The initial stream formats are given in the pVideoMediaType and pAudioMediaType parameters. To create an MP4 file with one stream, set the other stream type to null. For example, to create an audio-only file, set pVideoMediaType to null.

The number of streams is fixed when you create the media sink. The sink does not support the method.

To author MP4 files, use the function.

+
+ + dd388084 + HRESULT MFCreate3GPMediaSink([In] IMFByteStream* pIByteStream,[In, Optional] IMFMediaType* pVideoMediaType,[In, Optional] IMFMediaType* pAudioMediaType,[Out] IMFMediaSink** ppIMediaSink) + MFCreate3GPMediaSink +
+ + +

Creates a partial transcode topology.

The underlying topology builder creates a partial topology by connecting the required pipeline objects: + source, encoder, and sink. The encoder and the sink are configured according to the settings specified by the caller in the transcode profile.

To create the transcode profile object, call the function and set the required attributes by calling the appropriate the methods.

The configured transcode profile is passed to the function, which creates the transcode topology with the appropriate settings. The caller can then set this topology on the Media Session and start the session to begin the encoding process. When the Media Session ends, the transcoded file is generated.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function call succeeded, and ppTranscodeTopo receives a reference to the transcode topology.

E_INVALIDARG

pwszOutputFilePath contains invalid characters.

No streams are selected in the media source.

The profile does not contain the attribute.

For one or more streams, cannot find an encoder that accepts the media type given in the profile.

The profile does not specify a media type for any of the selected streams on the media source.

?

+ +

For example code that uses this function, see the following topics:

  • Tutorial: Encoding an MP4 File
  • Tutorial: Encoding a WMA File
+
+ + dd388118 + HRESULT MFCreateTranscodeTopology([In] IMFMediaSource* pSrc,[In] const wchar_t* pwszOutputFilePath,[In] IMFTranscodeProfile* pProfile,[Out] IMFTopology** ppTranscodeTopo) + MFCreateTranscodeTopology +
+ + +

Creates the scheme handler for the network source.

+
+

Interface identifier (IID) of the interface to retrieve.

+

Receives a reference to the requested interface. The caller must release the interface. The scheme handler exposes the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + aa378396 + HRESULT MFCreateNetSchemePlugin([In] const GUID& riid,[In] void** ppvHandler) + MFCreateNetSchemePlugin +
+ + +

Creates an instance of the Media Session inside a Protected Media Path (PMP) process.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

You can use the pConfiguration parameter to set any of the following attributes:

If this function cannot create the PMP Media Session because a trusted binary was revoked, the ppEnablerActivate parameter receives an interface reference. The application can use this reference to create a content enabler object, which can then be used to download an updated binary:

  1. Call with the interface identifier IID_IMFContentEnabler to get an interface reference.
  2. Use that interface to download the updated binary.
  3. Call again.

If the function successfully creates the PMP Media Session, the ppEnablerActivate parameter receives the value null.

Do not make calls to the PMP Media Session from a thread that is processing a window message sent from another thread. To test whether the current thread falls into this category, call InSendMessage.

+
+ + ms703144 + HRESULT MFCreatePMPMediaSession([In] unsigned int dwCreationFlags,[In] IMFAttributes* pConfiguration,[Out] IMFMediaSession** ppMediaSession,[Out, Optional] IMFActivate** ppEnablerActivate) + MFCreatePMPMediaSession +
+ + +

[This API is not supported and may be altered or unavailable in the future. Instead, applications should use the PSCreateMemoryPropertyStore function to create property stores.]

Creates an empty property store object.

+
+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702984 + HRESULT CreatePropertyStore([Out] IPropertyStore** ppStore) + CreatePropertyStore +
+ + +

Creates an activation object for the Streaming Audio Renderer.

+
+ No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

To create the audio renderer, call on the retrieved reference.

Note??To avoid a memory leak, call before releasing the final reference to the audio renderer or the audio renderer activate object.

To configure the audio renderer, set any of the following attributes on the object before calling ActivateObject. (If you are using the Media Session, the Media Session automatically calls ActivateObject when you queue the topology.)

AttributeDescription
The audio endpoint device identifier.
The audio endpoint role.
Miscellaneous configuration flags.
The audio policy class.
MF_AUDIO_RENDERER_ATTRIBUTE_STREAM_CATEGORY The audio stream category.
MF_LOW_LATENCY Enables low-latency audio streaming.

?

+
+ + ms702998 + HRESULT MFCreateAudioRendererActivate([Out] IMFActivate** ppActivate) + MFCreateAudioRendererActivate +
+ + +

Creates a media source for a hardware capture device.

+
+

Pointer to the interface of an attribute store, which is used to select the device. See Remarks.

+

Receives a reference to the media source's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The pAttributes parameter specifies an attribute store. To create the attribute store, call the function. You must set the attribute, which specifies the type of device (audio or video).

For audio capture devices, optionally set one of the following attributes:

AttributeDescription

Specifies the audio endpoint ID of the audio capture device.

Specifies the device role. If this attribute is set, the function uses the default audio capture device for that device role.

Do not combine this attribute with the attribute.

?

If neither attribute is specified, the function selects the default audio capture device for the eCommunications role.

For video capture devices, you must set the following attribute:

AttributeDescription

Specifies the symbolic link to the device.

?

+
+ + dd388091 + HRESULT MFCreateDeviceSource([In] IMFAttributes* pAttributes,[Out] IMFMediaSource** ppSource) + MFCreateDeviceSource +
+ + +

Queries whether a media presentation requires the Protected Media Path (PMP).

+
+

Pointer to the interface of a presentation descriptor. The presentation descriptor is created by the media source, and describes the presentation.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

This presentation requires a protected environment.

S_FALSE

This presentation does not require a protected environment.

?

+ +

If this function returns , it means the PMP is required for this presentation. Call to create the PMP session object.

If the function returns S_FALSE, you can use the unprotected pipeline. Call to create the regular Media Session object.

Internally, this function checks whether any of the stream descriptors in the presentation have the attribute with the value TRUE.

+
+ + ms697052 + HRESULT MFRequireProtectedEnvironment([In] IMFPresentationDescriptor* pPresentationDescriptor) + MFRequireProtectedEnvironment +
+ + +

Creates a presentation descriptor.

+
+

Number of elements in the apStreamDescriptors array.

+

Array of interface references. Each reference represents a stream descriptor for one stream in the presentation.

+

Receives a reference to an interface of the presentation descriptor. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

If you are writing a custom media source, you can use this function to create the source presentation descriptor. The presentation descriptor is created with no streams selected. Generally, a media source should select at least one stream by default. To select a stream, call .

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms695404 + HRESULT MFCreatePresentationDescriptor([In] unsigned int cStreamDescriptors,[In, Buffer, Optional] IMFStreamDescriptor** apStreamDescriptors,[Out] IMFPresentationDescriptor** ppPresentationDescriptor) + MFCreatePresentationDescriptor +
+ + +

Retrieves the URL schemes that are registered for the source resolver.

+
+

Pointer to a that receives the URL schemes. Before calling this method, call PropVariantInit to initialize the . If the method succeeds, the contains an array of wide-character strings. The data type is VT_VECTOR | VT_LPWSTR. The caller must release the by calling PropVariantClear.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms702236 + HRESULT MFGetSupportedSchemes([Out] PROPVARIANT* pPropVarSchemeArray) + MFGetSupportedSchemes +
+ + +

Gets a list of output formats from an audio encoder.

+
+

Specifies the subtype of the output media. The encoder uses this value as a filter when it is enumerating the available output types. For information about the audio subtypes, see Audio Subtype GUIDs.

+

Bitwise OR of zero or more flags from the _MFT_ENUM_FLAG enumeration.

+

A reference to the interface of an attribute store. The attribute store specifies the encoder configuration settings. This parameter can be null. The attribute store can hold any of the following attributes.

ValueMeaning

Set this attribute to unlock an encoder that has field-of-use descriptions.

Specifies a device conformance profile for a Windows Media encoder.

Sets the tradeoff between encoding quality and encoding speed.

?

+

Receives a reference to the interface of a collection object that contains a list of preferred audio media types. The collection contains references. The caller must release the interface reference.

+ +

This function assumes the encoder will be used in its default encoding mode, which is typically constant bit-rate (CBR) encoding. Therefore, the types returned by the function might not work with other modes, such as variable bit-rate (VBR) encoding.

Internally, this function works by calling to find a matching encoder, and then calling to get the encoder's output types.

+
+ + dd388655 + HRESULT MFTranscodeGetAudioOutputAvailableTypes([In] const GUID& guidSubType,[In] _MFT_ENUM_FLAG dwMFTFlags,[In, Optional] IMFAttributes* pCodecConfig,[Out] IMFCollection** ppAvailableTypes) + MFTranscodeGetAudioOutputAvailableTypes +
+ + +

Creates an instance of the sample copier transform.

+
+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The sample copier is a Media Foundation transform (MFT) that copies data from input samples to output samples without modifying the data. The following data is copied from the sample:

  • All Sample Attributes.
  • The time stamp and duration.
  • Sample flags (see ).
  • The data in the media buffers. If the input sample contains multiple buffers, the data is copied into a single buffer on the output sample.

This MFT is useful in the following situation:

  • One pipeline object, such as a media source, allocates media samples for output.
  • Another pipeline object, such as a media sink, allocates its own media samples for input. For example, the object might require buffers allocated from a special memory pool, such as video memory.

The following diagram shows this situation with a media source and a media sink.

In order for the media sink to receive data from the media source, the data must be copied into the media samples owned by the media sink. The sample copier can be used for this purpose.

A specific example of such a media sink is the Enhanced Video Renderer (EVR). The EVR allocates samples that contain Direct3D surface buffers, so it cannot receive video samples directly from a media source. Starting in Windows?7, the topology loader automatically handles this case by inserting the sample copier between the media source and the EVR.

+
+ + dd388101 + HRESULT MFCreateSampleCopierMFT([Out] IMFTransform** ppCopierMFT) + MFCreateSampleCopierMFT +
+ + +

Creates a topology node.

+
+

The type of node to create, specified as a member of the enumeration.

+

Receives a reference to the node's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ + ms697574 + HRESULT MFCreateTopologyNode([In] MF_TOPOLOGY_TYPE NodeType,[Out] IMFTopologyNode** ppNode) + MFCreateTopologyNode +
+ + +

Creates the source resolver, which is used to create a media source from a URL or byte stream.

+
+

Receives a reference to the source resolver's interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Note??Prior to Windows?7, this function was exported from mf.dll. Starting in Windows?7, this function is exported from mfplat.dll, and mf.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

Windows Phone 8.1: This API is supported.

+
+ + ms697433 + HRESULT MFCreateSourceResolver([Out, Fast] IMFSourceResolver** ppISourceResolver) + MFCreateSourceResolver +
+ + +

Creates a topology object.

+
+

Receives a reference to the interface of the topology object. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms701584 + HRESULT MFCreateTopology([Out] IMFTopology** ppTopo) + MFCreateTopology +
+ + +

Gets the media type for a stream associated with a topology node.

+
+

A reference to the interface.

+

The identifier of the stream to query. This parameter is interpreted as follows:

  • Transform nodes: The value is the zero-based index of the input or output stream.
  • All other node types: The value must be zero.
+

If TRUE, the function gets an output type. If , the function gets an input type. This parameter is interpreted as follows:

  • Output nodes: The value must be TRUE.
  • Source nodes: The value must be .
  • Tee nodes: The value is ignored.
  • Transform nodes: If the value is TRUE, the dwStreamIndex parameter is the index for an output stream. Otherwise, dwStreamIndex is the index for an input stream.
+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The stream index is invalid.

?

+ +

This function gets the actual media type from the object that is associated with the topology node. The pNode parameter should specify a node that belongs to a fully resolved topology. If the node belongs to a partial topology, the function will probably fail.

Tee nodes do not have an associated object to query. For tee nodes, the function gets the node's input type, if available. Otherwise, if no input type is available, the function gets the media type of the node's primary output stream. The primary output stream is identified by the attribute.

+
+ + dd388509 + HRESULT MFGetTopoNodeCurrentType([In] IMFTopologyNode* pNode,[In] unsigned int dwStreamIndex,[In] BOOL fOutput,[Out] IMFMediaType** ppType) + MFGetTopoNodeCurrentType +
+ + +

Creates a media-type handler that supports a single media type at a time.

+
+

Receives a reference to the interface of the media-type handler. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The media-type handler created by this function supports one media type at a time. Set the media type by calling . After the type is set, always checks against that type.

+
+ + ms696988 + HRESULT MFCreateSimpleTypeHandler([Out] IMFMediaTypeHandler** ppHandler) + MFCreateSimpleTypeHandler +
+ + +

Creates a that can be used to seek within a sequencer source presentation.

+
+

Sequencer element identifier. This value specifies the segment in which to begin playback. The element identifier is returned in the method.

+

Starting position within the segment, in 100-nanosecond units.

+

Pointer to a . The method fills in the with the information needed for performing a seek operation. The caller must free the by calling PropVariantClear.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The returned in pvarSegmentOffset can be used for the pvarStartPosition parameter in the method. Use the time format MF_TIME_FORMAT_SEGMENT_OFFSET.

+
+ + ms697268 + HRESULT MFCreateSequencerSegmentOffset([In] unsigned int dwId,[In] longlong hnsOffset,[Out] PROPVARIANT* pvarSegmentOffset) + MFCreateSequencerSegmentOffset +
+ + +

Shuts down a Media Foundation object and releases all resources associated with the object.

This function is a helper function that wraps the method. The function queries the object for the interface and, if successful, calls Shutdown on the object.

+
+ No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

This function is not related to the function, which shuts down the Media Foundation platform, as described in Initializing Media Foundation.

+
+ + ms701968 + HRESULT MFShutdownObject([In] IUnknown* pUnk) + MFShutdownObject +
+ + +

Creates the remote desktop plug-in object. Use this object if the application is running in a Terminal Services client session.

+
+

Receives a reference to the interface of the plug-in object. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

E_ACCESSDENIED

Remote desktop connections are not allowed by the current session policy.

?

+ + ms703133 + HRESULT MFCreateRemoteDesktopPlugin([Out] IMFRemoteDesktopPlugin** ppPlugin) + MFCreateRemoteDesktopPlugin +
+ + +

Creates a new instance of the topology loader.

+
+

Receives a reference to the interface of the topology loader. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms694159 + HRESULT MFCreateTopoLoader([Out] IMFTopoLoader** ppObj) + MFCreateTopoLoader +
+ + +

Creates a stream descriptor.

+
+

Stream identifier.

+

Number of elements in the apMediaTypes array.

+

Pointer to an array of interface references. These references are used to initialize the media type handler for the stream descriptor.

+

Receives a reference to the interface of the new stream descriptor. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

If you are writing a custom media source, you can use this function to create stream descriptors for the source. This function automatically creates the stream descriptor media type handler and initializes it with the list of types given in apMediaTypes. The function does not set the current media type on the handler, however. To set the type, call .

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Windows Phone 8.1: This API is supported.

+
+ + ms698990 + HRESULT MFCreateStreamDescriptor([In] unsigned int dwStreamIdentifier,[In] unsigned int cMediaTypes,[In, Buffer] IMFMediaType** apMediaTypes,[Out] IMFStreamDescriptor** ppDescriptor) + MFCreateStreamDescriptor +
+ + +

Returns the system time.

+
+

Returns the system time, in 100-nanosecond units.

+ +

Windows Phone 8.1: This API is supported.

+
+ + ms704625 + longlong MFGetSystemTime() + MFGetSystemTime +
+ + +

Creates an activation object that represents a hardware capture device.

+
+

Pointer to the interface of an attribute store, which is used to select the device. See Remarks.

+

Receives a reference to the interface. The caller must release the interface.

+ No documentation. + +

This function creates an activation object that can be used to create a media source for a hardware device. To create the media source itself, call .

The pAttributes parameter specifies an attribute store. To create the attribute store, call the function. You must set the attribute, which specifies the type of device (audio or video).

For audio capture devices, optionally set one of the following attributes:

AttributeDescription

Specifies the audio endpoint ID of the audio capture device.

Specifies the device role. If this attribute is set, the function uses the default audio capture device for that device role.

Do not combine this attribute with the attribute.

?

If neither attribute is specified, the function selects the default audio capture device for the eCommunications role.

For video capture devices, you must set the following attribute:

AttributeDescription

Specifies the symbolic link to the device.

?

+
+ + dd388093 + HRESULT MFCreateDeviceSourceActivate([In] IMFAttributes* pAttributes,[Out] IMFActivate** ppActivate) + MFCreateDeviceSourceActivate +
+ + +

Deserializes a presentation descriptor from a byte array.

+
+

Size of the pbData array, in bytes.

+

Pointer to an array of bytes that contains the serialized presentation descriptor.

+

Receives a reference to the interface of the presentation descriptor. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms697044 + HRESULT MFDeserializePresentationDescriptor([In] unsigned int cbData,[In, Buffer] unsigned char* pbData,[Out] IMFPresentationDescriptor** ppPD) + MFDeserializePresentationDescriptor +
+ + +

[This API is not supported and may be altered or unavailable in the future. Instead, applications should use the PSCreateMemoryPropertyStore function to create named property stores.]

Creates an empty property store to hold name/value pairs.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + aa367379 + HRESULT CreateNamedPropertyStore([Out] INamedPropertyStore** ppStore) + CreateNamedPropertyStore +
+ + +

Creates the Media Session in the application's process.

+
+ No documentation. + No documentation. +

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

If your application does not play protected content, you can use this function to create the Media Session in the application's process. To use the Media Session for protected content, you must call .

You can use the pConfiguration parameter to specify any of the following attributes:

  • MF_LOW_LATENCY
+
+ + ms700174 + HRESULT MFCreateMediaSession([In] IMFAttributes* pConfiguration,[Out] IMFMediaSession** ppMediaSession) + MFCreateMediaSession +
+ + +

Creates a media source that aggregates a collection of media sources.

+
+

A reference to the interface of the collection object that contains a list of media sources.

+

Receives a reference to the interface of the aggregated media source. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The pSourceCollection collection does not contain any elements.

?

+ +

The aggregated media source is useful for combining streams from separate media sources. For example, you can use it to combine a video capture source and an audio capture source.

Windows Phone 8.1: This API is supported.

+
+ + dd388085 + HRESULT MFCreateAggregateSource([In] IMFCollection* pSourceCollection,[Out] IMFMediaSource** ppAggSource) + MFCreateAggregateSource +
+ + +

Creates the protected media path (PMP) server object.

+
+

A member of the enumeration that specifies how to create the PMP session.

+

Receives a reference to the interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ + ms696183 + HRESULT MFCreatePMPServer([In] unsigned int dwCreationFlags,[Out] IMFPMPServer** ppPMPServer) + MFCreatePMPServer +
+ + +

Serializes a presentation descriptor to a byte array.

+
+

Pointer to the interface of the presentation descriptor to serialize.

+

Receives the size of the ppbData array, in bytes.

+

Receives a reference to an array of bytes containing the serialized presentation descriptor. The caller must free the memory for the array by calling CoTaskMemFree.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The function succeeded.

?

+ +

To deserialize the presentation descriptor, pass the byte array to the function.

+
+ + ms705608 + HRESULT MFSerializePresentationDescriptor([In] IMFPresentationDescriptor* pPD,[Out] unsigned int* pcbData,[Out, Buffer] unsigned char** ppbData) + MFSerializePresentationDescriptor +
+ + +

Creates the default implementation of the quality manager.

+
+

Receives a reference to the quality manager's interface. The caller must release the interface.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701594 + HRESULT MFCreateStandardQualityManager([Out] IMFQualityManager** ppQualityManager) + MFCreateStandardQualityManager +
+ + +

Creates the Streaming Audio Renderer.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

To configure the audio renderer, set any of the following attributes on the interface specified in the pAudioAttributes parameter.

AttributeDescription
The audio endpoint device identifier.
The audio endpoint role.
Miscellaneous configuration flags.
The audio policy class.
MF_AUDIO_RENDERER_ATTRIBUTE_STREAM_CATEGORY The audio stream category.
MF_LOW_LATENCY Enables low-latency audio streaming.

?

+
+ + ms701557 + HRESULT MFCreateAudioRenderer([In] IMFAttributes* pAudioAttributes,[Out] IMFMediaSink** ppSink) + MFCreateAudioRenderer +
+ + +

Creates the MP3 media sink.

+
+

A reference to the interface of a byte stream. The media sink writes the MP3 file to this byte stream. The byte stream must be writable.

+

Receives a reference to the interface of the MP3 media sink.. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The MP3 media sink takes compressed MP3 + audio samples as input, and writes an MP3 file with ID3 headers as output. The MP3 media sink does not perform MP3 audio encoding.

+
+ + dd388098 + HRESULT MFCreateMP3MediaSink([In] IMFByteStream* pTargetByteStream,[Out] IMFMediaSink** ppMediaSink) + MFCreateMP3MediaSink +
+ + +

Creates the source reader from a byte stream.

+
+

A reference to the interface of a byte stream. This byte stream will provide the source data for the source reader.

+

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Call CoInitialize(Ex) and before calling this function.

Internally, the source reader calls the method to create a media source from the byte stream. Therefore, a byte-stream handler must be registered for the byte stream. For more information about byte-stream handlers, see Scheme Handlers and Byte-Stream Handlers.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

Windows Phone 8.1: This API is supported.

+
+ + dd388106 + HRESULT MFCreateSourceReaderFromByteStream([In] IMFByteStream* pByteStream,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromByteStream +
+ + +

Creates the source reader from a URL.

+
+

The URL of a media file to open.

+

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Call CoInitialize(Ex) and before calling this function.

Internally, the source reader calls the method to create a media source from the URL.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

Windows Phone 8.1: This API is supported.

+
+ + dd388110 + HRESULT MFCreateSourceReaderFromURL([In] const wchar_t* pwszURL,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromURL +
+ + +

Creates the source reader from a media source.

+
+

A reference to the interface of a media source.

+

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The source contains protected content.

?

+ +

Call CoInitialize(Ex) and before calling this function.

By default, when the application releases the source reader, the source reader shuts down the media source by calling on the media source. At that point, the application can no longer use the media source.

To change this default behavior, set the attribute in the pAttributes parameter. If this attribute is TRUE, the application is responsible for shutting down the media source.

When using the Source Reader, do not call any of the following methods on the media source:

  • All methods

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

Windows Phone 8.1: This API is supported.

+
+ + dd388108 + HRESULT MFCreateSourceReaderFromMediaSource([In] IMFMediaSource* pMediaSource,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromMediaSource +
+ + +

Creates the sink writer from a URL or byte stream.

+
+

A null-terminated string that contains the URL of the output file. This parameter can be null.

+

Pointer to the interface of a byte stream. This parameter can be null.

If this parameter is a valid reference, the sink writer writes to the provided byte stream. (The byte stream must be writable.) Otherwise, if pByteStream is null, the sink writer creates a new file named pwszOutputURL.

+

Pointer to the interface. You can use this parameter to configure the sink writer. For more information, see Sink Writer Attributes. This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+ +

Call CoInitialize(Ex) and before calling this function.

The first three parameters to this function can be null; however, only certain combinations are valid:

DescriptionpwszOutputURLpByteStreampAttributes
Specify a byte stream, with no URL.nullnon-nullRequired (must not be null).
Specify a URL, with no byte stream.not nullnullOptional (may be null).
Specify both a URL and a byte stream.non-nullnon-nullOptional (may be null).

?

The pAttributes parameter is required in the first case and optional in the others.

  • Case 1: Specify a byte stream without a URL. The pAttributes parameter must point to an attribute store that contains the attribute. The sink writer uses the attribute to determine the type of file container to write, such as ASF or MP4.
  • Case 2: Specify a URL without a byte stream. The sink writer creates a new file named pwszOutputURL. If pAttributes specifies an attribute store with the attribute, the sink writer uses that attribute to determine the type of file container. Otherwise, if the attribute is absent or pAttributes is null, the sink writer uses the file name extension to select the container type; for example, ".asf" for an ASF file.
  • Case 3: Specify both a URL and a byte stream. The sink writer writes to the byte stream. The URL provided in pwszOutputURL is informational only; the sink writer does not create a new file. If pAttributes specifies an attribute store with the attribute, the sink writer uses that attribute to determine the type of file container. Otherwise, the sink writer uses the file name extension to select the container type. The attribute overrides the URL file name extension in this case.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

Windows Phone 8.1: This API is supported.

+
+ + dd388105 + HRESULT MFCreateSinkWriterFromURL([In, Optional] const wchar_t* pwszOutputURL,[In, Optional] IMFByteStream* pByteStream,[In, Optional] IMFAttributes* pAttributes,[Out] IMFSinkWriter** ppSinkWriter) + MFCreateSinkWriterFromURL +
+ + +

Creates the sink writer from a media sink.

+
+

Pointer to the interface of a media sink.

+

Pointer to the interface. You can use this parameter to configure the sink writer. For more information, see Sink Writer Attributes. This parameter can be null.

+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Call CoInitialize(Ex) and before calling this function.

When you are done using the media sink, call the media sink's method. (The sink writer does not shut down the media sink.) Release the sink writer before calling Shutdown on the media sink.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

Windows Phone 8.1: This API is supported.

+
+ + dd388103 + HRESULT MFCreateSinkWriterFromMediaSink([In] IMFMediaSink* pMediaSink,[In, Optional] IMFAttributes* pAttributes,[Out] IMFSinkWriter** ppSinkWriter) + MFCreateSinkWriterFromMediaSink +
+ + +

Loads attributes from a stream into an attribute store.

+
+

Pointer to the interface of the attribute store.

+

Bitwise OR of zero or more flags from the enumeration.

+

Pointer to the interface of the stream from which to read the attributes.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Use this function to deserialize an attribute store that was serialized with the function.

If dwOptions contains the flag, the function deserializes references from the stream, as follows:

  • If the reference exposes the interface (through QueryInterface), the function calls to deserialize each reference.

  • Otherwise, the function calls CoUnmarshalInterface to deserialize a proxy for the object.

This function deletes any attributes that were previously stored in pAttr.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms703162 + HRESULT MFDeserializeAttributesFromStream([In] IMFAttributes* pAttr,[In] unsigned int dwOptions,[In] IStream* pStm) + MFDeserializeAttributesFromStream +
+ + +

Writes the contents of an attribute store to a stream.

+
+

Pointer to the interface of the attribute store.

+

Bitwise OR of zero or more flags from the enumeration.

+

Pointer to the interface of the stream where the attributes are saved.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If dwOptions contains the flag, the function serializes references in the attribute store, as follows:

  • If the reference exposes the interface (through QueryInterface), the function calls to serialize each reference.

  • Otherwise, the function calls CoMarshalInterface to serialize a proxy for the object.

If dwOptions does not include the flag, the function skips references in the attribute store.

To load the attributes from the stream, call .

The main purpose of this function is to marshal attributes across process boundaries.

Windows?Phone?8: This API is supported.

Windows Phone 8.1: This API is supported.

+
+ + ms702278 + HRESULT MFSerializeAttributesToStream([In] IMFAttributes* pAttr,[In] unsigned int dwOptions,[In] IStream* pStm) + MFSerializeAttributesToStream +
+ + +

Creates a generic activation object for Media Foundation transforms (MFTs).

+
+

Receives a reference to the interface. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Most applications will not use this function; it is used internally by the function.

An activation object is a helper object that creates another object, somewhat similar to a class factory. The function creates an activation object for MFTs. Before this activation object can create an MFT, the caller must initialize the activation object by setting one or more attributes on it.

AttributeDescription
Required. Contains the CLSID of the MFT. The activation object creates the MFT by passing this CLSID to the CoCreateInstance function.
Optional. Specifies the category of the MFT.
Contains various flags that describe the MFT. For hardware-based MFTs, set the flag. Otherwise, this attribute is optional.

Optional. Contains the merit value of a hardware codec.

If this attribute is set and its value is greater than zero, the activation object calls to get the trusted merit value for the MFT. If the trusted merit is less than the value of this attribute, the activation object's method fails and returns .

Required for hardware-based MFTs. Specifies the symbolic link for the hardware device. The device proxy uses this value to configure the MFT.

Optional. Contains an reference, which can be used to unlock the MFT. The interface is used with MFTs that have usage restrictions.

If this attribute is set and the attribute contains the flag, the activation object calls when it creates the MFT. An application can also set the attribute without setting the flag. In that case, the application must call Unlock.

Optional. Contains the encoding profile for an encoder. The value of this attribute is an reference.

If this attribute is set and the value of the attribute is or , the activation object uses the encoding profile to configure the MFT. The MFT must expose either ICodecAPI or for this purpose.

Optional. Specifies the preferred output format for an encoder.

If this attribute set and the value of the attribute is or , the activation object sets this media type on the MFT.

?

For more information about activation objects, see Activation Objects.

+
+ + dd388120 + HRESULT MFCreateTransformActivate([Out] IMFActivate** ppActivate) + MFCreateTransformActivate +
+ + +

Enumerates a list of audio or video capture devices.

+
+

Pointer to an attribute store that contains search criteria. To create the attribute store, call . Set one or more of the following attributes on the attribute store:

ValueMeaning

Specifies whether to enumerate audio or video devices. (Required.)

For audio capture devices, specifies the device role. (Optional.)

For video capture devices, specifies the device category. (Optional.)

?

+

Receives an array of interface references. Each reference represents an activation object for a media source. The function allocates the memory for the array. The caller must release the references in the array and call CoTaskMemFree to free the memory for the array.

+

Receives the number of elements in the pppSourceActivate array. If no capture devices match the search criteria, this parameter receives the value 0.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

Each returned reference represents a capture device, and can be used to create a media source for that device. You can also use the reference to query for attributes that describe the device. The following attributes might be set:

AttributeDescription
The display name of the device.
The major type and subtype GUIDs that describe the device's output format.
The type of capture device (audio or video).
The audio endpoint ID string. (Audio devices only.)
The device category. (Video devices only.)
Whether a device is a hardware or software device. (Video devices only.)
The symbolic link for the device driver. (Video devices only.)

?

To create a media source from an reference, call the method.

+
+ + dd388503 + HRESULT MFEnumDeviceSources([In] IMFAttributes* pAttributes,[Out, Buffer] IMFActivate*** pppSourceActivate,[Out] unsigned int* pcSourceActivate) + MFEnumDeviceSources +
+ + + Gets a list of Microsoft Media Foundation transforms (MFTs) that match specified search criteria. This function extends the function. + + A GUID that specifies the category of MFTs to enumerate. For a list of MFT categories, see . + The bitwise OR of zero or more flags from the enumeration. + A pointer to an structure that specifies an input media type to match.This parameter can be NULL. If NULL, all input types are matched. + A pointer to an structure that specifies an output media type to match.This parameter can be NULL. If NULL, all output types are matched. + Returns an array of objects. Each object represents an activation object for an MFT that matches the search criteria. The function allocates the memory for the array. The caller must release the pointers and call the Dispose for each element in the array. + dd388652 + HRESULT MFTEnumEx([In] GUID guidCategory,[In] unsigned int Flags,[In, Optional] const MFT_REGISTER_TYPE_INFO* pInputType,[In, Optional] const MFT_REGISTER_TYPE_INFO* pOutputType,[Out, Buffer] IMFActivate*** pppMFTActivate,[Out] unsigned int* pnumMFTActivate) + MFTEnumEx + + + +

Applies to: desktop apps only

Creates an activation object for the sample grabber media sink.

+
+

Pointer to the interface, defining the media type for the sample grabber's input stream.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Receives a reference to the interface. Use this interface to complete the creation of the sample grabber. The caller must release the interface.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

To create the sample grabber sink, call on the reference received in the ppIActivate parameter.

Before calling ActivateObject, you can configure the sample grabber by setting any of the following attributes on the ppIActivate reference:

+
+ + ms702068 + HRESULT MFCreateSampleGrabberSinkActivate([In] IMFMediaType* pIMFMediaType,[In] IMFSampleGrabberSinkCallback* pIMFSampleGrabberSinkCallback,[Out] IMFActivate** ppIActivate) + MFCreateSampleGrabberSinkActivate +
+ + +

Applies to: desktop apps | Metro style apps

Copies an image or image plane from one buffer to another.

+
+

Pointer to the start of the first row of pixels in the destination buffer.

+

Stride of the destination buffer, in bytes.

+

Pointer to the start of the first row of pixels in the source image.

+

Stride of the source image, in bytes.

+

Width of the image, in bytes.

+

Number of rows of pixels to copy.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function copies a single plane of the image. For planar YUV formats, you must call the function once for each plane. In this case, pDest and pSrc must point to the start of each plane.

This function is optimized if the MMX, SSE, or SSE2 instruction sets are available on the processor. The function performs a non-temporal store (the data is written to memory directly without polluting the cache).

Note??Prior to Windows?7, this function was exported from evr.dll. Starting in Windows?7, this function is exported from mfplat.dll, and evr.dll exports a stub function that calls into mfplat.dll. For more information, see Library Changes in Windows?7.

+
+ + bb970554 + HRESULT MFCopyImage([Out, Buffer] unsigned char* pDest,[In] int lDestStride,[In, Buffer] const unsigned char* pSrc,[In] int lSrcStride,[In] unsigned int dwWidthInBytes,[In] unsigned int dwLines) + MFCopyImage +
+ + + Functions + + + + + Constant MetadataProvider. + MF_METADATA_PROVIDER_SERVICE + + + Constant PMPServer. + MF_PMP_SERVER_CONTEXT + + + Constant Qualiy. + MF_QUALITY_SERVICES + + + Constant RateControl. + MF_RATE_CONTROL_SERVICE + + + Constant RemoteProxy. + MF_REMOTE_PROXY + + + Constant Sami. + MF_SAMI_SERVICE + + + Constant SourcePresentationProvider. + MF_SOURCE_PRESENTATION_PROVIDER_SERVICE + + + Constant TimeCode. + MF_TIMECODE_SERVICE + + + Constant ToplogyNodeAttributeEditor. + MF_TOPONODE_ATTRIBUTE_EDITOR_SERVICE + + + Constant WorkQueue. + MF_WORKQUEUE_SERVICES + + + Constant SaveJob. + MFNET_SAVEJOB_SERVICE + + + Constant NetworkSourceStatistics. + MFNETSOURCE_STATISTICS_SERVICE + + + Constant AudioPolicy. + MR_AUDIO_POLICY_SERVICE + + + Constant Buffer. + MR_BUFFER_SERVICE + + + Constant PolicyVolume. + MR_POLICY_VOLUME_SERVICE + + + Constant StreamVolume. + MR_STREAM_VOLUME_SERVICE + + + Constant VideoAcceleration. + MR_VIDEO_ACCELERATION_SERVICE + + + + Functions + + + + + Constant ApproxEventOccurrenceTime. + MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME + + + Constant ContentProtectionManager. + MF_SESSION_CONTENT_PROTECTION_MANAGER + + + Constant GlobalTime. + MF_SESSION_GLOBAL_TIME + + + Constant QualityManager. + MF_SESSION_QUALITY_MANAGER + + + Constant RemoteSourceMode. + MF_SESSION_REMOTE_SOURCE_MODE + + + Constant ServerContext. + MF_SESSION_SERVER_CONTEXT + + + Constant Topoloader. + MF_SESSION_TOPOLOADER + + + + Functions + + + + + Constant AacAudioProfileLevelIndication. + MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATION + + + Constant AacPayloadType. + MF_MT_AAC_PAYLOAD_TYPE + + + Constant AllSamplesIndependent. + MF_MT_ALL_SAMPLES_INDEPENDENT + + + Constant AmFormatType. + MF_MT_AM_FORMAT_TYPE + + + Constant ArbitraryFormat. + MF_MT_ARBITRARY_FORMAT + + + Constant ArbitraryHeader. + MF_MT_ARBITRARY_HEADER + + + Constant AudioAvgBytesPerSecond. + MF_MT_AUDIO_AVG_BYTES_PER_SECOND + + + Constant AudioBitsPerSample. + MF_MT_AUDIO_BITS_PER_SAMPLE + + + Constant AudioBlockAlignment. + MF_MT_AUDIO_BLOCK_ALIGNMENT + + + Constant AudioChannelMask. + MF_MT_AUDIO_CHANNEL_MASK + + + Constant AudioFloatSamplesPerSecond. + MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECOND + + + Constant AudioFolddownMatrix. + MF_MT_AUDIO_FOLDDOWN_MATRIX + + + Constant AudioNumChannels. + MF_MT_AUDIO_NUM_CHANNELS + + + Constant AudioPreferWaveformatex. + MF_MT_AUDIO_PREFER_WAVEFORMATEX + + + Constant AudioSamplesPerBlock. + MF_MT_AUDIO_SAMPLES_PER_BLOCK + + + Constant AudioSamplesPerSecond. + MF_MT_AUDIO_SAMPLES_PER_SECOND + + + Constant AudioValidBitsPerSample. + MF_MT_AUDIO_VALID_BITS_PER_SAMPLE + + + Constant AudioWmadrcAvgref. + MF_MT_AUDIO_WMADRC_AVGREF + + + Constant AudioWmadrcAvgtarget. + MF_MT_AUDIO_WMADRC_AVGTARGET + + + Constant AudioWmadrcPeakref. + MF_MT_AUDIO_WMADRC_PEAKREF + + + Constant AudioWmadrcPeaktarget. + MF_MT_AUDIO_WMADRC_PEAKTARGET + + + Constant AvgBitErrorRate. + MF_MT_AVG_BIT_ERROR_RATE + + + Constant AvgBitrate. + MF_MT_AVG_BITRATE + + + Constant Compressed. + MF_MT_COMPRESSED + + + Constant CustomVideoPrimaries. + MF_MT_CUSTOM_VIDEO_PRIMARIES + + + Constant DefaultStride. + MF_MT_DEFAULT_STRIDE + + + Constant DrmFlags. + MF_MT_DRM_FLAGS + + + Constant DvAauxCtrlPack0. + MF_MT_DV_AAUX_CTRL_PACK_0 + + + Constant DvAauxCtrlPack1. + MF_MT_DV_AAUX_CTRL_PACK_1 + + + Constant DvAauxSrcPack0. + MF_MT_DV_AAUX_SRC_PACK_0 + + + Constant DvAauxSrcPack1. + MF_MT_DV_AAUX_SRC_PACK_1 + + + Constant DvVauxCtrlPack. + MF_MT_DV_VAUX_CTRL_PACK + + + Constant DvVauxSrcPack. + MF_MT_DV_VAUX_SRC_PACK + + + Constant FixedSizeSamples. + MF_MT_FIXED_SIZE_SAMPLES + + + Constant FrameRate. + MF_MT_FRAME_RATE + + + Constant FrameRateRangeMax. + MF_MT_FRAME_RATE_RANGE_MAX + + + Constant FrameRateRangeMin. + MF_MT_FRAME_RATE_RANGE_MIN + + + Constant FrameSize. + MF_MT_FRAME_SIZE + + + Constant GeometricAperture. + MF_MT_GEOMETRIC_APERTURE + + + Constant ImageLossTolerant. + MF_MT_IMAGE_LOSS_TOLERANT + + + Constant InterlaceMode. + MF_MT_INTERLACE_MODE + + + Constant MajorType. + MF_MT_MAJOR_TYPE + + + Constant MaxKeyframeSpacing. + MF_MT_MAX_KEYFRAME_SPACING + + + Constant MinimumDisplayAperture. + MF_MT_MINIMUM_DISPLAY_APERTURE + + + Constant MpegSequenceHeader. + MF_MT_MPEG_SEQUENCE_HEADER + + + Constant MpegStartTimeCode. + MF_MT_MPEG_START_TIME_CODE + + + Constant Mpeg2Flags. + MF_MT_MPEG2_FLAGS + + + Constant Mpeg2Level. + MF_MT_MPEG2_LEVEL + + + Constant Mpeg2Profile. + MF_MT_MPEG2_PROFILE + + + Constant Mpeg4CurrentSampleEntry. + MF_MT_MPEG4_CURRENT_SAMPLE_ENTRY + + + Constant Mpeg4SampleDescription. + MF_MT_MPEG4_SAMPLE_DESCRIPTION + + + Constant Original4cc. + MF_MT_ORIGINAL_4CC + + + Constant OriginalWaveFormatTag. + MF_MT_ORIGINAL_WAVE_FORMAT_TAG + + + Constant PadControlFlags. + MF_MT_PAD_CONTROL_FLAGS + + + Constant Palette. + MF_MT_PALETTE + + + Constant PanScanAperture. + MF_MT_PAN_SCAN_APERTURE + + + Constant PanScanEnabled. + MF_MT_PAN_SCAN_ENABLED + + + Constant PixelAspectRatio. + MF_MT_PIXEL_ASPECT_RATIO + + + Constant SampleSize. + MF_MT_SAMPLE_SIZE + + + Constant SourceContentHint. + MF_MT_SOURCE_CONTENT_HINT + + + Constant Subtype. + MF_MT_SUBTYPE + + + Constant TransferFunction. + MF_MT_TRANSFER_FUNCTION + + + Constant UserData. + MF_MT_USER_DATA + + + Constant VideoChromaSiting. + MF_MT_VIDEO_CHROMA_SITING + + + Constant VideoLighting. + MF_MT_VIDEO_LIGHTING + + + Constant VideoNominalRange. + MF_MT_VIDEO_NOMINAL_RANGE + + + Constant VideoPrimaries. + MF_MT_VIDEO_PRIMARIES + + + Constant WrappedType. + MF_MT_WRAPPED_TYPE + + + Constant YuvMatrix. + MF_MT_YUV_MATRIX + + + + Functions + + + + + Constant Html. + MFMediaType_HTML + + + Constant Image. + MFMediaType_Image + + + Constant Protected. + MFMediaType_Protected + + + Constant Audio. + MFMediaType_Audio + + + Constant Sami. + MFMediaType_SAMI + + + Constant Script. + MFMediaType_Script + + + Constant Binary. + MFMediaType_Binary + + + Constant FileTransfer. + MFMediaType_FileTransfer + + + Constant Video. + MFMediaType_Video + + + Constant Default. + MFMediaType_Default + + + + Functions + + + + + Constant AppContext. + MF_PD_APP_CONTEXT + + + Constant AsfCodeclist. + MF_PD_ASF_CODECLIST + + + Constant AsfContentencryptionKeyid. + MF_PD_ASF_CONTENTENCRYPTION_KEYID + + + Constant AsfContentencryptionLicenseUrl. + MF_PD_ASF_CONTENTENCRYPTION_LICENSE_URL + + + Constant AsfContentencryptionSecretData. + MF_PD_ASF_CONTENTENCRYPTION_SECRET_DATA + + + Constant AsfContentencryptionType. + MF_PD_ASF_CONTENTENCRYPTION_TYPE + + + Constant AsfContentencryptionexEncryptionData. + MF_PD_ASF_CONTENTENCRYPTIONEX_ENCRYPTION_DATA + + + Constant AsfDataLength. + MF_PD_ASF_DATA_LENGTH + + + Constant AsfDataStartOffset. + MF_PD_ASF_DATA_START_OFFSET + + + Constant AsfFilepropertiesCreationTime. + MF_PD_ASF_FILEPROPERTIES_CREATION_TIME + + + Constant AsfFilepropertiesFileId. + MF_PD_ASF_FILEPROPERTIES_FILE_ID + + + Constant AsfFilepropertiesFlags. + MF_PD_ASF_FILEPROPERTIES_FLAGS + + + Constant AsfFilepropertiesMaxBitrate. + MF_PD_ASF_FILEPROPERTIES_MAX_BITRATE + + + Constant AsfFilepropertiesMaxPacketSize. + MF_PD_ASF_FILEPROPERTIES_MAX_PACKET_SIZE + + + Constant AsfFilepropertiesMinPacketSize. + MF_PD_ASF_FILEPROPERTIES_MIN_PACKET_SIZE + + + Constant AsfFilepropertiesPackets. + MF_PD_ASF_FILEPROPERTIES_PACKETS + + + Constant AsfFilepropertiesPlayDuration. + MF_PD_ASF_FILEPROPERTIES_PLAY_DURATION + + + Constant AsfFilepropertiesPreroll. + MF_PD_ASF_FILEPROPERTIES_PREROLL + + + Constant AsfFilepropertiesSendDuration. + MF_PD_ASF_FILEPROPERTIES_SEND_DURATION + + + Constant AsfInfoHasAudio. + MF_PD_ASF_INFO_HAS_AUDIO + + + Constant AsfInfoHasNonAudioVideo. + MF_PD_ASF_INFO_HAS_NON_AUDIO_VIDEO + + + Constant AsfInfoHasVideo. + MF_PD_ASF_INFO_HAS_VIDEO + + + Constant AsfLanglist. + MF_PD_ASF_LANGLIST + + + Constant AsfLanglistLegacyorder. + MF_PD_ASF_LANGLIST_LEGACYORDER + + + Constant AsfMarker. + MF_PD_ASF_MARKER + + + Constant AsfMetadataIsVbr. + MF_PD_ASF_METADATA_IS_VBR + + + Constant AsfMetadataLeakyBucketPairs. + MF_PD_ASF_METADATA_LEAKY_BUCKET_PAIRS + + + Constant AsfMetadataV8Bufferaverage. + MF_PD_ASF_METADATA_V8_BUFFERAVERAGE + + + Constant AsfMetadataV8Vbrpeak. + MF_PD_ASF_METADATA_V8_VBRPEAK + + + Constant AsfScript. + MF_PD_ASF_SCRIPT + + + Constant AudioEncodingBitrate. + MF_PD_AUDIO_ENCODING_BITRATE + + + Constant AudioIsvariablebitrate. + MF_PD_AUDIO_ISVARIABLEBITRATE + + + Constant Duration. + MF_PD_DURATION + + + Constant LastModifiedTime. + MF_PD_LAST_MODIFIED_TIME + + + Constant MimeType. + MF_PD_MIME_TYPE + + + Constant PlaybackBoundaryTime. + MF_PD_PLAYBACK_BOUNDARY_TIME + + + Constant PlaybackElementId. + MF_PD_PLAYBACK_ELEMENT_ID + + + Constant PmphostContext. + MF_PD_PMPHOST_CONTEXT + + + Constant PreferredLanguage. + MF_PD_PREFERRED_LANGUAGE + + + Constant SamiStylelist. + MF_PD_SAMI_STYLELIST + + + Constant TotalFileSize. + MF_PD_TOTAL_FILE_SIZE + + + Constant VideoEncodingBitrate. + MF_PD_VIDEO_ENCODING_BITRATE + + + + Functions + + + + + Constant GrlUnrecognizedFormat. + MF_E_GRL_UNRECOGNIZED_FORMAT + + + Constant SequencerUnknownSegmentId. + MF_E_SEQUENCER_UNKNOWN_SEGMENT_ID + + + Constant NetManualssNotSupported. + MF_E_NET_MANUALSS_NOT_SUPPORTED + + + Constant ByteStreamNotSeekable. + MF_E_BYTESTREAM_NOT_SEEKABLE + + + Constant AllProcessRestartRequired. + MF_E_ALL_PROCESS_RESTART_REQUIRED + + + Constant NetResourceGone. + MF_E_NET_RESOURCE_GONE + + + Constant InvalidPosition. + MF_E_INVALID_POSITION + + + Constant RtUnavailable. + MF_E_RT_UNAVAILABLE + + + Constant PolicyMgrActionOufOfBounds. + MF_E_POLICY_MGR_ACTION_OUTOFBOUNDS + + + Constant VideoRenSurfaceNotShared. + MF_E_VIDEO_REN_SURFACE_NOT_SHARED + + + Constant SignatureVerificationFailed. + MF_E_SIGNATURE_VERIFICATION_FAILED + + + Constant Mp3OufOfData. + MF_E_MP3_OUTOFDATA + + + Constant Mp3NotSupported. + MF_E_MP3_NOTSUPPORTED + + + Constant NetEol. + MF_E_NET_EOL + + + Constant TopoUnsupported. + MF_E_TOPO_UNSUPPORTED + + + Constant NetCachestreamNotFound. + MF_E_NET_CACHESTREAM_NOT_FOUND + + + Constant NotProtected. + MF_E_NOT_PROTECTED + + + Constant NetStreamGroupsNotSupported. + MF_E_NET_STREAMGROUPS_NOT_SUPPORTED + + + Constant NoDuration. + MF_E_NO_DURATION + + + Constant NetTooManyRedirects. + MF_E_NET_TOO_MANY_REDIRECTS + + + Constant AsfParsingincomplete. + MF_E_ASF_PARSINGINCOMPLETE + + + Constant HighSecurityLevelContentNotAllowEd. + MF_E_HIGH_SECURITY_LEVEL_CONTENT_NOT_ALLOWED + + + Constant InvalidName. + MF_E_INVALIDNAME + + + Constant NetInvalidPresentationDescriptor. + MF_E_NET_INVALID_PRESENTATION_DESCRIPTOR + + + Constant TransformAsyncLocked. + MF_E_TRANSFORM_ASYNC_LOCKED + + + Constant MultipleSubScribers. + MF_E_MULTIPLE_SUBSCRIBERS + + + Constant HwStreamNotConnected. + MF_E_HW_STREAM_NOT_CONNECTED + + + Constant FlushNeeded. + MF_E_FLUSH_NEEDED + + + Constant TransformNeedMoreInput. + MF_E_TRANSFORM_NEED_MORE_INPUT + + + Constant InvalidStateTransition. + MF_E_INVALID_STATE_TRANSITION + + + Constant NetRequireInput. + MF_E_NET_REQUIRE_INPUT + + + Constant DroptimeNotSupported. + MF_E_DROPTIME_NOT_SUPPORTED + + + Constant NetSessionNotFound. + MF_E_NET_SESSION_NOT_FOUND + + + Constant LicenseIncorrectRights. + MF_E_LICENSE_INCORRECT_RIGHTS + + + Constant BufferTooSmall. + MF_E_BUFFERTOOSMALL + + + Constant ProcessRestartRequired. + MF_E_PROCESS_RESTART_REQUIRED + + + Constant NoAudioPlaybackDevice. + MF_E_NO_AUDIO_PLAYBACK_DEVICE + + + Constant PeauthNotStarted. + MF_E_PEAUTH_NOT_STARTED + + + Constant AsfNoindex. + MF_E_ASF_NOINDEX + + + Constant ItaUnrecognizedDigitalVideoOutput. + MF_E_ITA_UNRECOGNIZED_DIGITAL_VIDEO_OUTPUT + + + Constant NetServerUnavailable. + MF_E_NET_SERVER_UNAVAILABLE + + + Constant InvalidMediaType. + MF_E_INVALIDMEDIATYPE + + + Constant RtWorkqueueClassNotSpecified. + MF_E_RT_WORKQUEUE_CLASS_NOT_SPECIFIED + + + Constant TransformPropertyArrayValueWrongNumDim. + MF_E_TRANSFORM_PROPERTY_ARRAY_VALUE_WRONG_NUM_DIM + + + Constant DrmUnsupported. + MF_E_DRM_UNSUPPORTED + + + Constant InvalidFileFormat. + MF_E_INVALID_FILE_FORMAT + + + Constant AllOcatorNotCommited. + MF_E_ALLOCATOR_NOT_COMMITED + + + Constant WmdrmotaDrmHeaderNotAvailable. + MF_E_WMDRMOTA_DRM_HEADER_NOT_AVAILABLE + + + Constant NetNoconnection. + MF_E_NET_NOCONNECTION + + + Constant MultipleBegin. + MF_E_MULTIPLE_BEGIN + + + Constant InsufficientBuffer. + MF_E_INSUFFICIENT_BUFFER + + + Constant NetTooMuchData. + MF_E_NET_TOO_MUCH_DATA + + + Constant RtWouldblock. + MF_E_RT_WOULDBLOCK + + + Constant AsfOpaquePacket. + MF_E_ASF_OPAQUEPACKET + + + Constant TopoMissingStreamDescriptor. + MF_E_TOPO_MISSING_STREAM_DESCRIPTOR + + + Constant SampleHasTooManyBuffers. + MF_E_SAMPLE_HAS_TOO_MANY_BUFFERS + + + Constant UnsupportedRate. + MF_E_UNSUPPORTED_RATE + + + Constant NoSampleTimestamp. + MF_E_NO_SAMPLE_TIMESTAMP + + + Constant RebootRequired. + MF_E_REBOOT_REQUIRED + + + Constant PropertyNotAllowEd. + MF_E_PROPERTY_NOT_ALLOWED + + + Constant ComponentRevoked. + MF_E_COMPONENT_REVOKED + + + Constant AsfIndexNotLoaded. + MF_E_ASF_INDEXNOTLOADED + + + Constant MediaSourceNotStarted. + MF_E_MEDIA_SOURCE_NOT_STARTED + + + Constant TopoStreamDescriptorNotSelected. + MF_E_TOPO_STREAM_DESCRIPTOR_NOT_SELECTED + + + Constant TransformCannotInitializeAcmDriver. + MF_E_TRANSFORM_CANNOT_INITIALIZE_ACM_DRIVER + + + Constant WmdrmotaActionMismatch. + MF_E_WMDRMOTA_ACTION_MISMATCH + + + Constant TransformNotPossibleForCurrentMediaTypeCombination. + MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_MEDIATYPE_COMBINATION + + + Constant InvalidStreamNumber. + MF_E_INVALIDSTREAMNUMBER + + + Constant TopoInvalidOptionalNode. + MF_E_TOPO_INVALID_OPTIONAL_NODE + + + Constant NetBadRequest. + MF_E_NET_BAD_REQUEST + + + Constant SampleallocatorCanceled. + MF_E_SAMPLEALLOCATOR_CANCELED + + + Constant NoMoreQualityLevels. + MF_E_NO_MORE_QUALITY_LEVELS + + + Constant NetIncompatibleServer. + MF_E_NET_INCOMPATIBLE_SERVER + + + Constant TransformProfileTruncated. + MF_E_TRANSFORM_PROFILE_TRUNCATED + + + Constant TopologyVerificationFailed. + MF_E_TOPOLOGY_VERIFICATION_FAILED + + + Constant UnsupportedRepresentation. + MF_E_UNSUPPORTED_REPRESENTATION + + + Constant NotAccepting. + MF_E_NOTACCEPTING + + + Constant InvalidStreamState. + MF_E_INVALID_STREAM_STATE + + + Constant OperationCancelled. + MF_E_OPERATION_CANCELLED + + + Constant NetRedirect. + MF_E_NET_REDIRECT + + + Constant Mp3NotFound. + MF_E_MP3_NOTFOUND + + + Constant NetInvalidPushTemplate. + MF_E_NET_INVALID_PUSH_TEMPLATE + + + Constant Mp3BadCrc. + MF_E_MP3_BAD_CRC + + + Constant NonPeProcess. + MF_E_NON_PE_PROCESS + + + Constant Mp3NotMp3. + MF_E_MP3_NOTMP3 + + + Constant StreamsInkExists. + MF_E_STREAMSINK_EXISTS + + + Constant MediaSourceNoStreamsSelected. + MF_E_MEDIA_SOURCE_NO_STREAMS_SELECTED + + + Constant VideoRenNoProcampHw. + MF_E_VIDEO_REN_NO_PROCAMP_HW + + + Constant OperationLNotSupported. + MF_E_OPL_NOT_SUPPORTED + + + Constant TransformNotPossibleForCurrentSpkrConfig. + MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_SPKR_CONFIG + + + Constant TransformTypeNotSet. + MF_E_TRANSFORM_TYPE_NOT_SET + + + Constant ClockInvalidContinuityKey. + MF_E_CLOCK_INVALID_CONTINUITY_KEY + + + Constant InvalidType. + MF_E_INVALIDTYPE + + + Constant NoClock. + MF_E_NO_CLOCK + + + Constant NotInitializeD. + MF_E_NOT_INITIALIZED + + + Constant HwMftFailedStartStreaming. + MF_E_HW_MFT_FAILED_START_STREAMING + + + Constant StateTransitionPending. + MF_E_STATE_TRANSITION_PENDING + + + Constant AsfFilesinkBitRateUnknown. + MF_E_ASF_FILESINK_BITRATE_UNKNOWN + + + Constant NoMoreDropModes. + MF_E_NO_MORE_DROP_MODES + + + Constant PolicyUnsupported. + MF_E_POLICY_UNSUPPORTED + + + Constant NoContentProtectionManager. + MF_E_NO_CONTENT_PROTECTION_MANAGER + + + Constant TransformPropertyValueIncompatible. + MF_E_TRANSFORM_PROPERTY_VALUE_INCOMPATIBLE + + + Constant SinkNoSamplesProcessed. + MF_E_SINK_NO_SAMPLES_PROCESSED + + + Constant InvalidWorkqueue. + MF_E_INVALID_WORKQUEUE + + + Constant DebuggingNotAllowEd. + MF_E_DEBUGGING_NOT_ALLOWED + + + Constant NoBitpump. + MF_E_NO_BITPUMP + + + Constant ByteStreamUnknownLength. + MF_E_BYTESTREAM_UNKNOWN_LENGTH + + + Constant NetSessionInvalid. + MF_E_NET_SESSION_INVALID + + + Constant NetProxyAccessDenied. + MF_E_NET_PROXY_ACCESSDENIED + + + Constant PlatformNotInitializeD. + MF_E_PLATFORM_NOT_INITIALIZED + + + Constant LateSample. + MF_E_LATE_SAMPLE + + + Constant ClockNoTimeSource. + MF_E_CLOCK_NO_TIME_SOURCE + + + Constant PeauthUntrusted. + MF_E_PEAUTH_UNTRUSTED + + + Constant ReverseUnsupported. + MF_E_REVERSE_UNSUPPORTED + + + Constant ThinningUnsupported. + MF_E_THINNING_UNSUPPORTED + + + Constant NetErrorFromProxy. + MF_E_NET_ERROR_FROM_PROXY + + + Constant NetUdpBlocked. + MF_E_NET_UDP_BLOCKED + + + Constant GrlInvalidFormat. + MF_E_GRL_INVALID_FORMAT + + + Constant ItaUnsupportedAction. + MF_E_ITA_UNSUPPORTED_ACTION + + + Constant InvalidCodecMerit. + MF_E_INVALID_CODEC_MERIT + + + Constant VideoDeviceLocked. + MF_E_VIDEO_DEVICE_LOCKED + + + Constant UnsupportedRateTransition. + MF_E_UNSUPPORTED_RATE_TRANSITION + + + Constant TransformProfileInvalidOrCorrupt. + MF_E_TRANSFORM_PROFILE_INVALID_OR_CORRUPT + + + Constant TopoMissingPresentationDescriptor. + MF_E_TOPO_MISSING_PRESENTATION_DESCRIPTOR + + + Constant UsermodeUntrusted. + MF_E_USERMODE_UNTRUSTED + + + Constant NetTimeout. + MF_E_NET_TIMEOUT + + + Constant StreamsInkRemoved. + MF_E_STREAMSINK_REMOVED + + + Constant NetRead. + MF_E_NET_READ + + + Constant NetUnsafeUrl. + MF_E_NET_UNSAFE_URL + + + Constant NetUnsupportedConfiguration. + MF_E_NET_UNSUPPORTED_CONFIGURATION + + + Constant UnsupportedFormat. + MF_E_UNSUPPORTED_FORMAT + + + Constant DrmHardwareInconsistent. + MF_E_DRM_HARDWARE_INCONSISTENT + + + Constant TopoLoopsInTopology. + MF_E_TOPO_LOOPS_IN_TOPOLOGY + + + Constant InvalidAsfStreamId. + MF_E_INVALID_ASF_STREAMID + + + Constant Attributenotfound. + MF_E_ATTRIBUTENOTFOUND + + + Constant QmInvalidState. + MF_E_QM_INVALIDSTATE + + + Constant MissingAsfLeakybucket. + MF_E_MISSING_ASF_LEAKYBUCKET + + + Constant NetWrite. + MF_E_NET_WRITE + + + Constant PropertyReadOnly. + MF_E_PROPERTY_READ_ONLY + + + Constant InvalidKey. + MF_E_INVALID_KEY + + + Constant PropertyNotEmpty. + MF_E_PROPERTY_NOT_EMPTY + + + Constant AudioServiceNotRunning. + MF_E_AUDIO_SERVICE_NOT_RUNNING + + + Constant PropertyEmpty. + MF_E_PROPERTY_EMPTY + + + Constant SinkAlreadystopped. + MF_E_SINK_ALREADYSTOPPED + + + Constant TopoCodecNotFound. + MF_E_TOPO_CODEC_NOT_FOUND + + + Constant PeauthPublickeyRevoked. + MF_E_PEAUTH_PUBLICKEY_REVOKED + + + Constant LicenseRestoreNoRights. + MF_E_LICENSE_RESTORE_NO_RIGHTS + + + Constant NoSourceInCache. + MF_E_NO_SOURCE_IN_CACHE + + + Constant SourceResolverMutuallyExclusiveFlags. + MF_E_SOURCERESOLVER_MUTUALLY_EXCLUSIVE_FLAGS + + + Constant AsfMissingData. + MF_E_ASF_MISSINGDATA + + + Constant UnsupportedStateTransition. + MF_E_UNSUPPORTED_STATE_TRANSITION + + + Constant TransformNotPossibleForCurrentInputMediaType. + MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_INPUT_MEDIATYPE + + + Constant PropertyTypeNotAllowEd. + MF_E_PROPERTY_TYPE_NOT_ALLOWED + + + Constant BadStartupVersion. + MF_E_BAD_STARTUP_VERSION + + + Constant UnsupportedByteStreamType. + MF_E_UNSUPPORTED_BYTESTREAM_TYPE + + + Constant NoSampleDuration. + MF_E_NO_SAMPLE_DURATION + + + Constant TransformNotPossibleForCurrentOutputMediaType. + MF_E_TRANSFORM_NOT_POSSIBLE_FOR_CURRENT_OUTPUT_MEDIATYPE + + + Constant TransformConflictsWithOtherCurrentlyEnabledFeatures. + MF_E_TRANSFORM_CONFLICTS_WITH_OTHER_CURRENTLY_ENABLED_FEATURES + + + Constant QualityknobWaitLonger. + MF_E_QUALITYKNOB_WAIT_LONGER + + + Constant TranscodeNoContainertype. + MF_E_TRANSCODE_NO_CONTAINERTYPE + + + Constant NoEventsAvailable. + MF_E_NO_EVENTS_AVAILABLE + + + Constant AsfUnsupportedStreamType. + MF_E_ASF_UNSUPPORTED_STREAM_TYPE + + + Constant TestSignedComponentsNotAllowEd. + MF_E_TEST_SIGNED_COMPONENTS_NOT_ALLOWED + + + Constant OutOfRange. + MF_E_OUT_OF_RANGE + + + Constant CannotFindKeyframeSample. + MF_E_CANNOT_FIND_KEYFRAME_SAMPLE + + + Constant StreamError. + MF_E_STREAM_ERROR + + + Constant GrlExtensibleEntryNotFound. + MF_E_GRL_EXTENSIBLE_ENTRY_NOT_FOUND + + + Constant WmdrmotaActionAlreadySet. + MF_E_WMDRMOTA_ACTION_ALREADY_SET + + + Constant AsfDroppedPacket. + MF_E_ASF_DROPPED_PACKET + + + Constant TranscodeProfileNoMatchingStreams. + MF_E_TRANSCODE_PROFILE_NO_MATCHING_STREAMS + + + Constant InvalidFormat. + MF_E_INVALID_FORMAT + + + Constant CannotIndexInPlace. + MF_E_CANNOT_INDEX_IN_PLACE + + + Constant RtThroughputNotAvailable. + MF_E_RT_THROUGHPUT_NOT_AVAILABLE + + + Constant PropertyVectorRequired. + MF_E_PROPERTY_VECTOR_REQUIRED + + + Constant SinkNoStreams. + MF_E_SINK_NO_STREAMS + + + Constant NetConnectionFailure. + MF_E_NET_CONNECTION_FAILURE + + + Constant NetBusy. + MF_E_NET_BUSY + + + Constant WmdrmotaInvalidPolicy. + MF_E_WMDRMOTA_INVALID_POLICY + + + Constant UnsupportedService. + MF_E_UNSUPPORTED_SERVICE + + + Constant NetServerAccessDenied. + MF_E_NET_SERVER_ACCESSDENIED + + + Constant VideoRenNoDeinterlaceHw. + MF_E_VIDEO_REN_NO_DEINTERLACE_HW + + + Constant SampleNotWritable. + MF_E_SAMPLE_NOT_WRITABLE + + + Constant InvalidProfile. + MF_E_INVALID_PROFILE + + + Constant GrlVersionTooLow. + MF_E_GRL_VERSION_TOO_LOW + + + Constant ItaUnrecognizedAnalogVideoProtectionGuid. + MF_E_ITA_UNRECOGNIZED_ANALOG_VIDEO_PROTECTION_GUID + + + Constant WmdrmotaNoAction. + MF_E_WMDRMOTA_NO_ACTION + + + Constant TopoCannotFindDecrementYptor. + MF_E_TOPO_CANNOT_FIND_DECRYPTOR + + + Constant BackupRestrictedLicense. + MF_E_BACKUP_RESTRICTED_LICENSE + + + Constant ItaErrorParsingSapParameters. + MF_E_ITA_ERROR_PARSING_SAP_PARAMETERS + + + Constant TrustDisabled. + MF_E_TRUST_DISABLED + + + Constant NetRedirectToProxy. + MF_E_NET_REDIRECT_TO_PROXY + + + Constant VideoRenCopyProtFailed. + MF_E_VIDEO_REN_COPYPROT_FAILED + + + Constant PeauthSessionNotStarted. + MF_E_PEAUTH_SESSION_NOT_STARTED + + + Constant UnsupportedTimeFormat. + MF_E_UNSUPPORTED_TIME_FORMAT + + + Constant NoVideoSampleAvailable. + MF_E_NO_VIDEO_SAMPLE_AVAILABLE + + + Constant TopoInvalidTimeAttributes. + MF_E_TOPO_INVALID_TIME_ATTRIBUTES + + + Constant MediaSourceWrongState. + MF_E_MEDIA_SOURCE_WRONGSTATE + + + Constant ItaUnrecognizedAnalogVideoOutput. + MF_E_ITA_UNRECOGNIZED_ANALOG_VIDEO_OUTPUT + + + Constant DisabledInSafemode. + MF_E_DISABLED_IN_SAFEMODE + + + Constant RtOufOfMemory. + MF_E_RT_OUTOFMEMORY + + + Constant NetRequireNetwork. + MF_E_NET_REQUIRE_NETWORK + + + Constant CannotCreateSink. + MF_E_CANNOT_CREATE_SINK + + + Constant EndOfStream. + MF_E_END_OF_STREAM + + + Constant NetClientClose. + MF_E_NET_CLIENT_CLOSE + + + Constant TransformPropertyPidNotRecognized. + MF_E_TRANSFORM_PROPERTY_PID_NOT_RECOGNIZED + + + Constant UnrecoverableErrorOccurred. + MF_E_UNRECOVERABLE_ERROR_OCCURRED + + + Constant UnsupportedCaption. + MF_E_UNSUPPORTED_CAPTION + + + Constant PeUntrusted. + MF_E_PE_UNTRUSTED + + + Constant GrlAbsent. + MF_E_GRL_ABSENT + + + Constant ClockStateAlreadySet. + MF_E_CLOCK_STATE_ALREADY_SET + + + Constant SampleallocatorEmpty. + MF_E_SAMPLEALLOCATOR_EMPTY + + + Constant NetProtocolDisabled. + MF_E_NET_PROTOCOL_DISABLED + + + Constant ItaOperationLDataNotInitializeD. + MF_E_ITA_OPL_DATA_NOT_INITIALIZED + + + Constant Unexpected. + MF_E_UNEXPECTED + + + Constant TimerOrphaned. + MF_E_TIMER_ORPHANED + + + Constant IncompatibleSampleProtection. + MF_E_INCOMPATIBLE_SAMPLE_PROTECTION + + + Constant OfflineMode. + MF_E_OFFLINE_MODE + + + Constant AlreadyInitializeD. + MF_E_ALREADY_INITIALIZED + + + Constant InvalidIndex. + MF_E_INVALIDINDEX + + + Constant AsfOufOfRange. + MF_E_ASF_OUTOFRANGE + + + Constant AudioPlaybackDeviceInvalidated. + MF_E_AUDIO_PLAYBACK_DEVICE_INVALIDATED + + + Constant TopoSinkActivatesUnsupported. + MF_E_TOPO_SINK_ACTIVATES_UNSUPPORTED + + + Constant NetRequireAsync. + MF_E_NET_REQUIRE_ASYNC + + + Constant TransformInputRemaining. + MF_E_TRANSFORM_INPUT_REMAINING + + + Constant NetProxyTimeout. + MF_E_NET_PROXY_TIMEOUT + + + Constant BadOperationLStructureFormat. + MF_E_BAD_OPL_STRUCTURE_FORMAT + + + Constant TransformPropertyValueOutOfRange. + MF_E_TRANSFORM_PROPERTY_VALUE_OUT_OF_RANGE + + + Constant PropertyNotFound. + MF_E_PROPERTY_NOT_FOUND + + + Constant TopoMissingSource. + MF_E_TOPO_MISSING_SOURCE + + + Constant NotAvailable. + MF_E_NOT_AVAILABLE + + + Constant NetBadControlData. + MF_E_NET_BAD_CONTROL_DATA + + + Constant LicenseRequired. + MF_E_LICENSE_REQUIRED + + + Constant NetInvalidPushPublishingPoint. + MF_E_NET_INVALID_PUSH_PUBLISHING_POINT + + + Constant AllOcatorAlreadyCommited. + MF_E_ALLOCATOR_ALREADY_COMMITED + + + Constant StreamsInksFixed. + MF_E_STREAMSINKS_FIXED + + + Constant NotFound. + MF_E_NOT_FOUND + + + Constant PropertyTypeNotSupported. + MF_E_PROPERTY_TYPE_NOT_SUPPORTED + + + Constant NetCacheNoData. + MF_E_NET_CACHE_NO_DATA + + + Constant AsfInvalidData. + MF_E_ASF_INVALIDDATA + + + Constant SessionPausewhilestopped. + MF_E_SESSION_PAUSEWHILESTOPPED + + + Constant RateChangePreempted. + MF_E_RATE_CHANGE_PREEMPTED + + + Constant AllOcatorNotInitializeD. + MF_E_ALLOCATOR_NOT_INITIALIZED + + + Constant TransformProfileMissing. + MF_E_TRANSFORM_PROFILE_MISSING + + + Constant UnsupportedD3DType. + MF_E_UNSUPPORTED_D3D_TYPE + + + Constant Shutdown. + MF_E_SHUTDOWN + + + Constant NewVideoDevice. + MF_E_NEW_VIDEO_DEVICE + + + Constant RtTooManyClassEs. + MF_E_RT_TOO_MANY_CLASSES + + + Constant KernelUntrusted. + MF_E_KERNEL_UNTRUSTED + + + Constant NetIncompatiblePushserver. + MF_E_NET_INCOMPATIBLE_PUSHSERVER + + + Constant TranscodeNoMatchingEncoder. + MF_E_TRANSCODE_NO_MATCHING_ENCODER + + + Constant NetInternalServerError. + MF_E_NET_INTERNAL_SERVER_ERROR + + + Constant TopoCannotConnect. + MF_E_TOPO_CANNOT_CONNECT + + + Constant CodeExpired. + MF_E_CODE_EXPIRED + + + Constant NetBwlevelNotSupported. + MF_E_NET_BWLEVEL_NOT_SUPPORTED + + + Constant Unauthorized. + MF_E_UNAUTHORIZED + + + Constant CannotParseByteStream. + MF_E_CANNOT_PARSE_BYTESTREAM + + + Constant UnsupportedScheme. + MF_E_UNSUPPORTED_SCHEME + + + Constant NoMoreTypes. + MF_E_NO_MORE_TYPES + + + Constant PeSessionsMaximumEd. + MF_E_PE_SESSIONS_MAXED + + + Constant NetworkResourceFailure. + MF_E_NETWORK_RESOURCE_FAILURE + + + Constant IndexNotCommitted. + MF_E_INDEX_NOT_COMMITTED + + + Constant MetadataTooLong. + MF_E_METADATA_TOO_LONG + + + Constant FormatChangeNotSupported. + MF_E_FORMAT_CHANGE_NOT_SUPPORTED + + + Constant StreamsInksOutOfSync. + MF_E_STREAMSINKS_OUT_OF_SYNC + + + Constant InvalidStreamData. + MF_E_INVALID_STREAM_DATA + + + Constant PropertyVectorNotAllowEd. + MF_E_PROPERTY_VECTOR_NOT_ALLOWED + + + Constant InvalidTimestamp. + MF_E_INVALID_TIMESTAMP + + + Constant NoIndex. + MF_E_NO_INDEX + + + Constant ClockNotSimple. + MF_E_CLOCK_NOT_SIMPLE + + + Constant TransformCannotChangeMediaTypeWhileProcessing. + MF_E_TRANSFORM_CANNOT_CHANGE_MEDIATYPE_WHILE_PROCESSING + + + Constant BandwidthOverrun. + MF_E_BANDWIDTH_OVERRUN + + + Constant NoPmpHost. + MF_E_NO_PMP_HOST + + + Constant MediaProcWrongState. + MF_E_MEDIAPROC_WRONGSTATE + + + Constant TransformPropertyValueSizeWrong. + MF_E_TRANSFORM_PROPERTY_VALUE_SIZE_WRONG + + + Constant WmdrmotaDrmEncryptionSchemeNotSupported. + MF_E_WMDRMOTA_DRM_ENCRYPTION_SCHEME_NOT_SUPPORTED + + + Constant TransformPropertyNotWriteAble. + MF_E_TRANSFORM_PROPERTY_NOT_WRITEABLE + + + Constant TransformStreamChange. + MF_E_TRANSFORM_STREAM_CHANGE + + + Constant GrlRenewalNotFound. + MF_E_GRL_RENEWAL_NOT_FOUND + + + Constant LicenseRestoreNeedsIndividualization. + MF_E_LICENSE_RESTORE_NEEDS_INDIVIDUALIZATION + + + Constant InvalidRequest. + MF_E_INVALIDREQUEST + + + Constant AudioPlaybackDeviceInUse. + MF_E_AUDIO_PLAYBACK_DEVICE_IN_USE + + + Constant NetCannotconnect. + MF_E_NET_CANNOTCONNECT + + + Constant LicenseOufOfDate. + MF_E_LICENSE_OUTOFDATE + + + Constant TransformPropertyVariantTypeWrong. + MF_E_TRANSFORM_PROPERTY_VARIANT_TYPE_WRONG + + + Constant AsfTooManyPayloads. + MF_E_ASF_TOO_MANY_PAYLOADS + + + + Functions + + + + + Constant BottomFieldFirst. + MFSampleExtension_BottomFieldFirst + + + Constant CleanPoint. + MFSampleExtension_CleanPoint + + + Constant DerivedFromTopField. + MFSampleExtension_DerivedFromTopField + + + Constant DeviceTimestamp. + MFSampleExtension_DeviceTimestamp + + + Constant Discontinuity. + MFSampleExtension_Discontinuity + + + Constant Interlaced. + MFSampleExtension_Interlaced + + + Constant PacketCrossOffsets. + MFSampleExtension_PacketCrossOffsets + + + Constant RepeatFirstField. + MFSampleExtension_RepeatFirstField + + + Constant SingleField. + MFSampleExtension_SingleField + + + Constant Token. + MFSampleExtension_Token + + + Constant DescrambleData. + MFSampleExtension_DescrambleData + + + Constant SampleKeyID. + MFSampleExtension_SampleKeyID + + + Constant GenKeyFunc. + MFSampleExtension_GenKeyFunc + + + Constant GenKeyCtx. + MFSampleExtension_GenKeyCtx + + + + Functions + + + + + Constant IgnoreClock. + MF_SAMPLEGRABBERSINK_IGNORE_CLOCK + + + Constant SampleTimeOffset. + MF_SAMPLEGRABBERSINK_SAMPLE_TIME_OFFSET + + + + Functions + + + + + Constant ReadwriteDisableConverters. + MF_READWRITE_DISABLE_CONVERTERS + + + Constant ReadwriteEnableHardwareTransforms. + MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS + + + Constant AsyncCallback. + MF_SINK_WRITER_ASYNC_CALLBACK + + + Constant DisableThrottling. + MF_SINK_WRITER_DISABLE_THROTTLING + + + + Functions + + + + + Constant AsyncCallback. + MF_SOURCE_READER_ASYNC_CALLBACK + + + Constant D3DManager. + MF_SOURCE_READER_D3D_MANAGER + + + Constant DisableDxva. + MF_SOURCE_READER_DISABLE_DXVA + + + Constant DisconnectMediasourceOnShutdown. + MF_SOURCE_READER_DISCONNECT_MEDIASOURCE_ON_SHUTDOWN + + + Constant EnableVideoProcessing. + MF_SOURCE_READER_ENABLE_VIDEO_PROCESSING + + + Constant MediaSourceCharacteristics. + MF_SOURCE_READER_MEDIASOURCE_CHARACTERISTICS + + + Constant MediaSourceConfig. + MF_SOURCE_READER_MEDIASOURCE_CONFIG + + + + Functions + + + + + Constant AsfExtstrmpropAvgBuffersize. + MF_SD_ASF_EXTSTRMPROP_AVG_BUFFERSIZE + + + Constant AsfExtstrmpropAvgDataBitrate. + MF_SD_ASF_EXTSTRMPROP_AVG_DATA_BITRATE + + + Constant AsfExtstrmpropLanguageIdIndex. + MF_SD_ASF_EXTSTRMPROP_LANGUAGE_ID_INDEX + + + Constant AsfExtstrmpropMaxBuffersize. + MF_SD_ASF_EXTSTRMPROP_MAX_BUFFERSIZE + + + Constant AsfExtstrmpropMaxDataBitrate. + MF_SD_ASF_EXTSTRMPROP_MAX_DATA_BITRATE + + + Constant AsfMetadataDeviceConformanceTemplate. + MF_SD_ASF_METADATA_DEVICE_CONFORMANCE_TEMPLATE + + + Constant AsfStreambitratesBitrate. + MF_SD_ASF_STREAMBITRATES_BITRATE + + + Constant Language. + MF_SD_LANGUAGE + + + Constant MutuallyExclusive. + MF_SD_MUTUALLY_EXCLUSIVE + + + Constant Protected. + MF_SD_PROTECTED + + + Constant SamiLanguage. + MF_SD_SAMI_LANGUAGE + + + Constant StreamName. + MF_SD_STREAM_NAME + + + + Functions + + + + + Constant DXVAMode. + MF_TOPOLOGY_DXVA_MODE + + + Constant DynamicChangeNotAllowed. + MF_TOPOLOGY_DYNAMIC_CHANGE_NOT_ALLOWED + + + Constant EnumerateSourceTypes. + MF_TOPOLOGY_ENUMERATE_SOURCE_TYPES + + + Constant HardwareMode. + MF_TOPOLOGY_HARDWARE_MODE + + + Constant NoMarkinMarkout. + MF_TOPOLOGY_NO_MARKIN_MARKOUT + + + Constant PlaybackFramerate. + MF_TOPOLOGY_PLAYBACK_FRAMERATE + + + Constant PlaybackMaxDimensions. + MF_TOPOLOGY_PLAYBACK_MAX_DIMS + + + Constant ProjectStart. + MF_TOPOLOGY_PROJECTSTART + + + Constant ProjectStop. + MF_TOPOLOGY_PROJECTSTOP + + + Constant ResolutionStatus. + MF_TOPOLOGY_RESOLUTION_STATUS + + + Constant StartTimeOnPresentationSwitch. + MF_TOPOLOGY_START_TIME_ON_PRESENTATION_SWITCH + + + Constant StaticPlaybackOptimizations. + MF_TOPOLOGY_STATIC_PLAYBACK_OPTIMIZATIONS + + + + Functions + + + + + Constant ConnectMethod. + MF_TOPONODE_CONNECT_METHOD + + + Constant D3DAWARE. + MF_TOPONODE_D3DAWARE + + + Constant Decoder. + MF_TOPONODE_DECODER + + + Constant Decryptor. + MF_TOPONODE_DECRYPTOR + + + Constant DisablePreroll. + MF_TOPONODE_DISABLE_PREROLL + + + Constant Discardable. + MF_TOPONODE_DISCARDABLE + + + Constant Drain. + MF_TOPONODE_DRAIN + + + Constant ErrorMajortype. + MF_TOPONODE_ERROR_MAJORTYPE + + + Constant ErrorSubtype. + MF_TOPONODE_ERROR_SUBTYPE + + + Constant Errorcode. + MF_TOPONODE_ERRORCODE + + + Constant Flush. + MF_TOPONODE_FLUSH + + + Constant Locked. + MF_TOPONODE_LOCKED + + + Constant MarkinHere. + MF_TOPONODE_MARKIN_HERE + + + Constant MarkoutHere. + MF_TOPONODE_MARKOUT_HERE + + + Constant Mediastart. + MF_TOPONODE_MEDIASTART + + + Constant Mediastop. + MF_TOPONODE_MEDIASTOP + + + Constant NoshutdownOnRemove. + MF_TOPONODE_NOSHUTDOWN_ON_REMOVE + + + Constant PresentationDescriptor. + MF_TOPONODE_PRESENTATION_DESCRIPTOR + + + Constant Primaryoutput. + MF_TOPONODE_PRIMARYOUTPUT + + + Constant Rateless. + MF_TOPONODE_RATELESS + + + Constant SequenceElementid. + MF_TOPONODE_SEQUENCE_ELEMENTID + + + Constant Source. + MF_TOPONODE_SOURCE + + + Constant StreamDescriptor. + MF_TOPONODE_STREAM_DESCRIPTOR + + + Constant Streamid. + MF_TOPONODE_STREAMID + + + Constant TransformObjectid. + MF_TOPONODE_TRANSFORM_OBJECTID + + + Constant WorkqueueId. + MF_TOPONODE_WORKQUEUE_ID + + + Constant WorkqueueMmcssClass. + MF_TOPONODE_WORKQUEUE_MMCSS_CLASS + + + Constant WorkqueueMmcssTaskid. + MF_TOPONODE_WORKQUEUE_MMCSS_TASKID + + + + Functions + + + + + Constant TranscodeAdjustProfile. + MF_TRANSCODE_ADJUST_PROFILE + + + Constant TranscodeContainertype. + MF_TRANSCODE_CONTAINERTYPE + + + Constant TranscodeDonotInsertEncoder. + MF_TRANSCODE_DONOT_INSERT_ENCODER + + + Constant TranscodeEncodingprofile. + MF_TRANSCODE_ENCODINGPROFILE + + + Constant TranscodeQualityvsspeed. + MF_TRANSCODE_QUALITYVSSPEED + + + Constant TranscodeSkipMetadataTransfer. + MF_TRANSCODE_SKIP_METADATA_TRANSFER + + + Constant TranscodeTopologymode. + MF_TRANSCODE_TOPOLOGYMODE + + + + Functions + + + + + Constant ActivateMftLocked. + MF_ACTIVATE_MFT_LOCKED + + + Constant D3DAware. + MF_SA_D3D_AWARE + + + Constant TransformAsync. + MF_TRANSFORM_ASYNC + + + Constant TransformAsyncUnlock. + MF_TRANSFORM_ASYNC_UNLOCK + + + Constant TransformCategoryAttribute. + MF_TRANSFORM_CATEGORY_Attribute + + + Constant TransformFlagsAttribute. + MF_TRANSFORM_FLAGS_Attribute + + + Constant MftCodecMeritAttribute. + MFT_CODEC_MERIT_Attribute + + + Constant MftConnectedStreamAttribute. + MFT_CONNECTED_STREAM_ATTRIBUTE + + + Constant MftConnectedToHwStream. + MFT_CONNECTED_TO_HW_STREAM + + + Constant MftEnumHardwareUrlAttribute. + MFT_ENUM_HARDWARE_URL_Attribute + + + Constant MftEnumTranscodeOnlyAttribute. + MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE + + + Constant MftFieldofuseUnlockAttribute. + MFT_FIELDOFUSE_UNLOCK_Attribute + + + Constant MftFriendlyNameAttribute. + MFT_FRIENDLY_NAME_Attribute + + + Constant MftHwTimestampWithQpcAttribute. + MFT_HW_TIMESTAMP_WITH_QPC_Attribute + + + Constant MftInputTypesAttributes. + MFT_INPUT_TYPES_Attributes + + + Constant MftOutputTypesAttributes. + MFT_OUTPUT_TYPES_Attributes + + + Constant MftPreferredEncoderProfile. + MFT_PREFERRED_ENCODER_PROFILE + + + Constant MftPreferredOutputtypeAttribute. + MFT_PREFERRED_OUTPUTTYPE_Attribute + + + Constant MftProcessLocalAttribute. + MFT_PROCESS_LOCAL_Attribute + + + Constant MftSupportDynamicFormatChange. + MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE + + + Constant MftTransformClsidAttribute. + MFT_TRANSFORM_CLSID_Attribute + + + + Functions + + + + + Constant AudioDecoder. + MFT_CATEGORY_AUDIO_DECODER + + + Constant Other. + MFT_CATEGORY_OTHER + + + Constant AudioEncoder. + MFT_CATEGORY_AUDIO_ENCODER + + + Constant Multiplexer. + MFT_CATEGORY_MULTIPLEXER + + + Constant Demultiplexer. + MFT_CATEGORY_DEMULTIPLEXER + + + Constant AudioEffect. + MFT_CATEGORY_AUDIO_EFFECT + + + Constant VideoProcessor. + MFT_CATEGORY_VIDEO_PROCESSOR + + + Constant VideoDecoder. + MFT_CATEGORY_VIDEO_DECODER + + + Constant VideoEffect. + MFT_CATEGORY_VIDEO_EFFECT + + + Constant VideoEncoder. + MFT_CATEGORY_VIDEO_ENCODER + + + + Functions + + + + + Constant Wmv1. + MFVideoFormat_WMV1 + + + Constant Wmv2. + MFVideoFormat_WMV2 + + + Constant Wmv3. + MFVideoFormat_WMV3 + + + Constant Mpeg2. + MFVideoFormat_MPEG2 + + + Constant Dvc. + MFVideoFormat_DVC + + + Constant M4S2. + MFVideoFormat_M4S2 + + + Constant Yvu9. + MFVideoFormat_YVU9 + + + Constant Iyuv. + MFVideoFormat_IYUV + + + Constant Wvc1. + MFVideoFormat_WVC1 + + + Constant Rgb8. + MFVideoFormat_RGB8 + + + Constant Base. + MFVideoFormat_Base + + + Constant H264. + MFVideoFormat_H264 + + + Constant Dv25. + MFVideoFormat_DV25 + + + Constant Dv50. + MFVideoFormat_DV50 + + + Constant Dvh1. + MFVideoFormat_DVH1 + + + Constant Dvhd. + MFVideoFormat_DVHD + + + Constant Dvsd. + MFVideoFormat_DVSD + + + Constant Dvsl. + MFVideoFormat_DVSL + + + Constant MultisampledS2. + MFVideoFormat_MSS2 + + + Constant P010. + MFVideoFormat_P010 + + + Constant YUY2. + MFVideoFormat_YUY2 + + + Constant Yv12. + MFVideoFormat_YV12 + + + Constant Yvyu. + MFVideoFormat_YVYU + + + Constant Rgb24. + MFVideoFormat_RGB24 + + + Constant Rgb32. + MFVideoFormat_RGB32 + + + Constant P016. + MFVideoFormat_P016 + + + Constant Y41P. + MFVideoFormat_Y41P + + + Constant Mjpg. + MFVideoFormat_MJPG + + + Constant P210. + MFVideoFormat_P210 + + + Constant P216. + MFVideoFormat_P216 + + + Constant I420. + MFVideoFormat_I420 + + + Constant Mp43. + MFVideoFormat_MP43 + + + Constant Mp4s. + MFVideoFormat_MP4S + + + Constant Mp4v. + MFVideoFormat_MP4V + + + Constant Mpg1. + MFVideoFormat_MPG1 + + + Constant MultisampledS1. + MFVideoFormat_MSS1 + + + Constant AI44. + MFVideoFormat_AI44 + + + Constant Argb32. + MFVideoFormat_ARGB32 + + + Constant NV11. + MFVideoFormat_NV11 + + + Constant NV12. + MFVideoFormat_NV12 + + + Constant Y210. + MFVideoFormat_Y210 + + + Constant Y216. + MFVideoFormat_Y216 + + + Constant Y410. + MFVideoFormat_Y410 + + + Constant Y416. + MFVideoFormat_Y416 + + + Constant Y41T. + MFVideoFormat_Y41T + + + Constant Y42T. + MFVideoFormat_Y42T + + + Constant Uyvy. + MFVideoFormat_UYVY + + + Constant Rgb555. + MFVideoFormat_RGB555 + + + Constant Rgb565. + MFVideoFormat_RGB565 + + + Constant AYUV. + MFVideoFormat_AYUV + + + +

Enables the application to defer the creation of an object. This interface is exposed by activation objects.

+
+ +

Typically, the application calls some function that returns an reference and then passes that reference to another component. The other component calls ActivateObject at a later time to create the object. In the protected media path (PMP), the reference might be marshaled to the protected process, so that the object can be created in that process.

+
+ + ms703039 + IMFActivate + IMFActivate +
+ + +

Provides a generic way to store key/value pairs on an object. The keys are s, and the values can be any of the following data types: UINT32, UINT64, double, , wide-character string, byte array, or reference. The standard implementation of this interface holds a thread lock while values are added, deleted, or retrieved.

For a list of predefined attribute s, see Media Foundation Attributes. Each attribute has an expected data type. The various "set" methods in do not validate the type against the attribute . It is the application's responsibility to set the correct type for the attribute.

To create an empty attribute store, call .

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704598 + IMFAttributes + IMFAttributes +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the value associated with a key.

+
+

A that identifies which value to retrieve.

+

A reference to a that receives the value. The method fills the with a copy of the stored value, if the value is found. Call PropVariantClear to free the memory allocated by this method. This parameter can be null. If this parameter is null, the method searches for the key and returns if the key is found, but does not copy the value.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The specified key was not found.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970450 + HRESULT IMFAttributes::GetItem([In] const GUID& guidKey,[In] void* pValue) + IMFAttributes::GetItem +
+ + +

Retrieves the data type of the value associated with a key.

+
+

that identifies which value to query.

+

Receives a member of the enumeration.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970369 + HRESULT IMFAttributes::GetItemType([In] const GUID& guidKey,[Out] MF_ATTRIBUTE_TYPE* pType) + IMFAttributes::GetItemType +
+ + +

Queries whether a stored attribute value equals to a specified .

+
+

that identifies which value to query.

+

that contains the value to compare.

+

Receives a Boolean value indicating whether the attribute matches the value given in Value. See Remarks. This parameter must not be null. If this parameter is null, an access violation occurs.

+ +

The method sets pbResult to for any of the following reasons:

  • No attribute is found whose key matches the one given in guidKey.

  • The attribute's type does not match the type given in Value.

  • The attribute value does not match the value given in Value.

  • The method fails.

Otherwise, the method sets pbResult to TRUE.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970566 + HRESULT IMFAttributes::CompareItem([In] const GUID& guidKey,[In] const PROPVARIANT& Value,[Out] BOOL* pbResult) + IMFAttributes::CompareItem +
+ + +

Compares the attributes on this object with the attributes on another object.

+
+

Pointer to the interface of the object to compare with this object.

+

Member of the enumeration, specifying the type of comparison to make.

+

Receives a Boolean value. The value is TRUE if the two sets of attributes match in the way specified by the MatchType parameter. Otherwise, the value is .

+ +

If pThis is the object whose Compare method is called, and pTheirs is the object passed in as the pTheirs parameter, the following comparisons are defined by MatchType.

Match typeReturns TRUE if and only if
For every attribute in pThis, an attribute with the same key and value exists in pTheirs.
For every attribute in pTheirs, an attribute with the same key and value exists in pThis.
The key/value pairs are identical in both objects.
Take the intersection of the keys in pThis and the keys in pTheirs. The values associated with those keys are identical in both pThis and pTheirs.
Take the object with the smallest number of attributes. For every attribute in that object, an attribute with the same key and value exists in the other object.

?

The pTheirs and pbResult parameters must not be null. If either parameter is null, an access violation occurs.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970349 + HRESULT IMFAttributes::Compare([In, Optional] IMFAttributes* pTheirs,[In] MF_ATTRIBUTES_MATCH_TYPE MatchType,[Out] BOOL* pbResult) + IMFAttributes::Compare +
+ + +

Retrieves a UINT32 value associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Receives a UINT32 value. If the key is found and the data type is UINT32, the method copies the value into this parameter. Otherwise, the original value of this parameter is not changed.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970551 + HRESULT IMFAttributes::GetUINT32([In] const GUID& guidKey,[Out] unsigned int* punValue) + IMFAttributes::GetUINT32 +
+ + +

Retrieves a UINT64 value associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Receives a UINT64 value. If the key is found and the data type is UINT64, the method copies the value into this parameter. Otherwise, the original value of this parameter is not changed.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970569 + HRESULT IMFAttributes::GetUINT64([In] const GUID& guidKey,[Out] unsigned longlong* punValue) + IMFAttributes::GetUINT64 +
+ + +

Retrieves a double value associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Receives a double value. If the key is found and the data type is double, the method copies the value into this parameter. Otherwise, the original value of this parameter is not changed.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970418 + HRESULT IMFAttributes::GetDouble([In] const GUID& guidKey,[Out] double* pfValue) + IMFAttributes::GetDouble +
+ + +

Retrieves a value associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Receives a value. If the key is found and the data type is , the method copies the value into this parameter. Otherwise, the original value of this parameter is not changed.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970426 + HRESULT IMFAttributes::GetGUID([In] const GUID& guidKey,[Out] GUID* pguidValue) + IMFAttributes::GetGUID +
+ + +

Retrieves the length of a string value associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

If the key is found and the value is a string type, this parameter receives the number of characters in the string, not including the terminating null character. To get the string value, call .

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970425 + HRESULT IMFAttributes::GetStringLength([In] const GUID& guidKey,[Out] unsigned int* pcchLength) + IMFAttributes::GetStringLength +
+ + +

Retrieves a wide-character string associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Pointer to a wide-character array allocated by the caller. The array must be large enough to hold the string, including the terminating null character. If the key is found and the value is a string type, the method copies the string into this buffer. To find the length of the string, call .

+

The size of the pwszValue array, in characters. This value includes the terminating null character.

+

Receives the number of characters in the string, excluding the terminating null character. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_OUTOFMEMORY

The length of the string is too large to fit in a UINT32 value.

E_NOT_SUFFICIENT_BUFFER

The buffer is not large enough to hold the string.

The specified key was not found.

The attribute value is not a string.

?

+ +

You can also use the method, which allocates the buffer to hold the string.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970430 + HRESULT IMFAttributes::GetString([In] const GUID& guidKey,[Out, Buffer] wchar_t* pwszValue,[In] unsigned int cchBufSize,[InOut, Optional] unsigned int* pcchLength) + IMFAttributes::GetString +
+ + +

Gets a wide-character string associated with a key. This method allocates the memory for the string.

+
+

A that identifies which value to retrieve. The attribute type must be .

+

If the key is found and the value is a string type, this parameter receives a copy of the string. The caller must free the memory for the string by calling CoTaskMemFree.

+

Receives the number of characters in the string, excluding the terminating null character. This parameter must not be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The specified key was not found.

The attribute value is not a string.

?

+ +

To copy a string value into a caller-allocated buffer, use the method.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

Note??An earlier version of the documentation incorrectly stated that the pcchLength parameter can be null. Setting this parameter to null might succeed in some cases, but is not guaranteed. The caller must pass a non-null reference for this parameter.

+
+ + bb970406 + HRESULT IMFAttributes::GetAllocatedString([In] const GUID& guidKey,[Out, Buffer, Optional] wchar_t** ppwszValue,[Out] unsigned int* pcchLength) + IMFAttributes::GetAllocatedString +
+ + +

Retrieves the length of a byte array associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

If the key is found and the value is a byte array, this parameter receives the size of the array, in bytes.

+ +

To get the byte array, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970459 + HRESULT IMFAttributes::GetBlobSize([In] const GUID& guidKey,[Out] unsigned int* pcbBlobSize) + IMFAttributes::GetBlobSize +
+ + +

Retrieves a byte array associated with a key. This method copies the array into a caller-allocated buffer.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Pointer to a buffer allocated by the caller. If the key is found and the value is a byte array, the method copies the array into this buffer. To find the required size of the buffer, call .

+

The size of the pBuf buffer, in bytes.

+

Receives the size of the byte array. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOT_SUFFICIENT_BUFFER

The buffer is not large enough to the array.

The specified key was not found.

The attribute value is not a byte array.

?

+ +

You can also use the method, which allocates the buffer to hold the byte array.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970421 + HRESULT IMFAttributes::GetBlob([In] const GUID& guidKey,[In] void* pBuf,[In] unsigned int cbBufSize,[InOut, Optional] unsigned int* pcbBlobSize) + IMFAttributes::GetBlob +
+ + +

Retrieves a byte array associated with a key. This method allocates the memory for the array.

+
+

that identifies which value to retrieve. The attribute type must be .

+

If the key is found and the value is a byte array, this parameter receives a copy of the array. The caller must free the memory for the array by calling CoTaskMemFree.

+

Receives the size of the array, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The specified key was not found.

The attribute value is not a byte array.

?

+ +

To copy a byte array value into a caller-allocated buffer, use the method.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970382 + HRESULT IMFAttributes::GetAllocatedBlob([In] const GUID& guidKey,[Out, Buffer, Optional] unsigned char** ppBuf,[Out] unsigned int* pcbSize) + IMFAttributes::GetAllocatedBlob +
+ + +

Retrieves an interface reference associated with a key.

+
+

that identifies which value to retrieve. The attribute type must be .

+

Interface identifier (IID) of the interface to retrieve.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOINTERFACE

The attribute value is an reference but does not support requested interface.

The specified key was not found.

The attribute value is not an reference.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970481 + HRESULT IMFAttributes::GetUnknown([In] const GUID& guidKey,[In] const GUID& riid,[Out] void** ppv) + IMFAttributes::GetUnknown +
+ + +

Adds an attribute value with a specified key.

+
+

A that identifies the value to set. If this key already exists, the method overwrites the old value.

+

A that contains the attribute value. The method copies the value. The type must be one of the types listed in the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_OUTOFMEMORY

Insufficient memory.

Invalid attribute type.

?

+ +

This method checks whether the type is one of the attribute types defined in , and fails if an unsupported type is used. However, this method does not check whether the is the correct type for the specified attribute . (There is no programmatic way to associate attribute GUIDs with property types.) For a list of Media Foundation attributes and their data types, see Media Foundation Attributes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970346 + HRESULT IMFAttributes::SetItem([In] const GUID& guidKey,[In] const PROPVARIANT& Value) + IMFAttributes::SetItem +
+ + +

Removes a key/value pair from the object's attribute list.

+
+

that identifies the value to delete.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the specified key does not exist, the method returns .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970486 + HRESULT IMFAttributes::DeleteItem([In] const GUID& guidKey) + IMFAttributes::DeleteItem +
+ + +

Removes all key/value pairs from the object's attribute list.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms700200 + HRESULT IMFAttributes::DeleteAllItems() + IMFAttributes::DeleteAllItems +
+ + +

Associates a UINT32 value with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

New value for this key.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To retrieve the UINT32 value, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970467 + HRESULT IMFAttributes::SetUINT32([In] const GUID& guidKey,[In] unsigned int unValue) + IMFAttributes::SetUINT32 +
+ + +

Associates a UINT64 value with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

New value for this key.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To retrieve the UINT64 value, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970439 + HRESULT IMFAttributes::SetUINT64([In] const GUID& guidKey,[In] unsigned longlong unValue) + IMFAttributes::SetUINT64 +
+ + +

Associates a double value with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

New value for this key.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To retrieve the double value, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970505 + HRESULT IMFAttributes::SetDouble([In] const GUID& guidKey,[In] double fValue) + IMFAttributes::SetDouble +
+ + +

Associates a value with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

New value for this key.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_OUTOFMEMORY

Insufficient memory.

?

+ +

To retrieve the value, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970530 + HRESULT IMFAttributes::SetGUID([In] const GUID& guidKey,[In] const GUID& guidValue) + IMFAttributes::SetGUID +
+ + +

Associates a wide-character string with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

Null-terminated wide-character string to associate with this key. The method stores a copy of the string.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To retrieve the string, call or .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970404 + HRESULT IMFAttributes::SetString([In] const GUID& guidKey,[In, Buffer] const wchar_t* wszValue) + IMFAttributes::SetString +
+ + +

Associates a byte array with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

Pointer to a byte array to associate with this key. The method stores a copy of the array.

+

Size of the array, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To retrieve the byte array, call or .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970395 + HRESULT IMFAttributes::SetBlob([In] const GUID& guidKey,[In] const void* pBuf,[In] unsigned int cbBufSize) + IMFAttributes::SetBlob +
+ + +

Associates an reference with a key.

+
+

that identifies the value to set. If this key already exists, the method overwrites the old value.

+

reference to be associated with this key.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To retrieve the reference, call .

It is not an error to call SetUnknown with pUnknown equal to null. However, GetUnknown will return .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970533 + HRESULT IMFAttributes::SetUnknown([In] const GUID& guidKey,[In, Optional] IUnknown* pUnknown) + IMFAttributes::SetUnknown +
+ + +

Locks the attribute store so that no other thread can access it. If the attribute store is already locked by another thread, this method blocks until the other thread unlocks the object. After calling this method, call to unlock the object.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method can cause a deadlock if a thread that calls LockStore waits on a thread that calls any other methods on the same object.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698926 + HRESULT IMFAttributes::LockStore() + IMFAttributes::LockStore +
+ + +

Unlocks the attribute store after a call to the method. While the object is unlocked, multiple threads can access the object's attributes.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697545 + HRESULT IMFAttributes::UnlockStore() + IMFAttributes::UnlockStore +
+ + +

Retrieves the number of attributes that are set on this object.

+
+

Receives the number of attributes. This parameter must not be null. If this parameter is null, an access violation occurs.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To enumerate all of the attributes, call for each index value.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970413 + HRESULT IMFAttributes::GetCount([Out] unsigned int* pcItems) + IMFAttributes::GetCount +
+ + +

Retrieves an attribute at the specified index.

+
+

Index of the attribute to retrieve. To get the number of attributes, call .

+

Receives the that identifies this attribute.

+

Pointer to a that receives the value. This parameter can be null. If it is not null, the method fills the with a copy of the attribute value. Call PropVariantClear to free the memory allocated by this method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid index.

?

+ +

To enumerate all of an object's attributes in a thread-safe way, do the following:

  1. Call to prevent another thread from adding or deleting attributes.

  2. Call to find the number of attributes.

  3. Call GetItemByIndex to get each attribute by index.

  4. Call to unlock the attribute store.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970331 + HRESULT IMFAttributes::GetItemByIndex([In] unsigned int unIndex,[Out] GUID* pguidKey,[InOut, Optional] PROPVARIANT* pValue) + IMFAttributes::GetItemByIndex +
+ + +

Copies all of the attributes from this object into another attribute store.

+
+

A reference to the interface of the attribute store that receives the copy.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method deletes all of the attributes originally stored in pDest.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970330 + HRESULT IMFAttributes::CopyAllItems([In, Optional] IMFAttributes* pDest) + IMFAttributes::CopyAllItems +
+ + + Initializes a new instance of the class. + + The initial number of elements allocated for the attribute store. The attribute store grows as needed. Default is 0 + +

Attributes are used throughout Microsoft Media Foundation to configure objects, describe media formats, query object properties, and other purposes. For more information, see Attributes in Media Foundation.

For a complete list of all the defined attribute GUIDs in Media Foundation, see Media Foundation Attributes.

+
+ ms701878 + HRESULT MFCreateAttributes([Out] IMFAttributes** ppMFAttributes,[In] unsigned int cInitialSize) + MFCreateAttributes +
+ + + Gets an item value + + GUID of the key. + The value associated to this key. + ms704598 + HRESULT IMFAttributes::GetItem([In] const GUID& guidKey,[In] void* pValue) + IMFAttributes::GetItem + + + +

Applies to: desktop apps | Metro style apps

Retrieves an attribute at the specified index.

+
+

Index of the attribute to retrieve. To get the number of attributes, call .

+

Receives the that identifies this attribute.

+ The value associated to this index + +

To enumerate all of an object's attributes in a thread-safe way, do the following:

  1. Call to prevent another thread from adding or deleting attributes.

  2. Call to find the number of attributes.

  3. Call GetItemByIndex to get each attribute by index.

  4. Call to unlock the attribute store.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ bb970331 + HRESULT IMFAttributes::GetItemByIndex([In] unsigned int unIndex,[Out] GUID* pguidKey,[InOut, Optional] PROPVARIANT* pValue) + IMFAttributes::GetItemByIndex +
+ + + Gets an item value + + GUID of the key. + The value associated to this key. + ms704598 + HRESULT IMFAttributes::GetItem([In] const GUID& guidKey,[In] void* pValue) + IMFAttributes::GetItem + + + + Gets an item value + + GUID of the key. + The value associated to this key. + ms704598 + HRESULT IMFAttributes::GetItem([In] const GUID& guidKey,[In] void* pValue) + IMFAttributes::GetItem + + + +

Applies to: desktop apps | Metro style apps

Adds an attribute value with a specified key.

+
+

A that identifies the value to set. If this key already exists, the method overwrites the old value.

+

A that contains the attribute value. The method copies the value. The type must be one of the types listed in the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_OUTOFMEMORY

Insufficient memory.

MF_E_INVALIDTYPE

Invalid attribute type.

?

+ +

This method checks whether the type is one of the attribute types defined in , and fails if an unsupported type is used. However, this method does not check whether the is the correct type for the specified attribute . (There is no programmatic way to associate attribute GUIDs with property types.) For a list of Media Foundation attributes and their data types, see Media Foundation Attributes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ bb970346 + HRESULT IMFAttributes::SetItem([In] const GUID& guidKey,[In] const PROPVARIANT& Value) + IMFAttributes::SetItem +
+ + +

Applies to: desktop apps | Metro style apps

Adds an attribute value with a specified key.

+
+

A that identifies the value to set. If this key already exists, the method overwrites the old value.

+

A that contains the attribute value. The method copies the value. The type must be one of the types listed in the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_OUTOFMEMORY

Insufficient memory.

MF_E_INVALIDTYPE

Invalid attribute type.

?

+ +

This method checks whether the type is one of the attribute types defined in , and fails if an unsupported type is used. However, this method does not check whether the is the correct type for the specified attribute . (There is no programmatic way to associate attribute GUIDs with property types.) For a list of Media Foundation attributes and their data types, see Media Foundation Attributes.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ bb970346 + HRESULT IMFAttributes::SetItem([In] const GUID& guidKey,[In] const PROPVARIANT& Value) + IMFAttributes::SetItem +
+ + +

Retrieves the number of attributes that are set on this object.

+
+ +

To enumerate all of the attributes, call for each index value.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970413 + GetCount + GetCount + HRESULT IMFAttributes::GetCount([Out] unsigned int* pcItems) +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates the object associated with this activation object.

+
+

Interface identifier (IID) of the requested interface.

+

Receives a reference to the requested interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Some Microsoft Media Foundation objects must be shut down before being released. If so, the caller is responsible for shutting down the object that is returned in ppv. To shut down the object, do one of the following:

  • Call on the activation object, or
  • Call the object-specific shutdown method. This method will depend on the type of object. Possibilities include:
    • Media sources: Call .
    • Media sinks: Call .
    • Any object that supports the interface: Call .

The method is generic to all object types. If the object does not require a shutdown method, ShutdownObject succeeds and has no effect. If you do not know the specific shutdown method for the object (or do not know the object type), call .

After the first call to ActivateObject, subsequent calls return a reference to the same instance, until the client calls either ShutdownObject or .

+
+ + ms694292 + HRESULT IMFActivate::ActivateObject([In] const GUID& riid,[Out] void** ppv) + IMFActivate::ActivateObject +
+ + +

Shuts down the created object.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If you create an object by calling , call ShutdownObject when you are done using the object.

The component that calls ActivateObject?not the component that creates the activation object?is responsible for calling ShutdownObject. For example, in a typical playback application, the application creates activation objects for the media sinks, but the Media Session calls ActivateObject. Therefore the Media Session, not the application, calls ShutdownObject.

After ShutdownObject is called, the activation object releases all of its internal references to the created object. If you call ActivateObject again, the activation object will create a new instance of the other object.

+
+ + ms695228 + HRESULT IMFActivate::ShutdownObject() + IMFActivate::ShutdownObject +
+ + +

Detaches the created object from the activation object.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented.

?

+ +

The activation object releases all of its internal references to the created object. If you call ActivateObject again, the activation object will create a new instance of the other object.

The DetachObject method does not shut down the created object. If the DetachObject method succeeds, the client must shut down the created object. This rule applies only to objects that have a shutdown method or that support the interface. See the remarks for .

Implementation of this method is optional. If the activation object does not support this method, the method returns E_NOTIMPL.

+
+ + aa367342 + HRESULT IMFActivate::DetachObject() + IMFActivate::DetachObject +
+ + +

Provides methods to work with the header section of files conforming to the Advanced Systems Format (ASF) specification.

The ASF ContentInfo Object exposes this interface. To create the get a reference to the interface, call .

+
+ + ms701620 + IMFASFContentInfo + IMFASFContentInfo +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the size of the header section of an Advanced Systems Format (ASF) file.

+
+

The interface of a buffer object containing the beginning of ASF content. The size of the valid data in the buffer must be at least MFASF_MIN_HEADER_BYTES in bytes.

+

Receives the size, in bytes, of the header section of the content. The value includes the size of the ASF Header Object plus the size of the header section of the Data Object. Therefore, the resulting value is the offset to the start of the data packets in the ASF Data Object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The buffer does not contain valid ASF data.

The buffer does not contain enough valid data.

?

+ +

The header of an ASF file or stream can be passed to the method to populate the ContentInfo object with the header information.

+
+ + ms703043 + HRESULT IMFASFContentInfo::GetHeaderSize([In] IMFMediaBuffer* pIStartOfContent,[In] unsigned longlong* cbHeaderSize) + IMFASFContentInfo::GetHeaderSize +
+ + +

Parses the information in an ASF header and uses that information to set values in the ContentInfo object. You can pass the entire header in a single buffer or send it in several pieces.

+
+

Pointer to the interface of a buffer object containing some or all of the header. The buffer must contain at least 30 bytes, which is the size of the Header Object, not including the objects contained in the Header Object (that is, everything up to and including the Reserved2 field in the Header Object).

+

Offset, in bytes, of the first byte in the buffer relative to the beginning of the header.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The header is completely parsed and validated.

The input buffer does not contain valid ASF data.

The input buffer is to small.

MF_S_ASF_PARSEINPROGRESS

The method succeeded, but the header passed was incomplete. This is the successful return code for all calls but the last one when passing the header in pieces.

?

+ +

If you pass the header in pieces, the ContentInfo object will keep references to the buffer objects until the entire header is parsed. Therefore, do not write over the buffers passed into this method.

The start of the Header object has the following layout in memory:

Field NameSize in bytes
Object ID16
Object Size8
Number of Header Objects4
Reserved11
Reserved21

?

The first call to ParseHeader reads everything up to and including Rerserved2, so it requires a minimum of 30 bytes. (Note that the method reads only the Object ID and Object Size fields, so that method requires a minimum of 24 bytes.)

+
+ + ms694306 + HRESULT IMFASFContentInfo::ParseHeader([In] IMFMediaBuffer* pIHeaderBuffer,[In] unsigned longlong cbOffsetWithinHeader) + IMFASFContentInfo::ParseHeader +
+ + +

Encodes the data in the MFASFContentInfo object into a binary Advanced Systems Format (ASF) header.

+
+

A reference to the interface of the buffer object that will receive the encoded header. Set to null to retrieve the size of the header.

+

Size of the encoded ASF header in bytes. If pIHeader is null, this value is set to the buffer size required to hold the encoded header.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The ASF Header Objects do not exist for the media that the ContentInfo object holds reference to.

The ASF Header Object size exceeds 10 MB.

The buffer passed in pIHeader is not large enough to hold the ASF Header Object information.

?

+ +

The size received in the pcbHeader parameter includes the padding size. The content information shrinks or expands the padding data depending on the size of the ASF Header Objects.

During this call, the stream properties are set based on the encoding properties of the profile. These properties are available through the interface.

+
+ + ms701575 + HRESULT IMFASFContentInfo::GenerateHeader([In] IMFMediaBuffer* pIHeader,[In] unsigned int* pcbHeader) + IMFASFContentInfo::GenerateHeader +
+ + +

Retrieves an Advanced Systems Format (ASF) profile that describes the ASF content.

+
+

Receives an interface reference. The caller must release the interface. If the object does not have an ASF profile, this parameter receives the value null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The profile is set by calling either or .

The ASF profile object returned by this method does not include any of the MF_PD_ASF_xxx attributes (see Presentation Descriptor Attributes). To get these attributes, do the following:

  1. Call to get the ASF presentation descriptor. You can query the presentation descriptor for the MF_PD_ASF_xxx attributes.

  2. (Optional.) Call to convert the presentation descriptor into an ASF profile. The profile object created by this function contains the MF_PD_ASF_xxx attributes.

An ASF profile is a template for file encoding, and is intended mainly for creating ASF content. If you are reading an existing ASF file, it is recommended that you use the presentation descriptor to get information about the file. One exception is that the profile contains the mutual exclusion and stream prioritization objects, which are not exposed directly from the presentation descriptor.

+
+ + ms698931 + HRESULT IMFASFContentInfo::GetProfile([In] IMFASFProfile** ppIProfile) + IMFASFContentInfo::GetProfile +
+ + +

Uses profile data from a profile object to configure settings in the ContentInfo object.

+
+

The interface of the profile object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If there is already information in the ContentInfo object when this method is called, it is replaced by the information from the profile object.

+
+ + ms699846 + HRESULT IMFASFContentInfo::SetProfile([In] IMFASFProfile* pIProfile) + IMFASFContentInfo::SetProfile +
+ + +

Creates a presentation descriptor for ASF content.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704860 + HRESULT IMFASFContentInfo::GeneratePresentationDescriptor([In] IMFPresentationDescriptor** ppIPresentationDescriptor) + IMFASFContentInfo::GeneratePresentationDescriptor +
+ + +

Retrieves a property store that can be used to set encoding properties.

+
+

Stream number to configure. Set to zero to configure file-level encoding properties.

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704750 + HRESULT IMFASFContentInfo::GetEncodingConfigurationPropertyStore([In] unsigned short wStreamNumber,[In] IPropertyStore** ppIStore) + IMFASFContentInfo::GetEncodingConfigurationPropertyStore +
+ + +

Retrieves an Advanced Systems Format (ASF) profile that describes the ASF content.

+
+ +

The profile is set by calling either or .

The ASF profile object returned by this method does not include any of the MF_PD_ASF_xxx attributes (see Presentation Descriptor Attributes). To get these attributes, do the following:

  1. Call to get the ASF presentation descriptor. You can query the presentation descriptor for the MF_PD_ASF_xxx attributes.

  2. (Optional.) Call to convert the presentation descriptor into an ASF profile. The profile object created by this function contains the MF_PD_ASF_xxx attributes.

An ASF profile is a template for file encoding, and is intended mainly for creating ASF content. If you are reading an existing ASF file, it is recommended that you use the presentation descriptor to get information about the file. One exception is that the profile contains the mutual exclusion and stream prioritization objects, which are not exposed directly from the presentation descriptor.

+
+ + ms698931 + GetProfile / SetProfile + GetProfile + HRESULT IMFASFContentInfo::GetProfile([In] IMFASFProfile** ppIProfile) +
+ + +

Retrieves the index settings for a specified stream and index type.

+
+ +

To read an existing ASF index, call before calling this method.

If an index exists for the stream and the value passed into pcbIndexDescriptor is smaller than the required size of the pbIndexDescriptor buffer, the method returns . The required buffer size is returned in the pcbIndexDescriptor parameter.

If there is no index for the specified stream, the method returns in the pfIsIndexed parameter.

+
+ + ms704012 + IMFASFIndexer + IMFASFIndexer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets indexer options.

+
+

Bitwise OR of zero or more flags from the MFASF_INDEXER_FLAGS enumeration specifying the indexer options to use.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The indexer object was initialized before setting flags for it. For more information, see Remarks.

?

+ +

must be called before . Attempting to call SetFlags after Initialize will return as a result.

+
+ + ms699840 + HRESULT IMFASFIndexer::SetFlags([In] unsigned int dwFlags) + IMFASFIndexer::SetFlags +
+ + +

Retrieves the flags that indicate the selected indexer options.

+
+

Receives a bitwise OR of zero or more flags from the MFASF_INDEXER_FLAGS enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pdwFlags is null.

?

+ +

You must call this method before initializing the indexer object with .

+
+ + ms701578 + HRESULT IMFASFIndexer::GetFlags([In] unsigned int* pdwFlags) + IMFASFIndexer::GetFlags +
+ + +

Initializes the indexer object. This method reads information in a ContentInfo object about the configuration of the content and the properties of the existing index, if present. Use this method before using the indexer for either writing or reading an index. You must make this call before using any of the other methods of the interface.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid ASF data.

Unexpected error.

?

+ +

The indexer needs to examine the data in the ContentInfo object to properly write or read the index for the content. The indexer will not make changes to the content information and will not hold any references to the interface.

In the ASF header, the maximum data-packet size must equal the minimum data-packet size. Otherwise, the method returns .

+
+ + ms703030 + HRESULT IMFASFIndexer::Initialize([In] IMFASFContentInfo* pIContentInfo) + IMFASFIndexer::Initialize +
+ + +

Retrieves the offset of the index object from the start of the content.

+
+

Pointer to the interface of the ContentInfo object that describes the content.

+

Receives the offset of the index relative to the beginning of the content described by the ContentInfo object. This is the position relative to the beginning of the ASF file.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pIContentInfo is null or pcbIndexOffset is null

?

+ +

The index continues from the offset retrieved by this method to the end of the file.

You must call to set up the indexer before calling this method.

If the index is retrieved by using more than one call to , the position of individual index portions is equal to the index offset plus the offset of the portion within the index.

+
+ + ms699858 + HRESULT IMFASFIndexer::GetIndexPosition([In] IMFASFContentInfo* pIContentInfo,[In] unsigned longlong* pcbIndexOffset) + IMFASFIndexer::GetIndexPosition +
+ + +

Adds byte streams to be indexed.

+
+

An array of interface references. To get the byte stream, call .

+

The number of references in the ppIByteStreams array.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The indexer object has already been initialized and it has packets which have been indexed.

?

+ +

For a reading scenario, only one byte stream should be used by the indexer object. For an index generating scenario, it depends how many index objects are needed to be generated.

+
+ + ms704843 + HRESULT IMFASFIndexer::SetIndexByteStreams([In] IMFByteStream** ppIByteStreams,[In] unsigned int cByteStreams) + IMFASFIndexer::SetIndexByteStreams +
+ + +

Retrieves the number of byte streams that are in use by the indexer object.

+
+

Receives the number of byte streams that are in use by the indexer object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pcByteStreams is null.

?

+ + ms701789 + HRESULT IMFASFIndexer::GetIndexByteStreamCount([In] unsigned int* pcByteStreams) + IMFASFIndexer::GetIndexByteStreamCount +
+ + +

Retrieves the index settings for a specified stream and index type.

+
+

Pointer to an structure that contains the stream number and index type for which to get the status.

+

A variable that retrieves a Boolean value specifying whether the index described by pIndexIdentifier has been created.

+

A buffer that receives the index descriptor. The index descriptor consists of an structure, optionally followed by index-specific data.

+

On input, specifies the size, in bytes, of the buffer that pbIndexDescriptor points to. The value can be zero if pbIndexDescriptor is null. On output, receives the size of the index descriptor, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The buffer size specified in pcbIndexDescriptor is too small.

?

+ +

To read an existing ASF index, call before calling this method.

If an index exists for the stream and the value passed into pcbIndexDescriptor is smaller than the required size of the pbIndexDescriptor buffer, the method returns . The required buffer size is returned in the pcbIndexDescriptor parameter.

If there is no index for the specified stream, the method returns in the pfIsIndexed parameter.

+
+ + ms704012 + HRESULT IMFASFIndexer::GetIndexStatus([In] ASF_INDEX_IDENTIFIER* pIndexIdentifier,[In] BOOL* pfIsIndexed,[In] unsigned char* pbIndexDescriptor,[In] unsigned int* pcbIndexDescriptor) + IMFASFIndexer::GetIndexStatus +
+ + +

Configures the index for a stream.

+
+

The index descriptor to set. The index descriptor is an structure, optionally followed by index-specific data.

+

The size, in bytes, of the index descriptor.

+

A Boolean value. Set to TRUE to have the indexer create an index of the type specified for the stream specified in the index descriptor.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

At attempt was made to change the index status in a seek-only scenario. For more information, see Remarks.

?

+ +

You must make all calls to SetIndexStatus before making any calls to .

The indexer object is configured to create temporal indexes for each stream by default. Call this method only if you want to override the default settings.

You cannot use this method in an index reading scenario. You can only use this method when writing indexes.

+
+ + ms702981 + HRESULT IMFASFIndexer::SetIndexStatus([In] unsigned char* pbIndexDescriptor,[In] unsigned int cbIndexDescriptor,[In] BOOL fGenerateIndex) + IMFASFIndexer::SetIndexStatus +
+ + +

Given a desired seek time, gets the offset from which the client should start reading data.

+
+

The value of the index entry for which to get the position. The format of this value varies depending on the type of index, which is specified in the index identifier. For time-based indexing, the variant type is VT_I8 and the value is the desired seek time, in 100-nanosecond units.

+

Pointer to an structure that identifies the stream number and index type.

+

Receives the offset within the data segment of the ASF Data Object. The offset is in bytes, and is relative to the start of packet 0. The offset gives the starting location from which the client should begin reading from the stream. This location might not correspond exactly to the requested seek time.

For reverse playback, if no key frame exists after the desired seek position, this parameter receives the value MFASFINDEXER_READ_FOR_REVERSEPLAYBACK_OUTOFDATASEGMENT. In that case, the seek position should be 1 byte pass the end of the data segment.

+

Receives the approximate time stamp of the data that is located at the offset returned in the pcbOffsetWithinData parameter. The accuracy of this value is equal to the indexing interval of the ASF index, typically about 1 second.

  • If the index type specified in pIndexIdentifier is GUID_NULL (time indexing), this parameter can be null.
  • For all other index types, this parameter must be null.

If the approximate time stamp cannot be determined, this parameter receives the value MFASFINDEXER_APPROX_SEEK_TIME_UNKNOWN.

+

Receives the payload number of the payload that contains the information for the specified stream. Packets can contain multiple payloads, each containing data for a different stream. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The requested seek time is out of range.

No index exists of the specified type for the specified stream.

?

+ + ms703125 + HRESULT IMFASFIndexer::GetSeekPositionForValue([In] const PROPVARIANT* pvarValue,[In] ASF_INDEX_IDENTIFIER* pIndexIdentifier,[In] unsigned longlong* pcbOffsetWithinData,[In] longlong* phnsApproxTime,[In] unsigned int* pdwPayloadNumberOfStreamWithinPacket) + IMFASFIndexer::GetSeekPositionForValue +
+ + +

Accepts an ASF packet for the file and creates index entries for them.

+
+

Pointer to the interface of a media sample that contains the ASF packet.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The argument passed in is null.

The indexer is not initialized.

?

+ +

The ASF indexer creates indexes for a file internally. You can get the completed index for all data packets sent to the indexer by committing the index with and then calling to write the index entries into a media buffer. To determine the size of the index so you can allocate a buffer large enough to hold the index, call .

When this method creates index entries, they are immediately available for use by .

The media sample specified in pIASFPacketSample must hold a buffer that contains a single ASF packet. Get the sample from the ASF multiplexer by calling the method.

You cannot use this method while reading an index, only when writing an index.

+
+ + ms705660 + HRESULT IMFASFIndexer::GenerateIndexEntries([In] IMFSample* pIASFPacketSample) + IMFASFIndexer::GenerateIndexEntries +
+ + +

Adds information about a new index to the ContentInfo object associated with ASF content. You must call this method before copying the index to the content so that the index will be readable by the indexer later.

+
+

Pointer to the interface of the ContentInfo object that describes the content.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The caller made an invalid request. For more information, see Remarks.

?

+ +

For the index to function properly, you must call this method after all ASF packets in the file have been passed to the indexer by using the method. After you call this method, you must retrieve the indexes by calling GetCompletedIndex and write them to the appropriate location in the file. Finally, you must generate a new ASF header by calling the method of the ASF ContentInfo object.

An application must use the CommitIndex method only when writing a new index otherwise CommitIndex may return as a result. For example, is returned if the application has flags other than set on the indexer object. CommitIndex can also return if the index entries have already been committed through an earlier CommitIndex call.

You cannot use this method in an index reading scenario. You can only use this method when writing indexes.

+
+ + ms696994 + HRESULT IMFASFIndexer::CommitIndex([In] IMFASFContentInfo* pIContentInfo) + IMFASFIndexer::CommitIndex +
+ + +

Retrieves the size, in bytes, of the buffer required to store the completed index.

+
+

Receives the size of the index, in bytes

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The index has not been committed. For more information; see Remarks.

?

+ +

Use this method to get the size of the index and then allocate a buffer big enough to hold it.

The index must be committed with a call to before calling . If the index is not committed before GetIndexWriteSpace is called, then will be returned as a result.

Call to write the completed index into a media buffer.

You cannot use this method in a reading scenario. You can only use this method when writing indexes.

+
+ + ms700198 + HRESULT IMFASFIndexer::GetIndexWriteSpace([In] unsigned longlong* pcbIndexWriteSpace) + IMFASFIndexer::GetIndexWriteSpace +
+ + +

Retrieves the completed index from the ASF indexer object.

+
+

Pointer to the interface of a media buffer that receives the index data.

+

The offset of the data to be retrieved, in bytes from the start of the index data. Set to 0 for the first call. If subsequent calls are needed (the buffer is not large enough to hold the entire index), set to the byte following the last one retrieved.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The index was not committed before attempting to get the completed index. For more information, see Remarks.

?

+ +

This method uses as much of the buffer as possible, and updates the length of the buffer appropriately.

If pIIndexBuffer is large enough to contain the entire buffer, cbOffsetWithinIndex should be 0, and the call needs to be made only once. Otherwise, there should be no gaps between successive buffers.

The user must write this data to the content at cbOffsetFromIndexStart bytes after the end of the ASF data object. You can call to determine the start position of the ASF index.

This call will not succeed unless has been called. After calling GetCompletedIndex, the caller must call and overwrite the existing ASF header with the new header; otherwise, the ASF header will not match the content, and the file is not guaranteed to play correctly.

You cannot use this method in an index reading scenario. You can only use this method when writing indexes.

+
+ + ms702077 + HRESULT IMFASFIndexer::GetCompletedIndex([In] IMFMediaBuffer* pIIndexBuffer,[In] unsigned longlong cbOffsetWithinIndex) + IMFASFIndexer::GetCompletedIndex +
+ + +

Retrieves the next output ASF packet from the multiplexer.

+
+ +

The client needs to call this method, ideally after every call to , to get the output ASF packets. Call this method in a loop as long as the flag is received.

If no packets are ready, the method returns but does not return a sample in ppIPacket.

+
+ + ms696243 + IMFASFMultiplexer + IMFASFMultiplexer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the multiplexer with the data from an ASF ContentInfo object.

+
+

Pointer to the interface of the MFASFContentInfo object that contains the header information of the new ASF file. The multiplexer will generate data packets for this file.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This call must be made once at the beginning of encoding, with pIContentInfo pointing to the ASF ContentInfo object that describes the content to be encoded. This enables the ASF multiplexer to see, among other things, which streams will be present in the encoding session. This call typically does not affect the data in the ASF ContentInfo object.

+
+ + ms697469 + HRESULT IMFASFMultiplexer::Initialize([In] IMFASFContentInfo* pIContentInfo) + IMFASFMultiplexer::Initialize +
+ + +

Sets multiplexer options.

+
+

Bitwise OR of zero or more members of the enumeration. These flags specify which multiplexer options to use. For more information, see "Multiplexer Initialization and Leaky Bucket Settings" in Creating the Multiplexer Object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703986 + HRESULT IMFASFMultiplexer::SetFlags([In] unsigned int dwFlags) + IMFASFMultiplexer::SetFlags +
+ + +

Retrieves flags indicating the configured multiplexer options.

+
+

Receives a bitwise OR of zero or more values from the enumeration. To set these flags, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms702166 + HRESULT IMFASFMultiplexer::GetFlags([In] unsigned int* pdwFlags) + IMFASFMultiplexer::GetFlags +
+ + +

Delivers input samples to the multiplexer.

+
+

The stream number of the stream to which the sample belongs.

+

Pointer to the interface of the input sample. The input sample contains the media data to be converted to ASF data packets. When possible, the time stamp of this sample should be accurate.

+

The adjustment to apply to the time stamp of the sample. This parameter is used if the caller wants to shift the sample time on pISample. This value should be positive if the time stamp should be pushed ahead and negative if the time stamp should be pushed back. This time stamp is added to sample time on pISample, and the resulting time is used by the multiplexer instead of the original sample time. If no adjustment is needed, set this value to 0.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

There are too many packets waiting to be retrieved from the multiplexer. Call to get the packets.

The sample that was processed violates the bandwidth limitations specified for the stream in the ASF ContentInfo object. When this error is generated, the sample is dropped.

The value passed in wStreamNumber is invalid.

The presentation time of the input media sample is earlier than the send time.

?

+ +

The application passes samples to ProcessSample, and the ASF multiplexer queues them internally until they are ready to be placed into ASF packets. Call to get the ASF data packet.

After each call to ProcessSample, call GetNextPacket in a loop to get all of the available data packets. For a code example, see Generating New ASF Data Packets.

+
+ + ms696206 + HRESULT IMFASFMultiplexer::ProcessSample([In] unsigned short wStreamNumber,[In] IMFSample* pISample,[In] longlong hnsTimestampAdjust) + IMFASFMultiplexer::ProcessSample +
+ + +

Retrieves the next output ASF packet from the multiplexer.

+
+

Receives zero or more status flags. If more than one packet is waiting, the method sets the flag.

+

Receives a reference to the interface of the first output sample of the data packet. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The client needs to call this method, ideally after every call to , to get the output ASF packets. Call this method in a loop as long as the flag is received.

If no packets are ready, the method returns but does not return a sample in ppIPacket.

+
+ + ms696243 + HRESULT IMFASFMultiplexer::GetNextPacket([Out] ASF_STATUSFLAGS* pdwStatusFlags,[In] IMFSample** ppIPacket) + IMFASFMultiplexer::GetNextPacket +
+ + +

Signals the multiplexer to process all queued output media samples. Call this method after passing the last sample to the multiplexer.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You must call Flush after the last sample has been passed into the ASF multiplexer and before you call . This causes all output media samples in progress to be completed. After calling Flush, call in a loop until all the pending media samples have been packetized.

+
+ + ms696991 + HRESULT IMFASFMultiplexer::Flush() + IMFASFMultiplexer::Flush +
+ + +

Collects data from the multiplexer and updates the ASF ContentInfo object to include that information in the ASF Header Object.

+
+

Pointer to the interface of the ContentInfo object. This must be the same object that was used to initialize the multiplexer. The ContentInfo object represents the ASF Header Object of the file for which the multiplexer generated data packets.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

There are pending output media samples waiting in the multiplexer. Call to force the media samples to be packetized.

?

+ +

For non-live encoding scenarios (such as encoding to a file), the user should call End to update the specified ContentInfo object, adding data that the multiplexer has collected during the packet generation process. The user should then call and write the output header at the beginning of the ASF file (overwriting the header obtained at the beginning of the encoding session). For more information, see Writing an ASF Header Object for a New File.

During live encoding, it is usually not possible to rewrite the header, so this call is not required for live encoding. (The header in those cases will simply lack some of the information that was not available until the end of the encoding session.)

+
+ + ms696172 + HRESULT IMFASFMultiplexer::End([In] IMFASFContentInfo* pIContentInfo) + IMFASFMultiplexer::End +
+ + +

Retrieves multiplexer statistics.

+
+

The stream number for which to obtain statistics.

+

Pointer to an structure that receives the statistics.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697232 + HRESULT IMFASFMultiplexer::GetStatistics([In] unsigned short wStreamNumber,[In] ASF_MUX_STATISTICS* pMuxStats) + IMFASFMultiplexer::GetStatistics +
+ + +

Sets the maximum time by which samples from various streams can be out of synchronization. The multiplexer will not accept a sample with a time stamp that is out of synchronization with the latest samples from any other stream by an amount that exceeds the synchronization tolerance.

+
+

Synchronization tolerance in milliseconds.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The synchronization tolerance is the maximum difference in presentation times at any given point between samples of different streams that the ASF multiplexer can accommodate. That is, if the synchronization tolerance is 3 seconds, no stream can be more than 3 seconds behind any other stream in the time stamps passed to the multiplexer. The multiplexer determines a default synchronization tolerance to use, but this method overrides it (usually to increase it). More tolerance means the potential for greater latency in the multiplexer. If the time stamps are synchronized among the streams, actual latency will be much lower than msSyncTolerance.

+
+ + ms697206 + HRESULT IMFASFMultiplexer::SetSyncTolerance([In] unsigned int msSyncTolerance) + IMFASFMultiplexer::SetSyncTolerance +
+ + +

Sets the maximum time by which samples from various streams can be out of synchronization. The multiplexer will not accept a sample with a time stamp that is out of synchronization with the latest samples from any other stream by an amount that exceeds the synchronization tolerance.

+
+ +

The synchronization tolerance is the maximum difference in presentation times at any given point between samples of different streams that the ASF multiplexer can accommodate. That is, if the synchronization tolerance is 3 seconds, no stream can be more than 3 seconds behind any other stream in the time stamps passed to the multiplexer. The multiplexer determines a default synchronization tolerance to use, but this method overrides it (usually to increase it). More tolerance means the potential for greater latency in the multiplexer. If the time stamps are synchronized among the streams, actual latency will be much lower than msSyncTolerance.

+
+ + ms697206 + SetSyncTolerance + SetSyncTolerance + HRESULT IMFASFMultiplexer::SetSyncTolerance([In] unsigned int msSyncTolerance) +
+ + +

Configures an Advanced Systems Format (ASF) mutual exclusion object, which manages information about a group of streams in an ASF profile that are mutually exclusive. When streams or groups of streams are mutually exclusive, only one of them is read at a time, they are not read concurrently.

A common example of mutual exclusion is a set of streams that each include the same content encoded at a different bit rate. The stream that is used is determined by the available bandwidth to the reader.

An interface exists for every ASF mutual exclusion object. A reference to this interface is obtained when you create the object using the method.

+
+ +

An ASF profile object can support multiple mutual exclusions. Each must be configured using a separate ASF mutual exclusion object.

+
+ + ms701603 + IMFASFMutualExclusion + IMFASFMutualExclusion +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the type of mutual exclusion represented by the Advanced Systems Format (ASF) mutual exclusion object.

+
+

A variable that receives the type identifier. For a list of predefined mutual exclusion type constants, see ASF Mutual Exclusion Type GUIDs.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Sometimes, content must be made mutually exclusive in more than one way. For example, a video file might contain audio streams of several bit rates for each of several languages. To handle this type of complex mutual exclusion, you must configure more than one ASF mutual exclusion object. For more information, see .

+
+ + ms703095 + HRESULT IMFASFMutualExclusion::GetType([In] GUID* pguidType) + IMFASFMutualExclusion::GetType +
+ + +

Sets the type of mutual exclusion that is represented by the Advanced Systems Format (ASF) mutual exclusion object.

+
+

The type of mutual exclusion that is represented by the ASF mutual exclusion object. For a list of predefined mutual exclusion type constants, see ASF Mutual Exclusion Type GUIDs.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Sometimes, content must be made mutually exclusive in more than one way. For example, a video file might contain audio streams in several bit rates for each of several languages. To handle this type of complex mutual exclusion, you must configure more than one ASF mutual exclusion object. For more information, see .

+
+ + ms697261 + HRESULT IMFASFMutualExclusion::SetType([In] const GUID& guidType) + IMFASFMutualExclusion::SetType +
+ + +

Retrieves the number of records in the Advanced Systems Format mutual exclusion object.

+
+

Receives the count of records.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Each record includes one or more streams. Every stream in a record is mutually exclusive of streams in every other record.

Use this method in conjunction with to retrieve the streams that are included in each record.

+
+ + ms700201 + HRESULT IMFASFMutualExclusion::GetRecordCount([In] unsigned int* pdwRecordCount) + IMFASFMutualExclusion::GetRecordCount +
+ + +

Retrieves the stream numbers contained in a record in the Advanced Systems Format mutual exclusion object.

+
+

The number of the record for which to retrieve the stream numbers.

+

An array that receives the stream numbers. Set to null to get the number of elements required, which is indicated by the value of pcStreams on return. If this parameter is not null, the method will copy as many stream numbers to the array as there are elements indicated by the value of pcStreams.

+

On input, the number of elements in the array referenced by pwStreamNumArray. On output, the method sets this value to the count of stream numbers in the record. You can call GetStreamsForRecord with pwStreamNumArray set to null to retrieve the number of elements required to hold all of the stream numbers.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703200 + HRESULT IMFASFMutualExclusion::GetStreamsForRecord([In] unsigned int dwRecordNumber,[In] unsigned short* pwStreamNumArray,[In] unsigned int* pcStreams) + IMFASFMutualExclusion::GetStreamsForRecord +
+ + +

Adds a stream number to a record in the Advanced Systems Format mutual exclusion object.

+
+

The record number to which the stream is added. A record number is set by the method.

+

The stream number to add to the record.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The specified stream number is already associated with the record.

?

+ +

Each record includes one or more streams. Every stream in a record is mutually exclusive of all streams in every other record.

+
+ + ms703794 + HRESULT IMFASFMutualExclusion::AddStreamForRecord([In] unsigned int dwRecordNumber,[In] unsigned short wStreamNumber) + IMFASFMutualExclusion::AddStreamForRecord +
+ + +

Removes a stream number from a record in the Advanced Systems Format mutual exclusion object.

+
+

The record number from which to remove the stream number.

+

The stream number to remove from the record.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The stream number is not listed for the specified record.

?

+ + ms703971 + HRESULT IMFASFMutualExclusion::RemoveStreamFromRecord([In] unsigned int dwRecordNumber,[In] unsigned short wStreamNumber) + IMFASFMutualExclusion::RemoveStreamFromRecord +
+ + +

Removes a record from the Advanced Systems Format (ASF) mutual exclusion object.

+
+

The index of the record to remove.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When a record is removed, the ASF mutual exclusion object indexes the remaining records so that they are sequential starting with zero. You should enumerate the records to ensure that you have the correct index for each record. If the record removed is the one with the highest index, removing it has no effect on the other indexes.

+
+ + ms704808 + HRESULT IMFASFMutualExclusion::RemoveRecord([In] unsigned int dwRecordNumber) + IMFASFMutualExclusion::RemoveRecord +
+ + +

Adds a record to the mutual exclusion object. A record specifies streams that are mutually exclusive with the streams in all other records.

+
+

Receives the index assigned to the new record. Record indexes are zero-based and sequential.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

A record can include one or more stream numbers. All of the streams in a record are mutually exclusive with all the streams in all other records in the ASF mutual exclusion object.

You can use records to create complex mutual exclusion scenarios by using multiple ASF mutual exclusion objects.

+
+ + ms705615 + HRESULT IMFASFMutualExclusion::AddRecord([In] unsigned int* pdwRecordNumber) + IMFASFMutualExclusion::AddRecord +
+ + +

Creates a copy of the Advanced Systems Format mutual exclusion object.

+
+

Receives a reference to the interface of the new object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The cloned object is a new object, completely independent of the object from which it was cloned.

+
+ + ms696217 + HRESULT IMFASFMutualExclusion::Clone([In] IMFASFMutualExclusion** ppIMutex) + IMFASFMutualExclusion::Clone +
+ + + +

Retrieves a stream from the profile by stream index, and/or retrieves the stream number for a stream index.

+
+ +

This method does not create a copy of the stream configuration object. The reference that is retrieved points to the object within the profile object. You must not make any changes to the stream configuration object using this reference, because doing so can affect the profile object in unexpected ways.

To change the configuration of the stream configuration object in the profile, you must first clone the stream configuration object by calling . Make whatever changes are required to the clone of the object and then add the updated object by calling the method.

+
+ + ms700799 + IMFASFProfile + IMFASFProfile +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of streams in the profile.

+
+

Receives the number of streams in the profile.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703024 + HRESULT IMFASFProfile::GetStreamCount([In] unsigned int* pcStreams) + IMFASFProfile::GetStreamCount +
+ + +

Retrieves a stream from the profile by stream index, and/or retrieves the stream number for a stream index.

+
+

The index of the stream to retrieve. Stream indexes are sequential and zero-based. You can get the number of streams that are in the profile by calling the method.

+

Receives the stream number of the requested stream. Stream numbers are one-based and are not necessarily sequential. This parameter can be set to null if the stream number is not required.

+

Receives a reference to the interface of the ASF stream configuration object. The caller must release the interface. This parameter can be null if you want to retrieve the stream number without accessing the stream configuration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method does not create a copy of the stream configuration object. The reference that is retrieved points to the object within the profile object. You must not make any changes to the stream configuration object using this reference, because doing so can affect the profile object in unexpected ways.

To change the configuration of the stream configuration object in the profile, you must first clone the stream configuration object by calling . Make whatever changes are required to the clone of the object and then add the updated object by calling the method.

+
+ + ms700799 + HRESULT IMFASFProfile::GetStream([In] unsigned int dwStreamIndex,[In] unsigned short* pwStreamNumber,[In] IMFASFStreamConfig** ppIStream) + IMFASFProfile::GetStream +
+ + +

Retrieves an Advanced Systems Format (ASF) stream configuration object for a stream in the profile. This method references the stream by stream number instead of stream index.

+
+

The stream number for which to obtain the interface reference.

+

Receives a reference to the interface of the ASF stream configuration object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method does not create a copy of the stream configuration object. The reference that is retrieved points to the object within the profile object. You must not make any changes to the stream configuration object using this reference, because doing so can affect the profile object in unexpected ways.

To change the configuration of the stream configuration object in the profile, you must first clone the stream configuration object by calling . Make whatever changes are required to the clone of the object and then add the updated object by calling the method.

+
+ + ms694981 + HRESULT IMFASFProfile::GetStreamByNumber([In] unsigned short wStreamNumber,[In] IMFASFStreamConfig** ppIStream) + IMFASFProfile::GetStreamByNumber +
+ + +

Adds a stream to the profile or reconfigures an existing stream.

+
+

Pointer to the interface of a configured ASF stream configuration object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the stream number in the ASF stream configuration object is already included in the profile, the information in the new object replaces the old one. If the profile does not contain a stream for the stream number, the ASF stream configuration object is added as a new stream.

+
+ + ms703051 + HRESULT IMFASFProfile::SetStream([In] IMFASFStreamConfig* pIStream) + IMFASFProfile::SetStream +
+ + +

Removes a stream from the Advanced Systems Format (ASF) profile object.

+
+

Stream number of the stream to remove.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

After a stream is removed, the ASF profile object reassigns stream indexes so that the index values are sequential starting from zero. Any previously stored stream index numbers are no longer valid after deleting a stream.

+
+ + ms704569 + HRESULT IMFASFProfile::RemoveStream([In] unsigned short wStreamNumber) + IMFASFProfile::RemoveStream +
+ + +

Creates an Advanced Systems Format (ASF) stream configuration object.

+
+

Pointer to the interface of a configured media type.

+

Receives a reference to the interface of the new ASF stream configuration object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

ppIStream is null.

E_OUTOFMEMORY

stream configuration object could not be created due to insufficient memory.

?

+ +

The ASF stream configuration object created by this method is not included in the profile. To include the stream, you must first configure the stream configuration and then call .

+
+ + ms696264 + HRESULT IMFASFProfile::CreateStream([In] IMFMediaType* pIMediaType,[In] IMFASFStreamConfig** ppIStream) + IMFASFProfile::CreateStream +
+ + +

Retrieves the number of Advanced Systems Format (ASF) mutual exclusion objects that are associated with the profile.

+
+

Receives the number of mutual exclusion objects.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Multiple mutual exclusion objects may be required for streams that are mutually exclusive in more than one way. For more information, see .

+
+ + ms697361 + HRESULT IMFASFProfile::GetMutualExclusionCount([In] unsigned int* pcMutexs) + IMFASFProfile::GetMutualExclusionCount +
+ + +

Retrieves an Advanced Systems Format (ASF) mutual exclusion object from the profile.

+
+

Index of the mutual exclusion object in the profile.

+

Receives a reference to the interface of the ASF mutual exclusion object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method does not create a copy of the mutual exclusion object. The returned reference refers to the mutual exclusion contained in the profile object. You must not make any changes to the mutual exclusion object using this reference, because doing so can affect the profile object in unexpected ways.

To change the configuration of the mutual exclusion object in the profile, you must first clone the mutual exclusion object by calling . Make whatever changes are required to the clone of the object, remove the old mutual exclusion object from the profile by calling the method, and then add the updated object by calling the method.

+
+ + ms701598 + HRESULT IMFASFProfile::GetMutualExclusion([In] unsigned int dwMutexIndex,[In] IMFASFMutualExclusion** ppIMutex) + IMFASFProfile::GetMutualExclusion +
+ + +

Adds a configured Advanced Systems Format (ASF) mutual exclusion object to the profile.

+
+

Pointer to the interface of a configured ASF mutual exclusion object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can create a mutual exclusion object by calling the method.

+
+ + ms703965 + HRESULT IMFASFProfile::AddMutualExclusion([In] IMFASFMutualExclusion* pIMutex) + IMFASFProfile::AddMutualExclusion +
+ + +

Removes an Advanced Systems Format (ASF) mutual exclusion object from the profile.

+
+

The index of the mutual exclusion object to remove from the profile.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When a mutual exclusion object is removed from the profile, the ASF profile object reassigns the mutual exclusion indexes so that they are sequential starting with zero. Any previously stored indexes are no longer valid after calling this method.

+
+ + ms704007 + HRESULT IMFASFProfile::RemoveMutualExclusion([In] unsigned int dwMutexIndex) + IMFASFProfile::RemoveMutualExclusion +
+ + +

Creates a new Advanced Systems Format (ASF) mutual exclusion object. Mutual exclusion objects can be added to a profile by calling the AddMutualExclusion method.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The ASF mutual exclusion object created by this method is not associated with the profile. Call after configuring the object to make this association.

+
+ + ms697002 + HRESULT IMFASFProfile::CreateMutualExclusion([In] IMFASFMutualExclusion** ppIMutex) + IMFASFProfile::CreateMutualExclusion +
+ + +

Note??This method is not supported.

+
+

Reserved.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms695410 + HRESULT IMFASFProfile::GetStreamPrioritization([In] IMFASFStreamPrioritization** ppIStreamPrioritization) + IMFASFProfile::GetStreamPrioritization +
+ + +

Note??This method is not supported.

+
+

Reserved.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms697516 + HRESULT IMFASFProfile::AddStreamPrioritization([In] IMFASFStreamPrioritization* pIStreamPrioritization) + IMFASFProfile::AddStreamPrioritization +
+ + +

Note??This method is not supported.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms701838 + HRESULT IMFASFProfile::RemoveStreamPrioritization() + IMFASFProfile::RemoveStreamPrioritization +
+ + +

Note??This method is not implemented.

+
+

Reserved.

+

Returns E_NOTIMPL.

+ + ms694914 + HRESULT IMFASFProfile::CreateStreamPrioritization([In] IMFASFStreamPrioritization** ppIStreamPrioritization) + IMFASFProfile::CreateStreamPrioritization +
+ + +

Creates a copy of the Advanced Systems Format profile object.

+
+

Receives a reference to the interface of the new object. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The cloned object is completely independent of the original.

+
+ + ms704773 + HRESULT IMFASFProfile::Clone([In] IMFASFProfile** ppIProfile) + IMFASFProfile::Clone +
+ + +

Adds a stream to the profile or reconfigures an existing stream.

+
+ +

If the stream number in the ASF stream configuration object is already included in the profile, the information in the new object replaces the old one. If the profile does not contain a stream for the stream number, the ASF stream configuration object is added as a new stream.

+
+ + ms703051 + SetStream + SetStream + HRESULT IMFASFProfile::SetStream([In] IMFASFStreamConfig* pIStream) +
+ + +

Note??This method is not supported.

+
+ + ms695410 + GetStreamPrioritization + GetStreamPrioritization + HRESULT IMFASFProfile::GetStreamPrioritization([In] IMFASFStreamPrioritization** ppIStreamPrioritization) +
+ + +

Sends packetized Advanced Systems Format (ASF) data to the ASF splitter for processing.

+
+ +

After using this method to parse data, you must call to retrieve parsed media samples.

If your ASF data contains variable-sized packets, you must set the attribute on the buffers to indicate the sample boundaries, and the buffers cannot span multiple packets.

If the method returns ME_E_NOTACCEPTING, call GetNextSample to get the output samples, or call to clear the splitter.

The splitter might hold a reference count on the input buffer. Therefore, do not write over the valid data in the buffer after calling this method.

+
+ + ms694299 + IMFASFSplitter + IMFASFSplitter +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Resets the Advanced Systems Format (ASF) splitter and configures it to parse data from an ASF data section.

+
+

Pointer to the interface of a ContentInfo object that describes the data to be parsed.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The pIContentInfo parameter is null.

?

+ + ms704048 + HRESULT IMFASFSplitter::Initialize([In] IMFASFContentInfo* pIContentInfo) + IMFASFSplitter::Initialize +
+ + +

Sets option flags on the Advanced Systems Format (ASF) splitter.

+
+

A bitwise combination of zero or more members of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The splitter is not initialized.

E_INVALIDARG

The dwFlags parameter does not contain a valid flag.

The flag is set, but the content cannot be parsed in reverse.

?

+ +

This method can only be called after the splitter is initialized.

+
+ + ms697337 + HRESULT IMFASFSplitter::SetFlags([In] unsigned int dwFlags) + IMFASFSplitter::SetFlags +
+ + +

Retrieves the option flags that are set on the ASF splitter.

+
+

Receives the option flags. This value is a bitwise OR of zero or more members of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pdwFlags is null.

?

+ + ms702288 + HRESULT IMFASFSplitter::GetFlags([In] unsigned int* pdwFlags) + IMFASFSplitter::GetFlags +
+ + +

Sets the streams to be parsed by the Advanced Systems Format (ASF) splitter.

+
+

An array of variables containing the list of stream numbers to select.

+

The number of valid elements in the stream number array.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pwStreamNumbers is null and wNumStreams contains a value greater than zero.

Invalid stream number was passed in the array.

?

+ +

Calling this method supersedes any previous stream selections; only the streams specified in the pwStreamNumbers array will be selected.

By default, no streams are selected by the splitter.

You can obtain a list of the currently selected streams by calling the method.

+
+ + ms701631 + HRESULT IMFASFSplitter::SelectStreams([In] unsigned short* pwStreamNumbers,[In] unsigned short wNumStreams) + IMFASFSplitter::SelectStreams +
+ + +

Gets a list of currently selected streams.

+
+

The address of an array of WORDs. This array receives the stream numbers of the selected streams. This parameter can be null.

+

On input, points to a variable that contains the number of elements in the pwStreamNumbers array. Set the variable to zero if pwStreamNumbers is null.

On output, receives the number of elements that were copied into pwStreamNumbers. Each element is the identifier of a selected stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

The pwStreamNumbers array is smaller than the number of selected streams. See Remarks.

?

+ +

To get the number of selected streams, set pwStreamNumbers to null. The method will return MF_E_BUFFERTOSMALL but will also set the value of *pwNumStreams equal to the number of selected streams. Then allocate an array of that size and call the method again, passing the array in the pwStreamNumbers parameter.

The following code shows these steps:

 DisplaySelectedStreams( *pSplitter)	
+            { WORD count = 0;  hr = pSplitter->GetSelectedStreams(null, &count); if (hr == ) { WORD *pStreamIds = new (std::nothrow) WORD[count]; if (pStreamIds) { hr = pSplitter->GetSelectedStreams(pStreamIds, &count); if (SUCCEEDED(hr)) { for (WORD i = 0; i < count; i++) { printf("Selected stream ID: %d\n", pStreamIds[i]); } } delete [] pStreamIds; } else { hr = E_OUTOFMEMORY; } } return hr;	
+            }	
+            

Alternatively, you can allocate an array that is equal to the total number of streams and pass that to pwStreamNumbers.

Before calling this method, initialize *pwNumStreams to the number of elements in pwStreamNumbers. If pwStreamNumbers is null, set *pwNumStreams to zero.

By default, no streams are selected by the splitter. Select streams by calling the method.

+
+ + ms705602 + HRESULT IMFASFSplitter::GetSelectedStreams([In] unsigned short* pwStreamNumbers,[In] unsigned short* pwNumStreams) + IMFASFSplitter::GetSelectedStreams +
+ + +

Sends packetized Advanced Systems Format (ASF) data to the ASF splitter for processing.

+
+

Pointer to the interface of a buffer object containing data to be parsed.

+

The offset into the data buffer where the splitter should begin parsing. This value is typically set to 0.

+

The length, in bytes, of the data to parse. This value is measured from the offset specified by cbBufferOffset. Set to 0 to process to the end of the buffer.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The pIBuffer parameter is null.

The specified offset value in cbBufferOffset is greater than the length of the buffer.

The total value of cbBufferOffset and cbLength is greater than the length of the buffer.

The method was not called or the call failed.

The splitter cannot process more input at this time.

?

+ +

After using this method to parse data, you must call to retrieve parsed media samples.

If your ASF data contains variable-sized packets, you must set the attribute on the buffers to indicate the sample boundaries, and the buffers cannot span multiple packets.

If the method returns ME_E_NOTACCEPTING, call GetNextSample to get the output samples, or call to clear the splitter.

The splitter might hold a reference count on the input buffer. Therefore, do not write over the valid data in the buffer after calling this method.

+
+ + ms694299 + HRESULT IMFASFSplitter::ParseData([In] IMFMediaBuffer* pIBuffer,[In] unsigned int cbBufferOffset,[In] unsigned int cbLength) + IMFASFSplitter::ParseData +
+ + +

Retrieves a sample from the Advanced Systems Format (ASF) splitter after the data has been parsed.

+
+

Receives one of the following values.

ValueMeaning

More samples are ready to be retrieved. Call GetNextSample in a loop until the pdwStatusFlags parameter receives the value zero.

Zero

No additional samples are ready. Call to give more input data to the splitter.

?

+

If the method returns a sample in the ppISample parameter, this parameter receives the number of the stream to which the sample belongs.

+

Receives a reference to the interface of the parsed sample. The caller must release the interface. If no samples are ready, this parameter receives the value null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The ASF data in the buffer is invalid.

There is a gap in the ASF data.

?

+ +

Before calling this method, call to give input data to the splitter. If the input does not contain enough data for a complete sample, the GetNextSample method succeeds but returns null in the ppISample parameter.

The ASF splitter skips samples for unselected streams. To select streams, call .

+
+ + ms700167 + HRESULT IMFASFSplitter::GetNextSample([In] unsigned int* pdwStatusFlags,[In] unsigned short* pwStreamNumber,[In] IMFSample** ppISample) + IMFASFSplitter::GetNextSample +
+ + +

Resets the Advanced Systems Format (ASF) splitter and releases all pending samples.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Any samples waiting to be retrieved when Flush is called are lost.

+
+ + ms703013 + HRESULT IMFASFSplitter::Flush() + IMFASFSplitter::Flush +
+ + +

Retrieves the send time of the last sample received.

+
+

Receives the send time of the last sample received.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pdwLastSendTime is null.

?

+ + ms697272 + HRESULT IMFASFSplitter::GetLastSendTime([In] unsigned int* pdwLastSendTime) + IMFASFSplitter::GetLastSendTime +
+ + +

Retrieves information about an existing payload extension.

+
+ + ms697305 + IMFASFStreamConfig + IMFASFStreamConfig +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the major media type of the stream.

+
+

Receives the major media type for the stream. For a list of possible values, see Major Media Types.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms697390 + HRESULT IMFASFStreamConfig::GetStreamType([In] GUID* pguidStreamType) + IMFASFStreamConfig::GetStreamType +
+ + +

Retrieves the stream number of the stream.

+
+

The method returns the stream number.

+ + ms703172 + unsigned short IMFASFStreamConfig::GetStreamNumber() + IMFASFStreamConfig::GetStreamNumber +
+ + +

Assigns a stream number to the stream.

+
+

The number to assign to the stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Stream numbers start from 1 and do not need to be sequential.

+
+ + ms697298 + HRESULT IMFASFStreamConfig::SetStreamNumber([In] unsigned short wStreamNum) + IMFASFStreamConfig::SetStreamNumber +
+ + +

Retrieves the media type of the stream.

+
+

Receives a reference to the interface of the media type object associated with the stream. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To reduce unnecessary copying, the method returns a reference to the media type that is stored internally by the object. Do not modify the returned media type, as the results are not defined.

+
+ + ms697489 + HRESULT IMFASFStreamConfig::GetMediaType([In] IMFMediaType** ppIMediaType) + IMFASFStreamConfig::GetMediaType +
+ + +

Sets the media type for the Advanced Systems Format (ASF) stream configuration object.

+
+

Pointer to the interface of a configured media type object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Some validation of the media type is performed by this method. However, a media type can be successfully set, but cause an error when the stream is added to the profile.

+
+ + ms697185 + HRESULT IMFASFStreamConfig::SetMediaType([In] IMFMediaType* pIMediaType) + IMFASFStreamConfig::SetMediaType +
+ + +

Retrieves the number of payload extensions that are configured for the stream.

+
+

Receives the number of payload extensions.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696251 + HRESULT IMFASFStreamConfig::GetPayloadExtensionCount([In] unsigned short* pcPayloadExtensions) + IMFASFStreamConfig::GetPayloadExtensionCount +
+ + +

Retrieves information about an existing payload extension.

+
+

The payload extension index. Valid indexes range from 0, to one less than the number of extensions obtained by calling .

+

Receives a that identifies the payload extension. For a list of predefined payload extensions, see ASF Payload Extension GUIDs. Applications can also define custom payload extensions.

+

Receives the number of bytes added to each sample for the extension.

+

Pointer to a buffer that receives information about this extension system. This information is the same for all samples and is stored in the content header (not in each sample). This parameter can be null. To find the required size of the buffer, set this parameter to null; the size is returned in pcbExtensionSystemInfo.

+

On input, specifies the size of the buffer pointed to by pbExtensionSystemInfo. On output, receives the required size of the pbExtensionSystemInfo buffer in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

The buffer specified in pbExtensionSystemInfo is too small.

The wPayloadExtensionNumber parameter is out of range.

?

+ + ms697305 + HRESULT IMFASFStreamConfig::GetPayloadExtension([In] unsigned short wPayloadExtensionNumber,[In] GUID* pguidExtensionSystemID,[In] unsigned short* pcbExtensionDataSize,[In] unsigned char* pbExtensionSystemInfo,[In] unsigned int* pcbExtensionSystemInfo) + IMFASFStreamConfig::GetPayloadExtension +
+ + +

Configures a payload extension for the stream.

+
+

Pointer to a that identifies the payload extension. For a list of predefined payload extensions, see ASF Payload Extension GUIDs. Applications can also define custom payload extensions.

+

Number of bytes added to each sample for the extension.

+

A reference to a buffer that contains information about this extension system. This information is the same for all samples and is stored in the content header (not with each sample). This parameter can be null if cbExtensionSystemInfo is 0.

+

Amount of data, in bytes, that describes this extension system. If this value is 0, then pbExtensionSystemInfo can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697229 + HRESULT IMFASFStreamConfig::AddPayloadExtension([In] GUID guidExtensionSystemID,[In] unsigned short cbExtensionDataSize,[In] unsigned char* pbExtensionSystemInfo,[In] unsigned int cbExtensionSystemInfo) + IMFASFStreamConfig::AddPayloadExtension +
+ + +

Removes all payload extensions that are configured for the stream.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

None.

+
+ + ms699009 + HRESULT IMFASFStreamConfig::RemoveAllPayloadExtensions() + IMFASFStreamConfig::RemoveAllPayloadExtensions +
+ + +

Creates a copy of the Advanced Systems Format (ASF) stream configuration object.

+
+

Receives a reference to the interface of the new object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The cloned object is completely independent of the original.

+
+ + ms703117 + HRESULT IMFASFStreamConfig::Clone([In] IMFASFStreamConfig** ppIStreamConfig) + IMFASFStreamConfig::Clone +
+ + +

Retrieves the stream number of the stream.

+
+ + ms703172 + GetStreamNumber / SetStreamNumber + GetStreamNumber + unsigned short IMFASFStreamConfig::GetStreamNumber() +
+ + +

Retrieves the media type of the stream.

+
+ +

To reduce unnecessary copying, the method returns a reference to the media type that is stored internally by the object. Do not modify the returned media type, as the results are not defined.

+
+ + ms697489 + GetMediaType / SetMediaType + GetMediaType + HRESULT IMFASFStreamConfig::GetMediaType([In] IMFMediaType** ppIMediaType) +
+ + +

Note??This interface is not implemented.

Manages information about the relative priorities of a group of streams in an Advanced Systems Format (ASF) profile. This interface manages information about the relative priorities of a group of streams in an ASF profile. Priority is used in streaming to determine which streams should be dropped first when available bandwidth decreases.

The ASF stream prioritization object exposes this interface. The stream prioritization object maintains a list of stream numbers in priority order. The methods of this interface manipulate and interrogate that list. To obtain a reference to this interface, call the method.

+
+ + ms698921 + IMFASFStreamPrioritization + IMFASFStreamPrioritization +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Note??This interface is not implemented in this version of Media Foundation.

Retrieves the number of entries in the stream priority list.

+
+

Receives the number of streams in the stream priority list.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970449 + HRESULT IMFASFStreamPrioritization::GetStreamCount([In] unsigned int* pdwStreamCount) + IMFASFStreamPrioritization::GetStreamCount +
+ + +

Note??This interface is not implemented in this version of Media Foundation.

Retrieves the stream number of a stream in the stream priority list.

+
+

Zero-based index of the entry to retrieve from the stream priority list. To get the number of entries in the priority list, call .

+

Receives the stream number of the stream priority entry.

+

Receives a Boolean value. If TRUE, the stream is mandatory.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

null reference argument or the dwStreamIndex parameter is out of range.

?

+ + ms697005 + HRESULT IMFASFStreamPrioritization::GetStream([In] unsigned int dwStreamIndex,[In] unsigned short* pwStreamNumber,[In] unsigned short* pwStreamFlags) + IMFASFStreamPrioritization::GetStream +
+ + +

Note??This interface is not implemented in this version of Media Foundation.

Adds a stream to the stream priority list.

+
+

Stream number of the stream to add.

+

If TRUE, the stream is mandatory.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream number.

?

+ +

The stream priority list is built by appending entries to the list with each call to AddStream. The list is evaluated in descending order of importance. The most important stream should be added first, and the least important should be added last.

+
+ + ms696987 + HRESULT IMFASFStreamPrioritization::AddStream([In] unsigned short wStreamNumber,[In] unsigned short wStreamFlags) + IMFASFStreamPrioritization::AddStream +
+ + +

Note??This interface is not implemented in this version of Media Foundation.

Removes a stream from the stream priority list.

+
+

Index of the entry in the stream priority list to remove. Values range from zero, to one less than the stream count retrieved by calling .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When a stream is removed from the stream priority list, the index values of all streams that follow it in the list are decremented.

+
+ + bb970482 + HRESULT IMFASFStreamPrioritization::RemoveStream([In] unsigned int dwStreamIndex) + IMFASFStreamPrioritization::RemoveStream +
+ + +

Note??This interface is not implemented in this version of Media Foundation.

Creates a copy of the ASF stream prioritization object.

+
+

Receives a reference to the interface of the new object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The new object is completely independent of the original.

+
+ + ms704679 + HRESULT IMFASFStreamPrioritization::Clone([In] IMFASFStreamPrioritization** ppIStreamPrioritization) + IMFASFStreamPrioritization::Clone +
+ + +

Sets the selection status of an output, overriding other selection criteria.

+
+ + ms703122 + IMFASFStreamSelector + IMFASFStreamSelector +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of streams that are in the Advanced Systems Format (ASF) content.

+
+

Receives the number of streams in the content.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704621 + HRESULT IMFASFStreamSelector::GetStreamCount([In] unsigned int* pcStreams) + IMFASFStreamSelector::GetStreamCount +
+ + +

Retrieves the number of outputs for the Advanced Systems Format (ASF) content.

+
+

Receives the number of outputs.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Outputs are streams in the ASF data section that will be parsed.

+
+ + ms694076 + HRESULT IMFASFStreamSelector::GetOutputCount([In] unsigned int* pcOutputs) + IMFASFStreamSelector::GetOutputCount +
+ + +

Retrieves the number of streams associated with an output.

+
+

The output number for which to retrieve the stream count.

+

Receives the number of streams associated with the output.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid output number.

?

+ +

An output is a stream in an ASF data section that will be parsed. If mutual exclusion is used, mutually exclusive streams share the same output.

+
+ + ms700815 + HRESULT IMFASFStreamSelector::GetOutputStreamCount([In] unsigned int dwOutputNum,[In] unsigned int* pcStreams) + IMFASFStreamSelector::GetOutputStreamCount +
+ + +

Retrieves the stream numbers for all of the streams that are associated with an output.

+
+

The output number for which to retrieve stream numbers.

+

Address of an array that receives the stream numbers associated with the output. The caller allocates the array. The array size must be at least as large as the value returned by the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid output number.

?

+ +

An output is a stream in an ASF data section that will be parsed. If mutual exclusion is used, mutually exclusive streams share the same output.

+
+ + ms697025 + HRESULT IMFASFStreamSelector::GetOutputStreamNumbers([In] unsigned int dwOutputNum,[In] unsigned short* rgwStreamNumbers) + IMFASFStreamSelector::GetOutputStreamNumbers +
+ + +

Retrieves the output number associated with a stream.

+
+

The stream number for which to retrieve an output number.

+

Receives the output number.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream number.

?

+ +

Outputs are streams in the ASF data section that will be parsed.

+
+ + ms701979 + HRESULT IMFASFStreamSelector::GetOutputFromStream([In] unsigned short wStreamNum,[In] unsigned int* pdwOutput) + IMFASFStreamSelector::GetOutputFromStream +
+ + +

Retrieves the manual output override selection that is set for a stream.

+
+

Stream number for which to retrieve the output override selection.

+

Receives the output override selection. The value is a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697510 + HRESULT IMFASFStreamSelector::GetOutputOverride([In] unsigned int dwOutputNum,[In] ASF_SELECTION_STATUS* pSelection) + IMFASFStreamSelector::GetOutputOverride +
+ + +

Sets the selection status of an output, overriding other selection criteria.

+
+

Output number for which to set selection.

+

Member of the enumeration specifying the level of selection for the output.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703122 + HRESULT IMFASFStreamSelector::SetOutputOverride([In] unsigned int dwOutputNum,[In] ASF_SELECTION_STATUS Selection) + IMFASFStreamSelector::SetOutputOverride +
+ + +

Retrieves the number of mutual exclusion objects associated with an output.

+
+

Output number for which to retrieve the count of mutually exclusive relationships.

+

Receives the number of mutual exclusions.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703918 + HRESULT IMFASFStreamSelector::GetOutputMutexCount([In] unsigned int dwOutputNum,[In] unsigned int* pcMutexes) + IMFASFStreamSelector::GetOutputMutexCount +
+ + +

Retrieves a mutual exclusion object for an output.

+
+

Output number for which to retrieve a mutual exclusion object.

+

Mutual exclusion number. This is an index of mutually exclusive relationships associated with the output. Set to a number between 0, and 1 less than the number of mutual exclusion objects retrieved by calling .

+

Receives a reference to the mutual exclusion object's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Outputs are streams in the ASF data section that will be parsed.

+
+ + ms703819 + HRESULT IMFASFStreamSelector::GetOutputMutex([In] unsigned int dwOutputNum,[In] unsigned int dwMutexNum,[In] IUnknown** ppMutex) + IMFASFStreamSelector::GetOutputMutex +
+ + +

Selects a mutual exclusion record to use for a mutual exclusion object associated with an output.

+
+

The output number for which to set a stream.

+

Index of the mutual exclusion for which to select.

+

Record of the specified mutual exclusion to select.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

An output is a stream in an Advanced Systems Format (ASF) data section that will be parsed. If mutual exclusion is used, mutually exclusive streams share the same output.

An ASF file can contain multiple mutually exclusive relationships, such as a file with both language based and bit-rate based mutual exclusion. If an output is involved in multiple mutually exclusive relationships, a record from each must be selected.

+
+ + ms704822 + HRESULT IMFASFStreamSelector::SetOutputMutexSelection([In] unsigned int dwOutputNum,[In] unsigned int dwMutexNum,[In] unsigned short wSelectedRecord) + IMFASFStreamSelector::SetOutputMutexSelection +
+ + +

Retrieves the number of bandwidth steps that exist for the content. This method is used for multiple bit rate (MBR) content.

+
+

Receives the number of bandwidth steps.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Bandwidth steps are bandwidth levels used for multiple bit rate (MBR) content. If you stream MBR content, you can choose the bandwidth step that matches the network conditions to avoid interruptions during playback.

+
+ + ms698868 + HRESULT IMFASFStreamSelector::GetBandwidthStepCount([In] unsigned int* pcStepCount) + IMFASFStreamSelector::GetBandwidthStepCount +
+ + +

Retrieves the stream numbers that apply to a bandwidth step. This method is used for multiple bit rate (MBR) content.

+
+

Bandwidth step number for which to retrieve information. Set this value to a number between 0, and 1 less than the number of bandwidth steps returned by .

+

Receives the bit rate associated with the bandwidth step.

+

Address of an array that receives the stream numbers. The caller allocates the array. The array size must be at least as large as the value returned by the method.

+

Address of an array that receives the selection status of each stream, as an value. The members of this array correspond to the members of the rgwStreamNumbers array by index. The caller allocates the array. The array size must be at least as large as the value returned by the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Bandwidth steps are bandwidth levels used for MBR content. If you stream MBR content, you can choose the bandwidth step that matches the network conditions to avoid interruptions during playback.

+
+ + ms700131 + HRESULT IMFASFStreamSelector::GetBandwidthStep([In] unsigned int dwStepNum,[In] unsigned int* pdwBitrate,[In] unsigned short* rgwStreamNumbers,[In] ASF_SELECTION_STATUS* rgSelections) + IMFASFStreamSelector::GetBandwidthStep +
+ + +

Retrieves the index of a bandwidth step that is appropriate for a specified bit rate. This method is used for multiple bit rate (MBR) content.

+
+

The bit rate to find a bandwidth step for.

+

Receives the step number. Use this number to retrieve information about the step by calling .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In a streaming multiple bit rate (MBR) scenario, call this method with the current data rate of the network connection to determine the correct step to use. You can also call this method periodically throughout streaming to ensure that the best step is used.

+
+ + ms704645 + HRESULT IMFASFStreamSelector::BitrateToStepNumber([In] unsigned int dwBitrate,[In] unsigned int* pdwStepNum) + IMFASFStreamSelector::BitrateToStepNumber +
+ + +

Sets options for the stream selector.

+
+

Bitwise OR of zero or more members of the MFASF_STREAMSELECTOR_FLAGS enumeration specifying the options to use.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701635 + HRESULT IMFASFStreamSelector::SetStreamSelectorFlags([In] unsigned int dwStreamSelectorFlags) + IMFASFStreamSelector::SetStreamSelectorFlags +
+ + +

Sets options for the stream selector.

+
+ + ms701635 + SetStreamSelectorFlags + SetStreamSelectorFlags + HRESULT IMFASFStreamSelector::SetStreamSelectorFlags([In] unsigned int dwStreamSelectorFlags) +
+ + +

[This API is not supported and may be altered or unavailable in the future.]

Creates an audio media type from a structure.

+
+ +

The interface is deprecrated, so applications should avoid using this function. To create a media type from a structure, do the following:

  1. Call . This function returns a reference to the interface. The returned media type object is initially empty.
  2. Call to populate the media type from the structure.

Alternatively, you can call and then set the media type attributes directly.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + aa473812 + IMFAudioMediaType + IMFAudioMediaType +
+ + +

Represents a description of a media format.

+
+ +

To create a new media type, call .

All of the information in a media type is stored as attributes. To clone a media type, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704850 + IMFMediaType + IMFMediaType +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the major type of the format.

+
+

Receives the major type . The major type describes the broad category of the format, such as audio or video. For a list of possible values, see Major Media Types.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The major type is not set.

?

+ +

This method is equivalent to getting the attribute from the media type.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701588 + HRESULT IMFMediaType::GetMajorType([Out] GUID* pguidMajorType) + IMFMediaType::GetMajorType +
+ + +

Queries whether the media type is a temporally compressed format. Temporal compression uses information from previously decoded samples when decompressing the current sample.

+
+

Receives a Boolean value. The value is TRUE if the format uses temporal compression, or if the format does not use temporal compression.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method returns in pfCompressed if the media type's attribute is TRUE. If the attribute is or not set, the method returns TRUE.

If the method returns TRUE in pfCompressed, it is a hint that the format has temporal compression applied to it. If the method returns , the format does not use temporal compression, although it might use intra-frame compression.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703821 + HRESULT IMFMediaType::IsCompressedFormat([Out] BOOL* pfCompressed) + IMFMediaType::IsCompressedFormat +
+ + +

Compares two media types and determines whether they are identical. If they are not identical, the method indicates how the two formats differ.

+
+

Pointer to the interface of the media type to compare.

+

Receives a bitwise OR of zero or more flags, indicating the degree of similarity between the two media types. The following flags are defined.

ValueMeaning
MF_MEDIATYPE_EQUAL_MAJOR_TYPES
0x00000001

The major types are the same. The major type is specified by the attribute.

MF_MEDIATYPE_EQUAL_FORMAT_TYPES
0x00000002

The subtypes are the same, or neither media type has a subtype. The subtype is specified by the attribute.

MF_MEDIATYPE_EQUAL_FORMAT_DATA
0x00000004

The attributes in one of the media types are a subset of the attributes in the other, and the values of these attributes match, excluding the value of the , , and attributes.

Specifically, the method takes the media type with the smaller number of attributes and checks whether each attribute from that type is present in the other media type and has the same value (not including , , and ).

To perform other comparisons, use the method. For example, the Compare method can test for identical attributes, or test the intersection of the two attribute sets. For more information, see .

MF_MEDIATYPE_EQUAL_FORMAT_USER_DATA
0x00000008

The user data is identical, or neither media type contains user data. User data is specified by the attribute.

?

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_FALSE

The types are not equal. Examine the pdwFlags parameter to determine how the types differ.

The types are equal.

E_INVALIDARG

One or both media types are invalid.

?

+ +

Both of the media types must have a major type, or the method returns E_INVALIDARG.

If the method succeeds and all of the comparison flags are set in pdwFlags, the return value is . If the method succeeds but one or more comparison flags are not set, the method returns S_FALSE.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696980 + HRESULT IMFMediaType::IsEqual([In] IMFMediaType* pIMediaType,[Out] unsigned int* pdwFlags) + IMFMediaType::IsEqual +
+ + +

Retrieves an alternative representation of the media type. Currently only the DirectShow structure is supported.

+
+

that specifies the representation to retrieve. The following values are defined.

ValueMeaning
AM_MEDIA_TYPE_REPRESENTATION

Convert the media type to a DirectShow structure. The method selects the most appropriate format structure (pbFormat).

FORMAT_MFVideoFormat

Convert the media type to a DirectShow structure with an format structure.

FORMAT_VideoInfo

Convert the media type to a DirectShow structure with a format structure.

FORMAT_VideoInfo2

Convert the media type to a DirectShow structure with a format structure.

?

+

Receives a reference to a structure that contains the representation. The method allocates the memory for the structure. The caller must release the memory by calling .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The details of the media type do not match the requested representation.

The media type is not valid.

The media type does not support the requested representation.

?

+ +

If you request a specific format structure in the guidRepresentation parameter, such as , you might lose some of the format information.

You can also use the MFInitAMMediaTypeFromMFMediaType function to convert a Media Foundation media type into a DirectShow media type.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms695248 + HRESULT IMFMediaType::GetRepresentation([In] GUID guidRepresentation,[Out] void** ppvRepresentation) + IMFMediaType::GetRepresentation +
+ + +

Frees memory that was allocated by the method.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703846 + HRESULT IMFMediaType::FreeRepresentation([In] GUID guidRepresentation,[In] void* pvRepresentation) + IMFMediaType::FreeRepresentation +
+ + + Creates an empty media type. + + +

The media type is created without any attributes.

+
+ ms693861 + HRESULT MFCreateMediaType([Out] IMFMediaType** ppMFType) + MFCreateMediaType +
+ + +

Applies to: desktop apps | Metro style apps

Converts a Media Foundation audio media type to a structure.

+
+

Receives the size of the structure.

+

Contains a flag from the enumeration.

+ a reference to the structure. + +

If the wFormatTag member of the returned structure is , you can cast the reference to a structure.

+
+ ms702177 + HRESULT MFCreateWaveFormatExFromMFMediaType([In] IMFMediaType* pMFType,[Out] void** ppWF,[Out, Optional] unsigned int* pcbSize,[In] unsigned int Flags) + MFCreateWaveFormatExFromMFMediaType +
+ + +

Gets the major type of the format.

+
+ +

This method is equivalent to getting the attribute from the media type.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701588 + GetMajorType + GetMajorType + HRESULT IMFMediaType::GetMajorType([Out] GUID* pguidMajorType) +
+ + +

Queries whether the media type is a temporally compressed format. Temporal compression uses information from previously decoded samples when decompressing the current sample.

+
+ +

This method returns in pfCompressed if the media type's attribute is TRUE. If the attribute is or not set, the method returns TRUE.

If the method returns TRUE in pfCompressed, it is a hint that the format has temporal compression applied to it. If the method returns , the format does not use temporal compression, although it might use intra-frame compression.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703821 + IsCompressedFormat + IsCompressedFormat + HRESULT IMFMediaType::IsCompressedFormat([Out] BOOL* pfCompressed) +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + + const WAVEFORMATEX* IMFAudioMediaType::GetAudioFormat() + IMFAudioMediaType::GetAudioFormat + + + + No documentation. + + + GetAudioFormat + GetAudioFormat + const WAVEFORMATEX* IMFAudioMediaType::GetAudioFormat() + + + +

Configures the audio session that is associated with the streaming audio renderer (SAR). Use this interface to change how the audio session appears in the Windows volume control.

The SAR exposes this interface as a service. To get a reference to the interface, call with the service identifier . You can call GetService directly on the SAR or call it on the Media Session.

+
+ + ms705651 + IMFAudioPolicy + IMFAudioPolicy +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Assigns the audio session to a group of sessions.

+
+

A that identifies the session group. Groups are application-defined. To create a new session group, assign a new .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If two or more audio sessions share the same group, the Windows volume control displays one slider control for the entire group. Otherwise, it displays a slider for each session. For more information, see IAudioSessionControl::SetGroupingParam in the core audio API documentation.

+
+ + ms696185 + HRESULT IMFAudioPolicy::SetGroupingParam([In] const GUID& rguidClass) + IMFAudioPolicy::SetGroupingParam +
+ + +

Retrieves the group of sessions to which this audio session belongs.

+
+

Receives a that identifies the session group.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If two or more audio sessions share the same group, the Windows volume control displays one slider control for the entire group. Otherwise, it displays a slider for each session. For more information, see IAudioSessionControl::SetGroupingParam in the core audio API documentation.

+
+ + ms698967 + HRESULT IMFAudioPolicy::GetGroupingParam([Out] GUID* pguidClass) + IMFAudioPolicy::GetGroupingParam +
+ + +

Sets the display name of the audio session. The Windows volume control displays this name.

+
+

A null-terminated wide-character string that contains the display name.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the application does not set a display name, Windows creates one.

+
+ + ms697038 + HRESULT IMFAudioPolicy::SetDisplayName([In] const wchar_t* pszName) + IMFAudioPolicy::SetDisplayName +
+ + +

Retrieves the display name of the audio session. The Windows volume control displays this name.

+
+

Receives a reference to the display name string. The caller must free the memory allocated for the string by calling CoTaskMemFree.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the application does not set a display name, Windows creates one.

+
+ + ms698992 + HRESULT IMFAudioPolicy::GetDisplayName([Out] wchar_t** pszName) + IMFAudioPolicy::GetDisplayName +
+ + +

Sets the icon resource for the audio session. The Windows volume control displays this icon.

+
+

A wide-character string that specifies the icon. See Remarks.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The icon path has the format "path,index" or "path,-id", where path is the fully qualified path to a DLL, executable file, or icon file; index is the zero-based index of the icon within the file; and id is a resource identifier. Note that resource identifiers are preceded by a minus sign (-) to distinguish them from indexes. The path can contain environment variables, such as "%windir%". For more information, see IAudioSessionControl::SetIconPath in the Windows SDK.

+
+ + ms694065 + HRESULT IMFAudioPolicy::SetIconPath([In] const wchar_t* pszPath) + IMFAudioPolicy::SetIconPath +
+ + +

Retrieves the icon resource for the audio session. The Windows volume control displays this icon.

+
+

Receives a reference to a wide-character string that specifies a shell resource. The format of the string is described in the topic . The caller must free the memory allocated for the string by calling CoTaskMemFree.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the application did not set an icon path, the method returns an empty string ("").

For more information, see IAudioSessionControl::GetIconPath in the core audio API documentation.

+
+ + ms704858 + HRESULT IMFAudioPolicy::GetIconPath([Out] wchar_t** pszPath) + IMFAudioPolicy::GetIconPath +
+ + +

Retrieves the group of sessions to which this audio session belongs.

+
+ +

If two or more audio sessions share the same group, the Windows volume control displays one slider control for the entire group. Otherwise, it displays a slider for each session. For more information, see IAudioSessionControl::SetGroupingParam in the core audio API documentation.

+
+ + ms698967 + GetGroupingParam / SetGroupingParam + GetGroupingParam + HRESULT IMFAudioPolicy::GetGroupingParam([Out] GUID* pguidClass) +
+ + +

Controls the volume levels of individual audio channels.

The streaming audio renderer (SAR) exposes this interface as a service. To get a reference to the interface, call with the service identifier . You can call GetService directly on the SAR or call it on the Media Session.

+
+ +

If your application does not require channel-level volume control, you can use the interface to control the master volume level of the audio session.

Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation). For each channel, the attenuation level is the product of:

  • The master volume level of the audio session.
  • The volume level of the channel.

For example, if the master volume is 0.8 and the channel volume is 0.5, the attenuation for that channel is 0.8 ? 0.5 = 0.4. Volume levels can exceed 1.0 (positive gain), but the audio engine clips any audio samples that exceed zero decibels.

Use the following formula to convert the volume level to the decibel (dB) scale:

Attenuation (dB) = 20 * log10(Level)

For example, a volume level of 0.50 represents 6.02 dB of attenuation.

+
+ + aa378344 + IMFAudioStreamVolume + IMFAudioStreamVolume +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of channels in the audio stream.

+
+

Receives the number of channels in the audio stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa373760 + HRESULT IMFAudioStreamVolume::GetChannelCount([Out] unsigned int* pdwCount) + IMFAudioStreamVolume::GetChannelCount +
+ + +

Sets the volume level for a specified channel in the audio stream.

+
+

Zero-based index of the audio channel. To get the number of channels, call .

+

Volume level for the channel.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa370771 + HRESULT IMFAudioStreamVolume::SetChannelVolume([In] unsigned int dwIndex,[In] const float fLevel) + IMFAudioStreamVolume::SetChannelVolume +
+ + +

Retrieves the volume level for a specified channel in the audio stream.

+
+

Zero-based index of the audio channel. To get the number of channels, call .

+

Receives the volume level for the channel.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa369737 + HRESULT IMFAudioStreamVolume::GetChannelVolume([In] unsigned int dwIndex,[Out] float* pfLevel) + IMFAudioStreamVolume::GetChannelVolume +
+ + +

Sets the individual volume levels for all of the channels in the audio stream.

+
+

Number of elements in the pfVolumes array. The value must equal the number of channels. To get the number of channels, call .

+

Address of an array of size dwCount, allocated by the caller. The array specifies the volume levels for all of the channels. Before calling the method, set each element of the array to the desired volume level for the channel.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa370454 + HRESULT IMFAudioStreamVolume::SetAllVolumes([In] unsigned int dwCount,[In, Buffer] const float* pfVolumes) + IMFAudioStreamVolume::SetAllVolumes +
+ + +

Retrieves the volume levels for all of the channels in the audio stream.

+
+

Number of elements in the pfVolumes array. The value must equal the number of channels. To get the number of channels, call .

+

Address of an array of size dwCount, allocated by the caller. The method fills the array with the volume level for each channel in the stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa373642 + HRESULT IMFAudioStreamVolume::GetAllVolumes([In] unsigned int dwCount,[Out, Buffer] float* pfVolumes) + IMFAudioStreamVolume::GetAllVolumes +
+ + +

Retrieves the number of channels in the audio stream.

+
+ + aa373760 + GetChannelCount + GetChannelCount + HRESULT IMFAudioStreamVolume::GetChannelCount([Out] unsigned int* pdwCount) +
+ + +

Represents a buffer that contains a two-dimensional surface, such as a video frame.

+
+ +

To get a reference to this interface, call QueryInterface on the media buffer.

To use a 2-D buffer, it is important to know the stride, which is the number of bytes needed to go from one row of pixels to the next. The stride may be larger than the image width, because the surface may contain padding bytes after each row of pixels. Stride can also be negative, if the pixels are oriented bottom-up in memory. For more information, see Image Stride.

Every video format defines a contiguous or packed representation. This representation is compatible with the standard layout of a DirectX surface in system memory, with no additional padding. For RGB video, the contiguous representation has a pitch equal to the image width in bytes, rounded up to the nearest DWORD boundary. For YUV video, the layout of the contiguous representation depends on the YUV format. For planar YUV formats, the Y plane might have a different pitch than the U and V planes.

If a media buffer supports the interface, the underlying buffer is not guaranteed to have a contiguous representation, because there might be additional padding bytes after each row of pixels. When a buffer is non-contiguous, the Lock and Lock2D methods have different behaviors:

  • The Lock2D method returns a reference to the underlying buffer. The buffer might not be contiguous.
  • The Lock method returns a buffer that is guaranteed to be contiguous. If the underlying buffer is not contiguous, the method copies the data into a new buffer, and the Unlock method copies it back into the original buffer.

Call the Lock2D method to access the 2-D buffer in its native format. The native format might not be contiguous. The buffer's method returns a contiguous representation of the buffer. However, this might require an internal copy from the native format. For 2-D buffers, therefore, you should use the Lock2D method and avoid the Lock method. Because the Lock method might cause up to two buffer copies, the Lock2D method is generally more efficient and should be used when possible. To find out if the underlying buffer is contiguous, call .

For uncompressed images, the amount of valid data in the buffer is determined by the width, height, and pixel layout of the image. For this reason, if you call Lock2D to access the buffer, do not rely on the values returned by or . Similarly, if you modify the data in the buffer, you do not have to call to update the size. Generally, you should avoid mixing calls to and methods on the same media buffer.

+
+ + ms699894 + IMF2DBuffer + IMF2DBuffer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gives the caller access to the memory in the buffer.

+
+

Receives a reference to the first byte of the top row of pixels in the image. The top row is defined as the top row when the image is presented to the viewer, and might not be the first row in memory.

+

Receives the surface stride, in bytes. The stride might be negative, indicating that the image is oriented from the bottom up in memory.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Cannot lock the Direct3D surface.

The buffer cannot be locked at this time.

?

+ +

If p is a reference to the first byte in a row of pixels, p + (*plPitch) points to the first byte in the next row of pixels. A buffer might contain padding after each row of pixels, so the stride might be wider than the width of the image in bytes. Do not access the memory that is reserved for padding bytes, because it might not be read-accessible or write-accessible. For more information, see Image Stride.

The reference returned in pbScanline0 remains valid as long as the caller holds the lock. When you are done accessing the memory, call to unlock the buffer. You must call Unlock2D once for each call to Lock2D. After you unlock the buffer, the reference returned in pbScanline0 is no longer valid and should not be used. Generally, it is best to call Lock2D only when you need to access the buffer memory, and not earlier.

The values returned by the and methods do not apply to the buffer that is returned by the Lock2D method. For the same reason, you do not need to call after manipulating the data in the buffer returned by the Lock2D method.

The method fails while the Lock2D lock is held, and vice-versa. Applications should use only one of these methods at a time.

When the underlying buffer is a Direct3D surface, the method fails if the surface is not lockable.

+
+ + ms700182 + HRESULT IMF2DBuffer::Lock2D([Out] unsigned char** pbScanline0,[In] int* plPitch) + IMF2DBuffer::Lock2D +
+ + +

Unlocks a buffer that was previously locked. Call this method once for each call to .

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697066 + HRESULT IMF2DBuffer::Unlock2D() + IMF2DBuffer::Unlock2D +
+ + +

Retrieves a reference to the buffer memory and the surface stride.

+
+

Receives a reference to the first byte of the top row of pixels in the image.

+

Receives the stride, in bytes. For more information, see Image Stride.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

You must lock the buffer before calling this method.

?

+ +

Before calling this method, you must lock the buffer by calling . The reference returned in plPitch is valid only while the buffer remains locked.

+
+ + ms694042 + HRESULT IMF2DBuffer::GetScanline0AndPitch([Out] unsigned char** pbScanline0,[Out] int* plPitch) + IMF2DBuffer::GetScanline0AndPitch +
+ + +

Queries whether the buffer is contiguous in its native format.

+
+

Receives a Boolean value. The value is TRUE if the buffer is contiguous, and otherwise.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in interface. For non-contiguous buffers, the method must perform an internal copy.

+
+ + ms701629 + HRESULT IMF2DBuffer::IsContiguousFormat([Out] BOOL* pfIsContiguous) + IMF2DBuffer::IsContiguousFormat +
+ + +

Retrieves the number of bytes needed to store the contents of the buffer in contiguous format.

+
+

Receives the number of bytes needed to store the contents of the buffer in contiguous format.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in interface.

+
+ + ms696971 + HRESULT IMF2DBuffer::GetContiguousLength([Out] unsigned int* pcbLength) + IMF2DBuffer::GetContiguousLength +
+ + +

Copies this buffer into the caller's buffer, converting the data to contiguous format.

+
+

Pointer to the destination buffer where the data will be copied. The caller allocates the buffer.

+

Size of the destination buffer, in bytes. To get the required size, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid size specified in pbDestBuffer.

?

+ +

If the original buffer is not contiguous, this method converts the contents into contiguous format during the copy. For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in interface.

+
+ + ms696215 + HRESULT IMF2DBuffer::ContiguousCopyTo([Out, Buffer] unsigned char* pbDestBuffer,[In] unsigned int cbDestBuffer) + IMF2DBuffer::ContiguousCopyTo +
+ + +

Copies data to this buffer from a buffer that has a contiguous format.

+
+

Pointer to the source buffer. The caller allocates the buffer.

+

Size of the source buffer, in bytes. To get the maximum size of the buffer, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method copies the contents of the source buffer into the buffer that is managed by this object. The source buffer must be in contiguous format. While copying, the method converts the contents into the destination buffer's native format, correcting for the buffer's pitch if necessary.

For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in the interface topic.

+
+ + ms700162 + HRESULT IMF2DBuffer::ContiguousCopyFrom([In, Buffer] const unsigned char* pbSrcBuffer,[In] unsigned int cbSrcBuffer) + IMF2DBuffer::ContiguousCopyFrom +
+ + +

Queries whether the buffer is contiguous in its native format.

+
+ +

For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in interface. For non-contiguous buffers, the method must perform an internal copy.

+
+ + ms701629 + IsContiguousFormat + IsContiguousFormat + HRESULT IMF2DBuffer::IsContiguousFormat([Out] BOOL* pfIsContiguous) +
+ + +

Retrieves the number of bytes needed to store the contents of the buffer in contiguous format.

+
+ +

For a definition of contiguous as it applies to 2-D buffers, see the Remarks section in interface.

+
+ + ms696971 + GetContiguousLength + GetContiguousLength + HRESULT IMF2DBuffer::GetContiguousLength([Out] unsigned int* pcbLength) +
+ + +

Controls how a byte stream buffers data from a network.

To get a reference to this interface, call QueryInterface on the byte stream object.

+
+ +

If a byte stream implements this interface, a media source can use it to control how the byte stream buffers data. This interface is designed for byte streams that read data from a network.

A byte stream that implements this interface should also implement the interface. When the byte stream starts buffering, it sends an event. When it stops buffering, it sends an event.

The byte stream must send a matching event for every event. The byte stream must not send events unless the media source has enabled buffering by calling EnableBuffering with the value TRUE.

After the byte stream sends an event, it should send if any of the following occur:

  • The byte stream finishes buffering data.
  • The byte stream reaches the end of the stream.
  • The media source calls EnableBuffering with the value .
  • The media source calls StopBuffering.

The byte stream should not send any more buffering events after it reaches the end of the file.

If buffering is disabled, the byte stream does not send any buffering events. Internally, however, it might still buffer data while it waits for I/O requests to complete. Therefore, methods might take an indefinite length of time to complete.

If the byte stream is buffering data internally and the media source calls EnableBuffering with the value TRUE, the byte stream can send immediately.

After the presentation has started, the media source should forward and and events that it receives while started. The Media Session will pause the presentation clock while buffering is progress and restart the presentation clock when buffering completes. The media source should only forward these events while the presentation is playing. The purpose of sending these events to the Media Session is to pause the presentation time while the source buffers data.

+
+ + aa372548 + IMFByteStreamBuffering + IMFByteStreamBuffering +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the buffering parameters.

+
+

Pointer to an structure that contains the buffering parameters. The byte stream uses this information to calculate how much data to buffer from the network.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa366520 + HRESULT IMFByteStreamBuffering::SetBufferingParams([In] MFBYTESTREAM_BUFFERING_PARAMS* pParams) + IMFByteStreamBuffering::SetBufferingParams +
+ + +

Enables or disables buffering.

+
+

Specifies whether the byte stream buffers data. If TRUE, buffering is enabled. If , buffering is disabled.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Before calling this method, call to set the buffering parameters on the byte stream.

+
+ + aa369933 + HRESULT IMFByteStreamBuffering::EnableBuffering([In] BOOL fEnable) + IMFByteStreamBuffering::EnableBuffering +
+ + +

Stops any buffering that is in progress.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The byte stream successfully stopped buffering.

S_FALSE

No buffering was in progress.

?

+ +

If the byte stream is currently buffering data, it stops and sends an event. If the byte stream is not currently buffering, this method has no effect.

+
+ + aa375256 + HRESULT IMFByteStreamBuffering::StopBuffering() + IMFByteStreamBuffering::StopBuffering +
+ + +

Sets the buffering parameters.

+
+ + aa366520 + SetBufferingParams + SetBufferingParams + HRESULT IMFByteStreamBuffering::SetBufferingParams([In] MFBYTESTREAM_BUFFERING_PARAMS* pParams) +
+ + +

Stops the background transfer of data to the local cache.

+
+ +

The byte stream resumes transferring data to the cache if the application does one of the following:

  • Reads data from the byte stream.
  • Calls the byte stream's method.
+
+ + dd368786 + IMFByteStreamCacheControl + IMFByteStreamCacheControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Stops the background transfer of data to the local cache.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The byte stream resumes transferring data to the cache if the application does one of the following:

  • Reads data from the byte stream.
  • Calls the byte stream's method.
+
+ + dd368786 + HRESULT IMFByteStreamCacheControl::StopBackgroundTransfer() + IMFByteStreamCacheControl::StopBackgroundTransfer +
+ + +

Creates a media source from a byte stream.

+
+ +

Applications do not use this interface directly. This interface is exposed by byte-stream handlers, which are used by the source resolver. When the byte-stream handler is given a byte stream, it parses the stream and creates a media source. Byte-stream handlers are registered by file name extension or MIME type.

+
+ + ms699886 + IMFByteStreamHandler + IMFByteStreamHandler +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Begins an asynchronous request to create a media source from a byte stream.

+
+

Pointer to the byte stream's interface.

+

String that contains the original URL of the byte stream. This parameter can be null.

+

Bitwise OR of zero or more flags. See Source Resolver Flags.

+

Pointer to the interface of a property store. The byte-stream handler can use this property store to configure the object. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives an reference or the value null. If the value is not null, you can cancel the asynchronous operation by passing this reference to the method. The caller must release the interface. This parameter can be null.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Unable to parse the byte stream.

?

+ +

The dwFlags parameter must contain the flag and should not contain the flag.

The byte-stream handler is responsible for parsing the stream and validating the contents. If the stream is not valid or the byte stream handler cannot parse the stream, the handler should return a failure code. The byte stream is not guaranteed to match the type of stream that the byte handler is designed to parse.

If the pwszURL parameter is not null, the byte-stream handler might use the URL during the resolution process. (For example, it might use the file name extension, if present.) Also, the byte stream might contain the attribute, specifying the MIME type.

When the operation completes, the byte-stream handler calls the method. The Invoke method should call to get a reference to the media source.

+
+ + ms696214 + HRESULT IMFByteStreamHandler::BeginCreateObject([In] IMFByteStream* pByteStream,[In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out, Optional] IUnknown** ppIUnknownCancelCookie,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFByteStreamHandler::BeginCreateObject +
+ + +

Completes an asynchronous request to create a media source.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the Invoke method.

+

Receives a member of the enumeration, specifying the type of object that was created.

+

Receives a reference to the interface of the media source. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_ABORT

The operation was canceled. See .

Unable to parse the byte stream.

?

+ +

Call this method from inside the method.

+
+ + ms700217 + HRESULT IMFByteStreamHandler::EndCreateObject([In] IMFAsyncResult* pResult,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFByteStreamHandler::EndCreateObject +
+ + +

Cancels the current request to create a media source.

+
+

Pointer to the interface that was returned in the ppIUnknownCancelCookie parameter of the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can use this method to cancel a previous call to BeginCreateObject. Because that method is asynchronous, however, it might be completed before the operation can be canceled. Therefore, your callback might still be invoked after you call this method.

+
+ + ms701576 + HRESULT IMFByteStreamHandler::CancelObjectCreation([In] IUnknown* pIUnknownCancelCookie) + IMFByteStreamHandler::CancelObjectCreation +
+ + +

Retrieves the maximum number of bytes needed to create the media source or determine that the byte stream handler cannot parse this stream.

+
+

Receives the maximum number of bytes that are required.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704770 + HRESULT IMFByteStreamHandler::GetMaxNumberOfBytesRequiredForResolution([Out] unsigned longlong* pqwBytes) + IMFByteStreamHandler::GetMaxNumberOfBytesRequiredForResolution +
+ + +

Retrieves the maximum number of bytes needed to create the media source or determine that the byte stream handler cannot parse this stream.

+
+ + ms704770 + GetMaxNumberOfBytesRequiredForResolution + GetMaxNumberOfBytesRequiredForResolution + HRESULT IMFByteStreamHandler::GetMaxNumberOfBytesRequiredForResolution([Out] unsigned longlong* pqwBytes) +
+ + +

Retrieves the last clock time that was correlated with system time.

+
+ +

At some fixed interval, a clock correlates its internal clock ticks with the system time. (The system time is the time returned by the high-resolution performance counter.) This method returns:

  • The most recent clock time that was correlated with system time.
  • The system time when the correlation was performed.

The clock time is returned in the pllClockTime parameter and is expressed in units of the clock's frequency. If the clock's method returns the flag, the clock's frequency is 10 MHz (each clock tick is 100 nanoseconds). Otherwise, you can get the clock's frequency by calling . The frequency is given in the qwClockFrequency member of the structure returned by that method.

The system time is returned in the phnsSystemTime parameter, and is always expressed in 100-nanosecond units.

To find out how often the clock correlates its clock time with the system time, call GetProperties. The correlation interval is given in the qwCorrelationRate member of the structure. If qwCorrelationRate is zero, it means the clock performs the correlation whenever GetCorrelatedTime is called. Otherwise, you can calculate the current clock time by extrapolating from the last correlated time.

Some clocks support rate changes through the interface. If so, the clock time advances at a speed of frequency ? current rate. If a clock does not expose the interface, the rate is always 1.0.

For the presentation clock, the clock time is the presentation time, and is always relative to the starting time specified in . You can also get the presentation time by calling .

+
+ + ms694122 + IMFClock + IMFClock +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the characteristics of the clock.

+
+

Receives a bitwise OR of values from the enumeration indicating the characteristics of the clock.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697050 + HRESULT IMFClock::GetClockCharacteristics([Out] unsigned int* pdwCharacteristics) + IMFClock::GetClockCharacteristics +
+ + +

Retrieves the last clock time that was correlated with system time.

+
+

Reserved, must be zero.

+

Receives the last known clock time, in units of the clock's frequency.

+

Receives the system time that corresponds to the clock time returned in pllClockTime, in 100-nanosecond units.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The clock does not have a time source.

?

+ +

At some fixed interval, a clock correlates its internal clock ticks with the system time. (The system time is the time returned by the high-resolution performance counter.) This method returns:

  • The most recent clock time that was correlated with system time.
  • The system time when the correlation was performed.

The clock time is returned in the pllClockTime parameter and is expressed in units of the clock's frequency. If the clock's method returns the flag, the clock's frequency is 10 MHz (each clock tick is 100 nanoseconds). Otherwise, you can get the clock's frequency by calling . The frequency is given in the qwClockFrequency member of the structure returned by that method.

The system time is returned in the phnsSystemTime parameter, and is always expressed in 100-nanosecond units.

To find out how often the clock correlates its clock time with the system time, call GetProperties. The correlation interval is given in the qwCorrelationRate member of the structure. If qwCorrelationRate is zero, it means the clock performs the correlation whenever GetCorrelatedTime is called. Otherwise, you can calculate the current clock time by extrapolating from the last correlated time.

Some clocks support rate changes through the interface. If so, the clock time advances at a speed of frequency ? current rate. If a clock does not expose the interface, the rate is always 1.0.

For the presentation clock, the clock time is the presentation time, and is always relative to the starting time specified in . You can also get the presentation time by calling .

+
+ + ms694122 + HRESULT IMFClock::GetCorrelatedTime([In] unsigned int dwReserved,[Out] longlong* pllClockTime,[Out] longlong* phnsSystemTime) + IMFClock::GetCorrelatedTime +
+ + +

Retrieves the clock's continuity key. (Not supported.)

+
+

Receives the continuity key.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Continuity keys are currently not supported in Media Foundation. Clocks must return the value zero in the pdwContinuityKey parameter.

+
+ + ms700188 + HRESULT IMFClock::GetContinuityKey([Out] unsigned int* pdwContinuityKey) + IMFClock::GetContinuityKey +
+ + +

Retrieves the current state of the clock.

+
+

Reserved, must be zero.

+

Receives the clock state, as a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms700206 + HRESULT IMFClock::GetState([In] unsigned int dwReserved,[Out] MFCLOCK_STATE* peClockState) + IMFClock::GetState +
+ + +

Retrieves the properties of the clock.

+
+

Pointer to an structure that receives the properties.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701613 + HRESULT IMFClock::GetProperties([Out] MFCLOCK_PROPERTIES* pClockProperties) + IMFClock::GetProperties +
+ + +

Retrieves the characteristics of the clock.

+
+ + ms697050 + GetClockCharacteristics + GetClockCharacteristics + HRESULT IMFClock::GetClockCharacteristics([Out] unsigned int* pdwCharacteristics) +
+ + +

Retrieves the clock's continuity key. (Not supported.)

+
+ +

Continuity keys are currently not supported in Media Foundation. Clocks must return the value zero in the pdwContinuityKey parameter.

+
+ + ms700188 + GetContinuityKey + GetContinuityKey + HRESULT IMFClock::GetContinuityKey([Out] unsigned int* pdwContinuityKey) +
+ + +

Retrieves the properties of the clock.

+
+ + ms701613 + GetProperties + GetProperties + HRESULT IMFClock::GetProperties([Out] MFCLOCK_PROPERTIES* pClockProperties) +
+ + +

Retrieves an object in the collection.

+
+ +

This method does not remove the object from the collection. To remove an object, call .

+
+ + ms701793 + IMFCollection + IMFCollection +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of objects in the collection.

+
+

Receives the number of objects in the collection.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697034 + HRESULT IMFCollection::GetElementCount([Out] unsigned int* pcElements) + IMFCollection::GetElementCount +
+ + +

Retrieves an object in the collection.

+
+

Zero-based index of the object to retrieve. Objects are indexed in the order in which they were added to the collection.

+

Receives a reference to the object's interface. The caller must release the interface. The retrieved reference value might be null.

+ +

This method does not remove the object from the collection. To remove an object, call .

+
+ + ms701793 + HRESULT IMFCollection::GetElement([In] unsigned int dwElementIndex,[Out] IUnknown** ppUnkElement) + IMFCollection::GetElement +
+ + +

Adds an object to the collection.

+
+

Pointer to the object's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If pUnkElement is null, a null reference is added to the collection.

+
+ + ms695202 + HRESULT IMFCollection::AddElement([In, Optional] IUnknown* pUnkElement) + IMFCollection::AddElement +
+ + +

Removes an object from the collection.

+
+

Zero-based index of the object to remove. Objects are indexed in the order in which they were added to the collection.

+

Receives a reference to the interface of the object. The caller must release the interface. This parameter cannot be null, but the retrieved reference value might be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697010 + HRESULT IMFCollection::RemoveElement([In] unsigned int dwElementIndex,[Out] IUnknown** ppUnkElement) + IMFCollection::RemoveElement +
+ + +

Adds an object at the specified index in the collection.

+
+

The zero-based index where the object will be added to the collection.

+

The object to insert.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703963 + HRESULT IMFCollection::InsertElementAt([In] unsigned int dwIndex,[In, Optional] IUnknown* pUnknown) + IMFCollection::InsertElementAt +
+ + +

Removes all items from the collection.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms700194 + HRESULT IMFCollection::RemoveAllElements() + IMFCollection::RemoveAllElements +
+ + +

Retrieves the number of objects in the collection.

+
+ + ms697034 + GetElementCount + GetElementCount + HRESULT IMFCollection::GetElementCount([Out] unsigned int* pcElements) +
+ + +

Implements one step that must be performed for the user to access media content. For example, the steps might be individualization followed by license acquisition. Each of these steps would be encapsulated by a content enabler object that exposes the interface.

+
+ + ms697004 + IMFContentEnabler + IMFContentEnabler +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the type of operation that this content enabler performs.

+
+

Receives a that identifies the type of operation. An application can tailor its user interface (UI) strings for known operation types. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The following GUIDs are defined for the pType parameter.

ValueDescription
MFENABLETYPE_MF_RebootRequiredThe user must reboot his or her computer.
MFENABLETYPE_MF_UpdateRevocationInformationUpdate revocation information.
MFENABLETYPE_MF_UpdateUntrustedComponentUpdate untrusted components.
MFENABLETYPE_WMDRMV1_LicenseAcquisitionLicense acquisition for Windows Media Digital Rights Management (DRM) version 1.
MFENABLETYPE_WMDRMV7_IndividualizationIndividualization.
MFENABLETYPE_WMDRMV7_LicenseAcquisitionLicense acquisition for Windows Media DRM version 7 or later.

?

+
+ + bb970471 + HRESULT IMFContentEnabler::GetEnableType([Out] GUID* pType) + IMFContentEnabler::GetEnableType +
+ + +

Retrieves a URL for performing a manual content enabling action.

+
+

Receives a reference to a buffer that contains the URL. The caller must release the memory for the buffer by calling CoTaskMemFree.

+

Receives the number of characters returned in ppwszURL, including the terminating null character.

+

Receives a member of the enumeration indicating whether the URL is trusted.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No URL is available.

?

+ +

If the enabling action can be performed by navigating to a URL, this method returns the URL. If no such URL exists, the method returns a failure code.

The purpose of the URL depends on the content enabler type, which is obtained by calling .

Enable typePurpose of URL
IndividualizationNot applicable.
License acquisitionURL to obtain the license. Call and submit the data to the URL as an HTTP POST request. To receive notification when the license is acquired, call .
RevocationURL to a webpage where the user can download and install an updated component.

?

+
+ + bb970345 + HRESULT IMFContentEnabler::GetEnableURL([Out, Buffer, Optional] wchar_t** ppwszURL,[Out] unsigned int* pcchURL,[InOut, Optional] MF_URL_TRUST_STATUS* pTrustStatus) + IMFContentEnabler::GetEnableURL +
+ + +

Retrieves the data for a manual content enabling action.

+
+

Receives a reference to a buffer that contains the data. The caller must free the buffer by calling CoTaskMemFree.

+

Receives the size of the ppbData buffer.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No data is available.

?

+ +

The purpose of the data depends on the content enabler type, which is obtained by calling .

Enable typePurpose of data
IndividualizationNot applicable.
License acquisitionHTTP POST data.
Revocation structure.

?

+
+ + bb970525 + HRESULT IMFContentEnabler::GetEnableData([Out, Buffer, Optional] unsigned char** ppbData,[Out] unsigned int* pcbData) + IMFContentEnabler::GetEnableData +
+ + +

Queries whether the content enabler can perform all of its actions automatically.

+
+

Receives a Boolean value. If TRUE, the content enabler can perform the enabing action automatically.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If this method returns TRUE in the pfAutomatic parameter, call the method to perform the enabling action.

If this method returns in the pfAutomatic parameter, the application must use manual enabling. To do so, call and to get the URL and data needed for manual enabling.

+
+ + bb970334 + HRESULT IMFContentEnabler::IsAutomaticSupported([Out] BOOL* pfAutomatic) + IMFContentEnabler::IsAutomaticSupported +
+ + +

Performs a content enabling action without any user interaction.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is asynchronous. When the operation is complete, the content enabler sends an event. While the operation is in progress, the content enabler might send events.

To find out whether the content enabler supports this method, call .

+
+ + ms699012 + HRESULT IMFContentEnabler::AutomaticEnable() + IMFContentEnabler::AutomaticEnable +
+ + +

Requests notification when the enabling action is completed.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

S_FALSE

The method succeeded and no action was required.

?

+ +

If you use a manual enabling action, call this method to be notified when the operation completes. If this method returns , the content enabler will send an event when the operation is completed. If the application cancels the operatation before completing it, call .

You do not have to call MonitorEnable when you use automatic enabling by calling .

+
+ + ms698997 + HRESULT IMFContentEnabler::MonitorEnable() + IMFContentEnabler::MonitorEnable +
+ + +

Cancels a pending content enabling action.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The content enabler sends an event with a status code of E_CANCEL.

+
+ + ms704633 + HRESULT IMFContentEnabler::Cancel() + IMFContentEnabler::Cancel +
+ + +

Retrieves the type of operation that this content enabler performs.

+
+ +

The following GUIDs are defined for the pType parameter.

ValueDescription
MFENABLETYPE_MF_RebootRequiredThe user must reboot his or her computer.
MFENABLETYPE_MF_UpdateRevocationInformationUpdate revocation information.
MFENABLETYPE_MF_UpdateUntrustedComponentUpdate untrusted components.
MFENABLETYPE_WMDRMV1_LicenseAcquisitionLicense acquisition for Windows Media Digital Rights Management (DRM) version 1.
MFENABLETYPE_WMDRMV7_IndividualizationIndividualization.
MFENABLETYPE_WMDRMV7_LicenseAcquisitionLicense acquisition for Windows Media DRM version 7 or later.

?

+
+ + bb970471 + GetEnableType + GetEnableType + HRESULT IMFContentEnabler::GetEnableType([Out] GUID* pType) +
+ + +

Queries whether the content enabler can perform all of its actions automatically.

+
+ +

If this method returns TRUE in the pfAutomatic parameter, call the method to perform the enabling action.

If this method returns in the pfAutomatic parameter, the application must use manual enabling. To do so, call and to get the URL and data needed for manual enabling.

+
+ + bb970334 + IsAutomaticSupported + IsAutomaticSupported + HRESULT IMFContentEnabler::IsAutomaticSupported([Out] BOOL* pfAutomatic) +
+ + +

Enables playback of protected content by providing the application with a reference to a content enabler object.

Applications that play protected content should implement this interface.

+
+ +

A content enabler is an object that performs some action that is required to play a piece of protected content. For example, the action might be obtaining a DRM license. Content enablers expose the interface, which defines a generic mechanism for content enabler. Content enablers are created inside the protected media path (PMP) process. However, they must be invoked from the application process. Therefore, the interface provides a way for the PMP Media Session to notify the application.

To use this interface, do the following:

  1. Implement the interface in your application.

  2. Create an attribute store by calling .

  3. Set the attribute on the attribute store. The attribute value is a reference to your implementation.

  4. Call and pass the attribute store in the pConfiguration parameter.

If the content requires a content enabler, the application's BeginEnableContent method is called. Usually this method called during the operation, before the Media Session raises the event. The application might receive multiple BeginEnableContent calls for a single piece of content. The event signals that the content-enabling process is complete for the current topology. The BeginEnableContent method can also be called outside of the SetTopology operation, but less commonly.

Many content enablers send machine-specific data to the network, which can have privacy implications. One of the purposes of the interface is to give applications an opportunity to display information to the user and enable to user to opt in or out of the process.

+
+ + ms694217 + IMFContentProtectionManager + IMFContentProtectionManager +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Begins an asynchronous request to perform a content enabling action.

This method requests the application to perform a specific step needed to acquire rights to the content, using a content enabler object.

+
+

Pointer to the interface of a content enabler object. To create the content enabler, call and request the interface. The application should use the methods in to complete the content enabling action.

+

Pointer to the interface of the pending topology.

+

Pointer to the interface of a callback object. When the operation is complete, the application should call on the callback.

+

Reserved. Currently this parameter is always null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Do not block within this callback method. Instead, perform the content enabling action asynchronously on another thread. When the operation is finished, notify the protected media path (PMP) through the pCallback parameter.

If you return a success code from this method, you must call Invoke on the callback. Conversely, if you return an error code from this method, you must not call Invoke. If the operation fails after the method returns a success code, use status code on the object to report the error.

After the callback is invoked, the PMP will call the application's method to complete the asynchronous call.

This method is not necessarily called every time the application plays protected content. Generally, the method will not be called if the user has a valid, up-to-date license for the content. Internally, the input trust authority (ITA) determines whether BeginEnableContent is called, based on the content provider's DRM policy. For more information, see Protected Media Path.

+
+ + ms696203 + HRESULT IMFContentProtectionManager::BeginEnableContent([In] IMFActivate* pEnablerActivate,[In] IMFTopology* pTopo,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFContentProtectionManager::BeginEnableContent +
+ + +

Ends an asynchronous request to perform a content enabling action. This method is called by the protected media path (PMP) to complete an asynchronous call to .

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When the BeginEnableContent method completes asynchronously, the application notifies the PMP by invoking the asynchronous callback. The PMP calls EndEnableContent on the application to get the result code. This method is called on the application's thread from inside the callback method. Therefore, it must not block the thread that invoked the callback.

The application must return the success or failure code of the asynchronous processing that followed the call to BeginEnableContent.

+
+ + ms694267 + HRESULT IMFContentProtectionManager::EndEnableContent([In] IMFAsyncResult* pResult) + IMFContentProtectionManager::EndEnableContent +
+ + +

Enables the presenter for the enhanced video renderer (EVR) to request a specific frame from the video mixer.

The sample objects created by the function implement this interface. To retrieve a reference to this interface, call QueryInterface on the sample.

+
+ + ms696237 + IMFDesiredSample + IMFDesiredSample +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called by the mixer to get the time and duration of the sample requested by the presenter.

+
+

Receives the desired sample time that should be mixed.

+

Receives the sample duration that should be mixed.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No time stamp was set for this sample. See .

?

+ + ms694058 + HRESULT IMFDesiredSample::GetDesiredSampleTimeAndDuration([Out] longlong* phnsSampleTime,[Out] longlong* phnsSampleDuration) + IMFDesiredSample::GetDesiredSampleTimeAndDuration +
+ + +

Called by the presenter to set the time and duration of the sample that it requests from the mixer.

+
+

The time of the requested sample.

+

The duration of the requested sample.

+ +

This value should be set prior to passing the buffer to the mixer for a Mix operation. The mixer sets the actual start and duration times on the sample before sending it back.

+
+ + ms694296 + void IMFDesiredSample::SetDesiredSampleTimeAndDuration([In] longlong hnsSampleTime,[In] longlong hnsSampleDuration) + IMFDesiredSample::SetDesiredSampleTimeAndDuration +
+ + +

Clears the time stamps previously set by a call to .

+
+ +

After this method is called, the method returns .

This method also clears the time stamp and duration and removes all attributes from the sample.

+
+ + ms703903 + void IMFDesiredSample::Clear() + IMFDesiredSample::Clear +
+ + +

Initializes the Digital Living Network Alliance (DLNA) media sink.

The DLNA media sink exposes this interface. To get a reference to this interface, call CoCreateInstance. The CLSID is CLSID_MPEG2DLNASink.

+
+ + dd368787 + IMFDLNASinkInit + IMFDLNASinkInit +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the Digital Living Network Alliance (DLNA) media sink.

+
+

Pointer to a byte stream. The DLNA media sink writes data to this byte stream. The byte stream must be writable.

+

If TRUE, the DLNA media sink accepts PAL video formats. Otherwise, it accepts NTSC video formats.

+

This method can return one of these values.

Return codeDescription

The method succeeded.

The method was already called.

The media sink's method was called.

?

+ + dd368788 + HRESULT IMFDLNASinkInit::Initialize([In] IMFByteStream* pByteStream,[In] BOOL fPal) + IMFDLNASinkInit::Initialize +
+ + +

Configures Windows Media Digital Rights Management (DRM) for Network Devices on a network sink.

The Advanced Systems Format (ASF) streaming media sink exposes this interface. To get a reference to the interface, perform the following tasks.

  1. Get the activation object for the ASF streaming media sink by calling .
  2. Create the media sink by calling the activation object ActivateObject method.
  3. Get an reference by calling QueryInterface on the media sink.

For more information, see Remarks.

+
+ +

To stream protected content over a network, the ASF streaming media sink provides an output trust authority (OTA) that supports Windows Media DRM for Network Devices and implements the interface. For this OTA, encryption occurs on each frame before multiplexing. The license request and response process takes place in the media sink.

The application gets a reference to and uses the methods to handle the license request and response. The application is also responsible for sending the license to the client.

To stream the content, the application does the following:

  1. Provide the HTTP byte stream to which the media sink writes the streamed content.

    To stream DRM-protected content over a network from a server to a client, an application must use the Microsoft Media Foundation Protected Media Path (PMP). The media sink and the application-provided HTTP byte stream exist in mfpmp.exe. Therefore, the byte stream must expose the interface so that it can be created out-of-process.

    Note??This might affect how the code is packaged. The DLL that contains the HTTP byte stream and other dependent DLLs must be signed for the Protected Environment (PE-signed).

  2. Set the MFPKEY_ASFMEDIASINK_DRMACTION property to . The media sink's property store is available to the application through the ASF ContentInfo. To get the property store, call .
  3. Get a reference to the interface by querying the media sink.
  4. To make a license request, call . This method calls into the OTA implementation and retrieves the license.

    When the clock starts for the first time or restarts , the encrypter that is used for encrypting samples is retrieved, and the license response is cached.

  5. To get the cached license response, call .
+
+ + dd368789 + IMFDRMNetHelper + IMFDRMNetHelper +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the license response for the specified request.

+
+

Pointer to a byte array that contains the license request.

+

Size, in bytes, of the license request.

+

Receives a reference to a byte array that contains the license response. The caller must free the array by calling CoTaskMemFree.

+

Receives the size, in bytes, of the license response.

+

Receives the key identifier. The caller must release the string by calling SysFreeString.

+

The function returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink was shut down.

?

+ + dd368791 + HRESULT IMFDRMNetHelper::ProcessLicenseRequest([In, Buffer] unsigned char* pLicenseRequest,[In] unsigned int cbLicenseRequest,[Out, Buffer, Optional] unsigned char** ppLicenseResponse,[Out] unsigned int* pcbLicenseResponse,[Out] wchar_t** pbstrKID) + IMFDRMNetHelper::ProcessLicenseRequest +
+ + +

Not implemented in this release.

+
+

Receives a reference to a byte array that contains the license response. The caller must free the array by calling CoTaskMemFree.

+

Receives the size, in bytes, of the license response.

+

The method returns E_NOTIMPL.

+ + dd368790 + HRESULT IMFDRMNetHelper::GetChainedLicenseResponse([Out, Buffer, Optional] unsigned char** ppLicenseResponse,[Out] unsigned int* pcbLicenseResponse) + IMFDRMNetHelper::GetChainedLicenseResponse +
+ + +

Enables an application to use a Media Foundation transform (MFT) that has restrictions on its use.

+
+ +

If you register an MFT that requires unlocking, include the flag when you call the function.

+
+ + dd368792 + IMFFieldOfUseMFTUnlock + IMFFieldOfUseMFTUnlock +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Unlocks a Media Foundation transform (MFT) so that the application can use it.

+
+

A reference to the interface of the MFT.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method authenticates the caller, using a private communication channel between the MFT and the object that implements the interface. The details of the communication depend entirely on the implementation.

+
+ + dd368793 + HRESULT IMFFieldOfUseMFTUnlock::Unlock([In, Optional] IUnknown* pUnkMFT) + IMFFieldOfUseMFTUnlock::Unlock +
+ + +

Sets the number of input pins on the DirectShow Enhanced Video Renderer (EVR) filter. To get a reference to this interface, call QueryInterface on the DirectShow EVR filter.

+
+ +

The DirectShow EVR filter starts with one input pin, which corresponds to the reference stream. To create additional pins for video substreams, call SetNumberOfStreams.

The EVR media sink for Media Foundation does not support this interface. To add new streams to the EVR media sink, call .

+
+ + ms694298 + IEVRFilterConfig + IEVRFilterConfig +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the number of input pins on the EVR filter.

+
+

Specifies the total number of input pins on the EVR filter. This value includes the input pin for the reference stream, which is created by default. For example, to mix one substream plus the reference stream, set this parameter to 2.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid number of streams. The minimum is one, and the maximum is 16.

VFW_E_WRONG_STATE

This method has already been called, or at least one pin is already connected.

?

+ +

After this method has been called, it cannot be called a second time on the same instance of the EVR filter. Also, the method fails if any input pins are connected.

+
+ + ms698968 + HRESULT IEVRFilterConfig::SetNumberOfStreams([In] unsigned int dwMaxStreams) + IEVRFilterConfig::SetNumberOfStreams +
+ + +

Retrieves the number of input pins on the EVR filter. The EVR filter always has at least one input pin, which corresponds to the reference stream.

+
+

Receives the number of streams.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701550 + HRESULT IEVRFilterConfig::GetNumberOfStreams([Out] unsigned int* pdwMaxStreams) + IEVRFilterConfig::GetNumberOfStreams +
+ + +

Retrieves the number of input pins on the EVR filter. The EVR filter always has at least one input pin, which corresponds to the reference stream.

+
+ + ms701550 + GetNumberOfStreams / SetNumberOfStreams + GetNumberOfStreams + HRESULT IEVRFilterConfig::GetNumberOfStreams([Out] unsigned int* pdwMaxStreams) +
+ + +

Gets the configuration parameters for the Microsoft DirectShow Enhanced Video Renderer Filter filter.

+
+ + dd373925 + IEVRFilterConfigEx + IEVRFilterConfigEx +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the configuration parameters for the Microsoft DirectShow Enhanced Video Renderer Filter (EVR).

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

?

+ + dd373926 + HRESULT IEVRFilterConfigEx::SetConfigPrefs([In] unsigned int dwConfigFlags) + IEVRFilterConfigEx::SetConfigPrefs +
+ + +

Gets the configuration parameters for the Microsoft DirectShow Enhanced Video Renderer Filter filter.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd373925 + HRESULT IEVRFilterConfigEx::GetConfigPrefs([Out] unsigned int* pdwConfigFlags) + IEVRFilterConfigEx::GetConfigPrefs +
+ + +

Gets or sets the configuration parameters for the Microsoft DirectShow Enhanced Video Renderer Filter filter.

+
+ + dd373925 + GetConfigPrefs / SetConfigPrefs + GetConfigPrefs + HRESULT IEVRFilterConfigEx::GetConfigPrefs([Out] unsigned int* pdwConfigFlags) +
+ + +

Optionally supported by media sinks to perform required tasks before shutdown. This interface is typically exposed by archive sinks?that is, media sinks that write to a file. It is used to perform tasks such as flushing data to disk or updating a file header.

To get a reference to this interface, call QueryInterface on the media sink.

+
+ +

If a media sink exposes this interface, the Media Session will call BeginFinalize on the sink before the session closes.

+
+ + ms704715 + IMFFinalizableMediaSink + IMFFinalizableMediaSink +
+ + +

Implemented by media sink objects. This interface is the base interface for all Media Foundation media sinks. Stream sinks handle the actual processing of data on each stream.

+
+ + ms694262 + IMFMediaSink + IMFMediaSink +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the characteristics of the media sink.

+
+

Receives a bitwise OR of zero or more flags. The following flags are defined:

ValueMeaning
MEDIASINK_FIXED_STREAMS
0x00000001

The media sink has a fixed number of streams. It does not support the and methods. This flag is a hint to the application.

MEDIASINK_CANNOT_MATCH_CLOCK
0x00000002

The media sink cannot match rates with an external clock.

For best results, this media sink should be used as the time source for the presentation clock. If any other time source is used, the media sink cannot match rates with the clock, with poor results (for example, glitching).

This flag should be used sparingly, because it limits how the pipeline can be configured.

For more information about the presentation clock, see Presentation Clock.

MEDIASINK_RATELESS
0x00000004

The media sink is rateless. It consumes samples as quickly as possible, and does not synchronize itself to a presentation clock.

Most archiving sinks are rateless.

MEDIASINK_CLOCK_REQUIRED
0x00000008

The media sink requires a presentation clock. The presentation clock is set by calling the media sink's method.

This flag is obsolete, because all media sinks must support the SetPresentationClock method, even if the media sink ignores the clock (as in a rateless media sink).

MEDIASINK_CAN_PREROLL
0x00000010

The media sink can accept preroll samples before the presentation clock starts. The media sink exposes the interface.

MEDIASINK_REQUIRE_REFERENCE_MEDIATYPE
0x00000020

The first stream sink (index 0) is a reference stream. The reference stream must have a media type before the media types can be set on the other stream sinks.

?

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink's Shutdown method has been called.

?

+ +

The characteristics of a media sink are fixed throughout the life time of the sink.

+
+ + ms701973 + HRESULT IMFMediaSink::GetCharacteristics([Out] unsigned int* pdwCharacteristics) + IMFMediaSink::GetCharacteristics +
+ + +

Adds a new stream sink to the media sink.

+
+

Identifier for the new stream. The value is arbitrary but must be unique.

+

Pointer to the interface, specifying the media type for the stream. This parameter can be null.

+

Receives a reference to the new stream sink's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The specified stream identifier is not valid.

The media sink's Shutdown method has been called.

There is already a stream sink with the same stream identifier.

This media sink has a fixed set of stream sinks. New stream sinks cannot be added.

?

+ +

Not all media sinks support this method. If the media sink does not support this method, the method returns the MEDIASINK_FIXED_STREAMS flag.

If pMediaType is null, use the interface to set the media type. Call to get a reference to the interface.

+
+ + ms694890 + HRESULT IMFMediaSink::AddStreamSink([In] unsigned int dwStreamSinkIdentifier,[In, Optional] IMFMediaType* pMediaType,[Out] IMFStreamSink** ppStreamSink) + IMFMediaSink::AddStreamSink +
+ + +

Removes a stream sink from the media sink.

+
+

Identifier of the stream to remove. The stream identifier is defined when you call to add the stream sink.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

This particular stream sink cannot be removed.

The stream number is not valid.

The media sink has not been initialized.

The media sink's Shutdown method has been called.

This media sink has a fixed set of stream sinks. Stream sinks cannot be removed.

?

+ +

After this method is called, the corresponding stream sink object is no longer valid. The and methods will no longer return that stream sink. You can re-use the stream identifier if you add another stream (by calling AddStreamSink).

Not all media sinks support this method. If the media sink does not support this method, the method returns the MEDIASINK_FIXED_STREAMS flag.

In some cases, the media sink supports this method but does not allow every stream sink to be removed. (For example, it might not allow stream 0 to be removed.)

+
+ + ms705627 + HRESULT IMFMediaSink::RemoveStreamSink([In] unsigned int dwStreamSinkIdentifier) + IMFMediaSink::RemoveStreamSink +
+ + +

Gets the number of stream sinks on this media sink.

+
+

Receives the number of stream sinks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink's Shutdown method has been called.

?

+ + ms703020 + HRESULT IMFMediaSink::GetStreamSinkCount([Out] unsigned int* pcStreamSinkCount) + IMFMediaSink::GetStreamSinkCount +
+ + +

Gets a stream sink, specified by index.

+
+

Zero-based index of the stream. To get the number of streams, call .

+

Receives a reference to the stream's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid index.

The media sink's Shutdown method has been called.

?

+ +

Enumerating stream sinks is not a thread-safe operation, because stream sinks can be added or removed between calls to this method.

+
+ + ms693512 + HRESULT IMFMediaSink::GetStreamSinkByIndex([In] unsigned int dwIndex,[Out] IMFStreamSink** ppStreamSink) + IMFMediaSink::GetStreamSinkByIndex +
+ + +

Gets a stream sink, specified by stream identifier.

+
+

Stream identifier of the stream sink.

+

Receives a reference to the stream's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The stream identifier is not valid.

The media sink's Shutdown method has been called.

?

+ +

If you add a stream sink by calling the method, the stream identifier is specified in the dwStreamSinkIdentifier parameter of that method. If the media sink has a fixed set of streams, the media sink assigns the stream identifiers.

To enumerate the streams by index number instead of stream identifier, call .

+
+ + ms695360 + HRESULT IMFMediaSink::GetStreamSinkById([In] unsigned int dwStreamSinkIdentifier,[Out] IMFStreamSink** ppStreamSink) + IMFMediaSink::GetStreamSinkById +
+ + +

Sets the presentation clock on the media sink.

+
+

Pointer to the interface of the presentation clock, or null. If the value is null, the media sink stops listening to the presentaton clock that was previously set, if any.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The presentation clock does not have a time source. Call SetTimeSource on the presentation clock.

The media sink's Shutdown method has been called.

?

+ +

During streaming, the media sink attempts to match rates with the presentation clock. Ideally, the media sink presents samples at the correct time according to the presentation clock and does not fall behind. Rateless media sinks are an exception to this rule, as they consume samples as quickly as possible and ignore the clock. If the sink is rateless, the method returns the MEDIASINK_RATELESS flag.

The presentation clock must have a time source. Before calling this method, call on the presentation clock to set the presentation time source. Some media sinks provide time sources; therefore, the media sink might be the time source for its own presentation clock. Regardless of what object provides the time source, however, the media sink must attempt to match rates with the clock specified in pPresentationClock. If a media sink cannot match rates with an external time source, the media sink's method retrieves the MEDIASINK_CANNOT_MATCH_CLOCK flag. In this case, SetPresentationClock will still succeed, but the results will not be optimal. The sink might not render samples quickly enough to match rates with the presentation clock.

If pPresentationClock is non-null, the media sink must register for clock state notifications, by calling on the presentation clock. If the method is called again with a new presentation clock, or if pPresentationClock is null, the media sink must call to deregister itself from the previous clock.

All media sinks must support this method.

+
+ + ms700160 + HRESULT IMFMediaSink::SetPresentationClock([In, Optional] IMFPresentationClock* pPresentationClock) + IMFMediaSink::SetPresentationClock +
+ + +

Gets the presentation clock that was set on the media sink.

+
+

Receives a reference to the presentation clock's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No clock has been set. To set the presentation clock, call .

The media sink's Shutdown method has been called.

?

+ + ms705665 + HRESULT IMFMediaSink::GetPresentationClock([Out] IMFPresentationClock** ppPresentationClock) + IMFMediaSink::GetPresentationClock +
+ + +

Shuts down the media sink and releases the resources it is using.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink was shut down.

?

+ +

If the application creates the media sink, it is responsible for calling Shutdown to avoid memory or resource leaks. In most applications, however, the application creates an activation object for the media sink, and the Media Session uses that object to create the media sink. In that case, the Media Session ? not the application ? shuts down the media sink. (For more information, see Activation Objects.)

After this method returns, all methods on the media sink return , except for methods and methods. The sink will not raise any events after this method is called.

+
+ + ms702084 + HRESULT IMFMediaSink::Shutdown() + IMFMediaSink::Shutdown +
+ + +

Gets the characteristics of the media sink.

+
+ +

The characteristics of a media sink are fixed throughout the life time of the sink.

+
+ + ms701973 + GetCharacteristics + GetCharacteristics + HRESULT IMFMediaSink::GetCharacteristics([Out] unsigned int* pdwCharacteristics) +
+ + +

Gets the number of stream sinks on this media sink.

+
+ + ms703020 + GetStreamSinkCount + GetStreamSinkCount + HRESULT IMFMediaSink::GetStreamSinkCount([Out] unsigned int* pcStreamSinkCount) +
+ + +

Gets the presentation clock that was set on the media sink.

+
+ + ms705665 + GetPresentationClock / SetPresentationClock + GetPresentationClock + HRESULT IMFMediaSink::GetPresentationClock([Out] IMFPresentationClock** ppPresentationClock) +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Notifies the media sink to asynchronously take any steps it needs to finish its tasks.

+
+

Pointer to the interface of an asynchronous object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Many archive media sinks have steps they need to do at the end of archiving to complete their file operations, such as updating the header (for some formats) or flushing all pending writes to disk. In some cases, this may include expensive operations such as indexing the content. BeginFinalize is an asynchronous way to initiate final tasks.

When the finalize operation is complete, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

+
+ + ms705643 + HRESULT IMFFinalizableMediaSink::BeginFinalize([In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFFinalizableMediaSink::BeginFinalize +
+ + +

Completes an asynchronous finalize operation.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this method after the method completes asynchronously.

+
+ + ms694891 + HRESULT IMFFinalizableMediaSink::EndFinalize([In] IMFAsyncResult* pResult) + IMFFinalizableMediaSink::EndFinalize +
+ + + No documentation. + + + IDMOQualityControl + IDMOQualityControl + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The SetNow method specifies the earliest time stamp that the DMO will deliver.

+
+

Reference time specifying the earliest time stamp to deliver.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_FAIL

Failure

Success

?

+ +

If quality control is enabled, the DMO discards any samples whose time stamp is less than rtNow. Samples whose time stamp is rtNow or later are processed as efficiently as possible. Depending on the implementation, the DMO might drop some samples to keep pace.

If quality control is disabled, this method has no immediate effect. However, the DMO stores the specified reference time. It uses this value if quality control is enabled at a later time. To enable quality control, call the method.

If incoming samples are not time-stamped, the DMO never performs quality control. The application sets the time stamp in the method.

+
+ + dd406841 + HRESULT IDMOQualityControl::SetNow([In] longlong rtNow) + IDMOQualityControl::SetNow +
+ + +

The SetStatus method enables or disables quality control.

+
+

Value that specifies whether to enable or disable quality control. Use to enable quality control, or zero to disable quality control.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_INVALIDARG

Invalid argument

Success

?

+ +

With quality control enabled, the DMO attempts to deliver samples on time. It can skip late samples if necessary. With quality control disabled, the DMO delivers every sample. If you enable quality control, call the method to specify the earliest time stamp that the DMO should process. Otherwise, the call to SetStatus succeeds but the DMO does not perform quality control.

By default, quality control is disabled.

+
+ + dd406842 + HRESULT IDMOQualityControl::SetStatus([In] unsigned int dwFlags) + IDMOQualityControl::SetStatus +
+ + + No documentation. + + No documentation. + No documentation. + + HRESULT IDMOQualityControl::GetStatus([Out] unsigned int* pdwFlags) + IDMOQualityControl::GetStatus + + + +

The SetNow method specifies the earliest time stamp that the DMO will deliver.

+
+ +

If quality control is enabled, the DMO discards any samples whose time stamp is less than rtNow. Samples whose time stamp is rtNow or later are processed as efficiently as possible. Depending on the implementation, the DMO might drop some samples to keep pace.

If quality control is disabled, this method has no immediate effect. However, the DMO stores the specified reference time. It uses this value if quality control is enabled at a later time. To enable quality control, call the method.

If incoming samples are not time-stamped, the DMO never performs quality control. The application sets the time stamp in the method.

+
+ + dd406841 + SetNow + SetNow + HRESULT IDMOQualityControl::SetNow([In] longlong rtNow) +
+ + + No documentation. + + + GetStatus / SetStatus + GetStatus + HRESULT IDMOQualityControl::GetStatus([Out] unsigned int* pdwFlags) + + + + No documentation. + + + IDMOVideoOutputOptimizations + IDMOVideoOutputOptimizations + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The QueryOperationModePreferences method retrieves the DMO's preferred optimization features.

+
+

Zero-based index of an output stream on the DMO.

+

Pointer to a variable that receives the DMO's requested features. The returned value is a bitwise combination of zero or more flags from the DMO_VIDEO_OUTPUT_STREAM_FLAGS enumeration.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

E_POINTER

null reference argument

Success

?

+ + dd406846 + HRESULT IDMOVideoOutputOptimizations::QueryOperationModePreferences([In] unsigned int ulOutputStreamIndex,[Out] unsigned int* pdwRequestedCapabilities) + IDMOVideoOutputOptimizations::QueryOperationModePreferences +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IDMOVideoOutputOptimizations::SetOperationMode([In] unsigned int ulOutputStreamIndex,[In] unsigned int dwEnabledFeatures) + IDMOVideoOutputOptimizations::SetOperationMode + + + +

The GetCurrentOperationMode method retrieves the optimization features in effect.

+
+

Zero-based index of an output stream on the DMO.

+

Pointer to a variable that receives the current features. The returned value is a bitwise combination of zero or more flags from the DMO_VIDEO_OUTPUT_STREAM_FLAGS enumeration.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

E_POINTER

null reference argument

Success

?

+ + dd406844 + HRESULT IDMOVideoOutputOptimizations::GetCurrentOperationMode([In] unsigned int ulOutputStreamIndex,[Out] unsigned int* pdwEnabledFeatures) + IDMOVideoOutputOptimizations::GetCurrentOperationMode +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IDMOVideoOutputOptimizations::GetCurrentSampleRequirements([In] unsigned int ulOutputStreamIndex,[Out] unsigned int* pdwRequestedFeatures) + IDMOVideoOutputOptimizations::GetCurrentSampleRequirements + + + + No documentation. + + + IEnumDMO + IEnumDMO + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The Next method retrieves a specified number of items in the enumeration sequence.

+
+

Number of items to retrieve.

+

Array of size cItemsToFetch that is filled with the CLSIDs of the enumerated DMOs.

+

Array of size cItemsToFetch that is filled with the friendly names of the enumerated DMOs.

+

Pointer to a variable that receives the actual number of items retrieved. Can be null if cItemsToFetch equals 1.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_INVALIDARG

Invalid argument.

E_OUTOFMEMORY

Insufficient memory.

E_POINTER

null reference argument.

S_FALSE

Retrieved fewer items than requested.

Retrieved the requested number of items.

?

+ +

If the method succeeds, the arrays given by the pCLSID and Names parameters are filled with CLSIDs and wide-character strings. The value of *pcItemsFetched specifies the number of items returned in these arrays.

The method returns if it retrieves the requested number of items (in other words, if *pcItemsFetched equals cItemsToFetch). Otherwise, it returns S_FALSE or an error code.

The caller must free the memory allocated for each string returned in the Names parameter, using the CoTaskMemFree function.

+
+ + dd376587 + HRESULT IEnumDMO::Next([In] unsigned int cItemsToFetch,[Out, Buffer] GUID* pCLSID,[Out, Buffer] wchar_t** Names,[Out] unsigned int* pcItemsFetched) + IEnumDMO::Next +
+ + +

The Skip method skips over a specified number of items in the enumeration sequence.

+
+

Number of items to skip.

+

Returns if the number items skipped equals cItemsToSkip. Otherwise, returns S_FALSE.

+ + dd376589 + HRESULT IEnumDMO::Skip([In] unsigned int cItemsToSkip) + IEnumDMO::Skip +
+ + +

The Reset method resets the enumeration sequence to the beginning.

+
+

Returns .

+ + dd376588 + HRESULT IEnumDMO::Reset() + IEnumDMO::Reset +
+ + +

This method is not implemented.

+
+

Reserved.

+

Returns E_NOTIMPL.

+ + dd376586 + HRESULT IEnumDMO::Clone([Out] IEnumDMO** ppEnum) + IEnumDMO::Clone +
+ + +

The GetBufferAndLength method retrieves the buffer and the size of the valid data in the buffer.

+
+ +

Either parameter can be null, in which case it does not receive a value. At least one parameter must be non-null. If both parameters are null, the method returns E_POINTER.

The value returned in the pcbLength parameter is the size of the valid data in the buffer, not the buffer's allocated size. To obtain the buffer's allocated size, call the method.

+
+ + dd390167 + IMediaBuffer + IMediaBuffer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The SetLength method specifies the length of the data currently in the buffer.

+
+

Size of the data, in bytes. The value must not exceed the buffer's maximum size. Call the method to obtain the maximum size.

+

Returns if successful. Otherwise, returns an value indicating the cause of the error.

+ +

This method sets the size of the valid data currently in the buffer, not the buffer's allocated size.

+
+ + dd390169 + HRESULT IMediaBuffer::SetLength([In] unsigned int cbLength) + IMediaBuffer::SetLength +
+ + + No documentation. + + No documentation. + No documentation. + + HRESULT IMediaBuffer::GetMaxLength([Out] unsigned int* pcbMaxLength) + IMediaBuffer::GetMaxLength + + + +

The GetBufferAndLength method retrieves the buffer and the size of the valid data in the buffer.

+
+

Address of a reference that receives the buffer array. Can be null if pcbLength is not null.

+

Pointer to a variable that receives the size of the valid data, in bytes. Can be null if ppBuffer is not null.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_POINTER

null reference argument

Success

?

+ +

Either parameter can be null, in which case it does not receive a value. At least one parameter must be non-null. If both parameters are null, the method returns E_POINTER.

The value returned in the pcbLength parameter is the size of the valid data in the buffer, not the buffer's allocated size. To obtain the buffer's allocated size, call the method.

+
+ + dd390167 + HRESULT IMediaBuffer::GetBufferAndLength([Out, Buffer, Optional] unsigned char** ppBuffer,[Out, Optional] unsigned int* pcbLength) + IMediaBuffer::GetBufferAndLength +
+ + +

The SetLength method specifies the length of the data currently in the buffer.

+
+ +

This method sets the size of the valid data currently in the buffer, not the buffer's allocated size.

+
+ + dd390169 + SetLength + SetLength + HRESULT IMediaBuffer::SetLength([In] unsigned int cbLength) +
+ + + No documentation. + + + GetMaxLength + GetMaxLength + HRESULT IMediaBuffer::GetMaxLength([Out] unsigned int* pcbMaxLength) + + + +

The interface provides methods for manipulating a Microsoft DirectX Media Object (DMO).

+
+ + dd406926 + IMediaObject + IMediaObject +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The GetStreamCount method retrieves the number of input and output streams.

+
+

Pointer to a variable that receives the number of input streams. Cannot be null.

+

Pointer to a variable that receives the number of output streams. Cannot be null.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_POINTER

null reference argument

Success

?

+ +

The DMO might have zero input streams or zero output streams. The number of streams does not change; a DMO cannot dynamically add or remove streams.

+
+ + dd406957 + HRESULT IMediaObject::GetStreamCount([Out] unsigned int* pcInputStreams,[Out] unsigned int* pcOutputStreams) + IMediaObject::GetStreamCount +
+ + +

The GetInputStreamInfo method retrieves information about an input stream, such as any restrictions on the number of samples per buffer, and whether the stream performs lookahead on the input data. This information never changes.

+
+

Zero-based index of an input stream on the DMO.

+

Pointer to a variable that receives a bitwise combination of zero or more DMO_INPUT_STREAM_INFO_FLAGS flags.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

E_POINTER

null reference argument

Success

?

+ +

The flag indicates that the DMO performs lookahead on the incoming data.

The application must be sure to allocate sufficient buffers for the DMO to process the input. Call the method to determine the buffer requirements.

+
+ + dd406951 + HRESULT IMediaObject::GetInputStreamInfo([In] unsigned int dwInputStreamIndex,[Out] unsigned int* pdwFlags) + IMediaObject::GetInputStreamInfo +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::GetOutputStreamInfo([In] unsigned int dwOutputStreamIndex,[Out] unsigned int* pdwFlags) + IMediaObject::GetOutputStreamInfo + + + +

The GetInputType method retrieves a preferred media type for a specified input stream.

+
+

Zero-based index of an input stream on the DMO.

+

Zero-based index on the set of acceptable media types.

+

Pointer to a structure allocated by the caller, or null. If this parameter is non-null, the method fills the structure with the media type. You can use the value null to test whether the type index is in range, by checking the return code.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index.

DMO_E_NO_MORE_ITEMS

Type index is out of range.

E_OUTOFMEMORY

Insufficient memory.

E_POINTER

null reference argument.

Success.

?

+ +

Call this method to enumerate an input stream's preferred media types. The DMO assigns each media type an index value in order of preference. The most preferred type has an index of zero. To enumerate all the types, make successive calls while incrementing the type index until the method returns DMO_E_NO_MORE_ITEMS. The DMO is not guaranteed to enumerate every media type that it supports.

The format block in the returned type might be null. If so, the format type is GUID_NULL. Check the format type before dereferencing the format block.

If the method succeeds, call MoFreeMediaType to free the format block. (This function is also safe to call when the format block is null.)

To set the media type, call the method. Setting the media type on one stream can change another stream's preferred types. In fact, a stream might not have a preferred type until the type is set on another stream. For example, a decoder might not have a preferred output type until the input type is set. However, the DMO is not required to update its preferred types dynamically in this fashion. Thus, the types returned by this method are not guaranteed to be valid; they might fail when used in the SetInputType method.

To test whether a particular media type is acceptable, call SetInputType with the flag.

To test whether the dwTypeIndex parameter is in range, set pmt to null. The method returns if the index is in range, or DMO_E_NO_MORE_ITEMS if the index is out of range.

+
+ + dd406952 + HRESULT IMediaObject::GetInputType([In] unsigned int dwInputStreamIndex,[In] unsigned int dwTypeIndex,[Out, Optional] DMO_MEDIA_TYPE* pmt) + IMediaObject::GetInputType +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::GetOutputType([In] unsigned int dwOutputStreamIndex,[In] unsigned int dwTypeIndex,[Out, Optional] DMO_MEDIA_TYPE* pmt) + IMediaObject::GetOutputType + + + +

The SetInputType method sets the media type on an input stream, or tests whether a media type is acceptable.

+
+

Zero-based index of an input stream on the DMO.

+

Pointer to a structure that specifies the media type.

+

Bitwise combination of zero or more flags from the DMO_SET_TYPE_FLAGS enumeration.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

DMO_E_TYPE_NOT_ACCEPTED

Media type was not accepted

S_FALSE

Media type is not acceptable

Media type was set successfully, or is acceptable

?

+ +

Call this method to test, set, or clear the media type on an input stream:

  • To test the media type without setting it, use the flag. If the media type is not acceptable, the method returns S_FALSE.
  • To set the media type, set dwFlags to zero. If the media type is not acceptable, the method returns DMO_E_TYPE_NOT_ACCEPTED.
  • To clear the current media type (if any), use the flag and set pmt to null. When the method returns, the stream no longer has a media type. The DMO cannot process samples until the application sets a new media type.

The media types that are currently set on other streams can affect whether the media type is acceptable.

+
+ + dd406962 + HRESULT IMediaObject::SetInputType([In] unsigned int dwInputStreamIndex,[In, Optional] const DMO_MEDIA_TYPE* pmt,[In] unsigned int dwFlags) + IMediaObject::SetInputType +
+ + +

The SetOutputType method sets the media type on an output stream, or tests whether a media type is acceptable.

+
+

Zero-based index of an output stream on the DMO.

+

Pointer to a structure that specifies the media type.

+

Bitwise combination of zero or more flags from the DMO_SET_TYPE_FLAGS enumeration.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

DMO_E_TYPE_NOT_ACCEPTED

Media type was not accepted

S_FALSE

Media type is not acceptable

Media type was set successfully, or is acceptable

?

+ +

Call this method to test, set, or clear the media type on an output stream:

  • To test the media type without setting it, use the flag. If the media type is not acceptable, the method returns S_FALSE.
  • To set the media type, set dwFlags to zero. If the media type is not acceptable, the method returns DMO_E_TYPE_NOT_ACCEPTED.
  • To clear the current media type (if any), use the flag and set pmt to null. When the method returns, the stream no longer has a media type. The DMO cannot process samples until the application sets a new media type, unless the stream is optional.

The media types that are currently set on other streams can affect whether the media type is acceptable.

+
+ + dd406963 + HRESULT IMediaObject::SetOutputType([In] unsigned int dwOutputStreamIndex,[In, Optional] const DMO_MEDIA_TYPE* pmt,[In] unsigned int dwFlags) + IMediaObject::SetOutputType +
+ + +

The GetInputCurrentType method retrieves the media type that was set for an input stream, if any.

+
+

Zero-based index of an input stream on the DMO.

+

Pointer to a structure allocated by the caller. The method fills the structure with the media type.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index.

DMO_E_TYPE_NOT_SET

Media type was not set.

E_OUTOFMEMORY

Insufficient memory.

Success.

?

+ +

The caller must set the media type for the stream before calling this method. To set the media type, call the method.

If the method succeeds, call MoFreeMediaType to free the format block.

+
+ + dd406947 + HRESULT IMediaObject::GetInputCurrentType([In] unsigned int dwInputStreamIndex,[Out] DMO_MEDIA_TYPE* pmt) + IMediaObject::GetInputCurrentType +
+ + +

The GetOutputCurrentType method retrieves the media type that was set for an output stream, if any.

+
+

Zero-based index of an output stream on the DMO.

+

Pointer to a structure allocated by the caller. The method fills the structure with the media type.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index.

DMO_E_TYPE_NOT_SET

Media type was not set.

E_OUTOFMEMORY

Insufficient memory.

Success.

?

+ +

The caller must set the media type for the stream before calling this method. To set the media type, call the method.

If the method succeeds, call MoFreeMediaType to free the format block.

+
+ + dd406953 + HRESULT IMediaObject::GetOutputCurrentType([In] unsigned int dwOutputStreamIndex,[Out] DMO_MEDIA_TYPE* pmt) + IMediaObject::GetOutputCurrentType +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::GetInputSizeInfo([In] unsigned int dwInputStreamIndex,[Out] unsigned int* pcbSize,[Out] unsigned int* pcbMaxLookahead,[Out] unsigned int* pcbAlignment) + IMediaObject::GetInputSizeInfo + + + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::GetOutputSizeInfo([In] unsigned int dwOutputStreamIndex,[Out] unsigned int* pcbSize,[Out] unsigned int* pcbAlignment) + IMediaObject::GetOutputSizeInfo + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::GetInputMaxLatency([In] unsigned int dwInputStreamIndex,[Out] longlong* prtMaxLatency) + IMediaObject::GetInputMaxLatency + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::SetInputMaxLatency([In] unsigned int dwInputStreamIndex,[In] longlong rtMaxLatency) + IMediaObject::SetInputMaxLatency + + + + No documentation. + + No documentation. + + HRESULT IMediaObject::Flush() + IMediaObject::Flush + + + +

The Discontinuity method signals a discontinuity on the specified input stream.

+
+

Zero-based index of an input stream on the DMO.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

DMO_E_NOTACCEPTING

The DMO is not accepting input.

DMO_E_TYPE_NOT_SET

The input and output types have not been set.

Success

?

+ +

A discontinuity represents a break in the input. A discontinuity might occur because no more data is expected, the format is changing, or there is a gap in the data. After a discontinuity, the DMO does not accept further input on that stream until all pending data has been processed. The application should call the method until none of the streams returns the flag.

This method might fail if it is called before the client sets the input and output types on the DMO.

+
+ + dd406944 + HRESULT IMediaObject::Discontinuity([In] unsigned int dwInputStreamIndex) + IMediaObject::Discontinuity +
+ + +

The AllocateStreamingResources method allocates any resources needed by the DMO. Calling this method is always optional.

+
+

Returns if successful. Otherwise, returns an value indicating the cause of the error.

+ +

An application can call this method as a streaming optimization. It gives the DMO an opportunity to perform any time-consuming initializations before streaming begins. If you call this method, do so after you set the media types on the DMO, but before you make the first calls to ProcessInput or ProcessOutput.

This method is optional in the following sense:

  • If the DMO does not support this method, the method returns .
  • If the application never calls this method, the DMO allocates resources within a call to or .

If the DMO supports this method, it should also support the method.

+
+ + dd406943 + HRESULT IMediaObject::AllocateStreamingResources() + IMediaObject::AllocateStreamingResources +
+ + +

The FreeStreamingResources method frees resources allocated by the DMO. Calling this method is always optional.

+
+

Returns if successful. Otherwise, returns an value indicating the cause of the error.

+ +

This method releases any resources that the method initializes.

If the DMO does not support this method, the method returns . If you call this method during streaming, the method fails and the DMO does not release any resources.

Regardless of whether the method fails or succeeds, the application can continue to call other methods on the DMO. The DMO might need to re-initialize resources that were previously freed.

+
+ + dd406946 + HRESULT IMediaObject::FreeStreamingResources() + IMediaObject::FreeStreamingResources +
+ + +

The GetInputStatus method queries whether an input stream can accept more input data.

+
+

Zero-based index of an input stream on the DMO.

+

Pointer to a variable that receives either zero or .

+

Returns an value. Possible values include those in the following table.

Return codeDescription
DMO_E_INVALIDSTREAMINDEX

Invalid stream index

Success

?

+ +

If the input stream will accept more data, the method returns the flag in the dwFlags parameter. Otherwise, it sets this parameter to zero. If the stream will accept more data, the application can call the method.

The status of an input stream can change only as the result of one of the following method calls.

Method Description
Signals a discontinuity on the specified input stream.
Flushes all internally buffered data.
Delivers a buffer to the specified input stream.
Generates output from the current input data.

?

+
+ + dd406950 + HRESULT IMediaObject::GetInputStatus([In] unsigned int dwInputStreamIndex,[Out] unsigned int* dwFlags) + IMediaObject::GetInputStatus +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + + HRESULT IMediaObject::ProcessInput([In] unsigned int dwInputStreamIndex,[In] IMediaBuffer* pBuffer,[In] unsigned int dwFlags,[In] longlong rtTimestamp,[In] longlong rtTimelength) + IMediaObject::ProcessInput + + + +

The ProcessOutput method generates output from the current input data.

+
+

Bitwise combination of zero or more flags from the DMO_PROCESS_OUTPUT_FLAGS enumeration.

+

Number of output buffers.

+

Pointer to an array of structures containing the output buffers. Specify the size of the array in the cOutputBufferCount parameter.

+

Pointer to a variable that receives a reserved value (zero). The application should ignore this value.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_FAIL

Failure

E_INVALIDARG

Invalid argument

E_POINTER

null reference argument

S_FALSE

No output was generated

Success

?

+ +

The pOutputBuffers parameter points to an array of structures. The application must allocate one structure for each output stream. To determine the number of output streams, call the method. Set the cOutputBufferCount parameter to this number.

Each structure contains a reference to a buffer's interface. The application allocates these buffers. The other members of the structure are status fields. The DMO sets these fields if the method succeeds. If the method fails, their values are undefined.

When the application calls ProcessOutput, the DMO processes as much input data as possible. It writes the output data to the output buffers, starting from the end of the data in each buffer. (To find the end of the data, call the method.) The DMO never holds a reference count on an output buffer.

If the DMO fills an entire output buffer and still has input data to process, the DMO returns the flag in the structure. The application should check for this flag by testing the dwStatus member of each structure.

If the method returns S_FALSE, no output was generated. However, a DMO is not required to return S_FALSE in this situation; it might return .

Discarding data:

You can discard data from a stream by setting the flag in the dwFlags parameter. For each stream that you want to discard, set the pBuffer member of the structure to null.

For each stream in which pBuffer is null:

  • If the flag is set, and the stream is discardable or optional, the DMO discards the data.
  • If the flag is set but the stream is neither discardable nor optional, the DMO discards the data if possible. It is not guaranteed to discard the data.
  • If the flag is not set, the DMO does not produce output data for that stream, but does not discard the data.

To check whether a stream is discardable or optional, call the method.

+
+ + dd406960 + HRESULT IMediaObject::ProcessOutput([In] unsigned int dwFlags,[In] unsigned int cOutputBufferCount,[Out, Buffer] DMO_OUTPUT_DATA_BUFFER* pOutputBuffers,[Out] unsigned int* pdwStatus) + IMediaObject::ProcessOutput +
+ + +

The Lock method acquires or releases a lock on the DMO. Call this method to keep the DMO serialized when performing multiple operations.

+
+

Value that specifies whether to acquire or release the lock. If the value is non-zero, a lock is acquired. If the value is zero, the lock is released.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_FAIL

Failure

Success

?

+ +

This method prevents other threads from calling methods on the DMO. If another thread calls a method on the DMO, the thread blocks until the lock is released.

If you are using the Active Template Library (ATL) to implement a DMO, the name of the Lock method conflicts with the CComObjectRootEx::Lock method. To work around this problem, define the preprocessor symbol FIX_LOCK_NAME before including the header file Dmo.h:

 #define FIX_LOCK_NAME	
+            #include <dmo.h>	
+            

This directive causes the preprocessor to rename the method to DMOLock. In your DMO, implement the method as DMOLock. In your implementation, call the ATL Lock or Unlock method, depending on the value of bLock. Applications can still invoke the method using the name Lock because the vtable order does not change.

+
+ + dd406958 + HRESULT IMediaObject::Lock([In] int bLock) + IMediaObject::Lock +
+ + + No documentation. + + + IMediaObjectInPlace + IMediaObjectInPlace + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The Process method processes a block of data. The application supplies a reference to a block of input data. The DMO processes the data in place.

+
+

Size of the data, in bytes.

+

Pointer to a buffer of size ulSize. On input, the buffer holds the input data. If the method returns successfully, the buffer contains the output data.

+

Start time of the data.

+

Either or . See Remarks for more information.

+

Returns an value. Possible values include those in the following table.

Return codeDescription
E_FAIL

Failure

S_FALSE

Success. There is still data to process.

Success. There is no remaining data to process.

?

+ +

If the method fails, the buffer might contain garbage. The application should not use the contents of the buffer.

The DMO might produce output data beyond the length of the input data. This is called an effect tail. For example, a reverb effect continues after the input reaches silence. If the DMO has an effect tail, this method returns S_FALSE.

While the application has input data for processing, call the Process method with the dwFlags parameter set to . If the last such call returns S_FALSE, call Process again, this time with a zeroed input buffer and the flag. The DMO will now fill the zeroed buffer with the effect tail. Continue calling Process in this way until the return value is , indicating that the DMO has finished processing the effect tail.

If the DMO has no effect tail, this method returns S_TRUE or an error code.

+
+ + dd406942 + HRESULT IMediaObjectInPlace::Process([In] unsigned int ulSize,[Out, Buffer] unsigned char* pData,[In] longlong refTimeStart,[In] unsigned int dwFlags) + IMediaObjectInPlace::Process +
+ + +

The Clone method creates a copy of the DMO in its current state.

+
+

Address of a reference to receive the new DMO's interface.

+

Returns if successful. Otherwise, returns an value indicating the cause of the error.

+ +

If the method succeeds, the interface that it returns has an outstanding reference count. Be sure to release the interface when you are finished using it.

+
+ + dd406940 + HRESULT IMediaObjectInPlace::Clone([Out] IMediaObjectInPlace** ppMediaObject) + IMediaObjectInPlace::Clone +
+ + +

The GetLatency method retrieves the latency introduced by this DMO.

+
+

Pointer to a variable that receives the latency, in 100-nanosecond units.

+

Returns if successful. Otherwise, returns an value indicating the cause of the error.

+ +

This method returns the average time required to process each buffer. This value usually depends on factors in the run-time environment, such as the processor speed and the CPU load. One possible way to implement this method is for the DMO to keep a running average based on historical data.

+
+ + dd406941 + HRESULT IMediaObjectInPlace::GetLatency([Out] longlong* pLatencyTime) + IMediaObjectInPlace::GetLatency +
+ + +

The GetLatency method retrieves the latency introduced by this DMO.

+
+ +

This method returns the average time required to process each buffer. This value usually depends on factors in the run-time environment, such as the processor speed and the CPU load. One possible way to implement this method is for the DMO to keep a running average based on historical data.

+
+ + dd406941 + GetLatency + GetLatency + HRESULT IMediaObjectInPlace::GetLatency([Out] longlong* pLatencyTime) +
+ + +

Enables other components in the protected media path (PMP) to use the input protection system provided by an input trust authorities (ITA). An ITA is a component that implements an input protection system for media content. ITAs expose the interface.

An ITA translates policy from the content's native format into a common format that is used by other PMP components. It also provides a decrypter, if one is needed to decrypt the stream.

The topology contains one ITA instance for every protected stream in the media source. The ITA is obtained from the media source by calling .

+
+ + ms697500 + IMFInputTrustAuthority + IMFInputTrustAuthority +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a decrypter transform.

+
+

Interface identifier (IID) of the interface being requested. Currently this value must be IID_IMFTransform, which requests the interface.

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOINTERFACE

The decrypter does not support the requested interface.

This input trust authority (ITA) does not provide a decrypter.

?

+ +

The decrypter should be created in a disabled state, where any calls to automatically fail. After the input trust authority (ITA) has verified that it is running inside the protected media path (PMP), the ITA should enable the decrypter.

An ITA is not required to provide a decrypter. If the source content is not encrypted, the method should return . The PMP will then proceed without using a decrypter for that stream.

The ITA must create a new instance of its decrypter for each call to GetDecrypter. Do not return multiple references to the same decrypter. They must be separate instances because the Media Session might place them in two different branches of the topology.

+
+ + bb970385 + HRESULT IMFInputTrustAuthority::GetDecrypter([In] const GUID& riid,[Out] void** ppv) + IMFInputTrustAuthority::GetDecrypter +
+ + +

Requests permission to perform a specified action on the stream.

+
+

The requested action, specified as a member of the enumeration.

+

Receives the value null or a reference to the interface. The interface is used to create a content enabler object. The caller must release the interface. For more information, see Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The user has permission to perform this action.

NS_E_DRM_NEEDS_INDIVIDUALIZATION

The user must individualize the application.

NS_E_LICENSE_REQUIRED

The user must obtain a license.

?

+ +

This method verifies whether the user has permission to perform a specified action on the stream. The ITA does any work needed to verify the user's right to perform the action, such as checking licenses.

To verify the user's rights, the ITA might need to perform additional steps that require interaction with the user or consent from the user. For example, it might need to acquire a new license or individualize a DRM component. In that case, the ITA creates an activation object for a content enabler and returns the activation object's interface in the ppContentEnablerActivate parameter. The activation object is responsible for creating a content enabler that exposes the interface. The content enabler is used as follows:

  1. The Media Session returns the reference to the application.

  2. The application calls to activate the content enabler.

  3. The application calls methods to perform whatever actions are needed, such as individualization or obtaining a license. The content enabler object must encapsulate this functionality through the interface.

  4. The Media Session calls RequestAccess again.

The return value signals whether the user has permission to perform the action:

  • If the user already has permission to perform the action, the method returns and sets *ppContentEnablerActivate to null.

  • If the user does not have permission, the method returns a failure code and sets *ppContentEnablerActivate to null.

  • If the ITA must perform additional steps that require interaction with the user, the method returns a failure code and returns the content enabler's reference in ppContentEnablerActivate.

The Media Session will not allow the action unless this method returns . However, a return value of does not guarantee that the action will be performed, because some other failure might occur after this method is called. When the action is definitely about to happen, the Media Session calls .

A stream can go to multiple outputs, so this method might be called multiple times with different actions, once for every output.

+
+ + bb970453 + HRESULT IMFInputTrustAuthority::RequestAccess([In] MFPOLICYMANAGER_ACTION Action,[Out] IMFActivate** ppContentEnablerActivate) + IMFInputTrustAuthority::RequestAccess +
+ + +

Retrieves the policy that defines which output protection systems are allowed for this stream, and the configuration data for each protection system.

+
+

The action that will be performed on this stream, specified as a member of the enumeration.

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970400 + HRESULT IMFInputTrustAuthority::GetPolicy([In] MFPOLICYMANAGER_ACTION Action,[Out] IMFOutputPolicy** ppPolicy) + IMFInputTrustAuthority::GetPolicy +
+ + +

Notifies the input trust authority (ITA) that a requested action is about to be performed.

+
+

Pointer to an structure that contains parameters for the BindAccess action.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Before calling this method, the Media Session calls to request an action. The BindAccess method notifies the ITA that the action is definitely about to occur, so that the ITA can update its internal state as needed. If the method returns a failure code, the Media Session cancels the action.

+
+ + ms701551 + HRESULT IMFInputTrustAuthority::BindAccess([In] MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS* pParam) + IMFInputTrustAuthority::BindAccess +
+ + +

Notifies the input trust authority (ITA) when the number of output trust authorities (OTAs) that will perform a specified action has changed.

+
+

Pointer to an structure that contains parameters for the UpdateAccess action.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The ITA can update its internal state if needed. If the method returns a failure code, the Media Session cancels the action.

+
+ + ms697037 + HRESULT IMFInputTrustAuthority::UpdateAccess([In] MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS* pParam) + IMFInputTrustAuthority::UpdateAccess +
+ + +

Resets the input trust authority (ITA) to its initial state.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When this method is called, the ITA should disable any decrypter that was returned in the method.

+
+ + ms703015 + HRESULT IMFInputTrustAuthority::Reset() + IMFInputTrustAuthority::Reset +
+ + +

Registers one or more Media Foundation transforms (MFTs) in the caller's process.

+
+ +

This method is similar to the function. It registers one or more MFTs in the caller's process. These MFTs can be enumerated by calling the function with the flag.

Unlike , however, this method also makes the MFT available in the Protected Media Path (PMP) process, and is therefore useful if you are using the Media Session inside the PMP. For more information, see the following topics:

  • Protected Media Path
+
+ + dd374223 + IMFLocalMFTRegistration + IMFLocalMFTRegistration +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Registers one or more Media Foundation transforms (MFTs) in the caller's process.

+
+

A reference to an array of structures.

+

The number of elements in the pMFTs array.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method is similar to the function. It registers one or more MFTs in the caller's process. These MFTs can be enumerated by calling the function with the flag.

Unlike , however, this method also makes the MFT available in the Protected Media Path (PMP) process, and is therefore useful if you are using the Media Session inside the PMP. For more information, see the following topics:

  • Protected Media Path
+
+ + dd374223 + HRESULT IMFLocalMFTRegistration::RegisterMFTs([In, Buffer] MFT_REGISTRATION_INFO* pMFTs,[In] unsigned int cMFTs) + IMFLocalMFTRegistration::RegisterMFTs +
+ + +

Represents a block of memory that contains media data. Use this interface to access the data in the buffer.

+
+ +

If the buffer contains 2-D image data (such as an uncompressed video frame), you should query the buffer for the interface. The methods on are optimized for 2-D data.

To get a buffer from a media sample, call one of the following methods:

To create a new buffer object, use one of the following functions.

FunctionDescription
Creates a buffer and allocates system memory.
Creates a media buffer that wraps an existing media buffer.
Creates a buffer that manages a DirectX surface.
Creates a buffer and allocates system memory with a specified alignment.

?

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696261 + IMFMediaBuffer + IMFMediaBuffer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gives the caller access to the memory in the buffer, for reading or writing

+
+

Receives the maximum amount of data that can be written to the buffer. This parameter can be null. The same value is returned by the method.

+

Receives the length of the valid data in the buffer, in bytes. This parameter can be null. The same value is returned by the method.

+

Receives a reference to the start of the buffer.

+ +

This method gives the caller access to the entire buffer, up to the maximum size returned in the pcbMaxLength parameter. The value returned in pcbCurrentLength is the size of any valid data already in the buffer, which might be less than the total buffer size.

The reference returned in ppbBuffer is guaranteed to be valid, and can safely be accessed across the entire buffer for as long as the lock is held. When you are done accessing the buffer, call to unlock the buffer. You must call Unlock once for each call to Lock. After you unlock the buffer, the reference returned in ppbBuffer is no longer valid, and should not be used. Generally, it is best to call Lock only when you need to access the buffer memory, and not earlier.

Locking the buffer does not prevent other threads from calling Lock, so you should not rely on this method to synchronize threads.

This method does not allocate any memory, or transfer ownership of the memory to the caller. Do not release or free the memory; the media buffer will free the memory when the media buffer is destroyed.

If you modify the contents of the buffer, update the current length by calling .

If the buffer supports the interface, you should use the method to lock the buffer. For 2-D buffers, the Lock2D method is more efficient than the Lock method. If the buffer is locked using Lock2D, the Lock method might return .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970366 + HRESULT IMFMediaBuffer::Lock([Out] void** ppbBuffer,[Out, Optional] unsigned int* pcbMaxLength,[Out, Optional] unsigned int* pcbCurrentLength) + IMFMediaBuffer::Lock +
+ + +

Unlocks a buffer that was previously locked. Call this method once for every call to .

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

For Direct3D surface buffers, an error occurred when unlocking the surface.

?

+ +

It is an error to call Unlock if you did not call Lock previously.

After calling this method, do not use the reference returned by the Lock method. It is no longer guaranteed to be valid.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696259 + HRESULT IMFMediaBuffer::Unlock() + IMFMediaBuffer::Unlock +
+ + +

Retrieves the length of the valid data in the buffer.

+
+

Receives the length of the valid data, in bytes. If the buffer does not contain any valid data, the value is zero.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698987 + HRESULT IMFMediaBuffer::GetCurrentLength([Out] unsigned int* pcbCurrentLength) + IMFMediaBuffer::GetCurrentLength +
+ + +

Sets the length of the valid data in the buffer.

+
+

Length of the valid data, in bytes. This value cannot be greater than the allocated size of the buffer, which is returned by the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The specified length is greater than the maximum size of the buffer.

?

+ +

Call this method if you write data into the buffer.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703202 + HRESULT IMFMediaBuffer::SetCurrentLength([In] unsigned int cbCurrentLength) + IMFMediaBuffer::SetCurrentLength +
+ + +

Retrieves the allocated size of the buffer.

+
+

Receives the allocated size of the buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The buffer might or might not contain any valid data, and if there is valid data in the buffer, it might be smaller than the buffer's allocated size. To get the length of the valid data, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704840 + HRESULT IMFMediaBuffer::GetMaxLength([Out] unsigned int* pcbMaxLength) + IMFMediaBuffer::GetMaxLength +
+ + +

Retrieves the length of the valid data in the buffer.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698987 + GetCurrentLength / SetCurrentLength + GetCurrentLength + HRESULT IMFMediaBuffer::GetCurrentLength([Out] unsigned int* pcbCurrentLength) +
+ + +

Retrieves the allocated size of the buffer.

+
+ +

The buffer might or might not contain any valid data, and if there is valid data in the buffer, it might be smaller than the buffer's allocated size. To get the length of the valid data, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704840 + GetMaxLength + GetMaxLength + HRESULT IMFMediaBuffer::GetMaxLength([Out] unsigned int* pcbMaxLength) +
+ + +

Represents an event generated by a Media Foundation object. Use this interface to get information about the event.

To get a reference to this interface, call or on the event generator.

+
+ +

If you are implementing an object that generates events, call the function to create a new event object.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702249 + IMFMediaEvent + IMFMediaEvent +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the event type. The event type indicates what happened to trigger the event. It also defines the meaning of the event value.

+
+

Receives the event type. For a list of event types, see Media Foundation Events.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702255 + HRESULT IMFMediaEvent::GetType([Out] MEDIA_EVENT_TYPES* pmet) + IMFMediaEvent::GetType +
+ + +

Retrieves the extended type of the event.

+
+

Receives a that identifies the extended type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

To define a custom event, create a new extended-type and send an event with that .

Some standard Media Foundation events also use the extended type to differentiate between types of event data.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697235 + HRESULT IMFMediaEvent::GetExtendedType([Out] GUID* pguidExtendedType) + IMFMediaEvent::GetExtendedType +
+ + +

Retrieves an that specifies the event status.

+
+

Receives the event status. If the operation that generated the event was successful, the value is a success code. A failure code means that an error condition triggered the event.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704650 + HRESULT IMFMediaEvent::GetStatus([Out] HRESULT* phrStatus) + IMFMediaEvent::GetStatus +
+ + +

Retrieves the value associated with the event, if any. The value is retrieved as a structure. The actual data type and the meaning of the value depend on the event.

+
+

Pointer to a structure. The method fills this structure with the data.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Before calling this method, call PropVariantInit to initialize the structure. After the method returns, call PropVariantClear to free the memory that was allocated for the data.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms693864 + HRESULT IMFMediaEvent::GetValue([Out] PROPVARIANT* pvValue) + IMFMediaEvent::GetValue +
+ + +

Retrieves the event type. The event type indicates what happened to trigger the event. It also defines the meaning of the event value.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702255 + GetType + GetType + HRESULT IMFMediaEvent::GetType([Out] MEDIA_EVENT_TYPES* pmet) +
+ + +

Retrieves the extended type of the event.

+
+ +

To define a custom event, create a new extended-type and send an event with that .

Some standard Media Foundation events also use the extended type to differentiate between types of event data.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697235 + GetExtendedType + GetExtendedType + HRESULT IMFMediaEvent::GetExtendedType([Out] GUID* pguidExtendedType) +
+ + +

Retrieves an that specifies the event status.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704650 + GetStatus + GetStatus + HRESULT IMFMediaEvent::GetStatus([Out] HRESULT* phrStatus) +
+ + +

Retrieves the value associated with the event, if any. The value is retrieved as a structure. The actual data type and the meaning of the value depend on the event.

+
+ +

Before calling this method, call PropVariantInit to initialize the structure. After the method returns, call PropVariantClear to free the memory that was allocated for the data.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms693864 + GetValue + GetValue + HRESULT IMFMediaEvent::GetValue([Out] PROPVARIANT* pvValue) +
+ + +

Retrieves events from any Media Foundation object that generates events.

+
+ +

An object that supports this interface maintains a queue of events. The client of the object can retrieve the events either synchronously or asynchronously. The synchronous method is GetEvent. The asynchronous methods are BeginGetEvent and EndGetEvent.

+
+ + ms701755 + IMFMediaEventGenerator + IMFMediaEventGenerator +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the next event in the queue. This method is synchronous.

+
+

Specifies one of the following values.

ValueMeaning
0

The method blocks until the event generator queues an event.

MF_EVENT_FLAG_NO_WAIT

The method returns immediately.

?

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

null reference argument.

There is a pending request.

There are no events in the queue.

The object was shut down.

?

+ +

This method executes synchronously.

If the queue already contains an event, the method returns immediately. If the queue does not contain an event, the behavior depends on the value of dwFlags:

  • If dwFlags is 0, the method blocks indefinitely until a new event is queued, or until the event generator is shut down.

  • If dwFlags is MF_EVENT_FLAG_NO_WAIT, the method fails immediately with the return code .

This method returns if you previously called and have not yet called .

+
+ + ms704754 + HRESULT IMFMediaEventGenerator::GetEvent([In] unsigned int dwFlags,[Out] IMFMediaEvent** ppEvent) + IMFMediaEventGenerator::GetEvent +
+ + +

Begins an asynchronous request for the next event in the queue.

+
+

Pointer to the interface of a callback object. The client must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

null reference argument.

There is a pending request with the same callback reference and a different state object.

There is a pending request with a different callback reference.

The object was shut down.

MF_S_MULTIPLE_BEGIN

There is a pending request with the same callback reference and state object.

?

+ +

When a new event is available, the event generator calls the method. The Invoke method should call to get a reference to the interface, and use that interface to examine the event.

Do not call BeginGetEvent a second time before calling EndGetEvent. While the first call is still pending, additional calls to the same object will fail. Also, the method fails if an asynchronous request is still pending.

+
+ + ms701637 + HRESULT IMFMediaEventGenerator::BeginGetEvent([In] IMFAsyncCallback* pCallback,[In] void* punkState) + IMFMediaEventGenerator::BeginGetEvent +
+ + +

Completes an asynchronous request for the next event in the queue.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the Invoke method.

+

Receives a reference to the interface. The caller must release the interface.

+ +

Call this method from inside your application's method. For example code, see .

+
+ + ms698866 + HRESULT IMFMediaEventGenerator::EndGetEvent([In] IMFAsyncResult* pResult,[Out] IMFMediaEvent** ppEvent) + IMFMediaEventGenerator::EndGetEvent +
+ + +

Puts a new event in the object's queue.

+
+

Specifies the event type. The event type is returned by the event's method. For a list of event types, see Media Foundation Events.

+

The extended type. If the event does not have an extended type, use the value GUID_NULL. The extended type is returned by the event's method.

+

A success or failure code indicating the status of the event. This value is returned by the event's method.

+

Pointer to a that contains the event value. This parameter can be null. This value is returned by the event's method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object was shut down.

?

+ + ms696255 + HRESULT IMFMediaEventGenerator::QueueEvent([In] unsigned int met,[In] const GUID& guidExtendedType,[In] HRESULT hrStatus,[In, Optional] const PROPVARIANT* pvValue) + IMFMediaEventGenerator::QueueEvent +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves the next event in the queue. This method is synchronous.

+
+ true if the method blocks until the event generator queues an event, false otherwise. + a reference to the interface. The caller must release the interface. + +

This method executes synchronously.

If the queue already contains an event, the method returns immediately. If the queue does not contain an event, the behavior depends on the value of dwFlags:

  • If dwFlags is 0, the method blocks indefinitely until a new event is queued, or until the event generator is shut down.

  • If dwFlags is MF_EVENT_FLAG_NO_WAIT, the method fails immediately with the return code .

This method returns if you previously called and have not yet called .

+
+ ms704754 + HRESULT IMFMediaEventGenerator::GetEvent([In] unsigned int dwFlags,[Out] IMFMediaEvent** ppEvent) + IMFMediaEventGenerator::GetEvent +
+ + +

Applies to: desktop apps | Metro style apps

Begins an asynchronous request for the next event in the queue.

+
+

Pointer to the interface of a callback object. The client must implement this interface.

+ A reference to a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked. + +

When a new event is available, the event generator calls the method. The Invoke method should call to get a reference to the interface, and use that interface to examine the event.

Do not call BeginGetEvent a second time before calling EndGetEvent. While the first call is still pending, additional calls to the same object will fail. Also, the method fails if an asynchronous request is still pending.

+
+ ms701637 + HRESULT IMFMediaEventGenerator::BeginGetEvent([In] IMFAsyncCallback* pCallback,[In] void* punkState) + IMFMediaEventGenerator::BeginGetEvent +
+ + +

Shuts down the event queue.

+
+ +

Call this method when your component shuts down. After this method is called, all methods return .

This method removes all of the events from the queue.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698923 + IMFMediaEventQueue + IMFMediaEventQueue +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IMFMediaEventQueue::GetEvent([In] unsigned int dwFlags,[Out] IMFMediaEvent** ppEvent) + IMFMediaEventQueue::GetEvent + + + +

Begins an asynchronous request for the next event in the queue.

Call this method inside your implementation of . Pass the parameters from that method directly to this method.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Shutdown method was called.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696998 + HRESULT IMFMediaEventQueue::BeginGetEvent([In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFMediaEventQueue::BeginGetEvent +
+ + +

Completes an asynchronous request for the next event in the queue.

Call this method inside your implementation of . Pass the parameters from that method directly to this method.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Shutdown method was called.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702986 + HRESULT IMFMediaEventQueue::EndGetEvent([In] IMFAsyncResult* pResult,[Out] IMFMediaEvent** ppEvent) + IMFMediaEventQueue::EndGetEvent +
+ + +

Puts an event in the queue.

+
+

Pointer to the interface of the event to be put in the queue.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Shutdown method was called.

?

+ +

Call this method when your component needs to raise an event that contains attributes. To create the event object, call . Add attributes to the event by using methods from the interface. (The interface inherits .)

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704792 + HRESULT IMFMediaEventQueue::QueueEvent([In] IMFMediaEvent* pEvent) + IMFMediaEventQueue::QueueEvent +
+ + +

Creates an event, sets a as the event data, and puts the event in the queue.

Call this method inside your implementation of . Pass the parameters from that method directly to this method.

You can also call this method when your component needs to raise an event that does not contain attributes. If the event data is an reference, you can use . If the event contains attributes, use instead.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Shutdown method was called.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704641 + HRESULT IMFMediaEventQueue::QueueEventParamVar([In] unsigned int met,[In] const GUID& guidExtendedType,[In] HRESULT hrStatus,[In] const PROPVARIANT* pvValue) + IMFMediaEventQueue::QueueEventParamVar +
+ + +

Creates an event, sets an reference as the event data, and puts the event in the queue.

+
+

Specifies the event type of the event to be added to the queue. The event type is returned by the event's method. For a list of event types, see Media Foundation Events.

+

The extended type of the event. If the event does not have an extended type, use the value GUID_NULL. The extended type is returned by the event's method.

+

A success or failure code indicating the status of the event. This value is returned by the event's method.

+

Pointer to the interface. The method sets this reference as the event value. The reference is returned by the event's method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Shutdown method was called.

?

+ +

Call this method when your component needs to raise an event that contains an reference value and no attributes. If the event contains attributes, use instead.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704686 + HRESULT IMFMediaEventQueue::QueueEventParamUnk([In] unsigned int met,[In] const GUID& guidExtendedType,[In] HRESULT hrStatus,[In] IUnknown* pUnk) + IMFMediaEventQueue::QueueEventParamUnk +
+ + +

Shuts down the event queue.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this method when your component shuts down. After this method is called, all methods return .

This method removes all of the events from the queue.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698923 + HRESULT IMFMediaEventQueue::Shutdown() + IMFMediaEventQueue::Shutdown +
+ + +

Provides playback controls for protected and unprotected content. The Media Session and the protected media path (PMP) session objects expose this interface. This interface is the primary interface that applications use to control the Media Foundation pipeline.

To obtain a reference to this interface, call or .

+
+ + ms705662 + IMFMediaSession + IMFMediaSession +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets a topology on the Media Session.

+
+

Bitwise OR of zero or more flags from the enumeration.

+

Pointer to the topology object's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The operation cannot be performed in the Media Session's current state.

The Media Session has been shut down.

The topology has invalid values for one or more of the following attributes:

NS_E_DRM_DEBUGGING_NOT_ALLOWED

Protected content cannot be played while debugging.

?

+ +

If pTopology is a full topology, set the flag in the dwSetTopologyFlags parameter. Otherwise, the topology is assumed to be a partial topology. The Media Session uses the topology loader to resolve a partial topology into a full topology.

If the Media Session is currently paused or stopped, the SetTopology method does not take effect until the next call to .

If the Media Session is currently running, or on the next call to Start, the SetTopology method does the following:

  • If the flag is set in dwSetTopologyFlags, the Media Session ends the current presentation immediately, clears all pending topologies, and uses pTopology to start a new presentation.
  • Otherwise, the Media Session queues pTopology and starts the new presentation when the current presentation has completed. If there is no current presentation, the new presentation starts immediately.
  • Starting in Windows?7, you can also specify the flag to clear the current topology but leave any other pending topologies on the queue.

This method is asynchronous. If the method returns , the Media Session sends an event when the operation completes. If the Media Session is currently paused to stopped, the Media Session does not send the event until the next call to

+
+ + ms704785 + HRESULT IMFMediaSession::SetTopology([In] MFSESSION_SETTOPOLOGY_FLAGS dwSetTopologyFlags,[In, Optional] IMFTopology* pTopology) + IMFMediaSession::SetTopology +
+ + +

Clears all of the presentations that are queued for playback in the Media Session.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The operation cannot be performed in the Media Session's current state.

The Media Session has been shut down.

?

+ +

This method is asynchronous. When the operation completes, the Media Session sends an event.

This method does not clear the current topology; it only removes topologies that are placed in the queue, waiting for playback. To remove the current topology, call with the flag.

+
+ + ms705648 + HRESULT IMFMediaSession::ClearTopologies() + IMFMediaSession::ClearTopologies +
+ + +

Starts the Media Session.

+
+

Pointer to a that specifies the time format for the pvarStartPosition parameter. This parameter can be null. The value null is equivalent to passing in GUID_NULL.

The following time format GUIDs are defined:

ValueMeaning
GUID_NULL

Presentation time. The pvarStartPosition parameter must have one of the following types.

  • VT_I8: The pvarStartPosition parameter contains the starting position in 100-nanosecond units, relative to the start of the presentation.
  • VT_EMPTY: Playback starts from the current position.

All media sources support this time format.

MF_TIME_FORMAT_SEGMENT_OFFSET

Segment offset. This time format is supported by the Sequencer Source. The starting time is an offset within a segment.

Call the function to create the value for the pvarStartPosition parameter.

MF_TIME_FORMAT_ENTRY_RELATIVE

Note??Requires Windows?7 or later.

Skip to a playlist entry. The pvarStartPosition parameter specifies the index of the playlist entry, relative to the current entry. For example, the value 2 skips forward two entries. To skip backward, pass a negative value. The type is VT_I4.

If a media source supports this time format, the method returns one or both of the following flags:

?

+

Pointer to a that specifies the starting position for playback. The meaning and data type of this parameter are indicated by the pguidTimeFormat parameter.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The operation cannot be performed in the Media Session's current state.

The Media Session has been shut down.

?

+ +

When this method is called, the Media Session starts the presentation clock and begins to process media samples.

This method is asynchronous. When the method completes, the Media Session sends an event.

+
+ + ms694908 + HRESULT IMFMediaSession::Start([In, Optional] const GUID* pguidTimeFormat,[In, Optional] const PROPVARIANT* pvarStartPosition) + IMFMediaSession::Start +
+ + +

Provides playback controls for protected and unprotected content. The Media Session and the protected media path (PMP) session objects expose this interface. This interface is the primary interface that applications use to control the Media Foundation pipeline.

To obtain a reference to this interface, call or .

+
+ No documentation. + + ms705662 + HRESULT IMFMediaSession::Pause() + IMFMediaSession::Pause +
+ + +

Provides playback controls for protected and unprotected content. The Media Session and the protected media path (PMP) session objects expose this interface. This interface is the primary interface that applications use to control the Media Foundation pipeline.

To obtain a reference to this interface, call or .

+
+ No documentation. + + ms705662 + HRESULT IMFMediaSession::Stop() + IMFMediaSession::Stop +
+ + +

Closes the Media Session and releases all of the resources it is using.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Media Session has been shut down.

?

+ +

This method is asynchronous. When the operation completes, the Media Session sends an event.

After the Close method is called, the only valid methods on the Media Session are the following:

All other methods return , or else queue an event with that error code.

+
+ + ms698928 + HRESULT IMFMediaSession::Close() + IMFMediaSession::Close +
+ + +

Shuts down the Media Session and releases all the resources used by the Media Session.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this method when you are done using the Media Session, before the final call to IUnknown::Release. Otherwise, your application will leak memory.

After this method is called, other methods return .

+
+ + ms697318 + HRESULT IMFMediaSession::Shutdown() + IMFMediaSession::Shutdown +
+ + +

Retrieves the Media Session's presentation clock.

+
+

Receives a reference to the presentation clock's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_UNEXPECTED

The Media Session does not have a presentation clock.

The Media Session has been shut down.

?

+ +

The application can query the returned reference for the interface. However, the application should not use this interface to control the state of the presentation clock. Instead, the application should always call the transport control methods on the Media Session's interface, such as Start, Stop, and Pause.

+
+ + bb970342 + HRESULT IMFMediaSession::GetClock([Out] IMFClock** ppClock) + IMFMediaSession::GetClock +
+ + +

Retrieves the capabilities of the Media Session, based on the current presentation.

+
+

Receives a bitwise OR of zero or more of the following flags.

ValueMeaning
MFSESSIONCAP_PAUSE

The Media Session can be paused.

MFSESSIONCAP_RATE_FORWARD

The Media Session supports forward playback at rates faster than 1.0.

MFSESSIONCAP_RATE_REVERSE

The Media Session supports reverse playback.

MFSESSIONCAP_SEEK

The Media Session can be seeked.

MFSESSIONCAP_START

The Media Session can be started.

?

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

null reference argument.

The Media Session has been shut down.

?

+ + ms696229 + HRESULT IMFMediaSession::GetSessionCapabilities([Out] unsigned int* pdwCaps) + IMFMediaSession::GetSessionCapabilities +
+ + +

Gets a topology from the Media Session.

This method can get the current topology or a queued topology.

+
+

Bitwise OR of zero or more flags from the enumeration.

+

The identifier of the topology. This parameter is ignored if the dwGetFullTopologyFlags parameter contains the flag. To get the identifier of a topology, call .

+

Receives a reference to the interface of the topology. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The Media Session has been shut down.

?

+ +

If the flag is specified in the dwGetFullTopologyFlags parameter, the method returns the topology for the current presentation. Otherwise, the method searches all of the queued topologies for one that matches the identifier given in the TopoId parameter.

This method can be used to retrieve the topology for the current presentation or any pending presentations. It cannot be used to retrieve a topology that has already ended.

The topology returned in ppFullTopo is a full topology, not a partial topology.

+
+ + bb970422 + HRESULT IMFMediaSession::GetFullTopology([In] unsigned int dwGetFullTopologyFlags,[In] unsigned longlong TopoId,[Out] IMFTopology** ppFullTopology) + IMFMediaSession::GetFullTopology +
+ + +

Retrieves the Media Session's presentation clock.

+
+ +

The application can query the returned reference for the interface. However, the application should not use this interface to control the state of the presentation clock. Instead, the application should always call the transport control methods on the Media Session's interface, such as Start, Stop, and Pause.

+
+ + bb970342 + GetClock + GetClock + HRESULT IMFMediaSession::GetClock([Out] IMFClock** ppClock) +
+ + +

Retrieves the capabilities of the Media Session, based on the current presentation.

+
+ + ms696229 + GetSessionCapabilities + GetSessionCapabilities + HRESULT IMFMediaSession::GetSessionCapabilities([Out] unsigned int* pdwCaps) +
+ + +

Enables a media sink to receive samples before the presentation clock is started.

To get a reference to this interface, call QueryInterface on the media sink.

+
+ +

Media sinks can implement this interface to support seamless playback and transitions. If a media sink exposes this interface, it can receive samples before the presentation clock starts. It can then pre-process the samples, so that rendering can begin immediately when the clock starts. Prerolling helps to avoid glitches during playback.

If a media sink supports preroll, the media sink's method should return the MEDIASINK_CAN_PREROLL flag.

+
+ + ms699832 + IMFMediaSinkPreroll + IMFMediaSinkPreroll +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Notifies the media sink that the presentation clock is about to start.

+
+

The upcoming start time for the presentation clock, in 100-nanosecond units. This time is the same value that will be given to the method when the presentation clock is started.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

After this method is called, the media sink sends any number of events to request samples, until is has enough preroll data. When it has enough preroll data, the media sink sends an event. This event signals that the client can start the presentation clock.

During preroll, the media sink can prepare the samples that it receives, so that they are ready to be rendered. It does not actually render any samples until the clock starts.

+
+ + ms703799 + HRESULT IMFMediaSinkPreroll::NotifyPreroll([In] longlong hnsUpcomingStartTime) + IMFMediaSinkPreroll::NotifyPreroll +
+ + +

Implemented by media source objects.

Media sources are objects that generate media data. For example, the data might come from a video file, a network stream, or a hardware device, such as a camera. Each media source contains one or more streams, and each stream delivers data of one type, such as audio or video.

+
+ +

In Windows?8, this interface is extended with IMFMediaSourceEx.

+
+ + ms700189 + IMFMediaSource + IMFMediaSource +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the characteristics of the media source.

+
+

Receives a bitwise OR of zero or more flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media source's Shutdown method has been called.

?

+ +

The characteristics of a media source can change at any time. If this happens, the source sends an event.

+
+ + ms703148 + HRESULT IMFMediaSource::GetCharacteristics([Out] unsigned int* pdwCharacteristics) + IMFMediaSource::GetCharacteristics +
+ + +

Retrieves a copy of the media source's presentation descriptor. Applications use the presentation descriptor to select streams and to get information about the source content.

+
+

Receives a reference to the presentation descriptor's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media source's Shutdown method has been called.

?

+ +

The presentation descriptor contains the media source's default settings for the presentation. The application can change these settings by selecting or deselecting streams, or by changing the media type on a stream. Do not modify the presentation descriptor unless the source is stopped. The changes take affect when the source's method is called.

+
+ + ms702261 + HRESULT IMFMediaSource::CreatePresentationDescriptor([Out] IMFPresentationDescriptor** ppPresentationDescriptor) + IMFMediaSource::CreatePresentationDescriptor +
+ + +

Starts, seeks, or restarts the media source by specifying where to start playback.

+
+

Pointer to the interface of the media source's presentation descriptor. To get the presentation descriptor, call . You can modify the presentation descriptor before calling Start, to select or deselect streams or change the media types.

+

Pointer to a that specifies the time format. The time format defines the units for the pvarStartPosition parameter. If the value is GUID_NULL, the time format is 100-nanosecond units. Some media sources might support additional time format GUIDs. This parameter can be null. If the value is null, it is equalivent to GUID_NULL.

+

Specifies where to start playback. The units of this parameter are indicated by the time format given in pguidTimeFormat. If the time format is GUID_NULL, the variant type must be VT_I8 or VT_EMPTY. Use VT_I8 to specify a new starting position, in 100-nanosecond units. Use VT_EMPTY to start from the current position. Other time formats might use other types.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The start position is past the end of the presentation (ASF media source).

A hardware device was unable to start streaming. This error code can be returned by a media source that represents a hardware device, such as a camera. For example, if the camera is already being used by another application, the method might return this error code.

The start request is not valid. For example, the start position is past the end of the presentation.

The media source's Shutdown method has been called.

The media source does not support the time format specified in pguidTimeFormat.

?

+ +

This method is asynchronous. If the operation succeeds, the media source sends the following events:

  • For each new stream, the source sends an event. This event is sent for the first Start call in which the stream appears. The event data is a reference to the stream's interface.
  • For each updated stream, the source sends an event. A stream is updated if the stream already existed when Start was called (for example, if the application seeks during playback). The event data is a reference to the stream's interface.
  • If the previous state was stopped, the source sends an event.
  • If the previous state was started or paused and the starting position is the current position (VT_EMPTY), the source sends an event.
  • If the previous state was started or paused, and a new starting position is specified, the source sends an event.
  • If the source sends an event, each media stream sends an event. If the source sends an event, each stream sends an event.

If the start operation fails asynchronously (after the method returns ), the media source sends an event that contains a failure code, without sending any of the other events listed here. If the method fails synchronously (returns an error code), no events are raised.

A call to Start results in a seek if the previous state was started or paused, and the new starting position is not VT_EMPTY. Not every media source can seek. If a media source can seek, the method returns the flag.

Events from the media source are not synchronized with events from the media streams. If you seek a media source, therefore, you can still receive samples from the earlier position after getting the event. If you need to synchronize the operations, wait for the stream event, , which marks the exact point in the stream where the seek occurs.

+
+ + ms694101 + HRESULT IMFMediaSource::Start([In, Optional] IMFPresentationDescriptor* pPresentationDescriptor,[In, Optional] const GUID* pguidTimeFormat,[In, Optional] const PROPVARIANT* pvarStartPosition) + IMFMediaSource::Start +
+ + +

Stops all active streams in the media source.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media source's Shutdown method has been called.

?

+ +

This method is asynchronous. When the operation completes, the media source sends and event, and every active stream sends an event. If the method returns a failure code, no events are raised.

When a media source is stopped, its current position reverts to zero. After that, if the Start method is called with VT_EMPTY for the starting position, playback starts from the beginning of the presentation.

While the source is stopped, no streams produce data.

+
+ + ms702045 + HRESULT IMFMediaSource::Stop() + IMFMediaSource::Stop +
+ + +

Pauses all active streams in the media source.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid state transition. The media source must be in the started state.

The media source's Shutdown method has been called.

?

+ +

This method is asynchronous. When the operation completes, the media source sends and event, and every active stream sends an event. If the method returns a failure code, no events are raised.

The media source must be in the started state. The method fails if the media source is paused or stopped.

While the source is paused, calls to succeed, but the streams will not deliver any samples until after the source is started again. Note that the source's event queue is not serialized with the stream event queues, so the client might receive some samples after the event, due to multi-threading issues. But the client will not receive any samples from a stream after the event.

Not every media source can pause. If a media source can pause, the method returns the flag.

+
+ + ms694275 + HRESULT IMFMediaSource::Pause() + IMFMediaSource::Pause +
+ + +

Shuts down the media source and releases the resources it is using.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the application creates the media source, either directly or through the source resolver, the application is responsible for calling Shutdown to avoid memory or resource leaks.

After this method is called, methods on the media source and all of its media streams return (except for methods).

+
+ + ms703110 + HRESULT IMFMediaSource::Shutdown() + IMFMediaSource::Shutdown +
+ + +

Retrieves the characteristics of the media source.

+
+ +

The characteristics of a media source can change at any time. If this happens, the source sends an event.

+
+ + ms703148 + GetCharacteristics + GetCharacteristics + HRESULT IMFMediaSource::GetCharacteristics([Out] unsigned int* pdwCharacteristics) +
+ + +

Notifies the source when playback has reached the end of a segment. For timelines, this corresponds to reaching a mark-out point.

+
+ + ms705639 + IMFMediaSourcePresentationProvider + IMFMediaSourcePresentationProvider +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Notifies the source when playback has reached the end of a segment. For timelines, this corresponds to reaching a mark-out point.

+
+

Pointer to the interface of the presentation descriptor for the segment that has ended.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms705639 + HRESULT IMFMediaSourcePresentationProvider::ForceEndOfPresentation([In, Optional] IMFPresentationDescriptor* pPresentationDescriptor) + IMFMediaSourcePresentationProvider::ForceEndOfPresentation +
+ + +

Enables an application to get a topology from the sequencer source. This interface is exposed by the sequencer source object.

+
+ + ms699013 + IMFMediaSourceTopologyProvider + IMFMediaSourceTopologyProvider +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns a topology for a media source that builds an internal topology.

+
+

A reference to the interface of the media source's presentation descriptor. To get this reference, either call on the media source, or get the reference from the event.

+

Receives a reference to the topology's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument. For example, a null input parameter, or the presentation descriptor is not valid.

?

+ + bb970383 + HRESULT IMFMediaSourceTopologyProvider::GetMediaSourceTopology([In, Optional] IMFPresentationDescriptor* pPresentationDescriptor,[Out] IMFTopology** ppTopology) + IMFMediaSourceTopologyProvider::GetMediaSourceTopology +
+ + +

Represents one stream in a media source.

+
+ +

Streams are created when a media source is started. For each stream, the media source sends an event with a reference to the stream's interface.

+
+ + ms697561 + IMFMediaStream + IMFMediaStream +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a reference to the media source that created this media stream.

+
+

Receives a reference to the interface of the media source. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media source's Shutdown method has been called.

?

+ + ms705668 + HRESULT IMFMediaStream::GetMediaSource([Out] IMFMediaSource** ppMediaSource) + IMFMediaStream::GetMediaSource +
+ + +

Retrieves a stream descriptor for this media stream.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media source's Shutdown method has been called.

?

+ +

Do not modify the stream descriptor. To change the presentation, call and modify the presentation descriptor.

+
+ + ms697244 + HRESULT IMFMediaStream::GetStreamDescriptor([Out] IMFStreamDescriptor** ppStreamDescriptor) + IMFMediaStream::GetStreamDescriptor +
+ + +

Requests a sample from the media source.

+
+

Pointer to the interface to an object that is used as a token for the request. The caller must implement this object. This parameter can be null. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The end of the stream was reached.

The media source is stopped.

The source's Shutdown method has been called.

?

+ +

If pToken is not null, the media stream calls AddRef on pToken and places the token in a first-in, first-out queue.

When the next sample is available, the media stream stream does the following:

  1. Pulls the first token from the queue.
  2. Sets the attribute on the media sample. The attribute data is a reference to the token object.
  3. Sends an event. The event data is a reference to the media sample's interface.
  4. Calls Release on the token.

If the media stream cannot fulfill the caller's request for a sample, it simply releases the token object and skips steps 2 and 3.

The caller should monitor the reference count on the request token. If the media stream sends an event, get the attribute from the sample and match the attribute value against the token. If the token's reference count falls to zero and you did not receive an event, it means that the request was dropped.

Because the Media Foundation pipeline is multithreaded, the source's RequestSample method might get called after the source has stopped. If the media source is stopped, the method should return . The pipeline does not treat this return code as an error condition. If the source returns any other error code, the pipeline treats it as fatal error and halts the session.

Note??Earlier versions of the documentation listed the wrong error code for this case.

If the media source is paused, the method succeeds, but the stream does not deliver the sample until the source is started again.

If a media source enounters an error asynchronously while processing data, it should signal the error in one of the following ways (but not both):

  • Return an error code from the next RequestSample call.
  • Send an event.
+
+ + ms696240 + HRESULT IMFMediaStream::RequestSample([In] IUnknown* pToken) + IMFMediaStream::RequestSample +
+ + +

Retrieves a reference to the media source that created this media stream.

+
+ + ms705668 + GetMediaSource + GetMediaSource + HRESULT IMFMediaStream::GetMediaSource([Out] IMFMediaSource** ppMediaSource) +
+ + +

Retrieves a stream descriptor for this media stream.

+
+ +

Do not modify the stream descriptor. To change the presentation, call and modify the presentation descriptor.

+
+ + ms697244 + GetStreamDescriptor + GetStreamDescriptor + HRESULT IMFMediaStream::GetStreamDescriptor([Out] IMFStreamDescriptor** ppStreamDescriptor) +
+ + +

Sets the object's media type.

+
+ +

For media sources, setting the media type means the source will generate data that conforms to that media type. For media sinks, setting the media type means the sink can receive data that conforms to that media type.

Any implementation of this method should check whether pMediaType differs from the object's current media type. If the types are identical, the method should return but avoid releasing and recreating resources unnecessarily. If the types are not identical, the method should validate the new type.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970432 + IMFMediaTypeHandler + IMFMediaTypeHandler +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Queries whether the object supports a specified media type.

+
+

Pointer to the interface of the media type to check.

+

Receives a reference to the interface of the closest matching media type, or receives the value null. If non-null, the caller must release the interface. This parameter can be null. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object does not support this media type.

?

+ +

If the object supports the media type given in pMediaType, the method returns . For a media source, it means the source can generate data that conforms to that media type. For a media sink, it means the sink can receive data that conforms to that media type. If the object does not support the media type, the method fails.

The ppMediaType parameter is optional. If the method fails, the object might use ppMediaType to return a media type that the object does support, and which closely matches the one given in pMediaType. The method is not guaranteed to return a media type in ppMediaType. If no type is returned, this parameter receives a null reference. If the method succeeds, this parameter receives a null reference. If the caller sets ppMediaType to null, this parameter is ignored.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with SP2 and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970559 + HRESULT IMFMediaTypeHandler::IsMediaTypeSupported([In] IMFMediaType* pMediaType,[Out] IMFMediaType** ppMediaType) + IMFMediaTypeHandler::IsMediaTypeSupported +
+ + +

Retrieves the number of media types in the object's list of supported media types.

+
+

Receives the number of media types in the list.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To get the supported media types, call .

For a media source, the media type handler for each stream must contain at least one supported media type. For media sinks, the media type handler for each stream might contain zero media types. In that case, the application must provide the media type. To test whether a particular media type is supported, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970517 + HRESULT IMFMediaTypeHandler::GetMediaTypeCount([Out] unsigned int* pdwTypeCount) + IMFMediaTypeHandler::GetMediaTypeCount +
+ + +

Retrieves a media type from the object's list of supported media types.

+
+

Zero-based index of the media type to retrieve. To get the number of media types in the list, call .

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The dwIndex parameter is out of range.

?

+ +

Media types are returned in the approximate order of preference. The list of supported types is not guaranteed to be complete. To test whether a particular media type is supported, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970473 + HRESULT IMFMediaTypeHandler::GetMediaTypeByIndex([In] unsigned int dwIndex,[Out] IMFMediaType** ppType) + IMFMediaTypeHandler::GetMediaTypeByIndex +
+ + +

Sets the object's media type.

+
+

Pointer to the interface of the new media type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid request.

?

+ +

For media sources, setting the media type means the source will generate data that conforms to that media type. For media sinks, setting the media type means the sink can receive data that conforms to that media type.

Any implementation of this method should check whether pMediaType differs from the object's current media type. If the types are identical, the method should return but avoid releasing and recreating resources unnecessarily. If the types are not identical, the method should validate the new type.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970432 + HRESULT IMFMediaTypeHandler::SetCurrentMediaType([In] IMFMediaType* pMediaType) + IMFMediaTypeHandler::SetCurrentMediaType +
+ + +

Retrieves the current media type of the object.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No media type is set.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970492 + HRESULT IMFMediaTypeHandler::GetCurrentMediaType([Out] IMFMediaType** ppMediaType) + IMFMediaTypeHandler::GetCurrentMediaType +
+ + +

Gets the major media type of the object.

+
+

Receives a that identifies the major type. For a list of possible values, see Major Media Types.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The major type identifies what kind of data is in the stream, such as audio or video. To get the specific details of the format, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970337 + HRESULT IMFMediaTypeHandler::GetMajorType([Out] GUID* pguidMajorType) + IMFMediaTypeHandler::GetMajorType +
+ + +

Retrieves the number of media types in the object's list of supported media types.

+
+ +

To get the supported media types, call .

For a media source, the media type handler for each stream must contain at least one supported media type. For media sinks, the media type handler for each stream might contain zero media types. In that case, the application must provide the media type. To test whether a particular media type is supported, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970517 + GetMediaTypeCount + GetMediaTypeCount + HRESULT IMFMediaTypeHandler::GetMediaTypeCount([Out] unsigned int* pdwTypeCount) +
+ + +

Retrieves the current media type of the object.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970492 + GetCurrentMediaType / SetCurrentMediaType + GetCurrentMediaType + HRESULT IMFMediaTypeHandler::GetCurrentMediaType([Out] IMFMediaType** ppMediaType) +
+ + +

Gets the major media type of the object.

+
+ +

The major type identifies what kind of data is in the stream, such as audio or video. To get the specific details of the format, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + bb970337 + GetMajorType + GetMajorType + HRESULT IMFMediaTypeHandler::GetMajorType([Out] GUID* pguidMajorType) +
+ + +

Manages metadata for an object. Metadata is information that describes a media file, stream, or other content. Metadata consists of individual properties, where each property contains a descriptive name and a value. A property may be associated with a particular language.

To get this interface from a media source, use the interface.

+
+ + ms696970 + IMFMetadata + IMFMetadata +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the language for setting and retrieving metadata.

+
+

Pointer to a null-terminated string containing an RFC 1766-compliant language tag.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For more information about language tags, see RFC 1766, "Tags for the Identification of Languages".

+
+ + ms703982 + HRESULT IMFMetadata::SetLanguage([In] const wchar_t* pwszRFC1766) + IMFMetadata::SetLanguage +
+ + +

Gets the current language setting.

+
+

Receives a reference to a null-terminated string containing an RFC 1766-compliant language tag. The caller must release the string by calling CoTaskMemFree.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The metadata provider does not support multiple languages.

No language was set.

?

+ +

For more information about language tags, see RFC 1766, "Tags for the Identification of Languages."

The and methods set and get metadata for the current language setting.

+
+ + ms698978 + HRESULT IMFMetadata::GetLanguage([Out] wchar_t** ppwszRFC1766) + IMFMetadata::GetLanguage +
+ + +

Gets a list of the languages in which metadata is available.

+
+

A reference to a that receives the list of languages. The list is returned as an array of null-terminated wide-character strings. Each string in the array is an RFC 1766-compliant language tag.

The returned type is VT_VECTOR | VT_LPWSTR. The list might be empty, if no language tags are present. The caller must free the by calling PropVariantClear.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For more information about language tags, see RFC 1766, "Tags for the Identification of Languages".

To set the current language, call .

+
+ + ms698736 + HRESULT IMFMetadata::GetAllLanguages([Out] PROPVARIANT* ppvLanguages) + IMFMetadata::GetAllLanguages +
+ + +

Sets the value of a metadata property.

+
+

Pointer to a null-terminated string containing the name of the property.

+

Pointer to a that contains the value of the property. For multivalued properties, use a with a VT_VECTOR type.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms696972 + HRESULT IMFMetadata::SetProperty([In] const wchar_t* pwszName,[In] const PROPVARIANT* ppvValue) + IMFMetadata::SetProperty +
+ + +

Gets the value of a metadata property.

+
+

A reference to a null-terminated string that containings the name of the property. To get the list of property names, call .

+

Pointer to a that receives the value of the property. The type depends on the property. For multivalued properties, the is a VT_VECTOR type. The caller must free the by calling PropVariantClear.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The requested property was not found.

?

+ + ms694844 + HRESULT IMFMetadata::GetProperty([In] const wchar_t* pwszName,[Out] PROPVARIANT* ppvValue) + IMFMetadata::GetProperty +
+ + +

Deletes a metadata property.

+
+

Pointer to a null-terminated string containing the name of the property.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The property was not found.

?

+ +

For a media source, deleting a property from the metadata collection does not change the original content.

+
+ + ms699021 + HRESULT IMFMetadata::DeleteProperty([In] const wchar_t* pwszName) + IMFMetadata::DeleteProperty +
+ + +

Gets a list of all the metadata property names on this object.

+
+

Pointer to a that receives an array of null-terminated wide-character strings. If no properties are available, the type is VT_EMPTY. Otherwise, the type is VT_VECTOR | VT_LPWSTR. The caller must free the by calling PropVariantClear.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms704581 + HRESULT IMFMetadata::GetAllPropertyNames([Out] PROPVARIANT* ppvNames) + IMFMetadata::GetAllPropertyNames +
+ + +

Gets a list of the languages in which metadata is available.

+
+ +

For more information about language tags, see RFC 1766, "Tags for the Identification of Languages".

To set the current language, call .

+
+ + ms698736 + GetAllLanguages + GetAllLanguages + HRESULT IMFMetadata::GetAllLanguages([Out] PROPVARIANT* ppvLanguages) +
+ + +

Gets a list of all the metadata property names on this object.

+
+ + ms704581 + GetAllPropertyNames + GetAllPropertyNames + HRESULT IMFMetadata::GetAllPropertyNames([Out] PROPVARIANT* ppvNames) +
+ + +

Gets metadata from a media source or other object.

If a media source supports this interface, it must expose the interface as a service. To get a reference to this interface from a media source, call . The service identifier is . Other types of object can expose this interface through QueryInterface.

Use this interface to get a reference to the interface.

+
+ + ms705606 + IMFMetadataProvider + IMFMetadataProvider +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets a collection of metadata, either for an entire presentation, or for one stream in the presentation.

+
+

Pointer to the interface of the media source's presentation descriptor.

+

If this parameter is zero, the method retrieves metadata that applies to the entire presentation. Otherwise, this parameter specifies a stream identifier, and the method retrieves metadata for that stream. To get the stream identifier for a stream, call .

+

Reserved. Must be zero.

+

Receives a reference to the interface. Use this interface to access the metadata. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No metadata is available for the requested stream or presentation.

?

+ + ms694097 + HRESULT IMFMetadataProvider::GetMFMetadata([In, Optional] IMFPresentationDescriptor* pPresentationDescriptor,[In] unsigned int dwStreamIdentifier,[In] unsigned int dwFlags,[Out] IMFMetadata** ppMFMetadata) + IMFMetadataProvider::GetMFMetadata +
+ + +

Contains data that is needed to implement the interface.

+
+ +

Any custom implementation of the interface must inherit this structure. For more information, see Custom Asynchronous Result Objects.

+
+ + aa379769 + MFASYNCRESULT + MFASYNCRESULT +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets and retrieves user-name and password information for authentication purposes.

+
+ + ms703848 + IMFNetCredential + IMFNetCredential +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the user name.

+
+

Pointer to a buffer that contains the user name. If fDataIsEncrypted is , the buffer is a wide-character string. Otherwise, the buffer contains encrypted data.

+

Size of pbData, in bytes. If fDataIsEncrypted is , the size includes the terminating null character.

+

If TRUE, the user name is encrypted. Otherwise, the user name is not encrypted.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms693551 + HRESULT IMFNetCredential::SetUser([In, Buffer] unsigned char* pbData,[In] unsigned int cbData,[In] BOOL fDataIsEncrypted) + IMFNetCredential::SetUser +
+ + +

Sets the password.

+
+

Pointer to a buffer that contains the password. If fDataIsEncrypted is , the buffer is a wide-character string. Otherwise, the buffer contains encrypted data.

+

Size of pbData, in bytes. If fDataIsEncrypted is , the size includes the terminating null character.

+

If TRUE, the password is encrypted. Otherwise, the password is not encrypted.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms699838 + HRESULT IMFNetCredential::SetPassword([In, Buffer] unsigned char* pbData,[In] unsigned int cbData,[In] BOOL fDataIsEncrypted) + IMFNetCredential::SetPassword +
+ + +

Retrieves the user name.

+
+

Pointer to a buffer that receives the user name. To find the required buffer size, set this parameter to null. If fEncryptData is , the buffer contains a wide-character string. Otherwise, the buffer contains encrypted data.

+

On input, specifies the size of the pbData buffer, in bytes. On output, receives the required buffer size. If fEncryptData is , the size includes the terminating null character.

+

If TRUE, the method returns an encrypted string. Otherwise, the method returns an unencrypted string.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the user name is not available, the method might succeed and set *pcbData to zero.

+
+ + ms694290 + HRESULT IMFNetCredential::GetUser([Out, Buffer, Optional] unsigned char* pbData,[InOut] unsigned int* pcbData,[In] BOOL fEncryptData) + IMFNetCredential::GetUser +
+ + +

Retrieves the password.

+
+

Pointer to a buffer that receives the password. To find the required buffer size, set this parameter to null. If fEncryptData is , the buffer contains a wide-character string. Otherwise, the buffer contains encrypted data.

+

On input, specifies the size of the pbData buffer, in bytes. On output, receives the required buffer size. If fEncryptData is , the size includes the terminating null character.

+

If TRUE, the method returns an encrypted string. Otherwise, the method returns an unencrypted string.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the password is not available, the method might succeed and set *pcbData to zero.

+
+ + ms702055 + HRESULT IMFNetCredential::GetPassword([Out, Buffer, Optional] unsigned char* pbData,[InOut] unsigned int* pcbData,[In] BOOL fEncryptData) + IMFNetCredential::GetPassword +
+ + +

Queries whether logged-on credentials should be used.

+
+

Receives a Boolean value. If logged-on credentials should be used, the value is TRUE. Otherwise, the value is .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms698960 + HRESULT IMFNetCredential::LoggedOnUser([Out] BOOL* pfLoggedOnUser) + IMFNetCredential::LoggedOnUser +
+ + +

Gets credentials from the credential cache.

This interface is implemented by the credential cache object. Applications that implement the interface can use this object to store the user's credentials. To create the credential cache object, call .

+
+ + ms703796 + IMFNetCredentialCache + IMFNetCredentialCache +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the credential object for the specified URL.

+
+

A null-terminated wide-character string containing the URL for which the credential is needed.

+

A null-terminated wide-character string containing the realm for the authentication.

+

Bitwise OR of zero or more flags from the enumeration.

+

Receives a reference to the interface. The caller must release the interface.

+

Receives a bitwise OR of zero or more flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms699842 + HRESULT IMFNetCredentialCache::GetCredential([In] const wchar_t* pszUrl,[In] const wchar_t* pszRealm,[In] unsigned int dwAuthenticationFlags,[Out] IMFNetCredential** ppCred,[Out] unsigned int* pdwRequirementsFlags) + IMFNetCredentialCache::GetCredential +
+ + +

Reports whether the credential object provided successfully passed the authentication challenge.

+
+

Pointer to the interface.

+

TRUE if the credential object succeeded in the authentication challenge; otherwise, .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is called by the network source into the credential manager.

+
+ + ms704649 + HRESULT IMFNetCredentialCache::SetGood([In] IMFNetCredential* pCred,[In] BOOL fGood) + IMFNetCredentialCache::SetGood +
+ + +

Specifies how user credentials are stored.

+
+

Pointer to the interface. Obtain this reference by calling .

+

Bitwise OR of zero or more flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If no flags are specified, the credentials are cached in memory. This method can be implemented by the credential manager and called by the network source.

+
+ + ms693547 + HRESULT IMFNetCredentialCache::SetUserOptions([In] IMFNetCredential* pCred,[In] unsigned int dwOptionsFlags) + IMFNetCredentialCache::SetUserOptions +
+ + +

Implemented by applications to provide user credentials for a network source.

To use this interface, implement it in your application. Then create a property store object and set the MFNETSOURCE_CREDENTIAL_MANAGER property. The value of the property is a reference to your application's interface. Then pass the property store to one of the source resolver's creation functions, such as , in the pProps parameter.

Media Foundation does not provide a default implementation of this interface. Applications that support authentication must implement this interface.

+
+ + ms693499 + IMFNetCredentialManager + IMFNetCredentialManager +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Begins an asynchronous request to retrieve the user's credentials.

+
+

Pointer to an structure.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms705663 + HRESULT IMFNetCredentialManager::BeginGetCredentials([In] MFNetCredentialManagerGetParam* pParam,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFNetCredentialManager::BeginGetCredentials +
+ + +

Completes an asynchronous request to retrieve the user's credentials.

+
+

Pointer to an interface that contains the asynchronous result.

+

Receives a reference to the interface, which is used to retrieve the credentials. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701589 + HRESULT IMFNetCredentialManager::EndGetCredentials([In] IMFAsyncResult* pResult,[Out] IMFNetCredential** ppCred) + IMFNetCredentialManager::EndGetCredentials +
+ + +

Specifies whether the user's credentials succeeded in the authentication challenge. The network source calls this method to informs the application whether the user's credentials were authenticated.

+
+

Pointer to the interface.

+

Boolean value. The value is TRUE if the credentials succeeded in the authentication challenge. Otherwise, the value is .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms705614 + HRESULT IMFNetCredentialManager::SetGood([In] IMFNetCredential* pCred,[In] BOOL fGood) + IMFNetCredentialManager::SetGood +
+ + +

Determines the proxy to use when connecting to a server. The network source uses this interface.

Applications can create the proxy locator configured by the application by implementing the interface and setting the MFNETSOURCE_PROXYLOCATORFACTORY property on the source resolver. Otherwise, the network source uses the default Media Foundation implementation.

To create the default proxy locator, call .

+
+ + ms695417 + IMFNetProxyLocator + IMFNetProxyLocator +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Initializes the proxy locator object.

+
+

Null-terminated wide-character string containing the hostname of the destination server.

+

Null-terminated wide-character string containing the destination URL.

+

Reserved. Set to .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697016 + HRESULT IMFNetProxyLocator::FindFirstProxy([In] const wchar_t* pszHost,[In] const wchar_t* pszUrl,[In] BOOL fReserved) + IMFNetProxyLocator::FindFirstProxy +
+ + +

Determines the next proxy to use.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

S_FALSE

There are no more proxy objects.

?

+ + ms700807 + HRESULT IMFNetProxyLocator::FindNextProxy() + IMFNetProxyLocator::FindNextProxy +
+ + +

Keeps a record of the success or failure of using the current proxy.

+
+

specifying the result of using the current proxy for connection.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696180 + HRESULT IMFNetProxyLocator::RegisterProxyResult([In] HRESULT hrOp) + IMFNetProxyLocator::RegisterProxyResult +
+ + +

Retrieves the current proxy information including hostname and port.

+
+

Pointer to a buffer that receives a null-terminated string containing the proxy hostname and port. This parameter can be null.

+

On input, specifies the number of elements in the pszStr array. On output, receives the required size of the buffer.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOT_SUFFICIENT_BUFFER

The buffer specified in pszStr is too small.

?

+ + ms697327 + HRESULT IMFNetProxyLocator::GetCurrentProxy([Out, Buffer, Optional] wchar_t* pszStr,[In] unsigned int* pcchStr) + IMFNetProxyLocator::GetCurrentProxy +
+ + +

Creates a new instance of the default proxy locator.

+
+

Receives a reference to the new proxy locator object's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697210 + HRESULT IMFNetProxyLocator::Clone([In] IMFNetProxyLocator** ppProxyLocator) + IMFNetProxyLocator::Clone +
+ + +

Creates a proxy locator object, which determines the proxy to use.

The network source uses this interface to create the proxy locator object. Applications can provide their own implementation of this interface by setting the MFNETSOURCE_PROXYLOCATORFACTORY property. on the source resolver. If the application does not set this property, the network source uses the default proxy locator provided by Media Foundation.

+
+ + ms698907 + IMFNetProxyLocatorFactory + IMFNetProxyLocatorFactory +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates an interface proxy locator object based on the protocol name.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms694154 + HRESULT IMFNetProxyLocatorFactory::CreateProxyLocator([In] const wchar_t* pszProtocol,[Out] IMFNetProxyLocator** ppProxyLocator) + IMFNetProxyLocatorFactory::CreateProxyLocator +
+ + +

Retrieves a supported protocol by index

+
+ + ms697058 + IMFNetSchemeHandlerConfig + IMFNetSchemeHandlerConfig +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of protocols supported by the network scheme plug-in.

+
+

Receives the number of protocols.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701625 + HRESULT IMFNetSchemeHandlerConfig::GetNumberOfSupportedProtocols([Out] unsigned int* pcProtocols) + IMFNetSchemeHandlerConfig::GetNumberOfSupportedProtocols +
+ + +

Retrieves a supported protocol by index

+
+

Zero-based index of the protocol to retrieve. To get the number of supported protocols, call .

+

Receives a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The value passed in the nProtocolIndex parameter was greater than the total number of supported protocols, returned by GetNumberOfSupportedProtocols.

?

+ + ms697058 + HRESULT IMFNetSchemeHandlerConfig::GetSupportedProtocolType([In] unsigned int nProtocolIndex,[Out] MFNETSOURCE_PROTOCOL_TYPE* pnProtocolType) + IMFNetSchemeHandlerConfig::GetSupportedProtocolType +
+ + +

Not implemented in this release.

+
+

This method returns .

+ + ms705604 + HRESULT IMFNetSchemeHandlerConfig::ResetProtocolRolloverSettings() + IMFNetSchemeHandlerConfig::ResetProtocolRolloverSettings +
+ + +

Retrieves the number of protocols supported by the network scheme plug-in.

+
+ + ms701625 + GetNumberOfSupportedProtocols + GetNumberOfSupportedProtocols + HRESULT IMFNetSchemeHandlerConfig::GetNumberOfSupportedProtocols([Out] unsigned int* pcProtocols) +
+ + +

Stores the data needed to marshal an interface across a process boundary.

+
+ + ms698988 + IMFObjectReferenceStream + IMFObjectReferenceStream +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Stores the data needed to marshal an interface across a process boundary.

+
+

Interface identifier of the interface to marshal.

+

Pointer to the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms698988 + HRESULT IMFObjectReferenceStream::SaveReference([In] const GUID& riid,[In] IUnknown* pUnk) + IMFObjectReferenceStream::SaveReference +
+ + +

Marshals an interface from data stored in the stream.

+
+

Interface identifier of the interface to marshal.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms705636 + HRESULT IMFObjectReferenceStream::LoadReference([In] const GUID& riid,[In] void** ppv) + IMFObjectReferenceStream::LoadReference +
+ + +

Encapsulates a usage policy from an input trust authority (ITA). Output trust authorities (OTAs) use this interface to query which protection systems they are required to enforce by the ITA.

+
+ + ms698985 + IMFOutputPolicy + IMFOutputPolicy +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a list of the output protection systems that the output trust authority (OTA) must enforce, along with configuration data for each protection system.

+
+

Describes the output that is represented by the OTA calling this method. This value is a bitwise OR of zero or more of the following flags.

ValueMeaning
MFOUTPUTATTRIBUTE_BUS

Hardware bus.

MFOUTPUTATTRIBUTE_COMPRESSED

The output sends compressed data. If this flag is absent, the output sends uncompressed data.

MFOUTPUTATTRIBUTE_BUSIMPLEMENTATION

Reserved. Do not use.

MFOUTPUTATTRIBUTE_DIGITAL

The output sends a digital signal. If this flag is absent, the output sends an analog signal.

MFOUTPUTATTRIBUTE_NONSTANDARDIMPLEMENTATION

Reserved. Do not use.

MFOUTPUTATTRIBUTE_SOFTWARE

Reserved. Do not use.

MFOUTPUTATTRIBUTE_VIDEO

The output sends video data. If this flag is absent, the output sends audio data.

?

+

Indicates a specific family of output connectors that is represented by the OTA calling this method. Possible values include the following.

ValueMeaning
MFCONNECTOR_AGP

AGP bus.

MFCONNECTOR_COMPONENT

Component video.

MFCONNECTOR_COMPOSITE

Composite video.

MFCONNECTOR_D_JPN

Japanese D connector. (Connector conforming to the EIAJ RC-5237 standard.)

MFCONNECTOR_DISPLAYPORT_EMBEDDED

Embedded DisplayPort connector.

MFCONNECTOR_DISPLAYPORT_EXTERNAL

External DisplayPort connector.

MFCONNECTOR_DVI

Digital video interface (DVI) connector.

MFCONNECTOR_HDMI

High-definition multimedia interface (HDMI) connector.

MFCONNECTOR_LVDS

Low voltage differential signaling (LVDS) connector.

A connector using the LVDS interface to connect internally to a display device. The connection between the graphics adapter and the display device is permanent and not accessible to the user. Applications should not enable High-Bandwidth Digital Content Protection (HDCP) for this connector.

MFCONNECTOR_PCI

PCI bus.

MFCONNECTOR_PCI_Express

PCI Express bus.

MFCONNECTOR_PCIX

PCI-X bus.

MFCONNECTOR_SDI

Audio data sent over a connector via S/PDIF.

MFCONNECTOR_SPDIF

Serial digital interface connector.

MFCONNECTOR_SVIDEO

S-Video connector.

MFCONNECTOR_UDI_EMBEDDED

Embedded Unified Display Interface (UDI).

MFCONNECTOR_UDI_EXTERNAL

External UDI.

MFCONNECTOR_UNKNOWN

Unknown connector type. See Remarks.

MFCONNECTOR_VGA

VGA connector.

MFCONNECTOR_MIRACAST

Miracast wireless connector.

Supported in Windows?8.1 and later.

?

+

Pointer to an array of values that specify which output protection systems are supported by the OTA that is calling this method.

+

Number of elements in the rgGuidProtectionSchemasSupported array.

+

Receives a reference to the interface of a collection object. The caller must release the interface. Each object in the collection is an reference. Each reference defines an output protection system that the OTA must enforce.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The video OTA returns the MFCONNECTOR_UNKNOWN connector type unless the Direct3D device is in full-screen mode. (Direct3D windowed mode is not generally a secure video mode.) You can override this behavior by implementing a custom EVR presenter that implements the interface.

+
+ + bb970362 + HRESULT IMFOutputPolicy::GenerateRequiredSchemas([In] unsigned int dwAttributes,[In] GUID guidOutputSubType,[In] GUID* rgGuidProtectionSchemasSupported,[In] unsigned int cProtectionSchemasSupported,[Out] IMFCollection** ppRequiredProtectionSchemas) + IMFOutputPolicy::GenerateRequiredSchemas +
+ + +

Retrieives a identifying the input trust authority (ITA) that created this output policy object.

+
+

Receives a that identifies the originating ITA.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

All of the policy objects and output schemas from the same ITA should return the same originator identifier (including dynamic policy changes). This value enables the OTA to distinguish policies that originate from different ITAs, so that the OTA can update dynamic policies correctly.

+
+ + bb970379 + HRESULT IMFOutputPolicy::GetOriginatorID([Out] GUID* pguidOriginatorID) + IMFOutputPolicy::GetOriginatorID +
+ + +

Retrieves the minimum version of the global revocation list (GRL) that must be enforced by the protected environment for this policy.

+
+

Receives the minimum GRL version.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970389 + HRESULT IMFOutputPolicy::GetMinimumGRLVersion([Out] unsigned int* pdwMinimumGRLVersion) + IMFOutputPolicy::GetMinimumGRLVersion +
+ + +

Retrieives a identifying the input trust authority (ITA) that created this output policy object.

+
+ +

All of the policy objects and output schemas from the same ITA should return the same originator identifier (including dynamic policy changes). This value enables the OTA to distinguish policies that originate from different ITAs, so that the OTA can update dynamic policies correctly.

+
+ + bb970379 + GetOriginatorID + GetOriginatorID + HRESULT IMFOutputPolicy::GetOriginatorID([Out] GUID* pguidOriginatorID) +
+ + +

Retrieves the minimum version of the global revocation list (GRL) that must be enforced by the protected environment for this policy.

+
+ + bb970389 + GetMinimumGRLVersion + GetMinimumGRLVersion + HRESULT IMFOutputPolicy::GetMinimumGRLVersion([Out] unsigned int* pdwMinimumGRLVersion) +
+ + +

Encapsulates information about an output protection system and its corresponding configuration data.

+
+ +

If the configuration information for the output protection system does not require more than a DWORD of space, the configuration information is retrieved in the GetConfigurationData method. If more than a DWORD of configuration information is needed, it is stored using the interface.

+
+ + ms703800 + IMFOutputSchema + IMFOutputSchema +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the output protection system that is represented by this object. Output protection systems are identified by value.

+
+

Receives the that identifies the output protection system.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970414 + HRESULT IMFOutputSchema::GetSchemaType([Out] GUID* pguidSchemaType) + IMFOutputSchema::GetSchemaType +
+ + +

Returns configuration data for the output protection system. The configuration data is used to enable or disable the protection system, and to set the protection levels.

+
+

Receives the configuration data. The meaning of this data depends on the output protection system.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970364 + HRESULT IMFOutputSchema::GetConfigurationData([Out] unsigned int* pdwVal) + IMFOutputSchema::GetConfigurationData +
+ + +

Retrieves a identifying the input trust authority (ITA) that generated this output schema object.

+
+

Receives a that identifies the originating ITA.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

All of the policy objects and output schemas from the same ITA should return the same originator identifier (including dynamic policy changes). This value enables the OTA to distinguish policies that originate from different ITAs, so that the OTA can update dynamic policies correctly.

+
+ + bb970483 + HRESULT IMFOutputSchema::GetOriginatorID([Out] GUID* pguidOriginatorID) + IMFOutputSchema::GetOriginatorID +
+ + +

Retrieves the output protection system that is represented by this object. Output protection systems are identified by value.

+
+ + bb970414 + GetSchemaType + GetSchemaType + HRESULT IMFOutputSchema::GetSchemaType([Out] GUID* pguidSchemaType) +
+ + +

Returns configuration data for the output protection system. The configuration data is used to enable or disable the protection system, and to set the protection levels.

+
+ + bb970364 + GetConfigurationData + GetConfigurationData + HRESULT IMFOutputSchema::GetConfigurationData([Out] unsigned int* pdwVal) +
+ + +

Retrieves a identifying the input trust authority (ITA) that generated this output schema object.

+
+ +

All of the policy objects and output schemas from the same ITA should return the same originator identifier (including dynamic policy changes). This value enables the OTA to distinguish policies that originate from different ITAs, so that the OTA can update dynamic policies correctly.

+
+ + bb970483 + GetOriginatorID + GetOriginatorID + HRESULT IMFOutputSchema::GetOriginatorID([Out] GUID* pguidOriginatorID) +
+ + +

Encapsulates the functionality of one or more output protection systems that a trusted output supports. This interface is exposed by output trust authority (OTA) objects. Each OTA represents a single action that the trusted output can perform, such as play, copy, or transcode. An OTA can represent more than one physical output if each output performs the same action.

+
+ + ms695254 + IMFOutputTrustAuthority + IMFOutputTrustAuthority +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the action that is performed by this output trust authority (OTA).

+
+

Receives a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970410 + HRESULT IMFOutputTrustAuthority::GetAction([Out] MFPOLICYMANAGER_ACTION* pAction) + IMFOutputTrustAuthority::GetAction +
+ + +

Sets one or more policy objects on the output trust authority (OTA).

+
+

The address of an array of references.

+

The number of elements in the ppPolicy array.

+

Receives either a reference to a buffer allocated by the OTA, or the value null. If this parameter receives a non-null value, the caller must release the buffer by calling CoTaskMemFree.

Note??Currently this parameter is reserved. An OTA should set the reference to null.

+

Receives the size of the ppbTicket buffer, in bytes. If ppbTicket receives the value null, pcbTicket receives the value zero.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

MF_S_WAIT_FOR_POLICY_SET

The policy was negotiated successfully, but the OTA will enforce it asynchronously.

The OTA does not support the requirements of this policy.

?

+ +

If the method returns MF_S_WAIT_FOR_POLICY_SET, the OTA sends an event when it enforces the policy.

+
+ + bb970572 + HRESULT IMFOutputTrustAuthority::SetPolicy([In, Buffer, Optional] IMFOutputPolicy** ppPolicy,[In] unsigned int nPolicy,[Out, Buffer, Optional] unsigned char** ppbTicket,[Out, Optional] unsigned int* pcbTicket) + IMFOutputTrustAuthority::SetPolicy +
+ + +

Sets one or more policy objects on the output trust authority (OTA).

+
+

The address of an array of references.

+

The number of elements in the ppPolicy array.

+

Receives either a reference to a buffer allocated by the OTA, or the value null. If this parameter receives a non-null value, the caller must release the buffer by calling CoTaskMemFree.

Note??Currently this parameter is reserved. An OTA should set the reference to null.

+

Receives the size of the ppbTicket buffer, in bytes. If ppbTicket receives the value null, pcbTicket receives the value zero.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

MF_S_WAIT_FOR_POLICY_SET

The policy was negotiated successfully, but the OTA will enforce it asynchronously.

The OTA does not support the requirements of this policy.

?

+ +

If the method returns MF_S_WAIT_FOR_POLICY_SET, the OTA sends an event when it enforces the policy.

+
+ + bb970572 + HRESULT IMFOutputTrustAuthority::SetPolicy([In, Buffer, Optional] IMFOutputPolicy** ppPolicy,[In] unsigned int nPolicy,[Out, Buffer, Optional] unsigned char** ppbTicket,[Out, Optional] unsigned int* pcbTicket) + IMFOutputTrustAuthority::SetPolicy +
+ + +

Retrieves the action that is performed by this output trust authority (OTA).

+
+ + bb970410 + GetAction + GetAction + HRESULT IMFOutputTrustAuthority::GetAction([Out] MFPOLICYMANAGER_ACTION* pAction) +
+ + +

Controls how media sources and transforms are enumerated in Microsoft Media Foundation.

To get a reference to this interface, call .

+
+ +

Media Foundation provides a set of built-in media sources and decoders. Applications can enumerate them as follows:

  • Media sources are enumerated through the Source Resolver.
  • Transforms, such as decoders, are enumerated through the and functions.

Applications might also enumerate these objects indirectly. For example, if an application uses the topology loader to resolve a partial topology, the topology loader calls to find the required decoders.

Third parties can implement their own custom media sources and decoders, and register them for enumeration so that other applications can use them.

To control the enumeration order, Media Foundation maintains two process-wide lists of CLSIDs: a preferred list and a blocked list. An object whose CLSID appears in the preferred list appears first in the enumeration order. An object whose CLSID appears on the blocked list is not enumerated.

The lists are initially populated from the registry. Applications can use the interface to modify the lists for the current process.

The preferred list contains a set of key/value pairs, where the keys are strings and the values are CLSIDs. These key/value pairs are defined as follows:

  • For media sources, the key name is a file name extension, protocol scheme, or MIME type. The value is the CLSID of a scheme handler or byte-stream handler for that media source.
  • For decoders, the key name is a media subtype in canonical string form. (For more information about media subtypes, see Media Types.) The value is the CLSID of the Media Foundation transform (MFT) that implements the decoder.

The following examples show the various types of key:

  • File extension: ".wmv"
  • Scheme: "http:"
  • MIME type: "video/mp4"
  • Media subtype: "{47504A4D-0000-0010-8000-00AA00389B71}"

To search the preferred list by key name, call the method. To enumerate the entire list, call the method in a loop.

The blocked list contains a list of CLSIDs. To enumerate the entire list, call the method in a loop. To check whether a specific CLSID appears on the list, call the method.

+
+ + dd374302 + IMFPluginControl + IMFPluginControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Searches the preferred list for a class identifier (CLSID) that matches a specified key name.

+
+

Member of the enumeration, specifying the type of object.

+

The key name to match. For more information about the format of key names, see the Remarks section of .

+

Receives a CLSID from the preferred list.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

HRESULT_FROM_WIN32()

No CLSID matching this key was found.

?

+ + dd374304 + HRESULT IMFPluginControl::GetPreferredClsid([In] unsigned int pluginType,[In] const wchar_t* selector,[Out] GUID* clsid) + IMFPluginControl::GetPreferredClsid +
+ + +

Gets a class identifier (CLSID) from the preferred list, specified by index value.

+
+

Member of the enumeration, specifying the type of object to enumerate.

+

The zero-based index of the CLSID to retrieve.

+

Receives the key name associated with the CLSID. The caller must free the memory for the returned string by calling the CoTaskMemFree function. For more information about the format of key names, see the Remarks section of .

+

Receives the CLSID at the specified index.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

HRESULT_FROM_WIN32()

The index parameter is out of range.

?

+ + dd374305 + HRESULT IMFPluginControl::GetPreferredClsidByIndex([In] unsigned int pluginType,[In] unsigned int index,[Out] wchar_t** selector,[Out] GUID* clsid) + IMFPluginControl::GetPreferredClsidByIndex +
+ + +

Adds a class identifier (CLSID) to the preferred list or removes a CLSID from the list.

+
+

Member of the enumeration, specifying the type of object.

+

The key name for the CLSID. For more information about the format of key names, see the Remarks section of .

+

The CLSID to add to the list. If this parameter is null, the key/value entry specified by the selector parameter is removed from the list.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The preferred list is global to the caller's process. Calling this method does not affect the list in other process.

+
+ + dd374308 + HRESULT IMFPluginControl::SetPreferredClsid([In] unsigned int pluginType,[In] const wchar_t* selector,[In, Optional] const GUID* clsid) + IMFPluginControl::SetPreferredClsid +
+ + +

Queries whether a class identifier (CLSID) appears in the blocked list.

+
+

Member of the enumeration, specifying the type of object for the query.

+

The CLSID to search for.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The specified CLSID appears in the blocked list.

E_INVALIDARG

Invalid argument.

HRESULT_FROM_WIN32()

The specified CLSID is not in the blocked list.

?

+ + dd374306 + HRESULT IMFPluginControl::IsDisabled([In] unsigned int pluginType,[In] const GUID& clsid) + IMFPluginControl::IsDisabled +
+ + +

Gets a class identifier (CLSID) from the blocked list.

+
+

Member of the enumeration, specifying the type of object to enumerate.

+

The zero-based index of the CLSID to retrieve.

+

Receives the CLSID at the specified index.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

HRESULT_FROM_WIN32()

The index parameter is out of range.

?

+ + dd374303 + HRESULT IMFPluginControl::GetDisabledByIndex([In] unsigned int pluginType,[In] unsigned int index,[Out] GUID* clsid) + IMFPluginControl::GetDisabledByIndex +
+ + +

Adds a class identifier (CLSID) to the blocked list, or removes a CLSID from the list.

+
+

Member of the enumeration, specifying the type of object.

+

The CLSID to add or remove.

+

Specifies whether to add or remove the CSLID. If the value is TRUE, the method adds the CLSID to the blocked list. Otherwise, the method removes it from the list.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

?

+ +

The blocked list is global to the caller's process. Calling this method does not affect the list in other processes.

+
+ + dd374307 + HRESULT IMFPluginControl::SetDisabled([In] unsigned int pluginType,[In] const GUID& clsid,[In] BOOL disabled) + IMFPluginControl::SetDisabled +
+ + +

Note??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Represents a media item. A media item is an abstraction for a source of media data, such as a video file. Use this interface to get information about the source, or to change certain playback settings, such as the start and stop times. To get a reference to this interface, call one of the following methods:

+
+ + dd374309 + IMFPMediaItem + IMFPMediaItem +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets a reference to the MFPlay player object that created the media item.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374313 + HRESULT IMFPMediaItem::GetMediaPlayer([Out] IMFPMediaPlayer** ppMediaPlayer) + IMFPMediaItem::GetMediaPlayer +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the URL that was used to create the media item.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

MF_E_NOTFOUND

No URL is associated with this media item.

The method was called.

?

+ +

This method applies when the application calls to create a media item. If the application calls to create a media item, the GetURL method for that media item returns MF_E_NOTFOUND.

+
+ + dd374320 + HRESULT IMFPMediaItem::GetURL([Out] wchar_t** ppwszURL) + IMFPMediaItem::GetURL +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the object that was used to create the media item.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

MF_E_NOTFOUND

The media item was created from a URL, not from an object.

The method was called.

?

+ +

The object reference is set if the application uses to create the media item. Otherwise, GetObject returns MF_E_NOTFOUND.

+
+ + dd374315 + HRESULT IMFPMediaItem::GetObjectW([Out] IUnknown** ppIUnknown) + IMFPMediaItem::GetObjectW +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the application-defined value stored in the media item.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You can assign this value when you first create the media item, by specifying it in the dwUserData parameter of the or method. To update the value, call .

This method can be called after the player object is shut down.

+
+ + dd374321 + HRESULT IMFPMediaItem::GetUserData([Out] ULONG_PTR* pdwUserData) + IMFPMediaItem::GetUserData +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Stores an application-defined value in the media item.

+
+ No documentation. +

This method can return one of these values.

+ +

This method can be called after the player object is shut down.

+
+ + dd374328 + HRESULT IMFPMediaItem::SetUserData([In] ULONG_PTR dwUserData) + IMFPMediaItem::SetUserData +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the start and stop times for the media item.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The pguidStartPositionType and pguidStopPositionType parameters receive the units of time that are used. Currently, the only supported value is MFP_POSITIONTYPE_100NS.

ValueDescription
MFP_POSITIONTYPE_100NS100-nanosecond units. The time parameter (pvStartValue or pvStopValue) uses the following data type:
  • Variant type (vt): VT_I8
  • Variant member: hVal

?

+
+ + dd374317 + HRESULT IMFPMediaItem::GetStartStopPosition([Out, Optional] GUID* pguidStartPositionType,[Out, Optional] PROPVARIANT* pvStartValue,[Out, Optional] GUID* pguidStopPositionType,[Out, Optional] PROPVARIANT* pvStopValue) + IMFPMediaItem::GetStartStopPosition +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the start and stop time for the media item.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

Invalid start or stop time. Any of the following can cause this error:

  • Time less than zero.
  • Time greater than the total duration of the media item.
  • Stop time less than start time.

?

+ +

By default, a media item plays from the beginning to the end of the file. This method adjusts the start time and/or the stop time:

  • To set the start time, pass non-null values for pguidStartPositionType and pvStartValue.
  • To set the stop time, pass non-null values for pguidStopPositionType and pvStopValue.

The pguidStartPositionType and pguidStopPositionType parameters give the units of time that are used. Currently, the only supported value is MFP_POSITIONTYPE_100NS.

ValueDescription
MFP_POSITIONTYPE_100NS100-nanosecond units. The time parameter (pvStartValue or pvStopValue) uses the following data type:
  • Variant type (vt): VT_I8
  • Variant member: hVal

To clear a previously set time, use an empty (VT_EMPTY).

?

The adjusted start and stop times are used the next time that is called with this media item. If the media item is already set on the player, the change does not happen unless you call SetMediaItem again.

+
+ + dd374325 + HRESULT IMFPMediaItem::SetStartStopPosition([In, Optional] const GUID* pguidStartPositionType,[In, Optional] const PROPVARIANT* pvStartValue,[In, Optional] const GUID* pguidStopPositionType,[In, Optional] const PROPVARIANT* pvStopValue) + IMFPMediaItem::SetStartStopPosition +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether the media item contains a video stream.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To select or deselect streams before playback starts, call .

+
+ + dd374323 + HRESULT IMFPMediaItem::HasVideo([Out, Optional] BOOL* pfHasVideo,[Out, Optional] BOOL* pfSelected) + IMFPMediaItem::HasVideo +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether the media item contains an audio stream.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To select or deselect streams before playback starts, call .

+
+ + dd374322 + HRESULT IMFPMediaItem::HasAudio([Out, Optional] BOOL* pfHasAudio,[Out, Optional] BOOL* pfSelected) + IMFPMediaItem::HasAudio +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether the media item contains protected content.

Note??Currently does not support playing protected content.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374324 + HRESULT IMFPMediaItem::IsProtected([Out] BOOL* pfProtected) + IMFPMediaItem::IsProtected +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the duration of the media item.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The method returns the total duration of the content, regardless of any values set through .

+
+ + dd374312 + HRESULT IMFPMediaItem::GetDuration([In] const GUID& guidPositionType,[Out] PROPVARIANT* pvDurationValue) + IMFPMediaItem::GetDuration +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the number of streams (audio, video, and other) in the media item.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374314 + HRESULT IMFPMediaItem::GetNumberOfStreams([Out] unsigned int* pdwStreamCount) + IMFPMediaItem::GetNumberOfStreams +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether a stream is selected to play.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To select or deselect a stream, call .

+
+ + dd374319 + HRESULT IMFPMediaItem::GetStreamSelection([In] unsigned int dwStreamIndex,[Out] BOOL* pfEnabled) + IMFPMediaItem::GetStreamSelection +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Selects or deselects a stream.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You can use this method to change which streams are selected. The change goes into effect the next time that is called with this media item. If the media item is already set on the player, the change does not happen unless you call SetMediaItem again with this media item.

+
+ + dd374326 + HRESULT IMFPMediaItem::SetStreamSelection([In] unsigned int dwStreamIndex,[In] BOOL fEnabled) + IMFPMediaItem::SetStreamSelection +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries the media item for a stream attribute.

+
+ No documentation. + No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Stream attributes describe an individual stream (audio, video, or other) within the presentation. To get an attribute that applies to the entire presentation, call .

+
+ + dd374318 + HRESULT IMFPMediaItem::GetStreamAttribute([In] unsigned int dwStreamIndex,[In] const GUID& guidMFAttribute,[Out] PROPVARIANT* pvValue) + IMFPMediaItem::GetStreamAttribute +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries the media item for a presentation attribute.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Presentation attributes describe the presentation as a whole. To get an attribute that applies to an individual stream within the presentation, call .

+
+ + dd374316 + HRESULT IMFPMediaItem::GetPresentationAttribute([In] const GUID& guidMFAttribute,[Out] PROPVARIANT* pvValue) + IMFPMediaItem::GetPresentationAttribute +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets various flags that describe the media item.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374311 + HRESULT IMFPMediaItem::GetCharacteristics([Out] unsigned int* pCharacteristics) + IMFPMediaItem::GetCharacteristics +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets a media sink for the media item. A media sink is an object that consumes the data from one or more streams.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

By default, the MFPlay player object renders audio streams to the Streaming Audio Renderer (SAR) and video streams to the Enhanced Video Renderer (EVR). You can use the SetStreamSink method to provide a different media sink for an audio or video stream; or to support other stream types besides audio and video. You can also use it to configure the SAR or EVR before they are used.

Call this method before calling . Calling this method after SetMediaItem has no effect, unless you stop playback and call SetMediaItem again.

To reset the media item to use the default media sink, set pMediaSink to null.

+
+ + dd374327 + HRESULT IMFPMediaItem::SetStreamSink([In] unsigned int dwStreamIndex,[In, Optional] IUnknown* pMediaSink) + IMFPMediaItem::SetStreamSink +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets a property store that contains metadata for the source, such as author or title.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd798056 + HRESULT IMFPMediaItem::GetMetadata([Out] IPropertyStore** ppMetadataStore) + IMFPMediaItem::GetMetadata +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets a reference to the MFPlay player object that created the media item.

+
+ + dd374313 + GetMediaPlayer + GetMediaPlayer + HRESULT IMFPMediaItem::GetMediaPlayer([Out] IMFPMediaPlayer** ppMediaPlayer) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the object that was used to create the media item.

+
+ +

The object reference is set if the application uses to create the media item. Otherwise, GetObject returns MF_E_NOTFOUND.

+
+ + dd374315 + GetObjectW + GetObjectW + HRESULT IMFPMediaItem::GetObjectW([Out] IUnknown** ppIUnknown) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the application-defined value stored in the media item.

+
+ +

You can assign this value when you first create the media item, by specifying it in the dwUserData parameter of the or method. To update the value, call .

This method can be called after the player object is shut down.

+
+ + dd374321 + GetUserData / SetUserData + GetUserData + HRESULT IMFPMediaItem::GetUserData([Out] ULONG_PTR* pdwUserData) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether the media item contains protected content.

Note??Currently does not support playing protected content.

+
+ + dd374324 + IsProtected + IsProtected + HRESULT IMFPMediaItem::IsProtected([Out] BOOL* pfProtected) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the number of streams (audio, video, and other) in the media item.

+
+ + dd374314 + GetNumberOfStreams + GetNumberOfStreams + HRESULT IMFPMediaItem::GetNumberOfStreams([Out] unsigned int* pdwStreamCount) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets various flags that describe the media item.

+
+ + dd374311 + GetCharacteristics + GetCharacteristics + HRESULT IMFPMediaItem::GetCharacteristics([Out] unsigned int* pCharacteristics) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets a property store that contains metadata for the source, such as author or title.

+
+ + dd798056 + GetMetadata + GetMetadata + HRESULT IMFPMediaItem::GetMetadata([Out] IPropertyStore** ppMetadataStore) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Contains methods to play media files.

The MFPlay player object exposes this interface. To get a reference to this interface, call .

+
+ + dd374329 + IMFPMediaPlayer + IMFPMediaPlayer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Starts playback.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object's Shutdown method was called.

?

+ +

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

+
+ + dd374354 + HRESULT IMFPMediaPlayer::Play() + IMFPMediaPlayer::Play +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Pauses playback. While playback is paused, the most recent video frame is displayed, and audio is silent.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object's Shutdown method was called.

?

+ +

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

+
+ + dd374353 + HRESULT IMFPMediaPlayer::Pause() + IMFPMediaPlayer::Pause +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Stops playback.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object's Shutdown method was called.

?

+ +

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

The current media item is still valid. After playback stops, the playback position resets to the beginning of the current media item.

+
+ + dd374368 + HRESULT IMFPMediaPlayer::Stop() + IMFPMediaPlayer::Stop +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Steps forward one video frame.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Cannot frame step. Reasons for this error code include:

  • There is no media item queued for playback.
  • The current media item does not contain video.

The object's Shutdown method was called.

The media source does not support frame stepping, or the current playback rate is negative.

?

+ +

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

The player object does not support frame stepping during reverse playback (that is, while the playback rate is negative).

+
+ + dd374336 + HRESULT IMFPMediaPlayer::FrameStep() + IMFPMediaPlayer::FrameStep +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the playback position.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

HRESULT_FROM_WIN32( )

The value of pvPositionValue is not valid.

No media item has been queued.

The object's Shutdown method was called.

?

+ +

If you call this method while playback is stopped, the new position takes effect after playback resumes.

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

If playback was started before SetPosition is called, playback resumes at the new position. If playback was paused, the video is refreshed to display the current frame at the new position.

If you make two consecutive calls to SetPosition with guidPositionType equal to MFP_POSITIONTYPE_100NS, and the second call is made before the first call has completed, the second call supersedes the first. The status code for the superseded call is set to S_FALSE in the event data for that call. This behavior prevents excessive latency from repeated calls to SetPosition, as each call may force the media source to perform a relatively lengthy seek operation.

+
+ + dd374363 + HRESULT IMFPMediaPlayer::SetPosition([In] const GUID& guidPositionType,[In] const PROPVARIANT* pvPositionValue) + IMFPMediaPlayer::SetPosition +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current playback position.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

No media item has been queued.

The object's Shutdown method was called.

?

+ +

The playback position is calculated relative to the start time of the media item, which can be specified by calling . For example, if you set the start time to 20 seconds and the source duration is 60 seconds, the range of values returned by GetPosition is 0?40 seconds.

+
+ + dd374345 + HRESULT IMFPMediaPlayer::GetPosition([In] const GUID& guidPositionType,[Out] PROPVARIANT* pvPositionValue) + IMFPMediaPlayer::GetPosition +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the playback duration of the current media item.

+
+ No documentation. + No documentation. +

This method can return one of these values.

Return codeDescription

The method succeeded.

The media source does not have a duration. This error can occur with a live source, such as a video camera.

There is no current media item.

?

+ +

This method calculates the playback duration, taking into account the start and stop times for the media item. To set the start and stop times, call on the media item. To get the actual duration of the underlying media file, regardless of start and stop times, call .

For example, suppose that you load a 30-second audio file and set the start time equal to 2 seconds and stop time equal to 10 seconds. The method will return 30 seconds, but the method will return 8 seconds.

+
+ + dd374340 + HRESULT IMFPMediaPlayer::GetDuration([In] const GUID& guidPositionType,[Out] PROPVARIANT* pvDurationValue) + IMFPMediaPlayer::GetDuration +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the playback rate.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The flRate parameter is zero.

The object's Shutdown method was called.

?

+ +

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

The method sets the nearest supported rate, which will depend on the underlying media source. For example, if flRate is 50 and the source's maximum rate is 8? normal rate, the method will set the rate to 8.0. The actual rate is indicated in the event data for the event.

To find the range of supported rates, call .

This method does not support playback rates of zero, although Media Foundation defines a meaning for zero rates in some other contexts.

The new rate applies only to the current media item. Setting a new media item resets the playback rate to 1.0.

+
+ + dd374364 + HRESULT IMFPMediaPlayer::SetRate([In] float flRate) + IMFPMediaPlayer::SetRate +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current playback rate.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374346 + HRESULT IMFPMediaPlayer::GetRate([Out] float* pflRate) + IMFPMediaPlayer::GetRate +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the range of supported playback rates.

+
+ No documentation. + No documentation. + No documentation. +

This method can return one of these values.

Return codeDescription

The method succeeded.

The current media item does not support playback in the requested direction (either forward or reverse).

?

+ +

Playback rates are expressed as a ratio of the current rate to the normal rate. For example, 1.0 indicates normal playback speed, 0.5 indicates half speed, and 2.0 indicates twice speed. Positive values indicate forward playback, and negative values indicate reverse playback. +

+
+ + dd374348 + HRESULT IMFPMediaPlayer::GetSupportedRates([In] BOOL fForwardDirection,[Out] float* pflSlowestRate,[Out] float* pflFastestRate) + IMFPMediaPlayer::GetSupportedRates +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current playback state of the MFPlay player object.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method can be called after the player object has been shut down.

Many of the methods complete asynchronously. While an asynchronous operation is pending, the current state is not updated until the operation completes. When the operation completes, the application receives an event callback, and the new state is given in the structure that is passed to the callback.

+
+ + dd374347 + HRESULT IMFPMediaPlayer::GetState([Out] MFP_MEDIAPLAYER_STATE* peState) + IMFPMediaPlayer::GetState +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Creates a media item from a URL.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

Invalid request. This error can occur when fSync is and the application did not provide a callback interface. See Remarks.

The object's Shutdown method was called.

Unsupported protocol.

?

+ +

This method does not queue the media item for playback. To queue the item for playback, call .

The CreateMediaItemFromURL method can be called either synchronously or asynchronously:

  • If fSync is TRUE, the method completes synchronously. The reference is returned in the ppMediaItem parameter.
  • If fSync is , the method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is . The event data contains the reference for the new media item.

The callback interface is set when you first call to create the MFPlay player object. If you do not provide a callback interface, the fSync parameter must be TRUE. Otherwise, CreateMediaItemFromURL returns .

If you make multiple asynchronous calls to CreateMediaItemFromURL, they are not guaranteed to complete in the same order. Use the dwUserData parameter to match created media items with pending requests.

Currently, this method returns if the URL specifies any of the following protocols: rtsp*, mms*, or mcast. If you want to use the Media Foundation network source with MFPlay, first use the Source Resolver to create the source, and then call .

+
+ + dd374335 + HRESULT IMFPMediaPlayer::CreateMediaItemFromURL([In] const wchar_t* pwszURL,[In] BOOL fSync,[In] ULONG_PTR dwUserData,[Out, Optional] IMFPMediaItem** ppMediaItem) + IMFPMediaPlayer::CreateMediaItemFromURL +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Creates a media item from an object.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

Invalid request. This error can occur when fSync is and the application did not provide a callback interface. See Remarks.

The object's Shutdown method was called.

?

+ +

The pIUnknownObj parameter must specify one of the following:

  • A reference to a media source. Media sources expose the interface. It is the caller's responsibility to call on the media source.
  • A reference to a byte stream. Byte streams expose the interface. Internally, the method calls the method to create a media source from the byte stream. Therefore, a byte-stream handler must be registered for the byte stream. For more information about byte-stream handlers, see Scheme Handlers and Byte-Stream Handlers.

This method does not queue the media item for playback. To queue the item for playback, call .

The CreateMediaItemFromObject method can be called either synchronously or asynchronously:

  • If fSync is TRUE, the method completes synchronously. The reference is returned in the ppMediaItem parameter.
  • If fSync is , the method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is . The event data contains the reference for the new media item.

The callback interface is set when you first call to create the MFPlay player object. If you do not provide a callback interface, the fSync parameter must be TRUE. Otherwise, CreateMediaItemFromObject returns .

If you make multiple asynchronous calls to CreateMediaItemFromObject, they are not guaranteed to complete in the same order. Use the dwUserData parameter to match created media items with pending requests.

+
+ + dd374334 + HRESULT IMFPMediaPlayer::CreateMediaItemFromObject([In] IUnknown* pIUnknownObj,[In] BOOL fSync,[In] ULONG_PTR dwUserData,[Out, Optional] IMFPMediaItem** ppMediaItem) + IMFPMediaPlayer::CreateMediaItemFromObject +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queues a media item for playback.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

The media item contains protected content. MFPlay currently does not support protected content.

No audio playback device was found. This error can occur if the media source contains audio, but no audio playback devices are available on the system.

The object's Shutdown method was called.

?

+ +

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

To create a media item, call or . A media item must be used with the same MFPlay player object that created that item. If the media item was created by a different instance of the player object, SetMediaItem returns E_INVALIDARG. +

+
+ + dd374361 + HRESULT IMFPMediaPlayer::SetMediaItem([In] IMFPMediaItem* pIMFPMediaItem) + IMFPMediaPlayer::SetMediaItem +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Clears the current media item.

Note??This method is currently not implemented.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method stops playback and releases the player object's references to the current media item.

This method completes asynchronously. When the operation completes, the application's callback method is invoked. The event type is .

+
+ + dd374332 + HRESULT IMFPMediaPlayer::ClearMediaItem() + IMFPMediaPlayer::ClearMediaItem +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets a reference to the current media item.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_FAIL

There is no current media item.

There is no current media item.

The object's Shutdown method was called.

?

+ +

The method is asynchronous. Therefore, while SetMediaItem is pending, GetMediaItem will not return the media item that was just set. Instead, the application should implement interface and handle the event. For more information, see Receiving Events From the Player.

The previous remark also applies to setting the media item in the function.

+
+ + dd374342 + HRESULT IMFPMediaPlayer::GetMediaItem([Out] IMFPMediaItem** ppIMFPMediaItem) + IMFPMediaPlayer::GetMediaItem +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current audio volume.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374351 + HRESULT IMFPMediaPlayer::GetVolume([Out] float* pflVolume) + IMFPMediaPlayer::GetVolume +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the audio volume.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The flVolume parameter is invalid.

?

+ +

If you call this method before playback starts, the setting is applied after playback starts.

This method does not change the master volume level for the player's audio session. Instead, it adjusts the per-channel volume levels for audio stream(s) that belong to the current media item. Other streams in the audio session are not affected. For more information, see Managing the Audio Session.

+
+ + dd374366 + HRESULT IMFPMediaPlayer::SetVolume([In] float flVolume) + IMFPMediaPlayer::SetVolume +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current audio balance.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374338 + HRESULT IMFPMediaPlayer::GetBalance([Out] float* pflBalance) + IMFPMediaPlayer::GetBalance +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the audio balance.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The flBalance parameter is invalid.

?

+ +

If you call this method before playback starts, the setting is applied when playback starts.

+
+ + dd374359 + HRESULT IMFPMediaPlayer::SetBalance([In] float flBalance) + IMFPMediaPlayer::SetBalance +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether the audio is muted.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374343 + HRESULT IMFPMediaPlayer::GetMute([Out] BOOL* pfMute) + IMFPMediaPlayer::GetMute +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Mutes or unmutes the audio.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If you call this method before playback starts, the setting is applied after playback starts.

This method does not mute the entire audio session to which the player belongs. It mutes only the streams from the current media item. Other streams in the audio session are not affected. For more information, see Managing the Audio Session. +

+
+ + dd374362 + HRESULT IMFPMediaPlayer::SetMute([In] BOOL fMute) + IMFPMediaPlayer::SetMute +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the size and aspect ratio of the video. These values are computed before any scaling is done to fit the video into the destination window.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ +

At least one parameter must be non-null.

+
+ + dd374344 + HRESULT IMFPMediaPlayer::GetNativeVideoSize([Out, Optional] SIZE* pszVideo,[Out, Optional] SIZE* pszARVideo) + IMFPMediaPlayer::GetNativeVideoSize +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the range of video sizes that can be displayed without significantly degrading performance or image quality.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ +

At least one parameter must be non-null. Sizes are given in pixels.

+
+ + dd374341 + HRESULT IMFPMediaPlayer::GetIdealVideoSize([Out, Optional] SIZE* pszMin,[Out, Optional] SIZE* pszMax) + IMFPMediaPlayer::GetIdealVideoSize +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the video source rectangle.

MFPlay clips the video to this rectangle and stretches the rectangle to fill the video window.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ +

MFPlay stretches the source rectangle to fill the entire video window. By default, MFPlay maintains the source's correct aspect ratio, letterboxing if needed. The letterbox color is controlled by the method.

This method fails if no media item is currently set, or if the current media item does not contain video.

To set the video position before playback starts, call this method inside your event handler for the event. For more information, see .

+
+ + dd743247 + HRESULT IMFPMediaPlayer::SetVideoSourceRect([In] const MFVideoNormalizedRect* pnrcSource) + IMFPMediaPlayer::SetVideoSourceRect +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the video source rectangle.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ + dd743246 + HRESULT IMFPMediaPlayer::GetVideoSourceRect([Out] MFVideoNormalizedRect* pnrcSource) + IMFPMediaPlayer::GetVideoSourceRect +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Specifies whether the aspect ratio of the video is preserved during playback.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ +

This method fails if no media item is currently set, or if the current media item does not contain video.

To set the aspect-ratio mode before playback starts, call this method inside your event handler for the event. For more information, see .

+
+ + dd374358 + HRESULT IMFPMediaPlayer::SetAspectRatioMode([In] unsigned int dwAspectRatioMode) + IMFPMediaPlayer::SetAspectRatioMode +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current aspect-ratio correction mode. This mode controls whether the aspect ratio of the video is preserved during playback.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ + dd374337 + HRESULT IMFPMediaPlayer::GetAspectRatioMode([Out] unsigned int* pdwAspectRatioMode) + IMFPMediaPlayer::GetAspectRatioMode +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the window where the video is displayed.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The video window is specified when you first call to create the MFPlay player object.

+
+ + dd374350 + HRESULT IMFPMediaPlayer::GetVideoWindow([Out] HWND* phwndVideo) + IMFPMediaPlayer::GetVideoWindow +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Updates the video frame.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ +

Call this method when your application's video playback window receives either a WM_PAINT or WM_SIZE message. This method performs two functions:

  • Ensures that the video frame is repainted while playback is paused or stopped.
  • Adjusts the displayed video to match the current size of the video window.

Important??Call the GDI BeginPaint function before calling UpdateVideo.

+
+ + dd743248 + HRESULT IMFPMediaPlayer::UpdateVideo() + IMFPMediaPlayer::UpdateVideo +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Sets the color for the video border. The border color is used to letterbox the video.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

MF_E_SHUTDOWN

The object's Shutdown method was called.

?

+ +

This method fails if no media item is currently set, or if the current media item does not contain video.

To set the border color before playback starts, call this method inside your event handler for the event. For more information, see .

+
+ + dd374360 + HRESULT IMFPMediaPlayer::SetBorderColor([In] COLORREF Clr) + IMFPMediaPlayer::SetBorderColor +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current color of the video border. The border color is used to letterbox the video.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The current media item does not contain video.

The object's Shutdown method was called.

?

+ + dd374339 + HRESULT IMFPMediaPlayer::GetBorderColor([Out] COLORREF* pClr) + IMFPMediaPlayer::GetBorderColor +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Applies an audio or video effect to playback.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

This effect was already added.

?

+ +

The object specified in the pEffect parameter can implement either a video effect or an audio effect. The effect is applied to any media items set after the method is called. It is not applied to the current media item.

For each media item, the effect is applied to the first selected stream of the matching type (audio or video). If a media item has two selected streams of the same type, the second stream does not receive the effect. The effect is ignored if the media item does not contain a stream that matches the effect type. For example, if you set a video effect and play a file that contains just audio, the video effect is ignored, although no error is raised.

The effect is applied to all subsequent media items, until the application removes the effect. To remove an effect, call or .

If you set multiple effects of the same type (audio or video), they are applied in the same order in which you call InsertEffect.

+
+ + dd374352 + HRESULT IMFPMediaPlayer::InsertEffect([In] IUnknown* pEffect,[In] BOOL fOptional) + IMFPMediaPlayer::InsertEffect +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Removes an effect that was added with the method.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The effect was not found.

?

+ +

The change applies to the next media item that is set on the player. The effect is not removed from the current media item.

+
+ + dd374356 + HRESULT IMFPMediaPlayer::RemoveEffect([In] IUnknown* pEffect) + IMFPMediaPlayer::RemoveEffect +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Removes all effects that were added with the method.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The change applies to the next media item that is set on the player. The effects are not removed from the current media item.

+
+ + dd374355 + HRESULT IMFPMediaPlayer::RemoveAllEffects() + IMFPMediaPlayer::RemoveAllEffects +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Shuts down the MFPlay player object and releases any resources the object is using.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

After this method is called, most methods return . Also, any media items created from this instance of the player object are invalidated and most methods also return .

The player object automatically shuts itself down when its reference count reaches zero. You can use the Shutdown method to shut down the player before all of the references have been released.

+
+ + dd374367 + HRESULT IMFPMediaPlayer::Shutdown() + IMFPMediaPlayer::Shutdown +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current playback rate.

+
+ + dd374346 + GetRate / SetRate + GetRate + HRESULT IMFPMediaPlayer::GetRate([Out] float* pflRate) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current playback state of the MFPlay player object.

+
+ +

This method can be called after the player object has been shut down.

Many of the methods complete asynchronously. While an asynchronous operation is pending, the current state is not updated until the operation completes. When the operation completes, the application receives an event callback, and the new state is given in the structure that is passed to the callback.

+
+ + dd374347 + GetState + GetState + HRESULT IMFPMediaPlayer::GetState([Out] MFP_MEDIAPLAYER_STATE* peState) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets a reference to the current media item.

+
+ +

The method is asynchronous. Therefore, while SetMediaItem is pending, GetMediaItem will not return the media item that was just set. Instead, the application should implement interface and handle the event. For more information, see Receiving Events From the Player.

The previous remark also applies to setting the media item in the function.

+
+ + dd374342 + GetMediaItem / SetMediaItem + GetMediaItem + HRESULT IMFPMediaPlayer::GetMediaItem([Out] IMFPMediaItem** ppIMFPMediaItem) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current audio volume.

+
+ + dd374351 + GetVolume / SetVolume + GetVolume + HRESULT IMFPMediaPlayer::GetVolume([Out] float* pflVolume) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current audio balance.

+
+ + dd374338 + GetBalance / SetBalance + GetBalance + HRESULT IMFPMediaPlayer::GetBalance([Out] float* pflBalance) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Queries whether the audio is muted.

+
+ + dd374343 + GetMute / SetMute + GetMute + HRESULT IMFPMediaPlayer::GetMute([Out] BOOL* pfMute) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the video source rectangle.

+
+ + dd743246 + GetVideoSourceRect / SetVideoSourceRect + GetVideoSourceRect + HRESULT IMFPMediaPlayer::GetVideoSourceRect([Out] MFVideoNormalizedRect* pnrcSource) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current aspect-ratio correction mode. This mode controls whether the aspect ratio of the video is preserved during playback.

+
+ + dd374337 + GetAspectRatioMode / SetAspectRatioMode + GetAspectRatioMode + HRESULT IMFPMediaPlayer::GetAspectRatioMode([Out] unsigned int* pdwAspectRatioMode) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the window where the video is displayed.

+
+ +

The video window is specified when you first call to create the MFPlay player object.

+
+ + dd374350 + GetVideoWindow + GetVideoWindow + HRESULT IMFPMediaPlayer::GetVideoWindow([Out] HWND* phwndVideo) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Gets the current color of the video border. The border color is used to letterbox the video.

+
+ + dd374339 + GetBorderColor / SetBorderColor + GetBorderColor + HRESULT IMFPMediaPlayer::GetBorderColor([Out] COLORREF* pClr) +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Callback interface for the interface.

To set the callback, pass an reference to the function in the pCallback parameter. The application implements the interface.

+
+ + dd374330 + IMFPMediaPlayerCallback + IMFPMediaPlayerCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Called by the MFPlay player object to notify the application of a playback event.

+
+ No documentation. + +

The specific type of playback event is given in the eEventType member of the structure. This structure contains information that is common to all of the event types. Some event types use extended structures. A set of macros is defined for casting the pEventHeader reference to the correct structure type. For more information, see .

It is safe to call and methods inside the OnMediaPlayer method. MFPlay is guaranteed not to reenter the OnMediaPlayer method. That is, calls to OnMediaPlayer are serialized, and the method will not be invoked again from inside OnMediaPlayer.

+
+ + dd374331 + void IMFPMediaPlayerCallback::OnMediaPlayerEvent([In] MFP_EVENT_HEADER* pEventHeader) + IMFPMediaPlayerCallback::OnMediaPlayerEvent +
+ + +

Enables a media source to receive a reference to the interface.

+
+ +

If a media source exposes this interface, the Protected Media Path (PMP) Media Session calls SetPMPHost with a reference to the interface. The media source can use the interface to create objects in the PMP process.

+
+ + ms702104 + IMFPMPClient + IMFPMPClient +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Provides a reference to the interface.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The reference is apartment threaded. The media source must add the reference to the global interface table (GIT) before using it.

+
+ + ms703915 + HRESULT IMFPMPClient::SetPMPHost([In] IMFPMPHost* pPMPHost) + IMFPMPClient::SetPMPHost +
+ + +

Provides a reference to the interface.

+
+ +

The reference is apartment threaded. The media source must add the reference to the global interface table (GIT) before using it.

+
+ + ms703915 + SetPMPHost + SetPMPHost + HRESULT IMFPMPClient::SetPMPHost([In] IMFPMPHost* pPMPHost) +
+ + +

Blocks the protected media path (PMP) process from ending.

+
+ +

When this method is called, it increments the lock count on the PMP process. For every call to this method, the application should make a corresponding call to , which decrements the lock count. When the PMP process is ready to exit, it waits for about 3 seconds, or until the lock count reaches zero, before exiting.

+
+ + ms697003 + IMFPMPHost + IMFPMPHost +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Blocks the protected media path (PMP) process from ending.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When this method is called, it increments the lock count on the PMP process. For every call to this method, the application should make a corresponding call to , which decrements the lock count. When the PMP process is ready to exit, it waits for about 3 seconds, or until the lock count reaches zero, before exiting.

+
+ + ms697003 + HRESULT IMFPMPHost::LockProcess() + IMFPMPHost::LockProcess +
+ + +

Decrements the lock count on the protected media path (PMP) process. Call this method once for each call to .

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms698984 + HRESULT IMFPMPHost::UnlockProcess() + IMFPMPHost::UnlockProcess +
+ + +

Creates an object in the protect media path (PMP) process, from a CLSID.

+
+

The CLSID of the object to create.

+

A reference to the interface. This parameter can be null. If this parameter is not null, the PMP host queries the created object for the IPersistStream interface and calls IPersistStream::Load, passing in the pStream reference.

+

The interface identifier (IID) of the interface to retrieve.

+

Receives a reference to the requested interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You can use the pStream parameter to initialize the object after it is created.

+
+ + ms698995 + HRESULT IMFPMPHost::CreateObjectByCLSID([In] const GUID& clsid,[In] IStream* pStream,[In] const GUID& riid,[In] void** ppv) + IMFPMPHost::CreateObjectByCLSID +
+ + +

Enables two instances of the Media Session to share the same protected media path (PMP) process.

+
+ +

If your application creates more than one instance of the Media Session, you can use this interface to share the same PMP process among several instances. This can be more efficient than re-creating the PMP process each time.

Use this interface as follows:

  1. Create the first instance of the PMP Media Session by calling .
  2. Retrieve an reference from the first Media Session by calling with the service identifier .
  3. Create the second instance of the PMP Media Session. Set the attribute on the pConfiguration parameter of the function. The attribute value is the reference retrieved in step 2.
+
+ + ms702977 + IMFPMPServer + IMFPMPServer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Blocks the protected media path (PMP) process from ending.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When this method is called, it increments the lock count on the PMP process. For every call to this method, the application should make a corresponding call to , which decrements the lock count. When the PMP process is ready to exit, it waits for about 3 seconds, or until the lock count reaches zero, before exiting.

+
+ + ms701590 + HRESULT IMFPMPServer::LockProcess() + IMFPMPServer::LockProcess +
+ + +

Decrements the lock count on the protected media path (PMP) process. Call this method once for each call to .

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696204 + HRESULT IMFPMPServer::UnlockProcess() + IMFPMPServer::UnlockProcess +
+ + +

Creates an object in the protected media path (PMP) process.

+
+

CLSID of the object to create.

+

Interface identifier of the interface to retrieve.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704806 + HRESULT IMFPMPServer::CreateObjectByCLSID([In] const GUID& clsid,[In] const GUID& riid,[Out] void** ppObject) + IMFPMPServer::CreateObjectByCLSID +
+ + +

Represents a presentation clock, which is used to schedule when samples are rendered and to synchronize multiple streams.

+
+ +

To create a new instance of the presentation clock, call the function. The presentation clock must have a time source, which is an object that provides the clock times. For example, the audio renderer is a time source that uses the sound card to drive the clock. Time sources expose the interface. To set the time source, call SetTimeSource. The presentation clock does not begin running until the Start method is called.

To get the presentation clock from the Media Session, call .

+
+ + ms701581 + IMFPresentationClock + IMFPresentationClock +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the time source for the presentation clock. The time source is the object that drives the clock by providing the current time.

+
+

Pointer to the interface of the time source.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The time source does not have a frequency of 10 MHz.

The time source has not been initialized.

?

+ +

The presentation clock cannot start until it has a time source.

The time source is automatically registered to receive state change notifications from the clock, through the time source's interface, which all time sources must implement.

This time source have a frequency of 10 MHz. See . If not, the method returns .

+
+ + ms694835 + HRESULT IMFPresentationClock::SetTimeSource([In, Optional] IMFPresentationTimeSource* pTimeSource) + IMFPresentationClock::SetTimeSource +
+ + +

Retrieves the clock's presentation time source.

+
+

Receives a reference to the time source's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No time source was set on this clock.

?

+ + ms704730 + HRESULT IMFPresentationClock::GetTimeSource([Out] IMFPresentationTimeSource** ppTimeSource) + IMFPresentationClock::GetTimeSource +
+ + +

Retrieves the latest clock time.

+
+

Receives the latest clock time, in 100-nanosecond units. The time is relative to when the clock was last started.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The clock does not have a presentation time source. Call .

?

+ +

This method does not attempt to smooth out jitter or otherwise account for any inaccuracies in the clock time.

+
+ + ms696209 + HRESULT IMFPresentationClock::GetTime([Out] longlong* phnsClockTime) + IMFPresentationClock::GetTime +
+ + +

Registers an object to be notified whenever the clock starts, stops, or pauses, or changes rate.

+
+

Pointer to the object's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Before releasing the object, call to unregister the object for state-change notifications.

+
+ + ms703129 + HRESULT IMFPresentationClock::AddClockStateSink([In, Optional] IMFClockStateSink* pStateSink) + IMFPresentationClock::AddClockStateSink +
+ + +

Unregisters an object that is receiving state-change notifications from the clock.

+
+

Pointer to the object's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703032 + HRESULT IMFPresentationClock::RemoveClockStateSink([In, Optional] IMFClockStateSink* pStateSink) + IMFPresentationClock::RemoveClockStateSink +
+ + +

Starts the presentation clock.

+
+

Initial starting time, in 100-nanosecond units. At the time the Start method is called, the clock's method returns this value, and the clock time increments from there. If the value is PRESENTATION_CURRENT_POSITION, the clock starts from its current position. Use this value if the clock is paused and you want to restart it from the same position.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No time source was set on this clock.

?

+ +

This method is valid in all states (stopped, paused, or running).

If the clock is paused and restarted from the same position (llClockStartOffset is PRESENTATION_CURRENT_POSITION), the presentation clock sends an notification. Otherwise, the clock sends an notification.

The presentation clock initiates the state change by calling OnClockStart or OnClockRestart on the clock's time source. This call is made synchronously. If it fails, the state change does not occur. If the call succeeds, the state changes, and the clock notifies the other state-change subscribers by calling their OnClockStart or OnClockRestart methods. These calls are made asynchronously.

If the clock is already running, calling Start again has the effect of seeking the clock to the new StartOffset position.

+
+ + ms702290 + HRESULT IMFPresentationClock::Start([In] longlong llClockStartOffset) + IMFPresentationClock::Start +
+ + +

Stops the presentation clock. While the clock is stopped, the clock time does not advance, and the clock's method returns zero.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No time source was set on this clock.

The clock is already stopped.

?

+ +

This method is valid when the clock is running or paused.

The presentation clock initiates the state change by calling on the clock's time source. This call is made synchronously. If it fails, the state change does not occur. If the call succeeds, the state changes, and the clock notifies the other state-change subscribers by calling their OnClockStop methods. These calls are made asynchronously.

+
+ + ms697195 + HRESULT IMFPresentationClock::Stop() + IMFPresentationClock::Stop +
+ + +

Pauses the presentation clock. While the clock is paused, the clock time does not advance, and the clock's returns the time at which the clock was paused.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No time source was set on this clock.

The clock is already paused.

The clock is stopped. This request is not valid when the clock is stopped.

?

+ +

This method is valid when the clock is running. It is not valid when the clock is paused or stopped.

The presentation clock initiates the state change by calling on the clock's time source. This call is made synchronously. If it fails, the state change does not occur. If the call succeeds, the state changes, and the clock notifies the other state-change subscribers by calling their OnClockPause methods. These calls are made asynchronously.

+
+ + ms696201 + HRESULT IMFPresentationClock::Pause() + IMFPresentationClock::Pause +
+ + +

Retrieves the clock's presentation time source.

+
+ + ms704730 + GetTimeSource / SetTimeSource + GetTimeSource + HRESULT IMFPresentationClock::GetTimeSource([Out] IMFPresentationTimeSource** ppTimeSource) +
+ + +

Retrieves the latest clock time.

+
+ +

This method does not attempt to smooth out jitter or otherwise account for any inaccuracies in the clock time.

+
+ + ms696209 + GetTime + GetTime + HRESULT IMFPresentationClock::GetTime([Out] longlong* phnsClockTime) +
+ + +

Describes the details of a presentation. A presentation is a set of related media streams that share a common presentation time.

+
+ +

Presentation descriptors are used to configure media sources and some media sinks. To get the presentation descriptor from a media source, call . To create a new presentation descriptor, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703990 + IMFPresentationDescriptor + IMFPresentationDescriptor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the number of stream descriptors in the presentation. Each stream descriptor contains information about one stream in the media source. To retrieve a stream descriptor, call the method.

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701621 + HRESULT IMFPresentationDescriptor::GetStreamDescriptorCount([Out] unsigned int* pdwDescriptorCount) + IMFPresentationDescriptor::GetStreamDescriptorCount +
+ + +

Retrieves a stream descriptor for a stream in the presentation. The stream descriptor contains information about the stream.

+
+

Zero-based index of the stream. To find the number of streams in the presentation, call the method.

+

Receives a Boolean value. The value is TRUE if the stream is currently selected, or if the stream is currently deselected. If a stream is selected, the media source generates data for that stream when is called. The media source will not generated data for deselected streams. To select a stream, call .To deselect a stream, call .

+

Receives a reference to the stream descriptor's interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms694924 + HRESULT IMFPresentationDescriptor::GetStreamDescriptorByIndex([In] unsigned int dwIndex,[Out] BOOL* pfSelected,[Out] IMFStreamDescriptor** ppDescriptor) + IMFPresentationDescriptor::GetStreamDescriptorByIndex +
+ + +

Selects a stream in the presentation.

+
+

The stream number to select, indexed from zero. To find the number of streams in the presentation, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

dwDescriptorIndex is out of range.

?

+ +

If a stream is selected, the media source will generate data for that stream. The media source will not generated data for deselected streams. To deselect a stream, call .

To query whether a stream is selected, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696272 + HRESULT IMFPresentationDescriptor::SelectStream([In] unsigned int dwDescriptorIndex) + IMFPresentationDescriptor::SelectStream +
+ + +

Deselects a stream in the presentation.

+
+

The stream number to deselect, indexed from zero. To find the number of streams in the presentation, call the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

dwDescriptorIndex is out of range.

?

+ +

If a stream is deselected, no data is generated for that stream. To select the stream again, call .

To query whether a stream is selected, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696266 + HRESULT IMFPresentationDescriptor::DeselectStream([In] unsigned int dwDescriptorIndex) + IMFPresentationDescriptor::DeselectStream +
+ + +

Creates a copy of this presentation descriptor.

+
+

Receives a reference to the interface of the new presentation descriptor. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method performs a shallow copy of the presentation descriptor. The stream descriptors are not cloned. Therefore, use caution when modifying the presentation presentation descriptor or its stream descriptors.

If the original presentation descriptor is from a media source, do not modify the presentation descriptor unless the source is stopped. If you use the presentation descriptor to configure a media sink, do not modify the presentation descriptor after the sink is configured.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms694028 + HRESULT IMFPresentationDescriptor::Clone([Out] IMFPresentationDescriptor** ppPresentationDescriptor) + IMFPresentationDescriptor::Clone +
+ + +

Retrieves the number of stream descriptors in the presentation. Each stream descriptor contains information about one stream in the media source. To retrieve a stream descriptor, call the method.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701621 + GetStreamDescriptorCount + GetStreamDescriptorCount + HRESULT IMFPresentationDescriptor::GetStreamDescriptorCount([Out] unsigned int* pdwDescriptorCount) +
+ + +

Provides the clock times for the presentation clock.

+
+ +

This interface is implemented by presentation time sources. A presentation time source is an object that provides the clock time for the presentation clock. For example, the audio renderer is a presentation time source. The rate at which the audio renderer consumes audio samples determines the clock time. If the audio format is 44100 samples per second, the audio renderer will report that one second has passed for every 44100 audio samples it plays. In this case, the timing is provided by the sound card.

To set the presentation time source on the presentation clock, call with a reference to the time source's interface.

A presentation time source must also implement the interface. The presentaton clock uses this interface to notify the time source when the clock state changes.

Media Foundation provides a presentation time source that is based on the system clock. To create this object, call the function.

+
+ + ms704711 + IMFPresentationTimeSource + IMFPresentationTimeSource +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the underlying clock that the presentation time source uses to generate its clock times.

+
+

Receives a reference to the clock's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

This time source does not expose an underlying clock.

?

+ +

A presentation time source must support stopping, starting, pausing, and rate changes. However, in many cases the time source derives its clock times from a hardware clock or other device. The underlying clock is always running, and might not support rate changes.

Optionally, a time source can expose the underlying clock by implementing this method. The underlying clock is always running, even when the presentation time source is paused or stopped. (Therefore, the underlying clock returns the flag in the method).

The underlying clock is useful if you want to make decisions based on the clock times while the presentation clock is stopped or paused.

If the time source does not expose an underlying clock, the method returns .

+
+ + ms694071 + HRESULT IMFPresentationTimeSource::GetUnderlyingClock([Out] IMFClock** ppClock) + IMFPresentationTimeSource::GetUnderlyingClock +
+ + +

Retrieves the underlying clock that the presentation time source uses to generate its clock times.

+
+ +

A presentation time source must support stopping, starting, pausing, and rate changes. However, in many cases the time source derives its clock times from a hardware clock or other device. The underlying clock is always running, and might not support rate changes.

Optionally, a time source can expose the underlying clock by implementing this method. The underlying clock is always running, even when the presentation time source is paused or stopped. (Therefore, the underlying clock returns the flag in the method).

The underlying clock is useful if you want to make decisions based on the clock times while the presentation clock is stopped or paused.

If the time source does not expose an underlying clock, the method returns .

+
+ + ms694071 + GetUnderlyingClock + GetUnderlyingClock + HRESULT IMFPresentationTimeSource::GetUnderlyingClock([Out] IMFClock** ppClock) +
+ + +

Enables the quality manager to adjust the audio or video quality of a component in the pipeline.

This interface is exposed by pipeline components that can adjust their quality. Typically it is exposed by decoders and stream sinks. For example, the enhanced video renderer (EVR) implements this interface. However, media sources can also implement this interface.

To get a reference to this interface from a media source, call with the service identifier . For all other pipeline objects (transforms and media sinks), call QueryInterface.

+
+ +

The quality manager typically obtains this interface when the quality manager's method is called.

+
+ + ms695241 + IMFQualityAdvise + IMFQualityAdvise +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the drop mode. In drop mode, a component drops samples, more or less aggressively depending on the level of the drop mode.

+
+

Requested drop mode, specified as a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The component does not support the specified mode or any higher modes.

?

+ +

If this method is called on a media source, the media source might switch between thinned and non-thinned output. If that occurs, the affected streams will send an event to indicate the transition. The operation is asynchronous; after SetDropMode returns, you might receive samples that were queued before the transition. The event marks the exact point in the stream where the transition occurs.

+
+ + ms694861 + HRESULT IMFQualityAdvise::SetDropMode([In] MF_QUALITY_DROP_MODE eDropMode) + IMFQualityAdvise::SetDropMode +
+ + +

Sets the quality level. The quality level determines how the component consumes or produces samples.

+
+

Requested quality level, specified as a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The component does not support the specified quality level or any levels below it.

?

+ + ms705619 + HRESULT IMFQualityAdvise::SetQualityLevel([In] MF_QUALITY_LEVEL eQualityLevel) + IMFQualityAdvise::SetQualityLevel +
+ + +

Retrieves the current drop mode.

+
+

Receives the drop mode, specified as a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms702987 + HRESULT IMFQualityAdvise::GetDropMode([Out] MF_QUALITY_DROP_MODE* peDropMode) + IMFQualityAdvise::GetDropMode +
+ + +

Retrieves the current quality level.

+
+

Receives the quality level, specified as a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701591 + HRESULT IMFQualityAdvise::GetQualityLevel([Out] MF_QUALITY_LEVEL* peQualityLevel) + IMFQualityAdvise::GetQualityLevel +
+ + +

Drops samples over a specified interval of time.

+
+

Amount of time to drop, in 100-nanosecond units. This value is always absolute. If the method is called multiple times, do not add the times from previous calls.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object does not support this method.

?

+ +

Ideally the quality manager can prevent a renderer from falling behind. But if this does occur, then simply lowering quality does not guarantee the renderer will ever catch up. As a result, audio and video might fall out of sync. To correct this problem, the quality manager can call DropTime to request that the renderer drop samples quickly over a specified time interval. After that period, the renderer stops dropping samples.

This method is primarily intended for the video renderer. Dropped audio samples cause audio glitching, which is not desirable.

If a component does not support this method, it should return .

+
+ + ms697431 + HRESULT IMFQualityAdvise::DropTime([In] longlong hnsAmountToDrop) + IMFQualityAdvise::DropTime +
+ + +

Retrieves the current drop mode.

+
+ + ms702987 + GetDropMode / SetDropMode + GetDropMode + HRESULT IMFQualityAdvise::GetDropMode([Out] MF_QUALITY_DROP_MODE* peDropMode) +
+ + +

Retrieves the current quality level.

+
+ + ms701591 + GetQualityLevel / SetQualityLevel + GetQualityLevel + HRESULT IMFQualityAdvise::GetQualityLevel([Out] MF_QUALITY_LEVEL* peQualityLevel) +
+ + +

Enables a pipeline object to adjust its own audio or video quality, in response to quality messages.

+
+ +

This interface enables a pipeline object to respond to quality messages from the media sink. Currently, it is supported only for video decoders.

If a video decoder exposes but not , the quality manager controls quality adjustments for the decoder. In this case, the quality manager responds to events from the Enhanced Video Renderer (EVR) by calling methods on the decoder.

If the decoder exposes , the quality manager forwards the events to the decoder and does not adjust the decoder's quality settings. The decoder should respond to these events by adjusting its own quality settings internally.

The preceding remarks apply to the default implementation of the quality manager; custom quality managers can implement other behaviors.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd743249 + IMFQualityAdvise2 + IMFQualityAdvise2 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Forwards an event from the media sink.

+
+ No documentation. + No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd743250 + HRESULT IMFQualityAdvise2::NotifyQualityEvent([In, Optional] IMFMediaEvent* pEvent,[Out] unsigned int* pdwFlags) + IMFQualityAdvise2::NotifyQualityEvent +
+ + +

Queries an object for the number of quality modes it supports. Quality modes are used to adjust the trade-off between quality and speed when rendering audio or video.

The default presenter for the enhanced video renderer (EVR) implements this interface. The EVR uses the interface to respond to quality messages from the quality manager.

+
+ + dd374511 + IMFQualityAdviseLimits + IMFQualityAdviseLimits +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the maximum drop mode. A higher drop mode means that the object will, if needed, drop samples more aggressively to match the presentation clock.

+
+

Receives the maximum drop mode, specified as a member of the enumeration.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To get the current drop mode, call the method. To set the drop mode, call the method.

+
+ + dd374512 + HRESULT IMFQualityAdviseLimits::GetMaximumDropMode([Out] MF_QUALITY_DROP_MODE* peDropMode) + IMFQualityAdviseLimits::GetMaximumDropMode +
+ + +

Gets the minimum quality level that is supported by the component.

+
+

Receives the minimum quality level, specified as a member of the enumeration.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To get the current quality level, call the method. To set the quality level, call the method.

+
+ + dd374513 + HRESULT IMFQualityAdviseLimits::GetMinimumQualityLevel([Out] MF_QUALITY_LEVEL* peQualityLevel) + IMFQualityAdviseLimits::GetMinimumQualityLevel +
+ + +

Gets the maximum drop mode. A higher drop mode means that the object will, if needed, drop samples more aggressively to match the presentation clock.

+
+ +

To get the current drop mode, call the method. To set the drop mode, call the method.

+
+ + dd374512 + GetMaximumDropMode + GetMaximumDropMode + HRESULT IMFQualityAdviseLimits::GetMaximumDropMode([Out] MF_QUALITY_DROP_MODE* peDropMode) +
+ + +

Gets the minimum quality level that is supported by the component.

+
+ +

To get the current quality level, call the method. To set the quality level, call the method.

+
+ + dd374513 + GetMinimumQualityLevel + GetMinimumQualityLevel + HRESULT IMFQualityAdviseLimits::GetMinimumQualityLevel([Out] MF_QUALITY_LEVEL* peQualityLevel) +
+ + +

Adjusts playback quality. This interface is exposed by the quality manager.

+
+ +

Media Foundation provides a default quality manager that is tuned for playback. Applications can provide a custom quality manager to the Media Session by setting the attribute when creating the Media Session.

+
+ + ms697558 + IMFQualityManager + IMFQualityManager +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called when the Media Session is about to start playing a new topology.

+
+

Pointer to the interface of the new topology. If this parameter is null, the quality manager should release any references to the previous topology.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

In a typical quality manager this method does the following:

  1. Enumerates the nodes in the topology.

  2. Calls to get the node's underlying object.

  3. Queries for the interface.

The quality manager can then use the references to adjust audio-video quality as needed.

+
+ + ms697409 + HRESULT IMFQualityManager::NotifyTopology([In] IMFTopology* pTopology) + IMFQualityManager::NotifyTopology +
+ + +

Called when the Media Session selects a presentation clock.

+
+

Pointer to the interface of the presentation clock. If this parameter is null, the quality manager should release any references to the presentation clock.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms702211 + HRESULT IMFQualityManager::NotifyPresentationClock([In] IMFPresentationClock* pClock) + IMFQualityManager::NotifyPresentationClock +
+ + +

Called when the media processor is about to deliver an input sample to a pipeline component.

+
+

Pointer to the interface of the topology node that represents the pipeline component.

+

Index of the input stream on the topology node.

+

Pointer to the interface of the input sample.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is called for every sample passing through every pipeline component. Therefore, the method must return quickly to avoid introducing too much latency into the pipeline.

+
+ + ms703097 + HRESULT IMFQualityManager::NotifyProcessInput([In] IMFTopologyNode* pNode,[In] int lInputIndex,[In] IMFSample* pSample) + IMFQualityManager::NotifyProcessInput +
+ + +

Called after the media processor gets an output sample from a pipeline component.

+
+

Pointer to the interface of the topology node that represents the pipeline component.

+

Index of the output stream on the topology node.

+

Pointer to the interface of the output sample.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is called for every sample passing through every pipeline component. Therefore, the method must return quickly to avoid introducing too much latency into the pipeline.

+
+ + ms700792 + HRESULT IMFQualityManager::NotifyProcessOutput([In] IMFTopologyNode* pNode,[In] int lOutputIndex,[In] IMFSample* pSample) + IMFQualityManager::NotifyProcessOutput +
+ + +

Called when a pipeline component sends an event.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms704768 + HRESULT IMFQualityManager::NotifyQualityEvent([In] IUnknown* pObject,[In] IMFMediaEvent* pEvent) + IMFQualityManager::NotifyQualityEvent +
+ + +

Called when the Media Session is shutting down.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The quality manager should release all references to the Media Session when this method is called.

+
+ + ms703099 + HRESULT IMFQualityManager::Shutdown() + IMFQualityManager::Shutdown +
+ + +

Gets or sets the playback rate.

+
+ +

Objects can expose this interface as a service. To obtain a reference to the interface, call with the service identifier . The Media Session supports this interface. Media sources and transforms support this interface if they support rate changes. Media sinks do not need to support this interface. Media sinks are notified of rate changes through the method.

For more information, see About Rate Control.

To discover the playback rates that an object supports, use the interface

+
+ + ms697193 + IMFRateControl + IMFRateControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the playback rate.

+
+

If TRUE, the media streams are thinned. Otherwise, the stream is not thinned. For media sources and demultiplexers, the object must thin the streams when this parameter is TRUE. For downstream transforms, such as decoders and multiplexers, this parameter is informative; it notifies the object that the input streams are thinned. For information, see About Rate Control.

+

The requested playback rate. Postive values indicate forward playback, negative values indicate reverse playback, and zero indicates scrubbing (the source delivers a single frame).

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object does not support reverse playback.

The object does not support thinning.

The object does not support the requested playback rate.

The object cannot change to the new rate while in the running state.

?

+ +

The Media Session prevents some transitions between rate boundaries, depending on the current playback state:

Playback StateForward/ReverseForward/ZeroReverse/Zero
RunningNoNoNo
PausedNoYesNo
StoppedYesYesYes

?

If the transition is not supported, the method returns .

When a media source completes a call to SetRate, it sends the event. Other pipeline components do not send this event.

If a media source switches between thinned and non-thinned playback, the streams send an event to indicate the transition. Events from the media source are not synchronized with events from the media streams. After you receive the event, you can still receive samples that were queued before the stream switched to thinned or non-thinned mode. The event marks the exact point in the stream where the transition occurs.

When the Media Session completes a call to SetRate, it sends the event.

+
+ + ms696979 + HRESULT IMFRateControl::SetRate([In] BOOL fThin,[In] float flRate) + IMFRateControl::SetRate +
+ + +

Gets the current playback rate.

+
+

Receives the current playback rate.

+

Receives the value TRUE if the stream is currently being thinned. If the object does not support thinning, this parameter always receives the value . This parameter can be null. For more information, see About Rate Control.

+ + ms705641 + HRESULT IMFRateControl::GetRate([Out] BOOL* pfThin,[Out] float* pflRate) + IMFRateControl::GetRate +
+ + +

Queries the range of playback rates that are supported, including reverse playback.

To get a reference to this interface, call with the service identifier .

+
+ +

Applications can use this interface to discover the fastest and slowest playback rates that are possible, and to query whether a given playback rate is supported. Applications obtain this interface from the Media Session. Internally, the Media Session queries the objects in the pipeline. For more information, see How to Determine Supported Rates.

To get the current playback rate and to change the playback rate, use the interface.

Playback rates are expressed as a ratio the normal playback rate. Reverse playback is expressed as a negative rate. Playback is either thinned or non-thinned. In thinned playback, some of the source data is skipped (typically delta frames). In non-thinned playback, all of the source data is rendered.

You might need to implement this interface if you are writing a pipeline object (media source, transform, or media sink). For more information, see Implementing Rate Control.

+
+ + ms701858 + IMFRateSupport + IMFRateSupport +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the slowest playback rate supported by the object.

+
+

Specifies whether to query to the slowest forward playback rate or reverse playback rate. The value is a member of the enumeration.

+

If TRUE, the method retrieves the slowest thinned playback rate. Otherwise, the method retrieves the slowest non-thinned playback rate. For information about thinning, see About Rate Control.

+

Receives the slowest playback rate that the object supports.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object does not support reverse playback.

The object does not support thinning.

?

+ +

The value returned in plfRate represents a lower bound. Playback at this rate is not guaranteed. Call to check whether the boundary rate is supported. For example, a component that supports arbitrarily slow rates will return zero in pflRate, and applications should call IsRateSupported separately to determine whether the component supports rate 0.

If eDirection is , the method retrieves the slowest reverse playback rate. This is a negative value, assuming the object supports reverse playback.

+
+ + ms704596 + HRESULT IMFRateSupport::GetSlowestRate([In] MFRATE_DIRECTION eDirection,[In] BOOL fThin,[Out] float* pflRate) + IMFRateSupport::GetSlowestRate +
+ + +

Gets the fastest playback rate supported by the object.

+
+

Specifies whether to query to the fastest forward playback rate or reverse playback rate. The value is a member of the enumeration.

+

If TRUE, the method retrieves the fastest thinned playback rate. Otherwise, the method retrieves the fastest non-thinned playback rate. For information about thinning, see About Rate Control.

+

Receives the fastest playback rate that the object supports.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The object does not support reverse playback.

The object does not support thinning.

?

+ +

For some formats (such as ASF), thinning means dropping all frames that are not I-frames. If a component produces stream data, such as a media source or a demultiplexer, it should pay attention to the fThin parameter and return if it cannot thin the stream.

If the component processes or receives a stream (most transforms or media sinks), it may ignore this parameter if it does not care whether the stream is thinned. In the Media Session's implementation of rate support, if the transforms do not explicitly support reverse playback, the Media Session will attempt to playback in reverse with thinning but not without thinning. Therefore, most applications will set fThin to TRUE when using the Media Session for reverse playback.

If eDirection is , the method retrieves the fastest reverse playback rate. This is a negative value, assuming the object supports reverse playback.

+
+ + ms693505 + HRESULT IMFRateSupport::GetFastestRate([In] MFRATE_DIRECTION eDirection,[In] BOOL fThin,[Out] float* pflRate) + IMFRateSupport::GetFastestRate +
+ + +

Queries whether the object supports a specified playback rate.

+
+

If TRUE, the method queries whether the object supports the playback rate with thinning. Otherwise, the method queries whether the object supports the playback rate without thinning. For information about thinning, see About Rate Control.

+

The playback rate to query.

+

If the object does not support the playback rate given in flRate, this parameter receives the closest supported playback rate. If the method returns , this parameter receives the value given in flRate. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The object supports the specified rate.

The object does not support reverse playback.

The object does not support thinning.

The object does not support the specified rate.

?

+ + ms696250 + HRESULT IMFRateSupport::IsRateSupported([In] BOOL fThin,[In] float flRate,[InOut, Optional] float* pflNearestSupportedRate) + IMFRateSupport::IsRateSupported +
+ + +

Creates an instance of either the sink writer or the source reader.

+
+ +

To get a reference to this interface, call the CoCreateInstance function. The CLSID is CLSID_MFReadWriteClassFactory. Call the function before using the interface.

As an alternative to using this interface, you can call any of the following functions:

Internally, these functions use the interface.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374514 + IMFReadWriteClassFactory + IMFReadWriteClassFactory +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates an instance of the sink writer or source reader, given a URL.

+
+

The CLSID of the object to create.

ValueMeaning
CLSID_MFSinkWriter

Create the sink writer. The ppvObject parameter receives an interface reference.

CLSID_MFSourceReader

Create the source reader. The ppvObject parameter receives an interface reference.

?

+

A null-terminated string that contains a URL. If clsid is CLSID_MFSinkWriter, the URL specifies the name of the output file. The sink writer creates a new file with this name. If clsid is CLSID_MFSourceReader, the URL specifies the input file for the source reader.

+

A reference to the interface. You can use this parameter to configure the sink writer or source reader. For more information, see the following topics:

  • Sink Writer Attributes
  • Source Reader Attributes

This parameter can be null.

+

The IID of the requested interface.

+

Receives a reference to the requested interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374516 + HRESULT IMFReadWriteClassFactory::CreateInstanceFromURL([In] const GUID& clsid,[In] const wchar_t* pwszURL,[In, Optional] IMFAttributes* pAttributes,[In] const GUID& riid,[Out] void** ppvObject) + IMFReadWriteClassFactory::CreateInstanceFromURL +
+ + +

Creates an instance of the sink writer or source reader, given an reference.

+
+

The CLSID of the object to create.

ValueMeaning
CLSID_MFSinkWriter

Create the sink writer. The ppvObject parameter receives an interface reference.

CLSID_MFSourceReader

Create the source reader. The ppvObject parameter receives an interface reference.

?

+

A reference to the interface of an object that is used to initialize the source reader or sink writer. The method queries this reference for one of the following interfaces.

ValueMeaning

Pointer to a byte stream.

If clsid is CLSID_MFSinkWriter, the sink writer writes data to this byte stream.

If clsid is CLSID_MFSourceReader, this byte stream provides the source data for the source reader.

Pointer to a media sink. Applies only when clsid is CLSID_MFSinkWriter.

Pointer to a media source. Applies only when clsid is CLSID_MFSourceReader.

?

+

A reference to the interface. You can use this parameter to configure the sink writer or source reader. For more information, see the following topics:

  • Sink Writer Attributes
  • Source Reader Attributes

This parameter can be null.

+

The IID of the requested interface.

+

Receives a reference to the requested interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374515 + HRESULT IMFReadWriteClassFactory::CreateInstanceFromObject([In] const GUID& clsid,[In] IUnknown* punkObject,[In, Optional] IMFAttributes* pAttributes,[In] const GUID& riid,[Out] void** ppvObject) + IMFReadWriteClassFactory::CreateInstanceFromObject +
+ + +

Notifies a pipeline object to register itself with the Multimedia Class Scheduler Service (MMCSS).

Any pipeline object that creates worker threads should implement this interface.

+
+ +

Media Foundation provides a mechanism for applications to associate branches in the topology with MMCSS tasks. A topology branch is defined by a source node in the topology and all of the nodes downstream from it. An application registers a topology branch with MMCSS by setting the attribute on the source node and then calling .

When the application registers a topology branch with MMCSS, the Media Session queries every pipeline object in that branch for the interface. If the object exposes the interface, the Media Session calls RegisterThreads.

When the application unregisters the topology branch, the Media Session calls UnregisterThreads.

If a pipeline object creates its own worker threads but does not implement this interface, it can cause priority inversions in the Media Foundation pipeline, because high-priority processing threads might be blocked while waiting for the component to process data on a thread with lower priority.

Pipeline objects that do not create worker threads do not need to implement this interface.

In Windows?8, this interface is extended with IMFRealTimeClientEx.

+
+ + aa372146 + IMFRealTimeClient + IMFRealTimeClient +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Notifies the object to register its worker threads with the Multimedia Class Scheduler Service (MMCSS).

+
+

The MMCSS task identifier.

+

The name of the MMCSS task.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The object's worker threads should register themselves with MMCSS by calling AvSetMmThreadCharacteristics, using the task name and identifier specified in this method.

+
+ + aa367059 + HRESULT IMFRealTimeClient::RegisterThreads([In] unsigned int dwTaskIndex,[In] const wchar_t* wszClass) + IMFRealTimeClient::RegisterThreads +
+ + +

Notifies the object to unregister its worker threads from the Multimedia Class Scheduler Service (MMCSS).

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The object's worker threads should unregister themselves from MMCSS by calling AvRevertMmThreadCharacteristics.

+
+ + aa371717 + HRESULT IMFRealTimeClient::UnregisterThreads() + IMFRealTimeClient::UnregisterThreads +
+ + +

Specifies the work queue for the topology branch that contains this object.

+
+

The identifier of the work queue, or the value . See Remarks.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

An application can register a branch of the topology to use a private work queue. The Media Session notifies any pipeline object that supports by calling SetWorkQueue with the application's work queue identifier.

When the application unregisters the topology branch, the Media Session calls SetWorkQueue again with the value .

+
+ + aa367678 + HRESULT IMFRealTimeClient::SetWorkQueue([In] unsigned int dwWorkQueueId) + IMFRealTimeClient::SetWorkQueue +
+ + +

Specifies the work queue for the topology branch that contains this object.

+
+ +

An application can register a branch of the topology to use a private work queue. The Media Session notifies any pipeline object that supports by calling SetWorkQueue with the application's work queue identifier.

When the application unregisters the topology branch, the Media Session calls SetWorkQueue again with the value .

+
+ + aa367678 + SetWorkQueue + SetWorkQueue + HRESULT IMFRealTimeClient::SetWorkQueue([In] unsigned int dwWorkQueueId) +
+ + +

Used by the Microsoft Media Foundation proxy/stub DLL to marshal certain asynchronous method calls across process boundaries.

Applications do not use or implement this interface.

+
+ + bb970408 + IMFRemoteAsyncCallback + IMFRemoteAsyncCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Used by the Microsoft Media Foundation proxy/stub DLL to marshal certain asynchronous method calls across process boundaries.

Applications do not use or implement this interface.

+
+ No documentation. + No documentation. + No documentation. + + bb970408 + HRESULT IMFRemoteAsyncCallback::Invoke([In] HRESULT hr,[In, Optional] IUnknown* pRemoteResult) + IMFRemoteAsyncCallback::Invoke +
+ + +

Modifies a topology for use in a Terminal Services environment.

+
+ +

To use this interface, do the following:

  1. Call GetSystemMetrics with the SM_REMOTESESSION flag. The function returns TRUE if the calling process is associated with a Terminal Services client session.
  2. If GetSystemMetrics returns TRUE, call . This function returns a reference to the interface.
  3. Call UpdateTopology with a reference to the topology.

The application must call UpdateTopology before calling on the Media Session.

+
+ + ms698979 + IMFRemoteDesktopPlugin + IMFRemoteDesktopPlugin +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Modifies a topology for use in a Terminal Services environment.

+
+

Pointer to the interface of the topology.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

If the application is running in a Terminal Services client session, call this method before calling on the Media Session.

+
+ + ms699001 + HRESULT IMFRemoteDesktopPlugin::UpdateTopology([In] IMFTopology* pTopology) + IMFRemoteDesktopPlugin::UpdateTopology +
+ + +

Retrieves a reference to the remote object for which this object is a proxy.

+
+ + bb970370 + IMFRemoteProxy + IMFRemoteProxy +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a reference to the remote object for which this object is a proxy.

+
+

Interface identifier (IID) of the requested interface.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970370 + HRESULT IMFRemoteProxy::GetRemoteObject([In] const GUID& riid,[Out] void** ppv) + IMFRemoteProxy::GetRemoteObject +
+ + +

Retrieves a reference to the object that is hosting this proxy.

+
+

Interface identifier (IID) of the requested interface.

+

Receives a reference to the requested interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970549 + HRESULT IMFRemoteProxy::GetRemoteHost([In] const GUID& riid,[Out] void** ppv) + IMFRemoteProxy::GetRemoteHost +
+ + +

Sets the current style on the SAMI media source.

+
+ + bb970574 + IMFSAMIStyle + IMFSAMIStyle +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the number of styles defined in the SAMI file.

+
+

Receives the number of SAMI styles in the file.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + bb970341 + HRESULT IMFSAMIStyle::GetStyleCount([Out] unsigned int* pdwCount) + IMFSAMIStyle::GetStyleCount +
+ + +

Gets a list of the style names defined in the SAMI file.

+
+

Pointer to a that receives an array of null-terminated wide-character strings. The type is VT_VECTOR | VT_LPWSTR. The caller must clear the by calling PropVariantClear.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + bb970547 + HRESULT IMFSAMIStyle::GetStyles([Out] PROPVARIANT* pPropVarStyleArray) + IMFSAMIStyle::GetStyles +
+ + +

Sets the current style on the SAMI media source.

+
+

Pointer to a null-terminated string containing the name of the style. To clear the current style, pass an empty string (""). To get the list of style names, call .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + bb970574 + HRESULT IMFSAMIStyle::SetSelectedStyle([In] const wchar_t* pwszStyle) + IMFSAMIStyle::SetSelectedStyle +
+ + +

Gets the current style from the SAMI media source.

+
+

Receives a reference to a null-terminated string that contains the name of the style. If no style is currently set, the method returns an empty string. The caller must free the memory for the string by calling CoTaskMemFree.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + bb970429 + HRESULT IMFSAMIStyle::GetSelectedStyle([Out] wchar_t** ppwszStyle) + IMFSAMIStyle::GetSelectedStyle +
+ + +

Gets the number of styles defined in the SAMI file.

+
+ + bb970341 + GetStyleCount + GetStyleCount + HRESULT IMFSAMIStyle::GetStyleCount([Out] unsigned int* pdwCount) +
+ + +

Gets a list of the style names defined in the SAMI file.

+
+ + bb970547 + GetStyles + GetStyles + HRESULT IMFSAMIStyle::GetStyles([Out] PROPVARIANT* pPropVarStyleArray) +
+ + +

Represents a media sample, which is a container object for media data. For video, a sample typically contains one video frame. For audio data, a sample typically contains multiple audio samples, rather than a single sample of audio.

A media sample contains zero or more buffers. Each buffer manages a block of memory, and is represented by the interface. A sample can have multiple buffers. The buffers are kept in an ordered list and accessed by index value. It is also valid to have an empty sample with no buffers.

+
+ +

To create a new media sample, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms702192 + IMFSample + IMFSample +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves flags associated with the sample.

Currently no flags are defined. Instead, metadata for samples is defined using attributes. To get attibutes from a sample, use the interface, which inherits. For a list of sample attributes, see Sample Attributes.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701587 + HRESULT IMFSample::GetSampleFlags([Out] unsigned int* pdwSampleFlags) + IMFSample::GetSampleFlags +
+ + +

Sets flags associated with the sample.

Currently no flags are defined. Instead, metadata for samples is defined using attributes. To set attibutes on a sample, use the interface, which inherits. For a list of sample attributes, see Sample Attributes.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms696207 + HRESULT IMFSample::SetSampleFlags([In] unsigned int dwSampleFlags) + IMFSample::SetSampleFlags +
+ + +

Retrieves the presentation time of the sample.

+
+

Receives the presentation time, in 100-nanosecond units.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The sample does not have a presentation time.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms705645 + HRESULT IMFSample::GetSampleTime([Out] longlong* phnsSampleTime) + IMFSample::GetSampleTime +
+ + + No documentation. + + No documentation. + No documentation. + + HRESULT IMFSample::SetSampleTime([In] longlong hnsSampleTime) + IMFSample::SetSampleTime + + + +

Retrieves the duration of the sample.

+
+

Receives the duration, in 100-nanosecond units.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The sample does not have a specified duration.

?

+ +

If the sample contains more than one buffer, the duration includes the data from all of the buffers.

If the retrieved duration is zero, or if the method returns , the duration is unknown. In that case, it might be possible to calculate the duration from the media type?for example, by using the video frame rate or the audio sampling rate.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703056 + HRESULT IMFSample::GetSampleDuration([Out] longlong* phnsSampleDuration) + IMFSample::GetSampleDuration +
+ + +

Sets the duration of the sample.

+
+

Duration of the sample, in 100-nanosecond units.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method succeeds if the duration is negative, although negative durations are probably not valid for most types of data. It is the responsibility of the object that consumes the sample to validate the duration.

The duration can also be zero. This might be valid for some types of data. For example, the sample might contain stream metadata with no buffers.

Until this method is called, the method returns .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms705626 + HRESULT IMFSample::SetSampleDuration([In] longlong hnsSampleDuration) + IMFSample::SetSampleDuration +
+ + +

Retrieves the number of buffers in the sample.

+
+

Receives the number of buffers in the sample. A sample might contain zero buffers.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms705655 + HRESULT IMFSample::GetBufferCount([Out] unsigned int* pdwBufferCount) + IMFSample::GetBufferCount +
+ + +

Gets a buffer from the sample, by index.

Note??In most cases, it is safer to use the method. If the sample contains more than one buffer, the ConvertToContiguousBuffer method replaces them with a single buffer, copies the original data into that buffer, and returns the new buffer to the caller. The copy operation occurs at most once. On subsequent calls, no data is copied.

+
+ No documentation. + No documentation. + +

A sample might contain more than one buffer. Use the GetBufferByIndex method to enumerate the individual buffers.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697014 + HRESULT IMFSample::GetBufferByIndex([In] unsigned int dwIndex,[Out] IMFMediaBuffer** ppBuffer) + IMFSample::GetBufferByIndex +
+ + +

Converts a sample with multiple buffers into a sample with a single buffer.

+
+

Receives a reference to the interface. The caller must release the interface.

+ +

If the sample contains more than one buffer, this method copies the data from the original buffers into a new buffer, and replaces the original buffer list with the new buffer. The new buffer is returned in the ppBuffer parameter.

If the sample contains a single buffer, this method returns a reference to the original buffer. In typical use, most samples do not contain multiple buffers.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms698917 + HRESULT IMFSample::ConvertToContiguousBuffer([Out] IMFMediaBuffer** ppBuffer) + IMFSample::ConvertToContiguousBuffer +
+ + +

Adds a buffer to the end of the list of buffers in the sample.

+
+

Pointer to the buffer's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

null reference argument.

?

+ +

For uncompressed video data, each buffer should contain a single video frame, and samples should not contain multiple frames. In general, storing multiple buffers in a sample is discouraged.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms697465 + HRESULT IMFSample::AddBuffer([In] IMFMediaBuffer* pBuffer) + IMFSample::AddBuffer +
+ + +

Removes a buffer at a specified index from the sample.

+
+

Index of the buffer. To find the number of buffers in the sample, call . Buffers are indexed from zero.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms705646 + HRESULT IMFSample::RemoveBufferByIndex([In] unsigned int dwIndex) + IMFSample::RemoveBufferByIndex +
+ + +

Removes all of the buffers from the sample.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703108 + HRESULT IMFSample::RemoveAllBuffers() + IMFSample::RemoveAllBuffers +
+ + +

Retrieves the total length of the valid data in all of the buffers in the sample. The length is calculated as the sum of the values retrieved by the method.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704584 + HRESULT IMFSample::GetTotalLength([Out] unsigned int* pcbTotalLength) + IMFSample::GetTotalLength +
+ + +

Copies the sample data to a buffer. This method concatenates the valid data from all of the buffers of the sample, in order.

+
+

Pointer to the interface of the destination buffer. The buffer must be large enough to hold the valid data in the sample. To get the size of the data in the sample, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

null reference argument.

The buffer is not large enough to contain the data.

?

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703119 + HRESULT IMFSample::CopyToBuffer([In] IMFMediaBuffer* pBuffer) + IMFSample::CopyToBuffer +
+ + +

Retrieves flags associated with the sample.

Currently no flags are defined. Instead, metadata for samples is defined using attributes. To get attibutes from a sample, use the interface, which inherits. For a list of sample attributes, see Sample Attributes.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701587 + GetSampleFlags / SetSampleFlags + GetSampleFlags + HRESULT IMFSample::GetSampleFlags([Out] unsigned int* pdwSampleFlags) +
+ + +

Retrieves the presentation time of the sample.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms705645 + GetSampleTime / SetSampleTime + GetSampleTime + HRESULT IMFSample::GetSampleTime([Out] longlong* phnsSampleTime) +
+ + +

Retrieves the duration of the sample.

+
+ +

If the sample contains more than one buffer, the duration includes the data from all of the buffers.

If the retrieved duration is zero, or if the method returns , the duration is unknown. In that case, it might be possible to calculate the duration from the media type?for example, by using the video frame rate or the audio sampling rate.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703056 + GetSampleDuration / SetSampleDuration + GetSampleDuration + HRESULT IMFSample::GetSampleDuration([Out] longlong* phnsSampleDuration) +
+ + +

Retrieves the number of buffers in the sample.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms705655 + GetBufferCount + GetBufferCount + HRESULT IMFSample::GetBufferCount([Out] unsigned int* pdwBufferCount) +
+ + +

Retrieves the total length of the valid data in all of the buffers in the sample. The length is calculated as the sum of the values retrieved by the method.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms704584 + GetTotalLength + GetTotalLength + HRESULT IMFSample::GetTotalLength([Out] unsigned int* pcbTotalLength) +
+ + +

Provides encryption for media data inside the protected media path (PMP).

+
+ + ms703018 + IMFSampleProtection + IMFSampleProtection +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the version of sample protection that the component implements on input.

+
+

Receives a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970365 + HRESULT IMFSampleProtection::GetInputProtectionVersion([Out] unsigned int* pdwVersion) + IMFSampleProtection::GetInputProtectionVersion +
+ + +

Retrieves the version of sample protection that the component implements on output.

+
+

Receives a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970415 + HRESULT IMFSampleProtection::GetOutputProtectionVersion([Out] unsigned int* pdwVersion) + IMFSampleProtection::GetOutputProtectionVersion +
+ + +

Retrieves the sample protection certificate.

+
+

Specifies the version number of the sample protection scheme for which to receive a certificate. The version number is specified as a enumeration value.

+

Receives a reference to a buffer containing the certificate. The caller must free the memory for the buffer by calling CoTaskMemFree.

+

Receives the size of the ppCert buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented.

?

+ +

For certain version numbers of sample protection, the downstream component must provide a certificate. Components that do not support these version numbers can return E_NOTIMPL.

+
+ + bb970503 + HRESULT IMFSampleProtection::GetProtectionCertificate([In] unsigned int dwVersion,[Out, Buffer] unsigned char** ppCert,[Out] unsigned int* pcbCert) + IMFSampleProtection::GetProtectionCertificate +
+ + +

Retrieves initialization information for sample protection from the upstream component.

+
+

Specifies the version number of the sample protection scheme. The version number is specified as a enumeration value.

+

Identifier of the output stream. The identifier corresponds to the output stream identifier returned by the interface.

+

Pointer to a certificate provided by the downstream component.

+

Size of the certificate, in bytes.

+

Receives a reference to a buffer that contains the initialization information for downstream component. The caller must free the memory for the buffer by calling CoTaskMemFree.

+

Receives the size of the ppbSeed buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented.

?

+ +

This method must be implemented by the upstream component. The method fails if the component does not support the requested sample protection version. Downstream components do not implement this method and should return E_NOTIMPL.

+
+ + ms693577 + HRESULT IMFSampleProtection::InitOutputProtection([In] unsigned int dwVersion,[In] unsigned int dwOutputId,[In] unsigned char* pbCert,[In] unsigned int cbCert,[In] unsigned char** ppbSeed,[In] unsigned int* pcbSeed) + IMFSampleProtection::InitOutputProtection +
+ + +

Initializes sample protection on the downstream component.

+
+

Specifies the version number of the sample protection scheme. The version number is specified as a enumeration value.

+

Identifier of the input stream. The identifier corresponds to the output stream identifier returned by the interface.

+

Pointer to a buffer that contains the initialization data provided by the upstream component. To retrieve this buffer, call .

+

Size of the pbSeed buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms696181 + HRESULT IMFSampleProtection::InitInputProtection([In] unsigned int dwVersion,[In] unsigned int dwInputId,[In] unsigned char* pbSeed,[In] unsigned int cbSeed) + IMFSampleProtection::InitInputProtection +
+ + +

Retrieves the version of sample protection that the component implements on input.

+
+ + bb970365 + GetInputProtectionVersion + GetInputProtectionVersion + HRESULT IMFSampleProtection::GetInputProtectionVersion([Out] unsigned int* pdwVersion) +
+ + +

Retrieves the version of sample protection that the component implements on output.

+
+ + bb970415 + GetOutputProtectionVersion + GetOutputProtectionVersion + HRESULT IMFSampleProtection::GetOutputProtectionVersion([Out] unsigned int* pdwVersion) +
+ + +

Persists media data from a source byte stream to an application-provided byte stream.

The byte stream used for HTTP download implements this interface. To get a reference to this interface, call on the byte stream, with the service identifier .

+
+ + ms694247 + IMFSaveJob + IMFSaveJob +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Begins saving a Windows Media file to the application's byte stream.

+
+

Pointer to the interface of the application's byte stream. The data from the source byte stream is written to this byte stream.

+

Pointer to the interface of a callback object. The caller must implement this interface

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

+
+ + ms705664 + HRESULT IMFSaveJob::BeginSave([In] IMFByteStream* pStream,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFSaveJob::BeginSave +
+ + +

Completes the operation started by .

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms701610 + HRESULT IMFSaveJob::EndSave([In] IMFAsyncResult* pResult) + IMFSaveJob::EndSave +
+ + +

Cancels the operation started by .

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms703196 + HRESULT IMFSaveJob::CancelSave() + IMFSaveJob::CancelSave +
+ + +

Retrieves the percentage of content saved to the provided byte stream.

+
+

Receives the percentage of completion.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms700176 + HRESULT IMFSaveJob::GetProgress([Out] unsigned int* pdwPercentComplete) + IMFSaveJob::GetProgress +
+ + +

Retrieves the percentage of content saved to the provided byte stream.

+
+ + ms700176 + GetProgress + GetProgress + HRESULT IMFSaveJob::GetProgress([Out] unsigned int* pdwPercentComplete) +
+ + +

Creates a media source or a byte stream from a URL.

+
+ +

Applications do not use this interface. This interface is exposed by scheme handlers, which are used by the source resolver. A scheme handler is designed to parse one type of URL scheme. When the scheme handler is given a URL, it parses the resource that is located at that URL and creates either a media source or a byte stream.

+
+ + ms701638 + IMFSchemeHandler + IMFSchemeHandler +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Begins an asynchronous request to create an object from a URL.

When the Source Resolver creates a media source from a URL, it passes the request to a scheme handler. The scheme handler might create a media source directly from the URL, or it might return a byte stream. If it returns a byte stream, the source resolver use a byte-stream handler to create the media source from the byte stream.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_ACCESSDENIED

Cannot open the URL with the requested access (read or write).

Unsupported byte stream type.

?

+ +

The dwFlags parameter must contain the flag or the flag. If the flag is set, the scheme handler might create the media source directly from the URL, or it might create a byte stream. The type of object is returned in the pObjectType parameter of the method. If the scheme handler returns a byte stream, the source resolver will pass the byte stream to a byte-stream handler, which will create the media source from the byte stream.

If the flag is set, the scheme handler will attempt to create a byte stream from the URL. However, if the scheme handler is designed to create a media source directly, rather than a byte stream, the method will fail.

The following table summarizes the behavior of these two flags when passed to this method:

FlagObject created
Media source or byte stream
Byte stream

?

The and flags can be combined, although in this case it is redundant.

When the operation completes, the scheme handler calls the method. The Invoke method should call to get a reference to the created object.

+
+ + bb970433 + HRESULT IMFSchemeHandler::BeginCreateObject([In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out, Optional] IUnknown** ppIUnknownCancelCookie,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFSchemeHandler::BeginCreateObject +
+ + +

Completes an asynchronous request to create an object from a URL.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the Invoke method.

+

Receives a member of the enumeration, specifying the type of object that was created.

+

Receives a reference to the interface of the object. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_ABORT

The operation was canceled.

?

+ +

Call this method from inside the method.

+
+ + bb970550 + HRESULT IMFSchemeHandler::EndCreateObject([In] IMFAsyncResult* pResult,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSchemeHandler::EndCreateObject +
+ + +

Cancels the current request to create an object from a URL.

+
+

Pointer to the interface that was returned in the ppIUnknownCancelCookie parameter of the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You can use this method to cancel a previous call to BeginCreateObject. Because that method is asynchronous, however, it might be completed before the operation can be canceled. Therefore, your callback might still be invoked after you call this method.

The operation cannot be canceled if BeginCreateObject returns null in the ppIUnknownCancelCookie parameter.

+
+ + bb970419 + HRESULT IMFSchemeHandler::CancelObjectCreation([In] IUnknown* pIUnknownCancelCookie) + IMFSchemeHandler::CancelObjectCreation +
+ + +

Retrieves the client's certificate.

+
+ + bb970528 + IMFSecureChannel + IMFSecureChannel +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the client's certificate.

+
+

Receives a reference to a buffer allocated by the object. The buffer contains the client's certificate. The caller must release the buffer by calling CoTaskMemFree.

+

Receives the size of the ppCert buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970528 + HRESULT IMFSecureChannel::GetCertificate([Out, Buffer] unsigned char** ppCert,[Out] unsigned int* pcbCert) + IMFSecureChannel::GetCertificate +
+ + +

Passes the encrypted session key to the client.

+
+

Pointer to a buffer that contains the encrypted session key. This parameter can be null.

+

Size of the pbEncryptedSessionKey buffer, in bytes.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970477 + HRESULT IMFSecureChannel::SetupSession([In, Buffer] unsigned char* pbEncryptedSessionKey,[In] unsigned int cbSessionKey) + IMFSecureChannel::SetupSession +
+ + +

Maps a presentation descriptor to its associated sequencer element identifier and the topology it represents.

+
+ +

The topology returned in ppTopology is the original topology that the application specified in AppendTopology. The source nodes in this topology contain references to the native sources. Do not queue this topology on the Media Session. Instead, call to get the sequencer source's modified topology. The source nodes in the modified topology contain references to the sequencer source, rather than the native sources.

+
+ + bb970514 + IMFSequencerSource + IMFSequencerSource +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Adds a topology to the end of the queue.

+
+

Pointer to the interface of the topology. This reference cannot be null. If an application passes null, the call fails with an E_INVALIDARG error code.

+

A combination of flags from the enumeration.

+

Receives the sequencer element identifier for this topology.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The source topology node is missing one of the following attributes:

?

+ +

The sequencer plays topologies in the order they are queued. You can queue as many topologies as you want to preroll.

The application must indicate to the sequencer when it has queued the last topology on the Media Session. To specify the last topology, set the SequencerTopologyFlags_Last flag in the dwFlags parameter when you append the topology. The sequencer uses this information to end playback with the pipeline. Otherwise, the sequencer waits indefinitely for a new topology to be queued.

+
+ + ms697046 + HRESULT IMFSequencerSource::AppendTopology([In] IMFTopology* pTopology,[In] unsigned int dwFlags,[Out] unsigned int* pdwId) + IMFSequencerSource::AppendTopology +
+ + +

Deletes a topology from the queue.

+
+

The sequencer element identifier of the topology to delete.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970428 + HRESULT IMFSequencerSource::DeleteTopology([In] unsigned int dwId) + IMFSequencerSource::DeleteTopology +
+ + +

Maps a presentation descriptor to its associated sequencer element identifier and the topology it represents.

+
+

Pointer to the interface of the presentation descriptor.

+

Receives the sequencer element identifier. This value is assigned by the sequencer source when the application calls . This parameter is optional and can be null.

+

Receives a reference to the interface of the original topology that the application added to the sequencer source. The caller must release the interface. This parameter can receive the value null if the sequencer source has switched to the next presentation. This parameter is optional and can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The presentation descriptor is not valid.

MF_S_SEQUENCER_CONTEXT_CANCELED

This segment was canceled.

?

+ +

The topology returned in ppTopology is the original topology that the application specified in AppendTopology. The source nodes in this topology contain references to the native sources. Do not queue this topology on the Media Session. Instead, call to get the sequencer source's modified topology. The source nodes in the modified topology contain references to the sequencer source, rather than the native sources.

+
+ + bb970514 + HRESULT IMFSequencerSource::GetPresentationContext([In] IMFPresentationDescriptor* pPD,[Out, Optional] unsigned int* pId,[Out, Optional] IMFTopology** ppTopology) + IMFSequencerSource::GetPresentationContext +
+ + +

Updates a topology in the queue.

+
+

Sequencer element identifier of the topology to update.

+

Pointer to the interface of the updated topology object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The sequencer source has been shut down.

?

+ +

This method is asynchronous. When the operation is completed, the sequencer source sends an event.

+
+ + bb970402 + HRESULT IMFSequencerSource::UpdateTopology([In] unsigned int dwId,[In] IMFTopology* pTopology) + IMFSequencerSource::UpdateTopology +
+ + +

Updates the flags for a topology in the queue.

+
+

Sequencer element identifier of the topology to update.

+

Bitwise OR of flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970564 + HRESULT IMFSequencerSource::UpdateTopologyFlags([In] unsigned int dwId,[In] unsigned int dwFlags) + IMFSequencerSource::UpdateTopologyFlags +
+ + +

Queries an object for a specified service interface.

+
+ +

A service is an interface that is exposed by one object but might be implemented by another object. The GetService method is equivalent to QueryInterface, with the following difference: when QueryInterface retrieves a reference to an interface, it is guaranteed that you can query the returned interface and get back the original interface. The GetService method does not make this guarantee, because the retrieved interface might be implemented by a separate object.

The function is a helper function that queries an object for and calls the GetService method.

+
+ + ms694261 + IMFGetService + IMFGetService +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves a service interface.

+
+

The service identifier (SID) of the service. For a list of service identifiers, see Service Interfaces.

+

The interface identifier (IID) of the interface being requested.

+

Receives the interface reference. The caller must release the interface.

+ + ms696978 + HRESULT IMFGetService::GetService([In] const GUID& guidService,[In] const GUID& riid,[Out] void** ppvObject) + IMFGetService::GetService +
+ + +

Applies to: desktop apps | Metro style apps

Retrieves a service interface.

+
+ Type of the interface to retrieve +

The service identifier (SID) of the service. For a list of service identifiers, see Service Interfaces.

+ An instance of T if the service is supported + if the service is not supported + ms696978 + HRESULT IMFGetService::GetService([In] const GUID& guidService,[In] const GUID& riid,[Out] void** ppvObject) + IMFGetService::GetService +
+ + +

Exposed by some Media Foundation objects that must be explicitly shut down.

+
+ +

The following types of object expose :

  • Content enablers ( interface)
  • Input trust authorities ( interface)
  • Presentation clocks ( interface)
  • Asynchronous MFTs

Any component that creates one of these objects is responsible for calling Shutdown on the object before releasing the object. Typically, applications do not create any of these objects directly, so it is not usually necessary to use this interface in an application.

To obtain a reference to this interface, call QueryInterface on the object.

If you are implementing a custom object, your object can expose this interface, but only if you can guarantee that your application will call Shutdown.

Media sources, media sinks, and synchronous MFTs should not implement this interface, because the Media Foundation pipeline will not call Shutdown on these objects. Asynchronous MFTs must implement this interface.

This interface is not related to the function, which shuts down the Media Foundation platform, as described in Initializing Media Foundation.

Some Media Foundation interfaces define a Shutdown method, which serves the same purpose as but is not directly related to it.

+
+ + ms703054 + IMFShutdown + IMFShutdown +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Shuts down a Media Foundation object and releases all resources associated with the object.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The helper function is equivalent to calling this method.

+
+ + ms701615 + HRESULT IMFShutdown::Shutdown() + IMFShutdown::Shutdown +
+ + +

Queries the status of an earlier call to the method.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

The Shutdown method has not been called on this object.

?

+ +

Until Shutdown is called, the GetShutdownStatus method returns .

If an object's Shutdown method is asynchronous, pStatus might receive the value . When the object is completely shut down, pStatus receives the value .

+
+ + bb970451 + HRESULT IMFShutdown::GetShutdownStatus([Out] MFSHUTDOWN_STATUS* pStatus) + IMFShutdown::GetShutdownStatus +
+ + +

Queries the status of an earlier call to the method.

+
+ +

Until Shutdown is called, the GetShutdownStatus method returns .

If an object's Shutdown method is asynchronous, pStatus might receive the value . When the object is completely shut down, pStatus receives the value .

+
+ + bb970451 + GetShutdownStatus + GetShutdownStatus + HRESULT IMFShutdown::GetShutdownStatus([Out] MFSHUTDOWN_STATUS* pStatus) +
+ + +

Controls the master volume level of the audio session associated with the streaming audio renderer (SAR) and the audio capture source.

The SAR and the audio capture source expose this interface as a service. To get a reference to the interface, call . For the SAR, use the service identifier . For the audio capture source, use the service identifier MR_CAPTURE_POLICY_VOLUME_SERVICE. You can call GetService directly on the SAR or the audio capture source, or call it on the Media Session.

+
+ +

To control the volume levels of individual channels, use the interface. The interface is supported by the SAR only.

Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation). For each channel, the attenuation level is the product of:

  • The master volume level of the audio session.

  • The volume level of the channel.

For example, if the master volume is 0.8 and the channel volume is 0.5, the attenuaton for that channel is 0.8 ? 0.5 = 0.4. Volume levels can exceed 1.0 (positive gain), but the audio engine clips any audio samples that exceed zero decibels. To change the volume level of individual channels, use the interface.

Use the following formula to convert the volume level to the decibel (dB) scale:

Attenuation (dB) = 20 * log10(Level)

For example, a volume level of 0.50 represents 6.02 dB of attenuation.

+
+ + ms693496 + IMFSimpleAudioVolume + IMFSimpleAudioVolume +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the master volume level.

+
+

Volume level. Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation).

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The audio renderer is not initialized.

The audio renderer was removed from the pipeline.

?

+ +

Events outside of the application can change the master volume level. For example, the user can change the volume from the system volume-control program (SndVol). If an external event changes the master volume, the audio renderer sends an event, which the Media Session forwards to the application.

+
+ + bb970391 + HRESULT IMFSimpleAudioVolume::SetMasterVolume([In] float fLevel) + IMFSimpleAudioVolume::SetMasterVolume +
+ + +

Retrieves the master volume level.

+
+

Receives the volume level. Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation).

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The audio renderer is not initialized.

The audio renderer was removed from the pipeline.

?

+ +

If an external event changes the master volume, the audio renderer sends an event, which the Media Session forwards to the application.

+
+ + bb970319 + HRESULT IMFSimpleAudioVolume::GetMasterVolume([Out] float* pfLevel) + IMFSimpleAudioVolume::GetMasterVolume +
+ + +

Mutes or unmutes the audio.

+
+

Specify TRUE to mute the audio, or to unmute the audio.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The audio renderer is not initialized.

The audio renderer was removed from the pipeline.

?

+ +

This method does not change the volume level returned by the function.

+
+ + bb970531 + HRESULT IMFSimpleAudioVolume::SetMute([In] const BOOL bMute) + IMFSimpleAudioVolume::SetMute +
+ + +

Queries whether the audio is muted.

+
+

Receives a Boolean value. If TRUE, the audio is muted; otherwise, the audio is not muted.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The audio renderer is not initialized.

The audio renderer was removed from the pipeline.

?

+ +

Calling to set the volume does not change whether the audio is muted.

+
+ + bb970332 + HRESULT IMFSimpleAudioVolume::GetMute([Out] BOOL* pbMute) + IMFSimpleAudioVolume::GetMute +
+ + +

Retrieves the master volume level.

+
+ +

If an external event changes the master volume, the audio renderer sends an event, which the Media Session forwards to the application.

+
+ + bb970319 + GetMasterVolume / SetMasterVolume + GetMasterVolume + HRESULT IMFSimpleAudioVolume::GetMasterVolume([Out] float* pfLevel) +
+ + +

Queries whether the audio is muted.

+
+ +

Calling to set the volume does not change whether the audio is muted.

+
+ + bb970332 + GetMute / SetMute + GetMute + HRESULT IMFSimpleAudioVolume::GetMute([Out] BOOL* pbMute) +
+ + +

Implemented by the Microsoft Media Foundation sink writer object.

+
+ +

To create the sink writer, call one of the following functions:

Alternatively, use the interface.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

In Windows?8, this interface is extended with IMFSinkWriterEx.

+
+ + dd374642 + IMFSinkWriter + IMFSinkWriter +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Adds a stream to the sink writer.

+
+

A reference to the interface of a media type. This media type specifies the format of the samples that will be written to the file. It does not need to match the input format. To set the input format, call .

+

Receives the zero-based index of the new stream.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374646 + HRESULT IMFSinkWriter::AddStream([In] IMFMediaType* pTargetMediaType,[Out] unsigned int* pdwStreamIndex) + IMFSinkWriter::AddStream +
+ + +

Sets the input format for a stream on the sink writer.

+
+

The zero-based index of the stream. The index is received by the pdwStreamIndex parameter of the method.

+

A reference to the interface of a media type. The media type specifies the input format.

+

A reference to the interface of an attribute store. Use the attribute store to configure the encoder. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The underlying media sink does not support the format, no conversion is possible, or a dynamic format change is not possible.

The dwStreamIndex parameter is invalid.

Could not find an encoder for the encoded format.

?

+ +

The input format does not have to match the target format that is written to the media sink. If the formats do not match, the method attempts to load an encoder that can encode from the input format to the target format.

After streaming begins?that is, after the first call to ?you can call this method at any time to change the input format. However, the underlying encoder and media sink must support dynamic format changes.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374653 + HRESULT IMFSinkWriter::SetInputMediaType([In] unsigned int dwStreamIndex,[In] IMFMediaType* pInputMediaType,[In, Optional] IMFAttributes* pEncodingParameters) + IMFSinkWriter::SetInputMediaType +
+ + +

Initializes the sink writer for writing.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The request is invalid.

?

+ +

Call this method after you configure the input streams and before you send any data to the sink writer.

You must call BeginWriting before calling any of the following methods:

The underlying media sink must have at least one input stream. Otherwise, BeginWriting returns . To add input streams, call the method.

If BeginWriting succeeds, any further calls to BeginWriting return .

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374647 + HRESULT IMFSinkWriter::BeginWriting() + IMFSinkWriter::BeginWriting +
+ + +

Delivers a sample to the sink writer.

+
+

The zero-based index of the stream for this sample.

+

A reference to the interface of the sample.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The request is invalid.

?

+ +

You must call before calling this method. Otherwise, the method returns .

By default, the sink writer limits the rate of incoming data by blocking the calling thread inside the WriteSample method. This prevents the application from delivering samples too quickly. To disable this behavior, set the attribute when you create the sink writer.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374654 + HRESULT IMFSinkWriter::WriteSample([In] unsigned int dwStreamIndex,[In] IMFSample* pSample) + IMFSinkWriter::WriteSample +
+ + +

Indicates a gap in an input stream.

+
+

The zero-based index of the stream.

+

The position in the stream where the gap in the data occurs. The value is given in 100-nanosecond units, relative to the start of the stream.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

For video, call this method once for each missing frame. For audio, call this method at least once per second during a gap in the audio. Set the attribute on the first media sample after the gap.

Internally, this method calls on the media sink.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374652 + HRESULT IMFSinkWriter::SendStreamTick([In] unsigned int dwStreamIndex,[In] longlong llTimestamp) + IMFSinkWriter::SendStreamTick +
+ + +

Places a marker in the specified stream.

+
+

The zero-based index of the stream.

+

Pointer to an application-defined value. The value of this parameter is returned to the caller in the pvContext parameter of the caller's callback method. The application is responsible for any memory allocation associated with this data. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The request is invalid.

?

+ +

To use this method, you must provide an asynchronous callback when you create the sink writer. Otherwise, the method returns . For more information, see .

Markers provide a way to be notified when the media sink consumes all of the samples in a stream up to a certain point. The media sink does not process the marker until it has processed all of the samples that came before the marker. When the media sink processes the marker, the sink writer calls the application's OnMarker method. When the callback is invoked, you know that the sink has consumed all of the previous samples for that stream.

For example, to change the format midstream, call PlaceMarker at the point where the format changes. When OnMarker is called, it is safe to call to change the input type (assuming that the media sink supports dynamic format changes).

Internally, this method calls on the media sink.

Note??The pvContext parameter of the method is not passed to the pvarContextValue parameter of the method. These two parameters are not directly related.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374651 + HRESULT IMFSinkWriter::PlaceMarker([In] unsigned int dwStreamIndex,[In] void* pvContext) + IMFSinkWriter::PlaceMarker +
+ + +

Notifies the media sink that a stream has reached the end of a segment.

+
+

The zero-based index of a stream, or to signal that all streams have reached the end of a segment.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The request is invalid.

?

+ +

You must call before calling this method. Otherwise, the method returns .

This method sends an marker to the media sink for the specified streams. For more information, see .

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd743366 + HRESULT IMFSinkWriter::NotifyEndOfSegment([In] unsigned int dwStreamIndex) + IMFSinkWriter::NotifyEndOfSegment +
+ + +

Flushes one or more streams.

+
+

The zero-based index of the stream to flush, or to flush all of the streams.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The request is invalid.

?

+ +

You must call before calling this method. Otherwise, the method returns .

For each stream that is flushed, the sink writer drops all pending samples, flushes the encoder, and sends an marker to the media sink.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd743365 + HRESULT IMFSinkWriter::Flush([In] unsigned int dwStreamIndex) + IMFSinkWriter::Flush +
+ + +

Completes all writing operations on the sink writer.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method after you send all of the input samples to the sink writer. The method performs any operations needed to create the final output from the media sink.

If you provide a callback interface when you create the sink writer, this method completes asynchronously. When the operation completes, the method of your callback is called. For more information, see . Otherwise, if you do not provide a callback, the Finalize method blocks until the operation completes.

Internally, this method calls to place end-of-segment markers for each stream on the media sink. It also calls and EndFinalize if the media sink supports the interface.

After this method is called, the following methods will fail:

If you do not call Finalize, the output from the media sink might be incomplete or invalid. For example, required file headers might be missing from the output file.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374648 + HRESULT IMFSinkWriter::Finalize() + IMFSinkWriter::Finalize +
+ + +

Queries the underlying media sink or encoder for an interface.

+
+

The zero-based index of a stream to query, or to query the media sink itself.

+

A service identifier , or GUID_NULL. If the value is GUID_NULL, the method calls QueryInterface to get the requested interface. Otherwise, the method calls . For a list of service identifiers, see Service Interfaces.

+

The interface identifier (IID) of the interface being requested.

+

Receives a reference to the requested interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the dwStreamIndex parameter equals , the method attempts to get the interface from the media sink. Otherwise, it attempts to get the interface from the encoder for the stream at the specified index. If that fails, or if no encoder is present, the method attempts to get the interface from the stream on the media sink.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374649 + HRESULT IMFSinkWriter::GetServiceForStream([In] unsigned int dwStreamIndex,[In] const GUID& guidService,[In] const GUID& riid,[Out] void** ppvObject) + IMFSinkWriter::GetServiceForStream +
+ + +

Gets statistics about the performance of the sink writer.

+
+

The zero-based index of a stream to query, or to query the media sink itself.

+

A reference to an structure. Before calling the method, set the cb member to the size of the structure in bytes. The method fills the structure with statistics from the sink writer.

+

This method can return one of these values.

Return codeDescription

Success.

Invalid stream number.

?

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374650 + HRESULT IMFSinkWriter::GetStatistics([In] unsigned int dwStreamIndex,[Out] MF_SINK_WRITER_STATISTICS* pStats) + IMFSinkWriter::GetStatistics +
+ + +

Called when the method completes.

+
+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374645 + IMFSinkWriterCallback + IMFSinkWriterCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called when the method completes.

+
+ No documentation. +

Returns an value. Currently, the sink writer ignores the return value.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374644 + HRESULT IMFSinkWriterCallback::OnFinalize([In] HRESULT hrStatus) + IMFSinkWriterCallback::OnFinalize +
+ + +

Called when the method completes.

+
+ No documentation. + No documentation. +

Returns an value. Currently, the sink writer ignores the return value.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374645 + HRESULT IMFSinkWriterCallback::OnMarker([In] unsigned int dwStreamIndex,[In] void* pvContext) + IMFSinkWriterCallback::OnMarker +
+ + +

Called by the network source when the open operation begins or ends.

+
+ +

The networks source calls this method with the following event types.

For more information, see How to Get Events from the Network Source.

+
+ + ms694870 + IMFSourceOpenMonitor + IMFSourceOpenMonitor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called by the network source when the open operation begins or ends.

+
+

Pointer to the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The networks source calls this method with the following event types.

For more information, see How to Get Events from the Network Source.

+
+ + ms694870 + HRESULT IMFSourceOpenMonitor::OnSourceEvent([In, Optional] IMFMediaEvent* pEvent) + IMFSourceOpenMonitor::OnSourceEvent +
+ + +

Implemented by the Microsoft Media Foundation source reader object.

+
+ +

To create the source reader, call one of the following functions:

Alternatively, use the interface.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

In Windows?8, this interface is extended with IMFSourceReaderEx.

+
+ + dd374655 + IMFSourceReader + IMFSourceReader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Queries whether a stream is selected.

+
+

The stream to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

?

+

Receives TRUE if the stream is selected and will generate data. Receives if the stream is not selected and will not generate data.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374664 + HRESULT IMFSourceReader::GetStreamSelection([In] unsigned int dwStreamIndex,[Out] BOOL* pfSelected) + IMFSourceReader::GetStreamSelection +
+ + +

Selects or deselects one or more streams.

+
+

The stream to set. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFE

All streams.

?

+

Specify TRUE to select streams or to deselect streams. If a stream is deselected, it will not generate data.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

There are two common uses for this method:

  • To change the default stream selection. Some media files contain multiple streams of the same type. For example, a file might include audio streams for multiple languages. You can use this method to change which of the streams is selected. To get information about each stream, call or .
  • If you will not need data from one of the streams, it is a good idea to deselect that stream. If the stream is selected, the media source might hold onto a queue of unread data, and the queue might grow indefinitely, consuming memory.

For an example of deselecting a stream, see Tutorial: Decoding Audio.

If a stream is deselected, the method returns for that stream. Other methods are valid for deselected streams.

Stream selection does not affect how the source reader loads or unloads decoders in memory. In particular, deselecting a stream does not force the source reader to unload the decoder for that stream.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374669 + HRESULT IMFSourceReader::SetStreamSelection([In] unsigned int dwStreamIndex,[In] BOOL fSelected) + IMFSourceReader::SetStreamSelection +
+ + +

Gets a format that is supported natively by the media source.

+
+

Specifies which stream to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

?

+

The zero-based index of the media type to retrieve.

+

Receives a reference to the interface. The caller must release the interface.

+ +

This method queries the underlying media source for its native output format. Potentially, each source stream can produce more than one output format. Use the dwMediaTypeIndex parameter to loop through the available formats. Generally, file sources offer just one format per stream, but capture devices might offer several formats.

The method returns a copy of the media type, so it is safe to modify the object received in the ppMediaType parameter.

To set the output type for a stream, call the method.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374661 + HRESULT IMFSourceReader::GetNativeMediaType([In] unsigned int dwStreamIndex,[In] unsigned int dwMediaTypeIndex,[Out] IMFMediaType** ppMediaType) + IMFSourceReader::GetNativeMediaType +
+ + +

Gets the current media type for a stream.

+
+

The stream to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

?

+

Receives a reference to the interface. The caller must release the interface.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374660 + HRESULT IMFSourceReader::GetCurrentMediaType([In] unsigned int dwStreamIndex,[Out] IMFMediaType** ppMediaType) + IMFSourceReader::GetCurrentMediaType +
+ + +

Sets the media type for a stream.

This media type defines that format that the Source Reader produces as output. It can differ from the native format provided by the media source. See Remarks for more information.

+
+ No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

At least one decoder was found for the native stream type, but the type specified by pMediaType was rejected.

One or more sample requests are still pending.

The dwStreamIndex parameter is invalid.

Could not find a decoder for the native stream type.

?

+ +

For each stream, you can set the media type to any of the following:

  • One of the native types offered by the media source. To enumerate the native types, call .
  • If the native media type is compressed, you can specify a corresponding uncompressed format. The Source Reader will search for a decoder that can decode from the native format to the specified uncompressed format.

Audio resampling support was added to the source reader with Windows?8. In versions of Windows prior to Windows?8, the source reader does not support audio resampling. If you need to resample the audio in versions of Windows earlier than Windows?8, you can use the Audio Resampler DSP.

If you set the attribute to TRUE when you create the Source Reader, the Source Reader will convert YUV video to RGB-32. This conversion is not optimized for real-time video playback.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374667 + HRESULT IMFSourceReader::SetCurrentMediaType([In] unsigned int dwStreamIndex,[In] void* pdwReserved,[In] IMFMediaType* pMediaType) + IMFSourceReader::SetCurrentMediaType +
+ + +

Seeks to a new position in the media source.

+
+

A that specifies the time format. The time format defines the units for the varPosition parameter. The following value is defined for all media sources:

ValueMeaning
GUID_NULL

100-nanosecond units.

?

Some media sources might support additional values.

+

The position from which playback will be started. The units are specified by the guidTimeFormat parameter. If the guidTimeFormat parameter is GUID_NULL, set the variant type to VT_I8.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

One or more sample requests are still pending.

?

+ +

The SetCurrentPosition method does not guarantee exact seeking. The accuracy of the seek depends on the media content. If the media content contains a video stream, the SetCurrentPosition method typically seeks to the nearest key frame before the desired position. The distance between key frames depends on several factors, including the encoder implementation, the video content, and the particular encoding settings used to encode the content. The distance between key frame can vary within a single video file (for example, depending on scene complexity).

After seeking, the application should call and advance to the desired position.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374668 + HRESULT IMFSourceReader::SetCurrentPosition([In] const GUID& guidTimeFormat,[In] const PROPVARIANT& varPosition) + IMFSourceReader::SetCurrentPosition +
+ + +

Reads the next sample from the media source.

+
+

The stream to pull data from. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFE

Get the next available sample, regardless of which stream.

?

+

A bitwise OR of zero or more flags from the enumeration.

+

Receives the zero-based index of the stream.

+

Receives a bitwise OR of zero or more flags from the enumeration.

+

Receives the time stamp of the sample, or the time of the stream event indicated in pdwStreamFlags. The time is given in 100-nanosecond units.

+

Receives a reference to the interface or the value null (see Remarks). If this parameter receives a non-null reference, the caller must release the interface.

+ +

If the requested stream is not selected, the return code is . See .

This method can complete synchronously or asynchronously. If you provide a callback reference when you create the source reader, the method is asynchronous. Otherwise, the method is synchronous. For more information about setting the callback reference, see .

+
+ + dd374665 + HRESULT IMFSourceReader::ReadSample([In] unsigned int dwStreamIndex,[In] MF_SOURCE_READER_CONTROL_FLAG dwControlFlags,[Out, Optional] unsigned int* pdwActualStreamIndex,[Out, Optional] MF_SOURCE_READER_FLAG* pdwStreamFlags,[Out, Optional] longlong* pllTimestamp,[Out, Optional] IMFSample** ppSample) + IMFSourceReader::ReadSample +
+ + +

Flushes one or more streams.

+
+

The stream to flush. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFE

All streams.

?

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Flush method discards all queued samples and cancels all pending sample requests.

This method can complete either synchronously or asynchronously. If you provide a callback reference when you create the source reader, the method is asynchronous. Otherwise, the method is synchronous. For more information about the setting the callback reference, see .

In synchronous mode, the method blocks until the operation is complete.

In asynchronous mode, the application's method is called when the flush operation completes. While a flush operation is pending, the method returns .

Note??In Windows?7, there was a bug in the implementation of this method, which causes OnFlush to be called before the flush operation completes. A hotfix is available that fixes this bug. For more information, see http://support.microsoft.com/kb/979567.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374659 + HRESULT IMFSourceReader::Flush([In] unsigned int dwStreamIndex) + IMFSourceReader::Flush +
+ + +

Queries the underlying media source or decoder for an interface.

+
+

The stream or object to query. If the value is , the method queries the media source. Otherwise, it queries the decoder that is associated with the specified stream. The following values are possible.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFF

The media source.

?

+

A service identifier . If the value is GUID_NULL, the method calls QueryInterface to get the requested interface. Otherwise, the method calls the method. For a list of service identifiers, see Service Interfaces.

+

The interface identifier (IID) of the interface being requested.

+

Receives a reference to the requested interface. The caller must release the interface.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374663 + HRESULT IMFSourceReader::GetServiceForStream([In] unsigned int dwStreamIndex,[In] const GUID& guidService,[In] const GUID& riid,[Out] void** ppvObject) + IMFSourceReader::GetServiceForStream +
+ + +

Gets an attribute from the underlying media source.

+
+

The stream or object to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFF

The media source.

?

+

A that identifies the attribute to retrieve. If the dwStreamIndex parameter equals , guidAttribute can specify one of the following:

  • A presentation descriptor attribute. For a list of values, see Presentation Descriptor Attributes.
  • . Use this value to get characteristics flags from the media source.

Otherwise, if the dwStreamIndex parameter specifies a stream, guidAttribute specifies a stream descriptor attribute. For a list of values, see Stream Descriptor Attributes.

+

A reference to a that receives the value of the attribute. Call the PropVariantClear function to free the .

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374662 + HRESULT IMFSourceReader::GetPresentationAttribute([In] unsigned int dwStreamIndex,[In] const GUID& guidAttribute,[Out] PROPVARIANT* pvarAttribute) + IMFSourceReader::GetPresentationAttribute +
+ + + Creates the source reader from a URL + + The URL of a media file to open. +

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+ +

Call CoInitialize(Ex) and before calling this function.

Internally, the source reader calls the method to create a media source from the byte stream. Therefore, a byte-stream handler must be registered for the byte stream. For more information about byte-stream handlers, see Scheme Handlers and Byte-Stream Handlers.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd388110 + HRESULT MFCreateSourceReaderFromURL([In] const wchar_t* pwszURL,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromURL +
+ + + Creates the source reader from a byte stream. + +

A reference to the interface of a byte stream. This byte stream will provide the source data for the source reader.

+

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+ +

Call CoInitialize(Ex) and before calling this function.

Internally, the source reader calls the method to create a media source from the byte stream. Therefore, a byte-stream handler must be registered for the byte stream. For more information about byte-stream handlers, see Scheme Handlers and Byte-Stream Handlers.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd388106 + HRESULT MFCreateSourceReaderFromByteStream([In] IMFByteStream* pByteStream,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromByteStream +
+ + + Creates the source reader from a byte stream. + +

A reference to the interface of a byte stream. This byte stream will provide the source data for the source reader.

+

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+ +

Call CoInitialize(Ex) and before calling this function.

Internally, the source reader calls the method to create a media source from the byte stream. Therefore, a byte-stream handler must be registered for the byte stream. For more information about byte-stream handlers, see Scheme Handlers and Byte-Stream Handlers.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd388106 + HRESULT MFCreateSourceReaderFromByteStream([In] IMFByteStream* pByteStream,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromByteStream +
+ + + Creates the source reader from a + + Reference to the mediasource interface +

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+ +

Call CoInitialize(Ex) and before calling this function.

By default, when the application releases the source reader, the source reader shuts down the media source by calling on the media source. At that point, the application can no longer use the media source.

To change this default behavior, set the attribute in the pAttributes parameter. If this attribute is TRUE, the application is responsible for shutting down the media source.

When using the Source Reader, do not call any of the following methods on the media source:

  • All methods

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

Windows Phone 8.1: This API is supported.

+
+ dd388108 + HRESULT MFCreateSourceReaderFromMediaSource([In] IMFMediaSource* pMediaSource,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromMediaSource +
+ + + Creates the source reader from a byte stream. + +

A reference to the interface of a byte stream. This byte stream will provide the source data for the source reader.

+

Pointer to the interface. You can use this parameter to configure the source reader. For more information, see Source Reader Attributes. This parameter can be null.

+ +

Call CoInitialize(Ex) and before calling this function.

Internally, the source reader calls the method to create a media source from the byte stream. Therefore, a byte-stream handler must be registered for the byte stream. For more information about byte-stream handlers, see Scheme Handlers and Byte-Stream Handlers.

This function is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd388106 + HRESULT MFCreateSourceReaderFromByteStream([In] IMFByteStream* pByteStream,[In, Optional] IMFAttributes* pAttributes,[Out, Fast] IMFSourceReader** ppSourceReader) + MFCreateSourceReaderFromByteStream +
+ + +

Applies to: desktop apps | Metro style apps

Gets a format that is supported natively by the media source.

+
+

Specifies which stream to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

?

+

The zero-based index of the media type to retrieve.

+

Receives a reference to the interface. The caller must release the interface.

+ +

This method queries the underlying media source for its native output format. Potentially, each source stream can produce more than one output format. Use the dwMediaTypeIndex parameter to loop through the available formats. Generally, file sources offer just one format per stream, but capture devices might offer several formats.

The method returns a copy of the media type, so it is safe to modify the object received in the ppMediaType parameter.

To set the output type for a stream, call the method.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374661 + HRESULT IMFSourceReader::GetNativeMediaType([In] unsigned int dwStreamIndex,[In] unsigned int dwMediaTypeIndex,[Out] IMFMediaType** ppMediaType) + IMFSourceReader::GetNativeMediaType +
+ + +

Applies to: desktop apps | Metro style apps

Selects or deselects one or more streams.

+
+

The stream to set. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFE

All streams.

?

+

Specify TRUE to select streams or to deselect streams. If a stream is deselected, it will not generate data.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

There are two common uses for this method:

  • To change the default stream selection. Some media files contain multiple streams of the same type. For example, a file might include audio streams for multiple languages. You can use this method to change which of the streams is selected. To get information about each stream, call or .
  • If you will not need data from one of the streams, it is a good idea to deselect that stream. If the stream is selected, the media source might hold onto a queue of unread data, and the queue might grow indefinitely, consuming memory.

For an example of deselecting a stream, see Tutorial: Decoding Audio.

If a stream is deselected, the method returns MF_E_INVALIDREQUEST for that stream. Other methods are valid for deselected streams.

Stream selection does not affect how the source reader loads or unloads decoders in memory. In particular, deselecting a stream does not force the source reader to unload the decoder for that stream.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374669 + HRESULT IMFSourceReader::SetStreamSelection([In] unsigned int dwStreamIndex,[In] BOOL fSelected) + IMFSourceReader::SetStreamSelection +
+ + +

Applies to: desktop apps | Metro style apps

Sets the media type for a stream.

This media type defines that format that the Source Reader produces as output. It can differ from the native format provided by the media source. See Remarks for more information.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

MF_E_INVALIDMEDIATYPE

At least one decoder was found for the native stream type, but the type specified by pMediaType was rejected.

MF_E_INVALIDREQUEST

One or more sample requests are still pending.

MF_E_INVALIDSTREAMNUMBER

The dwStreamIndex parameter is invalid.

MF_E_TOPO_CODEC_NOT_FOUND

Could not find a decoder for the native stream type.

?

+ +

For each stream, you can set the media type to any of the following:

  • One of the native types offered by the media source. To enumerate the native types, call .
  • If the native media type is compressed, you can specify a corresponding uncompressed format. The Source Reader will search for a decoder that can decode from the native format to the specified uncompressed format.

The source reader does not support audio resampling. If you need to resample the audio, you can use the Audio Resampler DSP.

If you set the attribute to TRUE when you create the Source Reader, the Source Reader will convert YUV video to RGB-32. This conversion is not optimized for real-time video playback.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374667 + HRESULT IMFSourceReader::SetCurrentMediaType([In] unsigned int dwStreamIndex,[In] unsigned int* pdwReserved,[In] IMFMediaType* pMediaType) + IMFSourceReader::SetCurrentMediaType +
+ + +

Applies to: desktop apps | Metro style apps

Sets the media type for a stream.

This media type defines that format that the Source Reader produces as output. It can differ from the native format provided by the media source. See Remarks for more information.

+
+ No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

MF_E_INVALIDMEDIATYPE

At least one decoder was found for the native stream type, but the type specified by pMediaType was rejected.

MF_E_INVALIDREQUEST

One or more sample requests are still pending.

MF_E_INVALIDSTREAMNUMBER

The dwStreamIndex parameter is invalid.

MF_E_TOPO_CODEC_NOT_FOUND

Could not find a decoder for the native stream type.

?

+ +

For each stream, you can set the media type to any of the following:

  • One of the native types offered by the media source. To enumerate the native types, call .
  • If the native media type is compressed, you can specify a corresponding uncompressed format. The Source Reader will search for a decoder that can decode from the native format to the specified uncompressed format.

The source reader does not support audio resampling. If you need to resample the audio, you can use the Audio Resampler DSP.

If you set the attribute to TRUE when you create the Source Reader, the Source Reader will convert YUV video to RGB-32. This conversion is not optimized for real-time video playback.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374667 + HRESULT IMFSourceReader::SetCurrentMediaType([In] unsigned int dwStreamIndex,[In] unsigned int* pdwReserved,[In] IMFMediaType* pMediaType) + IMFSourceReader::SetCurrentMediaType +
+ + +

Applies to: desktop apps | Metro style apps

Seeks to a new position in the media source.

+
+ The position from which playback will be started. 100-nanosecond units. + +

The SetCurrentPosition method does not guarantee exact seeking. The accuracy of the seek depends on the media content. If the media content contains a video stream, the SetCurrentPosition method typically seeks to the nearest key frame before the desired position. The distance between key frames depends on several factors, including the encoder implementation, the video content, and the particular encoding settings used to encode the content. The distance between key frame can vary within a single video file (for example, depending on scene complexity).

After seeking, the application should call and advance to the desired position.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374668 + HRESULT IMFSourceReader::SetCurrentPosition([In] const GUID& guidTimeFormat,[In] const PROPVARIANT& varPosition) + IMFSourceReader::SetCurrentPosition +
+ + +

Applies to: desktop apps | Metro style apps

Gets the current media type for a stream.

+
+

The stream to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

?

+

Receives a reference to the interface. The caller must release the interface.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374660 + HRESULT IMFSourceReader::GetCurrentMediaType([In] unsigned int dwStreamIndex,[Out] IMFMediaType** ppMediaType) + IMFSourceReader::GetCurrentMediaType +
+ + +

Applies to: desktop apps | Metro style apps

Reads the next sample from the media source.

+
+

The stream to pull data from. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFE

Get the next available sample, regardless of which stream.

?

+

A bitwise OR of zero or more flags from the enumeration.

+

Receives the zero-based index of the stream.

+

Receives a bitwise OR of zero or more flags from the enumeration.

+

Receives the time stamp of the sample, or the time of the stream event indicated in pdwStreamFlags. The time is given in 100-nanosecond units.

+

Receives a reference to the interface or the value null (see Remarks). If this parameter receives a non-null reference, the caller must release the interface.

+ +

If the requested stream is not selected, the return code is MF_E_INVALIDREQUEST. See .

This method can complete synchronously or asynchronously. If you provide a callback reference when you create the source reader, the method is asynchronous. Otherwise, the method is synchronous. For more information about setting the callback reference, see .

Asynchronous Mode

In asynchronous mode:

  • All of the [out] parameters must be null. Otherwise, the method returns E_INVALIDARG.
  • The method returns immediately.
  • When the operation completes, the application's method is called.
  • If an error occurs, the method can fail either synchronously or asynchronously. Check the return value of ReadSample, and also check the hrStatus parameter of .
Synchronous Mode

In synchronous mode:

  • The pdwStreamFlags and ppSample parameters cannot be null. Otherwise, the method returns E_POINTER.
  • The pdwActualStreamIndex and pllTimestamp parameters can be null.
  • The method blocks until the next sample is available.

In synchronous mode, if the dwStreamIndex parameter is , you should pass a non-null value for pdwActualStreamIndex, so that you know which stream delivered the sample.

This method can return flags in the pdwStreamFlags parameter without returning a media sample in ppSample. Therefore, the ppSample parameter can receive a null reference even when the method succeeds. For example, when the source reader reaches the end of the stream, it returns the flag in pdwStreamFlags and sets ppSample to null.

If there is a gap in the stream, pdwStreamFlags receives the flag, ppSample is null, and pllTimestamp indicates the time when the gap occurred.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374665 + HRESULT IMFSourceReader::ReadSample([In] unsigned int dwStreamIndex,[In] unsigned int dwControlFlags,[Out, Optional] unsigned int* pdwActualStreamIndex,[Out, Optional] unsigned int* pdwStreamFlags,[Out, Optional] longlong* pllTimestamp,[Out, Optional] IMFSample** ppSample) + IMFSourceReader::ReadSample +
+ + +

Applies to: desktop apps | Metro style apps

Flushes one or more streams.

+
+

The stream to flush. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFE

All streams.

?

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The Flush method discards all queued samples and cancels all pending sample requests.

This method can complete either synchronously or asynchronously. If you provide a callback reference when you create the source reader, the method is asynchronous. Otherwise, the method is synchronous. For more information about the setting the callback reference, see .

In synchronous mode, the method blocks until the operation is complete.

In asynchronous mode, the application's method is called when the flush operation completes. While a flush operation is pending, the method returns MF_E_NOTACCEPTING.

Note??In Windows?7, there was a bug in the implementation of this method, which causes OnFlush to be called before the flush operation completes. A hotfix is available that fixes this bug. For more information, see http://support.microsoft.com/kb/979567.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374659 + HRESULT IMFSourceReader::Flush([In] unsigned int dwStreamIndex) + IMFSourceReader::Flush +
+ + +

Applies to: desktop apps | Metro style apps

Queries the underlying media source or decoder for an interface.

+
+

The stream or object to query. If the value is , the method queries the media source. Otherwise, it queries the decoder that is associated with the specified stream. The following values are possible.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFF

The media source.

?

+

A service identifier . If the value is GUID_NULL, the method calls QueryInterface to get the requested interface. Otherwise, the method calls the method. For a list of service identifiers, see Service Interfaces.

+

The interface identifier (IID) of the interface being requested.

+

Receives a reference to the requested interface. The caller must release the interface.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374663 + HRESULT IMFSourceReader::GetServiceForStream([In] unsigned int dwStreamIndex,[In] const GUID& guidService,[In] const GUID& riid,[Out] void** ppvObject) + IMFSourceReader::GetServiceForStream +
+ + +

Applies to: desktop apps | Metro style apps

Gets an attribute from the underlying media source.

+
+

The stream or object to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFF

The media source.

?

+

A that identifies the attribute to retrieve. If the dwStreamIndex parameter equals , guidAttribute can specify one of the following:

  • A presentation descriptor attribute. For a list of values, see Presentation Descriptor Attributes.
  • . Use this value to get characteristics flags from the media source.

Otherwise, if the dwStreamIndex parameter specifies a stream, guidAttribute specifies a stream descriptor attribute. For a list of values, see Stream Descriptor Attributes.

+ a that receives the value of the attribute. + +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374662 + HRESULT IMFSourceReader::GetPresentationAttribute([In] unsigned int dwStreamIndex,[In] const GUID& guidAttribute,[Out] PROPVARIANT* pvarAttribute) + IMFSourceReader::GetPresentationAttribute +
+ + +

Applies to: desktop apps | Metro style apps

Gets an attribute from the underlying media source.

+
+

The stream or object to query. The value can be any of the following.

ValueMeaning
0?0xFFFFFFFB

The zero-based index of a stream.

0xFFFFFFFC

The first video stream.

0xFFFFFFFD

The first audio stream.

0xFFFFFFFF

The media source.

?

+

A that identifies the attribute to retrieve. If the dwStreamIndex parameter equals , guidAttribute can specify one of the following:

  • A presentation descriptor attribute. For a list of values, see Presentation Descriptor Attributes.
  • . Use this value to get characteristics flags from the media source.

Otherwise, if the dwStreamIndex parameter specifies a stream, guidAttribute specifies a stream descriptor attribute. For a list of values, see Stream Descriptor Attributes.

+ a that receives the value of the attribute. + +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ dd374662 + HRESULT IMFSourceReader::GetPresentationAttribute([In] unsigned int dwStreamIndex,[In] const GUID& guidAttribute,[Out] PROPVARIANT* pvarAttribute) + IMFSourceReader::GetPresentationAttribute +
+ + +

Callback interface for the Microsoft Media Foundation source reader.

+
+ +

Use the attribute to set the callback reference when you first create the source reader object.

The callback methods can be called from any thread, so an object that implements this interface must be thread-safe.

If you do not specify a callback reference, the source reader operates synchronously.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374656 + IMFSourceReaderCallback + IMFSourceReaderCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called when the method completes.

+
+ No documentation. + No documentation. + No documentation. + No documentation. + No documentation. +

Returns an value. Currently, the source reader ignores the return value.

+ +

The pSample parameter might be null. For example, when the source reader reaches the end of a stream, dwStreamFlags contains the flag, and pSample is null.

If there is a gap in the stream, dwStreamFlags contains the flag, pSample is null, and llTimestamp indicates the time when the gap occurred.

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374658 + HRESULT IMFSourceReaderCallback::OnReadSample([In] HRESULT hrStatus,[In] unsigned int dwStreamIndex,[In] unsigned int dwStreamFlags,[In] longlong llTimestamp,[In, Optional] IMFSample* pSample) + IMFSourceReaderCallback::OnReadSample +
+ + +

Called when the method completes.

+
+ No documentation. +

Returns an value. Currently, the source reader ignores the return value.

+ +

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd374657 + HRESULT IMFSourceReaderCallback::OnFlush([In] unsigned int dwStreamIndex) + IMFSourceReaderCallback::OnFlush +
+ + +

Called when the source reader receives certain events from the media source.

+
+

For stream events, the value is the zero-based index of the stream that sent the event. For source events, the value is .

+

A reference to the interface of the event.

+

Returns an value. Currently, the source reader ignores the return value.

+ +

In the current implementation, the source reader uses this method to forward the following events to the application:

This interface is available on Windows?Vista if Platform Update Supplement for Windows?Vista is installed.

+
+ + dd743367 + HRESULT IMFSourceReaderCallback::OnEvent([In] unsigned int dwStreamIndex,[In] IMFMediaEvent* pEvent) + IMFSourceReaderCallback::OnEvent +
+ + +

Creates a media source or a byte stream from a URL. This method is synchronous.

+
+ +

The dwFlags parameter must contain either the flag or the flag, but should not contain both.

It is recommended that you do not set on the input argument dwFlags unless it is necessary for your scenario. For most use-cases, media sources do not need to be created with write capability. Creating a media source with write capability may have a lower probability of success than creating a media source without write capability. This is because there can be stricter checks on the content represented by the URL when creating a media source with write capability.

For local files, you can pass the file name in the pwszURL parameter; the file: scheme is not required.

Note??This method cannot be called remotely.

+
+ + ms702279 + IMFSourceResolver + IMFSourceResolver +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a media source or a byte stream from a URL. This method is synchronous.

+
+

Null-terminated string that contains the URL to resolve.

+

Bitwise OR of one or more flags. See Source Resolver Flags. See remarks below.

+

Pointer to the interface of a property store. The method passes the property store to the scheme handler or byte-stream handler that creates the object. The handler can use the property store to configure the object. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives a member of the enumeration, specifying the type of object that was created.

+

Receives a reference to the object's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The dwFlags parameter contains mutually exclusive flags.

The URL scheme is not supported.

?

+ +

The dwFlags parameter must contain either the flag or the flag, but should not contain both.

It is recommended that you do not set on the input argument dwFlags unless it is necessary for your scenario. For most use-cases, media sources do not need to be created with write capability. Creating a media source with write capability may have a lower probability of success than creating a media source without write capability. This is because there can be stricter checks on the content represented by the URL when creating a media source with write capability.

For local files, you can pass the file name in the pwszURL parameter; the file: scheme is not required.

Note??This method cannot be called remotely.

+
+ + ms702279 + HRESULT IMFSourceResolver::CreateObjectFromURL([In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromURL +
+ + +

Creates a media source from a byte stream. This method is synchronous.

+
+

Pointer to the byte stream's interface.

+

Null-terminated string that contains the URL of the byte stream. The URL is optional and can be null. See Remarks for more information.

+

Bitwise OR of flags. See Source Resolver Flags.

+

Pointer to the interface of a property store. The method passes the property store to the byte-stream handler. The byte-stream handler can use the property store to configure the media source. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives a member of the enumeration, specifying the type of object that was created.

+

Receives a reference to the media source's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The dwFlags parameter contains mutually exclusive flags.

This byte stream is not supported.

?

+ +

The dwFlags parameter must contain the flag and should not contain the flag.

The source resolver attempts to find one or more byte-stream handlers for the byte stream, based on the file name extension of the URL, or the MIME type of the byte stream (or both). The URL is specified in the optional pwszURL parameter, and the MIME type may be specified in the attribute on the byte stream. Byte-stream handlers are registered by file name extension or MIME type, or both, as described in Scheme Handlers and Byte-Stream Handlers. The caller should specify at least one of these values (both if possible):

  • Specify the URL in the pwszURL parameter.
  • Specify the MIME type by setting the attribute on the byte stream. (This attribute might be set already when you create the byte stream, depending on how the byte stream was created.)

Note??This method cannot be called remotely.

+
+ + ms704671 + HRESULT IMFSourceResolver::CreateObjectFromByteStream([In] IMFByteStream* pByteStream,[In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromByteStream +
+ + +

Begins an asynchronous request to create a media source or a byte stream from a URL.

+
+

Null-terminated string that contains the URL to resolve.

+

Bitwise OR of flags. See Source Resolver Flags.

+

Pointer to the interface of a property store. The method passes the property store to the scheme handler or byte-stream handler that creates the object. The handler can use the property store to configure the object. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives an reference or the value null. If the value is not null, you can cancel the asynchronous operation by passing this reference to the method. The caller must release the interface. This parameter can be null.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The dwFlags parameter contains mutually exclusive flags.

The URL scheme is not supported.

?

+ +

The dwFlags parameter must contain either the flag or the flag, but should not contain both.

For local files, you can pass the file name in the pwszURL parameter; the file: scheme is not required.

When the operation completes, the source resolver calls the method. The Invoke method should call to get a reference to the object that was created.

The usage of the pProps parameter depends on the implementation of the media source.

+
+ + ms702995 + HRESULT IMFSourceResolver::BeginCreateObjectFromURL([In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out, Optional] IUnknown** ppIUnknownCancelCookie,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFSourceResolver::BeginCreateObjectFromURL +
+ + +

Completes an asynchronous request to create an object from a URL.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the Invoke method.

+

Receives a member of the enumeration, specifying the type of object that was created.

+

Receives a reference to the media source's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_ABORT

The operation was canceled.

?

+ +

Call this method from inside your application's method.

+
+ + ms702134 + HRESULT IMFSourceResolver::EndCreateObjectFromURL([In] IMFAsyncResult* pResult,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::EndCreateObjectFromURL +
+ + +

Begins an asynchronous request to create a media source from a byte stream.

+
+

A reference to the byte stream's interface.

+

A null-terminated string that contains the original URL of the byte stream. This parameter can be null.

+

A bitwise OR of one or more flags. See Source Resolver Flags.

+

A reference to the interface of a property store. The method passes the property store to the byte-stream handler. The byte-stream handler can use the property store to configure the media source. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives an reference or the value null. If the value is not null, you can cancel the asynchronous operation by passing this reference to the method. The caller must release the interface. This parameter can be null.

+

A reference to the interface of a callback object. The caller must implement this interface.

+

A oointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The dwFlags parameter contains mutually exclusive flags.

The byte stream is not supported.

The byte stream does not support seeking.

?

+ +

The dwFlags parameter must contain the flag and should not contain the flag.

The source resolver attempts to find one or more byte-stream handlers for the byte stream, based on the file name extension of the URL, or the MIME type of the byte stream (or both). The URL is specified in the optional pwszURL parameter, and the MIME type may be specified in the attribute on the byte stream. Byte-stream handlers are registered by file name extension or MIME type, or both, as described in Scheme Handlers and Byte-Stream Handlers. The caller should specify at least one of these values.

When the operation completes, the source resolver calls the method. The Invoke method should call to get a reference to the media source.

+
+ + ms698915 + HRESULT IMFSourceResolver::BeginCreateObjectFromByteStream([In] IMFByteStream* pByteStream,[In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out, Optional] IUnknown** ppIUnknownCancelCookie,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFSourceResolver::BeginCreateObjectFromByteStream +
+ + +

Completes an asynchronous request to create a media source from a byte stream.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the Invoke method.

+

Receives a member of the enumeration, specifying the type of object that was created.

+

Receives a reference to the media source's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_ABORT

The application canceled the operation.

?

+ +

Call this method from inside your application's method.

+
+ + ms697199 + HRESULT IMFSourceResolver::EndCreateObjectFromByteStream([In] IMFAsyncResult* pResult,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::EndCreateObjectFromByteStream +
+ + +

Cancels an asynchronous request to create an object.

+
+

Pointer to the interface that was returned in the ppIUnknownCancelCookie parameter of the or method.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

You can use this method to cancel a previous call to BeginCreateObjectFromByteStream or BeginCreateObjectFromURL. Because these methods are asynchronous, however, they might be completed before the operation can be canceled. Therefore, your callback might still be invoked after you call this method.

Note??This method cannot be called remotely.

+
+ + ms698845 + HRESULT IMFSourceResolver::CancelObjectCreation([In] IUnknown* pIUnknownCancelCookie) + IMFSourceResolver::CancelObjectCreation +
+ + + Initializes a new instance of the class which is used to create a media source from a + URL or byte stream. + + ms697433 + HRESULT MFCreateSourceResolver([Out] IMFSourceResolver** ppISourceResolver) + MFCreateSourceResolver + + + +

Applies to: desktop apps | Metro style apps

Creates a media source or a byte stream from a URL. This method is synchronous.

+
+

Null-terminated string that contains the URL to resolve.

+

Bitwise OR of one or more flags. See Source Resolver Flags.

+ A reference to the object's interface. The caller must release the interface. + +

The dwFlags parameter must contain either the flag or the flag, but should not contain both.

For local files, you can pass the file name in the pwszURL parameter; the file: scheme is not required.

Note??This method cannot be called remotely.

+
+ ms702279 + HRESULT IMFSourceResolver::CreateObjectFromURL([In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromURL +
+ + +

Applies to: desktop apps | Metro style apps

Creates a media source or a byte stream from a URL. This method is synchronous.

+
+

Null-terminated string that contains the URL to resolve.

+

Bitwise OR of one or more flags. See Source Resolver Flags.

+

Receives a member of the enumeration, specifying the type of object that was created.

+ A reference to the object's interface. The caller must release the interface. + +

The dwFlags parameter must contain either the flag or the flag, but should not contain both.

For local files, you can pass the file name in the pwszURL parameter; the file: scheme is not required.

Note??This method cannot be called remotely.

+
+ ms702279 + HRESULT IMFSourceResolver::CreateObjectFromURL([In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromURL +
+ + +

Applies to: desktop apps | Metro style apps

Creates a media source or a byte stream from a URL. This method is synchronous.

+
+

Null-terminated string that contains the URL to resolve.

+

Bitwise OR of one or more flags. See Source Resolver Flags.

+

Pointer to the interface of a property store. The method passes the property store to the scheme handler or byte-stream handler that creates the object. The handler can use the property store to configure the object. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives a member of the enumeration, specifying the type of object that was created.

+ A reference to the object's interface. The caller must release the interface. + +

The dwFlags parameter must contain either the flag or the flag, but should not contain both.

For local files, you can pass the file name in the pwszURL parameter; the file: scheme is not required.

Note??This method cannot be called remotely.

+
+ ms702279 + HRESULT IMFSourceResolver::CreateObjectFromURL([In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromURL +
+ + +

Applies to: desktop apps | Metro style apps

Creates a media source from a byte stream. This method is synchronous.

+
+

Pointer to the byte stream's interface.

+

Null-terminated string that contains the URL of the byte stream. The URL is optional and can be null. See Remarks for more information.

+

Bitwise OR of flags. See Source Resolver Flags.

+ a reference to the media source's interface. The caller must release the interface. + +

The dwFlags parameter must contain the flag and should not contain the flag.

The source resolver attempts to find one or more byte-stream handlers for the byte stream, based on the file name extension of the URL, or the MIME type of the byte stream (or both). The URL is specified in the optional pwszURL parameter, and the MIME type may be specified in the attribute on the byte stream. Byte-stream handlers are registered by file name extension or MIME type, or both, as described in Scheme Handlers and Byte-Stream Handlers. The caller should specify at least one of these values (both if possible):

  • Specify the URL in the pwszURL parameter.
  • Specify the MIME type by setting the attribute on the byte stream. (This attribute might be set already when you create the byte stream, depending on how the byte stream was created.)

Note??This method cannot be called remotely.

+
+ ms704671 + HRESULT IMFSourceResolver::CreateObjectFromByteStream([In] IMFByteStream* pByteStream,[In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromByteStream +
+ + +

Applies to: desktop apps | Metro style apps

Creates a media source from a byte stream. This method is synchronous.

+
+

Pointer to the byte stream's interface.

+

Null-terminated string that contains the URL of the byte stream. The URL is optional and can be null. See Remarks for more information.

+

Bitwise OR of flags. See Source Resolver Flags.

+

Receives a member of the enumeration, specifying the type of object that was created.

+ a reference to the media source's interface. The caller must release the interface. + +

The dwFlags parameter must contain the flag and should not contain the flag.

The source resolver attempts to find one or more byte-stream handlers for the byte stream, based on the file name extension of the URL, or the MIME type of the byte stream (or both). The URL is specified in the optional pwszURL parameter, and the MIME type may be specified in the attribute on the byte stream. Byte-stream handlers are registered by file name extension or MIME type, or both, as described in Scheme Handlers and Byte-Stream Handlers. The caller should specify at least one of these values (both if possible):

  • Specify the URL in the pwszURL parameter.
  • Specify the MIME type by setting the attribute on the byte stream. (This attribute might be set already when you create the byte stream, depending on how the byte stream was created.)

Note??This method cannot be called remotely.

+
+ ms704671 + HRESULT IMFSourceResolver::CreateObjectFromByteStream([In] IMFByteStream* pByteStream,[In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromByteStream +
+ + +

Applies to: desktop apps | Metro style apps

Creates a media source from a byte stream. This method is synchronous.

+
+

Pointer to the byte stream's interface.

+

Null-terminated string that contains the URL of the byte stream. The URL is optional and can be null. See Remarks for more information.

+

Bitwise OR of flags. See Source Resolver Flags.

+

Pointer to the interface of a property store. The method passes the property store to the byte-stream handler. The byte-stream handler can use the property store to configure the media source. This parameter can be null. For more information, see Configuring a Media Source.

+

Receives a member of the enumeration, specifying the type of object that was created.

+ a reference to the media source's interface. The caller must release the interface. + +

The dwFlags parameter must contain the flag and should not contain the flag.

The source resolver attempts to find one or more byte-stream handlers for the byte stream, based on the file name extension of the URL, or the MIME type of the byte stream (or both). The URL is specified in the optional pwszURL parameter, and the MIME type may be specified in the attribute on the byte stream. Byte-stream handlers are registered by file name extension or MIME type, or both, as described in Scheme Handlers and Byte-Stream Handlers. The caller should specify at least one of these values (both if possible):

  • Specify the URL in the pwszURL parameter.
  • Specify the MIME type by setting the attribute on the byte stream. (This attribute might be set already when you create the byte stream, depending on how the byte stream was created.)

Note??This method cannot be called remotely.

+
+ ms704671 + HRESULT IMFSourceResolver::CreateObjectFromByteStream([In] IMFByteStream* pByteStream,[In] const wchar_t* pwszURL,[In] unsigned int dwFlags,[In] IPropertyStore* pProps,[Out] MF_OBJECT_TYPE* pObjectType,[Out] IUnknown** ppObject) + IMFSourceResolver::CreateObjectFromByteStream +
+ + +

Indicates whether the server SSL certificate must be verified by the caller, Media Foundation, or the implementation class.

+
+ + dd374673 + IMFSSLCertificateManager + IMFSSLCertificateManager +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the client SSL certificate synchronously.

+
+

Pointer to a string that contains the URL for which a client-side SSL certificate is required. Media Foundation can resolve the scheme and send the request to the server.

+

Pointer to the buffer that stores the certificate.This caller must free the buffer by calling CoTaskMemFree.

+

Pointer to a DWORD variable that receives the number of bytes required to hold the certificate data in the buffer pointed by *ppbData.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374674 + HRESULT IMFSSLCertificateManager::GetClientCertificate([In] const wchar_t* pszURL,[Out, Buffer] unsigned char** ppbData,[Out] unsigned int* pcbData) + IMFSSLCertificateManager::GetClientCertificate +
+ + +

Starts an asynchronous call to get the client SSL certificate.

+
+

A null-terminated string that contains the URL for which a client-side SSL certificate is required. Media Foundation can resolve the scheme and send the request to the server.

+

A reference to the interface of a callback object. The caller must implement this interface.

+

A reference to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

+
+ + dd374671 + HRESULT IMFSSLCertificateManager::BeginGetClientCertificate([In] const wchar_t* pszURL,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFSSLCertificateManager::BeginGetClientCertificate +
+ + +

Completes an asynchronous request to get the client SSL certificate.

+
+

A reference to the interface. Pass in the same reference that your callback object received in the method.

+

Receives a reference to the buffer that stores the certificate.The caller must free the buffer by calling CoTaskMemFree.

+

Receives the size of the ppbData buffer, in bytes.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method after the method completes asynchronously.

+
+ + dd374672 + HRESULT IMFSSLCertificateManager::EndGetClientCertificate([In] IMFAsyncResult* pResult,[Out, Buffer] unsigned char** ppbData,[Out] unsigned int* pcbData) + IMFSSLCertificateManager::EndGetClientCertificate +
+ + +

Indicates whether the server SSL certificate must be verified by the caller, Media Foundation, or the implementation class.

+
+

Pointer to a string that contains the URL that is sent to the server.

+

Pointer to a value. Set to TRUE if is used to verify the server certificate.Set to if Media Foundation verifies the server certificate by using the certificates in the Windows certificate store.

+

Pointer to a value. Set to TRUE if the SSL certificate for the client is available for immediate retrieval. Media Foundation calls to obtain the client certificate synchronously. If the value is set to , Media Foundation obtains the client SSL certificate with an asynchronous call to .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374673 + HRESULT IMFSSLCertificateManager::GetCertificatePolicy([In] const wchar_t* pszURL,[In] BOOL* pfOverrideAutomaticCheck,[In] BOOL* pfClientCertificateAvailable) + IMFSSLCertificateManager::GetCertificatePolicy +
+ + +

Called by Media Foundation when the server SSL certificate has been received; indicates whether the server certificate is accepted.

+
+

Pointer to a string that contains the URL used to send the request to the server, and for which a server-side SSL certificate has been received.

+

Pointer to a buffer that contains the server SSL certificate.

+

Pointer to a DWORD variable that indicates the size of pbData in bytes.

+

Pointer to a variable that indicates whether the certificate is accepted.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374675 + HRESULT IMFSSLCertificateManager::OnServerCertificate([In] const wchar_t* pszURL,[In, Buffer] unsigned char* pbData,[In] unsigned int cbData,[In] BOOL* pfIsGood) + IMFSSLCertificateManager::OnServerCertificate +
+ + +

Gets information about one stream in a media source.

+
+ +

A presentation descriptor contains one or more stream descriptors. To get the stream descriptors from a presentation descriptor, call . To create a new stream descriptor, call .

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms701622 + IMFStreamDescriptor + IMFStreamDescriptor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves an identifier for the stream.

+
+

Receives the stream identifier.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The stream identifier uniquely identifies a stream within a presentation. It does not change throughout the lifetime of the stream. For example, if the presentation changes while the source is running, the index number of the stream may change, but the stream identifier does not.

In general, stream identifiers do not have a specific meaning, other than to identify the stream. Some media sources may assign stream identifiers based on meaningful values, such as packet identifiers, but this depends on the implementation.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703852 + HRESULT IMFStreamDescriptor::GetStreamIdentifier([Out] unsigned int* pdwStreamIdentifier) + IMFStreamDescriptor::GetStreamIdentifier +
+ + +

Retrieves a media type handler for the stream. The media type handler can be used to enumerate supported media types for the stream, get the current media type, and set the media type.

+
+

Receives a reference to the interface. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms700210 + HRESULT IMFStreamDescriptor::GetMediaTypeHandler([Out] IMFMediaTypeHandler** ppMediaTypeHandler) + IMFStreamDescriptor::GetMediaTypeHandler +
+ + +

Retrieves an identifier for the stream.

+
+ +

The stream identifier uniquely identifies a stream within a presentation. It does not change throughout the lifetime of the stream. For example, if the presentation changes while the source is running, the index number of the stream may change, but the stream identifier does not.

In general, stream identifiers do not have a specific meaning, other than to identify the stream. Some media sources may assign stream identifiers based on meaningful values, such as packet identifiers, but this depends on the implementation.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms703852 + GetStreamIdentifier + GetStreamIdentifier + HRESULT IMFStreamDescriptor::GetStreamIdentifier([Out] unsigned int* pdwStreamIdentifier) +
+ + +

Retrieves a media type handler for the stream. The media type handler can be used to enumerate supported media types for the stream, get the current media type, and set the media type.

+
+ +

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ + ms700210 + GetMediaTypeHandler + GetMediaTypeHandler + HRESULT IMFStreamDescriptor::GetMediaTypeHandler([Out] IMFMediaTypeHandler** ppMediaTypeHandler) +
+ + +

Called by the streaming media client before the Media Session starts streaming to specify the byte offset or the time offset.

+
+ + dd374677 + IMFStreamingSinkConfig + IMFStreamingSinkConfig +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called by the streaming media client before the Media Session starts streaming to specify the byte offset or the time offset.

+
+

A Boolean value that specifies whether qwSeekOffset gives a byte offset of a time offset.

ValueMeaning
TRUE

The qwSeekOffset parameter specifies a byte offset.

The qwSeekOffset parameter specifies the time position in 100-nanosecond units.

?

+

A byte offset or a time offset, depending on the value passed in fSeekOffsetIsByteOffset. Time offsets are specified in 100-nanosecond units.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374677 + HRESULT IMFStreamingSinkConfig::StartStreaming([In] BOOL fSeekOffsetIsByteOffset,[In] unsigned longlong qwSeekOffset) + IMFStreamingSinkConfig::StartStreaming +
+ + +

Represents a stream on a media sink object.

+
+ + ms705657 + IMFStreamSink + IMFStreamSink +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the media sink that owns this stream sink.

+
+

Receives a reference to the media sink's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink's Shutdown method has been called.

This stream was removed from the media sink and is no longer valid.

?

+ + ms699003 + HRESULT IMFStreamSink::GetMediaSink([Out] IMFMediaSink** ppMediaSink) + IMFStreamSink::GetMediaSink +
+ + +

Retrieves the stream identifier for this stream sink.

+
+

Receives the stream identifier. If this stream sink was added by calling , the stream identifier is in the dwStreamSinkIdentifier parameter of that method. Otherwise, the media sink defines the identifier.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink's Shutdown method has been called.

This stream was removed from the media sink and is no longer valid.

?

+ + ms702129 + HRESULT IMFStreamSink::GetIdentifier([Out] unsigned int* pdwIdentifier) + IMFStreamSink::GetIdentifier +
+ + +

Retrieves the media type handler for the stream sink. You can use the media type handler to find which formats the stream supports, and to set the media type on the stream.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink's Shutdown method has been called.

This stream was removed from the media sink and is no longer valid.

?

+ +

If the stream sink currently does not support any media types, this method returns a media type handler that fails any calls to and .

+
+ + ms700107 + HRESULT IMFStreamSink::GetMediaTypeHandler([Out] IMFMediaTypeHandler** ppHandler) + IMFStreamSink::GetMediaTypeHandler +
+ + +

Delivers a sample to the stream. The media sink processes the sample.

+
+

Pointer to the interface of a sample that contains valid data for the stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink is in the wrong state to receive a sample. For example, preroll is complete but the presenation clock has not started yet.

The sample has an invalid time stamp. See Remarks.

The media sink is paused or stopped and cannot process the sample.

The presentation clock was not set. Call .

The sample does not have a time stamp.

The stream sink has not been initialized.

The media sink's Shutdown method has been called.

This stream was removed from the media sink and is no longer valid.

?

+ +

Call this method when the stream sink sends an event.

This method can return for various reasons, depending on the implementation of the media sink:

  • Negative time stamps.

  • Time stamps that jump backward (within the same stream).

  • The time stamps for one stream have drifted too far from the time stamps on another stream within the same media sink (for example, an archive sink that multiplexes the streams).

Not every media sink returns an error code in these situations.

+
+ + ms696208 + HRESULT IMFStreamSink::ProcessSample([In, Optional] IMFSample* pSample) + IMFStreamSink::ProcessSample +
+ + +

Places a marker in the stream.

+
+

Specifies the marker type, as a member of the enumeration.

+

Optional reference to a that contains additional information related to the marker. The meaning of this value depends on the marker type. This parameter can be null.

+

Optional reference to a that is attached to the event. Call to get this value from the event. The caller can use this information for any purpose. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media sink's Shutdown method has been called.

This stream was removed from the media sink and is no longer valid.

?

+ +

This method causes the stream sink to send an event after the stream sink consumes all of the samples that were delivered up to this point (before the call to PlaceMarker).

+
+ + ms703026 + HRESULT IMFStreamSink::PlaceMarker([In] MFSTREAMSINK_MARKER_TYPE eMarkerType,[In] const PROPVARIANT* pvarMarkerValue,[In] const PROPVARIANT* pvarContextValue) + IMFStreamSink::PlaceMarker +
+ + +

Causes the stream sink to drop any samples that it has received and has not rendered yet.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The stream sink has not been initialized yet. You might need to set a media type.

The media sink's Shutdown method has been called.

This stream was removed from the media sink and is no longer valid.

?

+ +

If any samples are still queued from previous calls to the method, the media sink immediately discards them, without processing them. This can cause a glitch in the rendered output. The running state of the sink (running, paused, or stopped) does not change.

Any pending marker events from the method are dispatched immediately, with the status code E_ABORT.

This method is synchronous. It does not return until the sink has discarded all pending samples.

+
+ + ms697054 + HRESULT IMFStreamSink::Flush() + IMFStreamSink::Flush +
+ + +

Retrieves the media sink that owns this stream sink.

+
+ + ms699003 + GetMediaSink + GetMediaSink + HRESULT IMFStreamSink::GetMediaSink([Out] IMFMediaSink** ppMediaSink) +
+ + +

Retrieves the stream identifier for this stream sink.

+
+ + ms702129 + GetIdentifier + GetIdentifier + HRESULT IMFStreamSink::GetIdentifier([Out] unsigned int* pdwIdentifier) +
+ + +

Retrieves the media type handler for the stream sink. You can use the media type handler to find which formats the stream supports, and to set the media type on the stream.

+
+ +

If the stream sink currently does not support any media types, this method returns a media type handler that fails any calls to and .

+
+ + ms700107 + GetMediaTypeHandler + GetMediaTypeHandler + HRESULT IMFStreamSink::GetMediaTypeHandler([Out] IMFMediaTypeHandler** ppHandler) +
+ + +

Converts between Society of Motion Picture and Television Engineers (SMPTE) time codes and 100-nanosecond time units.

+
+ +

If an object supports this interface, it must expose the interface as a service. To get a reference to the interface, call with the service identifier .

The Advanced Streaming Format (ASF) media source exposes this interface.

+
+ + dd374678 + IMFTimecodeTranslate + IMFTimecodeTranslate +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Starts an asynchronous call to convert Society of Motion Picture and Television Engineers (SMPTE) time code to 100-nanosecond units.

+
+

Time in SMPTE time code to convert. The vt member of the structure is set to VT_I8. The hVal.QuadPart member contains the time in binary coded decimal (BCD) form. See Remarks.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

PPointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription
E_INVALIDARG

pPropVarTimecode is not VT_I8.

The object's Shutdown method was called.

The byte stream is not seekable. The time code cannot be read from the end of the byte stream.

?

+ +

When the asynchronous method completes, the callback object's method is called. At that point, the application must call to complete the asynchronous request.

The value of pPropVarTimecode is a 64-bit unsigned value typed as a LONGLONG. The upper DWORD contains the range. (A range is a continuous series of time codes.) The lower DWORD contains the time code in the form of a hexadecimal number 0xhhmmssff, where each 2-byte sequence is read as a decimal value.

void CreateTimeCode( DWORD dwFrames, DWORD dwSeconds, DWORD dwMinutes, DWORD dwHours, DWORD dwRange,  *pvar )	
+            { ULONGLONG ullTimecode = ((ULONGLONG)dwRange) << 32; ullTimecode +=   dwFrames  % 10; ullTimecode += (( (ULONGLONG)dwFrames )  / 10) << 4; ullTimecode += (( (ULONGLONG)dwSeconds ) % 10) << 8; ullTimecode += (( (ULONGLONG)dwSeconds ) / 10) << 12; ullTimecode += (( (ULONGLONG)dwMinutes ) % 10) << 16; ullTimecode += (( (ULONGLONG)dwMinutes ) / 10) << 20; ullTimecode += (( (ULONGLONG)dwHours )   % 10) << 24; ullTimecode += (( (ULONGLONG)dwHours )   / 10) << 28; pvar->vt = VT_I8; pvar->hVal.QuadPart = (LONGLONG)ullTimecode;	
+            }	
+            
+
+ + dd374680 + HRESULT IMFTimecodeTranslate::BeginConvertTimecodeToHNS([In] const PROPVARIANT* pPropVarTimecode,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFTimecodeTranslate::BeginConvertTimecodeToHNS +
+ + +

Completes an asynchronous request to convert time in Society of Motion Picture and Television Engineers (SMPTE) time code to 100-nanosecond units.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

Receives the converted time.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method after the method completes asynchronously.

+
+ + dd374682 + HRESULT IMFTimecodeTranslate::EndConvertTimecodeToHNS([In] IMFAsyncResult* pResult,[In] longlong* phnsTime) + IMFTimecodeTranslate::EndConvertTimecodeToHNS +
+ + +

Starts an asynchronous call to convert time in 100-nanosecond units to Society of Motion Picture and Television Engineers (SMPTE) time code.

+
+

The time to convert, in 100-nanosecond units.

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The object's Shutdown method was called.

The byte stream is not seekable. The time code cannot be read from the end of the byte stream.

?

+ +

When the asynchronous method completes, the callback object's method is called. At that point, the application must call to complete the asynchronous request.

+
+ + dd374679 + HRESULT IMFTimecodeTranslate::BeginConvertHNSToTimecode([In] longlong hnsTime,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState) + IMFTimecodeTranslate::BeginConvertHNSToTimecode +
+ + +

Completes an asynchronous request to convert time in 100-nanosecond units to Society of Motion Picture and Television Engineers (SMPTE) time code.

+
+

A reference to the interface. Pass in the same reference that your callback object received in the method.

+

A reference to a that receives the converted time. The vt member of the structure is set to VT_I8. The hVal.QuadPart member contains the converted time in binary coded decimal (BCD) form. See Remarks.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method after the method completes asynchronously.

The value of pPropVarTimecode is a 64-bit unsigned value typed as a LONGLONG. The upper DWORD contains the range. (A range is a continuous series of time codes.) The lower DWORD contains the time code in the form of a hexadecimal number 0xhhmmssff, where each 2-byte sequence is read as a decimal value.

 ParseTimeCode( const & var, DWORD *pdwRange, DWORD *pdwFrames, DWORD *pdwSeconds, DWORD *pdwMinutes, DWORD *pdwHours )	
+            { if (var.vt != VT_I8) { return E_INVALIDARG; } ULONGLONG ullTimeCode = (ULONGLONG)var.hVal.QuadPart; DWORD dwTimecode = (DWORD)(ullTimeCode & 0xFFFFFFFF); *pdwRange   = (DWORD)(ullTimeCode >> 32); *pdwFrames  =     dwTimecode & 0x0000000F; *pdwFrames  += (( dwTimecode & 0x000000F0) >> 4 )  * 10; *pdwSeconds =   ( dwTimecode & 0x00000F00) >> 8; *pdwSeconds += (( dwTimecode & 0x0000F000) >> 12 ) * 10; *pdwMinutes =   ( dwTimecode & 0x000F0000) >> 16; *pdwMinutes += (( dwTimecode & 0x00F00000) >> 20 ) * 10; *pdwHours   =   ( dwTimecode & 0x0F000000) >> 24; *pdwHours   += (( dwTimecode & 0xF0000000) >> 28 ) * 10; return ;	
+            }	
+            
+
+ + dd374681 + HRESULT IMFTimecodeTranslate::EndConvertHNSToTimecode([In] IMFAsyncResult* pResult,[In] PROPVARIANT* pPropVarTimecode) + IMFTimecodeTranslate::EndConvertHNSToTimecode +
+ + +

Sets a timer that invokes a callback at the specified time.

+
+ +

If the clock is stopped, the method returns MF_S_CLOCK_STOPPED. The callback will not be invoked until the clock is started.

+
+ + ms696252 + IMFTimer + IMFTimer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets a timer that invokes a callback at the specified time.

+
+

Bitwise OR of zero or more flags from the enumeration.

+

The time at which the timer should fire, in units of the clock's frequency. The time is either absolute or relative to the current time, depending on the value of dwFlags.

+

Pointer to the interface of a callback object. The caller must implement this interface. The callback's Invoke method is called at the time specified in the llClockTime parameter.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

Receives a reference to the interface of a cancellation object. The caller must release the interface. To cancel the timer, pass this reference to the method. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The clock was shut down.

MF_S_CLOCK_STOPPED

The method succeeded, but the clock is stopped.

?

+ +

If the clock is stopped, the method returns MF_S_CLOCK_STOPPED. The callback will not be invoked until the clock is started.

+
+ + ms696252 + HRESULT IMFTimer::SetTimer([In] unsigned int dwFlags,[In] longlong llClockTime,[In] IMFAsyncCallback* pCallback,[In] IUnknown* punkState,[In] IUnknown** ppunkKey) + IMFTimer::SetTimer +
+ + +

Cancels a timer that was set using the method.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Because the timer is dispatched asynchronously, the application's timer callback might get invoked even if this method succeeds.

+
+ + ms696276 + HRESULT IMFTimer::CancelTimer([In] IUnknown* punkKey) + IMFTimer::CancelTimer +
+ + +

Converts a partial topology into a full topology. The topology loader exposes this interface.

+
+ +

To create the topology loader, call the function.

+
+ + ms697375 + IMFTopoLoader + IMFTopoLoader +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Creates a fully loaded topology from the input partial topology.

+
+

A reference to the interface of the partial topology to be resolved.

+

Receives a reference to the interface of the completed topology. The caller must release the interface.

+

A reference to the interface of the previous full topology. The topology loader can re-use objects from this topology in the new topology. This parameter can be null. See Remarks.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

One or more output nodes contain references. The caller must bind the output nodes to media sinks. See Binding Output Nodes to Media Sinks.

?

+ +

This method creates any intermediate transforms that are needed to complete the topology. It also sets the input and output media types on all of the objects in the topology. If the method succeeds, the full topology is returned in the ppOutputTopo parameter.

You can use the pCurrentTopo parameter to provide a full topology that was previously loaded. If this topology contains objects that are needed in the new topology, the topology loader can re-use them without creating them again. This caching can potentially make the process faster. The objects from pCurrentTopo will not be reconfigured, so you can specify a topology that is actively streaming data. For example, while a topology is still running, you can pre-load the next topology.

Before calling this method, you must ensure that the output nodes in the partial topology have valid references, not references. The Media Session automatically performs this action inside the method. However, if you call Load before calling SetTopology, you must bind the output nodes manually. For more information, see Binding Output Nodes to Media Sinks.

+
+ + ms693561 + HRESULT IMFTopoLoader::Load([In] IMFTopology* pInputTopo,[Out] IMFTopology** ppOutputTopo,[In] IMFTopology* pCurrentTopo) + IMFTopoLoader::Load +
+ + +

Gets the source nodes in the topology.

+
+ + ms701611 + IMFTopology + IMFTopology +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the identifier of the topology.

+
+

Receives the identifier, as a TOPOID value.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms705620 + HRESULT IMFTopology::GetTopologyID([Out] unsigned longlong* pID) + IMFTopology::GetTopologyID +
+ + +

Adds a node to the topology.

+
+

Pointer to the node's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

pNode is invalid, possibly because the node already exists in the topology.

?

+ + ms697365 + HRESULT IMFTopology::AddNode([In] IMFTopologyNode* pNode) + IMFTopology::AddNode +
+ + +

Removes a node from the topology.

+
+

Pointer to the node's interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The specified node is not a member of this topology.

?

+ +

This method does not destroy the node, so the reference is still valid after the method returns.

The method breaks any connections between the specified node and other nodes.

+
+ + ms694226 + HRESULT IMFTopology::RemoveNode([In] IMFTopologyNode* pNode) + IMFTopology::RemoveNode +
+ + +

Gets the number of nodes in the topology.

+
+

Receives the number of nodes.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms700175 + HRESULT IMFTopology::GetNodeCount([Out] unsigned short* pwNodes) + IMFTopology::GetNodeCount +
+ + +

Gets a node in the topology, specified by index.

+
+

The zero-based index of the node. To get the number of nodes in the topology, call .

+

Receives a reference to the node's interface. The caller must release the reference.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The index is less than zero.

No node can be found at the index wIndex.

?

+ + ms701569 + HRESULT IMFTopology::GetNode([In] unsigned short wIndex,[Out] IMFTopologyNode** ppNode) + IMFTopology::GetNode +
+ + +

Removes all nodes from the topology.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

You do not need to clear a topology before disposing of it. The Clear method is called automatically when the topology is destroyed.

+
+ + ms700800 + HRESULT IMFTopology::Clear() + IMFTopology::Clear +
+ + +

Converts this topology into a copy of another topology.

+
+

A reference to the interface of the topology to clone.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method does the following:

  • Removes all of the nodes from this topology.
  • Clones the nodes from pTopology and adds them to this topology. The cloned nodes have the same node identifiers as the nodes from pTopology.
  • Connects the cloned nodes to match the connections in pTopology.
  • Copies the attributes from pTopology to this topology.
  • Copies the topology identifier from pTopology to this topology.
+
+ + ms702242 + HRESULT IMFTopology::CloneFrom([In, Optional] IMFTopology* pTopology) + IMFTopology::CloneFrom +
+ + +

Gets a node in the topology, specified by node identifier.

+
+

The identifier of the node to retrieve. To get a node's identifier, call .

+

Receives a reference to the node's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The topology does not contain a node with this identifier.

?

+ + ms696224 + HRESULT IMFTopology::GetNodeByID([In] unsigned longlong qwTopoNodeID,[Out] IMFTopologyNode** ppNode) + IMFTopology::GetNodeByID +
+ + +

Gets the source nodes in the topology.

+
+

Receives a reference to the interface. The caller must release the reference. The collection contains references to all of the source nodes in the topology. Each reference can be queried for the interface. The collection might be empty.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms701611 + HRESULT IMFTopology::GetSourceNodeCollection([Out] IMFCollection** ppCollection) + IMFTopology::GetSourceNodeCollection +
+ + +

Gets the output nodes in the topology.

+
+

Receives a reference to the interface. The caller must release the reference. The collection contains references to all of the output nodes in the topology. Each reference can be queried for the interface. The collection might be empty.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms694029 + HRESULT IMFTopology::GetOutputNodeCollection([Out] IMFCollection** ppCollection) + IMFTopology::GetOutputNodeCollection +
+ + +

Gets the identifier of the topology.

+
+ + ms705620 + GetTopologyID + GetTopologyID + HRESULT IMFTopology::GetTopologyID([Out] unsigned longlong* pID) +
+ + +

Gets the number of nodes in the topology.

+
+ + ms700175 + GetNodeCount + GetNodeCount + HRESULT IMFTopology::GetNodeCount([Out] unsigned short* pwNodes) +
+ + +

Gets the source nodes in the topology.

+
+ + ms701611 + GetSourceNodeCollection + GetSourceNodeCollection + HRESULT IMFTopology::GetSourceNodeCollection([Out] IMFCollection** ppCollection) +
+ + +

Gets the output nodes in the topology.

+
+ + ms694029 + GetOutputNodeCollection + GetOutputNodeCollection + HRESULT IMFTopology::GetOutputNodeCollection([Out] IMFCollection** ppCollection) +
+ + +

Represents a node in a topology. The following node types are supported:

  • Output node. Represents a media sink.
  • Source node. Represents a media stream.
  • Transform node. Represents a Media Foundation Transform (MFT).
  • Tee node. Delivers a media stream to two or more nodes.

To create a new node, call the function.

+
+ + ms693529 + IMFTopologyNode + IMFTopologyNode +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the object associated with this node.

+
+

A reference to the object's interface. Use the value null to clear an object that was previous set.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

All node types support this method, but the object reference is not used by every node type.

Node typeObject reference
Source node.Not used.
Transform node. or interface.
Output node or interface.
Tee node.Not used.

?

If the object supports , IPersistStorage, or IPersistPropertyBag, the method gets the object's CLSID and sets the attribute on the node.

+
+ + ms702992 + HRESULT IMFTopologyNode::SetObject([In, Optional] IUnknown* pObject) + IMFTopologyNode::SetObject +
+ + +

Gets the object associated with this node.

+
+

Receives a reference to the object's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_FAIL

There is no object associated with this node.

?

+ + ms693569 + HRESULT IMFTopologyNode::GetObjectW([Out] IUnknown** ppObject) + IMFTopologyNode::GetObjectW +
+ + +

Retrieves the node type.

+
+

Receives the node type, specified as a member of the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms697514 + HRESULT IMFTopologyNode::GetNodeType([Out] MF_TOPOLOGY_TYPE* pType) + IMFTopologyNode::GetNodeType +
+ + +

Retrieves the identifier of the node.

+
+

Receives the identifier.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

When a node is first created, it is assigned an identifier. Node identifiers are unique within a topology, but can be reused across several topologies. The topology loader uses the identifier to look up nodes in the previous topology, so that it can reuse objects from the previous topology.

To find a node in a topology by its identifier, call .

+
+ + ms701602 + HRESULT IMFTopologyNode::GetTopoNodeID([Out] unsigned longlong* pID) + IMFTopologyNode::GetTopoNodeID +
+ + +

Sets the identifier for the node.

+
+

The identifier for the node.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The TOPOID has already been set for this object.

?

+ +

When a node is first created, it is assigned an identifier. Typically there is no reason for an application to override the identifier. Within a topology, each node identifier should be unique.

+
+ + bb970438 + HRESULT IMFTopologyNode::SetTopoNodeID([In] unsigned longlong ullTopoID) + IMFTopologyNode::SetTopoNodeID +
+ + +

Retrieves the number of input streams that currently exist on this node.

+
+

Receives the number of input streams.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The input streams may or may not be connected to output streams on other nodes. To get the node that is connected to a specified input stream, call .

The and methods add new input streams as needed.

+
+ + ms700165 + HRESULT IMFTopologyNode::GetInputCount([Out] unsigned int* pcInputs) + IMFTopologyNode::GetInputCount +
+ + +

Retrieves the number of output streams that currently exist on this node.

+
+

Receives the number of output streams.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The output streams may or may not be connected to input streams on other nodes. To get the node that is connected to a specific output stream on this node, call .

The and methods add new input streams as needed.

+
+ + ms704019 + HRESULT IMFTopologyNode::GetOutputCount([Out] unsigned int* pcOutputs) + IMFTopologyNode::GetOutputCount +
+ + +

Connects an output stream from this node to the input stream of another node.

+
+

Zero-based index of the output stream on this node.

+

Pointer to the interface of the node to connect to.

+

Zero-based index of the input stream on the other node.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_FAIL

The method failed.

E_INVALIDARG

Invalid parameter.

?

+ +

Node connections represent data flow from one node to the next. The streams are logical, and are specified by index.

If the node is already connected at the specified output, the method breaks the existing connection. If dwOutputIndex or dwInputIndexOnDownstreamNode specify streams that do not exist yet, the method adds as many streams as needed.

This method checks for certain invalid conditions:

  • An output node cannot have any output connections. If you call this method on an output node, the method returns E_FAIL.

  • A node cannot be connected to itself. If pDownstreamNode specifies the same node as the method call, the method returns E_INVALIDARG.

However, if the method succeeds, it does not guarantee that the node connection is valid. It is possible to create a partial topology that the topology loader cannot resolve. If so, the method will fail.

To break an existing node connection, call .

+
+ + ms695284 + HRESULT IMFTopologyNode::ConnectOutput([In] unsigned int dwOutputIndex,[In] IMFTopologyNode* pDownstreamNode,[In] unsigned int dwInputIndexOnDownstreamNode) + IMFTopologyNode::ConnectOutput +
+ + +

Disconnects an output stream on this node.

+
+

Zero-based index of the output stream to disconnect.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The dwOutputIndex parameter is out of range.

The specified output stream is not connected to another node.

?

+ +

If the specified output stream is connected to another node, this method breaks the connection.

+
+ + ms698991 + HRESULT IMFTopologyNode::DisconnectOutput([In] unsigned int dwOutputIndex) + IMFTopologyNode::DisconnectOutput +
+ + +

Retrieves the node that is connected to a specified input stream on this node.

+
+

Zero-based index of an input stream on this node.

+

Receives a reference to the interface of the node that is connected to the specified input stream. The caller must release the interface.

+

Receives the index of the output stream that is connected to this node's input stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The index is out of range.

The specified input stream is not connected to another node.

?

+ + ms697020 + HRESULT IMFTopologyNode::GetInput([In] unsigned int dwInputIndex,[Out] IMFTopologyNode** ppUpstreamNode,[Out] unsigned int* pdwOutputIndexOnUpstreamNode) + IMFTopologyNode::GetInput +
+ + +

Retrieves the node that is connected to a specified output stream on this node.

+
+

Zero-based index of an output stream on this node.

+

Receives a reference to the interface of the node that is connected to the specified output stream. The caller must release the interface.

+

Receives the index of the input stream that is connected to this node's output stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The index is out of range.

The specified input stream is not connected to another node.

?

+ + bb970327 + HRESULT IMFTopologyNode::GetOutput([In] unsigned int dwOutputIndex,[Out] IMFTopologyNode** ppDownstreamNode,[Out] unsigned int* pdwInputIndexOnDownstreamNode) + IMFTopologyNode::GetOutput +
+ + +

Sets the preferred media type for an output stream on this node.

+
+

Zero-based index of the output stream.

+

Pointer to the interface of the media type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

This node is an output node.

?

+ +

The preferred type is a hint for the topology loader.

Do not call this method after loading a topology or setting a topology on the Media Session. Changing the preferred type on a running topology can cause connection errors.

If no output stream exists at the specified index, the method creates new streams up to and including the specified index number.

Output nodes cannot have outputs. If this method is called on an output node, it returns E_NOTIMPL

+
+ + ms701546 + HRESULT IMFTopologyNode::SetOutputPrefType([In] unsigned int dwOutputIndex,[In] IMFMediaType* pType) + IMFTopologyNode::SetOutputPrefType +
+ + +

Retrieves the preferred media type for an output stream on this node.

+
+

Zero-based index of the output stream.

+

Receives a reference to the interface of the media type. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_FAIL

This node does not have a preferred output type.

E_INVALIDARG

Invalid stream index.

E_NOTIMPL

This node is an output node.

?

+ +

Output nodes cannot have outputs. If this method is called on an output node, it returns E_NOTIMPL.

The preferred output type provides a hint to the topology loader. In a fully resolved topology, there is no guarantee that every topology node will have a preferred output type. To get the actual media type for a node, you must get a reference to the node's underlying object. (For more information, see enumeration.)

+
+ + ms701571 + HRESULT IMFTopologyNode::GetOutputPrefType([In] unsigned int dwOutputIndex,[Out] IMFMediaType** ppType) + IMFTopologyNode::GetOutputPrefType +
+ + +

Sets the preferred media type for an input stream on this node.

+
+

Zero-based index of the input stream.

+

Pointer to the interface of the media type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

This node is a source node.

?

+ +

The preferred type is a hint for the topology loader.

Do not call this method after loading a topology or setting a topology on the Media Session. Changing the preferred type on a running topology can cause connection errors.

If no input stream exists at the specified index, the method creates new streams up to and including the specified index number.

Source nodes cannot have inputs. If this method is called on a source node, it returns E_NOTIMPL.

+
+ + ms696223 + HRESULT IMFTopologyNode::SetInputPrefType([In] unsigned int dwInputIndex,[In] IMFMediaType* pType) + IMFTopologyNode::SetInputPrefType +
+ + +

Retrieves the preferred media type for an input stream on this node.

+
+

Zero-based index of the input stream.

+

Receives a reference to the interface of the media type. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_FAIL

This node does not have a preferred input type.

E_INVALIDARG

Invalid stream index.

E_NOTIMPL

This node is a source node.

?

+ +

Source nodes cannot have inputs. If this method is called on a source node, it returns E_NOTIMPL.

The preferred input type provides a hint to the topology loader. In a fully resolved topology, there is no guarantee that every topology node will have a preferred input type. To get the actual media type for a node, you must get a reference to the node's underlying object. (For more information, see enumeration.)

+
+ + ms696221 + HRESULT IMFTopologyNode::GetInputPrefType([In] unsigned int dwInputIndex,[Out] IMFMediaType** ppType) + IMFTopologyNode::GetInputPrefType +
+ + +

Copies the data from another topology node into this node.

+
+

A reference to the interface of the node to copy.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The node types do not match.

?

+ +

The two nodes must have the same node type. To get the node type, call .

This method copies the object reference, preferred types, and attributes from pNode to this node. It also copies the TOPOID that uniquely identifies each node in a topology. It does not duplicate any of the connections from pNode to other nodes.

The purpose of this method is to copy nodes from one topology to another. Do not use duplicate nodes within the same topology.

+
+ + ms700790 + HRESULT IMFTopologyNode::CloneFrom([In, Optional] IMFTopologyNode* pNode) + IMFTopologyNode::CloneFrom +
+ + +

Sets the object associated with this node.

+
+ +

All node types support this method, but the object reference is not used by every node type.

Node typeObject reference
Source node.Not used.
Transform node. or interface.
Output node or interface.
Tee node.Not used.

?

If the object supports , IPersistStorage, or IPersistPropertyBag, the method gets the object's CLSID and sets the attribute on the node.

+
+ + ms702992 + SetObject + SetObject + HRESULT IMFTopologyNode::SetObject([In, Optional] IUnknown* pObject) +
+ + +

Gets the object associated with this node.

+
+ + ms693569 + GetObjectW + GetObjectW + HRESULT IMFTopologyNode::GetObjectW([Out] IUnknown** ppObject) +
+ + +

Retrieves the node type.

+
+ + ms697514 + GetNodeType + GetNodeType + HRESULT IMFTopologyNode::GetNodeType([Out] MF_TOPOLOGY_TYPE* pType) +
+ + +

Retrieves or sets the identifier of the node.

+
+ +

When a node is first created, it is assigned an identifier. Node identifiers are unique within a topology, but can be reused across several topologies. The topology loader uses the identifier to look up nodes in the previous topology, so that it can reuse objects from the previous topology.

To find a node in a topology by its identifier, call .

+
+ + ms701602 + GetTopoNodeID / SetTopoNodeID + GetTopoNodeID + HRESULT IMFTopologyNode::GetTopoNodeID([Out] unsigned longlong* pID) +
+ + +

Retrieves the number of input streams that currently exist on this node.

+
+ +

The input streams may or may not be connected to output streams on other nodes. To get the node that is connected to a specified input stream, call .

The and methods add new input streams as needed.

+
+ + ms700165 + GetInputCount + GetInputCount + HRESULT IMFTopologyNode::GetInputCount([Out] unsigned int* pcInputs) +
+ + +

Retrieves the number of output streams that currently exist on this node.

+
+ +

The output streams may or may not be connected to input streams on other nodes. To get the node that is connected to a specific output stream on this node, call .

The and methods add new input streams as needed.

+
+ + ms704019 + GetOutputCount + GetOutputCount + HRESULT IMFTopologyNode::GetOutputCount([Out] unsigned int* pcOutputs) +
+ + +

Updates the attributes of one or more nodes in the current topology.

+
+ +

Currently the only attribute that can be updated is the attribute. The method ignores any other attributes.

+
+ + aa371868 + IMFTopologyNodeAttributeEditor + IMFTopologyNodeAttributeEditor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Updates the attributes of one or more nodes in the current topology.

+
+

Reserved.

+

The number of elements in the pUpdates array.

+

Pointer to an array of structures. Each element of the array updates one attribute on a node.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Currently the only attribute that can be updated is the attribute. The method ignores any other attributes.

+
+ + aa371868 + HRESULT IMFTopologyNodeAttributeEditor::UpdateNodeAttributes([In] unsigned longlong TopoId,[In] unsigned int cUpdates,[In, Buffer] MFTOPONODE_ATTRIBUTE_UPDATE* pUpdates) + IMFTopologyNodeAttributeEditor::UpdateNodeAttributes +
+ + +

Enables a custom video mixer or video presenter to get interface references from the Enhanced Video Renderer (EVR). The mixer can also use this interface to get interface references from the presenter, and the presenter can use it to get interface references from the mixer.

To use this interface, implement the interface on your custom mixer or presenter. The EVR calls with a reference to the EVR's interface.

+
+ + ms702001 + IMFTopologyServiceLookup + IMFTopologyServiceLookup +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves an interface from the enhanced video renderer (EVR), or from the video mixer or video presenter.

+
+

Specifies the scope of the search. Currently this parameter is ignored. Use the value .

+

Reserved, must be zero.

+

Service of the requested interface.

+

Interface identifier of the requested interface.

+

Array of interface references. If the method succeeds, each member of the array contains either a valid interface reference or null. The caller must release the interface references when the EVR calls (or earlier). If the method fails, every member of the array is null.

+

Pointer to a value that specifies the size of the ppvObjects array. The value must be at least 1. In the current implementation, there is no reason to specify an array size larger than one element. The value is not changed on output.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

E_NOINTERFACE

The requested interface is not available.

The method was not called from inside the method. See Remarks.

The object does not support the specified service .

?

+ +

This method can be called only from inside the method. At any other time, the method returns .

The presenter can use this method to query the EVR and the mixer. The mixer can use it to query the EVR and the presenter. Which objects are queried depends on the caller and the service , as shown in the following table.

CallerService Objects queried
PresenterMR_VIDEO_RENDER_SERVICEEVR
PresenterMR_VIDEO_MIXER_SERVICEMixer
MixerMR_VIDEO_RENDER_SERVICEPresenter and EVR

?

The following interfaces are available from the EVR:

  • IMediaEventSink. This interface is documented in the DirectShow SDK documentation.

  • interface. This interface is available if the EVR has access to a clock (reference clock in DirectShow or presentation clock in Media Foundation). This interface might not be available. Presenter and mixers must be able to process data without a clock. If the interface is available, you can also get these related interfaces:

    • (Media Foundation EVR only)

The following interfaces are available from the mixer:

+
+ + bb970504 + HRESULT IMFTopologyServiceLookup::LookupService([In] MF_SERVICE_LOOKUP_TYPE Type,[In] unsigned int dwIndex,[In] const GUID& guidService,[In] const GUID& riid,[Out, Buffer] void** ppvObjects,[InOut] unsigned int* pnObjects) + IMFTopologyServiceLookup::LookupService +
+ + +

Signals the object to release the interface references obtained from the enhanced video renderer (EVR).

+
+ +

After this method is called, any interface references obtained during the previous call to are no longer valid. The object must release them.

+
+ + ms693584 + IMFTopologyServiceLookupClient + IMFTopologyServiceLookupClient +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Signals the mixer or presenter to query the enhanced video renderer (EVR) for interface references.

+
+

Pointer to the interface. To query the EVR for an interface, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The reference is guaranteed to be valid only during the call to InitServicePointers. The mixer or presenter should not store a reference to this interface after the method returns.

When the EVR calls , the mixer or presenter should release any references it obtained from the EVR.

+
+ + bb970502 + HRESULT IMFTopologyServiceLookupClient::InitServicePointers([In] IMFTopologyServiceLookup* pLookup) + IMFTopologyServiceLookupClient::InitServicePointers +
+ + +

Signals the object to release the interface references obtained from the enhanced video renderer (EVR).

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

After this method is called, any interface references obtained during the previous call to are no longer valid. The object must release them.

+
+ + ms693584 + HRESULT IMFTopologyServiceLookupClient::ReleaseServicePointers() + IMFTopologyServiceLookupClient::ReleaseServicePointers +
+ + +

Tracks the reference counts on a video media sample. Video samples created by the function expose this interface.

+
+ +

Use this interface to determine whether it is safe to delete or re-use the buffer contained in a sample. One object assigns itself as the owner of the video sample by calling SetAllocator. When all objects release their reference counts on the sample, the owner's callback method is invoked.

+
+ + ms697026 + IMFTrackedSample + IMFTrackedSample +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the owner for the sample.

+
+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The owner was already set. This method cannot be called twice on the sample.

?

+ +

When this method is called, the sample holds an additional reference count on itself. When every other object releases its reference counts on the sample, the sample invokes the pSampleAllocator callback method. To get a reference to the sample, call on the asynchronous result object given to the callback's method.

After the callback is invoked, the sample clears the callback. To reinstate the callback, you must call SetAllocator again.

It is safe to pass in the sample's interface reference as the state object (pUnkState) for the callback. If pUnkState points to the sample, the SetAllocator method accounts for the additional reference count on pUnkState.

+
+ + ms704797 + HRESULT IMFTrackedSample::SetAllocator([In] IMFAsyncCallback* pSampleAllocator,[In] IUnknown* pUnkState) + IMFTrackedSample::SetAllocator +
+ + +

Implemented by the transcode profile object.

The transcode profile stores configuration settings that the topology builder uses to generate the transcode topology for the output file. These configuration settings are specified by the caller and include audio and video stream properties, encoder settings, and container settings that are specified by the caller.

To create the transcode profile object, call . The configured transcode profile is passed to , which creates the transcode topology with the appropriate settings.

+
+ + dd369139 + IMFTranscodeProfile + IMFTranscodeProfile +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets audio stream configuration settings in the transcode profile.

To get a list of compatible audio media types supported by the Media Foundation transform (MFT) encoder , call . You can get the attributes that are set on the required media type and set them on the transcode profile. To set the audio attributes properly, create a new attribute store and copy the attribute store from the required media media type by calling . This makes sure that the caller does not hold the references to the media type retrieved from the encoder. For example code, see .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd369143 + HRESULT IMFTranscodeProfile::SetAudioAttributes([In, Optional] IMFAttributes* pAttrs) + IMFTranscodeProfile::SetAudioAttributes +
+ + +

Gets the audio stream settings that are currently set in the transcode profile.

+
+

Receives a reference to the interface of the attribute store containing the current audio stream settings. Caller must release the interface reference.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If there are no audio attributes set in the transcode profile, the call to GetAudioAttributes succeeds and ppAttrs receives null.

To get a specific attribute value, the caller must call the appropriate method depending on the data type of the attribute, and specify the attribute name. The following topics describe the audio attributes:

  • Audio Media Types
+
+ + dd369140 + HRESULT IMFTranscodeProfile::GetAudioAttributes([Out, Optional] IMFAttributes** ppAttrs) + IMFTranscodeProfile::GetAudioAttributes +
+ + +

Sets video stream configuration settings in the transcode profile.

For example code, see .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd369145 + HRESULT IMFTranscodeProfile::SetVideoAttributes([In, Optional] IMFAttributes* pAttrs) + IMFTranscodeProfile::SetVideoAttributes +
+ + +

Gets the video stream settings that are currently set in the transcode profile.

+
+

Receives a reference to the interface of the attribute store containing the current video stream settings. Caller must release the interface reference.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If there are no container attributes set in the transcode profile, the GetVideoAttributes method succeeds and ppAttrs receives null.

To get a specific attribute value, the caller must call the appropriate method depending on the data type of the attribute, and specify the attribute name. The following list shows the video attributes:

  • Video Media Types
+
+ + dd369142 + HRESULT IMFTranscodeProfile::GetVideoAttributes([Out, Optional] IMFAttributes** ppAttrs) + IMFTranscodeProfile::GetVideoAttributes +
+ + +

Sets container configuration settings in the transcode profile.

For example code, see .

+
+ No documentation. +

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd369144 + HRESULT IMFTranscodeProfile::SetContainerAttributes([In, Optional] IMFAttributes* pAttrs) + IMFTranscodeProfile::SetContainerAttributes +
+ + +

Gets the container settings that are currently set in the transcode profile.

+
+

Receives a reference to the interface of the attribute store containing the current container type for the output file. Caller must release the interface reference.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If there are no container attributes set in the transcode profile, the call to GetContainerAttributes succeeds and ppAttrs receives null.

To get a specific attribute value, the caller must call the appropriate method depending on the data type of the attribute. The following list shows the container attributes:

+
+ + dd369141 + HRESULT IMFTranscodeProfile::GetContainerAttributes([Out, Optional] IMFAttributes** ppAttrs) + IMFTranscodeProfile::GetContainerAttributes +
+ + +

Gets or sets the audio stream settings that are currently set in the transcode profile.

+
+ +

If there are no audio attributes set in the transcode profile, the call to GetAudioAttributes succeeds and ppAttrs receives null.

To get a specific attribute value, the caller must call the appropriate method depending on the data type of the attribute, and specify the attribute name. The following topics describe the audio attributes:

  • Audio Media Types
+
+ + dd369140 + GetAudioAttributes / SetAudioAttributes + GetAudioAttributes + HRESULT IMFTranscodeProfile::GetAudioAttributes([Out, Optional] IMFAttributes** ppAttrs) +
+ + +

Gets or sets the video stream settings that are currently set in the transcode profile.

+
+ +

If there are no container attributes set in the transcode profile, the GetVideoAttributes method succeeds and ppAttrs receives null.

To get a specific attribute value, the caller must call the appropriate method depending on the data type of the attribute, and specify the attribute name. The following list shows the video attributes:

  • Video Media Types
+
+ + dd369142 + GetVideoAttributes / SetVideoAttributes + GetVideoAttributes + HRESULT IMFTranscodeProfile::GetVideoAttributes([Out, Optional] IMFAttributes** ppAttrs) +
+ + +

Gets or sets the container settings that are currently set in the transcode profile.

+
+ +

If there are no container attributes set in the transcode profile, the call to GetContainerAttributes succeeds and ppAttrs receives null.

To get a specific attribute value, the caller must call the appropriate method depending on the data type of the attribute. The following list shows the container attributes:

+
+ + dd369141 + GetContainerAttributes / SetContainerAttributes + GetContainerAttributes + HRESULT IMFTranscodeProfile::GetContainerAttributes([Out, Optional] IMFAttributes** ppAttrs) +
+ + +

Implemented by the transcode sink activation object.

The transcode sink activation object can be used to create any of the following file sinks:

  • 3GP file sink
  • MP3 file sink
  • MP4 file sink
+
+ +

To use this interface, perform the following steps:

  1. Call to create the transcode sink activation object.
  2. Query the activation object for the interface.
  3. Call to create a transcode profile.
  4. Set the attribute on the transcode profile. The attribute must have one of the following values:
    • MFTranscodeContainerType_3GP
    • MFTranscodeContainerType_MP3
    • MFTranscodeContainerType_MPEG4
  5. Call and to specify the video and audio formats.
  6. Call to set the transcode profile.
  7. Call one of the following methods (but not both) to specify the output file:
  8. Call on the activation object to create the media sink.
+
+ + dd369146 + IMFTranscodeSinkInfoProvider + IMFTranscodeSinkInfoProvider +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the name of the encoded output file.

+
+

Pointer to a null-terminated string that contains the name of the output file.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The media sink will create a local file with the specified file name.

Alternately, you can call to specify a byte stream that will receive the transcoded data. These two methods are mutually exclusive.

+
+ + dd369149 + HRESULT IMFTranscodeSinkInfoProvider::SetOutputFile([In] const wchar_t* pwszFileName) + IMFTranscodeSinkInfoProvider::SetOutputFile +
+ + +

Sets an output byte stream for the transcode media sink.

+
+

A reference to the interface of a byte-stream activation object.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Call this method to provide a writeable byte stream that will receive the transcoded data.

Alternatively, you can provide the name of an output file, by calling . These two methods are mutually exclusive.

The pByteStreamActivate parameter must specify an activation object that creates a writeable byte stream. Internally, the transcode media sink calls to create the byte stream, as follows:

*pByteStream = null; hr = pByteStreamActivate->ActivateObject(IID_IMFByteStream, (void**)&pByteStream);

Currently, Microsoft Media Foundation does not provide any byte-stream activation objects. To use this method, an application must provide a custom implementation of .

+
+ + dd369148 + HRESULT IMFTranscodeSinkInfoProvider::SetOutputByteStream([In] IMFActivate* pByteStreamActivate) + IMFTranscodeSinkInfoProvider::SetOutputByteStream +
+ + +

Sets the transcoding profile on the transcode sink activation object.

+
+

A reference to the interface. To get a reference to this interface, call .

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Before calling this method, initialize the profile object as follows:

  • Set the attribute to specify the container type of the output file.
  • If the output file will have a video stream, set video attributes by calling the method.
  • If the output file will have an audio stream, set audio attributes by calling the method.
+
+ + dd369150 + HRESULT IMFTranscodeSinkInfoProvider::SetProfile([In] IMFTranscodeProfile* pProfile) + IMFTranscodeSinkInfoProvider::SetProfile +
+ + +

Gets the media types for the audio and video streams specified in the transcode profile.

+
+

A reference to an structure.

If the method succeeds, the method assigns references to the pAudioMediaType and pVideoMediaType members of this structure. The method might set either member to null. If either member is non-null after the method returns, the caller must release the references.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Before calling this method, call to set the transcode profile. The GetSinkInfo method uses the profile to create media types for the audio and video streams.

+
+ + dd369147 + HRESULT IMFTranscodeSinkInfoProvider::GetSinkInfo([Out] MF_TRANSCODE_SINK_INFO* pSinkInfo) + IMFTranscodeSinkInfoProvider::GetSinkInfo +
+ + +

Sets the name of the encoded output file.

+
+ +

The media sink will create a local file with the specified file name.

Alternately, you can call to specify a byte stream that will receive the transcoded data. These two methods are mutually exclusive.

+
+ + dd369149 + SetOutputFile + SetOutputFile + HRESULT IMFTranscodeSinkInfoProvider::SetOutputFile([In] const wchar_t* pwszFileName) +
+ + +

Sets an output byte stream for the transcode media sink.

+
+ +

Call this method to provide a writeable byte stream that will receive the transcoded data.

Alternatively, you can provide the name of an output file, by calling . These two methods are mutually exclusive.

The pByteStreamActivate parameter must specify an activation object that creates a writeable byte stream. Internally, the transcode media sink calls to create the byte stream, as follows:

*pByteStream = null; hr = pByteStreamActivate->ActivateObject(IID_IMFByteStream, (void**)&pByteStream);

Currently, Microsoft Media Foundation does not provide any byte-stream activation objects. To use this method, an application must provide a custom implementation of .

+
+ + dd369148 + SetOutputByteStream + SetOutputByteStream + HRESULT IMFTranscodeSinkInfoProvider::SetOutputByteStream([In] IMFActivate* pByteStreamActivate) +
+ + +

Sets the transcoding profile on the transcode sink activation object.

+
+ +

Before calling this method, initialize the profile object as follows:

  • Set the attribute to specify the container type of the output file.
  • If the output file will have a video stream, set video attributes by calling the method.
  • If the output file will have an audio stream, set audio attributes by calling the method.
+
+ + dd369150 + SetProfile + SetProfile + HRESULT IMFTranscodeSinkInfoProvider::SetProfile([In] IMFTranscodeProfile* pProfile) +
+ + +

Gets the media types for the audio and video streams specified in the transcode profile.

+
+ +

Before calling this method, call to set the transcode profile. The GetSinkInfo method uses the profile to create media types for the audio and video streams.

+
+ + dd369147 + GetSinkInfo + GetSinkInfo + HRESULT IMFTranscodeSinkInfoProvider::GetSinkInfo([Out] MF_TRANSCODE_SINK_INFO* pSinkInfo) +
+ + +

Implemented by all Media Foundation Transforms (MFTs).

+
+ + ms696260 + IMFTransform + IMFTransform +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the minimum and maximum number of input and output streams for this Media Foundation transform (MFT).

+
+

Receives the minimum number of input streams.

+

Receives the maximum number of input streams. If there is no maximum, receives the value MFT_STREAMS_UNLIMITED.

+

Receives the minimum number of output streams.

+

Receives the maximum number of output streams. If there is no maximum, receives the value MFT_STREAMS_UNLIMITED.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

If the MFT has a fixed number of streams, the minimum and maximum values are the same.

It is not recommended to create an MFT that supports zero inputs or zero outputs. An MFT with no inputs or no outputs may not be compatible with the rest of the Media Foundation pipeline. You should create a Media Foundation sink or source for this purpose instead.

When an MFT is first created, it is not guaranteed to have the minimum number of streams. To find the actual number of streams, call .

This method should not be called with null parameters, although in practice some implementations may allow null parameters.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetStreamLimits. See Creating Hybrid DMO/MFT Objects.

+
+ + ms697040 + HRESULT IMFTransform::GetStreamLimits([Out] unsigned int* pdwInputMinimum,[Out] unsigned int* pdwInputMaximum,[Out] unsigned int* pdwOutputMinimum,[Out] unsigned int* pdwOutputMaximum) + IMFTransform::GetStreamLimits +
+ + +

Gets the current number of input and output streams on this Media Foundation transform (MFT).

+
+

Receives the number of input streams.

+

Receives the number of output streams.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

The number of streams includes unselected streams?that is, streams with no media type or a null media type.

This method should not be called with null parameters, although in practice some implementations may allow null parameters.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetStreamCount. See Creating Hybrid DMO/MFT Objects.

+
+ + ms697018 + HRESULT IMFTransform::GetStreamCount([Out] unsigned int* pcInputStreams,[Out] unsigned int* pcOutputStreams) + IMFTransform::GetStreamCount +
+ + +

Gets the stream identifiers for the input and output streams on this Media Foundation transform (MFT).

+
+

Number of elements in the pdwInputIDs array.

+

Pointer to an array allocated by the caller. The method fills the array with the input stream identifiers. The array size must be at least equal to the number of input streams. To get the number of input streams, call .

If the caller passes an array that is larger than the number of input streams, the MFT must not write values into the extra array entries.

+

Number of elements in the pdwOutputIDs array.

+

Pointer to an array allocated by the caller. The method fills the array with the output stream identifiers. The array size must be at least equal to the number of output streams. To get the number of output streams, call GetStreamCount.

If the caller passes an array that is larger than the number of output streams, the MFT must not write values into the extra array entries.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented. See Remarks.

One or both of the arrays is too small.

?

+ +

Stream identifiers are necessary because some MFTs can add or remove streams, so the index of a stream may not be unique. Therefore, methods that operate on streams take stream identifiers.

This method can return E_NOTIMPL if both of the following conditions are true:

  • The transform has a fixed number of streams.
  • The streams are numbered consecutively from 0 to n ? 1, where n is the number of input streams or output streams. In other words, the first input stream is 0, the second is 1, and so on; and the first output stream is 0, the second is 1, and so on.

This method must be implemented if any of the following conditions is true:

  • The MFT can add or remove output streams.
  • The MFT allows the client to add or remove input streams.
  • The stream identifiers are not consecutive.

All input stream identifiers must be unique within an MFT, and all output stream identifiers must be unique. However, an input stream and an output stream can share the same identifier.

If the client adds an input stream, the client assigns the identifier, so the MFT must allow arbitrary identifiers, as long as they are unique. If the MFT creates an output stream, the MFT assigns the identifier.

By convention, if an MFT has exactly one fixed input stream and one fixed output stream, it should assign the identifier 0 to both streams.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetStreamIDs. See Creating Hybrid DMO/MFT Objects.

+
+ + ms693988 + HRESULT IMFTransform::GetStreamIDs([In] unsigned int dwInputIDArraySize,[Out, Buffer] unsigned int* pdwInputIDs,[In] unsigned int dwOutputIDArraySize,[Out, Buffer] unsigned int* pdwOutputIDs) + IMFTransform::GetStreamIDs +
+ + +

Gets the buffer requirements and other information for an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Pointer to an structure. The method fills the structure with information about the input stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream identifier.

?

+ +

It is valid to call this method before setting the media types.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetInputStreamInfo. See Creating Hybrid DMO/MFT Objects.

+
+ + ms703894 + HRESULT IMFTransform::GetInputStreamInfo([In] unsigned int dwInputStreamID,[Out] MFT_INPUT_STREAM_INFO* pStreamInfo) + IMFTransform::GetInputStreamInfo +
+ + +

Gets the buffer requirements and other information for an output stream on this Media Foundation transform (MFT).

+
+

Output stream identifier. To get the list of stream identifiers, call .

+

Pointer to an structure. The method fills the structure with information about the output stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream number.

?

+ +

It is valid to call this method before setting the media types.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetOutputStreamInfo. See Creating Hybrid DMO/MFT Objects.

+
+ + ms693880 + HRESULT IMFTransform::GetOutputStreamInfo([In] unsigned int dwOutputStreamID,[Out] MFT_OUTPUT_STREAM_INFO* pStreamInfo) + IMFTransform::GetOutputStreamInfo +
+ + +

Gets the global attribute store for this Media Foundation transform (MFT).

+
+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The MFT does not support attributes.

?

+ +

Use the reference retrieved by this method to get or set attributes that apply to the entire MFT. To get the attribute store for an input stream, call . To get the attribute store for an output stream, call .

Implementation of this method is optional unless the MFT needs to support a particular set of attributes. Exception: Hardware-based MFTs must implement this method. See Hardware MFTs.

+
+ + ms703141 + HRESULT IMFTransform::GetAttributes([Out] IMFAttributes** pAttributes) + IMFTransform::GetAttributes +
+ + +

Gets the attribute store for an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The MFT does not support input stream attributes.

Invalid stream identifier.

?

+ +

Implementation of this method is optional unless the MFT needs to support a particular set of attributes.

To get the attribute store for the entire MFT, call .

+
+ + ms695366 + HRESULT IMFTransform::GetInputStreamAttributes([In] unsigned int dwInputStreamID,[Out] IMFAttributes** pAttributes) + IMFTransform::GetInputStreamAttributes +
+ + +

Gets the attribute store for an output stream on this Media Foundation transform (MFT).

+
+

Output stream identifier. To get the list of stream identifiers, call .

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The MFT does not support output stream attributes.

Invalid stream identifier.

?

+ +

Implementation of this method is optional unless the MFT needs to support a particular set of attributes.

To get the attribute store for the entire MFT, call .

+
+ + ms703886 + HRESULT IMFTransform::GetOutputStreamAttributes([In] unsigned int dwOutputStreamID,[Out] IMFAttributes** pAttributes) + IMFTransform::GetOutputStreamAttributes +
+ + +

Removes an input stream from this Media Foundation transform (MFT).

+
+

Identifier of the input stream to remove.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The transform has a fixed number of input streams.

The stream is not removable, or the transform currently has the minimum number of input streams it can support.

Invalid stream identifier.

The transform has unprocessed input buffers for the specified stream.

?

+ +

If the transform has a fixed number of input streams, the method returns E_NOTIMPL.

An MFT might support this method but not allow certain input streams to be removed. If an input stream can be removed, the method returns the flag for that stream. Otherwise, the stream cannot be removed, and the method returns . The method also fails if the MFT currently has the minimum number of input streams that it requires. To find the minimum number of streams, call .

If the transform still has unprocessed input for that stream, the method might succeed or it might return . If the method succeeds, the MFT will continue to process the remaining input after the stream is removed. If the method returns , you must clear the input buffers before removing the stream. To clear the input buffers, either call or else call with the to flush the MFT. Then call the DeleteInputStream again. An MFT should never discard input buffers when DeleteInputStream is called.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTDeleteInputStream. See Creating Hybrid DMO/MFT Objects.

+
+ + ms703159 + HRESULT IMFTransform::DeleteInputStream([In] unsigned int dwStreamID) + IMFTransform::DeleteInputStream +
+ + +

Adds one or more new input streams to this Media Foundation transform (MFT).

+
+

Number of streams to add.

+

Array of stream identifiers. The new stream identifiers must not match any existing input streams.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

E_NOTIMPL

The MFT has a fixed number of input streams.

?

+ +

If the new streams exceed the maximum number of input streams for this transform, the method returns E_INVALIDARG. To find the maximum number of input streams, call .

If any of the new stream identifiers conflicts with an existing input stream, the method returns E_INVALIDARG.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTAddInputStreams. See Creating Hybrid DMO/MFT Objects.

+
+ + ms696211 + HRESULT IMFTransform::AddInputStreams([In] unsigned int cStreams,[In] unsigned int* adwStreamIDs) + IMFTransform::AddInputStreams +
+ + +

Gets an available media type for an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Index of the media type to retrieve. Media types are indexed from zero and returned in approximate order of preference.

+

Receives a reference to the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The MFT does not have a list of available input types.

Invalid stream identifier.

The dwTypeIndex parameter is out of range.

You must set the output types before setting the input types.

?

+ +

The MFT defines a list of available media types for each input stream and orders them by preference. This method enumerates the available media types for an input stream. To enumerate the available types, increment dwTypeIndex until the method returns .

Setting the media type on one stream might change the available types for another stream, or change the preference order. However, an MFT is not required to update the list of available types dynamically. The only guaranteed way to test whether you can set a particular input type is to call .

In some cases, an MFT cannot return a list of input types until one or more output types are set. If so, the method returns .

An MFT is not required to implement this method. However, most MFTs should implement this method, unless the supported types are simple and can be discovered through the function.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetInputAvailableType. See Creating Hybrid DMO/MFT Objects.

For encoders, after the output type is set, GetInputAvailableType must return a list of input types that are compatible with the current output type. This means that all types returned by GetInputAvailableType after the output type is set must be valid types for SetInputType.

Encoders should reject input types if the attributes of the input media type and output media type do not match, such as resolution setting with , nominal range setting with , or frame rate setting with

+
+ + ms704814 + HRESULT IMFTransform::GetInputAvailableType([In] unsigned int dwInputStreamID,[In] unsigned int dwTypeIndex,[Out] IMFMediaType** ppType) + IMFTransform::GetInputAvailableType +
+ + +

Gets an available media type for an output stream on this Media Foundation transform (MFT).

+
+

Output stream identifier. To get the list of stream identifiers, call .

+

Index of the media type to retrieve. Media types are indexed from zero and returned in approximate order of preference.

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

The MFT does not have a list of available output types.

Invalid stream identifier.

The dwTypeIndex parameter is out of range.

You must set the input types before setting the output types.

?

+ +

The MFT defines a list of available media types for each output stream and orders them by preference. This method enumerates the available media types for an output stream. To enumerate the available types, increment dwTypeIndex until the method returns MF_E_NO_MORE_TYPES.

Setting the media type on one stream can change the available types for another stream (or change the preference order). However, an MFT is not required to update the list of available types dynamically. The only guaranteed way to test whether you can set a particular input type is to call .

In some cases, an MFT cannot return a list of output types until one or more input types are set. If so, the method returns .

An MFT is not required to implement this method. However, most MFTs should implement this method, unless the supported types are simple and can be discovered through the function.

This method can return a partial media type. A partial media type contains an incomplete description of a format, and is used to provide a hint to the caller. For example, a partial type might include just the major type and subtype GUIDs. However, after the client sets the input types on the MFT, the MFT should generally return at least one complete output type, which can be used without further modification. For more information, see Complete and Partial Media Types.

Some MFTs cannot provide an accurate list of output types until the MFT receives the first input sample. For example, the MFT might need to read the first packet header to deduce the format. An MFT should handle this situation as follows:

  1. Before the MFT receives any input, it offers a list of one or more output types that it could possibly produce. For example, an MPEG-2 decoder might return a media type that describes the MPEG-2 main profile/main level.
  2. The client selects one of these types (generally the first) and sets it on the output stream.
  3. The client delivers the first input sample by calling .
  4. If the output type does not conform to the input data, the transform signals a format change in the ProcessOutput method. For more information about format changes, see .
  5. The calls GetOutputAvailableType again. At this point, the method should return an updated list of types that reflects the input data.
  6. The client selects a new output type from this list and calls SetOutputType.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetOutputAvailableType. See Creating Hybrid DMO/MFT Objects.

+
+ + ms703812 + HRESULT IMFTransform::GetOutputAvailableType([In] unsigned int dwOutputStreamID,[In] unsigned int dwTypeIndex,[Out] IMFMediaType** ppType) + IMFTransform::GetOutputAvailableType +
+ + +

Sets, tests, or clears the media type for an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Pointer to the interface, or null.

+

Zero or more flags from the _MFT_SET_TYPE_FLAGS enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The MFT cannot use the proposed media type.

Invalid stream identifier.

The proposed type is not valid. This error code indicates that the media type itself is not configured correctly; for example, it might contain mutually contradictory attributes.

The MFT cannot switch types while processing data. Try draining or flushing the MFT.

You must set the output types before setting the input types.

The MFT could not find a suitable DirectX Video Acceleration (DXVA) configuration.

?

+ +

This method can be used to set, test without setting, or clear the media type:

  • To set the media type, set dwFlags to zero and set pType to a non-null reference that specifies the media type.
  • To test the media type without setting it, set dwFlags to and set pType to a non-null reference that specifies the media type. If the media type is acceptable, the method return . Otherwise, it returns . Regardless of the return value, the current media type does not change.
  • To clear the media type, set pType to null.

Setting the media type on one stream may change the acceptable types on another stream.

An MFT may require the caller to set one or more output types before setting the input type. If so, the method returns .

If the MFT supports DirectX Video Acceleration (DXVA) but is unable to find a suitable DXVA configuration (for example, if the graphics driver does not have the right capabilities), the method should return . For more information, see Supporting DXVA 2.0 in Media Foundation.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTSetInputType. See Creating Hybrid DMO/MFT Objects.

+
+ + ms700113 + HRESULT IMFTransform::SetInputType([In] unsigned int dwInputStreamID,[In, Optional] IMFMediaType* pType,[In] unsigned int dwFlags) + IMFTransform::SetInputType +
+ + +

Sets, tests, or clears the media type for an output stream on this Media Foundation transform (MFT).

+
+

Output stream identifier. To get the list of stream identifiers, call .

+

Pointer to the interface, or null.

+

Zero or more flags from the _MFT_SET_TYPE_FLAGS enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The transform cannot use the proposed media type.

Invalid stream identifier.

The proposed type is not valid. This error code indicates that the media type itself is not configured correctly; for example, it might contain mutually contradictory flags.

The MFT cannot switch types while processing data. Try draining or flushing the MFT.

You must set the input types before setting the output types.

The MFT could not find a suitable DirectX Video Acceleration (DXVA) configuration.

?

+ +

This method can be used to set, test without setting, or clear the media type:

  • To set the media type, set dwFlags to zero and set pType to a non-null reference that specifies the media type.
  • To test the media type without setting it, set dwFlags to and set pType to a non-null reference that specifies the media type. If the media type is acceptable, the method return . Otherwise, it returns . Regardless of the return value, the current media type does not change.
  • To clear the media type, set pType to null.

Setting the media type on one stream may change the acceptable types on another stream.

An MFT may require the caller to set one or more input types before setting the output type. If so, the method returns .

If the MFT supports DirectX Video Acceleration (DXVA) but is unable to find a suitable DXVA configuration (for example, if the graphics driver does not have the right capabilities), the method should return . For more information, see Supporting DXVA 2.0 in Media Foundation.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTSetOutputType. See Creating Hybrid DMO/MFT Objects.

+
+ + ms702016 + HRESULT IMFTransform::SetOutputType([In] unsigned int dwOutputStreamID,[In, Optional] IMFMediaType* pType,[In] unsigned int dwFlags) + IMFTransform::SetOutputType +
+ + +

Gets the current media type for an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream identifier.

The input media type has not been set.

?

+ +

If the specified input stream does not yet have a media type, the method returns . Most MFTs do not set any default media types when first created. Instead, the client must set the media type by calling .

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetInputCurrentType. See Creating Hybrid DMO/MFT Objects.

+
+ + ms705607 + HRESULT IMFTransform::GetInputCurrentType([In] unsigned int dwInputStreamID,[Out] IMFMediaType** ppType) + IMFTransform::GetInputCurrentType +
+ + +

Gets the current media type for an output stream on this Media Foundation transform (MFT).

+
+

Output stream identifier. To get the list of stream identifiers, call .

+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream identifier.

The output media type has not been set.

?

+ +

If the specified output stream does not yet have a media type, the method returns . Most MFTs do not set any default media types when first created. Instead, the client must set the media type by calling .

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetOutputCurrentType. See Creating Hybrid DMO/MFT Objects.

+
+ + ms696985 + HRESULT IMFTransform::GetOutputCurrentType([In] unsigned int dwOutputStreamID,[Out] IMFMediaType** ppType) + IMFTransform::GetOutputCurrentType +
+ + +

Queries whether an input stream on this Media Foundation transform (MFT) can accept more data.

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Receives a member of the _MFT_INPUT_STATUS_FLAGS enumeration, or zero. If the value is , the stream specified in dwInputStreamID can accept more input data.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream identifier.

The media type is not set on one or more streams.

?

+ +

If the method returns the flag, you can deliver an input sample to the specified stream by calling . If the method succeeds but does not return any flags in the pdwFlags parameter, it means the input stream already has as much data as it can accept.

Use this method to test whether the input stream is ready to accept more data, without incurring the overhead of allocating a new sample and calling ProcessInput.

After the client has set valid media types on all of the streams, the MFT should always be in one of two states: Able to accept more input, or able to produce more output (or both).

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetInputStatus. See Creating Hybrid DMO/MFT Objects.

+
+ + ms697478 + HRESULT IMFTransform::GetInputStatus([In] unsigned int dwInputStreamID,[Out] unsigned int* pdwFlags) + IMFTransform::GetInputStatus +
+ + +

Queries whether the Media Foundation transform (MFT) is ready to produce output data.

+
+

Receives a member of the _MFT_OUTPUT_STATUS_FLAGS enumeration, or zero. If the value is , the MFT can produce an output sample.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented.

The media type is not set on one or more streams.

?

+ +

If the method returns the flag, it means you can generate one or more output samples by calling .

MFTs are not required to implement this method. If the method returns E_NOTIMPL, you must call ProcessOutput to determine whether the transform has output data.

If the MFT has more than one output stream, but it does not produce samples at the same time for each stream, it can set the flag when just one stream is ready. However, if the MFT normally produces samples at the same time for each output stream, it should not set this flag until all streams are ready.

After the client has set valid media types on all of the streams, the MFT should always be in one of two states: Able to accept more input, or able to produce more output.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetOutputStatus. See Creating Hybrid DMO/MFT Objects.

+
+ + ms696269 + HRESULT IMFTransform::GetOutputStatus([Out] unsigned int* pdwFlags) + IMFTransform::GetOutputStatus +
+ + +

Sets the range of time stamps the client needs for output.

+
+

Specifies the earliest time stamp. The Media Foundation transform (MFT) will accept input until it can produce an output sample that begins at this time; or until it can produce a sample that ends at this time or later. If there is no lower bound, use the value MFT_OUTPUT_BOUND_LOWER_UNBOUNDED.

+

Specifies the latest time stamp. The MFT will not produce an output sample with time stamps later than this time. If there is no upper bound, use the value MFT_OUTPUT_BOUND_UPPER_UNBOUNDED.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented.

The media type is not set on one or more streams.

?

+ +

This method can be used to optimize preroll, especially in formats that have gaps between time stamps, or formats where the data must start on a sync point, such as MPEG-2. Calling this method is optional, and implementation of this method by an MFT is optional. If the MFT does not implement the method, the return value is E_NOTIMPL.

If an MFT implements this method, it must limit its output data to the range of times specified by hnsLowerBound and hnsUpperBound. The MFT discards any input data that is not needed to produce output within this range. If the sample boundaries do not exactly match the range, the MFT should split the output samples, if possible. Otherwise, the output samples can overlap the range.

For example, suppose the output range is 100 to 150 milliseconds (ms), and the output format is video with each frame lasting 33 ms. A sample with a time stamp of 67 ms overlaps the range (67 + 33 = 100) and is produced as output. A sample with a time stamp of 66 ms is discarded (66 + 33 = 99). Similarly, a sample with a time stamp of 150 ms is produced as output, but a sample with a time stamp of 151 is discarded.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTSetOutputBounds. See Creating Hybrid DMO/MFT Objects.

+
+ + ms693812 + HRESULT IMFTransform::SetOutputBounds([In] longlong hnsLowerBound,[In] longlong hnsUpperBound) + IMFTransform::SetOutputBounds +
+ + +

Sends an event to an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Pointer to the interface of an event object.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOTIMPL

Not implemented.

Invalid stream number.

The media type is not set on one or more streams.

MF_S_TRANSFORM_DO_NOT_PROPAGATE_EVENT

The pipeline should not propagate the event.

?

+ +

An MFT can handle sending the event downstream, or it can let the pipeline do this, as indicated by the return value:

  • E_NOTIMPL: The MFT ignores all events, and the pipeline should send all events downstream. After the pipeline receives this return value, it might not call ProcessEvent again.
  • : The MFT has examined this event, but the pipeline should send the event downstream. Internally, the MFT might respond to the event in some way, or it might ignore the event.
  • MF_S_TRANSFORM_DO_NOT_PROPAGATE_EVENT: The pipeline should not propagate this event downstream. Either the MFT will send the event downstream, or else the MFT will consume the event and not send it downstream. The MFT should only consume the event if the event should stop at this MFT and not travel any further downstream. But in most cases, the event should travel downstream.

To send the event downstream, the MFT adds the event to the collection object that is provided by the client in the pEvents member of the structure, when the client calls .

Events must be serialized with the samples that come before and after them. Attach the event to the output sample that follows the event. (The pipeline will process the event first, and then the sample.) If an MFT holds back one or more samples between calls to and ProcessOutput, the MFT should handle sending all events downstream, because in this situation the pipeline cannot correlate input samples with output samples.

If an MFT does not hold back samples and does not need to examine any events, it can return E_NOTIMPL.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTProcessEvent. See Creating Hybrid DMO/MFT Objects.

+
+ + ms695394 + HRESULT IMFTransform::ProcessEvent([In] unsigned int dwInputStreamID,[In, Optional] IMFMediaEvent* pEvent) + IMFTransform::ProcessEvent +
+ + +

Sends a message to the Media Foundation transform (MFT).

+
+

The message to send, specified as a member of the enumeration.

+

Message parameter. The meaning of this parameter depends on the message type.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream number. Applies to the message.

The media type is not set on one or more streams.

?

+ +

Before calling this method, set the media types on all input and output streams.

The MFT might ignore certain message types. If so, the method returns . An error code indicates that the transform handles this message type but was unable to process the message in this instance.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTProcessMessage. See Creating Hybrid DMO/MFT Objects.

+
+ + ms701863 + HRESULT IMFTransform::ProcessMessage([In] MFT_MESSAGE_TYPE eMessage,[In] ULONG_PTR ulParam) + IMFTransform::ProcessMessage +
+ + +

Delivers data to an input stream on this Media Foundation transform (MFT).

+
+

Input stream identifier. To get the list of stream identifiers, call .

+

Pointer to the interface of the input sample. The sample must contain at least one media buffer that contains valid input data.

+

Reserved. Must be zero.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid argument.

Invalid stream identifier.

The input sample requires a valid sample duration. To set the duration, call .

Some MFTs require that input samples have valid durations. Some MFTs do not require sample durations.

The input sample requires a time stamp. To set the time stamp, call .

Some MFTs require that input samples have valid time stamps. Some MFTs do not require time stamps.

The transform cannot process more input at this time.

The media type is not set on one or more streams.

The media type is not supported for DirectX Video Acceleration (DXVA). A DXVA-enabled decoder might return this error code.

?

Note??If you are converting a DirectX Media Object (DMO) to an MFT, be aware that S_FALSE is not a valid return code for , unlike the method.

+ +

In most cases, if the method succeeds, the MFT stores the sample and holds a reference count on the reference. Do not re-use the sample until the MFT releases the sample. Instead of storing the sample, however, an MFT might copy the sample data into a new buffer. In that case, the MFT should set the flag in the method.

If the MFT already has enough input data to produce an output sample, it does not accept new input data, and ProcessInput returns . At that point, the client should clear the pending input data by doing one of the following:

  • Generate new output by calling .
  • Flush the input data by calling with the MFT_MESSAGE_COMMAND_FLUSH message.

An exception to this rule is the flag. When this flag is present, the transform will discard stored samples if you give it more input. For more information, see . A transform should never queue any more input data than is required to produce the correct output.

An MFT can process the input data in the ProcessInput method. However, most MFTs wait until the client calls ProcessOutput.

After the client has set valid media types on all of the streams, the MFT should always be in one of two states: Able to accept more input, or able to produce more output. It should never be in both states or neither state. An MFT should only accept as much input as it needs to generate at least one output sample, at which point ProcessInput returns . When ProcessInput returns , the client can assume that the MFT is ready to produce output.

If an MFT encounters a non-fatal error in the input data, it can simply drop the data and attempt to recover when it gets the more input data. To request more input data, the MFT returns from the method. If the MFT drops any data, it should set the attribute attribute on the next output sample, to notify the caller that there is a gap in the data stream.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTProcessInput. See Creating Hybrid DMO/MFT Objects.

+
+ + ms703131 + HRESULT IMFTransform::ProcessInput([In] unsigned int dwInputStreamID,[In] IMFSample* pSample,[In] unsigned int dwFlags) + IMFTransform::ProcessInput +
+ + +

Generates output from the current input data.

+
+

Bitwise OR of zero or more flags from the _MFT_PROCESS_OUTPUT_FLAGS enumeration.

+

Number of elements in the pOutputSamples array. The value must be at least 1.

+

Pointer to an array of structures, allocated by the caller. The MFT uses this array to return output data to the caller.

+

Receives a bitwise OR of zero or more flags from the _MFT_PROCESS_OUTPUT_STATUS enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_UNEXPECTED

The ProcessOutput method was called on an asynchronous MFT that was not expecting this method call.

Invalid stream identifier in the dwStreamID member of one or more structures.

The transform cannot produce output data until it receives more input data.

The format has changed on an output stream, or there is a new preferred format, or there is a new output stream.

You must set the media type on one or more streams of the MFT.

?

Note??If you are converting a DirectX Media Object (DMO) to an MFT, be aware that S_FALSE is not a valid return code for , unlike the method.

+ +

The size of the pOutputSamples array must be equal to or greater than the number of selected output streams. The number of selected output streams equals the total number of output streams minus the number of deselected streams. A stream is deselected if it has the flag and the caller does not set a media type (or sets the media type to null). For more information, see _MFT_OUTPUT_STREAM_INFO_FLAGS enumeration.

This method generates output samples and can also generate events. If the method succeeds, at least one of the following conditions is true:

  • One or more samples in the pOutputSamples array contains output data.
  • One or more members of the pOutputSamples array contains a non-empty collection of events.

If MFT_UNIQUE_METHOD_NAMES is defined before including Mftransform.h, this method is renamed MFTProcessOutput. See Creating Hybrid DMO/MFT Objects.

+
+ + ms704014 + HRESULT IMFTransform::ProcessOutput([In] _MFT_PROCESS_OUTPUT_FLAGS dwFlags,[In] unsigned int cOutputBufferCount,[In] MFT_OUTPUT_DATA_BUFFER* pOutputSamples,[Out] _MFT_PROCESS_OUTPUT_STATUS* pdwStatus) + IMFTransform::ProcessOutput +
+ + + Initializes a new instance of the class. + + Guid of the Media Foundation Transform. + + + + Gets the stream identifiers for the input and output streams on this Media Foundation transform (MFT). + + An array allocated by the caller. The method fills the array with the input stream identifiers. The array size must be at least equal to the number of input streams. To get the number of input streams, call .If the caller passes an array that is larger than the number of input streams, the MFT must not write values into the extra array entries. + An array allocated by the caller. The method fills the array with the output stream identifiers. The array size must be at least equal to the number of output streams. To get the number of output streams, call .If the caller passes an array that is larger than the number of output streams, the MFT must not write values into the extra array entries. + true if Both streams IDs for input and output are valid, false otherwise + ms693988 + HRESULT IMFTransform::GetStreamIDs([In] unsigned int dwInputIDArraySize,[Out, Buffer] unsigned int* pdwInputIDs,[In] unsigned int dwOutputIDArraySize,[Out, Buffer] unsigned int* pdwOutputIDs) + IMFTransform::GetStreamIDs + + + + Gets an available media type for an output stream on this Media Foundation transform (MFT). + + Output stream identifier. To get the list of stream identifiers, call . + Index of the media type to retrieve. Media types are indexed from zero and returned in approximate order of preference. + Receives a pointer to the interface. The caller must release the interface. + true if A media type for an output stream is available, false otherwise + ms703812 + HRESULT IMFTransform::GetOutputAvailableType([In] unsigned int dwOutputStreamID,[In] unsigned int dwTypeIndex,[Out] IMFMediaType** ppType) + IMFTransform::GetOutputAvailableType + + + + Generates output from the current input data. + + Bitwise OR of zero or more flags from the enumeration. + Pointer to an array of structures, allocated by the caller. The MFT uses this array to return output data to the caller. + Receives a bitwise OR of zero or more flags from the enumeration. + true if the transform cannot produce output data until it receives more input data, false otherwise + ms704014 + HRESULT IMFTransform::ProcessOutput([In] _MFT_PROCESS_OUTPUT_FLAGS dwFlags,[In] unsigned int cOutputBufferCount,[In] MFT_OUTPUT_DATA_BUFFER* pOutputSamples,[Out] _MFT_PROCESS_OUTPUT_STATUS* pdwStatus) + IMFTransform::ProcessOutput + + + +

Gets the global attribute store for this Media Foundation transform (MFT).

+
+ +

Use the reference retrieved by this method to get or set attributes that apply to the entire MFT. To get the attribute store for an input stream, call . To get the attribute store for an output stream, call .

Implementation of this method is optional unless the MFT needs to support a particular set of attributes. Exception: Hardware-based MFTs must implement this method. See Hardware MFTs.

+
+ + ms703141 + GetAttributes + GetAttributes + HRESULT IMFTransform::GetAttributes([Out] IMFAttributes** pAttributes) +
+ + +

Queries whether the Media Foundation transform (MFT) is ready to produce output data.

+
+ +

If the method returns the flag, it means you can generate one or more output samples by calling .

MFTs are not required to implement this method. If the method returns E_NOTIMPL, you must call ProcessOutput to determine whether the transform has output data.

If the MFT has more than one output stream, but it does not produce samples at the same time for each stream, it can set the flag when just one stream is ready. However, if the MFT normally produces samples at the same time for each output stream, it should not set this flag until all streams are ready.

After the client has set valid media types on all of the streams, the MFT should always be in one of two states: Able to accept more input, or able to produce more output.

If MFT_UNIQUE_METHOD_NAMES is defined before including mftransform.h, this method is renamed MFTGetOutputStatus. See Creating Hybrid DMO/MFT Objects.

+
+ + ms696269 + GetOutputStatus + GetOutputStatus + HRESULT IMFTransform::GetOutputStatus([Out] unsigned int* pdwFlags) +
+ + +

Implemented by components that provide input trust authorities (ITAs). This interface is used to get the ITA for each of the component's streams.

+
+ + ms697279 + IMFTrustedInput + IMFTrustedInput +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the input trust authority (ITA) for a specified stream.

+
+

The stream identifier for which the ITA is being requested.

+

The interface identifier (IID) of the interface being requested. Currently the only supported value is IID_IMFInputTrustAuthority.

+

Receives a reference to the ITA's interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_NOINTERFACE

The ITA does not expose the requested interface.

?

+ + bb970501 + HRESULT IMFTrustedInput::GetInputTrustAuthority([In] unsigned int dwStreamID,[In] const GUID& riid,[Out] IUnknown** ppunkObject) + IMFTrustedInput::GetInputTrustAuthority +
+ + +

Implemented by components that provide output trust authorities (OTAs). Any Media Foundation transform (MFT) or media sink that is designed to work within the protected media path (PMP) and also sends protected content outside the Media Foundation pipeline must implement this interface.

The policy engine uses this interface to negotiate what type of content protection should be applied to the content. Applications do not use this interface directly.

+
+ +

If an MFT supports , it must expose the interface through QueryInterface. The interface applies to all of the input streams on the MFT. (There is no mechanism to return a separate reference for each stream.) The MFT must apply the output policies to all of its input streams. If the MFT sends different streams to separate connectors, it must report all of the connector attributes.

+
+ + ms694305 + IMFTrustedOutput + IMFTrustedOutput +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the number of output trust authorities (OTAs) provided by this trusted output. Each OTA reports a single action.

+
+

Receives the number of OTAs.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + bb970384 + HRESULT IMFTrustedOutput::GetOutputTrustAuthorityCount([Out] unsigned int* pcOutputTrustAuthorities) + IMFTrustedOutput::GetOutputTrustAuthorityCount +
+ + +

Gets an output trust authority (OTA), specified by index.

+
+

Zero-based index of the OTA to retrieve. To get the number of OTAs provided by this object, call .

+

Receives a reference to the interface of the OTA. The caller must release the interface.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + bb970401 + HRESULT IMFTrustedOutput::GetOutputTrustAuthorityByIndex([In] unsigned int dwIndex,[Out] IMFOutputTrustAuthority** ppauthority) + IMFTrustedOutput::GetOutputTrustAuthorityByIndex +
+ + +

Queries whether this output is a policy sink, meaning it handles the rights and restrictions required by the input trust authority (ITA).

+
+

Receives a Boolean value. If TRUE, this object is a policy sink. If , the policy must be enforced further downstream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

A trusted output is generally considered to be a policy sink if it does not pass the media content that it receives anywhere else; or, if it does pass the media content elsewhere, either it protects the content using some proprietary method such as encryption, or it sufficiently devalues the content so as not to require protection.

+
+ + bb970324 + HRESULT IMFTrustedOutput::IsFinal([Out] BOOL* pfIsFinal) + IMFTrustedOutput::IsFinal +
+ + +

Gets the number of output trust authorities (OTAs) provided by this trusted output. Each OTA reports a single action.

+
+ + bb970384 + GetOutputTrustAuthorityCount + GetOutputTrustAuthorityCount + HRESULT IMFTrustedOutput::GetOutputTrustAuthorityCount([Out] unsigned int* pcOutputTrustAuthorities) +
+ + +

Queries whether this output is a policy sink, meaning it handles the rights and restrictions required by the input trust authority (ITA).

+
+ +

A trusted output is generally considered to be a policy sink if it does not pass the media content that it receives anywhere else; or, if it does pass the media content elsewhere, either it protects the content using some proprietary method such as encryption, or it sufficiently devalues the content so as not to require protection.

+
+ + bb970324 + IsFinal + IsFinal + HRESULT IMFTrustedOutput::IsFinal([Out] BOOL* pfIsFinal) +
+ + +

Enables a plug-in component for the enhanced video renderer (EVR) to work with protected media.

To work in the protected media path (PMP), a custom EVR mixer or presenter must implement this interface. The EVR obtains a reference to this interface by calling QueryInterface on the plug-in component.

This interface is required only if the plug-in is a trusted component, designed to work in the PMP. It is not required for playing clear content in an unprotected process.

+
+ + aa473784 + IEVRTrustedVideoPlugin + IEVRTrustedVideoPlugin +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Queries whether the plug-in has any transient vulnerabilities at this time.

+
+

Receives a Boolean value. If TRUE, the plug-in has no transient vulnerabilities at the moment and can receive protected content. If , the plug-in has a transient vulnerability. If the method fails, the EVR treats the value as (untrusted).

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method provides a way for the plug-in to report temporary conditions that would cause the input trust authority (ITA) to distrust the plug-in. For example, if an EVR presenter is in windowed mode, it is vulnerable to GDI screen captures.

To disable screen capture in Direct3D, the plug-in must do the following:

  • Create the Direct3D device in full-screen exlusive mode.

  • Specify the flag when you create the device. For more information, see in the DirectX documentation.

In addition, the graphics adapter must support the Windows Vista Display Driver Model (WDDM) and the Direct3D extensions for Windows Vista (sometimes called D3D9Ex or D3D9L).

If these conditions are met, the presenter can return TRUE in the pYes parameter. Otherwise, it should return .

The EVR calls this method whenever the device changes. If the plug-in returns , the EVR treats this condition as if the plug-in had a new output connector of unknown type. The policy object can then allow or block playback, depending on the ITA's policy.

This method should be used only to report transient conditions. A plug-in that is never in a trusted state should not implement the interface at all.

+
+ + aa473794 + HRESULT IEVRTrustedVideoPlugin::IsInTrustedVideoMode([In] BOOL* pYes) + IEVRTrustedVideoPlugin::IsInTrustedVideoMode +
+ + +

Queries whether the plug-in can limit the effective video resolution.

+
+

Receives a Boolean value. If TRUE, the plug-in can limit the effective video resolution. Otherwise, the plug-in cannot limit the video resolution. If the method fails, the EVR treats the value as (not supported).

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Constriction is a protection mechanism that limits the effective resolution of the video frame to a specified maximum number of pixels.

Video constriction can be implemented by either the mixer or the presenter.

If the method returns TRUE, the EVR might call at any time.

+
+ + aa473782 + HRESULT IEVRTrustedVideoPlugin::CanConstrict([In] BOOL* pYes) + IEVRTrustedVideoPlugin::CanConstrict +
+ + +

Limits the effective video resolution.

+
+

Maximum number of source pixels that may appear in the final video image, in thousands of pixels. If the value is zero, the video is disabled. If the value is MAXDWORD (0xFFFFFFFF), video constriction is removed and the video may be rendered at full resolution.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method limits the effective resolution of the video image. The actual resolution on the target device might be higher, due to stretching the image.

The EVR might call this method at any time if the method returns TRUE.

+
+ + aa473833 + HRESULT IEVRTrustedVideoPlugin::SetConstriction([In] unsigned int dwKPix) + IEVRTrustedVideoPlugin::SetConstriction +
+ + +

Enables or disables the ability of the plug-in to export the video image.

+
+

Boolean value. Specify TRUE to disable image exporting, or to enable it.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

An EVR plug-in might expose a way for the application to get a copy of the video frames. For example, the standard EVR presenter implements .

If the plug-in supports image exporting, this method enables or disables it. Before this method has been called for the first time, the EVR assumes that the mechanism is enabled.

If the plug-in does not support image exporting, this method should return and ignore the value of bDisable. If the method fails, the EVR treats it as a failure to enforce the policy, which will probably cause playback to stop.

While image exporting is disabled, any associated export method, such as GetCurrentImage, should return .

+
+ + aa473830 + HRESULT IEVRTrustedVideoPlugin::DisableImageExport([In] BOOL bDisable) + IEVRTrustedVideoPlugin::DisableImageExport +
+ + +

Limits the effective video resolution.

+
+ +

This method limits the effective resolution of the video image. The actual resolution on the target device might be higher, due to stretching the image.

The EVR might call this method at any time if the method returns TRUE.

+
+ + aa473833 + SetConstriction + SetConstriction + HRESULT IEVRTrustedVideoPlugin::SetConstriction([In] unsigned int dwKPix) +
+ + +

Returns the device identifier supported by a video renderer component. This interface is implemented by mixers and presenters for the enhanced video renderer (EVR). If you replace either of these components, the mixer and presenter must report the same device identifier.

+
+ + ms703065 + IMFVideoDeviceID + IMFVideoDeviceID +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the identifier of the video device supported by an EVR mixer or presenter.

+
+

Receives the device identifier. Generally, the value is IID_IDirect3DDevice9.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ +

If a mixer or presenter uses Direct3D 9, it must return the value IID_IDirect3DDevice9 in pDeviceID. The EVR's default mixer and presenter both return this value. If you write a custom mixer or presenter, it can return some other value. However, the mixer and presenter must use matching device identifiers.

+
+ + ms704630 + HRESULT IMFVideoDeviceID::GetDeviceID([Out] GUID* pDeviceID) + IMFVideoDeviceID::GetDeviceID +
+ + +

Returns the identifier of the video device supported by an EVR mixer or presenter.

+
+ +

If a mixer or presenter uses Direct3D 9, it must return the value IID_IDirect3DDevice9 in pDeviceID. The EVR's default mixer and presenter both return this value. If you write a custom mixer or presenter, it can return some other value. However, the mixer and presenter must use matching device identifiers.

+
+ + ms704630 + GetDeviceID + GetDeviceID + HRESULT IMFVideoDeviceID::GetDeviceID([Out] GUID* pDeviceID) +
+ + +

Sets the source and destination rectangles for the video.

+
+ +

The source rectangle defines which portion of the video is displayed. It is specified in normalized coordinates. For more information, see structure. To display the entire video image, set the source rectangle to {0, 0, 1, 1}. The default source rectangle is {0, 0, 1, 1}.

The destination rectangle defines a rectangle within the clipping window where the video appears. It is specified in pixels, relative to the client area of the window. To fill the entire window, set the destination rectangle to {0, 0, width, height}, where width and height are dimensions of the window client area. The default destination rectangle is {0, 0, 0, 0}.

To update just one of these rectangles, set the other parameter to null. You can set pnrcSource or prcDest to null, but not both.

Before setting the destination rectangle (prcDest), you must set the video window by calling . (For the Media Foundation version of the EVR, you can also provide the video window in the function.) If no video window was provided, SetVideoPosition returns E_POINTER.

+
+ + ms697352 + IMFVideoDisplayControl + IMFVideoDisplayControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Gets the size and aspect ratio of the video, prior to any stretching by the video renderer.

+
+

Receives the size of the native video rectangle. This parameter can be null.

+

Receives the aspect ratio of the video. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

At least one of the parameters must be non-null.

The video renderer has been shut down.

?

+ +

If no media types have been set on any video streams, the method succeeds but all parameters are set to zero.

You can set pszVideo or pszARVideo to null, but not both.

+
+ + ms694294 + HRESULT IMFVideoDisplayControl::GetNativeVideoSize([InOut, Optional] SIZE* pszVideo,[InOut, Optional] SIZE* pszARVideo) + IMFVideoDisplayControl::GetNativeVideoSize +
+ + +

Gets the range of sizes that the enhanced video renderer (EVR) can display without significantly degrading performance or image quality.

+
+

Receives the minimum ideal size. This parameter can be null.

+

Receives the maximum ideal size. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

At least one parameter must be non-null.

The video renderer has been shut down.

?

+ +

You can set pszMin or pszMax to null, but not both.

+
+ + ms703076 + HRESULT IMFVideoDisplayControl::GetIdealVideoSize([InOut, Optional] SIZE* pszMin,[InOut, Optional] SIZE* pszMax) + IMFVideoDisplayControl::GetIdealVideoSize +
+ + +

Sets the source and destination rectangles for the video.

+
+

Pointer to an structure that specifies the source rectangle. This parameter can be null. If this parameter is null, the source rectangle does not change.

+

Specifies the destination rectangle. This parameter can be null. If this parameter is null, the destination rectangle does not change.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

At least one parameter must be non-null.

The video renderer has been shut down.

?

+ +

The source rectangle defines which portion of the video is displayed. It is specified in normalized coordinates. For more information, see structure. To display the entire video image, set the source rectangle to {0, 0, 1, 1}. The default source rectangle is {0, 0, 1, 1}.

The destination rectangle defines a rectangle within the clipping window where the video appears. It is specified in pixels, relative to the client area of the window. To fill the entire window, set the destination rectangle to {0, 0, width, height}, where width and height are dimensions of the window client area. The default destination rectangle is {0, 0, 0, 0}.

To update just one of these rectangles, set the other parameter to null. You can set pnrcSource or prcDest to null, but not both.

Before setting the destination rectangle (prcDest), you must set the video window by calling . (For the Media Foundation version of the EVR, you can also provide the video window in the function.) If no video window was provided, SetVideoPosition returns E_POINTER.

+
+ + ms697352 + HRESULT IMFVideoDisplayControl::SetVideoPosition([In, Optional] const MFVideoNormalizedRect* pnrcSource,[In, Optional] const RECT* prcDest) + IMFVideoDisplayControl::SetVideoPosition +
+ + +

Gets the source and destination rectangles for the video.

+
+

Pointer to an structure that receives the source rectangle.

+

Receives the current destination rectangle.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_POINTER

One or more required parameters are null.

The video renderer has been shut down.

?

+ + bb970409 + HRESULT IMFVideoDisplayControl::GetVideoPosition([Out] MFVideoNormalizedRect* pnrcSource,[Out] RECT* prcDest) + IMFVideoDisplayControl::GetVideoPosition +
+ + +

Specifies how the enhanced video renderer (EVR) handles the aspect ratio of the source video.

+
+

Bitwise OR of one or more flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid flags.

The video renderer has been shut down.

?

+ + ms704027 + HRESULT IMFVideoDisplayControl::SetAspectRatioMode([In] unsigned int dwAspectRatioMode) + IMFVideoDisplayControl::SetAspectRatioMode +
+ + +

Queries how the enhanced video renderer (EVR) handles the aspect ratio of the source video.

+
+

Receives a bitwise OR of one or more flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ + ms702253 + HRESULT IMFVideoDisplayControl::GetAspectRatioMode([Out] unsigned int* pdwAspectRatioMode) + IMFVideoDisplayControl::GetAspectRatioMode +
+ + +

Sets the clipping window for the video.

+
+

Handle to the window where the enhanced video renderer (EVR) will draw the video.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

hwndVideo does not specify a valid window.

S_FALSE

DWM thumbnails were not enabled/disabled.

?

+ +

The EVR will not display any video unless the application calls this method with a valid window handle.

For protected content, this method might disable Desktop Window Manager (DWM) thumbnail previews for the window. If thumbnail previews cannot be disabled, the method returns S_FALSE.

+
+ + ms697051 + HRESULT IMFVideoDisplayControl::SetVideoWindow([In] HWND hwndVideo) + IMFVideoDisplayControl::SetVideoWindow +
+ + +

Gets the clipping window for the video.

+
+

Receives a handle to the window where the enhanced video renderer (EVR) will draw the video.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ +

There is no default clipping window. The application must set the clipping window.

+
+ + ms694138 + HRESULT IMFVideoDisplayControl::GetVideoWindow([Out] HWND* phwndVideo) + IMFVideoDisplayControl::GetVideoWindow +
+ + +

Repaints the current video frame. Call this method whenever the application receives a WM_PAINT message.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The EVR cannot repaint the frame at this time. This error can occur while the EVR is switching between full-screen and windowed mode. The caller can safely ignore this error.

The video renderer has been shut down.

?

+ + ms703113 + HRESULT IMFVideoDisplayControl::RepaintVideo() + IMFVideoDisplayControl::RepaintVideo +
+ + +

Gets a copy of the current image being displayed by the video renderer.

+
+

Pointer to a structure that receives a description of the bitmap. Set the biSize member of the structure to sizeof() before calling the method.

+

Receives a reference to a buffer that contains a packed Windows device-independent bitmap (DIB). The caller must free the memory for the bitmap by calling CoTaskMemFree.

+

Receives the size of the buffer returned in pDib, in bytes.

+

Receives the time stamp of the captured image.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The content is protected and the license does not permit capturing the image.

The video renderer has been shut down.

?

+ +

This method can be called at any time. However, calling the method too frequently degrades the video playback performance.

This method retrieves a copy of the final composited image, which includes any substreams, alpha-blended bitmap, aspect ratio correction, background color, and so forth.

In windowed mode, the bitmap is the size of the destination rectangle specified in . In full-screen mode, the bitmap is the size of the display.

+
+ + ms695342 + HRESULT IMFVideoDisplayControl::GetCurrentImage([InOut] BITMAPINFOHEADER* pBih,[Out, Buffer, Optional] unsigned char** pDib,[Out] unsigned int* pcbDib,[InOut, Optional] longlong* pTimeStamp) + IMFVideoDisplayControl::GetCurrentImage +
+ + +

Sets the border color for the video.

+
+

Specifies the border color as a value.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ +

By default, if the video window straddles two monitors, the enhanced video renderer (EVR) clips the video to one monitor and draws the border color on the remaining portion of the window. (To change the clipping behavior, call .)

The border color is not used for letterboxing. To change the letterbox color, call .

+
+ + ms697024 + HRESULT IMFVideoDisplayControl::SetBorderColor([In] COLORREF Clr) + IMFVideoDisplayControl::SetBorderColor +
+ + +

Gets the border color for the video.

+
+

Receives the border color, as a value.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ +

The border color is used for areas where the enhanced video renderer (EVR) does not draw any video.

The border color is not used for letterboxing. To get the letterbox color, call .

+
+ + ms694894 + HRESULT IMFVideoDisplayControl::GetBorderColor([Out] COLORREF* pClr) + IMFVideoDisplayControl::GetBorderColor +
+ + +

Sets various preferences related to video rendering.

+
+

Bitwise OR of zero or more flags from the enumeration.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid flags.

The video renderer has been shut down.

?

+ + ms698981 + HRESULT IMFVideoDisplayControl::SetRenderingPrefs([In] unsigned int dwRenderFlags) + IMFVideoDisplayControl::SetRenderingPrefs +
+ + +

Controls how the Enhanced Video Renderer (EVR) displays video.

The EVR presenter implements this interface. To get a reference to the interface, call . The service identifier is MR_VIDEO_RENDER_SERVICE. Call GetService on any of the following objects:

  • The Media Session, if the topology contains an instance of the EVR.
  • The EVR media sink.
  • The DirectShow EVR filter.
  • The EVR presenter.

If you implement a custom presenter for the EVR, the presenter can optionally expose this interface as a service.

+
+ No documentation. + No documentation. + + ms704002 + HRESULT IMFVideoDisplayControl::GetRenderingPrefs([Out] unsigned int* pdwRenderFlags) + IMFVideoDisplayControl::GetRenderingPrefs +
+ + +

[This API is not supported and may be altered or unavailable in the future. ]

Sets or unsets full-screen rendering mode.

To implement full-screen playback, an application should simply resize the video window to cover the entire area of the monitor. Also set the window to be a topmost window, so that the application receives all mouse-click messages. For more information about topmost windows, see the documentation for the SetWindowPos function.

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ +

The default EVR presenter implements full-screen mode using Direct3D exclusive mode.

If you use this method to switch to full-screen mode, set the application window to be a topmost window and resize the window to cover the entire monitor. This ensures that the application window receives all mouse-click messages. Also set the keyboard focus to the application window. When you switch out of full-screen mode, restore the window's original size and position.

By default, the cursor is still visible in full-screen mode. To hide the cursor, call ShowCursor.

The transition to and from full-screen mode occurs asynchronously. To get the current mode, call .

+
+ + ms701561 + HRESULT IMFVideoDisplayControl::SetFullscreen([In] BOOL fFullscreen) + IMFVideoDisplayControl::SetFullscreen +
+ + +

Queries whether the enhanced video renderer (EVR) is currently in full-screen mode.

+
+

Receives a Boolean value. If TRUE, the EVR is in full-screen mode. If , the EVR will display the video inside the application-provided clipping window.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The EVR is currently switching between full-screen and windowed mode.

?

+ + ms704817 + HRESULT IMFVideoDisplayControl::GetFullscreen([Out] BOOL* pfFullscreen) + IMFVideoDisplayControl::GetFullscreen +
+ + +

Queries how the enhanced video renderer (EVR) handles the aspect ratio of the source video.

+
+ + ms702253 + GetAspectRatioMode / SetAspectRatioMode + GetAspectRatioMode + HRESULT IMFVideoDisplayControl::GetAspectRatioMode([Out] unsigned int* pdwAspectRatioMode) +
+ + +

Gets or sets the clipping window for the video.

+
+ +

There is no default clipping window. The application must set the clipping window.

+
+ + ms694138 + GetVideoWindow / SetVideoWindow + GetVideoWindow + HRESULT IMFVideoDisplayControl::GetVideoWindow([Out] HWND* phwndVideo) +
+ + +

Gets or sets the border color for the video.

+
+ +

The border color is used for areas where the enhanced video renderer (EVR) does not draw any video.

The border color is not used for letterboxing. To get the letterbox color, call .

+
+ + ms694894 + GetBorderColor / SetBorderColor + GetBorderColor + HRESULT IMFVideoDisplayControl::GetBorderColor([Out] COLORREF* pClr) +
+ + +

Controls how the Enhanced Video Renderer (EVR) displays video.

The EVR presenter implements this interface. To get a reference to the interface, call . The service identifier is MR_VIDEO_RENDER_SERVICE. Call GetService on any of the following objects:

  • The Media Session, if the topology contains an instance of the EVR.
  • The EVR media sink.
  • The DirectShow EVR filter.
  • The EVR presenter.

If you implement a custom presenter for the EVR, the presenter can optionally expose this interface as a service.

+
+ + ms704002 + GetRenderingPrefs / SetRenderingPrefs + GetRenderingPrefs + HRESULT IMFVideoDisplayControl::GetRenderingPrefs([Out] unsigned int* pdwRenderFlags) +
+ + +

Queries whether the enhanced video renderer (EVR) is currently in full-screen mode.

+
+ + ms704817 + GetFullscreen / SetFullscreen + GetFullscreen + HRESULT IMFVideoDisplayControl::GetFullscreen([Out] BOOL* pfFullscreen) +
+ + +

Represents a description of a video format.

+
+ +

If the major type of a media type is , you can query the media type object for the interface.

Applications should avoid using this interface except when a method or function requires an reference as a parameter. You can get all of the format information from a video media type through the interface, which inherits.

+
+ + aa473814 + IMFVideoMediaType + IMFVideoMediaType +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Represents a description of a video format.

+
+ No documentation. + +

If the major type of a media type is , you can query the media type object for the interface.

Applications should avoid using this interface except when a method or function requires an reference as a parameter. You can get all of the format information from a video media type through the interface, which inherits.

+
+ + aa473814 + const MFVIDEOFORMAT* IMFVideoMediaType::GetVideoFormat() + IMFVideoMediaType::GetVideoFormat +
+ + +

[This API is not supported and may be altered or unavailable in the future. Instead, applications should set the attribute on the media type to specify the surface stride and then call .]

Retrieves an alternative representation of the media type.

+
+ No documentation. + No documentation. + No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is equivalent to but includes the lStride parameter.

Instead of calling this method, applications should set the attribute on the media type to specify the surface stride and then call .

+
+ + bb970371 + HRESULT IMFVideoMediaType::GetVideoRepresentation([In] GUID guidRepresentation,[Out] void** ppvRepresentation,[In] int lStride) + IMFVideoMediaType::GetVideoRepresentation +
+ + +

Represents a description of a video format.

+
+ +

If the major type of a media type is , you can query the media type object for the interface.

Applications should avoid using this interface except when a method or function requires an reference as a parameter. You can get all of the format information from a video media type through the interface, which inherits.

+
+ + aa473814 + GetVideoFormat + GetVideoFormat + const MFVIDEOFORMAT* IMFVideoMediaType::GetVideoFormat() +
+ + +

Alpha-blends a static bitmap image with the video displayed by the Enhanced Video Renderer (EVR).

The EVR mixer implements this interface. To get a reference to the interface, call . The service identifier is MR_VIDEO_MIXER_SERVICE. Call GetService on any of the following objects:

  • The Media Session, if the topology contains an instance of the EVR.
  • The EVR media sink.
  • The DirectShow EVR filter.
  • The EVR mixer.

If you implement a custom mixer for the EVR, the mixer can optionally expose this interface as a service.

+
+ + ms697041 + IMFVideoMixerBitmap + IMFVideoMixerBitmap +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets a bitmap image for the enhanced video renderer (EVR) to alpha-blend with the video.

+
+

Pointer to an structure that contains information about the bitmap, the source and destination rectangles, the color key, and other information.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The blending parameters defined in the pBmpParms structure are not valid.

?

+ +

The application can provide the image either as a GDI bitmap or as a Direct3D surface. The EVR mixer blends the image with the next video frame and all subsequent frames, until the image is changed or removed. The image can contain embedded per-pixel alpha information so that transparent regions can be defined. Transparent areas can also be identified using a color key value.

If you use a Direct3D surface, the surface format must be 32-bit RGB, either or , and the surface must be allocated from the memory pool.

There is no defined limit to how frequently you can pass images to the video renderer. However, changing the image several times per second can impact the performance and smoothness of the video.

+
+ + ms701866 + HRESULT IMFVideoMixerBitmap::SetAlphaBitmap([In] const MFVideoAlphaBitmap* pBmpParms) + IMFVideoMixerBitmap::SetAlphaBitmap +
+ + +

Removes the current bitmap and releases any resources associated with it.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No bitmap is currently set.

?

+ + ms699004 + HRESULT IMFVideoMixerBitmap::ClearAlphaBitmap() + IMFVideoMixerBitmap::ClearAlphaBitmap +
+ + +

Updates the current alpha-blending settings, including the source and destination rectangles, the color key, and other information. You can update some or all of the blending parameters.

+
+

Pointer to an structure that contains the blending parameters.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The blending parameters defined in the pBmpParms structure are not valid.

No bitmap is currently set. You must call to set a bitmap.

?

+ +

The video must be playing for the changes to take effect.

+
+ + ms696236 + HRESULT IMFVideoMixerBitmap::UpdateAlphaBitmapParameters([In] const MFVideoAlphaBitmapParams* pBmpParms) + IMFVideoMixerBitmap::UpdateAlphaBitmapParameters +
+ + +

Retrieves the current settings that the enhanced video renderer (EVR) uses to alpha-blend the bitmap with the video.

+
+

Pointer to an structure that receives the current blending parameters.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

No bitmap is currently set. You must call to set a bitmap.

?

+ +

This method returns the current values of all the blending parameters, not just those that the application specified. Ignore the dwFlags member of the structure.

+
+ + ms693566 + HRESULT IMFVideoMixerBitmap::GetAlphaBitmapParameters([Out] MFVideoAlphaBitmapParams* pBmpParms) + IMFVideoMixerBitmap::GetAlphaBitmapParameters +
+ + +

Sets a bitmap image for the enhanced video renderer (EVR) to alpha-blend with the video.

+
+ +

The application can provide the image either as a GDI bitmap or as a Direct3D surface. The EVR mixer blends the image with the next video frame and all subsequent frames, until the image is changed or removed. The image can contain embedded per-pixel alpha information so that transparent regions can be defined. Transparent areas can also be identified using a color key value.

If you use a Direct3D surface, the surface format must be 32-bit RGB, either or , and the surface must be allocated from the memory pool.

There is no defined limit to how frequently you can pass images to the video renderer. However, changing the image several times per second can impact the performance and smoothness of the video.

+
+ + ms701866 + SetAlphaBitmap + SetAlphaBitmap + HRESULT IMFVideoMixerBitmap::SetAlphaBitmap([In] const MFVideoAlphaBitmap* pBmpParms) +
+ + +

Retrieves the current settings that the enhanced video renderer (EVR) uses to alpha-blend the bitmap with the video.

+
+ +

This method returns the current values of all the blending parameters, not just those that the application specified. Ignore the dwFlags member of the structure.

+
+ + ms693566 + GetAlphaBitmapParameters + GetAlphaBitmapParameters + HRESULT IMFVideoMixerBitmap::GetAlphaBitmapParameters([Out] MFVideoAlphaBitmapParams* pBmpParms) +
+ + +

Controls how the Enhanced Video Renderer (EVR) mixes video substreams. Applications can use this interface to control video mixing during playback.

The EVR mixer implements this interface. To get a reference to the interface, call . The service identifier is MR_VIDEO_MIXER_SERVICE. Call GetService on any of the following objects:

  • The Media Session, if the topology contains an instance of the EVR.
  • The EVR media sink.
  • The DirectShow EVR filter.
  • The EVR mixer.

If you implement a custom mixer for the EVR, the mixer can optionally expose this interface as a service.

+
+ + ms700190 + IMFVideoMixerControl + IMFVideoMixerControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the z-order of a video stream.

+
+

Identifier of the stream. For the EVR media sink, the stream identifier is defined when the method is called. For the DirectShow EVR filter, the stream identifier corresponds to the pin index. The reference stream is always stream 0.

+

Z-order value. The z-order of the reference stream must be zero. The maximum z-order value is the number of streams minus one.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The value of dwZ is larger than the maximum z-order value.

Invalid z-order for this stream. For the reference stream, dwZ must be zero. For all other streams, dwZ must be greater than zero.

Invalid stream identifier.

?

+ +

The EVR draws the video streams in the order of their z-order values, starting with zero. The reference stream must be first in the z-order, and the remaining streams can be in any order.

+
+ + ms697453 + HRESULT IMFVideoMixerControl::SetStreamZOrder([In] unsigned int dwStreamID,[In] unsigned int dwZ) + IMFVideoMixerControl::SetStreamZOrder +
+ + +

Retrieves the z-order of a video stream.

+
+

Identifier of the stream. For the EVR media sink, the stream identifier is defined when the method is called. For the DirectShow EVR filter, the stream identifier corresponds to the pin index. The reference stream is always stream 0.

+

Receives the z-order value.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream identifier.

?

+ + ms701614 + HRESULT IMFVideoMixerControl::GetStreamZOrder([In] unsigned int dwStreamID,[Out] unsigned int* pdwZ) + IMFVideoMixerControl::GetStreamZOrder +
+ + +

Sets the position of a video stream within the composition rectangle.

+
+

Identifier of the stream. For the EVR media sink, the stream identifier is defined when the method is called. For the DirectShow EVR filter, the stream identifier corresponds to the pin index. The reference stream is always stream 0.

+

Pointer to an structure that defines the bounding rectangle for the video stream.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The coordinates of the bounding rectangle given in pnrcOutput are not valid.

Invalid stream identifier.

?

+ +

The mixer draws each video stream inside a bounding rectangle that is specified relative to the final video image. This bounding rectangle is given in normalized coordinates. For more information, see structure.

The coordinates of the bounding rectangle must fall within the range [0.0, 1.0]. Also, the X and Y coordinates of the upper-left corner cannot exceed the X and Y coordinates of the lower-right corner. In other words, the bounding rectangle must fit entirely within the composition rectangle and cannot be flipped vertically or horizontally.

The following diagram shows how the EVR mixes substreams.

The output rectangle for the stream is specified by calling SetStreamOutputRect. The source rectangle is specified by calling . The mixer applies the output rectangle first, when it mixes the streams into a single bounding rectangle. This bounding rectangle is called composition space. Then the presenter applies the source rectangle to the composited image.

+
+ + ms698959 + HRESULT IMFVideoMixerControl::SetStreamOutputRect([In] unsigned int dwStreamID,[In] const MFVideoNormalizedRect* pnrcOutput) + IMFVideoMixerControl::SetStreamOutputRect +
+ + +

Retrieves the position of a video stream within the composition rectangle.

+
+

The identifier of the stream. For the EVR media sink, the stream identifier is defined when the method is called. For the DirectShow EVR filter, the stream identifier corresponds to the pin index. The reference stream is always stream 0.

+

Pointer to an structure that receives the bounding rectangle, in normalized coordinates.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid stream identifier.

?

+ + ms698911 + HRESULT IMFVideoMixerControl::GetStreamOutputRect([In] unsigned int dwStreamID,[Out] MFVideoNormalizedRect* pnrcOutput) + IMFVideoMixerControl::GetStreamOutputRect +
+ + +

Controls preferences for video deinterlacing.

The default video mixer for the Enhanced Video Renderer (EVR) implements this interface.

To get a reference to the interface, call on any of the following objects, using the MR_VIDEO_MIXER_SERVICE service identifier:

  • The Media Session, if the topology contains an instance of the EVR.
  • The EVR media sink.
  • The DirectShow EVR filter.
  • The EVR mixer.
+
+ + dd374894 + IMFVideoMixerControl2 + IMFVideoMixerControl2 +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the preferences for video deinterlacing.

+
+

Bitwise OR of zero or more flags from the enumeration.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374898 + HRESULT IMFVideoMixerControl2::SetMixingPrefs([In] unsigned int dwMixFlags) + IMFVideoMixerControl2::SetMixingPrefs +
+ + +

Gets the current preferences for video deinterlacing.

+
+

Receives a bitwise OR of zero or more flags from the enumeration.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + dd374896 + HRESULT IMFVideoMixerControl2::GetMixingPrefs([Out] unsigned int* pdwMixFlags) + IMFVideoMixerControl2::GetMixingPrefs +
+ + +

Gets or sets the current preferences for video deinterlacing.

+
+ + dd374896 + GetMixingPrefs / SetMixingPrefs + GetMixingPrefs + HRESULT IMFVideoMixerControl2::GetMixingPrefs([Out] unsigned int* pdwMixFlags) +
+ + +

Maps a position on an input video stream to the corresponding position on an output video stream.

To obtain a reference to this interface, call on the renderer with the service MR_VIDEO_RENDER_SERVICE.

+
+ + ms695386 + IMFVideoPositionMapper + IMFVideoPositionMapper +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Maps output image coordinates to input image coordinates. This method provides the reverse transformation for components that map coordinates on the input image to different coordinates on the output image.

+
+

X-coordinate of the output image, normalized to the range [0...1].

+

Y-coordinate of the output image, normalized to the range [0...1].

+

Output stream index for the coordinate mapping.

+

Input stream index for the coordinate mapping.

+

Receives the mapped x-coordinate of the input image, normalized to the range [0...1].

+

Receives the mapped y-coordinate of the input image, normalized to the range [0...1].

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The video renderer has been shut down.

?

+ +

In the following diagram, R(dest) is the destination rectangle for the video. You can obtain this rectangle by calling . The rectangle R1 is a substream within the video. The point P has pixel coordinates (x,y) relative to R(dest).

The position of P relative to R(dest) in normalized coordinates is calculated as follows:

float xn = float(x + 0.5) / widthDest; + float xy = float(y + 0.5) / heightDest; +

where widthDest and heightDest are the width and height of R(dest) in pixels.

To calculate the position of P relative to R1, call MapOutputCoordinateToInputStream as follows:

float x1 = 0, y1 = 0; + hr = pMap->MapOutputCoordinateToInputStream(xn, yn, 0, dwInputStreamIndex, &x1, &y1);

The values returned in x1 and y1 are normalized to the range [0...1]. To convert back to pixel coordinates, scale these values by the size of R1:

int scaledx = int(floor(x1 * widthR1)); + int scaledy = int(floor(xy * heightR1));

Note that x1 and y1 might fall outside the range [0...1] if P lies outside of R1.

+
+ + ms703892 + HRESULT IMFVideoPositionMapper::MapOutputCoordinateToInputStream([In] float xOut,[In] float yOut,[In] unsigned int dwOutputStreamIndex,[In] unsigned int dwInputStreamIndex,[Out] float* pxIn,[Out] float* pyIn) + IMFVideoPositionMapper::MapOutputCoordinateToInputStream +
+ + +

Represents a video presenter. A video presenter is an object that receives video frames, typically from a video mixer, and presents them in some way, typically by rendering them to the display. The enhanced video renderer (EVR) provides a default video presenter, and applications can implement custom presenters.

The video presenter receives video frames as soon as they are available from upstream. The video presenter is responsible for presenting frames at the correct time and for synchronizing with the presentation clock.

+
+ + ms700214 + IMFVideoPresenter + IMFVideoPresenter +
+ + + Sends a message to the video presenter. Messages are used to signal the presenter that it must perform some action, or that some event has occurred. + + Specifies the message as a member of the VpMessageType enumeration. + Message parameter. The meaning of this parameter depends on the message type. + + HRESULT IMFVideoPresenter::ProcessMessage([In] MFVP_MESSAGE_TYPE eMessage,[In] ULONG_PTR ulParam) + + + + Retrieves the presenter's media type. + + Receives a pointer to the IMFVideoMediaType interface. The caller must release the interface. + + HRESULT IMFVideoPresenter::GetCurrentMediaType([out] IMFVideoMediaType **ppMediaType + + + +

Sets one or more color adjustment (ProcAmp) settings.

+
+ +

Before calling this method, set the video processor mode. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which ProcAmp settings the driver supports, call .

+
+ + bb970441 + IMFVideoProcessor + IMFVideoProcessor +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Retrieves the video processor modes that the video driver supports.

+
+

Receives the number of video processor modes.

+

Receives a reference to an array of GUIDs. The number of elements in the array is returned in the lpdwNumProcessingModes parameter. The caller must release the memory for the array by calling CoTaskMemFree. This parameter can be null.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media type for the reference stream is not set.

?

+ +

Video processor modes are identified by . For a list of predefined GUIDs, see . A driver can define additional vendor-specific GUIDs. To get the capabilities of each mode, pass the to the method.

Before calling this method, you must set the media type for the reference stream. Which modes are available might depend on the media type of the reference stream.

+
+ + bb970329 + HRESULT IMFVideoProcessor::GetAvailableVideoProcessorModes([InOut] unsigned int* lpdwNumProcessingModes,[Out, Buffer, Optional] GUID** ppVideoProcessingModes) + IMFVideoProcessor::GetAvailableVideoProcessorModes +
+ + +

Retrieves the capabilities of a video processor mode.

+
+

Pointer to a that identifies the video processor mode. To get a list of available modes, call .

+

Pointer to a structure that receives the capabilities.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media type for the reference stream is not set.

?

+ +

Before calling this method, you must set the media type for the reference stream.

+
+ + bb970465 + HRESULT IMFVideoProcessor::GetVideoProcessorCaps([In] GUID* lpVideoProcessorMode,[Out] DXVA2_VideoProcessorCaps* lpVideoProcessorCaps) + IMFVideoProcessor::GetVideoProcessorCaps +
+ + +

Retrieves the application's preferred video processor mode. To set the preferred mode, call .

+
+ No documentation. +

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media type for the reference stream is not set.

S_FALSE

The application has not specified a preferred video processor mode.

?

+ + bb970545 + HRESULT IMFVideoProcessor::GetVideoProcessorMode([Out] GUID* lpMode) + IMFVideoProcessor::GetVideoProcessorMode +
+ + +

Sets the preferred video processor mode. The EVR will attempt to use this mode when playback starts.

+
+

Pointer to a that identifies the video processor mode. To get a list of available modes, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The requested mode is not valid.

The mixer has already allocated Direct3D resources and cannot change modes.

The media type for the reference stream is not set.

?

+ +

Before calling this method, set the media type for the reference stream as follows:

  • DirectShow EVR filter: Connect pin 0.

  • EVR media sink: Set the media type for stream 0.

  • Mixer (standalone): Set the media type for input stream 0 and set the media type for the output stream.

Which modes are available might depend on the reference stream's media type.

Call this method before video playback begins.

+
+ + bb970396 + HRESULT IMFVideoProcessor::SetVideoProcessorMode([In] GUID* lpMode) + IMFVideoProcessor::SetVideoProcessorMode +
+ + +

Retrieves the range of values for a color adjustment (ProcAmp) setting.

+
+

The ProcAmp setting to query. For a list of possible values, see ProcAmp Settings.

+

Pointer to a structure that receives range of values for the specified ProcAmp setting.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Invalid value for dwProperty.

No video processor mode has been set.

The media type for the reference stream is not set.

?

+ +

This method returns the range of values that the current video processor mode supports for the specified ProcAmp setting.

This method fails if the video processor mode has not been set on the mixer. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which ProcAmp settings the driver supports, call .

+
+ + bb970317 + HRESULT IMFVideoProcessor::GetProcAmpRange([In] unsigned int dwProperty,[Out] DXVA2_ValueRange* pPropRange) + IMFVideoProcessor::GetProcAmpRange +
+ + +

Retrieves the current settings for one or more color adjustment (ProcAmp) settings.

+
+

Bitwise OR of one or more flags, specifying which operations to query. For a list of flags, see ProcAmp Settings.

+

Pointer to a structure. The method fills the structure with the current value of each operation specified in dwFlags.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The media type for the reference stream is not set.

?

+ +

Before calling this method, you must set the media type for the reference stream.

Until the mixer's video processor mode is set, the returned values are all zero. After the processor mode is set, the returned values reflect the current mode. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which ProcAmp settings the driver supports, call .

+
+ + bb970527 + HRESULT IMFVideoProcessor::GetProcAmpValues([In] unsigned int dwFlags,[Out] DXVA2_ProcAmpValues* Values) + IMFVideoProcessor::GetProcAmpValues +
+ + +

Sets one or more color adjustment (ProcAmp) settings.

+
+

Bitwise OR of one or more flags, specifying which ProcAmp values to set. For a list of flags, see ProcAmp Settings.

+

Pointer to a structure. For each flag that you set in dwFlags, set the corresponding structure member to the desired value. To get the valid range of values for each operation, call . The method ignores any structure members for which the corresponding flag is not set in dwFlags.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The dwFlags parameter is invalid, or one or more values in pValues is not within the correct range.

The media type for the reference stream is not set.

?

+ +

Before calling this method, set the video processor mode. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which ProcAmp settings the driver supports, call .

+
+ + bb970441 + HRESULT IMFVideoProcessor::SetProcAmpValues([In] unsigned int dwFlags,[In] DXVA2_ProcAmpValues* pValues) + IMFVideoProcessor::SetProcAmpValues +
+ + +

Retrieves the range of values for a specified image filter setting.

+
+

The image filtering parameter to query. For a list of possible values, see DXVA Image Filter Settings.

+

Pointer to a structure that receives range of values for the specified image filtering parameter.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

DDERR_UNSUPPORTED

The driver does not support this filter setting.

E_INVALIDARG

Invalid value for dwProperty.

No video processor mode has been set.

The specified operation is not available.

The media type for the reference stream is not set.

?

+ +

This method returns the range of values that the current video processor mode supports for the specified image filter setting.

This method fails if the video processor mode has not been set on the mixer. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which image filters the driver supports, call .

+
+ + bb970350 + HRESULT IMFVideoProcessor::GetFilteringRange([In] unsigned int dwProperty,[Out] DXVA2_ValueRange* pPropRange) + IMFVideoProcessor::GetFilteringRange +
+ + +

Retrieves the current setting for an image filter.

+
+

The filter setting to query. For a list of possible values, see DXVA Image Filter Settings.

+

Pointer to a structure that receives the current value.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The value of dwProperty is invalid.

The media type for the reference stream is not set.

?

+ +

Before calling this method, you must set the media type for the reference stream.

Until the mixer's video processor mode is set, the returned values are all zero. After the processor mode is set, the returned values reflect the current mode. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which image filters the driver supports, call .

+
+ + bb970348 + HRESULT IMFVideoProcessor::GetFilteringValue([In] unsigned int dwProperty,[Out] DXVA2_Fixed32* pValue) + IMFVideoProcessor::GetFilteringValue +
+ + +

Sets a parameter for an image filter.

+
+

The image filtering parameter to set. For a list of possible values, see DXVA Image Filter Settings.

+

Pointer to a structure that specifies the new value. To get the valid range of values for each parameter, call .

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

The value of dwProperty is invalid.

The media type for the reference stream is not set.

?

+ +

Before calling this method, set the video processor mode. To select a video processor mode, call . Otherwise, the EVR automatically selects a mode when streaming begins.

To find out which image filters the driver supports, call .

+
+ + bb970520 + HRESULT IMFVideoProcessor::SetFilteringValue([In] unsigned int dwProperty,[In] DXVA2_Fixed32* pValue) + IMFVideoProcessor::SetFilteringValue +
+ + +

Retrieves the background color for the composition rectangle. The background color is used for letterboxing the video image.

+
+

Pointer to a value that receives the background color.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970532 + HRESULT IMFVideoProcessor::GetBackgroundColor([Out] COLORREF* lpClrBkg) + IMFVideoProcessor::GetBackgroundColor +
+ + +

Sets the background color for the composition rectangle. The background color is used for letterboxing the video image.

+
+

Background color, specified as a value. Use the RGB macro to create this value.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + bb970577 + HRESULT IMFVideoProcessor::SetBackgroundColor([In] COLORREF ClrBkg) + IMFVideoProcessor::SetBackgroundColor +
+ + +

Retrieves the application's preferred video processor mode. To set the preferred mode, call .

+
+ + bb970545 + GetVideoProcessorMode / SetVideoProcessorMode + GetVideoProcessorMode + HRESULT IMFVideoProcessor::GetVideoProcessorMode([Out] GUID* lpMode) +
+ + +

Retrieves the background color for the composition rectangle. The background color is used for letterboxing the video image.

+
+ + bb970532 + GetBackgroundColor / SetBackgroundColor + GetBackgroundColor + HRESULT IMFVideoProcessor::GetBackgroundColor([Out] COLORREF* lpClrBkg) +
+ + +

Sets a new mixer or presenter for the Enhanced Video Renderer (EVR).

Both the EVR media sink and the DirectShow EVR filter implement this interface. To get a reference to the interface, call QueryInterface on the media sink or the filter. Do not use to get a reference to this interface.

+
+ +

The EVR activation object returned by the function does not expose this interface. Instead, the activation object supports attributes that specify a custom mixer or presenter. For more information, see Enhanced Video Renderer Attributes.

+
+ + ms698954 + IMFVideoRenderer + IMFVideoRenderer +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets a new mixer or presenter for the enhanced video renderer (EVR).

+
+

Pointer to the interface of the mixer to use. This parameter can be null. If this parameter is null, the EVR uses its default mixer.

+

Pointer to the interface of the presenter to use. This parameter can be null. If this parameter is null, the EVR uses its default presenter.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

Either the mixer or the presenter is invalid.

The mixer and presenter cannot be replaced in the current state. (EVR media sink.)

The video renderer has been shut down.

VFW_E_WRONG_STATE

One or more input pins are connected. (DirectShow EVR filter.)

?

+ +

Call this method directly after creating the EVR, before you do any of the following:

  • Call on the EVR.

  • Call on the EVR.

  • Connect any pins on the EVR filter, or set any media types on EVR media sink.

The EVR filter returns VFW_E_WRONG_STATE if any of the filter's pins are connected. The EVR media sink returns if a media type is set on any of the streams, or the presentation clock is running or paused.

The device identifiers for the mixer and the presenter must match. The method returns the device identifier. If they do not match, the method returns E_INVALIDARG.

If the video renderer is in the protected media path (PMP), the mixer and presenter objects must be certified safe components and pass any trust authority verification that is being enforced. Otherwise, this method will fail.

+
+ + ms704667 + HRESULT IMFVideoRenderer::InitializeRenderer([In, Optional] IMFTransform* pVideoMixer,[In, Optional] IMFVideoPresenter* pVideoPresenter) + IMFVideoRenderer::InitializeRenderer +
+ + +

Allocates video samples for a video media sink.

The stream sinks on the enhanced video renderer (EVR) expose this interface as a service. To obtain a reference to the interface, call using the service identifier . Custom media sinks can also implement this interface. The Media Session uses this interface to allocate samples for the EVR, unless the upstream decoder supports DirectX Video Acceleration (DXVA).

+
+ + aa473823 + IMFVideoSampleAllocator + IMFVideoSampleAllocator +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Specifies the Direct3D device manager for the video media sink to use.

+
+

Pointer to the interface of the Direct3D device manager. The media sink queries this reference for the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

The media sink uses the Direct3D device manager to obtain a reference to the Direct3D device, which it uses to allocate Direct3D surfaces. The device manager enables multiple objects in the pipeline (such as a video renderer and a video decoder) to share the same Direct3D device.

+
+ + aa473819 + HRESULT IMFVideoSampleAllocator::SetDirectXManager([In] IUnknown* pManager) + IMFVideoSampleAllocator::SetDirectXManager +
+ + +

Releases all of the video samples that have been allocated.

+
+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + aa473807 + HRESULT IMFVideoSampleAllocator::UninitializeSampleAllocator() + IMFVideoSampleAllocator::UninitializeSampleAllocator +
+ + +

Specifies the number of samples to allocate and the media type for the samples.

+
+

Number of samples to allocate.

+

Pointer to the interface of a media type that describes the video format.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

Invalid media type.

?

+ + bb970496 + HRESULT IMFVideoSampleAllocator::InitializeSampleAllocator([In] unsigned int cRequestedFrames,[In] IMFMediaType* pMediaType) + IMFVideoSampleAllocator::InitializeSampleAllocator +
+ + +

Gets a video sample from the allocator.

+
+

Receives a reference to the interface. The caller must release the interface.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The allocator was not initialized. Call or InitializeSampleAllocatorEx::InitializeSampleAllocatorEx.

No samples are available.

?

+ + bb970553 + HRESULT IMFVideoSampleAllocator::AllocateSample([In] IMFSample** ppSample) + IMFVideoSampleAllocator::AllocateSample +
+ + +

Specifies the Direct3D device manager for the video media sink to use.

+
+ +

The media sink uses the Direct3D device manager to obtain a reference to the Direct3D device, which it uses to allocate Direct3D surfaces. The device manager enables multiple objects in the pipeline (such as a video renderer and a video decoder) to share the same Direct3D device.

+
+ + aa473819 + SetDirectXManager + SetDirectXManager + HRESULT IMFVideoSampleAllocator::SetDirectXManager([In] IUnknown* pManager) +
+ + +

Enables an application to track video samples allocated by the enhanced video renderer (EVR).

The stream sinks on the EVR expose this interface as a service. To get a reference to the interface, call the method, using the service identifier.

+
+ + dd374900 + IMFVideoSampleAllocatorCallback + IMFVideoSampleAllocatorCallback +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets the callback object that receives notification whenever a video sample is returned to the allocator.

+
+

A reference to the interface that receives notification, or null to remove the callback.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To get a video sample from the allocator, call the method. When the sample is released, it returns to the pool of available samples. When this happens, the allocator invokes the callback.

The allocator holds at most one callback reference. Calling this method again replaces the previous callback reference.

+
+ + dd374904 + HRESULT IMFVideoSampleAllocatorCallback::SetCallback([In] IMFVideoSampleAllocatorNotify* pNotify) + IMFVideoSampleAllocatorCallback::SetCallback +
+ + +

Gets the number of video samples that are currently available for use.

+
+

Receives the number of available samples.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To get a video sample from the allocator, call the method. The AllocateSample method removes a sample from the sample pool and returns it to the caller. When a sample is released, it returns to the pool. The GetFreeSampleCount method returns the count of samples that remain in the sample pool.

+
+ + dd374902 + HRESULT IMFVideoSampleAllocatorCallback::GetFreeSampleCount([In] int* plSamples) + IMFVideoSampleAllocatorCallback::GetFreeSampleCount +
+ + +

Sets the callback object that receives notification whenever a video sample is returned to the allocator.

+
+ +

To get a video sample from the allocator, call the method. When the sample is released, it returns to the pool of available samples. When this happens, the allocator invokes the callback.

The allocator holds at most one callback reference. Calling this method again replaces the previous callback reference.

+
+ + dd374904 + SetCallback + SetCallback + HRESULT IMFVideoSampleAllocatorCallback::SetCallback([In] IMFVideoSampleAllocatorNotify* pNotify) +
+ + +

The callback for the interface.

+
+ + dd374906 + IMFVideoSampleAllocatorNotify + IMFVideoSampleAllocatorNotify +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Called when a video sample is returned to the allocator.

+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

To get a video sample from the allocator, call the method. When the sample is released and then returned to the pool of available samples, the allocator invokes the NotifyRelease method.

+
+ + dd374908 + HRESULT IMFVideoSampleAllocatorNotify::NotifyRelease() + IMFVideoSampleAllocatorNotify::NotifyRelease +
+ + +

This interface is not supported.

+
+ + ms704789 + IEVRVideoStreamControl + IEVRVideoStreamControl +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Note??This method is not supported.

+
+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms700170 + HRESULT IEVRVideoStreamControl::SetStreamActiveState([In] BOOL fActive) + IEVRVideoStreamControl::SetStreamActiveState +
+ + +

Note??This method is not supported.

+
+
+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ + ms703876 + HRESULT IEVRVideoStreamControl::GetStreamActiveState([Out] BOOL* lpfActive) + IEVRVideoStreamControl::GetStreamActiveState +
+ + +

Note??This method is not supported.

+
+ + ms703876 + GetStreamActiveState / SetStreamActiveState + GetStreamActiveState + HRESULT IEVRVideoStreamControl::GetStreamActiveState([Out] BOOL* lpfActive) +
+ + +

Registers the topology work queues with the Multimedia Class Scheduler Service (MMCSS).

+
+ +

Each source node in the topology defines one branch of the topology. The branch includes every topology node that receives data from that node. An application can assign each branch of a topology its own work queue and then associate those work queues with MMCSS tasks.

To use this method, perform the following steps.

  1. Create the topology.
  2. Set the following attributes on the source nodes in the topology.
    • . Specifies an identifier for the work queue. The Media Session will allocate a new work queue.
    • . Specifies the MMCSS class.
    • . Specifies the MMCSS task identifier (optional). If this attribute is not set, MMCSS assigns a new task identifier.
  3. Queue the topology by calling .
  4. Wait for the event with the status.
  5. Call BeginRegisterTopologyWorkQueuesWithMMCSS. This method registers all of the topology work queues with MMCSS.

The BeginRegisterTopologyWorkQueuesWithMMCSS method is asynchronous. When the operation completes, the callback object's method is called. Within the callback method, call to complete the asynchronous request. After this operation completes, the Media Session automatically registers the work queues for every new topology that is queued on the Media Session. The application does not need to call the method again for new topologies.

To unregister the topology work queues from MMCSS, call .

+
+ + ms697485 + IMFWorkQueueServices + IMFWorkQueueServices +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Registers the topology work queues with the Multimedia Class Scheduler Service (MMCSS).

+
+

A reference to the interface of a callback object. The caller must implement this interface.

+

A reference to the interface of a state object defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

Each source node in the topology defines one branch of the topology. The branch includes every topology node that receives data from that node. An application can assign each branch of a topology its own work queue and then associate those work queues with MMCSS tasks.

To use this method, perform the following steps.

  1. Create the topology.
  2. Set the following attributes on the source nodes in the topology.
    • . Specifies an identifier for the work queue. The Media Session will allocate a new work queue.
    • . Specifies the MMCSS class.
    • . Specifies the MMCSS task identifier (optional). If this attribute is not set, MMCSS assigns a new task identifier.
  3. Queue the topology by calling .
  4. Wait for the event with the status.
  5. Call BeginRegisterTopologyWorkQueuesWithMMCSS. This method registers all of the topology work queues with MMCSS.

The BeginRegisterTopologyWorkQueuesWithMMCSS method is asynchronous. When the operation completes, the callback object's method is called. Within the callback method, call to complete the asynchronous request. After this operation completes, the Media Session automatically registers the work queues for every new topology that is queued on the Media Session. The application does not need to call the method again for new topologies.

To unregister the topology work queues from MMCSS, call .

+
+ + ms697485 + HRESULT IMFWorkQueueServices::BeginRegisterTopologyWorkQueuesWithMMCSS([In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFWorkQueueServices::BeginRegisterTopologyWorkQueuesWithMMCSS +
+ + +

Completes an asynchronous request to register the topology work queues with the Multimedia Class Scheduler Service (MMCSS).

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this method when the method completes asynchronously.

+
+ + ms696983 + HRESULT IMFWorkQueueServices::EndRegisterTopologyWorkQueuesWithMMCSS([In] IMFAsyncResult* pResult) + IMFWorkQueueServices::EndRegisterTopologyWorkQueuesWithMMCSS +
+ + +

Unregisters the topology work queues from the Multimedia Class Scheduler Service (MMCSS).

+
+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is asynchronous. When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

+
+ + ms702139 + HRESULT IMFWorkQueueServices::BeginUnregisterTopologyWorkQueuesWithMMCSS([In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFWorkQueueServices::BeginUnregisterTopologyWorkQueuesWithMMCSS +
+ + +

Completes an asynchronous request to unregister the topology work queues from the Multimedia Class Scheduler Service (MMCSS).

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this method when the method completes asynchronously.

+
+ + ms698872 + HRESULT IMFWorkQueueServices::EndUnregisterTopologyWorkQueuesWithMMCSS([In] IMFAsyncResult* pResult) + IMFWorkQueueServices::EndUnregisterTopologyWorkQueuesWithMMCSS +
+ + +

Retrieves the Multimedia Class Scheduler Service (MMCSS) class for a specified branch of the current topology.

+
+

Identifies the work queue assigned to this topology branch. The application defines this value by setting the attribute on the source node for the branch.

+

Pointer to a buffer that receives the name of the MMCSS class. This parameter can be null.

+

On input, specifies the size of the pwszClass buffer, in characters. On output, receives the required size of the buffer, in characters. The size includes the terminating null character.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

E_INVALIDARG

There is no work queue with the specified identifier.

The pwszClass buffer is too small to receive the class name.

?

+ + ms704762 + HRESULT IMFWorkQueueServices::GetTopologyWorkQueueMMCSSClass([In] unsigned int dwTopologyWorkQueueId,[Out, Buffer] wchar_t* pwszClass,[InOut] unsigned int* pcchClass) + IMFWorkQueueServices::GetTopologyWorkQueueMMCSSClass +
+ + +

Retrieves the Multimedia Class Scheduler Service (MMCSS) task identifier for a specified branch of the current topology.

+
+

Identifies the work queue assigned to this topology branch. The application defines this value by setting the attribute on the source node for the branch.

+

Receives the task identifier.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms694202 + HRESULT IMFWorkQueueServices::GetTopologyWorkQueueMMCSSTaskId([In] unsigned int dwTopologyWorkQueueId,[Out] unsigned int* pdwTaskId) + IMFWorkQueueServices::GetTopologyWorkQueueMMCSSTaskId +
+ + +

Associates a platform work queue with a Multimedia Class Scheduler Service (MMCSS) task.

+
+

The platform work queue to register with MMCSS. See Work Queue Identifiers. To register all of the standard work queues to the same MMCSS task, set this parameter to .

+

The name of the MMCSS task to be performed.

+

The unique task identifier. To obtain a new task identifier, set this value to zero.

+

A reference to the interface of a callback object. The caller must implement this interface.

+

A reference to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method is asynchronous. When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

To unregister the work queue from the MMCSS class, call .

+
+ + ms702114 + HRESULT IMFWorkQueueServices::BeginRegisterPlatformWorkQueueWithMMCSS([In] unsigned int dwPlatformWorkQueue,[In] const wchar_t* wszClass,[In] unsigned int dwTaskId,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFWorkQueueServices::BeginRegisterPlatformWorkQueueWithMMCSS +
+ + +

Completes an asynchronous request to associate a platform work queue with a Multimedia Class Scheduler Service (MMCSS) task.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The unique task identifier.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this function when the method completes asynchronously.

To unregister the work queue from the MMCSS class, call .

+
+ + ms702284 + HRESULT IMFWorkQueueServices::EndRegisterPlatformWorkQueueWithMMCSS([In] IMFAsyncResult* pResult,[Out] unsigned int* pdwTaskId) + IMFWorkQueueServices::EndRegisterPlatformWorkQueueWithMMCSS +
+ + +

Unregisters a platform work queue from a Multimedia Class Scheduler Service (MMCSS) task.

+
+

Platform work queue to register with MMCSS. See .

+

Pointer to the interface of a callback object. The caller must implement this interface.

+

Pointer to the interface of a state object, defined by the caller. This parameter can be null. You can use this object to hold state information. The object is returned to the caller when the callback is invoked.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

This method is asynchronous. When the operation completes, the callback object's method is called. At that point, the application should call to complete the asynchronous request.

+
+ + ms704603 + HRESULT IMFWorkQueueServices::BeginUnregisterPlatformWorkQueueWithMMCSS([In] unsigned int dwPlatformWorkQueue,[In] IMFAsyncCallback* pCallback,[In] IUnknown* pState) + IMFWorkQueueServices::BeginUnregisterPlatformWorkQueueWithMMCSS +
+ + +

Completes an asynchronous request to unregister a platform work queue from a Multimedia Class Scheduler Service (MMCSS) task.

+
+

Pointer to the interface. Pass in the same reference that your callback object received in the method.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ +

Call this method when the method completes asynchronously.

+
+ + ms704734 + HRESULT IMFWorkQueueServices::EndUnregisterPlatformWorkQueueWithMMCSS([In] IMFAsyncResult* pResult) + IMFWorkQueueServices::EndUnregisterPlatformWorkQueueWithMMCSS +
+ + +

Retrieves the Multimedia Class Scheduler Service (MMCSS) class for a specified platform work queue.

+
+

Platform work queue to query. See .

+

Pointer to a buffer that receives the name of the MMCSS class. This parameter can be null.

+

On input, specifies the size of the pwszClass buffer, in characters. On output, receives the required size of the buffer, in characters. The size includes the terminating null character.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The pwszClass buffer is too small to receive the class name.

?

+ + ms705624 + HRESULT IMFWorkQueueServices::GetPlaftormWorkQueueMMCSSClass([In] unsigned int dwPlatformWorkQueueId,[Out, Buffer] wchar_t* pwszClass,[InOut] unsigned int* pcchClass) + IMFWorkQueueServices::GetPlaftormWorkQueueMMCSSClass +
+ + +

Retrieves the Multimedia Class Scheduler Service (MMCSS) task identifier for a specified platform work queue.

+
+

Platform work queue to query. See .

+

Receives the task identifier.

+

The method returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

?

+ + ms700183 + HRESULT IMFWorkQueueServices::GetPlatformWorkQueueMMCSSTaskId([In] unsigned int dwPlatformWorkQueueId,[Out] unsigned int* pdwTaskId) + IMFWorkQueueServices::GetPlatformWorkQueueMMCSSTaskId +
+ + +

Specifies the protection level for Analog Copy Protection (ACP).

+
+ +

This enumeration is numerically equivalent to the COPP_ACP_Protection_Level enumeration used in Certified Output Protection Protocol. The flag corresponds to COPP_ACP_Level0.

+
+ + dd388935 + OPM_ACP_PROTECTION_LEVEL + OPM_ACP_PROTECTION_LEVEL +
+ + +

ACP is disabled.

+
+ + dd388935 + OPM_ACP_OFF + OPM_ACP_OFF +
+ + +

ACP protection level 1.

+
+ + dd388935 + OPM_ACP_LEVEL_ONE + OPM_ACP_LEVEL_ONE +
+ + +

ACP protection level 2.

+
+ + dd388935 + OPM_ACP_LEVEL_TWO + OPM_ACP_LEVEL_TWO +
+ + +

ACP protection level 3.

+
+ + dd388935 + OPM_ACP_LEVEL_THREE + OPM_ACP_LEVEL_THREE +
+ + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0006 + __MIDL___MIDL_itf_opmapi_0000_0000_0006 + + + + No documentation. + + + OPM_BUS_TYPE_OTHER + OPM_BUS_TYPE_OTHER + + + + No documentation. + + + OPM_BUS_TYPE_PCI + OPM_BUS_TYPE_PCI + + + + No documentation. + + + OPM_BUS_TYPE_PCIX + OPM_BUS_TYPE_PCIX + + + + No documentation. + + + OPM_BUS_TYPE_PCIEXPRESS + OPM_BUS_TYPE_PCIEXPRESS + + + + No documentation. + + + OPM_BUS_TYPE_AGP + OPM_BUS_TYPE_AGP + + + + No documentation. + + + OPM_BUS_IMPLEMENTATION_MODIFIER_INSIDE_OF_CHIPSET + OPM_BUS_IMPLEMENTATION_MODIFIER_INSIDE_OF_CHIPSET + + + + No documentation. + + + OPM_BUS_IMPLEMENTATION_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP + OPM_BUS_IMPLEMENTATION_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_CHIP + + + + No documentation. + + + OPM_BUS_IMPLEMENTATION_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET + OPM_BUS_IMPLEMENTATION_MODIFIER_TRACKS_ON_MOTHER_BOARD_TO_SOCKET + + + + No documentation. + + + OPM_BUS_IMPLEMENTATION_MODIFIER_DAUGHTER_BOARD_CONNECTOR + OPM_BUS_IMPLEMENTATION_MODIFIER_DAUGHTER_BOARD_CONNECTOR + + + + No documentation. + + + OPM_BUS_IMPLEMENTATION_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE + OPM_BUS_IMPLEMENTATION_MODIFIER_DAUGHTER_BOARD_CONNECTOR_INSIDE_OF_NUAE + + + + No documentation. + + + OPM_BUS_IMPLEMENTATION_MODIFIER_NON_STANDARD + OPM_BUS_IMPLEMENTATION_MODIFIER_NON_STANDARD + + + + No documentation. + + + OPM_COPP_COMPATIBLE_BUS_TYPE_INTEGRATED + OPM_COPP_COMPATIBLE_BUS_TYPE_INTEGRATED + + + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0007 + __MIDL___MIDL_itf_opmapi_0000_0000_0007 + + + + No documentation. + + + OPM_CGMSA_OFF + OPM_CGMSA_OFF + + + + No documentation. + + + OPM_CGMSA_COPY_FREELY + OPM_CGMSA_COPY_FREELY + + + + No documentation. + + + OPM_CGMSA_COPY_NO_MORE + OPM_CGMSA_COPY_NO_MORE + + + + No documentation. + + + OPM_CGMSA_COPY_ONE_GENERATION + OPM_CGMSA_COPY_ONE_GENERATION + + + + No documentation. + + + OPM_CGMSA_COPY_NEVER + OPM_CGMSA_COPY_NEVER + + + + No documentation. + + + OPM_CGMSA_REDISTRIBUTION_CONTROL_REQUIRED + OPM_CGMSA_REDISTRIBUTION_CONTROL_REQUIRED + + + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0004 + __MIDL___MIDL_itf_opmapi_0000_0000_0004 + + + + No documentation. + + + OPM_CONNECTOR_TYPE_OTHER + OPM_CONNECTOR_TYPE_OTHER + + + + No documentation. + + + OPM_CONNECTOR_TYPE_VGA + OPM_CONNECTOR_TYPE_VGA + + + + No documentation. + + + OPM_CONNECTOR_TYPE_SVIDEO + OPM_CONNECTOR_TYPE_SVIDEO + + + + No documentation. + + + OPM_CONNECTOR_TYPE_COMPOSITE_VIDEO + OPM_CONNECTOR_TYPE_COMPOSITE_VIDEO + + + + No documentation. + + + OPM_CONNECTOR_TYPE_COMPONENT_VIDEO + OPM_CONNECTOR_TYPE_COMPONENT_VIDEO + + + + No documentation. + + + OPM_CONNECTOR_TYPE_DVI + OPM_CONNECTOR_TYPE_DVI + + + + No documentation. + + + OPM_CONNECTOR_TYPE_HDMI + OPM_CONNECTOR_TYPE_HDMI + + + + No documentation. + + + OPM_CONNECTOR_TYPE_LVDS + OPM_CONNECTOR_TYPE_LVDS + + + + No documentation. + + + OPM_CONNECTOR_TYPE_D_JPN + OPM_CONNECTOR_TYPE_D_JPN + + + + No documentation. + + + OPM_CONNECTOR_TYPE_SDI + OPM_CONNECTOR_TYPE_SDI + + + + No documentation. + + + OPM_CONNECTOR_TYPE_DISPLAYPORT_EXTERNAL + OPM_CONNECTOR_TYPE_DISPLAYPORT_EXTERNAL + + + + No documentation. + + + OPM_CONNECTOR_TYPE_DISPLAYPORT_EMBEDDED + OPM_CONNECTOR_TYPE_DISPLAYPORT_EMBEDDED + + + + No documentation. + + + OPM_CONNECTOR_TYPE_UDI_EXTERNAL + OPM_CONNECTOR_TYPE_UDI_EXTERNAL + + + + No documentation. + + + OPM_CONNECTOR_TYPE_UDI_EMBEDDED + OPM_CONNECTOR_TYPE_UDI_EMBEDDED + + + + No documentation. + + + OPM_COPP_COMPATIBLE_CONNECTOR_TYPE_INTERNAL + OPM_COPP_COMPATIBLE_CONNECTOR_TYPE_INTERNAL + + + +

The DXGKMDT_OPM_DPCP_PROTECTION_LEVEL enumeration indicates the protection levels for a protected output that supports DisplayPort Content Protection (DPCP).

+
+ +

DPCP protects digital video signals from DisplayPort output connectors. For more information about DisplayPort, see the DisplayPort article.

+
+ + ff560861 + OPM_DPCP_PROTECTION_LEVEL + OPM_DPCP_PROTECTION_LEVEL +
+ + +

Indicates that DPCP does not protect the output's signal.

+
+ + ff560861 + OPM_DPCP_OFF + OPM_DPCP_OFF +
+ + +

Indicates that DPCP protects the output's signal.

+
+ + ff560861 + OPM_DPCP_ON + OPM_DPCP_ON +
+ + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0005 + __MIDL___MIDL_itf_opmapi_0000_0000_0005 + + + + No documentation. + + + OPM_DVI_CHARACTERISTIC_1_0 + OPM_DVI_CHARACTERISTIC_1_0 + + + + No documentation. + + + OPM_DVI_CHARACTERISTIC_1_1_OR_ABOVE + OPM_DVI_CHARACTERISTIC_1_1_OR_ABOVE + + + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0002 + __MIDL___MIDL_itf_opmapi_0000_0000_0002 + + + + No documentation. + + + OPM_HDCP_FLAG_NONE + OPM_HDCP_FLAG_NONE + + + + No documentation. + + + OPM_HDCP_FLAG_REPEATER + OPM_HDCP_FLAG_REPEATER + + + +

The DXGKMDT_OPM_HDCP_PROTECTION_LEVEL enumeration indicates the protection levels for a protected output that supports High-bandwidth Digital Content Protection (HDCP).

+
+ +

HDCP protects digital video signals from digital video output connectors. Currently, OPM can use HDCP to protect data from Digital Video Interface (DVI) and High-Definition Multimedia Interface (HDMI) connector outputs. For more information about the HDCP system, see the HDCP Specification Revision 1.1.

+
+ + ff560878 + OPM_HDCP_PROTECTION_LEVEL + OPM_HDCP_PROTECTION_LEVEL +
+ + +

Indicates that HDCP does not protect the output's signal.

+
+ + ff560878 + OPM_HDCP_OFF + OPM_HDCP_OFF +
+ + +

Indicates that HDCP protects the output's signal.

+
+ + ff560878 + OPM_HDCP_ON + OPM_HDCP_ON +
+ + +

Specifies the aspect ratio for ETSI EN 300 294.

+
+ +

This enumeration is numerically equivalent to the COPP_ImageAspectRatio_EN300294 enumeration used in Certified Output Protection Protocol (COPP).

+
+ + dd388963 + OPM_IMAGE_ASPECT_RATIO_EN300294 + OPM_IMAGE_ASPECT_RATIO_EN300294 +
+ + +

Full format 4:3.

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_FULL_FORMAT_4_BY_3 + OPM_ASPECT_RATIO_EN300294_FULL_FORMAT_4_BY_3 +
+ + +

Box 14:9 center.

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_BOX_14_BY_9_CENTER + OPM_ASPECT_RATIO_EN300294_BOX_14_BY_9_CENTER +
+ + +

Box 14:9 top.

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_BOX_14_BY_9_TOP + OPM_ASPECT_RATIO_EN300294_BOX_14_BY_9_TOP +
+ + +

Box 16:9 center.

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_BOX_16_BY_9_CENTER + OPM_ASPECT_RATIO_EN300294_BOX_16_BY_9_CENTER +
+ + +

Box 16:9 top.

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_BOX_16_BY_9_TOP + OPM_ASPECT_RATIO_EN300294_BOX_16_BY_9_TOP +
+ + +

Box > 16:9 center.

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_BOX_GT_16_BY_9_CENTER + OPM_ASPECT_RATIO_EN300294_BOX_GT_16_BY_9_CENTER +
+ + +

Full format 4:3 (shoot and protect 14:9 center).

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_FULL_FORMAT_4_BY_3_PROTECTED_CENTER + OPM_ASPECT_RATIO_EN300294_FULL_FORMAT_4_BY_3_PROTECTED_CENTER +
+ + +

Full format 16:9 (anamorphic).

+
+ + dd388963 + OPM_ASPECT_RATIO_EN300294_FULL_FORMAT_16_BY_9_ANAMORPHIC + OPM_ASPECT_RATIO_EN300294_FULL_FORMAT_16_BY_9_ANAMORPHIC +
+ + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0001 + __MIDL___MIDL_itf_opmapi_0000_0000_0001 + + + + No documentation. + + + OPM_OMAC_SIZE + OPM_OMAC_SIZE + + + + No documentation. + + + OPM_128_BIT_RANDOM_NUMBER_SIZE + OPM_128_BIT_RANDOM_NUMBER_SIZE + + + + No documentation. + + + OPM_ENCRYPTED_INITIALIZATION_PARAMETERS_SIZE + OPM_ENCRYPTED_INITIALIZATION_PARAMETERS_SIZE + + + + No documentation. + + + OPM_CONFIGURE_SETTING_DATA_SIZE + OPM_CONFIGURE_SETTING_DATA_SIZE + + + + No documentation. + + + OPM_GET_INFORMATION_PARAMETERS_SIZE + OPM_GET_INFORMATION_PARAMETERS_SIZE + + + + No documentation. + + + OPM_REQUESTED_INFORMATION_SIZE + OPM_REQUESTED_INFORMATION_SIZE + + + + No documentation. + + + OPM_HDCP_KEY_SELECTION_VECTOR_SIZE + OPM_HDCP_KEY_SELECTION_VECTOR_SIZE + + + + No documentation. + + + OPM_PROTECTION_TYPE_SIZE + OPM_PROTECTION_TYPE_SIZE + + + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0009 + __MIDL___MIDL_itf_opmapi_0000_0000_0009 + + + + No documentation. + + + OPM_PROTECTION_STANDARD_OTHER + OPM_PROTECTION_STANDARD_OTHER + + + + No documentation. + + + OPM_PROTECTION_STANDARD_NONE + OPM_PROTECTION_STANDARD_NONE + + + + No documentation. + + + OPM_PROTECTION_STANDARD_IEC61880_525I + OPM_PROTECTION_STANDARD_IEC61880_525I + + + + No documentation. + + + OPM_PROTECTION_STANDARD_IEC61880_2_525I + OPM_PROTECTION_STANDARD_IEC61880_2_525I + + + + No documentation. + + + OPM_PROTECTION_STANDARD_IEC62375_625P + OPM_PROTECTION_STANDARD_IEC62375_625P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_EIA608B_525 + OPM_PROTECTION_STANDARD_EIA608B_525 + + + + No documentation. + + + OPM_PROTECTION_STANDARD_EN300294_625I + OPM_PROTECTION_STANDARD_EN300294_625I + + + + No documentation. + + + OPM_PROTECTION_STANDARD_CEA805A_TYPEA_525P + OPM_PROTECTION_STANDARD_CEA805A_TYPEA_525P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_CEA805A_TYPEA_750P + OPM_PROTECTION_STANDARD_CEA805A_TYPEA_750P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_CEA805A_TYPEA_1125I + OPM_PROTECTION_STANDARD_CEA805A_TYPEA_1125I + + + + No documentation. + + + OPM_PROTECTION_STANDARD_CEA805A_TYPEB_525P + OPM_PROTECTION_STANDARD_CEA805A_TYPEB_525P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_CEA805A_TYPEB_750P + OPM_PROTECTION_STANDARD_CEA805A_TYPEB_750P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_CEA805A_TYPEB_1125I + OPM_PROTECTION_STANDARD_CEA805A_TYPEB_1125I + + + + No documentation. + + + OPM_PROTECTION_STANDARD_ARIBTRB15_525I + OPM_PROTECTION_STANDARD_ARIBTRB15_525I + + + + No documentation. + + + OPM_PROTECTION_STANDARD_ARIBTRB15_525P + OPM_PROTECTION_STANDARD_ARIBTRB15_525P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_ARIBTRB15_750P + OPM_PROTECTION_STANDARD_ARIBTRB15_750P + + + + No documentation. + + + OPM_PROTECTION_STANDARD_ARIBTRB15_1125I + OPM_PROTECTION_STANDARD_ARIBTRB15_1125I + + + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0008 + __MIDL___MIDL_itf_opmapi_0000_0000_0008 + + + + No documentation. + + + OPM_PROTECTION_TYPE_OTHER + OPM_PROTECTION_TYPE_OTHER + + + + No documentation. + + + OPM_PROTECTION_TYPE_NONE + OPM_PROTECTION_TYPE_NONE + + + + No documentation. + + + OPM_PROTECTION_TYPE_COPP_COMPATIBLE_HDCP + OPM_PROTECTION_TYPE_COPP_COMPATIBLE_HDCP + + + + No documentation. + + + OPM_PROTECTION_TYPE_ACP + OPM_PROTECTION_TYPE_ACP + + + + No documentation. + + + OPM_PROTECTION_TYPE_CGMSA + OPM_PROTECTION_TYPE_CGMSA + + + + No documentation. + + + OPM_PROTECTION_TYPE_HDCP + OPM_PROTECTION_TYPE_HDCP + + + + No documentation. + + + OPM_PROTECTION_TYPE_DPCP + OPM_PROTECTION_TYPE_DPCP + + + + No documentation. + + + __MIDL___MIDL_itf_opmapi_0000_0000_0003 + __MIDL___MIDL_itf_opmapi_0000_0000_0003 + + + + No documentation. + + + OPM_STATUS_NORMAL + OPM_STATUS_NORMAL + + + + No documentation. + + + OPM_STATUS_LINK_LOST + OPM_STATUS_LINK_LOST + + + + No documentation. + + + OPM_STATUS_RENEGOTIATION_REQUIRED + OPM_STATUS_RENEGOTIATION_REQUIRED + + + + No documentation. + + + OPM_STATUS_TAMPERING_DETECTED + OPM_STATUS_TAMPERING_DETECTED + + + + No documentation. + + + OPM_STATUS_REVOKED_HDCP_DEVICE_ATTACHED + OPM_STATUS_REVOKED_HDCP_DEVICE_ATTACHED + + + + None. + + + None + None + + + +

Specifies whether the interface will use Output Protection Manager (OPM) semantics or Certified Output Protection Protocol (COPP) semantics.

+
+ + dd388979 + OPM_VIDEO_OUTPUT_SEMANTICS + OPM_VIDEO_OUTPUT_SEMANTICS +
+ + + No documentation. + + + dd388979 + OPM_VOS_COPP_SEMANTICS + OPM_VOS_COPP_SEMANTICS + + + + No documentation. + + + dd388979 + OPM_VOS_OPM_SEMANTICS + OPM_VOS_OPM_SEMANTICS + + + + Functions + + + + + +

Creates an Output Protection Manager (OPM) object for each physical monitor that is associated with a particular handle.

+
+

The monitor handle for which to create OPM objects. There are several functions that return values. For more information, see the topic Multiple Display Monitors Functions in the Windows graphics device interface (GDI) documentation.

+

A member of the enumeration.

ValueMeaning

The returned references will use OPM semantics.

The returned references will use Certified Output Protection Protocol (COPP) semantics.

?

+

Receives the number of references returned in the pppOPMVideoOutputArray parameter.

+

Receives a reference to an array of references. Each reference is associated with a single physical monitor. The caller must release each reference in the array, and call CoTaskMemFree to free the array.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

A single handle can be associated with several physical monitors. Each physical monitor has its own connector. The application must set the protection mechanism individually for each physical monitor, using the references returned in pppOPMVideoOutputArray.

The interface has two modes of behavior, depending on the value of the vos parameter. If vos is , uses COPP semantics. This mode is intended for backward compatibility with COPP. If vos is , uses the newer OPM semantics. Differences in behavior are noted on the reference page for each method. The mode does not change during the lifetime of the object.

+
+ + dd388932 + HRESULT OPMGetVideoOutputsFromHMONITOR([In] HMONITOR hMonitor,[In] OPM_VIDEO_OUTPUT_SEMANTICS vos,[Out] unsigned int* pulNumVideoOutputs,[Out, Buffer] IOPMVideoOutput*** pppOPMVideoOutputArray) + OPMGetVideoOutputsFromHMONITOR +
+ + +

Creates an Output Protection Manager (OPM) object for each physical monitor that is associated with a particular Direct3D device.

+
+

Pointer to the interface of a Direct3D device.

+

A member of the enumeration.

ValueMeaning

The returned references will use OPM semantics.

The returned references will use Certified Output Protection Protocol (COPP) semantics.

?

+

Receives the number of references returned in the pppOPMVideoOutputArray parameter.

+

Receives a reference to an array of references. Each reference is associated with a single physical monitor. The caller must release each reference in the array, and call CoTaskMemFree to free the array.

+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

A single Direct3D device can be associated with several physical monitors. Each physical monitor has its own connector. The application must set the protection mechanism individually for each physical monitor, by using the references returned in pppOPMVideoOutputArray.

The interface has two modes of behavior, depending on the value of the vos parameter. If vos is , uses COPP semantics. This mode is intended for backward compatibility with COPP. If vos is , uses the newer OPM semantics. Differences in behavior are noted on the reference page for each method. The mode does not change during the lifetime of the object.

+
+ + dd388933 + HRESULT OPMGetVideoOutputsFromIDirect3DDevice9Object([In] IDirect3DDevice9* pDirect3DDevice9,[In] OPM_VIDEO_OUTPUT_SEMANTICS vos,[Out] unsigned int* pulNumVideoOutputs,[Out, Buffer] IOPMVideoOutput*** pppOPMVideoOutputArray) + OPMGetVideoOutputsFromIDirect3DDevice9Object +
+ + +

Represents a video output for an Output Protection Manager (OPM) session.

To get a reference to this interface, call one of the following functions:

+
+ + dd374909 + IOPMVideoOutput + IOPMVideoOutput +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Begins the initialization sequence for an Output Protection Manager (OPM) session.

+
+

Pointer to an structure. The structure receives a 128-bit random number generated by the display driver. This number is required for the method.

+

Receives a reference to a buffer containing the display driver's certificate. The method allocates the memory for the buffer. The caller must release the memory by calling CoTaskMemFree.

+

Receives the length of the buffer pointed to by ppbCertificate.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method is equivalent to the IAMCertifiedOutputProtection::KeyExchange method in Certified Output Protection Protocol (COPP).

The method returns a certificate chain that contains the driver's 2048-bit RSA public key. The caller must validate the certificate chain and then call to establish the OPM session.

This method supports both OPM semantics and COPP semantics. COPP semantics are supported for backward compatibility; new applications should use OPM semantics.

+
+ + dd374918 + HRESULT IOPMVideoOutput::StartInitialization([Out] OPM_RANDOM_NUMBER* prnRandomNumber,[Out, Buffer] unsigned char** ppbCertificate,[Out] unsigned int* pulCertificateLength) + IOPMVideoOutput::StartInitialization +
+ + +

Completes the initialization sequence for an Output Protection Manager (OPM) session.

+
+

Pointer to an structure. Initialize this structure as described in the Remarks session.

+

Returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

An unexpected error occurred the display driver.

The encrypted parameters in pParameters are incorrect.

?

+ +

This method is equivalent to the IAMCertifiedOutputProtection::SessionSequenceStart method in Certified Output Protection Protocol (COPP).

The pParameters parameter points to an structure that contains a 256-byte array. Before calling the method, prepare this array as follows. First, concatenate the following numbers:

  • The 128-bit number returned in the prnRandomNumber parameter of the method.
  • The AES signing key. This value is a 128-bit random number generated by the application.
  • The initial sequence number for OPM status requests. This value is a 32-bit random number generated by the application.
  • The initial sequence number for OPM commands. This value is a 32-bit random number generated by the application.

Encrypt this number with RAEAS-OAEP, encryption using the display driver's public encryption key. The public encryption key is contained in the certificate returned in the ppbCertificate parameter of the StartInitialization method.

The application must use cryptographically secure random numbers. The CryptGenRandom function is recommended, although not required.

+
+ + dd374914 + HRESULT IOPMVideoOutput::FinishInitialization([In] const OPM_ENCRYPTED_INITIALIZATION_PARAMETERS* pParameters) + IOPMVideoOutput::FinishInitialization +
+ + +

Sends an Output Protection Manager (OPM) status request to the display driver.

+
+

Pointer to an structure. Fill in this structure with data for the status request. For a list of status requests, see OPM Status Requests.

+

Pointer to an structure. On return, the method fills in this structure with the results of the status request.

+

Returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The OPM object was created with Certified Output Protection Protocol (COPP) semantics.

?

+ +

This method is equivalent to the IAMCertifiedOutputProtection::ProtectionStatus method in COPP.

The interface supports both OPM semantics and COPP semantics. The GetInformation method applies only when OPM semantics are used. If the interface reference was created with COPP semantics, GetInformation returns . In that case, call instead.

+
+ + dd374916 + HRESULT IOPMVideoOutput::GetInformation([In] const OPM_GET_INFO_PARAMETERS* pParameters,[Out] OPM_REQUESTED_INFORMATION* pRequestedInformation) + IOPMVideoOutput::GetInformation +
+ + +

Sends an Output Protection Manager (OPM) status request to the display driver. Use this method when OPM is emulating Certified Output Protection Manager (COPP).

+
+

Pointer to an structure. Fill in this structure with data for the status request. For a list of status requests, see OPM Status Requests.

+

Pointer to an structure. On return, the method fills in this structure with the results of the status request.

+

Returns an . Possible values include, but are not limited to, those in the following table.

Return codeDescription

The method succeeded.

The OPM object was created with OPM semantics, not COPP semantics.

?

+ +

This method is equivalent to the IAMCertifiedOutputProtection::ProtectionStatus method in COPP.

The interface supports both OPM semantics and COPP semantics. The COPPCompatibleGetInformation method applies only when COPP semantics are used. If the interface reference was created with OPM semantics, COPPCompatibleGetInformation returns . In that case, call instead.

+
+ + dd374913 + HRESULT IOPMVideoOutput::COPPCompatibleGetInformation([In] const OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS* pParameters,[Out] OPM_REQUESTED_INFORMATION* pRequestedInformation) + IOPMVideoOutput::COPPCompatibleGetInformation +
+ + +

Configures a video output. This method sends an Output Protection Manager (OPM) or Certified Output Protection Protocol (COPP) command to the driver.

+
+

Pointer to an structure that contains the command. For a list of OPM commands, see OPM Commands.

+

The size of the pbAdditionalParameters buffer, in bytes.

+

Pointer to a buffer that contains additional information for the command.

+

If this method succeeds, it returns . Otherwise, it returns an error code.

+ +

This method is equivalent to the IAMCertifiedOutputProtection::ProtectionCommand method in COPP.

This method supports both OPM semantics and COPP semantics. COPP semantics are supported for backward compatibility; new applications should use OPM semantics.

+
+ + dd374911 + HRESULT IOPMVideoOutput::Configure([In] const OPM_CONFIGURE_PARAMETERS* pParameters,[In] unsigned int ulAdditionalParametersSize,[In, Buffer, Optional] const unsigned char* pbAdditionalParameters) + IOPMVideoOutput::Configure +
+ + +

Contains the result from an OPM_GET_ACP_AND_CGMSA_SIGNALING query.

+
+ +

The layout of this structure is identical to the DXVA_COPPStatusSignalingCmdData structure used in Certified Output Protection Protocol (COPP).

+
+ + dd388934 + OPM_ACP_AND_CGMSA_SIGNALING + OPM_ACP_AND_CGMSA_SIGNALING +
+ + + No documentation. + + + dd388934 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + dd388934 + unsigned int ulStatusFlags + unsigned int ulStatusFlags + + + + No documentation. + + + dd388934 + unsigned int ulAvailableTVProtectionStandards + unsigned int ulAvailableTVProtectionStandards + + + + No documentation. + + + dd388934 + unsigned int ulActiveTVProtectionStandard + unsigned int ulActiveTVProtectionStandard + + + + No documentation. + + + dd388934 + unsigned int ulReserved + unsigned int ulReserved + + + + No documentation. + + + dd388934 + unsigned int ulAspectRatioValidMask1 + unsigned int ulAspectRatioValidMask1 + + + + No documentation. + + + dd388934 + unsigned int ulAspectRatioData1 + unsigned int ulAspectRatioData1 + + + + No documentation. + + + dd388934 + unsigned int ulAspectRatioValidMask2 + unsigned int ulAspectRatioValidMask2 + + + + No documentation. + + + dd388934 + unsigned int ulAspectRatioData2 + unsigned int ulAspectRatioData2 + + + + No documentation. + + + dd388934 + unsigned int ulAspectRatioValidMask3 + unsigned int ulAspectRatioValidMask3 + + + + No documentation. + + + dd388934 + unsigned int ulAspectRatioData3 + unsigned int ulAspectRatioData3 + + + + No documentation. + + + dd388934 + unsigned int ulReserved2[4] + unsigned int ulReserved2 + + + + No documentation. + + + dd388934 + unsigned int ulReserved3[4] + unsigned int ulReserved3 + + + +

Contains the result of an OPM_GET_ACTUAL_OUTPUT_FORMAT query in Output Protection Manager (OPM).

+
+ +

The refresh rate is expressed as a fraction. For example, if the refresh rate is 72 Hz, FreqNumerator = 72 and FreqDenominator = 1. For NTSC television, the values are FreqNumerator = 60000 and FreqDenominator = 1001 (59.94 fields per second).

The layout of this structure is identical to the DXVA_COPPStatusDisplayData structure used in Certified Output Protection Protocol (COPP).

+
+ + dd388936 + OPM_ACTUAL_OUTPUT_FORMAT + OPM_ACTUAL_OUTPUT_FORMAT +
+ + + No documentation. + + + dd388936 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + dd388936 + unsigned int ulStatusFlags + unsigned int ulStatusFlags + + + + No documentation. + + + dd388936 + unsigned int ulDisplayWidth + unsigned int ulDisplayWidth + + + + No documentation. + + + dd388936 + unsigned int ulDisplayHeight + unsigned int ulDisplayHeight + + + + No documentation. + + + dd388936 + DXVA2_SampleFormat dsfSampleInterleaveFormat + DXVA2_SampleFormat dsfSampleInterleaveFormat + + + + No documentation. + + + dd388936 + D3DFORMAT d3dFormat + D3DFORMAT d3dFormat + + + + No documentation. + + + dd388936 + unsigned int ulFrequencyNumerator + unsigned int ulFrequencyNumerator + + + + No documentation. + + + dd388936 + unsigned int ulFrequencyDenominator + unsigned int ulFrequencyDenominator + + + +

Contains an Output Protection Manager (OPM) or Certified Output Protection Manager (COPP) command.

+
+ +

The layout of this structure is identical to the AMCOPPCommand structure used in Certified Output Protection Protocol (COPP).

Initialize this structure as follows.

  1. Fill in all the structure members except the omac member.
  2. Use the OMAC 1 algorithm to calculate a message authentication code (MAC) for the block of data that appears after the omac member (excluding the omac member).
  3. Copy the MAC to the omac member.
+
+ + dd388939 + OPM_CONFIGURE_PARAMETERS + OPM_CONFIGURE_PARAMETERS +
+ + + No documentation. + + + dd388939 + OPM_OMAC omac + OPM_OMAC omac + + + + No documentation. + + + dd388939 + GUID guidSetting + GUID guidSetting + + + + No documentation. + + + dd388939 + unsigned int ulSequenceNumber + unsigned int ulSequenceNumber + + + + No documentation. + + + dd388939 + unsigned int cbParametersSize + unsigned int cbParametersSize + + + + No documentation. + + + dd388939 + unsigned char abParameters[4056] + unsigned char abParameters + + + +

The DXGKMDT_OPM_CONNECTED_HDCP_DEVICE_INFORMATION structure contains High-bandwidth Digital Content Protection (HDCP) information that is retrieved in a call to the DxgkDdiOPMGetInformation function.

+
+ + ff560854 + OPM_CONNECTED_HDCP_DEVICE_INFORMATION + OPM_CONNECTED_HDCP_DEVICE_INFORMATION +
+ + + No documentation. + + + ff560854 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + ff560854 + unsigned int ulStatusFlags + unsigned int ulStatusFlags + + + + No documentation. + + + ff560854 + unsigned int ulHDCPFlags + unsigned int ulHDCPFlags + + + + No documentation. + + + ff560854 + OPM_HDCP_KEY_SELECTION_VECTOR ksvB + OPM_HDCP_KEY_SELECTION_VECTOR ksvB + + + + No documentation. + + + ff560854 + unsigned char Reserved[11] + unsigned char Reserved + + + + No documentation. + + + ff560854 + unsigned char Reserved2[16] + unsigned char Reserved2 + + + + No documentation. + + + ff560854 + unsigned char Reserved3[16] + unsigned char Reserved3 + + + +

The DXGKMDT_OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS structure contains parameters that are used to retrieve information from a protected output object in a call to the DxgkDdiOPMGetCOPPCompatibleInformation function.

+
+ + ff560859 + OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS + OPM_COPP_COMPATIBLE_GET_INFO_PARAMETERS +
+ + + No documentation. + + + ff560859 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + ff560859 + GUID guidInformation + GUID guidInformation + + + + No documentation. + + + ff560859 + unsigned int ulSequenceNumber + unsigned int ulSequenceNumber + + + + No documentation. + + + ff560859 + unsigned int cbParametersSize + unsigned int cbParametersSize + + + + No documentation. + + + ff560859 + unsigned char abParameters[4056] + unsigned char abParameters + + + +

Contains initialization parameters for an Output Protection Manager (OPM) session.

+
+ +

The layout of this structure is identical to the AMCOPPSignature structure used in Certified Output Protection Protocol (COPP).

+
+ + dd388944 + OPM_ENCRYPTED_INITIALIZATION_PARAMETERS + OPM_ENCRYPTED_INITIALIZATION_PARAMETERS +
+ + + No documentation. + + + dd388944 + unsigned char abEncryptedInitializationParameters[256] + unsigned char abEncryptedInitializationParameters + + + +

Contains the result from an OPM_GET_CODEC_INFO query.

+
+ + dd388951 + OPM_GET_CODEC_INFO_INFORMATION + OPM_GET_CODEC_INFO_INFORMATION +
+ + + No documentation. + + + dd388951 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + dd388951 + unsigned int Merit + unsigned int Merit + + + +

Contains information for the OPM_GET_CODEC_INFO command.

+
+ + dd388952 + OPM_GET_CODEC_INFO_PARAMETERS + OPM_GET_CODEC_INFO_PARAMETERS +
+ + + No documentation. + + + dd388952 + unsigned int cbVerifier + unsigned int cbVerifier + + + + No documentation. + + + dd388952 + unsigned char Verifier[4052] + unsigned char Verifier + + + +

Contains parameters for the method.

+
+ +

Initialize this structure as follows:

  1. Generate a cryptographically secure 128-bit random number and copy it to the rnRandomNumber member. Do not re-use this number after calling GetInformation.
  2. Fill in the remaining structure members, except for the omac member.
  3. Use the OMAC 1 algorithm to calculate a message authentication code (MAC) for the block of data that appears after the omac member (excluding the omac member).
  4. Copy the MAC to the omac member.
+
+ + dd388957 + OPM_GET_INFO_PARAMETERS + OPM_GET_INFO_PARAMETERS +
+ + + No documentation. + + + dd388957 + OPM_OMAC omac + OPM_OMAC omac + + + + No documentation. + + + dd388957 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + dd388957 + GUID guidInformation + GUID guidInformation + + + + No documentation. + + + dd388957 + unsigned int ulSequenceNumber + unsigned int ulSequenceNumber + + + + No documentation. + + + dd388957 + unsigned int cbParametersSize + unsigned int cbParametersSize + + + + No documentation. + + + dd388957 + unsigned char abParameters[4056] + unsigned char abParameters + + + +

Contains the key selection vector (KSV) for a High-Bandwidth Digital Content Protection (HDCP) receiver.

+
+ + dd388961 + OPM_HDCP_KEY_SELECTION_VECTOR + OPM_HDCP_KEY_SELECTION_VECTOR +
+ + +

A buffer that contains the device's KSV. (This is the value named Bksv in the HDCP specification.)

+
+ + dd388961 + unsigned char abKeySelectionVector[5] + unsigned char abKeySelectionVector +
+ + +

The DXGKMDT_OPM_OMAC structure contains a One-key Cipher Block Chaining (CBC)-mode message authentication code (OMAC) for message authenticity.

+
+ +

For more information about OMAC, see the OMAC-1 algorithm.

The OMAC-1 parameters that OPM and COPP use are:

  • E = AES (Advanced Encryption Standard)

  • t = 128 bits

  • K = The 128-bit key that the display miniport driver receives when DxgkDdiOPMSetSigningKeyAndSequenceNumbers is called.

  • n = 128 bits

For information about AES, see the RSA Laboratories website.

+
+ + ff560887 + OPM_OMAC + OPM_OMAC +
+ + +

A 16-byte array that comprises the OMAC.

+
+ + ff560887 + unsigned char abOMAC[16] + unsigned char abOMAC +
+ + +

Contains the result from an OPM_GET_OUTPUT_ID status request.

+
+ + dd388965 + OPM_OUTPUT_ID_DATA + OPM_OUTPUT_ID_DATA +
+ + + No documentation. + + + dd388965 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + dd388965 + unsigned int ulStatusFlags + unsigned int ulStatusFlags + + + + No documentation. + + + dd388965 + unsigned longlong OutputId + unsigned longlong OutputId + + + +

Contains a 128-bit random number for use with Output Protection Manager (OPM).

+
+ +

Always use a cryptographically secure random-number generator to fill in this structure. The CryptGenRandom function is recommended, although not required.

+
+ + dd388967 + OPM_RANDOM_NUMBER + OPM_RANDOM_NUMBER +
+ + + No documentation. + + + dd388967 + unsigned char abRandomNumber[16] + unsigned char abRandomNumber + + + +

Contains the result of an Output Protection Manager (OPM) status request.

+
+ +

The layout of this structure is identical to the AMCOPPStatusOutput structure used in Certified Output Protection Protocol (COPP).

+
+ + dd388968 + OPM_REQUESTED_INFORMATION + OPM_REQUESTED_INFORMATION +
+ + + No documentation. + + + dd388968 + OPM_OMAC omac + OPM_OMAC omac + + + + No documentation. + + + dd388968 + unsigned int cbRequestedInformationSize + unsigned int cbRequestedInformationSize + + + + No documentation. + + + dd388968 + unsigned char abRequestedInformation[4076] + unsigned char abRequestedInformation + + + +

Contains information for the OPM_SET_ACP_AND_CGMSA_SIGNALING command in Output Protection Manager (OPM).

This command causes the driver to insert Wide Screen Signaling (WSS) codes or other data packets in the television signal, as required by some Analog Copy Protection (ACP) and Copy Generation Management System ? Analog (CGMS-A) specifications. For example:

  • ETSI EN 300 294 (625i PAL): Data packets are inserted into line 23 of the signal.
  • CEA-608-B (NTSC): Data packets are inserted into line 21 of the vertical blanking interval (VBI).
+
+ +

The layout of this structure is identical to the DXVA_COPPSetSignalingCmdData structure used in Certified Output Protection Manager (COPP).

+
+ + dd388970 + OPM_SET_ACP_AND_CGMSA_SIGNALING_PARAMETERS + OPM_SET_ACP_AND_CGMSA_SIGNALING_PARAMETERS +
+ + + No documentation. + + + dd388970 + unsigned int ulNewTVProtectionStandard + unsigned int ulNewTVProtectionStandard + + + + No documentation. + + + dd388970 + unsigned int ulAspectRatioChangeMask1 + unsigned int ulAspectRatioChangeMask1 + + + + No documentation. + + + dd388970 + unsigned int ulAspectRatioData1 + unsigned int ulAspectRatioData1 + + + + No documentation. + + + dd388970 + unsigned int ulAspectRatioChangeMask2 + unsigned int ulAspectRatioChangeMask2 + + + + No documentation. + + + dd388970 + unsigned int ulAspectRatioData2 + unsigned int ulAspectRatioData2 + + + + No documentation. + + + dd388970 + unsigned int ulAspectRatioChangeMask3 + unsigned int ulAspectRatioChangeMask3 + + + + No documentation. + + + dd388970 + unsigned int ulAspectRatioData3 + unsigned int ulAspectRatioData3 + + + + No documentation. + + + dd388970 + unsigned int ulReserved3 + unsigned int ulReserved3 + + + + No documentation. + + + dd388970 + unsigned int ulReserved[4] + unsigned int ulReserved + + + + No documentation. + + + dd388970 + unsigned int ulReserved2[4] + unsigned int ulReserved2 + + + +

Contains parameters for the OPM_SET_HDCP_SRM command. This command updates the system renewability message (SRM) for High-Bandwidth Digital Content Protection (HDCP).

+
+ + dd388972 + OPM_SET_HDCP_SRM_PARAMETERS + OPM_SET_HDCP_SRM_PARAMETERS +
+ + + No documentation. + + + dd388972 + unsigned int ulSRMVersion + unsigned int ulSRMVersion + + + +

The DXGKMDT_OPM_SET_PROTECTION_LEVEL_PARAMETERS structure contains parameters to set the protection level of a protected output in a call to the DxgkDdiOPMConfigureProtectedOutput function.

+
+ + ff560921 + OPM_SET_PROTECTION_LEVEL_PARAMETERS + OPM_SET_PROTECTION_LEVEL_PARAMETERS +
+ + + No documentation. + + + ff560921 + unsigned int ulProtectionType + unsigned int ulProtectionType + + + + No documentation. + + + ff560921 + unsigned int ulProtectionLevel + unsigned int ulProtectionLevel + + + + No documentation. + + + ff560921 + unsigned int Reserved + unsigned int Reserved + + + + No documentation. + + + ff560921 + unsigned int Reserved2 + unsigned int Reserved2 + + + +

Contains the result from an Output Protection Manager (OPM) status request.

+
+ +

The layout of this structure is identical to the DXVA_COPPStatusData structure used in Certified Output Protection Protocol (COPP).

+
+ + dd388976 + OPM_STANDARD_INFORMATION + OPM_STANDARD_INFORMATION +
+ + + No documentation. + + + dd388976 + OPM_RANDOM_NUMBER rnRandomNumber + OPM_RANDOM_NUMBER rnRandomNumber + + + + No documentation. + + + dd388976 + unsigned int ulStatusFlags + unsigned int ulStatusFlags + + + + No documentation. + + + dd388976 + unsigned int ulInformation + unsigned int ulInformation + + + + No documentation. + + + dd388976 + unsigned int ulReserved + unsigned int ulReserved + + + + No documentation. + + + dd388976 + unsigned int ulReserved2 + unsigned int ulReserved2 + + + +

Contains an image that is stored as metadata for a media source. This structure is used as the data item for the WM/Picture metadata attribute.

+
+ +

The WM/Picture attribute is defined in the Windows Media Format SDK. The attribute contains a picture related to the content, such as album art.

To get this attribute from a media source, call , passing in the constant g_wszWMPicture for the pwszName parameter. The method retrieves a that contains a binary array (VT_BLOB). The layout of the array is as follows:

  • structure.
  • Null-terminated wide-character string that contains the MIME type.
  • Null-terminated wide-character string that contains a description.
  • Image data.

This format differs from the WM_PICTURE structure used in the Windows Media Format SDK. The WM_PICTURE structure contains internal references to two strings and the image data. If the structure is copied, these references become invalid. The structure does not contain internal references, so it is safe to copy the structure.

+
+ + ms696178 + ASF_FLAT_PICTURE + ASF_FLAT_PICTURE +
+ + + No documentation. + + + ms696178 + unsigned char bPictureType + unsigned char bPictureType + + + + No documentation. + + + ms696178 + unsigned int dwDataLen + unsigned int dwDataLen + + + +

Contains synchronized lyrics stored as metadata for a media source. This structure is used as the data item for the WM/Lyrics_Synchronised metadata attribute.

+
+ +

The WM/Lyrics_Synchronised attribute is defined in the Windows Media Format SDK. The attribute contains lyrics synchronized to times in the source file.

To get this attribute from a media source, call , passing in the constant g_wszWMLyrics_Synchronised for the pwszName parameter. The method retrieves a that contains a binary array (VT_BLOB). The layout of the array is as follows:

  • structure.

  • Null-terminated wide-character string that contains a description.

  • Lyric data. The format of the lyric data is described in the Windows Media Format SDK documentation.

This format differs from the WM_SYNCHRONISED_LYRICS structure used in the Windows Media Format SDK. The WM_SYNCHRONISED_LYRICS structure contains internal references to two strings and the lyric data. If the structure is copied, these references become invalid. The structure does not contain internal references, so it is safe to copy the structure.

+
+ + ms697057 + ASF_FLAT_SYNCHRONISED_LYRICS + ASF_FLAT_SYNCHRONISED_LYRICS +
+ + +

Specifies the format of time stamps in the lyrics. This member is equivalent to the bTimeStampFormat member in the WM_SYNCHRONISED_LYRICS structure. The WM_SYNCHRONISED_LYRICS structure is documented in the Windows Media Format SDK.

+
+ + ms697057 + unsigned char bTimeStampFormat + unsigned char bTimeStampFormat +
+ + +

Specifies the type of synchronized strings that are in the lyric data. This member is equivalent to the bContentType member in the WM_SYNCHRONISED_LYRICS structure.

+
+ + ms697057 + unsigned char bContentType + unsigned char bContentType +
+ + +

Size, in bytes, of the lyric data.

+
+ + ms697057 + unsigned int dwLyricsLen + unsigned int dwLyricsLen +
+ + +

Describes the indexing configuration for a stream and type of index.

+
+ + ms696174 + ASF_INDEX_DESCRIPTOR + ASF_INDEX_DESCRIPTOR +
+ + +

structure that identifies the stream number and the type of index.

+
+ + ms696174 + ASF_INDEX_IDENTIFIER Identifier + ASF_INDEX_IDENTIFIER Identifier +
+ + +

Number of bytes used for each index entry. If the value is MFASFINDEXER_PER_ENTRY_BYTES_DYNAMIC, the index entries have variable size.

+
+ + ms696174 + unsigned short cPerEntryBytes + unsigned short cPerEntryBytes +
+ + +

Optional text description of the index.

+
+ + ms696174 + wchar_t szDescription[32] + wchar_t szDescription +
+ + +

Indexing interval. The units of this value depend on the index type. A value of MFASFINDEXER_NO_FIXED_INTERVAL indicates that there is no fixed indexing interval.

+
+ + ms696174 + unsigned int dwInterval + unsigned int dwInterval +
+ + +

Specifies an index for the ASF indexer object.

+
+ +

The index object of an ASF file can contain a number of distinct indexes. Each index is identified by the type of index and the stream number. No ASF index object can contain more than one index for a particular combination of stream number and index type.

+
+ + ms700100 + ASF_INDEX_IDENTIFIER + ASF_INDEX_IDENTIFIER +
+ + +

The type of index. Currently this value must be GUID_NULL, which specifies time-based indexing.

+
+ + ms700100 + GUID guidIndexType + GUID guidIndexType +
+ + +

The stream number to which this structure applies.

+
+ + ms700100 + unsigned short wStreamNumber + unsigned short wStreamNumber +
+ + +

Contains statistics about the progress of the ASF multiplexer.

+
+ +

Use to retrieve this structure.

+
+ + ms696231 + ASF_MUX_STATISTICS + ASF_MUX_STATISTICS +
+ + +

Number of frames written by the ASF multiplexer.

+
+ + ms696231 + unsigned int cFramesWritten + unsigned int cFramesWritten +
+ + +

Number of frames dropped by the ASF multiplexer.

+
+ + ms696231 + unsigned int cFramesDropped + unsigned int cFramesDropped +
+ + +

Describes a 4:4:4:4 Y'Cb'Cr' sample.

+
+ + ms701580 + MFAYUVSample + MFAYUVSample +
+ + +

Cr (chroma difference) value.

+
+ + ms701580 + unsigned char bCrValue + unsigned char bCrValue +
+ + +

Cb (chroma difference) value.

+
+ + ms701580 + unsigned char bCbValue + unsigned char bCbValue +
+ + +

Y (luma) value.

+
+ + ms701580 + unsigned char bYValue + unsigned char bYValue +
+ + +

Alpha value.

+
+ + ms701580 + unsigned char bSampleAlpha8 + unsigned char bSampleAlpha8 +
+ + +

Specifies the buffering parameters for a network byte stream.

+
+ + aa370446 + MFBYTESTREAM_BUFFERING_PARAMS + MFBYTESTREAM_BUFFERING_PARAMS +
+ + +

Size of the file, in bytes. If the total size is unknown, set this member to -1.

+
+ + aa370446 + unsigned longlong cbTotalFileSize + unsigned longlong cbTotalFileSize +
+ + +

Size of the playable media data in the file, excluding any trailing data that is not useful for playback. If this value is unknown, set this member to -1.

+
+ + aa370446 + unsigned longlong cbPlayableDataSize + unsigned longlong cbPlayableDataSize +
+ + +

Pointer to an array of structures. Each member of the array gives the buffer window for a particular bit rate.

+
+ + aa370446 + MF_LEAKY_BUCKET_PAIR* prgBuckets + MF_LEAKY_BUCKET_PAIR prgBuckets +
+ + +

The number of elements in the prgBuckets array.

+
+ + aa370446 + unsigned int cBuckets + unsigned int cBuckets +
+ + +

Amount of data to buffer from the network, in 100-nanosecond units. This value is in addition to the buffer windows defined in the prgBuckets member.

+
+ + aa370446 + unsigned longlong qwNetBufferingTime + unsigned longlong qwNetBufferingTime +
+ + +

Amount of additional data to buffer when seeking, in 100-nanosecond units. This value reflects the fact that downloading must start from the previous key frame before the seek point. If the value is unknown, set this member to zero.

+
+ + aa370446 + unsigned longlong qwExtraBufferingTimeDuringSeek + unsigned longlong qwExtraBufferingTimeDuringSeek +
+ + +

The playback duration of the file, in 100-nanosecond units. If the duration is unknown, set this member to zero.

+
+ + aa370446 + unsigned longlong qwPlayDuration + unsigned longlong qwPlayDuration +
+ + +

Playback rate.

+
+ + aa370446 + float dRate + float dRate +
+ + +

Defines the properties of a clock.

+
+ + ms695206 + MFCLOCK_PROPERTIES + MFCLOCK_PROPERTIES +
+ + +

The interval at which the clock correlates its clock time with the system time, in 100-nanosecond units. If the value is zero, the correlation is made whenever the method is called.

+
+ + ms695206 + unsigned longlong qwCorrelationRate + unsigned longlong qwCorrelationRate +
+ + +

The unique identifier of the underlying device that provides the time. If two clocks have the same unique identifier, they are based on the same device. If the underlying device is not shared between two clocks, the value can be GUID_NULL.

+
+ + ms695206 + GUID guidClockId + GUID guidClockId +
+ + +

A bitwise OR of flags from the enumeration.

+
+ + ms695206 + unsigned int dwClockFlags + unsigned int dwClockFlags +
+ + +

The clock frequency in Hz. A value of MFCLOCK_FREQUENCY_HNS means that the clock has a frequency of 10 MHz (100-nanosecond ticks), which is the standard MFTIME time unit in Media Foundation. If the method returns the flag, the value of this field must be MFCLOCK_FREQUENCY_HNS.

+
+ + ms695206 + unsigned longlong qwClockFrequency + unsigned longlong qwClockFrequency +
+ + +

The amount of inaccuracy that may be present on the clock, in parts per billion (ppb). For example, an inaccuracy of 50 ppb means the clock might drift up to 50 seconds per billion seconds of real time. If the tolerance is not known, the value is MFCLOCK_TOLERANCE_UNKNOWN. This constant is equal to 50 parts per million (ppm).

+
+ + ms695206 + unsigned int dwClockTolerance + unsigned int dwClockTolerance +
+ + +

The amount of jitter that may be present, in 100-nanosecond units. Jitter is the variation in the frequency due to sampling the underlying clock. Jitter does not include inaccuracies caused by drift, which is reflected in the value of dwClockTolerance.

For clocks based on a single device, the minimum jitter is the length of the tick period (the inverse of the frequency). For example, if the frequency is 10 Hz, the jitter is 0.1 second, which is 1,000,000 in MFTIME units. This value reflects the fact that the clock might be sampled just before the next tick, resulting in a clock time that is one period less than the actual time. If the frequency is greater than 10 MHz, the jitter should be set to 1 (the minimum value).

If a clock's underlying hardware device does not directly time stamp the incoming data, the jitter also includes the time required to dispatch the driver's interrupt service routine (ISR). In that case, the expected jitter should include the following values:

ValueMeaning
MFCLOCK_JITTER_ISR

Jitter due to time stamping during the device driver's ISR.

MFCLOCK_JITTER_DPC

Jitter due to time stamping during the deferred procedure call (DPC) processing.

MFCLOCK_JITTER_PASSIVE

Jitter due to dropping to normal thread execution before time stamping.

?

+
+ + ms695206 + unsigned int dwClockJitter + unsigned int dwClockJitter +
+ + +

The structure describes the format of the data used by a stream in a Microsoft DirectX Media Object (DMO).

+
+ +

This structure is identical to the DirectShow structure. The bFixedSizeSamples, bTemporalCompression, and lSampleSize members are for compatibility with DirectShow. Other DMO clients are not required to use them.

+
+ + dd375504 + DMO_MEDIA_TYPE + DMO_MEDIA_TYPE +
+ + +

Major type of the stream.

+
+ + dd375504 + GUID majortype + GUID majortype +
+ + +

Subtype of the stream.

+
+ + dd375504 + GUID subtype + GUID subtype +
+ + +

If TRUE, samples are of a fixed size. This field is informational only. For audio, it is generally set to TRUE. For video, it is usually TRUE for uncompressed video and for compressed video.

+
+ + dd375504 + BOOL bFixedSizeSamples + BOOL bFixedSizeSamples +
+ + +

If TRUE, samples are compressed using temporal (interframe) compression. (A value of TRUE indicates that not all frames are key frames.) This field is informational only.

+
+ + dd375504 + BOOL bTemporalCompression + BOOL bTemporalCompression +
+ + +

Size of the sample in bytes. For compressed data, the value can be zero.

+
+ + dd375504 + unsigned int lSampleSize + unsigned int lSampleSize +
+ + +

specifying the format type. The pbFormat member points to the corresponding format structure. Format types include the following.

Format typeFormat structure
FORMAT_DvInfo

DVINFO

FORMAT_MPEG2Video

FORMAT_MPEGVideo

FORMAT_None

None.

FORMAT_VideoInfo

FORMAT_VideoInfo2

FORMAT_WaveFormatEx

?

+
+ + dd375504 + GUID formattype + GUID formattype +
+ + +

Not used. Set to null.

+
+ + dd375504 + IUnknown* pUnk + IUnknown pUnk +
+ + +

Size of the format block of the media type.

+
+ + dd375504 + unsigned int cbFormat + unsigned int cbFormat +
+ + +

Pointer to the format structure. The structure type is specified by the formattype member. The format structure must be present, unless formattype is GUID_NULL or FORMAT_None.

+
+ + dd375504 + unsigned char* pbFormat + unsigned char pbFormat +
+ + + No documentation. + + + DMO_OUTPUT_DATA_BUFFER + DMO_OUTPUT_DATA_BUFFER + + + + No documentation. + + + IMediaBuffer* pBuffer + IMediaBuffer pBuffer + + + + No documentation. + + + unsigned int dwStatus + unsigned int dwStatus + + + + No documentation. + + + longlong rtTimestamp + longlong rtTimestamp + + + + No documentation. + + + longlong rtTimelength + longlong rtTimelength + + + +

Contains coefficients used to transform multichannel audio into a smaller number of audio channels. This process is called fold-down.

+
+ +

To specify this information in the media type, set the attribute.

The ASF media source supports fold-down from six channels (5.1 audio) to two channels (stereo). It gets the information from the g_wszFold6To2Channels3 attribute in the ASF header. This attribute is documented in the Windows Media Format SDK documentation.

+
+ + aa369731 + MFFOLDDOWN_MATRIX + MFFOLDDOWN_MATRIX +
+ + +

Size of the structure, in bytes.

+
+ + aa369731 + unsigned int cbSize + unsigned int cbSize +
+ + +

Number of source channels.

+
+ + aa369731 + unsigned int cSrcChannels + unsigned int cSrcChannels +
+ + +

Number of destination channels.

+
+ + aa369731 + unsigned int cDstChannels + unsigned int cDstChannels +
+ + +

Specifies the assignment of audio channels to speaker positions in the transformed audio. This member is a bitwise OR of flags that define the speaker positions. For a list of valid flags, see attribute.

+
+ + aa369731 + unsigned int dwChannelMask + unsigned int dwChannelMask +
+ + +

Array that contains the fold-down coefficients. The number of coefficients is cSrcChannels?cDstChannels. If the number of coefficients is less than the size of the array, the remaining elements in the array are ignored. For more information about how the coefficients are applied, see Windows Media Audio Professional Codec Features.

+
+ + aa369731 + int Coeff[64] + int Coeff +
+ + +

Describes an action requested by an output trust authority (OTA). The request is sent to an input trust authority (ITA).

+
+ + ms695312 + MFINPUTTRUSTAUTHORITY_ACCESS_ACTION + MFINPUTTRUSTAUTHORITY_ACCESS_ACTION +
+ + +

Specifies the action as a member of the enumeration.

+
+ + ms695312 + MFPOLICYMANAGER_ACTION Action + MFPOLICYMANAGER_ACTION Action +
+ + +

Pointer to a buffer that contains a ticket object, provided by the OTA.

+
+ + ms695312 + unsigned char* pbTicket + unsigned char pbTicket +
+ + +

Size of the ticket object, in bytes.

+
+ + ms695312 + unsigned int cbTicket + unsigned int cbTicket +
+ + +

Contains parameters for the or method.

+
+ + ms697403 + MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS + MFINPUTTRUSTAUTHORITY_ACCESS_PARAMS +
+ + + No documentation. + + + ms697403 + unsigned int dwSize + unsigned int dwSize + + + + No documentation. + + + ms697403 + unsigned int dwVer + unsigned int dwVer + + + + No documentation. + + + ms697403 + unsigned int cbSignatureOffset + unsigned int cbSignatureOffset + + + + No documentation. + + + ms697403 + unsigned int cbSignatureSize + unsigned int cbSignatureSize + + + + No documentation. + + + ms697403 + unsigned int cbExtensionOffset + unsigned int cbExtensionOffset + + + + No documentation. + + + ms697403 + unsigned int cbExtensionSize + unsigned int cbExtensionSize + + + + No documentation. + + + ms697403 + unsigned int cActions + unsigned int cActions + + + + No documentation. + + + ms697403 + MFINPUTTRUSTAUTHORITY_ACCESS_ACTION rgOutputActions[1] + MFINPUTTRUSTAUTHORITY_ACCESS_ACTION rgOutputActions + + + +

Specifies the buffering requirements of a file.

+
+ +

This structure describes the buffering requirements for content encoded at the bit rate specified in the dwBitrate. The msBufferWindow member indicates how much data should be buffered before starting playback. The size of the buffer in bytes is msBufferWinow?dwBitrate / 8000.

+
+ + aa371870 + MF_LEAKY_BUCKET_PAIR + MF_LEAKY_BUCKET_PAIR +
+ + +

Bit rate, in bits per second.

+
+ + aa371870 + unsigned int dwBitrate + unsigned int dwBitrate +
+ + +

Size of the buffer window, in milliseconds.

+
+ + aa371870 + unsigned int msBufferWindow + unsigned int msBufferWindow +
+ + +

Contains encoding statistics from the Digital Living Network Alliance (DLNA) media sink.

This structure is used with the attribute.

+
+ + dd388511 + MFMPEG2DLNASINKSTATS + MFMPEG2DLNASINKSTATS +
+ + + No documentation. + + + dd388511 + unsigned longlong cBytesWritten + unsigned longlong cBytesWritten + + + + No documentation. + + + dd388511 + BOOL fPAL + BOOL fPAL + + + + No documentation. + + + dd388511 + unsigned int fccVideo + unsigned int fccVideo + + + + No documentation. + + + dd388511 + unsigned int dwVideoWidth + unsigned int dwVideoWidth + + + + No documentation. + + + dd388511 + unsigned int dwVideoHeight + unsigned int dwVideoHeight + + + + No documentation. + + + dd388511 + unsigned longlong cVideoFramesReceived + unsigned longlong cVideoFramesReceived + + + + No documentation. + + + dd388511 + unsigned longlong cVideoFramesEncoded + unsigned longlong cVideoFramesEncoded + + + + No documentation. + + + dd388511 + unsigned longlong cVideoFramesSkipped + unsigned longlong cVideoFramesSkipped + + + + No documentation. + + + dd388511 + unsigned longlong cBlackVideoFramesEncoded + unsigned longlong cBlackVideoFramesEncoded + + + + No documentation. + + + dd388511 + unsigned longlong cVideoFramesDuplicated + unsigned longlong cVideoFramesDuplicated + + + + No documentation. + + + dd388511 + unsigned int cAudioSamplesPerSec + unsigned int cAudioSamplesPerSec + + + + No documentation. + + + dd388511 + unsigned int cAudioChannels + unsigned int cAudioChannels + + + + No documentation. + + + dd388511 + unsigned longlong cAudioBytesReceived + unsigned longlong cAudioBytesReceived + + + + No documentation. + + + dd388511 + unsigned longlong cAudioFramesEncoded + unsigned longlong cAudioFramesEncoded + + + +

Contains format data for a binary stream in an Advanced Streaming Format (ASF) file.

+
+ +

This structure is used with the media type attribute.

This structure corresponds to the first 60 bytes of the Type-Specific Data field of the Stream Properties Object, in files where the stream type is ASF_Binary_Media. For more information, see the ASF specification.

The Format Data field of the Type-Specific Data field is contained in the attribute of the media type.

+
+ + dd388931 + MT_ARBITRARY_HEADER + MT_ARBITRARY_HEADER +
+ + +

Major media type. This value is the stored in the Major Media Type field of the Type-Specific Data field of the ASF file. It might not match the major type from the Media Foundation media type.

+
+ + dd388931 + GUID majortype + GUID majortype +
+ + +

Media subtype.

+
+ + dd388931 + GUID subtype + GUID subtype +
+ + +

If TRUE, samples have a fixed size in bytes. Otherwise, samples have variable size.

+
+ + dd388931 + BOOL bFixedSizeSamples + BOOL bFixedSizeSamples +
+ + +

If TRUE, the data in this stream uses temporal compression. Otherwise, samples are independent of each other.

+
+ + dd388931 + BOOL bTemporalCompression + BOOL bTemporalCompression +
+ + +

If bFixedSizeSamples is TRUE, this member specifies the sample size in bytes. Otherwise, the value is ignored and should be 0.

+
+ + dd388931 + unsigned int lSampleSize + unsigned int lSampleSize +
+ + +

Format type . This identifies the structure of the additional format data, which is stored in the attribute of the media type. If no additional format data is present, formattype equals GUID_NULL.

+
+ + dd388931 + GUID formattype + GUID formattype +
+ + +

Defines custom color primaries for a video source. The color primaries define how to convert colors from RGB color space to CIE XYZ color space.

+
+ +

This structure is used with the attribute.

+
+ + ms696187 + MT_CUSTOM_VIDEO_PRIMARIES + MT_CUSTOM_VIDEO_PRIMARIES +
+ + +

Red x-coordinate.

+
+ + ms696187 + float fRx + float fRx +
+ + +

Red y-coordinate.

+
+ + ms696187 + float fRy + float fRy +
+ + +

Green x-coordinate.

+
+ + ms696187 + float fGx + float fGx +
+ + +

Green y-coordinate.

+
+ + ms696187 + float fGy + float fGy +
+ + +

Blue x-coordinate.

+
+ + ms696187 + float fBx + float fBx +
+ + +

Blue y-coordinate.

+
+ + ms696187 + float fBy + float fBy +
+ + +

White point x-coordinate.

+
+ + ms696187 + float fWx + float fWx +
+ + +

White point y-coordinate.

+
+ + ms696187 + float fWy + float fWy +
+ + +

Contains the authentication information for the credential manager.

+
+ + ms701554 + MFNetCredentialManagerGetParam + MFNetCredentialManagerGetParam +
+ + +

The response code of the authentication challenge. For example, NS_E_PROXY_ACCESSDENIED.

+
+ + ms701554 + HRESULT hrOp + HRESULT hrOp +
+ + +

Set this flag to TRUE if the currently logged on user's credentials should be used as the default credentials.

+
+ + ms701554 + BOOL fAllowLoggedOnUser + BOOL fAllowLoggedOnUser +
+ + +

If TRUE, the authentication package will send unencrypted credentials over the network. Otherwise, the authentication package encrypts the credentials.

+
+ + ms701554 + BOOL fClearTextPackage + BOOL fClearTextPackage +
+ + +

The original URL that requires authentication.

+
+ + ms701554 + const wchar_t* pszUrl + wchar_t pszUrl +
+ + +

The name of the site or proxy that requires authentication.

+
+ + ms701554 + const wchar_t* pszSite + wchar_t pszSite +
+ + +

The name of the realm for this authentication.

+
+ + ms701554 + const wchar_t* pszRealm + wchar_t pszRealm +
+ + +

The name of the authentication package. For example, "Digest" or "MBS_BASIC".

+
+ + ms701554 + const wchar_t* pszPackage + wchar_t pszPackage +
+ + +

The number of times that the credential manager should retry after authentication fails.

+
+ + ms701554 + int nRetries + int nRetries +
+ + +

Specifies a rectangular area within a video frame.

+
+ + ms703850 + MFOffset + MFOffset +
+ + +

An structure that contains the x-coordinate of the upper-left corner of the rectangle. This coordinate might have a fractional value.

+
+ + ms703850 + unsigned short fract + unsigned short fract +
+ + +

An structure that contains the y-coordinate of the upper-left corner of the rectangle. This coordinate might have a fractional value.

+
+ + ms703850 + short value + short value +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent if the application plays a media file from a server that requires authentication. The application can respond by providing the user credentials.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the callback method. You can use the MFP_GET_ACQUIRE_USER_CREDENTIAL_EVENT macro for this purpose.

If the flags member contains the flag, the application should do the following:

  1. Prompt the user to enter a user name and password.
  2. Store the user name in the credentials object by calling on the pCredential reference.
  3. Store the password by calling on the pCredential reference.

To cancel authentication, set fProceedWithAuthentication equal to .

By default, MFPlay uses the network source's implementation of to manage credentials. An application can provide its own implementation of this interface as follows:

  1. Call QueryInterface on the reference to get the interface.
  2. Call IPropertyStore::SetValue to set the MFNETSOURCE_CREDENTIAL_MANAGER property.
+
+ + dd375527 + MFP_ACQUIRE_USER_CREDENTIAL_EVENT + MFP_ACQUIRE_USER_CREDENTIAL_EVENT +
+ + + No documentation. + + + dd375527 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375527 + ULONG_PTR dwUserData + ULONG_PTR dwUserData + + + + No documentation. + + + dd375527 + BOOL fProceedWithAuthentication + BOOL fProceedWithAuthentication + + + + No documentation. + + + dd375527 + HRESULT hrAuthenticationStatus + HRESULT hrAuthenticationStatus + + + + No documentation. + + + dd375527 + const wchar_t* pwszURL + wchar_t pwszURL + + + + No documentation. + + + dd375527 + const wchar_t* pwszSite + wchar_t pwszSite + + + + No documentation. + + + dd375527 + const wchar_t* pwszRealm + wchar_t pwszRealm + + + + No documentation. + + + dd375527 + const wchar_t* pwszPackage + wchar_t pwszPackage + + + + No documentation. + + + dd375527 + int nRetries + int nRetries + + + + No documentation. + + + dd375527 + unsigned int flags + unsigned int flags + + + + No documentation. + + + dd375527 + IMFNetCredential* pCredential + IMFNetCredential pCredential + + + +

Contains one palette entry in a color table.

+
+ +

This union can be used to represent both RGB palettes and Y'Cb'Cr' palettes. The video format that defines the palette determines which union member should be used.

+
+ + ms698970 + MFPaletteEntry + MFPaletteEntry +
+ + +

structure that contains an RGB color.

+
+ + ms698970 + MFARGB ARGB + MFARGB ARGB +
+ + +

structure that contains a Y'Cb'Cr' color.

+
+ + ms698970 + MFAYUVSample AYCbCr + MFAYUVSample AYCbCr +
+ + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent if an error occurs during playback.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_ERROR_EVENT macro for this purpose.

This event is not used to signal the failure of an asynchronous method. If an asynchronous method fails, the error is reported in the standard event listed for that method. The event is used for errors that happen outside the context of an asynchronous method call.

+
+ + dd375530 + MFP_ERROR_EVENT + MFP_ERROR_EVENT +
+ + + No documentation. + + + dd375530 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Contains information that is common to every type of MFPlay event.

+
+ + dd375531 + MFP_EVENT_HEADER + MFP_EVENT_HEADER +
+ + + No documentation. + + + dd375531 + MFP_EVENT_TYPE eEventType + MFP_EVENT_TYPE eEventType + + + + No documentation. + + + dd375531 + HRESULT hrEvent + HRESULT hrEvent + + + + No documentation. + + + dd375531 + IMFPMediaPlayer* pMediaPlayer + IMFPMediaPlayer pMediaPlayer + + + + No documentation. + + + dd375531 + MFP_MEDIAPLAYER_STATE eState + MFP_MEDIAPLAYER_STATE eState + + + + No documentation. + + + dd375531 + IPropertyStore* pPropertyStore + IPropertyStore pPropertyStore + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_FRAME_STEP_EVENT macro for this purpose.

+
+ + dd375533 + MFP_FRAME_STEP_EVENT + MFP_FRAME_STEP_EVENT +
+ + + No documentation. + + + dd375533 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375533 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_MEDIAITEM_CLEARED_EVENT macro for this purpose.

+
+ + dd375549 + MFP_MEDIAITEM_CLEARED_EVENT + MFP_MEDIAITEM_CLEARED_EVENT +
+ + + No documentation. + + + dd375549 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375549 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the or method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_MEDIAITEM_CREATED_EVENT macro for this purpose.

Media items are created asynchronously. If multiple items are created, the operations can complete in any order, not necessarily in the same order as the method calls. You can use the dwUserData member to identify the items, if you have simultaneous requests pending.

+
+ + dd375560 + MFP_MEDIAITEM_CREATED_EVENT + MFP_MEDIAITEM_CREATED_EVENT +
+ + + No documentation. + + + dd375560 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375560 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + + No documentation. + + + dd375560 + ULONG_PTR dwUserData + ULONG_PTR dwUserData + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_MEDIAITEM_SET_EVENT macro for this purpose.

If one or more streams could not be connected to a media sink, the event property store contains the MFP_PKEY_StreamRenderingResults property. The value of the property is an array of values, indicating which streams were connected successfully. The event property store can be accessed through the header.pPropertyStore member.

+
+ + dd375561 + MFP_MEDIAITEM_SET_EVENT + MFP_MEDIAITEM_SET_EVENT +
+ + + No documentation. + + + dd375561 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375561 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. The MFPlay player object uses this event to forward certain events from the Media Foundation pipeline to the application.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_MF_EVENT macro for this purpose.

If MFEventType is , the following property may be stored in the event property store, which can be accessed through the header.pPropertyStore member.

PropertyDescription
MFP_PKEY_StreamIndex The index of the stream whose format changed.

?

+
+ + dd375563 + MFP_MF_EVENT + MFP_MF_EVENT +
+ + + No documentation. + + + dd375563 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375563 + unsigned int MFEventType + unsigned int MFEventType + + + + No documentation. + + + dd375563 + IMFMediaEvent* pMFMediaEvent + IMFMediaEvent pMFMediaEvent + + + + No documentation. + + + dd375563 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_PAUSE_EVENT macro for this purpose.

+
+ + dd375564 + MFP_PAUSE_EVENT + MFP_PAUSE_EVENT +
+ + + No documentation. + + + dd375564 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375564 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the current media item finishes playing.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_PLAYBACK_ENDED_EVENT macro for this purpose.

+
+ + dd375566 + MFP_PLAYBACK_ENDED_EVENT + MFP_PLAYBACK_ENDED_EVENT +
+ + + No documentation. + + + dd375566 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375566 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_PLAY_EVENT macro for this purpose.

+
+ + dd375567 + MFP_PLAY_EVENT + MFP_PLAY_EVENT +
+ + + No documentation. + + + dd375567 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375567 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_POSITION_SET_EVENT macro for this purpose.

+
+ + dd375568 + MFP_POSITION_SET_EVENT + MFP_POSITION_SET_EVENT +
+ + + No documentation. + + + dd375568 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375568 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_RATE_SET_EVENT macro for this purpose.

+
+ + dd375569 + MFP_RATE_SET_EVENT + MFP_RATE_SET_EVENT +
+ + + No documentation. + + + dd375569 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375569 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + + No documentation. + + + dd375569 + float flRate + float flRate + + + +

Important??Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.

Event structure for the event. This event is sent when the method completes.

+
+ +

To get a reference to this structure, cast the pEventHeader parameter of the method. You can use the MFP_GET_STOP_EVENT macro for this purpose.

+
+ + dd375570 + MFP_STOP_EVENT + MFP_STOP_EVENT +
+ + + No documentation. + + + dd375570 + MFP_EVENT_HEADER header + MFP_EVENT_HEADER header + + + + No documentation. + + + dd375570 + IMFPMediaItem* pMediaItem + IMFPMediaItem pMediaItem + + + +

Represents a ratio.

+
+ + aa473788 + MFRatio + MFRatio +
+ + +

Numerator of the ratio.

+
+ + aa473788 + unsigned int Numerator + unsigned int Numerator +
+ + +

Denominator of the ratio.

+
+ + aa473788 + unsigned int Denominator + unsigned int Denominator +
+ + +

Contains information about a revoked component.

+
+ + aa376487 + MFRR_COMPONENT_HASH_INFO + MFRR_COMPONENT_HASH_INFO +
+ + +

Specifies the reason for the revocation. The following values are defined.

ValueMeaning
MF_BOOT_DRIVER_VERIFICATION_FAILED

A boot driver could not be verified.

MF_COMPONENT_CERT_REVOKED

A certificate in a trusted component's certificate chain was revoked.

MF_COMPONENT_HS_CERT_REVOKED

The high-security certificate for authenticating the protected environment (PE) was revoked.

The high-security certificate is typically used by ITAs that handle high-definition content and next-generation formats such as HD-DVD.

MF_COMPONENT_INVALID_EKU

A certificate's extended key usage (EKU) object is invalid.

MF_COMPONENT_INVALID_ROOT

The root certificate is not valid.

MF_COMPONENT_LS_CERT_REVOKED

The low-security certificate for authenticating the PE was revoked.

The low-security certificate is typically used by ITAs that handle standard-definition content and current-generation formats.

MF_COMPONENT_REVOKED

A trusted component was revoked.

MF_GRL_ABSENT

The GRL was not found.

MF_GRL_LOAD_FAILED

Could not load the global revocation list (GRL).

MF_INVALID_GRL_SIGNATURE

The GRL signature is invalid.

MF_MINCRYPT_FAILURE

A certificate chain was not well-formed, or a boot driver is unsigned or is signed with an untrusted certificate.

MF_TEST_SIGNED_COMPONENT_LOADING

A component was signed by a test certificate.

?

In addition, one of the following flags might be present, indicating the type of component that failed to load.

ValueMeaning
MF_USER_MODE_COMPONENT_LOAD

User-mode component.

MF_KERNEL_MODE_COMPONENT_LOAD

Kernel-mode component.

?

+
+ + aa376487 + unsigned int ulReason + unsigned int ulReason +
+ + +

Contains a hash of the file header.

+
+ + aa376487 + wchar_t rgHeaderHash[43] + wchar_t rgHeaderHash +
+ + +

Contains a hash of the public key in the component's certificate.

+
+ + aa376487 + wchar_t rgPublicKeyHash[43] + wchar_t rgPublicKeyHash +
+ + +

File name of the revoked component.

+
+ + aa376487 + wchar_t wszName[260] + wchar_t wszName +
+ + +

Contains information about one or more revoked components.

+
+ + aa375568 + MFRR_COMPONENTS + MFRR_COMPONENTS +
+ + +

Revocation information version.

+
+ + aa375568 + unsigned int dwRRInfoVersion + unsigned int dwRRInfoVersion +
+ + +

Number of elements in the pRRComponents array.

+
+ + aa375568 + unsigned int dwRRComponents + unsigned int dwRRComponents +
+ + +

Array of structures.

+
+ + aa375568 + MFRR_COMPONENT_HASH_INFO* pRRComponents + MFRR_COMPONENT_HASH_INFO pRRComponents +
+ + +

Contains statistics about the performance of the sink writer.

+
+ + dd375769 + MF_SINK_WRITER_STATISTICS + MF_SINK_WRITER_STATISTICS +
+ + +

The size of the structure, in bytes.

+
+ + dd375769 + unsigned int cb + unsigned int cb +
+ + +

The time stamp of the most recent sample given to the sink writer. The sink writer updates this value each time the application calls .

+
+ + dd375769 + longlong llLastTimestampReceived + longlong llLastTimestampReceived +
+ + +

The time stamp of the most recent sample to be encoded. The sink writer updates this value whenever it calls on the encoder.

+
+ + dd375769 + longlong llLastTimestampEncoded + longlong llLastTimestampEncoded +
+ + +

The time stamp of the most recent sample given to the media sink. The sink writer updates this value whenever it calls on the media sink.

+
+ + dd375769 + longlong llLastTimestampProcessed + longlong llLastTimestampProcessed +
+ + +

The time stamp of the most recent stream tick. The sink writer updates this value whenever the application calls .

+
+ + dd375769 + longlong llLastStreamTickReceived + longlong llLastStreamTickReceived +
+ + +

The system time of the most recent sample request from the media sink. The sink writer updates this value whenever it receives an event from the media sink. The value is the current system time.

+
+ + dd375769 + longlong llLastSinkSampleRequest + longlong llLastSinkSampleRequest +
+ + +

The number of samples received.

+
+ + dd375769 + unsigned longlong qwNumSamplesReceived + unsigned longlong qwNumSamplesReceived +
+ + +

The number of samples encoded.

+
+ + dd375769 + unsigned longlong qwNumSamplesEncoded + unsigned longlong qwNumSamplesEncoded +
+ + +

The number of samples given to the media sink.

+
+ + dd375769 + unsigned longlong qwNumSamplesProcessed + unsigned longlong qwNumSamplesProcessed +
+ + +

The number of stream ticks received.

+
+ + dd375769 + unsigned longlong qwNumStreamTicksReceived + unsigned longlong qwNumStreamTicksReceived +
+ + +

The amount of data, in bytes, currently waiting to be processed.

+
+ + dd375769 + unsigned int dwByteCountQueued + unsigned int dwByteCountQueued +
+ + +

The total amount of data, in bytes, that has been sent to the media sink.

+
+ + dd375769 + unsigned longlong qwByteCountProcessed + unsigned longlong qwByteCountProcessed +
+ + +

The number of pending sample requests.

+
+ + dd375769 + unsigned int dwNumOutstandingSinkSampleRequests + unsigned int dwNumOutstandingSinkSampleRequests +
+ + +

The average rate, in media samples per 100-nanoseconds, at which the application sent samples to the sink writer.

+
+ + dd375769 + unsigned int dwAverageSampleRateReceived + unsigned int dwAverageSampleRateReceived +
+ + +

The average rate, in media samples per 100-nanoseconds, at which the sink writer sent samples to the encoder.

+
+ + dd375769 + unsigned int dwAverageSampleRateEncoded + unsigned int dwAverageSampleRateEncoded +
+ + +

The average rate, in media samples per 100-nanoseconds, at which the sink writer sent samples to the media sink.

+
+ + dd375769 + unsigned int dwAverageSampleRateProcessed + unsigned int dwAverageSampleRateProcessed +
+ + +

Not for application use.

+
+ +

This structure is used internally by the Microsoft Media Foundation AVStream proxy.

+
+ + dd940437 + STREAM_MEDIUM + STREAM_MEDIUM +
+ + +

Reserved.

+
+ + dd940437 + GUID gidMedium + GUID gidMedium +
+ + +

Reserved.

+
+ + dd940437 + unsigned int unMediumInstance + unsigned int unMediumInstance +
+ + +

Contains information about an input stream on a Media Foundation transform (MFT). To get these values, call .

+
+ +

Before the media types are set, the only values that should be considered valid are the and flags in the dwFlags member.

  • The flag indicates that the stream can be deleted.

  • The flag indicates that the stream is optional and does not require a media type.

After you set a media type on all of the input and output streams (not including optional streams), all of the values returned by the GetInputStreamInfo method are valid. They might change if you set different media types.

+
+ + ms704067 + MFT_INPUT_STREAM_INFO + MFT_INPUT_STREAM_INFO +
+ + + No documentation. + + + ms704067 + longlong hnsMaxLatency + longlong hnsMaxLatency + + + + No documentation. + + + ms704067 + unsigned int dwFlags + unsigned int dwFlags + + + + No documentation. + + + ms704067 + unsigned int cbSize + unsigned int cbSize + + + + No documentation. + + + ms704067 + unsigned int cbMaxLookahead + unsigned int cbMaxLookahead + + + + No documentation. + + + ms704067 + unsigned int cbAlignment + unsigned int cbAlignment + + + +

Specifies a new attribute value for a topology node.

+
+ +

Due to an error in the structure declaration, the u64 member is declared as a 32-bit integer, not a 64-bit integer. Therefore, any 64-bit value passed to the method is truncated to 32 bits.

+
+ + aa371336 + MFTOPONODE_ATTRIBUTE_UPDATE + MFTOPONODE_ATTRIBUTE_UPDATE +
+ + +

The identifier of the topology node to update. To get the identifier of a topology node, call .

+
+ + aa371336 + unsigned longlong NodeId + unsigned longlong NodeId +
+ + +

that specifies the attribute to update.

+
+ + aa371336 + GUID guidAttributeKey + GUID guidAttributeKey +
+ + +

Attribute type, specified as a member of the enumeration.

+
+ + aa371336 + MF_ATTRIBUTE_TYPE attrType + MF_ATTRIBUTE_TYPE attrType +
+ + +

Attribute value (unsigned 32-bit integer). This member is used when attrType equals .

+
+ + aa371336 + unsigned int u32 + unsigned int u32 +
+ + +

Attribute value (unsigned 32-bit integer). This member is used when attrType equals . See Remarks.

+
+ + aa371336 + unsigned longlong u64 + unsigned longlong u64 +
+ + +

Attribute value (floating point). This member is used when attrType equals .

+
+ + aa371336 + double d + double d +
+ + +

Contains information about an output buffer for a Media Foundation transform. This structure is used in the method.

+
+ +

You must provide an structure for each selected output stream.

MFTs can support two different allocation models for output samples:

  • The MFT allocates the output sample.
  • The client allocates the output sample.

To find which model the MFT supports for a given output stream, call and check the value of dwFlags.

FlagAllocation Model
The MFT allocates the output samples for the stream. Set pSample to null for this stream.
The MFT supports both allocation models.
Neither (default)The client must allocate the output samples for the stream.

?

The behavior of ProcessOutput depends on the initial value of pSample and the value of the dwFlags parameter in the ProcessOutput method.

  • If pSample is null and dwFlags contains the flag, the MFT discards the output data.

    Restriction: This output stream must have the or flag. (To get the flags for the output stream, call the method.)

  • If pSample is null and dwFlags does not contain the , the MFT provides a sample for the output data. The MFT sets pSample to point to the sample that it provides. The MFT can either allocate a new sample or re-use an input sample.

    Restriction: This output stream must have the or flag.

  • If pSample is non-null, the MFT uses the sample provided by the caller.

    Restriction: This output stream must not have the flag.

Any other combinations are invalid and cause ProcessOutput to return E_INVALIDARG.

Each call to ProcessOutput can produce zero or more events and up to one sample per output stream.

+
+ + ms697247 + MFT_OUTPUT_DATA_BUFFER + MFT_OUTPUT_DATA_BUFFER +
+ + + No documentation. + + + ms697247 + unsigned int dwStreamID + unsigned int dwStreamID + + + + No documentation. + + + ms697247 + IMFSample* pSample + IMFSample pSample + + + + No documentation. + + + ms697247 + unsigned int dwStatus + unsigned int dwStatus + + + + No documentation. + + + ms697247 + IMFCollection* pEvents + IMFCollection pEvents + + + +

Contains information about an output stream on a Media Foundation transform (MFT). To get these values, call .

+
+ +

Before the media types are set, the only values that should be considered valid is the flag in the dwFlags member. This flag indicates that the stream is optional and does not require a media type.

After you set a media type on all of the input and output streams (not including optional streams), all of the values returned by the GetOutputStreamInfo method are valid. They might change if you set different media types.

+
+ + ms696974 + MFT_OUTPUT_STREAM_INFO + MFT_OUTPUT_STREAM_INFO +
+ + + No documentation. + + + ms696974 + unsigned int dwFlags + unsigned int dwFlags + + + + No documentation. + + + ms696974 + unsigned int cbSize + unsigned int cbSize + + + + No documentation. + + + ms696974 + unsigned int cbAlignment + unsigned int cbAlignment + + + +

Contains information about the audio and video streams for the transcode sink activation object.

To get the information stored in this structure, call .

+
+ +

The method assigns references to the pAudioMediaType and pVideoMediaType members of this structure. The method might set either member to null. If either member is non-null after the method returns, the caller must release the references.

+
+ + dd388923 + MF_TRANSCODE_SINK_INFO + MF_TRANSCODE_SINK_INFO +
+ + + No documentation. + + + dd388923 + unsigned int dwVideoStreamID + unsigned int dwVideoStreamID + + + + No documentation. + + + dd388923 + IMFMediaType* pVideoMediaType + IMFMediaType pVideoMediaType + + + + No documentation. + + + dd388923 + unsigned int dwAudioStreamID + unsigned int dwAudioStreamID + + + + No documentation. + + + dd388923 + IMFMediaType* pAudioMediaType + IMFMediaType pAudioMediaType + + + +

Contains media type information for registering a Media Foundation transform (MFT).

+
+ + ms694919 + MFT_REGISTER_TYPE_INFO + MFT_REGISTER_TYPE_INFO +
+ + +

The major media type. For a list of possible values, see Major Media Types.

+
+ + ms694919 + GUID guidMajorType + GUID guidMajorType +
+ + +

The media subtype. For a list of possible values, see the following topics:

  • Audio Subtype GUIDs
  • Video Subtype GUIDs
+
+ + ms694919 + GUID guidSubtype + GUID guidSubtype +
+ + +

Contains parameters for the method.

+
+ + dd388673 + MFT_REGISTRATION_INFO + MFT_REGISTRATION_INFO +
+ + + No documentation. + + + dd388673 + GUID clsid + GUID clsid + + + + No documentation. + + + dd388673 + GUID guidCategory + GUID guidCategory + + + + No documentation. + + + dd388673 + unsigned int uiFlags + unsigned int uiFlags + + + + No documentation. + + + dd388673 + const wchar_t* pszName + wchar_t pszName + + + + No documentation. + + + dd388673 + unsigned int cInTypes + unsigned int cInTypes + + + + No documentation. + + + dd388673 + MFT_REGISTER_TYPE_INFO* pInTypes + MFT_REGISTER_TYPE_INFO pInTypes + + + + No documentation. + + + dd388673 + unsigned int cOutTypes + unsigned int cOutTypes + + + + No documentation. + + + dd388673 + MFT_REGISTER_TYPE_INFO* pOutTypes + MFT_REGISTER_TYPE_INFO pOutTypes + + + +

Specifies a bitmap for the enhanced video renderer (EVR) to alpha-blend with the video.

+
+ +

To specify a GDI bitmap, create a device context and call SelectObject to select the bitmap into the DC. Then set the hdc member of the structure equal to the handle to the DC and set the GetBitmapFromDC member to TRUE.

+
+ + ms697428 + MFVideoAlphaBitmap + MFVideoAlphaBitmap +
+ + +

If TRUE, the hdc member is used. Otherwise, the pDDs member is used.

+
+ + ms697428 + BOOL GetBitmapFromDC + BOOL GetBitmapFromDC +
+ + +

A union that contains the following members.

hdc

Handle to the device context (DC) of a GDI bitmap. If GetBitmapFromDC is , this member is ignored.

pDDs

Pointer to the interface of a Direct3D surface that contains the bitmap. If GetBitmapFromDC is TRUE, this member is ignored.

+
+ + ms697428 + MFVideoAlphaBitmap_INNER_0 bitmap + MFVideoAlphaBitmap_INNER_0 bitmap +
+ + +

structure that specifies the parameters for the alpha-blending operation.

+
+ + ms697428 + MFVideoAlphaBitmapParams params + MFVideoAlphaBitmapParams params +
+ + +

Specifies a bitmap for the enhanced video renderer (EVR) to alpha-blend with the video.

+
+ +

To specify a GDI bitmap, create a device context and call SelectObject to select the bitmap into the DC. Then set the hdc member of the structure equal to the handle to the DC and set the GetBitmapFromDC member to TRUE.

+
+ + ms697428 + MFVideoAlphaBitmap_INNER_0 + MFVideoAlphaBitmap_INNER_0 +
+ + +

If TRUE, the hdc member is used. Otherwise, the pDDs member is used.

+
+ + ms697428 + HDC hdc + HDC hdc +
+ + +

A union that contains the following members.

hdc

Handle to the device context (DC) of a GDI bitmap. If GetBitmapFromDC is , this member is ignored.

pDDs

Pointer to the interface of a Direct3D surface that contains the bitmap. If GetBitmapFromDC is TRUE, this member is ignored.

+
+ + ms697428 + IDirect3DSurface9* pDDS + IDirect3DSurface9 pDDS +
+ + +

Specifies how the enhanced video renderer (EVR) alpha-blends a bitmap with the video.

+
+ + ms696249 + MFVideoAlphaBitmapParams + MFVideoAlphaBitmapParams +
+ + +

Bitwise OR of one or more flags from the enumeration. These flags indicate which of the other structure members contain valid information.

+
+ + ms696249 + unsigned int dwFlags + unsigned int dwFlags +
+ + +

Source color key. This member is used if the dwFlags member contains the flag. Any pixels in the bitmap that match the color key are rendered as transparent pixels.

You cannot specify a color key if you are alpha-blending a Direct3D surface with per-pixel alpha ().

+
+ + ms696249 + COLORREF clrSrcKey + COLORREF clrSrcKey +
+ + +

Source rectangle. The source rectangle defines the region of the bitmap that is alpha-blended with the video. The source rectangle is given in pixels and is relative to the original bitmap.

If you are alpha-blending a GDI bitmap, you must fill in this structure when you call .

If you are alpha-blending a Direct3D surface and the dwFlags member contains the flag, the rcSrc member is ignored. If the flag is absent, you must fill in the rcSrc member.

After setting the initiali bitmap, you can update the source rectangle by calling . To update the source rectangle, set the flag in the dwFlags member.

The source rectangle cannot be an empty rectangle, and cannot exceed the bounds of the bitmap.

+
+ + ms696249 + RECT rcSrc + RECT rcSrc +
+ + +

Destination rectangle. The destination rectangle defines the region of the composited video image that receives the alpha-blended bitmap. The destination rectangle is specified as a normalized rectangle using the structure.

This member is used if the dwFlags member contains the flag. Otherwise, the default destination rectangle is {0, 0, 1, 1}.

+
+ + ms696249 + MFVideoNormalizedRect nrcDest + MFVideoNormalizedRect nrcDest +
+ + +

Alpha blending value. This member is used if the dwFlags member contains the flag. Otherwise, the default value is 1.0 (opaque). The valid range is 0.0 to 1.0, inclusive.

This value is applied to the entire bitmap image. To create transparent regions, use the clrSrcKey member or use a DirectDraw surface with per-pixel alpha.

+
+ + ms696249 + float fAlpha + float fAlpha +
+ + +

Direct3D filtering mode to use when performing the alpha-blend operation. Specify the filter mode as a value. For more information, see the Direct3D documentation.

This member is used if the dwFlags member contains the flag. Otherwise, the default value is .

Point filtering is particularly useful for images that contain text and will not be stretched.

+
+ + ms696249 + unsigned int dwFilterMode + unsigned int dwFilterMode +
+ + +

Specifies a rectangular area within a video frame.

+
+ + ms703850 + MFVideoArea + MFVideoArea +
+ + +

An structure that contains the x-coordinate of the upper-left corner of the rectangle. This coordinate might have a fractional value.

+
+ + ms703850 + MFOffset OffsetX + MFOffset OffsetX +
+ + +

An structure that contains the y-coordinate of the upper-left corner of the rectangle. This coordinate might have a fractional value.

+
+ + ms703850 + MFOffset OffsetY + MFOffset OffsetY +
+ + +

A structure that contains the width and height of the rectangle.

+
+ + ms703850 + SIZE Area + SIZE Area +
+ + +

Contains information about a video compression format. This structure is used in the structure.

+
+ +

For uncompressed video formats, set the structure members to zero.

+
+ + aa473839 + MFVideoCompressedInfo + MFVideoCompressedInfo +
+ + + No documentation. + + + aa473839 + longlong AvgBitrate + longlong AvgBitrate + + + + No documentation. + + + aa473839 + longlong AvgBitErrorRate + longlong AvgBitErrorRate + + + + No documentation. + + + aa473839 + unsigned int MaxKeyFrameSpacing + unsigned int MaxKeyFrameSpacing + + + +

Describes a video format.

+
+ +

Applications should avoid using this structure. Instead, it is recommended that applications use attributes to describe the video format. For a list of media type attributes, see Media Type Attributes. With attributes, you can set just the format information that you know, which is easier (and more likely to be accurate) than trying to fill in complete format information for the structure.

To initialize a media type object from an structure, call .

You can use the structure as the format block for a DirectShow media type. Set the format to FORMAT_MFVideoFormat.

+
+ + aa473808 + MFVIDEOFORMAT + MFVIDEOFORMAT +
+ + +

Size of the structure, in bytes. This value includes the size of the palette entries that may appear after the surfaceInfo member.

+
+ + aa473808 + unsigned int dwSize + unsigned int dwSize +
+ + +

structure. This structure contains information that applies to both compressed and uncompressed formats.

+
+ + aa473808 + MFVideoInfo videoInfo + MFVideoInfo videoInfo +
+ + +

Video subtype. See Video Subtype GUIDs.

+
+ + aa473808 + GUID guidFormat + GUID guidFormat +
+ + +

structure. This structure contains information that applies only to compressed formats.

+
+ + aa473808 + MFVideoCompressedInfo compressedInfo + MFVideoCompressedInfo compressedInfo +
+ + +

structure. This structure contains information that applies only to uncompressed formats.

+
+ + aa473808 + MFVideoSurfaceInfo surfaceInfo + MFVideoSurfaceInfo surfaceInfo +
+ + +

Contains video format information that applies to both compressed and uncompressed formats.

This structure is used in the structure.

+
+ +

Developers are encouraged to use media type attributes instead of using the structure. The following table lists the attributes that correspond to the members of this structure.

Structure MemberMedia Type Attribute
dwWidth, dwHeight
PixelAspectRatio
SourceChromaSubsampling
InterlaceMode
TransferFunction
ColorPrimaries
TransferMatrix
SourceLighting
FramesPerSecond
NominalRange
GeometricAperture
MinimumDisplayAperture
PanScanAperture
VideoFlagsSee .

?

+
+ + aa473804 + MFVideoInfo + MFVideoInfo +
+ + + No documentation. + + + aa473804 + unsigned int dwWidth + unsigned int dwWidth + + + + No documentation. + + + aa473804 + unsigned int dwHeight + unsigned int dwHeight + + + + No documentation. + + + aa473804 + MFRatio PixelAspectRatio + MFRatio PixelAspectRatio + + + + No documentation. + + + aa473804 + MFVideoChromaSubsampling SourceChromaSubsampling + MFVideoChromaSubsampling SourceChromaSubsampling + + + + No documentation. + + + aa473804 + MFVideoInterlaceMode InterlaceMode + MFVideoInterlaceMode InterlaceMode + + + + No documentation. + + + aa473804 + MFVideoTransferFunction TransferFunction + MFVideoTransferFunction TransferFunction + + + + No documentation. + + + aa473804 + MFVideoPrimaries ColorPrimaries + MFVideoPrimaries ColorPrimaries + + + + No documentation. + + + aa473804 + MFVideoTransferMatrix TransferMatrix + MFVideoTransferMatrix TransferMatrix + + + + No documentation. + + + aa473804 + MFVideoLighting SourceLighting + MFVideoLighting SourceLighting + + + + No documentation. + + + aa473804 + MFRatio FramesPerSecond + MFRatio FramesPerSecond + + + + No documentation. + + + aa473804 + MFNominalRange NominalRange + MFNominalRange NominalRange + + + + No documentation. + + + aa473804 + MFVideoArea GeometricAperture + MFVideoArea GeometricAperture + + + + No documentation. + + + aa473804 + MFVideoArea MinimumDisplayAperture + MFVideoArea MinimumDisplayAperture + + + + No documentation. + + + aa473804 + MFVideoArea PanScanAperture + MFVideoArea PanScanAperture + + + + No documentation. + + + aa473804 + unsigned longlong VideoFlags + unsigned longlong VideoFlags + + + +

Defines a normalized rectangle, which is used to specify sub-rectangles in a video rectangle. When a rectangle N is normalized relative to some other rectangle R, it means the following:

  • The coordinate (0.0, 0.0) on N is mapped to the upper-left corner of R.

  • The coordinate (1.0, 1.0) on N is mapped to the lower-right corner of R.

Any coordinates of N that fall outside the range [0...1] are mapped to positions outside the rectangle R. A normalized rectangle can be used to specify a region within a video rectangle without knowing the resolution or even the aspect ratio of the video. For example, the upper-left quadrant is defined as {0.0, 0.0, 0.5, 0.5}.

+
+ + ms703049 + MFVideoNormalizedRect + MFVideoNormalizedRect +
+ + +

X-coordinate of the upper-left corner of the rectangle.

+
+ + ms703049 + float left + float left +
+ + +

Y-coordinate of the upper-left corner of the rectangle.

+
+ + ms703049 + float top + float top +
+ + +

X-coordinate of the lower-right corner of the rectangle.

+
+ + ms703049 + float right + float right +
+ + +

Y-coordinate of the lower-right corner of the rectangle.

+
+ + ms703049 + float bottom + float bottom +
+ + +

Contains information about an uncompressed video format. This structure is used in the structure.

+
+ + aa473817 + MFVideoSurfaceInfo + MFVideoSurfaceInfo +
+ + + No documentation. + + + aa473817 + unsigned int Format + unsigned int Format + + + + No documentation. + + + aa473817 + unsigned int PaletteEntries + unsigned int PaletteEntries + + + + No documentation. + + + aa473817 + MFPaletteEntry Palette[1] + MFPaletteEntry Palette + + + + Associate an attribute key with a type used to retrieve keys from a instance. + + + + + Initializes a new instance of the struct. + + The attribute GUID. + The attribute type. + + + + Initializes a new instance of the struct. + + The attribute GUID. + The attribute type. + The attribute name, useful for debugging. + + + + Gets the attribute GUID. + + + The attribute GUID. + + + + + Gets the attribute type. + + + The attribute type. + + + + + Gets the attribute name. + + + + + Generic version of . + + Type of the value of this key. + + + + Initializes a new instance of the class. + + The attribute GUID. + + + + Initializes a new instance of the class. + + The GUID. + The attribute name, useful for debugging. + + + + Initializes a new instance of the class. + + The GUID. + + + + Initializes a new instance of the class. + + The GUID. + /// The attribute name, useful for debugging. + + + +

Applies to: desktop apps | Metro style apps

Initializes Microsoft Media Foundation.

+
+ If true, do not initialize the sockets library, else full initialization. Default is false + ms702238 + HRESULT MFStartup([In] unsigned int Version,[In] unsigned int dwFlags) + MFStartup + +

An application must call this function before using Media Foundation. Before your application quits, call once for every previous call to .

Do not call or from work queue threads. For more information about work queues, see Work Queues.

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

    +
  • Windows?XP with Service Pack?2 (SP2) and later.
  • +
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
  • +
+
+
+ + +

Applies to: desktop apps | Metro style apps

Shuts down the Microsoft Media Foundation platform. Call this function once for every call to . Do not call this function from work queue threads.

+
+

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

This function is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows?XP with Service Pack?2 (SP2) and later.
  • Windows?XP Media Center Edition?2005 with KB900325 (Windows?XP Media Center Edition?2005) and KB925766 (October 2006 Update Rollup for Windows?XP Media Center Edition) installed.
+
+ ms694273 + HRESULT MFShutdown() + MFShutdown +
+ + + Specialized callback for . This callback automatically starts the callback on the session, + handles on invoke, dispatch the asynchronous event to an external action to + be implemented by the client and stops the callback when the event is received. + + + + + Initializes a new instance of the class. + + The session. + The event callback. The object must be disposed by the callback when finished with it. + session or eventCallback + + + + The namespace provides a managed MediaFoundation API. + + + MediaFoundation + MediaFoundation + + + + The namespace provides a managed MediaFoundation for OPM API. + + + MediaFoundation + MediaFoundation + + + + Resource characteristics returned by . + + hh447939 + HRESULT IMFMediaEngineEx::GetResourceCharacteristics([Out] unsigned int* pCharacteristics) + IMFMediaEngineEx::GetResourceCharacteristics + + + + None flag. + + + + + The media resource represents a live data source, such as a video camera. If playback is stopped and then restarted, there will be a gap in the content. + + + + + The media resource supports seeking. To get the seekable range, call IMFMediaEngine::GetSeekable. + + + + + The media resource can be paused. + + + + + Seeking this resource can take a long time. For example, it might download through HTTP. + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IMFVideoPresenter::ProcessMessage([In] MFVP_MESSAGE_TYPE eMessage,[In] ULONG_PTR ulParam) + + + HRESULT GetCurrentMediaType([out] IMFVideoMediaType **ppMediaType) + + + + A Work Queue Identifier + + ms703102 + Work Queue Identifiers + Work Queue Identifiers + + + + The default queue associated to the . + + + + + The identifier. + + + + + Initializes a new instance of the struct. + + The id. + + + + Initializes a new instance of the struct. + + The id. + + + + Performs an implicit conversion from to . + + The id. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The type. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The work queue Id. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The work queue Id. + The result of the conversion. + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.RawInput.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.RawInput.dll new file mode 100644 index 0000000..f22afac Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.RawInput.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.RawInput.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.RawInput.xml new file mode 100644 index 0000000..e133a1a --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.RawInput.xml @@ -0,0 +1,1767 @@ + + + + SharpDX.RawInput + + + + + The assembly provides managed RawInput API. + + ms645536 + RawInput + RawInput + + + + Provides access to RawInput methods. + + + + + Gets the devices. + + + + + + Registers the devices that supply the raw input data. + + The usage page. + The usage id. + The flags. + + + + Registers the devices that supply the raw input data. + + The usage page. + The usage id. + The flags. + The target. + The options. + + + + Handles a RawInput message manually. + + A pointer to a RawInput message. + + This method can be used directly when handling RawInput messages from non-WinForms application. + + + + + Occurs when [keyboard input]. + + + + + Occurs when [mouse input]. + + + + + Occurs when [raw input]. + + + + + Internal RawInput message filtering + + + + + WM_INPUT + + + + + Defines the raw input data coming from any device. + + RID_DEVICE_INFO + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw device info. + Name of the device. + The device handle. + + + + Converts the specified raw device info to the . + + The raw device info. + Name of the device. + The device handle. + + + + + Gets or sets the name of the device. + + + The name of the device. + + + + + Gets or sets the type of the device. + + + The type of the device. + + + + + Gets or sets the handle. + + + The handle. + + + + +

There are many user-input devices beside the traditional keyboard and mouse. For example, user input can come from a joystick, a touch screen, a microphone, or other devices that allow great flexibility in user input. These devices are collectively known as Human Interface Devices (HIDs). The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.

This section covers the following topics:

  • Raw
  • Registration
  • Reading
+
+ + ms645543 + RAW_DEVICE_FLAGS + RAW_DEVICE_FLAGS +
+ + + No documentation. + + + ms645543 + RIDEV_REMOVE + RIDEV_REMOVE + + + + No documentation. + + + ms645543 + RIDEV_EXCLUDE + RIDEV_EXCLUDE + + + + No documentation. + + + ms645543 + RIDEV_PAGEONLY + RIDEV_PAGEONLY + + + + No documentation. + + + ms645543 + RIDEV_NOLEGACY + RIDEV_NOLEGACY + + + + No documentation. + + + ms645543 + RIDEV_INPUTSINK + RIDEV_INPUTSINK + + + + No documentation. + + + ms645543 + RIDEV_CAPTUREMOUSE + RIDEV_CAPTUREMOUSE + + + + No documentation. + + + ms645543 + RIDEV_NOHOTKEYS + RIDEV_NOHOTKEYS + + + + No documentation. + + + ms645543 + RIDEV_APPKEYS + RIDEV_APPKEYS + + + + No documentation. + + + ms645543 + RIDEV_EXINPUTSINK + RIDEV_EXINPUTSINK + + + + No documentation. + + + ms645543 + RIDEV_DEVNOTIFY + RIDEV_DEVNOTIFY + + + + None. + + + None + None + + + +

There are many user-input devices beside the traditional keyboard and mouse. For example, user input can come from a joystick, a touch screen, a microphone, or other devices that allow great flexibility in user input. These devices are collectively known as Human Interface Devices (HIDs). The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.

This section covers the following topics:

  • Raw
  • Registration
  • Reading
+
+ + ms645543 + RAW_DEVICE_TYPE + RAW_DEVICE_TYPE +
+ + + No documentation. + + + ms645543 + RIM_TYPEMOUSE + RIM_TYPEMOUSE + + + + No documentation. + + + ms645543 + RIM_TYPEKEYBOARD + RIM_TYPEKEYBOARD + + + + No documentation. + + + ms645543 + RIM_TYPEHID + RIM_TYPEHID + + + + No documentation. + + + RAW_KEY_STATE + RAW_KEY_STATE + + + + No documentation. + + + WM_VKEYTOITEM + WM_VKEYTOITEM + + + + No documentation. + + + WM_SETHOTKEY + WM_SETHOTKEY + + + + No documentation. + + + WM_GETHOTKEY + WM_GETHOTKEY + + + + No documentation. + + + WM_KEYFIRST + WM_KEYFIRST + + + + No documentation. + + + WM_KEYDOWN + WM_KEYDOWN + + + + No documentation. + + + WM_KEYUP + WM_KEYUP + + + + No documentation. + + + WM_SYSKEYDOWN + WM_SYSKEYDOWN + + + + No documentation. + + + WM_SYSKEYUP + WM_SYSKEYUP + + + + No documentation. + + + WM_KEYLAST + WM_KEYLAST + + + + No documentation. + + + WM_IME_KEYLAST + WM_IME_KEYLAST + + + + No documentation. + + + WM_IME_KEYDOWN + WM_IME_KEYDOWN + + + + No documentation. + + + WM_IME_KEYUP + WM_IME_KEYUP + + + + No documentation. + + + WM_HOTKEY + WM_HOTKEY + + + +

There are many user-input devices beside the traditional keyboard and mouse. For example, user input can come from a joystick, a touch screen, a microphone, or other devices that allow great flexibility in user input. These devices are collectively known as Human Interface Devices (HIDs). The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.

This section covers the following topics:

  • Raw
  • Registration
  • Reading
+
+ + ms645543 + RAW_MOUSE_BUTTON_FLAGS + RAW_MOUSE_BUTTON_FLAGS +
+ + + No documentation. + + + ms645543 + RI_MOUSE_LEFT_BUTTON_DOWN + RI_MOUSE_LEFT_BUTTON_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_LEFT_BUTTON_UP + RI_MOUSE_LEFT_BUTTON_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_RIGHT_BUTTON_DOWN + RI_MOUSE_RIGHT_BUTTON_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_RIGHT_BUTTON_UP + RI_MOUSE_RIGHT_BUTTON_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_MIDDLE_BUTTON_DOWN + RI_MOUSE_MIDDLE_BUTTON_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_MIDDLE_BUTTON_UP + RI_MOUSE_MIDDLE_BUTTON_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_1_DOWN + RI_MOUSE_BUTTON_1_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_1_UP + RI_MOUSE_BUTTON_1_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_2_DOWN + RI_MOUSE_BUTTON_2_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_2_UP + RI_MOUSE_BUTTON_2_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_3_DOWN + RI_MOUSE_BUTTON_3_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_3_UP + RI_MOUSE_BUTTON_3_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_4_DOWN + RI_MOUSE_BUTTON_4_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_4_UP + RI_MOUSE_BUTTON_4_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_5_DOWN + RI_MOUSE_BUTTON_5_DOWN + + + + No documentation. + + + ms645543 + RI_MOUSE_BUTTON_5_UP + RI_MOUSE_BUTTON_5_UP + + + + No documentation. + + + ms645543 + RI_MOUSE_WHEEL + RI_MOUSE_WHEEL + + + + None. + + + None + None + + + +

There are many user-input devices beside the traditional keyboard and mouse. For example, user input can come from a joystick, a touch screen, a microphone, or other devices that allow great flexibility in user input. These devices are collectively known as Human Interface Devices (HIDs). The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.

This section covers the following topics:

  • Raw
  • Registration
  • Reading
+
+ + ms645543 + RAW_MOUSE_MODE + RAW_MOUSE_MODE +
+ + + No documentation. + + + ms645543 + MOUSE_MOVE_RELATIVE + MOUSE_MOVE_RELATIVE + + + + No documentation. + + + ms645543 + MOUSE_MOVE_ABSOLUTE + MOUSE_MOVE_ABSOLUTE + + + + No documentation. + + + ms645543 + MOUSE_VIRTUAL_DESKTOP + MOUSE_VIRTUAL_DESKTOP + + + + No documentation. + + + ms645543 + MOUSE_ATTRIBUTES_CHANGED + MOUSE_ATTRIBUTES_CHANGED + + + + No documentation. + + + ms645543 + MOUSE_MOVE_NOCOALESCE + MOUSE_MOVE_NOCOALESCE + + + + No documentation. + + + ff561902 + RAW_INPUT_DATA_TYPE + RAW_INPUT_DATA_TYPE + + + + No documentation. + + + ff561902 + RID_INPUT + RID_INPUT + + + + No documentation. + + + ff561902 + RID_HEADER + RID_HEADER + + + +

There are many user-input devices beside the traditional keyboard and mouse. For example, user input can come from a joystick, a touch screen, a microphone, or other devices that allow great flexibility in user input. These devices are collectively known as Human Interface Devices (HIDs). The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.

This section covers the following topics:

  • Raw
  • Registration
  • Reading
+
+ + ms645543 + RAW_INPUT_DEVICE_INFO_TYPE + RAW_INPUT_DEVICE_INFO_TYPE +
+ + + No documentation. + + + ms645543 + RIDI_PREPARSEDDATA + RIDI_PREPARSEDDATA + + + + No documentation. + + + ms645543 + RIDI_DEVICENAME + RIDI_DEVICENAME + + + + No documentation. + + + ms645543 + RIDI_DEVICEINFO + RIDI_DEVICEINFO + + + + No documentation. + + + RAW_SCAN_CODE_FLAGS + RAW_SCAN_CODE_FLAGS + + + + No documentation. + + + RI_KEY_MAKE + RI_KEY_MAKE + + + + No documentation. + + + RI_KEY_BREAK + RI_KEY_BREAK + + + + No documentation. + + + RI_KEY_E0 + RI_KEY_E0 + + + + No documentation. + + + RI_KEY_E1 + RI_KEY_E1 + + + + Functions + + + + + +

Enumerates the raw input devices attached to the system.

+
+

An array of structures for the devices attached to the system. If null, the number of devices are returned in *puiNumDevices.

+

If pRawInputDeviceList is null, the function populates this variable with the number of devices attached to the system; otherwise, this variable specifies the number of structures that can be contained in the buffer to which pRawInputDeviceList points. If this value is less than the number of devices attached to the system, the function returns the actual number of devices in this variable and fails with .

+

The size of a structure, in bytes.

+

If the function is successful, the return value is the number of devices stored in the buffer pointed to by pRawInputDeviceList.

On any other error, the function returns (UINT) -1 and GetLastError returns the error indication.

+ +

The devices returned from this function are the mouse, the keyboard, and other Human Interface Device (HID) devices.

To get more detailed information about the attached devices, call GetRawInputDeviceInfo using the hDevice from .

+
+ + ms645598 + unsigned int GetRawInputDeviceList([Out, Buffer, Optional] RAWINPUTDEVICELIST* pRawInputDeviceList,[InOut] unsigned int* puiNumDevices,[In] unsigned int cbSize) + GetRawInputDeviceList +
+ + +

Retrieves the information about the raw input devices for the current application.

+
+

An array of structures for the application.

+

The number of structures in *pRawInputDevices.

+

The size, in bytes, of a structure.

+

If successful, the function returns a non-negative number that is the number of structures written to the buffer.

If the pRawInputDevices buffer is too small or null, the function sets the last error as , returns -1, and sets puiNumDevices to the required number of devices. If the function fails for any other reason, it returns -1. For more details, call GetLastError.

+ +

To receive raw input from a device, an application must register it by using RegisterRawInputDevices.

+
+ + ms645599 + unsigned int GetRegisteredRawInputDevices([Out, Buffer, Optional] RAWINPUTDEVICE* pRawInputDevices,[InOut] unsigned int* puiNumDevices,[In] unsigned int cbSize) + GetRegisteredRawInputDevices +
+ + +

Retrieves information about the raw input device.

+
+

A handle to the raw input device. This comes from the lParam of the WM_INPUT message, from the hDevice member of , or from GetRawInputDeviceList. It can also be null if an application inserts input data, for example, by using SendInput.

+

Specifies what data will be returned in pData. This parameter can be one of the following values.

ValueMeaning
0x20000007

pData points to a string that contains the device name.

For this uiCommand only, the value in pcbSize is the character count (not the byte count).

0x2000000b

pData points to an structure.

0x20000005

pData points to the previously parsed data.

?

+

A reference to a buffer that contains the information specified by uiCommand. If uiCommand is , set the cbSize member of to sizeof() before calling GetRawInputDeviceInfo.

+

The size, in bytes, of the data in pData.

+

If successful, this function returns a non-negative number indicating the number of bytes copied to pData.

If pData is not large enough for the data, the function returns -1. If pData is null, the function returns a value of zero. In both of these cases, pcbSize is set to the minimum size required for the pData buffer.

Call GetLastError to identify any other errors.

+ + ms645597 + unsigned int GetRawInputDeviceInfoW([In, Optional] void* hDevice,[In] RAW_INPUT_DEVICE_INFO_TYPE uiCommand,[Out, Buffer, Optional] void* pData,[InOut] unsigned int* pcbSize) + GetRawInputDeviceInfoW +
+ + +

Registers the devices that supply the raw input data.

+
+

An array of structures that represent the devices that supply the raw input.

+

The number of structures pointed to by pRawInputDevices.

+

The size, in bytes, of a structure.

+

TRUE if the function succeeds; otherwise, . If the function fails, call GetLastError for more information.

+ +

To receive WM_INPUT messages, an application must first register the raw input devices using RegisterRawInputDevices. By default, an application does not receive raw input.

To receive WM_INPUT_DEVICE_CHANGE messages, an application must specify the flag for each device class that is specified by the usUsagePage and usUsage fields of the structure . By default, an application does not receive WM_INPUT_DEVICE_CHANGE notifications for raw input device arrival and removal.

If a structure has the flag set and the hwndTarget parameter is not set to null, then parameter validation will fail.

+
+ + ms645600 + BOOL RegisterRawInputDevices([In, Buffer] const RAWINPUTDEVICE* pRawInputDevices,[In] unsigned int uiNumDevices,[In] unsigned int cbSize) + RegisterRawInputDevices +
+ + +

Performs a buffered read of the raw input data.

+
+

A reference to a buffer of structures that contain the raw input data. If null, the minimum required buffer, in bytes, is returned in *pcbSize.

+

The size, in bytes, of a structure.

+

The size, in bytes, of the structure.

+

If pData is null and the function is successful, the return value is zero. If pData is not null and the function is successful, the return value is the number of structures written to pData.

If an error occurs, the return value is (UINT)-1. Call GetLastError for the error code.

+ +

Using GetRawInputBuffer, the raw input data is buffered in the array of structures. For an unbuffered read, use the GetMessage function to read in the raw input data.

The NEXTRAWINPUTBLOCK macro allows an application to traverse an array of structures.

Note??To get the correct size of the raw input buffer, do not use *pcbSize, use *pcbSize * 8 instead. To ensure GetRawInputBuffer behaves properly on WOW64, you must align the structure by 8 bytes. The following code shows how to align for WOW64.

[StructLayout(LayoutKind.Explicit)]	
+            internal struct 	
+            { [FieldOffset(0)] public  header; [FieldOffset(16+8)] public  mouse; [FieldOffset(16+8)] public  keyboard; [FieldOffset(16+8)] public  hid;	
+            }	
+            
+
+ + ms645595 + unsigned int GetRawInputBuffer([Out, Buffer, Optional] RAWINPUT* pData,[InOut] unsigned int* pcbSize,[In] unsigned int cbSizeHeader) + GetRawInputBuffer +
+ + +

Retrieves the raw input from the specified device.

+
+

A handle to the structure. This comes from the lParam in WM_INPUT.

+

The command flag. This parameter can be one of the following values.

ValueMeaning
0x10000005

Get the header information from the structure.

0x10000003

Get the raw data from the structure.

?

+

A reference to the data that comes from the structure. This depends on the value of uiCommand. If pData is null, the required size of the buffer is returned in *pcbSize.

+

The size, in bytes, of the data in pData.

+

The size, in bytes, of the structure.

+

If pData is null and the function is successful, the return value is 0. If pData is not null and the function is successful, the return value is the number of bytes copied into pData.

If there is an error, the return value is (UINT)-1.

+ +

GetRawInputData gets the raw input one structure at a time. In contrast, GetRawInputBuffer gets an array of structures.

+
+ + ms645596 + unsigned int GetRawInputData([In] HRAWINPUT hRawInput,[In] RAW_INPUT_DATA_TYPE uiCommand,[Out, Buffer, Optional] void* pData,[InOut] unsigned int* pcbSize,[In] unsigned int cbSizeHeader) + GetRawInputData +
+ + +

Defines the raw input data coming from any device.

+
+ + ms645581 + RID_DEVICE_INFO + RID_DEVICE_INFO +
+ + +

The size, in bytes, of the structure.

+
+ + ms645581 + unsigned int cbSize + unsigned int cbSize +
+ + +

The type of raw input data. This member can be one of the following values.

ValueMeaning
2

Data comes from an HID that is not a keyboard or a mouse.

1

Data comes from a keyboard.

0

Data comes from a mouse.

?

+
+ + ms645581 + RAW_DEVICE_TYPE dwType + RAW_DEVICE_TYPE dwType +
+ + +

If dwType is , this is the structure that defines the mouse.

+
+ + ms645581 + RID_DEVICE_INFO_MOUSE mouse + RID_DEVICE_INFO_MOUSE mouse +
+ + +

If dwType is , this is the structure that defines the keyboard.

+
+ + ms645581 + RID_DEVICE_INFO_KEYBOARD keyboard + RID_DEVICE_INFO_KEYBOARD keyboard +
+ + +

If dwType is , this is the structure that defines the HID device.

+
+ + ms645581 + RID_DEVICE_INFO_HID hid + RID_DEVICE_INFO_HID hid +
+ + +

Defines the raw input data coming from the specified Human Interface Device (HID).

+
+ + ms645584 + RID_DEVICE_INFO_HID + RID_DEVICE_INFO_HID +
+ + +

The vendor identifier for the HID.

+
+ + ms645584 + unsigned int dwVendorId + unsigned int dwVendorId +
+ + +

The product identifier for the HID.

+
+ + ms645584 + unsigned int dwProductId + unsigned int dwProductId +
+ + +

The version number for the HID.

+
+ + ms645584 + unsigned int dwVersionNumber + unsigned int dwVersionNumber +
+ + +

The top-level collection Usage Page for the device.

+
+ + ms645584 + HID_USAGE_PAGE usUsagePage + HID_USAGE_PAGE usUsagePage +
+ + +

The top-level collection Usage for the device.

+
+ + ms645584 + HID_USAGE_ID usUsage + HID_USAGE_ID usUsage +
+ + +

Defines the raw input data coming from the specified keyboard.

+
+ +

For the keyboard, the Usage Page is 1 and the Usage is 6.

+
+ + ms645587 + RID_DEVICE_INFO_KEYBOARD + RID_DEVICE_INFO_KEYBOARD +
+ + +

The type of the keyboard.

+
+ + ms645587 + unsigned int dwType + unsigned int dwType +
+ + +

The subtype of the keyboard.

+
+ + ms645587 + unsigned int dwSubType + unsigned int dwSubType +
+ + +

The scan code mode.

+
+ + ms645587 + unsigned int dwKeyboardMode + unsigned int dwKeyboardMode +
+ + +

The number of function keys on the keyboard.

+
+ + ms645587 + unsigned int dwNumberOfFunctionKeys + unsigned int dwNumberOfFunctionKeys +
+ + +

The number of LED indicators on the keyboard.

+
+ + ms645587 + unsigned int dwNumberOfIndicators + unsigned int dwNumberOfIndicators +
+ + +

The total number of keys on the keyboard.

+
+ + ms645587 + unsigned int dwNumberOfKeysTotal + unsigned int dwNumberOfKeysTotal +
+ + +

Defines the raw input data coming from the specified mouse.

+
+ +

For the mouse, the Usage Page is 1 and the Usage is 2.

+
+ + ms645589 + RID_DEVICE_INFO_MOUSE + RID_DEVICE_INFO_MOUSE +
+ + +

The identifier of the mouse device.

+
+ + ms645589 + unsigned int dwId + unsigned int dwId +
+ + +

The number of buttons for the mouse.

+
+ + ms645589 + unsigned int dwNumberOfButtons + unsigned int dwNumberOfButtons +
+ + +

The number of data points per second. This information may not be applicable for every mouse device.

+
+ + ms645589 + unsigned int dwSampleRate + unsigned int dwSampleRate +
+ + +

TRUE if the mouse has a wheel for horizontal scrolling; otherwise, .

Windows?XP:??This member is only supported starting with Windows?Vista.

+
+ + ms645589 + BOOL fHasHorizontalWheel + BOOL fHasHorizontalWheel +
+ + +

Describes the format of the raw input from a Human Interface Device (HID).

+
+ +

Each WM_INPUT can indicate several inputs, but all of the inputs come from the same HID. The size of the bRawData array is dwSizeHid * dwCount.

+
+ + ms645549 + RAWHID + RAWHID +
+ + +

The size, in bytes, of each HID input in bRawData.

+
+ + ms645549 + unsigned int dwSizeHid + unsigned int dwSizeHid +
+ + +

The number of HID inputs in bRawData.

+
+ + ms645549 + unsigned int dwCount + unsigned int dwCount +
+ + +

The raw input data, as an array of bytes.

+
+ + ms645549 + int bRawData + int bRawData +
+ + +

This section describes how the system provides raw input to your application and how an application receives and processes that input. Raw input is sometimes referred to as generic input.

+
+ + ms645536 + RAWINPUT + RAWINPUT +
+ + + No documentation. + + + ms645536 + RAWINPUTHEADER header + RAWINPUTHEADER header + + + + No documentation. + + + ms645536 + RAWINPUT_INNER_0 data + RAWINPUT_INNER_0 data + + + +

Defines information for the raw input devices.

+
+ +

If is set for a mouse or a keyboard, the system does not generate any legacy message for that device for the application. For example, if the mouse TLC is set with , WM_LBUTTONDOWN and related legacy mouse messages are not generated. Likewise, if the keyboard TLC is set with , and related legacy keyboard messages are not generated.

If is set and the hwndTarget member is not set to null, then parameter validation will fail.

+
+ + ms645565 + RAWINPUTDEVICE + RAWINPUTDEVICE +
+ + +

Top level collection Usage page for the raw input device.

+
+ + ms645565 + unsigned short usUsagePage + unsigned short usUsagePage +
+ + +

Top level collection Usage for the raw input device.

+
+ + ms645565 + unsigned short usUsage + unsigned short usUsage +
+ + +

Mode flag that specifies how to interpret the information provided by usUsagePage and usUsage. It can be zero (the default) or one of the following values. By default, the operating system sends raw input from devices with the specified top level collection (TLC) to the registered application as long as it has the window focus.

ValueMeaning
0x00000400

If set, the application command keys are handled. can be specified only if is specified for a keyboard device.

0x00000200

If set, the mouse button click does not activate the other window.

0x00002000

If set, this enables the caller to receive WM_INPUT_DEVICE_CHANGE notifications for device arrival and device removal.

Windows?XP:??This flag is not supported until Windows?Vista

0x00000010

If set, this specifies the top level collections to exclude when reading a complete usage page. This flag only affects a TLC whose usage page is already specified with .

0x00001000

If set, this enables the caller to receive input in the background only if the foreground application does not process it. In other words, if the foreground application is not registered for raw input, then the background application that is registered will receive the input.

Windows?XP:??This flag is not supported until Windows?Vista

0x00000100

If set, this enables the caller to receive the input even when the caller is not in the foreground. Note that hwndTarget must be specified.

0x00000200

If set, the application-defined keyboard device hotkeys are not handled. However, the system hotkeys; for example, ALT+TAB and CTRL+ALT+DEL, are still handled. By default, all keyboard hotkeys are handled. can be specified even if is not specified and hwndTarget is null.

0x00000030

If set, this prevents any devices specified by usUsagePage or usUsage from generating legacy messages. This is only for the mouse and keyboard. See Remarks.

0x00000020

If set, this specifies all devices whose top level collection is from the specified usUsagePage. Note that usUsage must be zero. To exclude a particular top level collection, use .

0x00000001

If set, this removes the top level collection from the inclusion list. This tells the operating system to stop reading from a device which matches the top level collection.

?

+
+ + ms645565 + unsigned int dwFlags + unsigned int dwFlags +
+ + +

A handle to the target window. If null it follows the keyboard focus.

+
+ + ms645565 + HWND hwndTarget + HWND hwndTarget +
+ + +

Contains information about a raw input device.

+
+ + ms645568 + RAWINPUTDEVICELIST + RAWINPUTDEVICELIST +
+ + +

A handle to the raw input device.

+
+ + ms645568 + void* hDevice + void hDevice +
+ + +

The type of device. This can be one of the following values.

ValueMeaning
2

The device is an HID that is not a keyboard and not a mouse.

1

The device is a keyboard.

0

The device is a mouse.

?

+
+ + ms645568 + unsigned int dwType + unsigned int dwType +
+ + +

Contains the header information that is part of the raw input data.

+
+ +

To get more information on the device, use hDevice in a call to GetRawInputDeviceInfo.

+
+ + ms645571 + RAWINPUTHEADER + RAWINPUTHEADER +
+ + +

The type of raw input. It can be one of the following values.

ValueMeaning
2

Raw input comes from some device that is not a keyboard or a mouse.

1

Raw input comes from the keyboard.

0

Raw input comes from the mouse.

?

+
+ + ms645571 + RAW_DEVICE_TYPE dwType + RAW_DEVICE_TYPE dwType +
+ + +

The size, in bytes, of the entire input packet of data. This includes plus possible extra input reports in the variable length array.

+
+ + ms645571 + unsigned int dwSize + unsigned int dwSize +
+ + +

A handle to the device generating the raw input data.

+
+ + ms645571 + void* hDevice + void hDevice +
+ + +

The value passed in the wParam parameter of the WM_INPUT message.

+
+ + ms645571 + UINT_PTR wParam + UINT_PTR wParam +
+ + + No documentation. + + + RAWINPUT_INNER_0 + RAWINPUT_INNER_0 + + + + No documentation. + + + RAWMOUSE mouse + RAWMOUSE mouse + + + + No documentation. + + + RAWKEYBOARD keyboard + RAWKEYBOARD keyboard + + + + No documentation. + + + RAWHID hid + RAWHID hid + + + +

Contains information about the state of the keyboard.

+
+ + ms645575 + RAWKEYBOARD + RAWKEYBOARD +
+ + +

The scan code from the key depression. The scan code for keyboard overrun is KEYBOARD_OVERRUN_MAKE_CODE.

+
+ + ms645575 + unsigned short MakeCode + unsigned short MakeCode +
+ + +

Flags for scan code information. It can be one or more of the following.

ValueMeaning
1

The key is up.

2

This is the left version of the key.

4

This is the right version of the key.

0

The key is down.

?

+
+ + ms645575 + RAW_SCAN_CODE_FLAGS Flags + RAW_SCAN_CODE_FLAGS Flags +
+ + +

Reserved; must be zero.

+
+ + ms645575 + unsigned short Reserved + unsigned short Reserved +
+ + +

Windows message compatible virtual-key code. For more information, see Virtual Key Codes.

+
+ + ms645575 + unsigned short VKey + unsigned short VKey +
+ + +

The corresponding window message, for example , , and so forth.

+
+ + ms645575 + RAW_KEY_STATE Message + RAW_KEY_STATE Message +
+ + +

The device-specific additional information for the event.

+
+ + ms645575 + unsigned int ExtraInformation + unsigned int ExtraInformation +
+ + + Defines the raw input data coming from the specified Human Interface Device (HID). + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw device info. + Name of the device. + The device handle. + + + + Gets or sets the vendor id. + + + The vendor id. + + unsigned int dwVendorId + + + + Gets or sets the product id. + + + The product id. + + unsigned int dwProductId + + + + Gets or sets the version number. + + + The version number. + + unsigned int dwVersionNumber + + + + Gets or sets the usage page. + + + The usage page. + + HID_USAGE_PAGE usUsagePage + + + + Gets or sets the usage. + + + The usage. + + HID_USAGE_ID usUsage + + + + Describes the format of the raw input from a Human Interface Device (HID). + + + + + RawInput event arguments base. + + + + + Gets or sets the RawInput device. + + + The device. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw input. + + + + Gets or sets the number of Hid structure in the . + + + The count. + + + + + Gets or sets the size of the Hid structure in the . + + + The size of the data. + + + + + Gets or sets the raw data. + + + The raw data. + + + + + Defines the raw input data coming from the specified keyboard. + + RID_DEVICE_INFO_KEYBOARD + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw device info. + Name of the device. + The device handle. + + + + Gets or sets the type of the keyboard. + + + The type of the keyboard. + + unsigned int dwType + + + + Gets or sets the subtype. + + + The subtype. + + unsigned int dwSubType + + + + Gets or sets the keyboard mode. + + + The keyboard mode. + + unsigned int dwKeyboardMode + + + + Gets or sets the function key count. + + + The function key count. + + unsigned int dwNumberOfFunctionKeys + + + + Gets or sets the indicator count. + + + The indicator count. + + unsigned int dwNumberOfIndicators + + + + Gets or sets the total key count. + + + The total key count. + + unsigned int dwNumberOfKeysTotal + + + + RawInput Keyboard event. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw input. + + + + Gets or sets the key. + + + The key. + + + + + Gets or sets the make code. + + + The make code. + + + + + Gets or sets the scan code flags. + + + The scan code flags. + + + + + Gets or sets the state. + + + The state. + + + + + Gets or sets the extra information. + + + The extra information. + + + + + Defines the raw input data coming from the specified mouse. + + RID_DEVICE_INFO_MOUSE + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw device info. + Name of the device. + The device handle. + + + + Gets or sets the id. + + + The id. + + unsigned int dwId + + + + Gets or sets the button count. + + + The button count. + + unsigned int dwNumberOfButtons + + + + Gets or sets the sample rate. + + + The sample rate. + + unsigned int dwSampleRate + + + + Gets or sets a value indicating whether this instance has horizontal wheel. + + + true if this instance has horizontal wheel; otherwise, false. + + BOOL fHasHorizontalWheel + + + + RawInput Mouse event. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The raw input. + + + + Gets or sets the mode. + + + The mode. + + + + + Gets or sets the button flags. + + + The button flags. + + + + + Gets or sets the extra information. + + + The extra information. + + + + + Gets or sets the raw buttons. + + + The raw buttons. + + + + + Gets or sets the wheel delta. + + + The wheel delta. + + + + + Gets or sets the X. + + + The X. + + + + + Gets or sets the Y. + + + The Y. + + + + + The namespace provides a managed RawInput API. + + ms645536 + RawInput + RawInput + + + + Contains information about the state of the mouse. + + + + + The mouse state. + + + + + Raw button data. + + + + + The motion in the X direction. This is signed relative motion or + absolute motion, depending on the value of usFlags. + + + + + The motion in the Y direction. This is signed relative motion or absolute motion, + depending on the value of usFlags. + + + + + The device-specific additional information for the event. + + + + + Flags for the event. + + + + + If the mouse wheel is moved, this will contain the delta amount. + + + + + Options used when using + + + + + Default register using for RawInput message filtering. + + + + + To disable message filtering + + + + + Use custom message filtering instead of + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.XAudio2.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.XAudio2.dll new file mode 100644 index 0000000..6cfc2ff Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.XAudio2.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.XAudio2.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.XAudio2.xml new file mode 100644 index 0000000..6a5f353 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.XAudio2.xml @@ -0,0 +1,5749 @@ + + + + SharpDX.XAudio2 + + + + + The assembly provides managed and APIs. + + hh405049 + XAudio2 + XAudio2 + + + +

Contains information about an XAPO for use in an effect chain.

+
+ +

XAPO instances are passed to XAudio2 as interfaces and XAudio2 uses IXAPO::QueryInterface to acquire an interface and to detect whether the XAPO implements the interface.

For additional information on using XAPOs with XAudio2 see How to: Create an Effect Chain and How to: Use an XAPO in XAudio2.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_effect_descriptor + XAUDIO2_EFFECT_DESCRIPTOR + XAUDIO2_EFFECT_DESCRIPTOR +
+ + + Initializes a new instance of the class with a Stereo Effect. + + The effect. + + + + Initializes a new instance of the class. + + The effect. + The output channel count. + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_effect_descriptor + IUnknown* pEffect + IUnknown pEffect + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_effect_descriptor + BOOL InitialState + BOOL InitialState + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_effect_descriptor + unsigned int OutputChannels + unsigned int OutputChannels + + + + Gets or sets the AudioProcessor. The AudioProcessor cannot be set more than one. + + The effect. + + + +

Represents an audio data buffer, used with .

+
+ +

XAudio2 audio data is interleaved, data from each channel is adjacent for a particular sample number. For example if there was a 4 channel wave playing into an XAudio2 source voice, the audio data would be a sample of channel 0, a sample of channel 1, a sample of channel 2, a sample of channel 3, and then the next sample of channels 0, 1, 2, 3, etc.

The AudioBytes and pAudioData members of correspond to the size in bytes and contents of the 'data' RIFF chunk of the file being played. The contents of the chunk may need to be byte swapped when loading the file on Xbox 360.

Memory allocated to hold a or structure can be freed as soon as the call it is passed to returns. The data the structure points to (pAudioData and pDecodedPacketCumulativeBytes, respectively) can't be freed until the buffer completes (as signaled by the callback) or the voice is stopped or destroyed.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_buffer + XAUDIO2_BUFFER + XAUDIO2_BUFFER +
+ + Constant LoopInfinite. + XAUDIO2_LOOP_INFINITE + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The stream to get the audio buffer from. + + + + Initializes a new instance of the class. + + The buffer to get the audio buffer from. + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + XAUDIO2_BUFFER_FLAGS Flags + XAUDIO2_BUFFER_FLAGS Flags + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + unsigned int AudioBytes + unsigned int AudioBytes + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + const unsigned char* pAudioData + unsigned char pAudioData + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + unsigned int PlayBegin + unsigned int PlayBegin + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + unsigned int PlayLength + unsigned int PlayLength + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + unsigned int LoopBegin + unsigned int LoopBegin + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + unsigned int LoopLength + unsigned int LoopLength + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + unsigned int LoopCount + unsigned int LoopCount + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer + void* pContext + void pContext + + + + Gets or sets the data stream associated to this audio buffer + + The stream. + + + + The IXAudio2EngineCallback interface contains methods that notify the client when certain events happen in the engine. This interface should be implemented by the XAudio2 client. XAudio2 calls these methods via an interface pointer provided by the client, using either the {{XAudio2Create}} or method. Methods in this interface return void, rather than an HRESULT. + + IXAudio2EngineCallback + +

The interface contains methods that notify the client when certain events happen in the engine.

This interface should be implemented by the XAudio2 client. XAudio2 calls these methods via an interface reference provided by the client, using the XAudio2Create method. Methods in this interface return void, rather than an . +

See XAudio2 Callbacks for restrictions on callback implementation.

+
+ + microsoft.directx_sdk.ixaudio2enginecallback.ixaudio2enginecallback + IXAudio2EngineCallback + IXAudio2EngineCallback +
+ + + Called by XAudio2 just before an audio processing pass begins. + + void IXAudio2EngineCallback::OnProcessingPassStart() + + + + Called by XAudio2 just after an audio processing pass ends. + + void IXAudio2EngineCallback::OnProcessingPassEnd() + + + + Called if a critical system error occurs that requires XAudio2 to be closed down and restarted. + + Error code returned by XAudio2. + void IXAudio2EngineCallback::OnCriticalError([None] HRESULT Error) + + + + Internal EngineCallback Callback Implementation + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + Called by XAudio2 just after an audio processing pass ends. + + void IXAudio2EngineCallback::OnProcessingPassEnd() + + + + Called if a critical system error occurs that requires XAudio2 to be closed down and restarted. + + This pointer + Error code returned by XAudio2. + void IXAudio2EngineCallback::OnCriticalError([None] HRESULT Error) + + + + EventArgs used by . + + + + + Initializes a new instance of the class. + + The error code. + + + + Gets or sets the error code. + + The error code. + + + +

Describes I3DL2 (Interactive 3D Audio Rendering Guidelines Level 2.0) parameters for use in the ReverbConvertI3DL2ToNative function.

+
+ +

There are many preset values defined for the structure. For more information, see XAUDIO2FX_I3DL2_PRESET.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + XAUDIO2FX_REVERB_I3DL2_PARAMETERS + XAUDIO2FX_REVERB_I3DL2_PARAMETERS +
+ + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float WetDryMix + float WetDryMix + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + int Room + int Room + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + int RoomHF + int RoomHF + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float RoomRolloffFactor + float RoomRolloffFactor + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float DecayTime + float DecayTime + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float DecayHFRatio + float DecayHFRatio + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + int Reflections + int Reflections + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float ReflectionsDelay + float ReflectionsDelay + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + int Reverb + int Reverb + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float ReverbDelay + float ReverbDelay + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float Diffusion + float Diffusion + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float Density + float Density + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_i3dl2_parameters + float HFReference + float HFReference + + + + Standard I3DL2 reverb presets (100% wet). + + + + +

Describes parameters for use in the reverb APO.

+
+ +

All parameters related to sampling rate or time are relative to a 48kHz voice and must be scaled for use with other sampling rates. For example, setting ReflectionsDelay to 300ms gives a true 300ms delay when the reverb is hosted in a 48kHz voice, but becomes a 150ms delay when hosted in a 24kHz voice.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + XAUDIO2FX_REVERB_PARAMETERS + XAUDIO2FX_REVERB_PARAMETERS +
+ + + Defines an explicit conversion of a to . + + The value to convert. + A that represents the converted . + + The is converted to + using the same logic as the inline function "ReverbConvertI3DL2ToNative" from "XAudio2fx.h". + + + + +

Percentage of the output that will be reverb. Allowable values are from 0 to 100.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float WetDryMix + float WetDryMix +
+ + +

The delay time of the first reflection relative to the direct path. Permitted range is from 0 to 300 milliseconds.

Note??All parameters related to sampling rate or time are relative to a 48kHz sampling rate and must be scaled for use with other sampling rates. See remarks section below for additional information.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned int ReflectionsDelay + unsigned int ReflectionsDelay +
+ + +

Delay of reverb relative to the first reflection. Permitted range is from 0 to 85 milliseconds.

Note??All parameters related to sampling rate or time are relative to a 48kHz sampling rate and must be scaled for use with other sampling rates. See remarks section below for additional information.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char ReverbDelay + unsigned char ReverbDelay +
+ + +

Delay for the left rear output and right rear output. Permitted range is from 0 to 5 milliseconds.

Note??All parameters related to sampling rate or time are relative to a 48kHz sampling rate and must be scaled for use with other sampling rates. See remarks section below for additional information.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char RearDelay + unsigned char RearDelay +
+ + +

Position of the left input within the simulated space relative to the listener. With PositionLeft set to the minimum value, the left input is placed close to the listener. In this position, early reflections are dominant, and the reverb decay is set back in the sound field and reduced in amplitude. With PositionLeft set to the maximum value, the left input is placed at a maximum distance from the listener within the simulated room. PositionLeft does not affect the reverb decay time (liveness of the room), only the apparent position of the source relative to the listener. Permitted range is from 0 to 30 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char PositionLeft + unsigned char PositionLeft +
+ + +

Same as PositionLeft, but affecting only the right input. Permitted range is from 0 to 30 (no units).

Note??PositionRight is ignored in mono-in/mono-out mode.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char PositionRight + unsigned char PositionRight +
+ + +

Gives a greater or lesser impression of distance from the source to the listener. Permitted range is from 0 to 30 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char PositionMatrixLeft + unsigned char PositionMatrixLeft +
+ + +

Gives a greater or lesser impression of distance from the source to the listener. Permitted range is from 0 to 30 (no units).

Note??PositionMatrixRight is ignored in mono-in/mono-out mode.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char PositionMatrixRight + unsigned char PositionMatrixRight +
+ + +

Controls the character of the individual wall reflections. Set to minimum value to simulate a hard flat surface and to maximum value to simulate a diffuse surface. Permitted range is from 0 to 15 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char EarlyDiffusion + unsigned char EarlyDiffusion +
+ + +

Controls the character of the individual wall reverberations. Set to minimum value to simulate a hard flat surface and to maximum value to simulate a diffuse surface. Permitted range is from 0 to 15 (no units). +

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char LateDiffusion + unsigned char LateDiffusion +
+ + +

Adjusts the decay time of low frequencies relative to the decay time at 1 kHz. The values correspond to dB of gain as follows:

Value0123456789101112
Gain (dB)-8-7-6-5-4-3-2-10+1+2+3+4

?

Note??A LowEQGain value of 8 results in the decay time of low frequencies being equal to the decay time at 1 kHz.

Permitted range is from 0 to 12 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char LowEQGain + unsigned char LowEQGain +
+ + +

Sets the corner frequency of the low pass filter that is controlled by the LowEQGain parameter. The values correspond to frequency in Hz as follows:

Value0123456789
Frequency (Hz)50100150200250300350400450500

?

Permitted range is from 0 to 9 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char LowEQCutoff + unsigned char LowEQCutoff +
+ + +

Adjusts the decay time of high frequencies relative to the decay time at 1 kHz. When set to zero, high frequencies decay at the same rate as 1 kHz. When set to maximum value, high frequencies decay at a much faster rate than 1 kHz.

Value012345678
Gain (dB)-8-7-6-5-4-3-2-10

?

Permitted range is from 0 to 8 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char HighEQGain + unsigned char HighEQGain +
+ + +

Sets the corner frequency of the high pass filter that is controlled by the HighEQGain parameter. The values correspond to frequency in kHz as follows:

Value01234567891011121314
Frequency (kHz)11.522.533.544.555.566.577.58

?

Permitted range is from 0 to 14 (no units).

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + unsigned char HighEQCutoff + unsigned char HighEQCutoff +
+ + +

Sets the corner frequency of the low pass filter for the room effect. Permitted range is from 20 to 20,000 Hz.

Note??All parameters related to sampling rate or time are relative to a 48kHz sampling rate and must be scaled for use with other sampling rates. See remarks section below for additional information.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float RoomFilterFreq + float RoomFilterFreq +
+ + +

Sets the pass band intensity level of the low-pass filter for both the early reflections and the late field reverberation. Permitted range is from -100 to 0 dB.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float RoomFilterMain + float RoomFilterMain +
+ + +

Sets the intensity of the low-pass filter for both the early reflections and the late field reverberation at the corner frequency (RoomFilterFreq). Permitted range is from -100 to 0 dB.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float RoomFilterHF + float RoomFilterHF +
+ + +

Adjusts the intensity of the early reflections. Permitted range is from -100 to 20 dB.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float ReflectionsGain + float ReflectionsGain +
+ + +

Adjusts the intensity of the reverberations. Permitted range is from -100 to 20 dB.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float ReverbGain + float ReverbGain +
+ + +

Reverberation decay time at 1 kHz. This is the time that a full scale input signal decays by 60 dB. Permitted range is from 0.1 to infinity seconds.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float DecayTime + float DecayTime +
+ + +

Controls the modal density in the late field reverberation. For colorless spaces, Density should be set to the maximum value (100). As Density is decreased, the sound becomes hollow (comb filtered). This is an effect that can be useful if you are trying to model a silo. Permitted range as a percentage is from 0 to 100.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float Density + float Density +
+ + +

The apparent size of the acoustic space. Permitted range is from 1 to 100 feet.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_reverb_parameters + float RoomSize + float RoomSize +
+ + + XAudio2FxContants Functions. + + + + Constant None. + + + Constant None. + + + Constant None. + + + Constant None. + + + +

XAudio2 constants that specify default parameters, maximum values, and flags.

XAudio2 boundary values

+
+ + ee419230 + XAUDIO2_BUFFER_FLAGS + XAUDIO2_BUFFER_FLAGS +
+ + + No documentation. + + + ee419230 + XAUDIO2_END_OF_STREAM + XAUDIO2_END_OF_STREAM + + + + None. + + + None + None + + + + No documentation. + + + XAUDIO2_DEVICE_ROLE + XAUDIO2_DEVICE_ROLE + + + + No documentation. + + + NotDefaultDevice + NotDefaultDevice + + + + No documentation. + + + DefaultConsoleDevice + DefaultConsoleDevice + + + + No documentation. + + + DefaultMultimediaDevice + DefaultMultimediaDevice + + + + No documentation. + + + DefaultCommunicationsDevice + DefaultCommunicationsDevice + + + + No documentation. + + + DefaultGameDevice + DefaultGameDevice + + + + No documentation. + + + GlobalDefaultDevice + GlobalDefaultDevice + + + + No documentation. + + + InvalidDeviceRole + InvalidDeviceRole + + + +

Indicates the filter type.

+
+ +

Note??Note that the DirectX SDK versions of XAUDIO2 do not support the LowPassOnePoleFilter or the HighPassOnePoleFilter.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_type + XAUDIO2_FILTER_TYPE + XAUDIO2_FILTER_TYPE +
+ + +

Attenuates (reduces) frequencies above the cutoff frequency.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_type + LowPassFilter + LowPassFilter +
+ + +

Attenuates frequencies outside a given range.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_type + BandPassFilter + BandPassFilter +
+ + +

Attenuates frequencies below the cutoff frequency.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_type + HighPassFilter + HighPassFilter +
+ + +

Attenuates frequencies inside a given range.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_type + NotchFilter + NotchFilter +
+ + + No documentation. + + + XAUDIO2_LOG_TYPE + XAUDIO2_LOG_TYPE + + + + No documentation. + + + XAUDIO2_LOG_ERRORS + XAUDIO2_LOG_ERRORS + + + + No documentation. + + + XAUDIO2_LOG_WARNINGS + XAUDIO2_LOG_WARNINGS + + + + No documentation. + + + XAUDIO2_LOG_INFO + XAUDIO2_LOG_INFO + + + + No documentation. + + + XAUDIO2_LOG_DETAIL + XAUDIO2_LOG_DETAIL + + + + No documentation. + + + XAUDIO2_LOG_API_CALLS + XAUDIO2_LOG_API_CALLS + + + + No documentation. + + + XAUDIO2_LOG_FUNC_CALLS + XAUDIO2_LOG_FUNC_CALLS + + + + No documentation. + + + XAUDIO2_LOG_TIMING + XAUDIO2_LOG_TIMING + + + + No documentation. + + + XAUDIO2_LOG_LOCKS + XAUDIO2_LOG_LOCKS + + + + No documentation. + + + XAUDIO2_LOG_MEMORY + XAUDIO2_LOG_MEMORY + + + + No documentation. + + + XAUDIO2_LOG_STREAMING + XAUDIO2_LOG_STREAMING + + + +

Stops consumption of audio by the current voice.

+
+ +

All source buffers that are queued on the voice and the current cursor position are preserved. This allows the voice to continue from where it left off, when it is restarted. The method can be used to flush queued source buffers.

By default, any pending output from voice effects?for example, reverb tails?is not played. Instead, the voice is immediately rendered silent. The flag can be used to continue emitting effect output after the voice stops running.

A voice stopped with the flag stops consuming source buffers, but continues to process its effects and send audio to its destination voices. A voice in this state can later be stopped completely by calling Stop again with the Flags argument set to 0. This enables stopping a voice with , waiting sufficient time for any audio being produced by its effects to finish, and then fully stopping the voice by calling Stop again without . This technique allows voices with effects to be stopped gracefully while ensuring idle voices will not continue to be processed after they have finished producing audio.

Stop is always asynchronous, even if called within a callback.

Note??XAudio2 never calls any voice callbacks for a voice if the voice is stopped (even if it was stopped with ).

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.stop + XAUDIO2_PLAY_FLAGS + XAUDIO2_PLAY_FLAGS +
+ + +

Flags that control how the voice is stopped. Can be 0 or the following: +

ValueDescription
Continue emitting effect output after the voice is stopped.?

?

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.stop + XAUDIO2_PLAY_TAILS + XAUDIO2_PLAY_TAILS +
+ + + None. + + + None + None + + + + No documentation. + + + XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER + XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER + + + + No documentation. + + + Processor1 + Processor1 + + + + No documentation. + + + Processor2 + Processor2 + + + + No documentation. + + + Processor3 + Processor3 + + + + No documentation. + + + Processor4 + Processor4 + + + + No documentation. + + + Processor5 + Processor5 + + + + No documentation. + + + Processor6 + Processor6 + + + + No documentation. + + + Processor7 + Processor7 + + + + No documentation. + + + Processor8 + Processor8 + + + + No documentation. + + + Processor9 + Processor9 + + + + No documentation. + + + Processor10 + Processor10 + + + + No documentation. + + + Processor11 + Processor11 + + + + No documentation. + + + Processor12 + Processor12 + + + + No documentation. + + + Processor13 + Processor13 + + + + No documentation. + + + Processor14 + Processor14 + + + + No documentation. + + + Processor15 + Processor15 + + + + No documentation. + + + Processor16 + Processor16 + + + + No documentation. + + + Processor17 + Processor17 + + + + No documentation. + + + Processor18 + Processor18 + + + + No documentation. + + + Processor19 + Processor19 + + + + No documentation. + + + Processor20 + Processor20 + + + + No documentation. + + + Processor21 + Processor21 + + + + No documentation. + + + Processor22 + Processor22 + + + + No documentation. + + + Processor23 + Processor23 + + + + No documentation. + + + Processor24 + Processor24 + + + + No documentation. + + + Processor25 + Processor25 + + + + No documentation. + + + Processor26 + Processor26 + + + + No documentation. + + + Processor27 + Processor27 + + + + No documentation. + + + Processor28 + Processor28 + + + + No documentation. + + + Processor29 + Processor29 + + + + No documentation. + + + Processor30 + Processor30 + + + + No documentation. + + + Processor31 + Processor31 + + + + No documentation. + + + Processor32 + Processor32 + + + + No documentation. + + + XAUDIO2_ANY_PROCESSOR + XAUDIO2_ANY_PROCESSOR + + + + No documentation. + + + XAUDIO2_DEFAULT_PROCESSOR + XAUDIO2_DEFAULT_PROCESSOR + + + +

Creates and configures a source voice.

+
+ +

Source voices read audio data from the client. They process the data and send it to the XAudio2 processing graph.

A source voice includes a variable-rate sample rate conversion, to convert data from the source format sample rate to the output rate required for the voice send list. If you use a null send list, the target sample rate will be the mastering voice's input sample rate. If you provide a single voice in pSendList, that voice's input sample rate is the target rate. If you provide multiple voices in the pSendList, all the source voice's output voices must be running at the same input sample rate.

You cannot create any source or submix voices until a mastering voice exists, and you cannot destory a mastering voice if any source or submix voices still exist.

Source voices are always processed before any submix or mastering voices. This means that you do not need a ProcessingStage parameter to control the processing order.

When first created, source voices are in the stopped state.

XAudio2 uses an internal memory pooler for voices with the same format. This means memory allocation for voices will occur less frequently as more voices are created and then destroyed. To minimize just-in-time allocations, a title can create the anticipated maximum number of voices needed up front, and then delete them as necessary. Voices will then be reused from the XAudio2 pool. The memory pool is tied to an XAudio2 engine instance. You can reclaim all the memory used by an instance of the XAudio2 engine by destroying the XAudio2 object and recreating it as necessary (forcing the memory pool to grow via preallocation would have to be reapplied as needed).

It is invalid to call CreateSourceVoice from within a callback (that is, or ). If you call CreateSourceVoice within a callback, it returns .

The that is passed in as the pEffectChain argument and any information contained within it are no longer needed after CreateSourceVoice successfully completes, and may be deleted immediately after CreateSourceVoice is called. +

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsourcevoice + XAUDIO2_VOICE_FLAGS + XAUDIO2_VOICE_FLAGS +
+ + +

If successful, returns a reference to the new object.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsourcevoice + XAUDIO2_VOICE_NOPITCH + XAUDIO2_VOICE_NOPITCH +
+ + +

Pointer to a one of the structures in the table below. This structure contains the expected format for all audio buffers submitted to the source voice. + XAudio2 supports PCM and ADPCM voice types.

Format tagWave format structureSize (in bytes)
(0x0001) PCMWAVEFORMAT 16
-or- 18
(0x0003) [32-bit] PCMWAVEFORMAT 18
(0x0002) [MS-ADPCM] ADPCMWAVEFORMAT 50
(0xFFFE) 40

?

XAudio2 supports the following PCM formats. +

  • 8-bit (unsigned) integer PCM
  • 16-bit integer PCM (optimal format for XAudio2)
  • 20-bit integer PCM (either in 24 or 32 bit containers)
  • 24-bit integer PCM (either in 24 or 32 bit containers)
  • 32-bit integer PCM
  • 32-bit float PCM (preferred format after 16-bit integer) +

The number of channels in a source voice must be less than or equal to . The sample rate of a source voice must be between and .

Note??PCM data formats such as PCMWAVEFORMAT and ADPCMWAVEFORMAT that require more information than provided by have a structure as the first member in their format structures. When you create a source voice with one of those formats, cast the format's structure as a structure and use it as the value for pSourceFormat.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsourcevoice + XAUDIO2_VOICE_NOSRC + XAUDIO2_VOICE_NOSRC +
+ + +

Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following:

ValueDescription
No pitch control is available on the voice.?
No sample rate conversion is available on the voice. The voice's outputs must have the same sample rate.

Note??The flag causes the voice to behave as though the flag also is specified.

The filter effect should be available on this voice.?

?

Note??The flag is not supported on Windows.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsourcevoice + XAUDIO2_VOICE_USEFILTER + XAUDIO2_VOICE_USEFILTER +
+ + +

Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between and . Subsequent calls to are clamped between and MaxFrequencyRatio. + The maximum value for this argument is defined as , which allows pitch to be raised by up to 10 octaves.

If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0).

Xbox 360
For XMA voices, there is one more restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message. +

?

Note??You can use the lowest possible MaxFrequencyRatio value to reduce XAudio2's memory usage.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsourcevoice + XAUDIO2_VOICE_MUSIC + XAUDIO2_VOICE_MUSIC +
+ + + None. + + + None + None + + + +

Defines a destination voice that is the target of a send from another voice and specifies whether a filter should be used.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_send_descriptor + XAUDIO2_VOICE_SEND_FLAGS + XAUDIO2_VOICE_SEND_FLAGS +
+ + +

Indicates whether a filter should be used on data sent to the voice pointed to by pOutputVoice. Flags can be 0 or .

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_send_descriptor + XAUDIO2_SEND_USEFILTER + XAUDIO2_SEND_USEFILTER +
+ + + None. + + + None + None + + + +

XAudio2 constants that specify default parameters, maximum values, and flags.

XAudio2 boundary values

+
+ + ee419230 + XAUDIO2_FLAGS + XAUDIO2_FLAGS +
+ + + No documentation. + + + ee419230 + XAUDIO2_DEBUG_ENGINE + XAUDIO2_DEBUG_ENGINE + + + + None. + + + None + None + + + + Functions + + + + + Constant InvalidCall. + XAUDIO2_E_INVALID_CALL + + + Constant XapoCreationFailed. + XAUDIO2_E_XAPO_CREATION_FAILED + + + Constant XmaDecoderError. + XAUDIO2_E_XMA_DECODER_ERROR + + + Constant DeviceInvalidated. + XAUDIO2_E_DEVICE_INVALIDATED + + + + Functions + + + + + + Functions + + + + A Reverb XAudio2 AudioProcessor. + + + + + Implements this class to call an existing unmanaged AudioProcessor which supports parameter. + + the parameter type of this AudioProcessor + + + +

Interface that defines an XAPO, allowing it to be used in an XAudio2 effect chain.

+
+ + microsoft.directx_sdk.ixapo.ixapo + IXAPO + IXAPO + + Native Accessor to an existing AudioProcessor instance + +
+ + +

Interface that defines an XAPO, allowing it to be used in an XAudio2 effect chain.

+
+ + microsoft.directx_sdk.ixapo.ixapo + IXAPO + IXAPO +
+ + + Queries if a specific input format is supported for a given output format. + + Output format. + Input format to check for being supported. + If not NULL, and the input format is not supported for the given output format, ppSupportedInputFormat returns a pointer to the closest input format that is supported. Use {{XAPOFree}} to free the returned structure. + No documentation. + HRESULT IXAPO::IsInputFormatSupported([None] const WAVEFORMATEX* pOutputFormat,[None] const WAVEFORMATEX* pRequestedInputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedInputFormat) + + + + Queries if a specific output format is supported for a given input format. + + [in] Input format. + [in] Output format to check for being supported. + [out] If not NULL and the output format is not supported for the given input format, ppSupportedOutputFormat returns a pointer to the closest output format that is supported. Use {{XAPOFree}} to free the returned structure. + No documentation. + HRESULT IXAPO::IsOutputFormatSupported([None] const WAVEFORMATEX* pInputFormat,[None] const WAVEFORMATEX* pRequestedOutputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedOutputFormat) + + + + Performs any effect-specific initialization. + + Effect-specific initialization parameters, may be NULL if DataByteSize is 0. + No documentation. + HRESULT IXAPO::Initialize([In, Buffer, Optional] const void* pData,[None] UINT32 DataByteSize) + + + + Resets variables dependent on frame history. + + void IXAPO::Reset() + + + + Called by XAudio2 to lock the input and output configurations of an XAPO allowing it to + do any final initialization before {{Process}} is called on the realtime thread. + + Array of input structures.pInputLockedParameters may be NULL if InputLockedParameterCount is 0, otherwise it must have InputLockedParameterCount elements. + Array of output structures.pOutputLockedParameters may be NULL if OutputLockedParameterCount is 0, otherwise it must have OutputLockedParameterCount elements. + No documentation. + HRESULT IXAPO::LockForProcess([None] UINT32 InputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pInputLockedParameters,[None] UINT32 OutputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pOutputLockedParameters) + + + + Deallocates variables that were allocated with the {{LockForProcess}} method. + + void IXAPO::UnlockForProcess() + + + + Runs the XAPO's digital signal processing (DSP) code on the given input and output buffers. + + [in] Input array of structures. + [in, out] Output array of structures. On input, the value of .ValidFrameCount indicates the number of frames that the XAPO should write to the output buffer. On output, the value of .ValidFrameCount indicates the actual number of frames written. + TRUE to process normally; FALSE to process thru. See Remarks for additional information. + void IXAPO::Process([None] UINT32 InputProcessParameterCount,[In, Buffer, Optional] const XAPO_PROCESS_BUFFER_PARAMETERS* pInputProcessParameters,[None] UINT32 OutputProcessParameterCount,[InOut, Buffer, Optional] XAPO_PROCESS_BUFFER_PARAMETERS* pOutputProcessParameters,[None] BOOL IsEnabled) + + + + Returns the number of input frames required to generate the given number of output frames. + + The number of output frames desired. + No documentation. + UINT32 IXAPO::CalcInputFrames([None] UINT32 OutputFrameCount) + + + + Returns the number of output frames that will be generated from a given number of input frames. + + The number of input frames. + No documentation. + UINT32 IXAPO::CalcOutputFrames([None] UINT32 InputFrameCount) + + + + Returns the registration properties of an XAPO. + + a structure containing the registration properties the XAPO was created with; use XAPOFree to free the structure. + HRESULT IXAPO::GetRegistrationProperties([Out] XAPO_REGISTRATION_PROPERTIES** ppRegistrationProperties) + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns the registration properties of an XAPO.

+
+

Receives a reference to a structure containing the registration properties the XAPO was created with; use XAPOFree to free the structure.

+

Returns if successful; returns an error code otherwise.

+ + microsoft.directx_sdk.ixapo.ixapo.getregistrationproperties + HRESULT IXAPO::GetRegistrationProperties([Out] XAPO_REGISTRATION_PROPERTIES** ppRegistrationProperties) + IXAPO::GetRegistrationProperties +
+ + +

Queries if a specific input format is supported for a given output format.

+
+

Output format.

+

Input format to check for being supported.

+

If not null, and the input format is not supported for the given output format, ppSupportedInputFormat returns a reference to the closest input format that is supported. Use XAPOFree to free the returned structure.

+

Returns if the format pair is supported. Returns XAPO_E_FORMAT_UNSUPPORTED if the format pair is not supported.

+ +

The and IsInputFormatSupported methods allow an XAPO to indicate which audio formats it is capable of processing. If a requested format is not supported, the XAPO should return the closest format that it does support. The closest format should be determined based on frame rate, bit depth, and channel count, in that order of importance. The behavior of IsInputFormatSupported is allowed to change, based on the internal state of the XAPO, but its behavior should remain constant between calls to the and methods.

+
+ + microsoft.directx_sdk.ixapo.ixapo.isinputformatsupported + HRESULT IXAPO::IsInputFormatSupported([In] const WAVEFORMATEX* pOutputFormat,[In] const WAVEFORMATEX* pRequestedInputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedInputFormat) + IXAPO::IsInputFormatSupported +
+ + +

Queries if a specific output format is supported for a given input format.

+
+

Input format.

+

Output format to check for being supported.

+

If not null and the output format is not supported for the given input format, ppSupportedOutputFormat returns a reference to the closest output format that is supported. Use XAPOFree to free the returned structure.

+

Returns if the format pair is supported. Returns XAPO_E_FORMAT_UNSUPPORTED if the format pair is not supported.

+ +

The and IsOutputFormatSupported methods allow an XAPO to indicate which audio formats it is capable of processing. If a requested format is not supported, the XAPO should return the closest format that it does support. The closest format should be determined based on frame rate, bit depth, and channel count, in that order of importance. The behavior of IsOutputFormatSupported is allowed to change, based on the internal state of the XAPO, but its behavior should remain constant between calls to the and methods.

+
+ + microsoft.directx_sdk.ixapo.ixapo.isoutputformatsupported + HRESULT IXAPO::IsOutputFormatSupported([In] const WAVEFORMATEX* pInputFormat,[In] const WAVEFORMATEX* pRequestedOutputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedOutputFormat) + IXAPO::IsOutputFormatSupported +
+ + +

Performs any effect-specific initialization.

+
+

Effect-specific initialization parameters, may be null if DataByteSize is 0.

+

Size of pData in bytes, may be 0 if pData is null.

+

Returns if successful, an error code otherwise.

+ +

The contents of pData are defined by a given XAPO. Immutable parameters (constant for the lifetime of the XAPO) should be set in this method. Once initialized, an XAPO cannot be initialized again. An XAPO should be initialized before passing it to XAudio2 as part of an effect chain.

Note??XAudio2 does not call this method, it should be called by the client before passing the XAPO to XAudio2.

+
+ + microsoft.directx_sdk.ixapo.ixapo.initialize + HRESULT IXAPO::Initialize([In, Buffer, Optional] const void* pData,[In] unsigned int DataByteSize) + IXAPO::Initialize +
+ + +

Resets variables dependent on frame history.

+
+ +

Constant and locked parameters such as the input and output formats remain unchanged. Variables set by remain unchanged.

For example, an effect with delay should zero out its delay line during this method, but should not reallocate anything as the XAPO remains locked with a constant input and output configuration.

XAudio2 only calls this method if the XAPO is locked.

This method is called from the realtime thread and should not block. +

+
+ + microsoft.directx_sdk.ixapo.ixapo.reset + void IXAPO::Reset() + IXAPO::Reset +
+ + +

Called by XAudio2 to lock the input and output configurations of an XAPO allowing it to do any final initialization before Process is called on the realtime thread.

+
+ No documentation. + No documentation. + No documentation. + No documentation. +

Returns if successful, an error code otherwise.

+ +

Once locked, the input and output configuration and any other locked parameters remain constant until UnLockForProcess is called. After an XAPO is locked, further calls to LockForProcess have no effect until the UnLockForProcess function is called.

An XAPO indicates what specific formats it supports through its implementation of the IsInputFormatSupported and IsOutputFormatSupported methods. An XAPO should assert the input and output configurations are supported and that any required effect-specific initialization is complete. The IsInputFormatSupported, IsOutputFormatSupported, and Initialize methods should be used as necessary before calling this method.

Because Process is a nonblocking method, all internal memory buffers required for Process should be allocated in LockForProcess.

Process is never called before LockForProcess returns successfully.

LockForProcess is called directly by XAudio2 and should not be called by the client code.

+
+ + microsoft.directx_sdk.ixapo.ixapo.lockforprocess + HRESULT IXAPO::LockForProcess([In] unsigned int InputLockedParameterCount,[In, Buffer] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pInputLockedParameters,[In] unsigned int OutputLockedParameterCount,[In, Buffer] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pOutputLockedParameters) + IXAPO::LockForProcess +
+ + +

Deallocates variables that were allocated with the LockForProcess method.

+
+ +

Unlocking an XAPO instance allows it to be reused with different input and output formats.

+
+ + microsoft.directx_sdk.ixapo.ixapo.unlockforprocess + void IXAPO::UnlockForProcess() + IXAPO::UnlockForProcess +
+ + +

Runs the XAPO's digital signal processing (DSP) code on the given input and output buffers.

+
+

Number of elements in pInputProcessParameters.

Note??XAudio2 currently supports only one input stream and one output stream.

+

Input array of structures.

+

Number of elements in pOutputProcessParameters.

Note??XAudio2 currently supports only one input stream and one output stream.

+

Output array of structures. On input, the value of . ValidFrameCount indicates the number of frames that the XAPO should write to the output buffer. On output, the value of . ValidFrameCount indicates the actual number of frames written.

+

TRUE to process normally; to process thru. See Remarks for additional information.

+ +

Implementations of this function should not block, as the function is called from the realtime audio processing thread.

All code that could cause a delay, such as format validation and memory allocation, should be put in the method, which is not called from the realtime audio processing thread.

For in-place processing, the pInputProcessParameters parameter will not necessarily be the same as pOutputProcessParameters. Rather, their pBuffer members will point to the same memory.

Multiple input and output buffers may be used with in-place XAPOs, though the input buffer count must equal the output buffer count. For in-place processing when multiple input and output buffers are used, the XAPO may assume the number of input buffers equals the number of output buffers.

In addition to writing to the output buffer, as appropriate, an XAPO is responsible for setting the output stream's buffer flags and valid frame count.

When IsEnabled is , the XAPO should not apply its normal processing to the given input/output buffers during. It should instead pass data from input to output with as little modification possible. Effects that perform format conversion should continue to do so. Effects must ensure transitions between normal and thru processing do not introduce discontinuities into the signal.

When writing a Process method, it is important to note XAudio2 audio data is interleaved, which means data from each channel is adjacent for a particular sample number. For example, if there was a 4-channel wave playing into an XAudio2 source voice, the audio data would be a sample of channel 0, a sample of channel 1, a sample of channel 2, a sample of channel 3, and then the next sample of channels 0, 1, 2, 3, and so on. +

+
+ + microsoft.directx_sdk.ixapo.ixapo.process + void IXAPO::Process([In] unsigned int InputProcessParameterCount,[In, Buffer, Optional] const XAPO_PROCESS_BUFFER_PARAMETERS* pInputProcessParameters,[In] unsigned int OutputProcessParameterCount,[In, Buffer] XAPO_PROCESS_BUFFER_PARAMETERS* pOutputProcessParameters,[In] BOOL IsEnabled) + IXAPO::Process +
+ + +

Returns the number of input frames required to generate the given number of output frames.

+
+

The number of output frames desired.

+

Returns the number of input frames required.

+ +

XAudio2 calls this method to determine what size input buffer an XAPO requires to generate the given number of output frames. This method only needs to be called once while an XAPO is locked. CalcInputFrames is only called by XAudio2 if the XAPO is locked.

This function should not block, because it may be called from the realtime audio processing thread.

+
+ + microsoft.directx_sdk.ixapo.ixapo.calcinputframes + unsigned int IXAPO::CalcInputFrames([In] unsigned int OutputFrameCount) + IXAPO::CalcInputFrames +
+ + +

Returns the number of output frames that will be generated from a given number of input frames.

+
+

The number of input frames.

+

Returns the number of output frames that will be produced.

+ +

XAudio2 calls this method to determine how large of an output buffer an XAPO will require for a certain number of input frames. CalcOutputFrames is only called by XAudio2 if the XAPO is locked.

This function should not block, because it may be called from the realtime audio processing thread.

+
+ + microsoft.directx_sdk.ixapo.ixapo.calcoutputframes + unsigned int IXAPO::CalcOutputFrames([In] unsigned int InputFrameCount) + IXAPO::CalcOutputFrames +
+ + + Queries if a specific input format is supported for a given output format. + + Output format. + Input format to check for being supported. + If not NULL, and the input format is not supported for the given output format, ppSupportedInputFormat returns a pointer to the closest input format that is supported. Use {{XAPOFree}} to free the returned structure. + No documentation. + HRESULT IXAPO::IsInputFormatSupported([None] const WAVEFORMATEX* pOutputFormat,[None] const WAVEFORMATEX* pRequestedInputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedInputFormat) + + + + Queries if a specific output format is supported for a given input format. + + [in] Input format. + [in] Output format to check for being supported. + [out] If not NULL and the output format is not supported for the given input format, ppSupportedOutputFormat returns a pointer to the closest output format that is supported. Use {{XAPOFree}} to free the returned structure. + No documentation. + HRESULT IXAPO::IsOutputFormatSupported([None] const WAVEFORMATEX* pInputFormat,[None] const WAVEFORMATEX* pRequestedOutputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedOutputFormat) + + + + Performs any effect-specific initialization. + + Effect-specific initialization parameters, may be NULL if DataByteSize is 0. + No documentation. + HRESULT IXAPO::Initialize([In, Buffer, Optional] const void* pData,[None] UINT32 DataByteSize) + + + + Resets variables dependent on frame history. + + void IXAPO::Reset() + + + + Called by XAudio2 to lock the input and output configurations of an XAPO allowing it to + do any final initialization before {{Process}} is called on the realtime thread. + + Array of input structures.pInputLockedParameters may be NULL if InputLockedParameterCount is 0, otherwise it must have InputLockedParameterCount elements. + Array of output structures.pOutputLockedParameters may be NULL if OutputLockedParameterCount is 0, otherwise it must have OutputLockedParameterCount elements. + No documentation. + HRESULT IXAPO::LockForProcess([None] UINT32 InputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pInputLockedParameters,[None] UINT32 OutputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pOutputLockedParameters) + + + + Deallocates variables that were allocated with the {{LockForProcess}} method. + + void IXAPO::UnlockForProcess() + + + + Runs the XAPO's digital signal processing (DSP) code on the given input and output buffers. + + [in] Input array of structures. + [in, out] Output array of structures. On input, the value of .ValidFrameCount indicates the number of frames that the XAPO should write to the output buffer. On output, the value of .ValidFrameCount indicates the actual number of frames written. + TRUE to process normally; FALSE to process thru. See Remarks for additional information. + void IXAPO::Process([None] UINT32 InputProcessParameterCount,[In, Buffer, Optional] const XAPO_PROCESS_BUFFER_PARAMETERS* pInputProcessParameters,[None] UINT32 OutputProcessParameterCount,[InOut, Buffer, Optional] XAPO_PROCESS_BUFFER_PARAMETERS* pOutputProcessParameters,[None] BOOL IsEnabled) + + + + Returns the number of input frames required to generate the given number of output frames. + + The number of output frames desired. + No documentation. + UINT32 IXAPO::CalcInputFrames([None] UINT32 OutputFrameCount) + + + + Returns the number of output frames that will be generated from a given number of input frames. + + The number of input frames. + No documentation. + UINT32 IXAPO::CalcOutputFrames([None] UINT32 InputFrameCount) + + + + Returns the registration properties of an XAPO. + + a structure containing the registration properties the XAPO was created with; use XAPOFree to free the structure. + HRESULT IXAPO::GetRegistrationProperties([Out] XAPO_REGISTRATION_PROPERTIES** ppRegistrationProperties) + + + + Initializes a new instance of the class. + + The base PTR. + + + + Update the Native Pointer. Rebuild ParameterProviderNative. + + + + + Get or Set the parameters for this AudioProcessor + + + + Constant MinWetDryMix. + XAUDIO2FX_REVERB_MIN_WET_DRY_MIX + + + Constant MinReflectionsDelay. + XAUDIO2FX_REVERB_MIN_REFLECTIONS_DELAY + + + Constant MinReverbDelay. + XAUDIO2FX_REVERB_MIN_REVERB_DELAY + + + Constant MinRearDelay. + XAUDIO2FX_REVERB_MIN_REAR_DELAY + + + Constant MinPosition. + XAUDIO2FX_REVERB_MIN_POSITION + + + Constant MinDiffusion. + XAUDIO2FX_REVERB_MIN_DIFFUSION + + + Constant MinLowEqGain. + XAUDIO2FX_REVERB_MIN_LOW_EQ_GAIN + + + Constant MinLowEqCutoff. + XAUDIO2FX_REVERB_MIN_LOW_EQ_CUTOFF + + + Constant MinHighEqGain. + XAUDIO2FX_REVERB_MIN_HIGH_EQ_GAIN + + + Constant MinHighEqCutoff. + XAUDIO2FX_REVERB_MIN_HIGH_EQ_CUTOFF + + + Constant MinRoomFilterFreq. + XAUDIO2FX_REVERB_MIN_ROOM_FILTER_FREQ + + + Constant MinRoomFilterMain. + XAUDIO2FX_REVERB_MIN_ROOM_FILTER_MAIN + + + Constant MinRoomFilterHf. + XAUDIO2FX_REVERB_MIN_ROOM_FILTER_HF + + + Constant MinReflectionsGain. + XAUDIO2FX_REVERB_MIN_REFLECTIONS_GAIN + + + Constant MinReverbGain. + XAUDIO2FX_REVERB_MIN_REVERB_GAIN + + + Constant MinDecayTime. + XAUDIO2FX_REVERB_MIN_DECAY_TIME + + + Constant MinDensity. + XAUDIO2FX_REVERB_MIN_DENSITY + + + Constant MinRoomSize. + XAUDIO2FX_REVERB_MIN_ROOM_SIZE + + + Constant MaxWetDryMix. + XAUDIO2FX_REVERB_MAX_WET_DRY_MIX + + + Constant MaxReflectionsDelay. + XAUDIO2FX_REVERB_MAX_REFLECTIONS_DELAY + + + Constant MaxReverbDelay. + XAUDIO2FX_REVERB_MAX_REVERB_DELAY + + + Constant MaxRearDelay. + XAUDIO2FX_REVERB_MAX_REAR_DELAY + + + Constant MaxPosition. + XAUDIO2FX_REVERB_MAX_POSITION + + + Constant MaxDiffusion. + XAUDIO2FX_REVERB_MAX_DIFFUSION + + + Constant MaxLowEqGain. + XAUDIO2FX_REVERB_MAX_LOW_EQ_GAIN + + + Constant MaxLowEqCutoff. + XAUDIO2FX_REVERB_MAX_LOW_EQ_CUTOFF + + + Constant MaxHighEqGain. + XAUDIO2FX_REVERB_MAX_HIGH_EQ_GAIN + + + Constant MaxHighEqCutoff. + XAUDIO2FX_REVERB_MAX_HIGH_EQ_CUTOFF + + + Constant MaxRoomFilterFreq. + XAUDIO2FX_REVERB_MAX_ROOM_FILTER_FREQ + + + Constant MaxRoomFilterMain. + XAUDIO2FX_REVERB_MAX_ROOM_FILTER_MAIN + + + Constant MaxRoomFilterHf. + XAUDIO2FX_REVERB_MAX_ROOM_FILTER_HF + + + Constant MaxReflectionsGain. + XAUDIO2FX_REVERB_MAX_REFLECTIONS_GAIN + + + Constant MaxReverbGain. + XAUDIO2FX_REVERB_MAX_REVERB_GAIN + + + Constant MaxDensity. + XAUDIO2FX_REVERB_MAX_DENSITY + + + Constant MaxRoomSize. + XAUDIO2FX_REVERB_MAX_ROOM_SIZE + + + Constant DefaultWetDryMix. + XAUDIO2FX_REVERB_DEFAULT_WET_DRY_MIX + + + Constant DefaultReflectionsDelay. + XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_DELAY + + + Constant DefaultReverbDelay. + XAUDIO2FX_REVERB_DEFAULT_REVERB_DELAY + + + Constant DefaultRearDelay. + XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY + + + Constant DefaultPosition. + XAUDIO2FX_REVERB_DEFAULT_POSITION + + + Constant DefaultPositionMatrix. + XAUDIO2FX_REVERB_DEFAULT_POSITION_MATRIX + + + Constant DefaultEarlyDiffusion. + XAUDIO2FX_REVERB_DEFAULT_EARLY_DIFFUSION + + + Constant DefaultLateDiffusion. + XAUDIO2FX_REVERB_DEFAULT_LATE_DIFFUSION + + + Constant DefaultLowEqGain. + XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_GAIN + + + Constant DefaultLowEqCutoff. + XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF + + + Constant DefaultHighEqGain. + XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_GAIN + + + Constant DefaultHighEqCutoff. + XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF + + + Constant DefaultRoomFilterFreq. + XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ + + + Constant DefaultRoomFilterMain. + XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN + + + Constant DefaultRoomFilterHf. + XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_HF + + + Constant DefaultReflectionsGain. + XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_GAIN + + + Constant DefaultReverbGain. + XAUDIO2FX_REVERB_DEFAULT_REVERB_GAIN + + + Constant DefaultDecayTime. + XAUDIO2FX_REVERB_DEFAULT_DECAY_TIME + + + Constant DefaultDensity. + XAUDIO2FX_REVERB_DEFAULT_DENSITY + + + Constant DefaultRoomSize. + XAUDIO2FX_REVERB_DEFAULT_ROOM_SIZE + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + +

Describes parameters for use with the volume meter APO.

+
+ +

This structure is used with the XAudio2 method.

pPeakLevels and pRMSLevels are not returned by , the arrays are only filled out if they are present. If pPeakLevels and pRMSLevels are used they must be allocated by the application. The application is responsible for freeing the arrays when they are no longer needed.

ChannelCount must be set by the application to match the number of channels in the voice the effect is applied to.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_volumemeter_levels + XAUDIO2FX_VOLUMEMETER_LEVELS + XAUDIO2FX_VOLUMEMETER_LEVELS +
+ + +

Array that will be filled with the maximum absolute level for each channel during a processing pass. The array must be at least ChannelCount ? sizeof(float) bytes. pPeakLevels may be null if pRMSLevels is not null.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_volumemeter_levels + float* pPeakLevels + float pPeakLevels +
+ + +

Array that will be filled with root mean square level for each channel during a processing pass. The array must be at least ChannelCount ? sizeof(float) bytes. pRMSLevels may be null if pPeakLevels is not null.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_volumemeter_levels + float* pRMSLevels + float pRMSLevels +
+ + +

Number of channels being processed.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2fx_volumemeter_levels + unsigned int ChannelCount + unsigned int ChannelCount +
+ + +

A mastering voice is used to represent the audio output device.

Data buffers cannot be submitted directly to mastering voices, but data submitted to other types of voices must be directed to a mastering voice to be heard. +

inherits directly from , but does not implement methods specific to mastering voices. The interface type exists solely because some of the base class methods are implemented differently for mastering voices. Having a separate type for these voices helps client code to distinguish the different voice types and to benefit from C++ type safety.

+
+ + microsoft.directx_sdk.ixaudio2masteringvoice.ixaudio2masteringvoice + IXAudio2MasteringVoice + IXAudio2MasteringVoice +
+ + +

Sets the filter parameters on one of this voice's sends.

+
+ +

SetOutputFilterParameters will fail if the send was not created with the flag. This method is usable only on sends belonging to source and submix voices and has no effect on a mastering voice's sends. +

Note?? always returns this send?s actual current filter parameters. However, these may not match the parameters set by the most recent call: the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setoutputfilterparameters + IXAudio2Voice + IXAudio2Voice +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Returns information about the creation flags, input channels, and sample rate of a voice.

+
+

structure containing information about the voice.

+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getvoicedetails + void IXAudio2Voice::GetVoiceDetails([Out] XAUDIO2_VOICE_DETAILS* pVoiceDetails) + IXAudio2Voice::GetVoiceDetails +
+ + +

Designates a new set of submix or mastering voices to receive the output of the voice.

+
+

Array of structure references to destination voices. If pSendList is null, the voice will send its output to the current mastering voice. To set the voice to not send its output anywhere set the OutputCount member of to 0. All of the voices in a send list must have the same input sample rate, see XAudio2 Sample Rate Conversions for additional information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

This method is only valid for source and submix voices. Mastering voices can not send audio to another voice.

After calling SetOutputVoices a voice's current send levels will be replaced by a default send matrix. The method must be called to set a custom matrix for the new sendlist.

It is invalid to call SetOutputVoices from within a callback (that is, or ). If SetOutputVoices is called within a callback, it returns .

Note??Calling SetOutputVoices invalidates any send matrices previously set with .

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setoutputvoices + HRESULT IXAudio2Voice::SetOutputVoices([In, Optional] const XAUDIO2_VOICE_SENDS* pSendList) + IXAudio2Voice::SetOutputVoices +
+ + +

Replaces the effect chain of the voice.

+
+

Pointer to an structure that describes the new effect chain to use. If null is passed, the current effect chain is removed.

Note??If pEffectChain is non-null, the structure that it points to must specify at least one effect.

+

Returns if successful; otherwise, an error code.

See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

The number of output channels allowed for a voice's effect chain is locked at creation of the voice. If you create the voice with an effect chain, any new effect chain passed to SetEffectChain must have the same number of input and output channels as the original effect chain. If you create the voice without an effect chain, the number of output channels allowed for the effect chain will default to the number of input channels for the voice. If any part of effect chain creation fails, none of it is applied.

After you attach an effect to an XAudio2 voice, XAudio2 takes control of the effect, and the client should not make any further calls to it. The simplest way to ensure this is to release all references to the effect.

It is invalid to call SetEffectChain from within a callback (that is, or ). If you call SetEffectChain within a callback, it returns .

The that is passed in as the pEffectChain argument and any information contained within it are no longer needed after SetEffectChain successfully completes, and may be deleted immediately after SetEffectChain is called.

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.seteffectchain + HRESULT IXAudio2Voice::SetEffectChain([In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + IXAudio2Voice::SetEffectChain +
+ + +

Enables the effect at a given position in the effect chain of the voice.

+
+

Zero-based index of an effect in the effect chain of the voice.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful; otherwise, an error code. See XAudio2 Error Codes for descriptions of error codes.

+ +

Be careful when you enable an effect while the voice that hosts it is running. Such an action can result in a problem if the effect significantly changes the audio's pitch or volume.

The effects in a given XAudio2 voice's effect chain must consume and produce audio at that voice's processing sample rate. The only aspect of the audio format they can change is the channel count. For example a reverb effect can convert mono data to 5.1. The client can use the structure's OutputChannels field to specify the number of channels it wants each effect to produce. Each effect in an effect chain must produce a number of channels that the next effect can consume. Any calls to or that would make the effect chain stop fulfilling these requirements will fail.

EnableEffect takes effect immediately when you call it from an XAudio2 callback with an OperationSet of .

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.enableeffect + HRESULT IXAudio2Voice::EnableEffect([In] unsigned int EffectIndex,[In] unsigned int OperationSet) + IXAudio2Voice::EnableEffect +
+ + +

Disables the effect at a given position in the effect chain of the voice.

+
+

Zero-based index of an effect in the effect chain of the voice.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful; otherwise, an error code. See XAudio2 Error Codes for descriptions of valid error codes.

+ +

The effects in a given XAudio2 voice's effect chain must consume and produce audio at that voice's processing sample rate. The only aspect of the audio format they can change is the channel count. For example a reverb effect can convert mono data to 5.1. The client can use the structure's OutputChannels field to specify the number of channels it wants each effect to produce. Each effect in an effect chain must produce a number of channels that the next effect can consume. Any calls to or that would make the effect chain stop fulfilling these requirements will fail.

Disabling an effect immediately removes it from the processing graph. Any pending audio in the effect?such as a reverb tail?is not played. Be careful disabling an effect while the voice that hosts it is running. This can result in an audible artifact if the effect significantly changes the audio's pitch or volume.

DisableEffect takes effect immediately when called from an XAudio2 callback with an OperationSet of .

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.disableeffect + HRESULT IXAudio2Voice::DisableEffect([In] unsigned int EffectIndex,[In] unsigned int OperationSet) + IXAudio2Voice::DisableEffect +
+ + +

Returns the running state of the effect at a specified position in the effect chain of the voice.

+
+

Zero-based index of an effect in the effect chain of the voice.

+ +

GetEffectState always returns the effect's actual current state. However, this may not be the state set by the most recent or call: the actual state is only changed the next time the audio engine runs after the or call (or after the corresponding call, if EnableEffect/DisableEffect was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.geteffectstate + void IXAudio2Voice::GetEffectState([In] unsigned int EffectIndex,[Out] BOOL* pEnabled) + IXAudio2Voice::GetEffectState +
+ + +

Sets parameters for a given effect in the voice's effect chain.

+
+

Zero-based index of an effect within the voice's effect chain.

+

Returns the current values of the effect-specific parameters.

+

Size of the pParameters array in bytes.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful; otherwise, an error code. See XAudio2 Error Codes for descriptions of error codes.

Fails with E_NOTIMPL if the effect does not support a generic parameter control interface.

+ +

The specific effect being used determines the valid size and format of the pParameters buffer. The call will fail if pParameters is invalid or if ParametersByteSize is not exactly the size that the effect expects. The client must take care to direct the SetEffectParameters call to the right effect. If this call is directed to a different effect that happens to accept the same parameter block size, the parameters will be interpreted differently. This may lead to unexpected results.

The memory pointed to by pParameters must not be freed immediately, because XAudio2 will need to refer to it later when the parameters actually are applied to the effect. This happens during the next audio processing pass if the OperationSet argument is . Otherwise, the parameters are applied to the effect later, during the first processing pass after the function is called with the same OperationSet argument.

SetEffectParameters takes effect immediately when called from an XAudio2 callback with an OperationSet of . +

Note?? always returns the effect's actual current parameters. However, these may not match the parameters set by the most recent call to . The actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.seteffectparameters + HRESULT IXAudio2Voice::SetEffectParameters([In] unsigned int EffectIndex,[In, Buffer] const void* pParameters,[In] unsigned int ParametersByteSize,[In] unsigned int OperationSet) + IXAudio2Voice::SetEffectParameters +
+ + +

Returns the current effect-specific parameters of a given effect in the voice's effect chain.

+
+

Zero-based index of an effect within the voice's effect chain.

+

Returns the current values of the effect-specific parameters.

+

Size, in bytes, of the pParameters array.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

Fails with E_NOTIMPL if the effect does not support a generic parameter control interface.

+ +

GetEffectParameters always returns the effect's actual current parameters. However, these may not match the parameters set by the most recent call to : the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.geteffectparameters + HRESULT IXAudio2Voice::GetEffectParameters([In] unsigned int EffectIndex,[Out, Buffer] void* pParameters,[In] unsigned int ParametersByteSize) + IXAudio2Voice::GetEffectParameters +
+ + +

Sets the voice's filter parameters.

+
+

Pointer to an structure containing the filter information.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

+ +

SetFilterParameters will fail if the voice was not created with the flag.

This method is usable only on source and submix voices and has no effect on mastering voices.

Note?? always returns this voice's actual current filter parameters. However, these may not match the parameters set by the most recent call: the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setfilterparameters + HRESULT IXAudio2Voice::SetFilterParameters([In] const XAUDIO2_FILTER_PARAMETERS* pParameters,[In] unsigned int OperationSet) + IXAudio2Voice::SetFilterParameters +
+ + +

Gets the voice's filter parameters.

+
+

Pointer to an structure containing the filter information.

+ +

GetFilterParameters will fail if the voice was not created with the flag.

GetFilterParameters always returns this voice's actual current filter parameters. However, these may not match the parameters set by the most recent call: the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

Note??GetFilterParameters is usable only on source and submix voices and has no effect on mastering voices.

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getfilterparameters + void IXAudio2Voice::GetFilterParameters([Out] XAUDIO2_FILTER_PARAMETERS* pParameters) + IXAudio2Voice::GetFilterParameters +
+ + +

Sets the filter parameters on one of this voice's sends.

+
+

reference to the destination voice of the send whose filter parameters will be set.

+

Pointer to an structure containing the filter information.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

+ +

SetOutputFilterParameters will fail if the send was not created with the flag. This method is usable only on sends belonging to source and submix voices and has no effect on a mastering voice's sends. +

Note?? always returns this send?s actual current filter parameters. However, these may not match the parameters set by the most recent call: the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setoutputfilterparameters + HRESULT IXAudio2Voice::SetOutputFilterParameters([In, Optional] IXAudio2Voice* pDestinationVoice,[In] const XAUDIO2_FILTER_PARAMETERS* pParameters,[In] unsigned int OperationSet) + IXAudio2Voice::SetOutputFilterParameters +
+ + +

Returns the filter parameters from one of this voice's sends.

+
+

reference to the destination voice of the send whose filter parameters will be read.

+

Pointer to an structure containing the filter information.

+ +

GetOutputFilterParameters will fail if the send was not created with the flag. This method is usable only on sends belonging to source and submix voices and has no effect on mastering voices? sends.

Note?? always returns this send?s actual current filter parameters. However, these may not match the parameters set by the most recent call: the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getoutputfilterparameters + void IXAudio2Voice::GetOutputFilterParameters([In, Optional] IXAudio2Voice* pDestinationVoice,[Out] XAUDIO2_FILTER_PARAMETERS* pParameters) + IXAudio2Voice::GetOutputFilterParameters +
+ + +

Sets the overall volume level for the voice.

+
+

Overall volume level to use. See Remarks for more information on volume levels.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

+ +

SetVolume controls a voice's master input volume level. The master volume level is applied at different times depending on the type of voice. For submix and mastering voices the volume level is applied just before the voice's built in filter and effect chain is applied. For source voices the master volume level is applied after the voice's filter and effect chain is applied.

Volume levels are expressed as floating-point amplitude multipliers between - and (-224 to 224), with a maximum gain of 144.5 dB. A volume level of 1.0 means there is no attenuation or gain and 0 means silence. Negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

Note?? always returns the volume most recently set by . However, it may not actually be in effect yet: it only takes effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setvolume + HRESULT IXAudio2Voice::SetVolume([In] float Volume,[In] unsigned int OperationSet) + IXAudio2Voice::SetVolume +
+ + +

Gets the current overall volume level of the voice.

+
+

Returns the current overall volume level of the voice. See Remarks for more information on volume levels.

+ +

Volume levels are expressed as floating-point amplitude multipliers between -224 to 224, with a maximum gain of 144.5 dB. A volume level of 1 means there is no attenuation or gain and 0 means silence. Negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

Note??GetVolume always returns the volume most recently set by . However, it may not actually be in effect yet: it only takes effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getvolume + void IXAudio2Voice::GetVolume([Out] float* pVolume) + IXAudio2Voice::GetVolume +
+ + +

Sets the volume levels for the voice, per channel.

+
+

Number of channels in the voice.

+

Array containing the new volumes of each channel in the voice. The array must have Channels elements. See Remarks for more information on volume levels.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

SetChannelVolumes controls a voice's per-channel output levels and is applied just after the voice's final SRC and before its sends.

This method is valid only for source and submix voices, because mastering voices do not specify volume per channel.

Volume levels are expressed as floating-point amplitude multipliers between - and (-224 to 224), with a maximum gain of 144.5 dB. A volume of 1 means there is no attenuation or gain and 0 means silence. Negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

Note?? always returns the volume levels most recently set by . However, those values may not actually be in effect yet: they only take effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setchannelvolumes + HRESULT IXAudio2Voice::SetChannelVolumes([In] unsigned int Channels,[In, Buffer] const float* pVolumes,[In] unsigned int OperationSet) + IXAudio2Voice::SetChannelVolumes +
+ + +

Returns the volume levels for the voice, per channel.

+
+

Confirms the channel count of the voice.

+

Returns the current volume level of each channel in the voice. The array must have at least Channels elements. See Remarks for more information on volume levels.

+ +

These settings are applied after the effect chain is applied. This method is valid only for source and submix voices, because mastering voices do not specify volume per channel.

Volume levels are expressed as floating-point amplitude multipliers between -224 to 224, with a maximum gain of 144.5 dB. A volume of 1 means there is no attenuation or gain, 0 means silence, and negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

Note??GetChannelVolumes always returns the volume levels most recently set by . However, those values may not actually be in effect yet: they only take effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getchannelvolumes + void IXAudio2Voice::GetChannelVolumes([In] unsigned int Channels,[Out, Buffer] float* pVolumes) + IXAudio2Voice::GetChannelVolumes +
+ + +

Sets the volume level of each channel of the final output for the voice. These channels are mapped to the input channels of a specified destination voice.

+
+

Pointer to a destination for which to set volume levels.

Note??If the voice sends to a single target voice then specifying null will cause SetOutputMatrix to operate on that target voice.

+

Confirms the output channel count of the voice. This is the number of channels that are produced by the last effect in the chain.

+

Confirms the input channel count of the destination voice.

+

Array of [SourceChannels ? DestinationChannels] volume levels sent to the destination voice. The level sent from source channel S to destination channel D is specified in the form pLevelMatrix[SourceChannels ? D + S].

For example, when rendering two-channel stereo input into 5.1 output that is weighted toward the front channels?but is absent from the center and low-frequency channels?the matrix might have the values shown in the following table.

OutputLeft Input [Array Index]Right Input [Array Index]
Left1.0 [0]0.0 [1]
Right0.0 [2]1.0 [3]
Front Center0.0 [4]0.0 [5]
LFE0.0 [6]0.0 [7]
Rear Left0.8 [8]0.0 [9]
Rear Right0.0 [10]0.8 [11]

?

Note??The left and right input are fully mapped to the output left and right channels; 80 percent of the left and right input is mapped to the rear left and right channels.

See Remarks for more information on volume levels.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

+ +

This method is valid only for source and submix voices, because mastering voices write directly to the device with no matrix mixing.

Volume levels are expressed as floating-point amplitude multipliers between - and (-224 to 224), with a maximum gain of 144.5 dB. A volume level of 1.0 means there is no attenuation or gain and 0 means silence. Negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

The X3DAudio function can produce an output matrix for use with SetOutputMatrix based on a sound's position and a listener's position.

Note?? always returns the levels most recently set by . However, they may not actually be in effect yet: they only take effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setoutputmatrix + HRESULT IXAudio2Voice::SetOutputMatrix([In, Optional] IXAudio2Voice* pDestinationVoice,[In] unsigned int SourceChannels,[In] unsigned int DestinationChannels,[In, Buffer] const float* pLevelMatrix,[In] unsigned int OperationSet) + IXAudio2Voice::SetOutputMatrix +
+ + +

Gets the volume level of each channel of the final output for the voice. These channels are mapped to the input channels of a specified destination voice.

+
+

Pointer specifying the destination to retrieve the output matrix for.

Note??If the voice sends to a single target voice then specifying null will cause GetOutputMatrix to operate on that target voice.

+

Confirms the output channel count of the voice. This is the number of channels that are produced by the last effect in the chain.

+

Confirms the input channel count of the destination voice.

+

Array of [SourceChannels * DestinationChannels] volume levels sent to the destination voice. The level sent from source channel S to destination channel D is returned in the form pLevelMatrix[DestinationChannels ? S + D]. See Remarks for more information on volume levels.

+ +

This method applies only to source and submix voices, because mastering voices write directly to the device with no matrix mixing. Volume levels are expressed as floating-point amplitude multipliers between -224 to 224, with a maximum gain of 144.5 dB. A volume level of 1 means there is no attenuation or gain and 0 means silence. Negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

See for information on standard channel ordering.

Note??GetOutputMatrix always returns the levels most recently set by . However, they may not actually be in effect yet: they only take effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getoutputmatrix + void IXAudio2Voice::GetOutputMatrix([In, Optional] IXAudio2Voice* pDestinationVoice,[In] unsigned int SourceChannels,[In] unsigned int DestinationChannels,[Out, Buffer] float* pLevelMatrix) + IXAudio2Voice::GetOutputMatrix +
+ + +

Destroys the voice. If necessary, stops the voice and removes it from the XAudio2 graph.

+
+ +

If any other voice is currently sending audio to this voice, the method fails.

DestroyVoice waits for the audio processing thread to be idle, so it can take a little while (typically no more than a couple of milliseconds). This is necessary to guarantee that the voice will no longer make any callbacks or read any audio data, so the application can safely free up these resources as soon as the call returns.

To avoid title thread interruptions from a blocking DestroyVoice call, the application can destroy voices on a separate non-critical thread, or the application can use voice pooling strategies to reuse voices rather than destroying them. Note that voices can only be reused with audio that has the same data format and the same number of channels the voice was created with. A voice can play audio data with different sample rates than that of the voice by calling with an appropriate ratio parameter.

It is invalid to call DestroyVoice from within a callback (that is, or ).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.destroyvoice + void IXAudio2Voice::DestroyVoice() + IXAudio2Voice::DestroyVoice +
+ + + Enables the effect at a given position in the effect chain of the voice. + + [in] Zero-based index of an effect in the effect chain of the voice. + No documentation. + HRESULT IXAudio2Voice::EnableEffect([None] UINT32 EffectIndex,[None] UINT32 OperationSet) + + + + Disables the effect at a given position in the effect chain of the voice. + + [in] Zero-based index of an effect in the effect chain of the voice. + No documentation. + HRESULT IXAudio2Voice::DisableEffect([None] UINT32 EffectIndex,[None] UINT32 OperationSet) + + + + Sets parameters for a given effect in the voice's effect chain. + + [in] Zero-based index of an effect within the voice's effect chain. + Returns the current values of the effect-specific parameters. + HRESULT IXAudio2Voice::SetEffectParameters([None] UINT32 EffectIndex,[In, Buffer] const void* pParameters,[None] UINT32 ParametersByteSize,[None] UINT32 OperationSet) + + + + Returns the current effect-specific parameters of a given effect in the voice's effect chain. + + [in] Zero-based index of an effect within the voice's effect chain. + [out] Returns the current values of the effect-specific parameters. + No documentation. + HRESULT IXAudio2Voice::GetEffectParameters([None] UINT32 EffectIndex,[Out, Buffer] void* pParameters,[None] UINT32 ParametersByteSize) + + + + Sets parameters for a given effect in the voice's effect chain. + + [in] Zero-based index of an effect within the voice's effect chain. + [in] Returns the current values of the effect-specific parameters. + No documentation. + HRESULT IXAudio2Voice::SetEffectParameters([None] UINT32 EffectIndex,[In, Buffer] const void* pParameters,[None] UINT32 ParametersByteSize,[None] UINT32 OperationSet) + + + + Sets parameters for a given effect in the voice's effect chain. + + [in] Zero-based index of an effect within the voice's effect chain. + [in] Returns the current values of the effect-specific parameters. + [in] Identifies this call as part of a deferred batch. See the {{XAudio2 Operation Sets}} overview for more information. + No documentation. + HRESULT IXAudio2Voice::SetEffectParameters([None] UINT32 EffectIndex,[In, Buffer] const void* pParameters,[None] UINT32 ParametersByteSize,[None] UINT32 OperationSet) + + + + Sets parameters for a given effect in the voice's effect chain. + + [in] Zero-based index of an effect within the voice's effect chain. + [in] Returns the current values of the effect-specific parameters. + No documentation. + HRESULT IXAudio2Voice::SetEffectParameters([None] UINT32 EffectIndex,[In, Buffer] const void* pParameters,[None] UINT32 ParametersByteSize,[None] UINT32 OperationSet) + + + + Sets parameters for a given effect in the voice's effect chain. + + [in] Zero-based index of an effect within the voice's effect chain. + [in] Returns the current values of the effect-specific parameters. + [in] Identifies this call as part of a deferred batch. See the {{XAudio2 Operation Sets}} overview for more information. + No documentation. + HRESULT IXAudio2Voice::SetEffectParameters([None] UINT32 EffectIndex,[In, Buffer] const void* pParameters,[None] UINT32 ParametersByteSize,[None] UINT32 OperationSet) + + + + Replaces the effect chain of the voice. + + [in, optional] an array of structure that describes the new effect chain to use. If NULL is passed, the current effect chain is removed. If array is non null, its length must be at least of 1. + No documentation. + HRESULT IXAudio2Voice::SetEffectChain([In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Designates a new set of submix or mastering voices to receive the output of the voice. + + [in] Array of structure pointers to destination voices. If outputVoices is NULL, the voice will send its output to the current mastering voice. To set the voice to not send its output anywhere set an array of length 0. All of the voices in a send list must have the same input sample rate, see {{XAudio2 Sample Rate Conversions}} for additional information. + No documentation. + HRESULT IXAudio2Voice::SetOutputVoices([In, Optional] const XAUDIO2_VOICE_SENDS* pSendList) + + + + Sets the volume level of each channel of the final output for the voice. These channels are mapped to the input channels of a specified destination voice. + + [in] Confirms the output channel count of the voice. This is the number of channels that are produced by the last effect in the chain. + [in] Confirms the input channel count of the destination voice. + [in] Array of [SourceChannels ? DestinationChannels] volume levels sent to the destination voice. The level sent from source channel S to destination channel D is specified in the form pLevelMatrix[SourceChannels ? D + S]. For example, when rendering two-channel stereo input into 5.1 output that is weighted toward the front channels?but is absent from the center and low-frequency channels?the matrix might have the values shown in the following table. OutputLeft InputRight Input Left1.00.0 Right0.01.0 Front Center0.00.0 LFE0.00.0 Rear Left0.80.0 Rear Right0.00.8 Note that the left and right input are fully mapped to the output left and right channels; 80 percent of the left and right input is mapped to the rear left and right channels. See Remarks for more information on volume levels. + No documentation. + HRESULT IXAudio2Voice::SetOutputMatrix([In, Optional] IXAudio2Voice* pDestinationVoice,[None] UINT32 SourceChannels,[None] UINT32 DestinationChannels,[In, Buffer] const float* pLevelMatrix,[None] UINT32 OperationSet) + + + + Sets the volume level of each channel of the final output for the voice. These channels are mapped to the input channels of a specified destination voice. + + [in] Pointer to a destination for which to set volume levels. Note If the voice sends to a single target voice then specifying NULL will cause SetOutputMatrix to operate on that target voice. + [in] Confirms the output channel count of the voice. This is the number of channels that are produced by the last effect in the chain. + [in] Confirms the input channel count of the destination voice. + [in] Array of [SourceChannels ? DestinationChannels] volume levels sent to the destination voice. The level sent from source channel S to destination channel D is specified in the form pLevelMatrix[SourceChannels ? D + S]. For example, when rendering two-channel stereo input into 5.1 output that is weighted toward the front channels?but is absent from the center and low-frequency channels?the matrix might have the values shown in the following table. OutputLeft InputRight Input Left1.00.0 Right0.01.0 Front Center0.00.0 LFE0.00.0 Rear Left0.80.0 Rear Right0.00.8 Note that the left and right input are fully mapped to the output left and right channels; 80 percent of the left and right input is mapped to the rear left and right channels. See Remarks for more information on volume levels. + No documentation. + HRESULT IXAudio2Voice::SetOutputMatrix([In, Optional] IXAudio2Voice* pDestinationVoice,[None] UINT32 SourceChannels,[None] UINT32 DestinationChannels,[In, Buffer] const float* pLevelMatrix,[None] UINT32 OperationSet) + + + + Sets the volume level of each channel of the final output for the voice. These channels are mapped to the input channels of a specified destination voice. + + [in] Confirms the output channel count of the voice. This is the number of channels that are produced by the last effect in the chain. + [in] Confirms the input channel count of the destination voice. + [in] Array of [SourceChannels ? DestinationChannels] volume levels sent to the destination voice. The level sent from source channel S to destination channel D is specified in the form pLevelMatrix[SourceChannels ? D + S]. For example, when rendering two-channel stereo input into 5.1 output that is weighted toward the front channels?but is absent from the center and low-frequency channels?the matrix might have the values shown in the following table. OutputLeft InputRight Input Left1.00.0 Right0.01.0 Front Center0.00.0 LFE0.00.0 Rear Left0.80.0 Rear Right0.00.8 Note that the left and right input are fully mapped to the output left and right channels; 80 percent of the left and right input is mapped to the rear left and right channels. See Remarks for more information on volume levels. + [in] Identifies this call as part of a deferred batch. See the {{XAudio2 Operation Sets}} overview for more information. + No documentation. + HRESULT IXAudio2Voice::SetOutputMatrix([In, Optional] IXAudio2Voice* pDestinationVoice,[None] UINT32 SourceChannels,[None] UINT32 DestinationChannels,[In, Buffer] const float* pLevelMatrix,[None] UINT32 OperationSet) + + + +

Returns information about the creation flags, input channels, and sample rate of a voice.

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getvoicedetails + GetVoiceDetails + GetVoiceDetails + void IXAudio2Voice::GetVoiceDetails([Out] XAUDIO2_VOICE_DETAILS* pVoiceDetails) +
+ + +

Designates a new set of submix or mastering voices to receive the output of the voice.

+
+ +

This method is only valid for source and submix voices. Mastering voices can not send audio to another voice.

After calling SetOutputVoices a voice's current send levels will be replaced by a default send matrix. The method must be called to set a custom matrix for the new sendlist.

It is invalid to call SetOutputVoices from within a callback (that is, or ). If SetOutputVoices is called within a callback, it returns .

Note??Calling SetOutputVoices invalidates any send matrices previously set with .

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.setoutputvoices + SetOutputVoices + SetOutputVoices + HRESULT IXAudio2Voice::SetOutputVoices([In, Optional] const XAUDIO2_VOICE_SENDS* pSendList) +
+ + +

Gets the voice's filter parameters.

+
+ +

GetFilterParameters will fail if the voice was not created with the flag.

GetFilterParameters always returns this voice's actual current filter parameters. However, these may not match the parameters set by the most recent call: the actual parameters are only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

Note??GetFilterParameters is usable only on source and submix voices and has no effect on mastering voices.

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getfilterparameters + GetFilterParameters + GetFilterParameters + void IXAudio2Voice::GetFilterParameters([Out] XAUDIO2_FILTER_PARAMETERS* pParameters) +
+ + +

Gets the current overall volume level of the voice.

+
+ +

Volume levels are expressed as floating-point amplitude multipliers between -224 to 224, with a maximum gain of 144.5 dB. A volume level of 1 means there is no attenuation or gain and 0 means silence. Negative levels can be used to invert the audio's phase. See XAudio2 Volume and Pitch Control for additional information on volume control.

Note??GetVolume always returns the volume most recently set by . However, it may not actually be in effect yet: it only takes effect the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2voice.ixaudio2voice.getvolume + GetVolume + GetVolume + void IXAudio2Voice::GetVolume([Out] float* pVolume) +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Creates and configures a mastering voice. + + an instance of + [in] Number of channels the mastering voice expects in its input audio. InputChannels must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. InputChannels can be set to XAUDIO2_DEFAULT_CHANNELS, with the default being determined by the current platform. Windows Attempts to detect the system speaker configuration setup. Xbox 360 Defaults to 5.1 surround. + [in] Sample rate of the input audio data of the mastering voice. This rate must be a multiple of XAUDIO2_QUANTUM_DENOMINATOR. InputSampleRate must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. InputSampleRate can be set to XAUDIO2_DEFAULT_SAMPLERATE, with the default being determined by the current platform. Windows Windows XP defaults to 44100. Windows Vista and Windows 7 default to the setting specified in the Sound Control Panel. The default for this setting is 44100 (or 48000 if required by the driver). Xbox 360 Defaults to 48000. + [in] Index of the output device that will be sent input by the mastering voice. Specifying the default value of 0 causes XAudio2 to select the global default audio device. + HRESULT IXAudio2::CreateMasteringVoice([Out] IXAudio2MasteringVoice** ppMasteringVoice,[None] UINT32 InputChannels,[None] UINT32 InputSampleRate,[None] UINT32 Flags,[None] UINT32 DeviceIndex,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + +

Use a source voice to submit audio data to the XAudio2 processing pipeline.You must send voice data to a mastering voice to be heard, either directly or through intermediate submix voices. +

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice + IXAudio2SourceVoice + IXAudio2SourceVoice +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Starts consumption and processing of audio by the voice. Delivers the result to any connected submix or mastering voices, or to the output device.

+
+

Flags that control how the voice is started. Must be 0.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

If the XAudio2 engine is stopped, the voice stops running. However, it remains in the started state, so that it starts running again as soon as the engine starts.

When first created, source voices are in the stopped state. Submix and mastering voices are in the started state.

After Start is called it has no further effect if called again before is called. In addition multiple calls to Start without matching calls to will result in warning messages in debug builds.

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.start + HRESULT IXAudio2SourceVoice::Start([In] unsigned int Flags,[In] unsigned int OperationSet) + IXAudio2SourceVoice::Start +
+ + +

Stops consumption of audio by the current voice.

+
+

Flags that control how the voice is stopped. Can be 0 or the following:

ValueDescription
Continue emitting effect output after the voice is stopped.?

?

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

All source buffers that are queued on the voice and the current cursor position are preserved. This allows the voice to continue from where it left off, when it is restarted. The method can be used to flush queued source buffers.

By default, any pending output from voice effects?for example, reverb tails?is not played. Instead, the voice is immediately rendered silent. The flag can be used to continue emitting effect output after the voice stops running.

A voice stopped with the flag stops consuming source buffers, but continues to process its effects and send audio to its destination voices. A voice in this state can later be stopped completely by calling Stop again with the Flags argument set to 0. This enables stopping a voice with , waiting sufficient time for any audio being produced by its effects to finish, and then fully stopping the voice by calling Stop again without . This technique allows voices with effects to be stopped gracefully while ensuring idle voices will not continue to be processed after they have finished producing audio.

Stop is always asynchronous, even if called within a callback.

Note??XAudio2 never calls any voice callbacks for a voice if the voice is stopped (even if it was stopped with ).

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.stop + HRESULT IXAudio2SourceVoice::Stop([In] XAUDIO2_PLAY_FLAGS Flags,[In] unsigned int OperationSet) + IXAudio2SourceVoice::Stop +
+ + +

Adds a new audio buffer to the voice queue.

+
+

Pointer to an structure to queue.

+

Pointer to an additional structure used when submitting WMA data.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

The voice processes and plays back the buffers in its queue in the order that they were submitted.

The structure includes details about the audio buffer's location and size, the part of the buffer that should actually be played, the loop region (if any) and loop count, the context reference to be used in any callbacks relating to this buffer, and an optional flag that indicates that it is the last buffer of a contiguous sound.

If the voice is started and has no buffers queued, the new buffer will start playing immediately. If the voice is stopped, the buffer is added to the voice's queue and will be played when the voice starts.

If only part of the given buffer should be played, the PlayBegin and PlayLength fields in the can be used to specify the region to be played. A PlayLength value of 0 means to play the entire buffer (and in this case PlayBegin must be 0 as well).

If all or part of the buffer should be played in a continuous loop, the LoopBegin, LoopLength and LoopCount fields in can be used to specify the characteristics of the loop region. A LoopBegin value of means that no looping should be performed, and in this case LoopLength and LoopCount must be given as 0. If a loop region is specified, it must be non-empty (LoopLength > 0), and the loop count must be between 1 and inclusive (or to specify an endless loop which will only end when is called). A loop count of N means to skip backwards N times, i.e. to play the loop region N+1 times.

If an explicit play region is specified, it must begin and end within the given audio buffer (or, in the compressed case, within the set of samples that the buffer will decode to). In addition, the loop region cannot end past the end of the play region.

Xbox 360
For certain audio formats, there may be additional restrictions on the valid endpoints of any play or loop regions; e.g. for XMA buffers, the regions can only begin or end at 128-sample boundaries in the decoded audio. +

?

The pBuffer reference can be reused or freed immediately after calling this method, but the actual audio data referenced by pBuffer must remain valid until the buffer has been fully consumed by XAudio2 (which is indicated by the callback).

Up to buffers can be queued on a voice at any one time.

SubmitSourceBuffer takes effect immediately when called from an XAudio2 callback with an OperationSet of . +

Xbox 360
This method can be called from an Xbox system thread (most other XAudio2 methods cannot). However, a maximum of two source buffers can be submitted from a system thread at a time.

?

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.submitsourcebuffer + HRESULT IXAudio2SourceVoice::SubmitSourceBuffer([In] const XAUDIO2_BUFFER* pBuffer,[In] const void* pBufferWMA) + IXAudio2SourceVoice::SubmitSourceBuffer +
+ + +

Removes all pending audio buffers from the voice queue.

+
+

Returns if successful, an error code otherwise.

+ +

If the voice is started, the buffer that is currently playing is not removed from the queue.

FlushSourceBuffers can be called regardless of whether the voice is currently started or stopped.

For every buffer removed, an OnBufferEnd callback will be made, but none of the other per-buffer callbacks (OnBufferStart, OnStreamEnd or OnLoopEnd) will be made.

FlushSourceBuffers does not change a the voice's running state, so if the voice was playing a buffer prior to the call, it will continue to do so, and will deliver all the callbacks for the buffer normally. This means that the OnBufferEnd callback for this buffer will take place after the OnBufferEnd callbacks for the buffers that were removed. Thus, an XAudio2 client that calls FlushSourceBuffers cannot expect to receive OnBufferEnd callbacks in the order in which the buffers were submitted.

No warnings for starvation of the buffer queue will be emitted when the currently playing buffer completes; it is assumed that the client has intentionally removed the buffers that followed it. However, there may be an audio pop if this buffer does not end at a zero crossing. If the application must ensure that the flush operation takes place while a specific buffer is playing?perhaps because the buffer ends with a zero crossing?it must call FlushSourceBuffers from a callback, so that it executes synchronously.

Calling FlushSourceBuffers after a voice is stopped and then submitting new data to the voice resets all of the voice's internal counters.

A voice's state is not considered reset after calling FlushSourceBuffers until the OnBufferEnd callback occurs (if a buffer was previously submitted) or returns with . BuffersQueued == 0. For example, if you stop a voice and call FlushSourceBuffers, it's still not legal to immediately call (which requires the voice to not have any buffers currently queued), until either of the previously mentioned conditions are met.

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.flushsourcebuffers + HRESULT IXAudio2SourceVoice::FlushSourceBuffers() + IXAudio2SourceVoice::FlushSourceBuffers +
+ + +

Notifies an XAudio2 voice that no more buffers are coming after the last one that is currently in its queue.

+
+

Returns if successful, an error code otherwise.

+ +

Discontinuity suppresses the warnings that normally occur in the debug build of XAudio2 when a voice runs out of audio buffers to play. It is preferable to mark the final buffer of a stream by tagging it with the flag, but in some cases the client may not know that a buffer is the end of a stream until after the buffer has been submitted.

Because calling Discontinuity is equivalent to applying the flag retroactively to the last buffer submitted, an OnStreamEnd callback will be made when this buffer completes. +

Note??XAudio2 may consume its entire buffer queue and emit a warning before the Discontinuity call takes effect, so Discontinuity is not guaranteed to suppress the warnings.

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.discontinuity + HRESULT IXAudio2SourceVoice::Discontinuity() + IXAudio2SourceVoice::Discontinuity +
+ + +

Stops looping the voice when it reaches the end of the current loop region.

+
+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

If the cursor for the voice is not in a loop region, ExitLoop does nothing.

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.exitloop + HRESULT IXAudio2SourceVoice::ExitLoop([In] unsigned int OperationSet) + IXAudio2SourceVoice::ExitLoop +
+ + +

Returns the voice's current cursor position data.

+
+

Pointer to an structure containing the state of the voice.

+ +

If a client needs to get the correlated positions of several voices (for example, to know exactly which sample of a given voice is playing when a given sample of another voice is playing), it must make GetState calls in an XAudio2 engine callback. This ensures that none of the voices advance while the calls are being made. See the XAudio2 Callbacks overview for information about using XAudio2 callbacks.

Note that the DirectX SDK versions of XAUDIO2 do not take the Flags parameter for GetState.

+
+ + hh405047 + void IXAudio2SourceVoice::GetState([Out] XAUDIO2_VOICE_STATE* pVoiceState) + IXAudio2SourceVoice::GetState +
+ + +

Sets the frequency adjustment ratio of the voice.

+
+

Frequency adjustment ratio. This value must be between and the MaxFrequencyRatio parameter specified when the voice was created (see ). currently is 0.0005, which allows pitch to be lowered by up to 11 octaves.

+

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

+ +

Frequency adjustment is expressed as source frequency / target frequency. Changing the frequency ratio changes the rate audio is played on the voice. A ratio greater than 1.0 will cause the audio to play faster and a ratio less than 1.0 will cause the audio to play slower. Additionally, the frequency ratio affects the pitch of audio on the voice. As an example, a value of 1.0 has no effect on the audio, whereas a value of 2.0 raises pitch by one octave and 0.5 lowers it by one octave.

If SetFrequencyRatio is called specifying a Ratio value outside the valid range, the method will set the frequency ratio to the nearest valid value. A warning also will be generated for debug builds.

Note?? always returns the voice's actual current frequency ratio. However, this may not match the ratio set by the most recent call: the actual ratio is only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.setfrequencyratio + HRESULT IXAudio2SourceVoice::SetFrequencyRatio([In] float Ratio,[In] unsigned int OperationSet) + IXAudio2SourceVoice::SetFrequencyRatio +
+ + +

Returns the frequency adjustment ratio of the voice.

+
+

Returns the current frequency adjustment ratio if successful.

+ +

GetFrequencyRatio always returns the voice's actual current frequency ratio. However, this may not match the ratio set by the most recent call: the actual ratio is only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

For information on frequency ratios, see . +

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.getfrequencyratio + void IXAudio2SourceVoice::GetFrequencyRatio([Out] float* pRatio) + IXAudio2SourceVoice::GetFrequencyRatio +
+ + +

Reconfigures the voice to consume source data at a different sample rate than the rate specified when the voice was created.

+
+

The new sample rate the voice should process submitted data at. Valid sample rates are 1kHz to 200kHz.

+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of error codes.

+ +

The SetSourceSampleRate method supports reuse of XAudio2 voices by allowing a voice to play sounds with a variety of sample rates. To use SetSourceSampleRate the voice must have been created without the or flags and must not have any buffers currently queued.

The typical use of SetSourceSampleRate is to support voice pooling. For example to support voice pooling an application would precreate all the voices it expects to use. Whenever a new sound will be played the application chooses an inactive voice or ,if all voices are busy, picks the least important voice and calls SetSourceSampleRate on the voice with the new sound's sample rate. After SetSourceSampleRate has been called on the voice, the application can immediately start submitting and playing buffers with the new sample rate. This allows the application to avoid the overhead of creating and destroying voices frequently during gameplay. +

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.setsourcesamplerate + HRESULT IXAudio2SourceVoice::SetSourceSampleRate([In] unsigned int NewSourceSampleRate) + IXAudio2SourceVoice::SetSourceSampleRate +
+ + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + True to enable delegate callbacks on this instance. Default is false + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + True to enable delegate callbacks on this instance. Default is false + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + [in] Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between XAUDIO2_MIN_FREQ_RATIO and XAUDIO2_MAX_FREQ_RATIO. Subsequent calls to are clamped between XAUDIO2_MIN_FREQ_RATIO and MaxFrequencyRatio. The maximum value for this argument is defined as XAUDIO2_MAX_FREQ_RATIO, which allows pitch to be raised by up to 10 octaves. If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0). Xbox 360 For XMA voices there is an additional restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message. Note XAudio2's memory usage can be reduced by using the lowest possible MaxFrequencyRatio value. + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + [in] Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between XAUDIO2_MIN_FREQ_RATIO and XAUDIO2_MAX_FREQ_RATIO. Subsequent calls to are clamped between XAUDIO2_MIN_FREQ_RATIO and MaxFrequencyRatio. The maximum value for this argument is defined as XAUDIO2_MAX_FREQ_RATIO, which allows pitch to be raised by up to 10 octaves. If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0). Xbox 360 For XMA voices there is an additional restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message. Note XAudio2's memory usage can be reduced by using the lowest possible MaxFrequencyRatio value. + [in, optional] Pointer to a client-provided callback interface, . + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice with callback through delegates. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + [in] Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between XAUDIO2_MIN_FREQ_RATIO and XAUDIO2_MAX_FREQ_RATIO. Subsequent calls to are clamped between XAUDIO2_MIN_FREQ_RATIO and MaxFrequencyRatio. The maximum value for this argument is defined as XAUDIO2_MAX_FREQ_RATIO, which allows pitch to be raised by up to 10 octaves. If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0). Xbox 360 For XMA voices there is an additional restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message. Note XAudio2's memory usage can be reduced by using the lowest possible MaxFrequencyRatio value. + if set to true [enable callback events]. + No enableCallbackEvents. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + [in] Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between XAUDIO2_MIN_FREQ_RATIO and XAUDIO2_MAX_FREQ_RATIO. Subsequent calls to are clamped between XAUDIO2_MIN_FREQ_RATIO and MaxFrequencyRatio. The maximum value for this argument is defined as XAUDIO2_MAX_FREQ_RATIO, which allows pitch to be raised by up to 10 octaves. If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0). Xbox 360 For XMA voices there is an additional restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message. Note XAudio2's memory usage can be reduced by using the lowest possible MaxFrequencyRatio value. + [in, optional] Pointer to a client-provided callback interface, . + [in, optional] Pointer to a list of XAUDIO2_EFFECT_CHAIN structures that describe an effect chain to use in the source voice. + No documentation. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a source voice with callback through delegates. + + an instance of + [in] Pointer to a structure. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports voice types of PCM, xWMA, ADPCM (Windows only), and XMA (Xbox 360 only). XAudio2 supports the following PCM formats. 8-bit (unsigned) integer PCM 16-bit integer PCM (Optimal format for XAudio2) 20-bit integer PCM (either in 24 or 32 bit containers) 24-bit integer PCM (either in 24 or 32 bit containers) 32-bit integer PCM 32-bit float PCM (Preferred format after 16-bit integer) The number of channels in a source voice must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. The sample rate of a source voice must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. Note Data formats such as XMA, {{ADPCM}}, and {{xWMA}} that require more information than provided by have a structure as the first member in their format structure. When creating a source voice with one of those formats cast the format's structure as a structure and use it as the value for pSourceFormat. + [in] Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following: ValueDescriptionXAUDIO2_VOICE_NOPITCHNo pitch control is available on the voice.?XAUDIO2_VOICE_NOSRCNo sample rate conversion is available on the voice, the voice's outputs must have the same sample rate.Note The XAUDIO2_VOICE_NOSRC flag causes the voice to behave as though the XAUDIO2_VOICE_NOPITCH flag also is specified. ?XAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.?XAUDIO2_VOICE_MUSICThe voice is used to play background music. The system automatically can replace the voice with music selected by the user.? + [in] Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between XAUDIO2_MIN_FREQ_RATIO and XAUDIO2_MAX_FREQ_RATIO. Subsequent calls to are clamped between XAUDIO2_MIN_FREQ_RATIO and MaxFrequencyRatio. The maximum value for this argument is defined as XAUDIO2_MAX_FREQ_RATIO, which allows pitch to be raised by up to 10 octaves. If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0). Xbox 360 For XMA voices there is an additional restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message. Note XAudio2's memory usage can be reduced by using the lowest possible MaxFrequencyRatio value. + if set to true [enable callback events]. + [in, optional] Pointer to a list of XAUDIO2_EFFECT_CHAIN structures that describe an effect chain to use in the source voice. + No enableCallbackEvents. + HRESULT IXAudio2::CreateSourceVoice([Out] IXAudio2SourceVoice** ppSourceVoice,[In] const WAVEFORMATEX* pSourceFormat,[None] UINT32 Flags,[None] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Starts consumption and processing of audio by the voice. Delivers the result to any connected submix or mastering voices, or to the output device, with CommitNow changes. + + No documentation. + HRESULT IXAudio2SourceVoice::Start([None] UINT32 Flags,[None] UINT32 OperationSet) + + + + Sets the frequency ratio. + + The ratio. + + + + + Starts consumption and processing of audio by the voice. Delivers the result to any connected submix or mastering voices, or to the output device. + + [in] Identifies this call as part of a deferred batch. See the {{XAudio2 Operation Sets}} overview for more information. + No documentation. + HRESULT IXAudio2SourceVoice::Start([None] UINT32 Flags,[None] UINT32 OperationSet) + + + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IXAudio2SourceVoice::SubmitSourceBuffer([In] const XAUDIO2_BUFFER* pBuffer,[In, Optional] const XAUDIO2_BUFFER_WMA* pBufferWMA) + + + +

Returns the voice's current cursor position data.

+
+ +

If a client needs to get the correlated positions of several voices (for example, to know exactly which sample of a given voice is playing when a given sample of another voice is playing), it must make GetState calls in an XAudio2 engine callback. This ensures that none of the voices advance while the calls are being made. See the XAudio2 Callbacks overview for information about using XAudio2 callbacks.

Note that the DirectX SDK versions of XAUDIO2 do not take the Flags parameter for GetState.

+
+ + hh405047 + GetState + GetState + void IXAudio2SourceVoice::GetState([Out] XAUDIO2_VOICE_STATE* pVoiceState) +
+ + +

Returns the frequency adjustment ratio of the voice.

+
+ +

GetFrequencyRatio always returns the voice's actual current frequency ratio. However, this may not match the ratio set by the most recent call: the actual ratio is only changed the next time the audio engine runs after the call (or after the corresponding call, if was called with a deferred operation ID).

For information on frequency ratios, see . +

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.getfrequencyratio + GetFrequencyRatio + GetFrequencyRatio + void IXAudio2SourceVoice::GetFrequencyRatio([Out] float* pRatio) +
+ + +

Reconfigures the voice to consume source data at a different sample rate than the rate specified when the voice was created.

+
+ +

The SetSourceSampleRate method supports reuse of XAudio2 voices by allowing a voice to play sounds with a variety of sample rates. To use SetSourceSampleRate the voice must have been created without the or flags and must not have any buffers currently queued.

The typical use of SetSourceSampleRate is to support voice pooling. For example to support voice pooling an application would precreate all the voices it expects to use. Whenever a new sound will be played the application chooses an inactive voice or ,if all voices are busy, picks the least important voice and calls SetSourceSampleRate on the voice with the new sound's sample rate. After SetSourceSampleRate has been called on the voice, the application can immediately start submitting and playing buffers with the new sample rate. This allows the application to avoid the overhead of creating and destroying voices frequently during gameplay. +

+
+ + microsoft.directx_sdk.ixaudio2sourcevoice.ixaudio2sourcevoice.setsourcesamplerate + SetSourceSampleRate + SetSourceSampleRate + HRESULT IXAudio2SourceVoice::SetSourceSampleRate([In] unsigned int NewSourceSampleRate) +
+ + + Occurs just before the processing pass for the voice begins. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + + Occurs just after the processing pass for the voice ends. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + + Occurs when the voice has just finished playing a contiguous audio stream. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + + Occurs when the voice is about to start processing a new audio buffer. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + + Occurs when the voice finishes processing a buffer. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + + Occurs when a critical error occurs during voice processing. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + + Occurs when [voice error]. + + + In order to use this delegate, this instance must have been initialized with events delegate support. + + + + +

The interface contains methods that notify the client when certain events happen in a given .

This interface should be implemented by the XAudio2 client. XAudio2 calls these methods through an interface reference provided by the client in the method. Methods in this interface return void, rather than an . +

See the XAudio2 Callbacks topic for restrictions on callback implementation.

+
+ + microsoft.directx_sdk.ixaudio2voicecallback.ixaudio2voicecallback + IXAudio2VoiceCallback + IXAudio2VoiceCallback +
+ + + Called during each processing pass for each voice, just before XAudio2 reads data from the voice's buffer queue. + + The number of bytes that must be submitted immediately to avoid starvation. This allows the implementation of just-in-time streaming scenarios; the client can keep the absolute minimum data queued on the voice at all times, and pass it fresh data just before the data is required. This model provides the lowest possible latency attainable with XAudio2. For xWMA and XMA data BytesRequired will always be zero, since the concept of a frame of xWMA or XMA data is meaningless. Note In a situation where there is always plenty of data available on the source voice, BytesRequired should always report zero, because it doesn't need any samples immediately to avoid glitching. + void IXAudio2VoiceCallback::OnVoiceProcessingPassStart([None] UINT32 BytesRequired) + + + + Called just after the processing pass for the voice ends. + + void IXAudio2VoiceCallback::OnVoiceProcessingPassEnd() + + + + Called when the voice has just finished playing a contiguous audio stream. + + void IXAudio2VoiceCallback::OnStreamEnd() + + + + Called when the voice is about to start processing a new audio buffer. + + Context pointer that was assigned to the pContext member of the structure when the buffer was submitted. + void IXAudio2VoiceCallback::OnBufferStart([None] void* pBufferContext) + + + + Called when the voice finishes processing a buffer. + + Context pointer assigned to the pContext member of the structure when the buffer was submitted. + void IXAudio2VoiceCallback::OnBufferEnd([None] void* pBufferContext) + + + + Called when the voice reaches the end position of a loop. + + Context pointer that was assigned to the pContext member of the structure when the buffer was submitted. + void IXAudio2VoiceCallback::OnLoopEnd([None] void* pBufferContext) + + + + Called when a critical error occurs during voice processing. + + Context pointer that was assigned to the pContext member of the structure when the buffer was submitted. + The HRESULT code of the error encountered. + void IXAudio2VoiceCallback::OnVoiceError([None] void* pBufferContext,[None] HRESULT Error) + + + +

A submix voice is used primarily for performance improvements and effects processing.

+
+ +

Data buffers cannot be submitted directly to submix voices and will not be audible unless submitted to a mastering voice. A submix voice can be used to ensure that a particular set of voice data is converted to the same format and/or to have a particular effect chain processed on the collective result. +

inherits directly from , but does not implement methods specific to submix voices. The interface type exists solely because some of the base class methods are implemented differently for submix voices. Having a separate type for these voices helps client code to distinguish the different voice types and to benefit from C++ type safety.

+
+ + microsoft.directx_sdk.ixaudio2submixvoice.ixaudio2submixvoice + IXAudio2SubmixVoice + IXAudio2SubmixVoice +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + + Creates and configures a submix voice on the default audio device, with stereo channels at 44100Hz. + + an instance of + HRESULT IXAudio2::CreateSubmixVoice([Out] IXAudio2SubmixVoice** ppSubmixVoice,[None] UINT32 InputChannels,[None] UINT32 InputSampleRate,[None] UINT32 Flags,[None] UINT32 DeviceIndex,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a submix voice on the default audio device and 44100Hz. + + an instance of + [in] Number of channels the mastering voice expects in its input audio. InputChannels must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. InputChannels can be set to XAUDIO2_DEFAULT_CHANNELS, with the default being determined by the current platform. Windows Attempts to detect the system speaker configuration setup. Xbox 360 Defaults to 5.1 surround. + HRESULT IXAudio2::CreateSubmixVoice([Out] IXAudio2SubmixVoice** ppSubmixVoice,[None] UINT32 InputChannels,[None] UINT32 InputSampleRate,[None] UINT32 Flags,[None] UINT32 DeviceIndex,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a submix voice on the default audio device. + + an instance of + [in] Number of channels the mastering voice expects in its input audio. InputChannels must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. InputChannels can be set to XAUDIO2_DEFAULT_CHANNELS, with the default being determined by the current platform. Windows Attempts to detect the system speaker configuration setup. Xbox 360 Defaults to 5.1 surround. + [in] Sample rate of the input audio data of the mastering voice. This rate must be a multiple of XAUDIO2_QUANTUM_DENOMINATOR. InputSampleRate must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. InputSampleRate can be set to XAUDIO2_DEFAULT_SAMPLERATE, with the default being determined by the current platform. Windows Windows XP defaults to 44100. Windows Vista and Windows 7 default to the setting specified in the Sound Control Panel. The default for this setting is 44100 (or 48000 if required by the driver). Xbox 360 Defaults to 48000. + HRESULT IXAudio2::CreateSubmixVoice([Out] IXAudio2SubmixVoice** ppSubmixVoice,[None] UINT32 InputChannels,[None] UINT32 InputSampleRate,[None] UINT32 Flags,[None] UINT32 DeviceIndex,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a submix voice. + + an instance of + [in] Number of channels in the input audio data of the submix voice. InputChannels must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. + [in] Sample rate of the input audio data of submix voice. This rate must be a multiple of XAUDIO2_QUANTUM_DENOMINATOR. InputSampleRate must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. + [in] Flags that specify the behavior of the submix voice. Can be 0 or the following: ValueDescriptionXAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.? + [in] An arbitrary number that specifies when this voice is processed with respect to other submix voices, if the XAudio2 engine is running other submix voices. The voice is processed after all other voices that include a smaller ProcessingStage value, and before all other voices that include a larger ProcessingStage value. Voices that include the same ProcessingStage value are processed in any order. A submix voice cannot send to another submix voice with a lower or equal ProcessingStage value; this prevents audio being lost due to a submix cycle. + No documentation. + HRESULT IXAudio2::CreateSubmixVoice([Out] IXAudio2SubmixVoice** ppSubmixVoice,[None] UINT32 InputChannels,[None] UINT32 InputSampleRate,[None] UINT32 Flags,[None] UINT32 ProcessingStage,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + + Creates and configures a submix voice with an effect chain. + + an instance of + [in] Number of channels in the input audio data of the submix voice. InputChannels must be less than or equal to XAUDIO2_MAX_AUDIO_CHANNELS. + [in] Sample rate of the input audio data of submix voice. This rate must be a multiple of XAUDIO2_QUANTUM_DENOMINATOR. InputSampleRate must be between XAUDIO2_MIN_SAMPLE_RATE and XAUDIO2_MAX_SAMPLE_RATE. + [in] Flags that specify the behavior of the submix voice. Can be 0 or the following: ValueDescriptionXAUDIO2_VOICE_USEFILTERThe filter effect should be available on this voice.? + [in] An arbitrary number that specifies when this voice is processed with respect to other submix voices, if the XAudio2 engine is running other submix voices. The voice is processed after all other voices that include a smaller ProcessingStage value, and before all other voices that include a larger ProcessingStage value. Voices that include the same ProcessingStage value are processed in any order. A submix voice cannot send to another submix voice with a lower or equal ProcessingStage value; this prevents audio being lost due to a submix cycle. + [in, optional] Pointer to a list of XAUDIO2_EFFECT_CHAIN structures that describe an effect chain to use in the submix voice. + No documentation. + HRESULT IXAudio2::CreateSubmixVoice([Out] IXAudio2SubmixVoice** ppSubmixVoice,[None] UINT32 InputChannels,[None] UINT32 InputSampleRate,[None] UINT32 Flags,[None] UINT32 ProcessingStage,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + + + +

is the interface for the XAudio2 object that manages all audio engine states, the audio processing thread, the voice graph, and so forth.

This is the only XAudio2 interface that is derived from the COM interface. It controls the lifetime of the XAudio2 object using two methods derived from IXAudio2::AddRef and IXAudio2::Release. No other XAudio2 objects are reference-counted. Their lifetimes are explicitly controlled using create and destroy calls, and are bounded by the lifetime of the XAudio2 object that owns them.

+
+ +

The DirectX SDK versions of XAUDIO2 included three member functions that are not present in the Windows 8 version: GetDeviceCount, GetDeviceDetails, and Initialize. These enumeration methods are no longer provided and standard Windows Audio APIs should be used for device enumeration instead.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2 + IXAudio2 + IXAudio2 +
+ + Constant MaximumBufferBytes. + XAUDIO2_MAX_BUFFER_BYTES + + + Constant MaximumQueuedBuffers. + XAUDIO2_MAX_QUEUED_BUFFERS + + + Constant MaximumAudioChannels. + XAUDIO2_MAX_AUDIO_CHANNELS + + + Constant MinimumSampleRate. + XAUDIO2_MIN_SAMPLE_RATE + + + Constant MaximumSampleRate. + XAUDIO2_MAX_SAMPLE_RATE + + + Constant MaximumVolumeLevel. + XAUDIO2_MAX_VOLUME_LEVEL + + + Constant MinimumFrequencyRatio. + XAUDIO2_MIN_FREQ_RATIO + + + Constant MaximumFrequencyRatio. + XAUDIO2_MAX_FREQ_RATIO + + + Constant DefaultFrequencyRatio. + XAUDIO2_DEFAULT_FREQ_RATIO + + + Constant MaximumFilterOneOverQ. + XAUDIO2_MAX_FILTER_ONEOVERQ + + + Constant MaximumFilterFrequency. + XAUDIO2_MAX_FILTER_FREQUENCY + + + Constant MaximumLoopCount. + XAUDIO2_MAX_LOOP_COUNT + + + Constant CommitNow. + XAUDIO2_COMMIT_NOW + + + Constant CommitAll. + XAUDIO2_COMMIT_ALL + + + Constant NoLoopRegion. + XAUDIO2_NO_LOOP_REGION + + + Constant DefaultChannels. + XAUDIO2_DEFAULT_CHANNELS + + + Constant DefaultSampleRate. + XAUDIO2_DEFAULT_SAMPLERATE + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + Constant CLSID_XAudio2. + CLSID_XAudio2 + + + Constant CLSID_XAudio2_Debug. + CLSID_XAudio2_Debug + + + Constant IID_IXAudio2. + IID_IXAudio2 + + + + No documentation. + + No documentation. + No documentation. + + HRESULT IXAudio2::GetDeviceCount([Out] unsigned int* pCount) + IXAudio2::GetDeviceCount + + + +

This topic shows how to integrate X3DAudio with XAudio2. You can use X3DAudio to provide the volume and pitch values for XAudio2 voices and the parameters for the XAudio2 built in reverb effect. This topic assumes that you have created an audio graph as described in How to: Build a Basic Audio Processing Graph.

To initialize X3DAudio

  1. Initialize X3DAudio by calling .

    The function takes flags indicating the speaker setup. On the Xbox 360, this will always be a six speaker configuration. Additional parameters are the speed of sound in user-defined world units per second, and a handle to return an instance of the X3DAudio engine.

    Note??For the DirectX SDK versions of XAUDIO2, you will need to call to obtain the output format's channel mask.

    DWORD dwChannelMask;       	
    +            pMasteringVoice->GetChannelMask( &dwChannelMask );        X3DAUDIO_HANDLE X3DInstance;	
    +            ( dwChannelMask, X3DAUDIO_SPEED_OF_SOUND, X3DInstance );	
    +            
  2. Create instances of the and structures.

    The structure represents the position of whatever is hearing the sound. Generally, this is the position of the camera or a position close to it. The structure represents the position of the thing making the sound. There will be one structure for each sound that is being tracked.

    Members of the structures that will not be updated in a game loop should be initialized here. Most members of the structures can simply be initialized to zero. However, some members of need to be set to be initialized to non-zero values. The ChannelCount member of the needs to be initialized to the number of channels in the voice the emitter represents. Also, the CurveDistanceScaler member of must be in the range FLT_MIN to FLT_MAX. +

     Listener = {0};	
    +             Emitter = {0};	
    +            Emitter.ChannelCount = 1;	
    +            Emitter.CurveDistanceScaler = FLT_MIN;	
    +            
  3. Create an instance of the structure.

    The structure is used to return results calculated by . The function does not allocate memory for any of its parameters. This means that you need to allocate arrays for the structure's pMatrixCoefficients and pDelayTimes members if you intend to use them. In addition, you need to set the SrcChannelCount and DstChannelCount members to the number of channels in the emitter's source and destination voices.

     DSPSettings = {0};	
    +            FLOAT32 * matrix = new FLOAT32[deviceDetails.OutputFormat.Format.nChannels];	
    +            DSPSettings.SrcChannelCount = 1;	
    +            DSPSettings.DstChannelCount = deviceDetails.OutputFormat.Format.nChannels;	
    +            DSPSettings.pMatrixCoefficients = matrix;

    Note??For XAUDIO 2.8 in Windows 8 use on the mastering voice to obtain the number of InputChannels for nChannels above. For the DirectX SDK versions of XAUDIO2 you use to obtain the output format's number of channels for nChannels above.

Perform these steps once every two to three frames to calculate new settings and apply them. In this example, a source voice is sending directly to the mastering voice and to a submix voice with a reverb effect applied to it.

To use X3DAudio to calculate and apply new 3D audio settings

  1. Update the and structures with their current position, velocity, and orientation.

    Emitter.OrientFront = EmitterOrientFront;	
    +            Emitter.OrientTop = EmitterOrientTop;	
    +            Emitter.Position = EmitterPosition;	
    +            Emitter.Velocity = EmitterVelocity;	
    +            Listener.OrientFront = ListenerOrientFront;	
    +            Listener.OrientTop = ListenerOrientTop;	
    +            Listener.Position = ListenerPosition;	
    +            Listener.Velocity = ListenerVelocity;	
    +            
  2. Call to calculate new settings for the voices.

    The parameters for will be the updated and structures. The flags will indicate what values should calculate, and which structure will hold the results of the calculations performed.

    (X3DInstance, &Listener, &Emitter,  |  |  | , &DSPSettings );
  3. Use and to apply the volume and pitch values to the source voice.

    pSFXSourceVoice->SetOutputMatrix( pMasterVoice, 1, deviceDetails.OutputFormat.Format.nChannels, DSPSettings.pMatrixCoefficients ) ;	
    +            pSFXSourceVoice->SetFrequencyRatio(DSPSettings.DopplerFactor);	
    +            
  4. Use to apply the calculated reverb level to the submix voice.

    pSFXSourceVoice->SetOutputMatrix(pSubmixVoice, 1, 1, &DSPSettings.ReverbLevel);	
    +            
  5. Use to apply the calculated low pass filter direct coefficient to the source voice.

     FilterParameters = { LowPassFilter, 2.0f * sinf(X3DAUDIO_PI/6.0f * DSPSettings.LPFDirectCoefficient), 1.0f };	
    +            pSFXSourceVoice->SetFilterParameters(&FilterParameters);	
    +            
+
+ No documentation. + No documentation. + No documentation. + + ee415798 + HRESULT IXAudio2::GetDeviceDetails([In] unsigned int Index,[Out] XAUDIO2_DEVICE_DETAILS* pDeviceDetails) + IXAudio2::GetDeviceDetails +
+ + + No documentation. + + No documentation. + No documentation. + No documentation. + + HRESULT IXAudio2::Initialize([In] unsigned int Flags,[In] XAUDIO2_WINDOWS_PROCESSOR_SPECIFIER XAudio2Processor) + IXAudio2::Initialize + + + +

Adds an reference to the XAudio2 engine callback list.

+
+ No documentation. +

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

This method can be called multiple times, allowing different components or layers of the same application to manage their own engine callback implementations separately.

It is invalid to call RegisterForCallbacks from within a callback (that is, or ). If RegisterForCallbacks is called within a callback, it returns .

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.registerforcallbacks + HRESULT IXAudio2::RegisterForCallbacks([In] IXAudio2EngineCallback* pCallback) + IXAudio2::RegisterForCallbacks +
+ + +

Removes an reference from the XAudio2 engine callback list.

+
+ No documentation. + +

It is invalid to call UnregisterForCallbacks from within a callback (that is, or ).

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.unregisterforcallbacks + void IXAudio2::UnregisterForCallbacks([In] IXAudio2EngineCallback* pCallback) + IXAudio2::UnregisterForCallbacks +
+ + +

Creates and configures a source voice.

+
+

If successful, returns a reference to the new object.

+

Pointer to a one of the structures in the table below. This structure contains the expected format for all audio buffers submitted to the source voice. XAudio2 supports PCM and ADPCM voice types.

Format tagWave format structureSize (in bytes)
(0x0001) PCMWAVEFORMAT 16
-or- 18
(0x0003) [32-bit] PCMWAVEFORMAT 18
(0x0002) [MS-ADPCM] ADPCMWAVEFORMAT 50
(0xFFFE) 40

?

XAudio2 supports the following PCM formats.

  • 8-bit (unsigned) integer PCM
  • 16-bit integer PCM (optimal format for XAudio2)
  • 20-bit integer PCM (either in 24 or 32 bit containers)
  • 24-bit integer PCM (either in 24 or 32 bit containers)
  • 32-bit integer PCM
  • 32-bit float PCM (preferred format after 16-bit integer)

The number of channels in a source voice must be less than or equal to . The sample rate of a source voice must be between and .

Note??PCM data formats such as PCMWAVEFORMAT and ADPCMWAVEFORMAT that require more information than provided by have a structure as the first member in their format structures. When you create a source voice with one of those formats, cast the format's structure as a structure and use it as the value for pSourceFormat.

+

Flags that specify the behavior of the source voice. A flag can be 0 or a combination of one or more of the following:

ValueDescription
No pitch control is available on the voice.?
No sample rate conversion is available on the voice. The voice's outputs must have the same sample rate.

Note??The flag causes the voice to behave as though the flag also is specified.

The filter effect should be available on this voice.?

?

Note??The flag is not supported on Windows.

+

Highest allowable frequency ratio that can be set on this voice. The value for this argument must be between and . Subsequent calls to are clamped between and MaxFrequencyRatio. The maximum value for this argument is defined as , which allows pitch to be raised by up to 10 octaves.

If MaxFrequencyRatio is less than 1.0, the voice will use that ratio immediately after being created (rather than the default of 1.0).

Xbox 360
For XMA voices, there is one more restriction on the MaxFrequencyRatio argument and the voice's sample rate. The product of these two numbers cannot exceed XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MONO for one-channel voices or XAUDIO2_MAX_RATIO_TIMES_RATE_XMA_MULTICHANNEL for voices with any other number of channels. If the value specified for MaxFrequencyRatio is too high for the specified format, the call to CreateSourceVoice fails and produces a debug message.

?

Note??You can use the lowest possible MaxFrequencyRatio value to reduce XAudio2's memory usage.

+

Pointer to a client-provided callback interface, .

+

Pointer to a list of structures that describe the set of destination voices for the source voice. If pSendList is null, the send list defaults to a single output to the first mastering voice created.

+

Pointer to a list of structures that describe an effect chain to use in the source voice.

+

Returns if successful; otherwise, an error code.

See XAudio2 Error Codes for descriptions of XAudio2-specific error codes.

+ +

Source voices read audio data from the client. They process the data and send it to the XAudio2 processing graph.

A source voice includes a variable-rate sample rate conversion, to convert data from the source format sample rate to the output rate required for the voice send list. If you use a null send list, the target sample rate will be the mastering voice's input sample rate. If you provide a single voice in pSendList, that voice's input sample rate is the target rate. If you provide multiple voices in the pSendList, all the source voice's output voices must be running at the same input sample rate.

You cannot create any source or submix voices until a mastering voice exists, and you cannot destory a mastering voice if any source or submix voices still exist.

Source voices are always processed before any submix or mastering voices. This means that you do not need a ProcessingStage parameter to control the processing order.

When first created, source voices are in the stopped state.

XAudio2 uses an internal memory pooler for voices with the same format. This means memory allocation for voices will occur less frequently as more voices are created and then destroyed. To minimize just-in-time allocations, a title can create the anticipated maximum number of voices needed up front, and then delete them as necessary. Voices will then be reused from the XAudio2 pool. The memory pool is tied to an XAudio2 engine instance. You can reclaim all the memory used by an instance of the XAudio2 engine by destroying the XAudio2 object and recreating it as necessary (forcing the memory pool to grow via preallocation would have to be reapplied as needed).

It is invalid to call CreateSourceVoice from within a callback (that is, or ). If you call CreateSourceVoice within a callback, it returns .

The that is passed in as the pEffectChain argument and any information contained within it are no longer needed after CreateSourceVoice successfully completes, and may be deleted immediately after CreateSourceVoice is called. +

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsourcevoice + HRESULT IXAudio2::CreateSourceVoice([Out, Fast] IXAudio2SourceVoice** ppSourceVoice,[In] const void* pSourceFormat,[In] XAUDIO2_VOICE_FLAGS Flags,[In] float MaxFrequencyRatio,[In, Optional] IXAudio2VoiceCallback* pCallback,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + IXAudio2::CreateSourceVoice +
+ + +

Creates and configures a submix voice.

+
+

On success, returns a reference to the new object.

+

Number of channels in the input audio data of the submix voice. InputChannels must be less than or equal to .

+

Sample rate of the input audio data of submix voice. This rate must be a multiple of XAUDIO2_QUANTUM_DENOMINATOR. InputSampleRate must be between and .

+

Flags that specify the behavior of the submix voice. It can be 0 or the following:

ValueDescription
The filter effect should be available on this voice.

?

+

An arbitrary number that specifies when this voice is processed with respect to other submix voices, if the XAudio2 engine is running other submix voices. The voice is processed after all other voices that include a smaller ProcessingStage value and before all other voices that include a larger ProcessingStage value. Voices that include the same ProcessingStage value are processed in any order. A submix voice cannot send to another submix voice with a lower or equal ProcessingStage value. This prevents audio being lost due to a submix cycle.

+

Pointer to a list of structures that describe the set of destination voices for the submix voice. If pSendList is null, the send list will default to a single output to the first mastering voice created.

+

Pointer to a list of structures that describe an effect chain to use in the submix voice.

+

Returns if successful; otherwise, an error code.

See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

Submix voices receive the output of one or more source or submix voices. They process the output, and then send it to another submix voice or to a mastering voice.

A submix voice performs a sample rate conversion from the input sample rate to the input rate of its output voices in pSendList. If you specify multiple voice sends, they must all have the input same sample rate.

You cannot create any source or submix voices until a mastering voice exists, and you cannot destroy a mastering voice if any source or submix voices still exist.

When first created, submix voices are in the started state.

XAudio2 uses an internal memory pooler for voices with the same format. This means that memory allocation for voices will occur less frequently as more voices are created and then destroyed. To minimize just-in-time allocations, a title can create the anticipated maximum number of voices needed up front, and then delete them as necessary. Voices will then be reused from the XAudio2 pool. The memory pool is tied to an XAudio2 engine instance. You can reclaim all the memory used by an instance of the XAudio2 engine by destroying the XAudio2 object and recreating it as necessary (forcing the memory pool to grow via preallocation would have to be reapplied as needed).

It is invalid to call CreateSubmixVoice from within a callback (that is, or ). If you call CreateSubmixVoice within a callback, it returns .

The that is passed in as the pEffectChain argument and any information contained within it are no longer needed after CreateSubmixVoice successfully completes, and may be deleted immediately after CreateSubmixVoice is called.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.createsubmixvoice + HRESULT IXAudio2::CreateSubmixVoice([Out, Fast] IXAudio2SubmixVoice** ppSubmixVoice,[In] unsigned int InputChannels,[In] unsigned int InputSampleRate,[In] unsigned int Flags,[In] unsigned int ProcessingStage,[In, Optional] const XAUDIO2_VOICE_SENDS* pSendList,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + IXAudio2::CreateSubmixVoice +
+ + +

Creates and configures a mastering voice.

+
+

If successful, returns a reference to the new object.

+

Number of channels the mastering voice expects in its input audio. InputChannels must be less than or equal to .

You can set InputChannels to , which causes XAudio2 to try to detect the system speaker configuration setup.

+

Sample rate of the input audio data of the mastering voice. This rate must be a multiple of XAUDIO2_QUANTUM_DENOMINATOR. InputSampleRate must be between and .

You can set InputSampleRate to , with the default being determined by the current platform.

Windows XP defaults to 44100.

Windows Vista and Windows 7 default to the setting specified in the Sound Control Panel. The default for this setting is 44100 (or 48000 if required by the driver). Flags

+

Flags that specify the behavior of the mastering voice. Must be 0.

+

Identifier of the device to receive the output audio. Specifying the default value of null causes XAudio2 to select the global default audio device.

+

Pointer to an structure that describes an effect chain to use in the mastering voice, or null to use no effects.

+

Returns if successful; otherwise, an error code. Returns if no default audio device exists and null is passed in as the szDeviceId parameter.

See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

Mastering voices receive the output of one or more source or submix voices. They process the data, and send it to the audio output device.

Typically, you should create a mastering voice with an input sample rate that will be used by the majority of the title's audio content. The mastering voice performs a sample rate conversion from this input sample rate to the actual device output rate.

You cannot create a source or submix voices until a mastering voice exists. You cannot destroy a mastering voice if any source or submix voices still exist.

Mastering voices are always processed after all source and submix voices. This means that you need not specify a ProcessingStage parameter to control the processing order.

XAudio2 only allows one mastering voice to exist at once. If you attempt to create more than one voice, is returned. If an additional mastering voice is needed, for example for an output device with a different audio category set, you will need to create an additional XAudio2 instance.

When first created, mastering voices are in the started state.

It is invalid to call CreateMasteringVoice from within a callback (that is, or ). If you call CreateMasteringVoice within a callback, it returns .

The that is passed in as the pEffectChain argument and any information contained within it are no longer needed after CreateMasteringVoice successfully completes, and may be deleted immediately after CreateMasteringVoice is called.

Note that the DirectX SDK XAUDIO2 version of CreateMasteringVoice took a DeviceIndex argument instead of a szDeviceId and a StreamCategory argument. This reflects the changes needed for the standard Windows device enumeration model.

+
+ + hh405048 + HRESULT IXAudio2::CreateMasteringVoice([Out, Fast] IXAudio2MasteringVoice** ppMasteringVoice,[In] unsigned int InputChannels,[In] unsigned int InputSampleRate,[In] unsigned int Flags,[In] unsigned int DeviceIndex,[In, Optional] const XAUDIO2_EFFECT_CHAIN* pEffectChain) + IXAudio2::CreateMasteringVoice +
+ + +

Starts the audio processing thread.

+
+

Returns if successful, an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

After StartEngine is called, all started voices begin to consume audio. All enabled effects start running, and the resulting audio is sent to any connected output devices. When XAudio2 is first initialized, the engine is already in the started state.

It is invalid to call StartEngine from within a callback (that is, or ). If StartEngine is called within a callback, it returns .

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.startengine + HRESULT IXAudio2::StartEngine() + IXAudio2::StartEngine +
+ + +

Stops the audio processing thread.

+
+ +

When StopEngine is called, all output is stopped immediately. However, the audio graph is left untouched, preserving effect parameters, effect histories (for example, the data stored by a reverb effect in order to emit echoes of a previous sound), voice states, pending source buffers, cursor positions, and so forth. When the engine is restarted, the resulting audio output will be identical?apart from a period of silence?to the output that would have been produced if the engine had never been stopped.

It is invalid to call StopEngine from within a callback (that is, or ).

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.stopengine + void IXAudio2::StopEngine() + IXAudio2::StopEngine +
+ + +

Atomically applies a set of operations that are tagged with a given identifier.

+
+

Identifier of the set of operations to be applied. To commit all pending operations, pass .

+

Returns if successful; returns an error code otherwise. See XAudio2 Error Codes for descriptions of XAudio2 specific error codes.

+ +

CommitChanges does nothing if no operations are tagged with the given identifier.

See the XAudio2 Operation Sets overview about working with CommitChanges and XAudio2 interface methods that may be deferred. +

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.commitchanges + HRESULT IXAudio2::CommitChanges([In] unsigned int OperationSet) + IXAudio2::CommitChanges +
+ + +

Returns current resource usage details, such as available memory or CPU usage.

+
+

On success, reference to an structure that is returned.

+ +

For specific information on the statistics returned by GetPerformanceData, see the structure reference.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.getperformancedata + void IXAudio2::GetPerformanceData([Out] XAUDIO2_PERFORMANCE_DATA* pPerfData) + IXAudio2::GetPerformanceData +
+ + +

Changes global debug logging options for XAudio2.

+
+

Pointer to a structure that contains the new debug configuration.

+ No documentation. + +

SetDebugConfiguration sets the debug configuration for the given instance of XAudio2 engine. See Structure for supported debug options. By default, XAudio2 does not log debug output or break on errors.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.setdebugconfiguration + void IXAudio2::SetDebugConfiguration([In, Value] const XAUDIO2_DEBUG_CONFIGURATION* pDebugConfiguration,[In, Optional] void* pReserved) + IXAudio2::SetDebugConfiguration +
+ + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Specify a Debug or Normal XAudio2 instance. + The processor specifier. + + + + Returns information about an audio output device. + + [in] Index of the device to be queried. This value must be less than the count returned by . + On success, pointer to an structure that is returned. + HRESULT IXAudio2::GetDeviceDetails([None] UINT32 Index,[Out] XAUDIO2_DEVICE_DETAILS* pDeviceDetails) + + + + Calculate a decibel from a volume. + + The volume. + a dB value + + + + Calculate radians from a cutoffs frequency. + + The cutoff frequency. + The sample rate. + radian + + + + Calculate a cutoff frequency from a radian. + + The radians. + The sample rate. + cutoff frequency + + + + Calculate a volume from a decibel + + a dB value + an amplitude value + + + + Calculate semitones from a Frequency ratio + + The frequency ratio. + semitones + + + + Calculate frequency from semitones. + + The semitones. + the frequency + + + + Atomically applies a set of operations for all pending operations. + + HRESULT IXAudio2::CommitChanges([None] UINT32 OperationSet) + + + + No documentation. + + + GetDeviceCount + GetDeviceCount + HRESULT IXAudio2::GetDeviceCount([Out] unsigned int* pCount) + + + +

Returns current resource usage details, such as available memory or CPU usage.

+
+ +

For specific information on the statistics returned by GetPerformanceData, see the structure reference.

+
+ + microsoft.directx_sdk.ixaudio2.ixaudio2.getperformancedata + GetPerformanceData + GetPerformanceData + void IXAudio2::GetPerformanceData([Out] XAUDIO2_PERFORMANCE_DATA* pPerfData) +
+ + + Called by XAudio2 just before an audio processing pass begins. + + + + + Called by XAudio2 just after an audio processing pass ends. + + + + + Called if a critical system error occurs that requires XAudio2 to be closed down and restarted. + + + + +

Used with when submitting xWMA data.

+
+ +

When streaming an xWMA file a few packets at a time, should be specified on the last packet. Alternatively, the application may call after submitting the last packet.

In addition, when streaming an xWMA file a few packets at a time, the application should subtract pDecodedPacketCumulativeBytes[PacketCount-1] of the previous packet from all the entries of the currently submitted packet.

The members of correspond to values contained in the 'dpds' RIFF chunk of the xWMA file being played. PacketCount will correspond to the size in UINT32s of the chunk. pDecodedPacketCumulativeBytes will correspond to a UINT32 buffer containing the contents of the chunk. The contents of the buffer will need to be byte swapped when loading the buffer on Xbox 360.

Memory allocated to hold a or structure can be freed as soon as the call it is passed to returns. The data the structure points to (pAudioData and pDecodedPacketCumulativeBytes, respectively) can't be freed until the buffer completes (as signaled by the callback) or the voice is stopped and destroyed.

XAUDIO 2.8 in Windows 8 does not support xWMA decoding. Use Windows Media Foundation APIs to perform the decoding from WMA to PCM instead. This functionality is available in the DirectX SDK versions of XAUDIO.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_buffer_wma + XAUDIO2_BUFFER_WMA + XAUDIO2_BUFFER_WMA +
+ + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer_wma + const unsigned int* pDecodedPacketCumulativeBytes + unsigned int pDecodedPacketCumulativeBytes + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_buffer_wma + unsigned int PacketCount + unsigned int PacketCount + + + +

Contains the new global debug configuration for XAudio2. Used with the SetDebugConfiguration function.

+
+ +

Debugging messages can be completely turned off by initializing to all zeroes.

Note??For this version of XAudio2, only the value is supported on TraceMask or BreakMask. All other members and values are ignored.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + XAUDIO2_DEBUG_CONFIGURATION + XAUDIO2_DEBUG_CONFIGURATION +
+ + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + unsigned int TraceMask + unsigned int TraceMask + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + unsigned int BreakMask + unsigned int BreakMask + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + BOOL LogThreadID + BOOL LogThreadID + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + BOOL LogFileline + BOOL LogFileline + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + BOOL LogFunctionName + BOOL LogFunctionName + + + + No documentation. + + + microsoft.directx_sdk.xaudio2.xaudio2_debug_configuration + BOOL LogTiming + BOOL LogTiming + + + + No documentation. + + + XAUDIO2_DEVICE_DETAILS + XAUDIO2_DEVICE_DETAILS + + + + No documentation. + + + wchar_t DeviceID[256] + wchar_t DeviceID + + + + No documentation. + + + wchar_t DisplayName[256] + wchar_t DisplayName + + + + No documentation. + + + XAUDIO2_DEVICE_ROLE Role + XAUDIO2_DEVICE_ROLE Role + + + + No documentation. + + + WAVEFORMATEXTENSIBLE OutputFormat + WAVEFORMATEXTENSIBLE OutputFormat + + + +

Defines an effect chain.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_effect_chain + XAUDIO2_EFFECT_CHAIN + XAUDIO2_EFFECT_CHAIN +
+ + +

Number of effects in the effect chain for the voice.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_effect_chain + unsigned int EffectCount + unsigned int EffectCount +
+ + +

Array of structures containing references to XAPO instances.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_effect_chain + XAUDIO2_EFFECT_DESCRIPTOR* pEffectDescriptors + XAUDIO2_EFFECT_DESCRIPTOR pEffectDescriptors +
+ + +

Defines filter parameters for a source voice.

+
+ +

Setting with the following values is acoustically equivalent to the filter being fully bypassed.

 FilterParams;	
+            FilterParams.Frequency = 1.0f;    	
+            FilterParams.OneOverQ = 1.0f;	
+            FilterParams.Type = LowPassFilter;	
+            

The following formulas show the relationship between the members of and the per-voice filter.

Yl( n ) = F1 yb( n ) + yl( n - 1 )	
+            Yb( n ) = F1 yh( n ) + yb( n - 1 )	
+            Yh( n ) = x( n ) - yl( n ) - OneOverQ(yb( n - 1 )	
+            Yn( n ) = Yl(n) + Yh(n) 

Where:

Yl = lowpass output	
+            Yb = bandpass output	
+            Yh = highpass output	
+            Yn = notch output	
+            F1 = .Frequency	
+            OneOverQ = .OneOverQ
+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_parameters + XAUDIO2_FILTER_PARAMETERS + XAUDIO2_FILTER_PARAMETERS +
+ + +

The .

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_parameters + XAUDIO2_FILTER_TYPE Type + XAUDIO2_FILTER_TYPE Type +
+ + +

Filter radian frequency calculated as (2 * sin(pi * (desired filter cutoff frequency) / sampleRate)). The frequency must be greater than or equal to 0 and less than or equal to . The maximum frequency allowable is equal to the source sound's sample rate divided by six which corresponds to the maximum filter radian frequency of 1. For example, if a sound's sample rate is 48000 and the desired cutoff frequency is the maximum allowable value for that sample rate, 8000, the value for Frequency will be 1. + If XAUDIO2_HELPER_FUNCTIONS is defined, XAudio2.h will include the XAudio2RadiansToCutoffFrequency and XAudio2CutoffFrequencyToRadians helper functions for converting between hertz and radian frequencies. Defining XAUDIO2_HELPER_FUNCTIONS will also include XAudio2CutoffFrequencyToOnePoleCoefficient for converting between hertz and a one-pole coefficient suitable for use with the LowPassOnePoleFilter and HighPassOnePoleFilter.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_parameters + float Frequency + float Frequency +
+ + +

Reciprocal of Q factor. Controls how quickly frequencies beyond Frequency are dampened. Larger values result in quicker dampening while smaller values cause dampening to occur more gradually. Must be greater than 0 and less than or equal to .

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_filter_parameters + float OneOverQ + float OneOverQ +
+ + +

Contains performance information.

+
+ +

CPU cycles are recorded using . Use to convert these values.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + XAUDIO2_PERFORMANCE_DATA + XAUDIO2_PERFORMANCE_DATA +
+ + +

CPU cycles spent on audio processing since the last call to the or function.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned longlong AudioCyclesSinceLastQuery + unsigned longlong AudioCyclesSinceLastQuery +
+ + +

Total CPU cycles elapsed since the last call.

Note??This only counts cycles on the CPU on which XAudio2 is running.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned longlong TotalCyclesSinceLastQuery + unsigned longlong TotalCyclesSinceLastQuery +
+ + +

Fewest CPU cycles spent on processing any single audio quantum since the last call.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int MinimumCyclesPerQuantum + unsigned int MinimumCyclesPerQuantum +
+ + +

Most CPU cycles spent on processing any single audio quantum since the last call.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int MaximumCyclesPerQuantum + unsigned int MaximumCyclesPerQuantum +
+ + +

Total memory currently in use.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int MemoryUsageInBytes + unsigned int MemoryUsageInBytes +
+ + +

Minimum delay that occurs between the time a sample is read from a source buffer and the time it reaches the speakers.

Windows
The delay reported is a variable value equal to the rough distance between the last sample submitted to the driver by XAudio2 and the sample currently playing. The following factors can affect the delay: playing multichannel audio on a hardware-accelerated device; the type of audio device (WavePci, WaveCyclic, or WaveRT); and, to a lesser extent, audio hardware implementation. +

?

Xbox 360
The delay reported is a fixed value, which is normally 1,024 samples (21.333 ms at 48 kHz). If XOverrideSpeakerConfig has been called using the XAUDIOSPEAKERCONFIG_LOW_LATENCY flag, the delay reported is 512 samples (10.667 ms at 48 kHz). +

?

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int CurrentLatencyInSamples + unsigned int CurrentLatencyInSamples +
+ + +

Total audio dropouts since the engine started.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int GlitchesSinceEngineStarted + unsigned int GlitchesSinceEngineStarted +
+ + +

Number of source voices currently playing.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int ActiveSourceVoiceCount + unsigned int ActiveSourceVoiceCount +
+ + +

Total number of source voices currently in existence.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int TotalSourceVoiceCount + unsigned int TotalSourceVoiceCount +
+ + +

Number of submix voices currently playing.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int ActiveSubmixVoiceCount + unsigned int ActiveSubmixVoiceCount +
+ + +

Number of resampler xAPOs currently active.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int ActiveResamplerCount + unsigned int ActiveResamplerCount +
+ + +

Number of matrix mix xAPOs currently active.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int ActiveMatrixMixCount + unsigned int ActiveMatrixMixCount +
+ + +
Windows
Unsupported.

?

Xbox 360
Number of source voices decoding XMA data.

?

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int ActiveXmaSourceVoices + unsigned int ActiveXmaSourceVoices +
+ + +
Windows
Unsupported.

?

Xbox 360
A voice can use more than one XMA stream.

?

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_performance_data + unsigned int ActiveXmaStreams + unsigned int ActiveXmaStreams +
+ + +

Contains information about the creation flags, input channels, and sample rate of a voice.

+
+ +

Note the DirectX SDK versions of XAUDIO2 do not support the ActiveFlags member.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_details + XAUDIO2_VOICE_DETAILS + XAUDIO2_VOICE_DETAILS +
+ + +

Flags used to create the voice; see the individual voice interfaces for more information.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_details + XAUDIO2_VOICE_FLAGS CreationFlags + XAUDIO2_VOICE_FLAGS CreationFlags +
+ + +

The number of input channels the voice expects.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_details + unsigned int InputChannels + unsigned int InputChannels +
+ + +

The input sample rate the voice expects.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_details + unsigned int InputSampleRate + unsigned int InputSampleRate +
+ + +

Defines a destination voice that is the target of a send from another voice and specifies whether a filter should be used.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_send_descriptor + XAUDIO2_SEND_DESCRIPTOR + XAUDIO2_SEND_DESCRIPTOR +
+ + +

Indicates whether a filter should be used on data sent to the voice pointed to by pOutputVoice. Flags can be 0 or .

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_send_descriptor + XAUDIO2_VOICE_SEND_FLAGS Flags + XAUDIO2_VOICE_SEND_FLAGS Flags +
+ + +

A reference to an that will be the target of the send. The pOutputVoice member cannot be null.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_send_descriptor + IXAudio2Voice* pOutputVoice + IXAudio2Voice pOutputVoice +
+ + + Initializes a new instance of the struct. + + The output voice. + + + + Initializes a new instance of the struct. + + The send flags. + The output voice. + + + + Gets or sets the output voice. This parameter cannot be null. + + The output voice. + + + +

Defines a set of voices to receive data from a single output voice.

+
+ +

If pSends is not null all of its elements must be non-null. To send output to the default mastering voice call with the pSendList argument set to null.

Setting SendCount to 0 is useful for certain effects such as volume meters or file writers that don't generate any audio output to pass on to another voice.

If needed, a voice will perform a single sample rate conversion, from the voice's input sample rate to the input sample rate of the voice's output voices. Because only one sample rate conversion will be performed, all the voice's output voices must have the same input sample rate. If the input sample rates of the voice and its output voices are the same, no sample rate conversion is performed. +

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_sends + XAUDIO2_VOICE_SENDS + XAUDIO2_VOICE_SENDS +
+ + +

Number of voices to receive the output of the voice. An OutputCount value of 0 indicates the voice should not send output to any voices.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_sends + unsigned int SendCount + unsigned int SendCount +
+ + +

Array of structures describing destination voices and the filters that should be used when sending to the voices. This array should contain SendCount elements. If SendCount is 0 pSends should be null. Note that pSends cannot contain the same voice more than once.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_sends + XAUDIO2_SEND_DESCRIPTOR* pSends + XAUDIO2_SEND_DESCRIPTOR pSends +
+ + +

Returns the voice's current state and cursor position data.

+
+ +

For all encoded formats, including constant bit rate (CBR) formats such as adaptive differential pulse code modulation (ADPCM), SamplesPlayed is expressed in terms of decoded samples. For pulse code modulation (PCM) formats, SamplesPlayed is expressed in terms of either input or output samples. There is a one-to-one mapping from input to output for PCM formats.

If a client needs to get the correlated positions of several voices?that is, to know exactly which sample of a particular voice is playing when a specified sample of another voice is playing?it must make the calls in an XAudio2 engine callback. Doing this ensures that none of the voices advance while the calls are made.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_state + XAUDIO2_VOICE_STATE + XAUDIO2_VOICE_STATE +
+ + +

Pointer to a buffer context provided in the that is processed currently, or, if the voice is stopped currently, to the next buffer due to be processed. pCurrentBufferContext is null if there are no buffers in the queue.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_state + void* pCurrentBufferContext + void pCurrentBufferContext +
+ + +

Number of audio buffers currently queued on the voice, including the one that is processed currently.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_state + unsigned int BuffersQueued + unsigned int BuffersQueued +
+ + +

Total number of samples processed by this voice since it last started, or since the last audio stream ended (as marked with the flag). This total includes samples played multiple times due to looping. Theoretically, if all audio emitted by the voice up to this time is captured, this parameter would be the length of the audio stream in samples. If you specify XAUDIO2_VOICE_NOSAMPLESPLAYED when you call , this member won't be calculated, and its value is unspecified on return from . takes about one-third as much time to complete when you specify XAUDIO2_VOICE_NOSAMPLESPLAYED.

+
+ + microsoft.directx_sdk.xaudio2.xaudio2_voice_state + unsigned longlong SamplesPlayed + unsigned longlong SamplesPlayed +
+ + + No documentation. + + + X3DAudioCalculateFlags + X3DAudioCalculateFlags + + + + No documentation. + + + X3DAUDIO_CALCULATE_MATRIX + X3DAUDIO_CALCULATE_MATRIX + + + + No documentation. + + + X3DAUDIO_CALCULATE_DELAY + X3DAUDIO_CALCULATE_DELAY + + + + No documentation. + + + X3DAUDIO_CALCULATE_LPF_DIRECT + X3DAUDIO_CALCULATE_LPF_DIRECT + + + + No documentation. + + + X3DAUDIO_CALCULATE_LPF_REVERB + X3DAUDIO_CALCULATE_LPF_REVERB + + + + No documentation. + + + X3DAUDIO_CALCULATE_REVERB + X3DAUDIO_CALCULATE_REVERB + + + + No documentation. + + + X3DAUDIO_CALCULATE_DOPPLER + X3DAUDIO_CALCULATE_DOPPLER + + + + No documentation. + + + X3DAUDIO_CALCULATE_EMITTER_ANGLE + X3DAUDIO_CALCULATE_EMITTER_ANGLE + + + + No documentation. + + + X3DAUDIO_CALCULATE_ZEROCENTER + X3DAUDIO_CALCULATE_ZEROCENTER + + + + No documentation. + + + X3DAUDIO_CALCULATE_REDIRECT_TO_LFE + X3DAUDIO_CALCULATE_REDIRECT_TO_LFE + + + + Functions + + + + + + Speed of sound in the air. + + + + + Represents the ratio of the circumference of a circle to its diameter. + + + + +

Calculates DSP settings with respect to 3D parameters.

+
+

3D audio instance handle. Call to get this handle.

+

Pointer to an representing the point of reception.

+

Pointer to an representing the sound source.

+
ValueDescription
Enables matrix coefficient table calculation.?
Enables delay time array calculation (stereo only).?
Enables low pass filter (LPF) direct-path coefficient calculation.?
Enables LPF reverb-path coefficient calculation.?
Enables reverb send level calculation.?
Enables Doppler shift factor calculation.?
Enables emitter-to-listener interior angle calculation.?
Fills the center channel with silence. This flag allows you to keep a 6-channel matrix so you do not have to remap the channels, but the center channel will be silent. This flag is only valid if you also set .?
Applies an equal mix of all source channels to a low frequency effect (LFE) destination channel. It only applies to matrix calculations with a source that does not have an LFE channel and a destination that does have an LFE channel. This flag is only valid if you also set .?

?

+

Pointer to an structure that receives the calculation results.

+ +

You typically call once for each pair of emitting objects and listeners in the scene. After each call, to apply the 3D effects, the app manually applies the calculation results at pDSPSettings to the XAUDIO2 graph. For more info, see How to: Integrate X3DAudio with XAudio2.

Important?? The listener and emitter values must be valid. Floating-point specials (NaN, QNaN, +INF, -INF) can cause the entire audio output to go silent if introduced into a running audio graph.

+
+ + microsoft.directx_sdk.x3daudio.x3daudiocalculate + void X3DAudioCalculate([In] const X3DAUDIOHANDLE* Instance,[In] const X3DAUDIO_LISTENER* pListener,[In] const X3DAUDIO_EMITTER* pEmitter,[In] X3DAudioCalculateFlags Flags,[In] void* pDSPSettings) + X3DAudioCalculate +
+ + +

Sets all global 3D audio constants.

+
+

Assignment of channels to speaker positions. This value must not be zero. The only permissible value on Xbox 360 is SPEAKER_XBOX.

+

Speed of sound, in user-defined world units per second. Use this value only for doppler calculations. It must be greater than or equal to FLT_MIN.

+

3D audio instance handle. Use this handle when you call .

+ +

X3DAUDIO_HANDLE is an opaque data structure. Because the operating system doesn't allocate any additional storage for the 3D audio instance handle, you don't need to free or close it.

+
+ + microsoft.directx_sdk.x3daudio.x3daudioinitialize + void X3DAudioInitialize([In] SPEAKER_FLAGS SpeakerChannelMask,[In] float SpeedOfSound,[Out] X3DAUDIOHANDLE* Instance) + X3DAudioInitialize +
+ + + Initializes a new instance of the class. + + The speakers config. + microsoft.directx_sdk.x3daudio.x3daudioinitialize + void X3DAudioInitialize([In] SPEAKER_FLAGS SpeakerChannelMask,[In] float SpeedOfSound,[Out] X3DAUDIOHANDLE* Instance) + X3DAudioInitialize + + + + Initializes a new instance of the class. + + The speakers config. + The speed of sound. + microsoft.directx_sdk.x3daudio.x3daudioinitialize + void X3DAudioInitialize([In] SPEAKER_FLAGS SpeakerChannelMask,[In] float SpeedOfSound,[Out] X3DAUDIOHANDLE* Instance) + X3DAudioInitialize + + + + Calculates DSP settings for the specified listener and emitter. + + The listener. + The emitter. + The flags. + The source channel count. + The destination channel count. + DSP settings + ee419052 + void X3DAudioCalculate([In] const X3DAUDIOHANDLE* Instance,[In] const X3DAUDIO_LISTENER* pListener,[In] const X3DAUDIO_EMITTER* pEmitter,[In] X3DAudioCalculateFlags Flags,[In] void* pDSPSettings) + X3DAudioCalculate + + + + Calculates DSP settings for the specified listener and emitter. See remarks. + + The listener. + The emitter. + The flags. + The settings. + The source and destination channel count must be set on before calling this method. + ee419052 + void X3DAudioCalculate([In] const X3DAUDIOHANDLE* Instance,[In] const X3DAUDIO_LISTENER* pListener,[In] const X3DAUDIO_EMITTER* pEmitter,[In] X3DAudioCalculateFlags Flags,[In] void* pDSPSettings) + X3DAudioCalculate + + + +

Specifies directionality for a single-channel non-LFE emitter by scaling DSP behavior with respect to the emitter's orientation.

+
+ +

For a detailed explanation of sound cones see Sound Cones.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + X3DAUDIO_CONE + X3DAUDIO_CONE +
+ + +

Inner cone angle in radians. This value must be within 0.0f to X3DAUDIO_2PI.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float InnerAngle + float InnerAngle +
+ + +

Outer cone angle in radians. This value must be within InnerAngle to X3DAUDIO_2PI.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float OuterAngle + float OuterAngle +
+ + +

Volume scaler on/within inner cone. This value must be within 0.0f to 2.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float InnerVolume + float InnerVolume +
+ + +

Volume scaler on/beyond outer cone. This value must be within 0.0f to 2.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float OuterVolume + float OuterVolume +
+ + +

LPF direct-path or reverb-path coefficient scaler on/within inner cone. This value is only used for LPF calculations and must be within 0.0f to 1.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float InnerLPF + float InnerLPF +
+ + +

LPF direct-path or reverb-path coefficient scaler on or beyond outer cone. This value is only used for LPF calculations and must be within 0.0f to 1.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float OuterLPF + float OuterLPF +
+ + +

Reverb send level scaler on or within inner cone. This must be within 0.0f to 2.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float InnerReverb + float InnerReverb +
+ + +

Reverb send level scaler on/beyond outer cone. This must be within 0.0f to 2.0f. +

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_cone + float OuterReverb + float OuterReverb +
+ + +

Defines a DSP setting at a given normalized distance.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_distance_curve_point + X3DAUDIO_DISTANCE_CURVE_POINT + X3DAUDIO_DISTANCE_CURVE_POINT +
+ + +

Normalized distance. This must be within 0.0f to 1.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_distance_curve_point + float Distance + float Distance +
+ + +

DSP control setting.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_distance_curve_point + float DSPSetting + float DSPSetting +
+ + +

Defines an explicit piecewise curve made up of linear segments, directly defining DSP behavior with respect to normalized distance.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_distance_curve + X3DAUDIO_DISTANCE_CURVE + X3DAUDIO_DISTANCE_CURVE +
+ + +

array. The array must have no duplicates and be sorted in ascending order with respect to distance.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_distance_curve + X3DAUDIO_DISTANCE_CURVE_POINT* pPoints + X3DAUDIO_DISTANCE_CURVE_POINT pPoints +
+ + +

Number of distance curve points. There must be two or more points since all curves must have at least two endpoints defining values at 0.0f and 1.0f normalized distance, respectively.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_distance_curve + unsigned int PointCount + unsigned int PointCount +
+ + +

Receives the results from a call to .

+
+ +

The following members must be initialized before passing this structure to the function:

  • pMatrixCoefficients
  • pDelayTimes
  • SrcChannelCount
  • DstChannelCount

The following members are returned by passing this structure to the function:

  • pMatrixCoefficients
  • pDelayTimes
  • LPFDirectCoefficient
  • LPFReverbCoefficient
  • ReverbLevel
  • DopplerFactor
  • EmitterToListenerAngle
  • EmitterToListenerDistance
  • EmitterVelocityComponent
  • ListenerVelocityComponent

Note??For pMatrixCoefficients and pDelayTimes, does not allocate additional memory. merely modifies the values at the memory locations allocated for these references.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + X3DAUDIO_DSP_SETTINGS + X3DAUDIO_DSP_SETTINGS + + No documentation. + + + X3DAUDIO_DSP_SETTINGS +
+ + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float* pMatrixCoefficients + float pMatrixCoefficients + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float* pDelayTimes + float pDelayTimes + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + unsigned int SrcChannelCount + unsigned int SrcChannelCount + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + unsigned int DstChannelCount + unsigned int DstChannelCount + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float LPFDirectCoefficient + float LPFDirectCoefficient + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float LPFReverbCoefficient + float LPFReverbCoefficient + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float ReverbLevel + float ReverbLevel + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float DopplerFactor + float DopplerFactor + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float EmitterToListenerAngle + float EmitterToListenerAngle + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float EmitterToListenerDistance + float EmitterToListenerDistance + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float EmitterVelocityComponent + float EmitterVelocityComponent + + + + No documentation. + + + microsoft.directx_sdk.x3daudio.x3daudio_dsp_settings + float ListenerVelocityComponent + float ListenerVelocityComponent + + + + Initializes a new instance of the class. + + The source channel count. + The destination channel count. + + + + The matrix coefficients + + + + + The delay times + + + + +

Defines a single-point or multiple-point 3D audio source that is used with an arbitrary number of sound channels.

+
+ +

only supports a cone in a single-point emitter. Multi-point emitters are a convenient and efficient way to manage a related group of sound sources. Many properties are shared among all channel points, such as Doppler?the same Doppler shift is applied to all channels in the emitter. Thus, the Doppler value need only be calculated once, not per-point as would be needed with multiple separate single-point emitters. Because only has one orientation vector, a multi-point emitter cone would be of limited usefulness, forcing all channels to behave as if they were facing the same direction. If multiple independent cones are needed, multiple single-point emitters should be used, each with its own orientation.

The parameter type is typed to DirectX::XMFLOAT3, to provide x , y , and z floating-point values.

X3DAudio uses a left-handed Cartesian coordinate system, with values on the x-axis increasing from left to right, on the y-axis from bottom to top, and on the z-axis from near to far. Azimuths are measured clockwise from a given reference direction.

For user-defined distance curves, the distance field of the first point must be 0.0f and the distance field of the last point must be 1.0f.

If an emitter moves beyond a distance of (CurveDistanceScaler ? 1.0f), the last point on the curve is used to compute the volume output level. The last point is determined by the following: +

.pPoints[PointCount-1].DSPSetting)
+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_EMITTER + X3DAUDIO_EMITTER + + No documentation. + + + X3DAUDIO_EMITTER +
+ + +

Pointer to a sound cone. Used only with single-channel emitters for matrix, LPF (both direct and reverb paths), and reverb calculations. null specifies the emitter is omnidirectional.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_CONE* pCone + X3DAUDIO_CONE pCone +
+ + +

Orientation of the front direction. This value must be orthonormal with OrientTop. OrientFront must be normalized when used. For single-channel emitters without cones OrientFront is only used for emitter angle calculations. For multi channel emitters or single-channel with cones OrientFront is used for matrix, LPF (both direct and reverb paths), and reverb calculations.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_VECTOR OrientFront + X3DAUDIO_VECTOR OrientFront +
+ + +

Orientation of the top direction. This value must be orthonormal with OrientFront. OrientTop is only used with multi-channel emitters for matrix calculations.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_VECTOR OrientTop + X3DAUDIO_VECTOR OrientTop +
+ + +

Position in user-defined world units. This value does not affect Velocity.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_VECTOR Position + X3DAUDIO_VECTOR Position +
+ + +

Velocity vector in user-defined world units/second. This value is used only for doppler calculations. It does not affect Position. +

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_VECTOR Velocity + X3DAUDIO_VECTOR Velocity +
+ + +

Value to be used for the inner radius calculations. If InnerRadius is 0, then no inner radius is used, but InnerRadiusAngle may still be used. This value must be between 0.0f and MAX_FLT. +

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + float InnerRadius + float InnerRadius +
+ + +

Value to be used for the inner radius angle calculations. This value must be between 0.0f and X3DAUDIO_PI/4.0.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + float InnerRadiusAngle + float InnerRadiusAngle +
+ + +

Number of emitters defined by the structure. Must be greater than 0.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + unsigned int ChannelCount + unsigned int ChannelCount +
+ + +

Distance from Position that channels will be placed if ChannelCount is greater than 1. ChannelRadius is only used with multi-channel emitters for matrix calculations. Must be greater than or equal to 0.0f.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + float ChannelRadius + float ChannelRadius +
+ + +

Table of channel positions, expressed as an azimuth in radians along the channel radius with respect to the front orientation vector in the plane orthogonal to the top orientation vector. An azimuth of X3DAUDIO_2PI specifies a channel is a low-frequency effects (LFE) channel. LFE channels are positioned at the emitter base and are calculated with respect to pLFECurve only, never pVolumeCurve. pChannelAzimuths must have at least ChannelCount elements, but can be null if ChannelCount = 1. The table values must be within 0.0f to X3DAUDIO_2PI. pChannelAzimuths is used with multi-channel emitters for matrix calculations.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + float* pChannelAzimuths + float pChannelAzimuths +
+ + +

Volume-level distance curve, which is used only for matrix calculations. null specifies a specialized default curve that conforms to the inverse square law, such that when distance is between 0.0f and CurveDistanceScaler ? 1.0f, no attenuation is applied. + When distance is greater than CurveDistanceScaler ? 1.0f, the amplification factor is (CurveDistanceScaler ? 1.0f)/distance. At a distance of CurveDistanceScaler ? 2.0f, the sound will be at half volume or -6 dB, at a distance of CurveDistanceScaler ? 4.0f, the sound will be at one quarter volume or -12 dB, and so on. pVolumeCurve and pLFECurve are independent of each other. pVolumeCurve does not affect LFE channel volume.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_DISTANCE_CURVE* pVolumeCurve + X3DAUDIO_DISTANCE_CURVE pVolumeCurve +
+ + +

LFE roll-off distance curve, or null to use default curve: [0.0f, CurveDistanceScaler ?1.0f], [CurveDistanceScaler ?1.0f, 0.0f]. A null value for pLFECurve specifies a default curve that conforms to the inverse square law with distances <= CurveDistanceScaler clamped to no attenuation. + pVolumeCurve and pLFECurve are independent of each other. pLFECurve does not affect non LFE channel volume.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_DISTANCE_CURVE* pLFECurve + X3DAUDIO_DISTANCE_CURVE pLFECurve +
+ + +

Low-pass filter (LPF) direct-path coefficient distance curve, or null to use the default curve: [0.0f, 1.0f], [1.0f, 0.75f]. pLPFDirectCurve is only used for LPF direct-path calculations. +

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_DISTANCE_CURVE* pLPFDirectCurve + X3DAUDIO_DISTANCE_CURVE pLPFDirectCurve +
+ + +

LPF reverb-path coefficient distance curve, or null to use default curve: [0.0f, 0.75f], [1.0f, 0.75f]. pLPFReverbCurve is only used for LPF reverb path calculations.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_DISTANCE_CURVE* pLPFReverbCurve + X3DAUDIO_DISTANCE_CURVE pLPFReverbCurve +
+ + +

Reverb send level distance curve, or null to use default curve: [0.0f, 1.0f], [1.0f, 0.0f].

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + X3DAUDIO_DISTANCE_CURVE* pReverbCurve + X3DAUDIO_DISTANCE_CURVE pReverbCurve +
+ + +

Curve distance scaler that is used to scale normalized distance curves to user-defined world units, and/or to exaggerate their effect. This does not affect any other calculations. The value must be within the range FLT_MIN to FLT_MAX. CurveDistanceScaler is only used for matrix, LPF (both direct and reverb paths), and reverb calculations.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + float CurveDistanceScaler + float CurveDistanceScaler +
+ + +

Doppler shift scaler that is used to exaggerate Doppler shift effect. DopplerScaler is only used for Doppler calculations and does not affect any other calculations. The value must be within the range 0.0f to FLT_MAX.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_emitter + float DopplerScaler + float DopplerScaler +
+ + + Reference to Cone data. + + X3DAUDIO_CONE* pCone + + + disabled as it is not used + + + +

Defines a point of 3D audio reception.

+
+ +

The parameter type is typed to DirectX::XMFLOAT3, to provide x, y and z floating-point values.

A listener's front and top vectors must be orthonormal. To be considered orthonormal, a pair of vectors must have a magnitude of 1 +- 1x10-5 and a dot product of 0 +- 1x10-5.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_listener + X3DAUDIO_LISTENER + X3DAUDIO_LISTENER + + No documentation. + + + X3DAUDIO_LISTENER +
+ + +

Orientation of front direction. When pCone is null OrientFront is used only for matrix and delay calculations. When pCone is not null OrientFront is used for matrix, LPF (both direct and reverb paths), and reverb calculations. This value must be orthonormal with OrientTop when used.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_listener + X3DAUDIO_VECTOR OrientFront + X3DAUDIO_VECTOR OrientFront +
+ + +

Orientation of top direction, used only for matrix and delay calculations. This value must be orthonormal with OrientFront when used.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_listener + X3DAUDIO_VECTOR OrientTop + X3DAUDIO_VECTOR OrientTop +
+ + +

Position in user-defined world units. This value does not affect Velocity.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_listener + X3DAUDIO_VECTOR Position + X3DAUDIO_VECTOR Position +
+ + +

Velocity vector in user-defined world units per second, used only for doppler calculations. This value does not affect Position.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_listener + X3DAUDIO_VECTOR Velocity + X3DAUDIO_VECTOR Velocity +
+ + +

Pointer to an structure for this listener. Providing a listener cone will specify that additional calculations are performed when determining the volume and filter DSP parameters for individual sound sources. A null pCone value specifies an omnidirectional sound and no cone processing is applied. pCone is only used for matrix, LPF (both direct and reverb paths), and reverb calculations.

+
+ + microsoft.directx_sdk.x3daudio.x3daudio_listener + X3DAUDIO_CONE* pCone + X3DAUDIO_CONE pCone +
+ + + Reference to Cone data. + + X3DAUDIO_CONE* pCone + + + Disabled as it is not used + + + +

Describes the contents of a stream buffer.

+
+ +

This metadata can be used to implement optimizations that require knowledge of a stream buffer's contents. For example, XAPOs that always produce silent output from silent input can check the flag on the input stream buffer to determine if any signal processing is necessary. If silent, the XAPO can simply set the flag on the output stream buffer to silent and return, thus averting the work of processing silent data.

Likewise, XAPOs that receive valid input data, but generate silence (for any reason), may set the output stream buffer's flag accordingly, rather than writing silent samples to the buffer.

These flags represent what should be assumed is in the respective buffer. The flags may not reflect what is actually stored in memory. For example, the indicates that silent data should be assumed, however the respective memory may be uninitialized

+
+ + microsoft.directx_sdk.xapo.xapo_buffer_flags + XAPO_BUFFER_FLAGS + XAPO_BUFFER_FLAGS +
+ + +

Stream buffer contains only silent samples.

+
+ + microsoft.directx_sdk.xapo.xapo_buffer_flags + XAPO_BUFFER_SILENT + XAPO_BUFFER_SILENT +
+ + +

Stream buffer contains audio data to be processed.

+
+ + microsoft.directx_sdk.xapo.xapo_buffer_flags + XAPO_BUFFER_VALID + XAPO_BUFFER_VALID +
+ + + None. + + + None + None + + + + No documentation. + + + XAPO_PROPERTY_TYPE + XAPO_PROPERTY_TYPE + + + + No documentation. + + + XAPO_FLAG_CHANNELS_MUST_MATCH + XAPO_FLAG_CHANNELS_MUST_MATCH + + + + No documentation. + + + XAPO_FLAG_FRAMERATE_MUST_MATCH + XAPO_FLAG_FRAMERATE_MUST_MATCH + + + + No documentation. + + + XAPO_FLAG_BITSPERSAMPLE_MUST_MATCH + XAPO_FLAG_BITSPERSAMPLE_MUST_MATCH + + + + No documentation. + + + XAPO_FLAG_BUFFERCOUNT_MUST_MATCH + XAPO_FLAG_BUFFERCOUNT_MUST_MATCH + + + + No documentation. + + + XAPO_FLAG_INPLACE_REQUIRED + XAPO_FLAG_INPLACE_REQUIRED + + + + No documentation. + + + XAPO_FLAG_INPLACE_SUPPORTED + XAPO_FLAG_INPLACE_SUPPORTED + + + + No documentation. + + + XAPO_FLAG_DEFAULT + XAPO_FLAG_DEFAULT + + + + Functions + + + + An Echo XAPO AudioProcessor + + + + Constant MinimumFeedback. + FXECHO_MIN_FEEDBACK + + + Constant MaximumFeedback. + FXECHO_MAX_FEEDBACK + + + Constant MinimumDelay. + FXECHO_MIN_DELAY + + + Constant MaximumDelay. + FXECHO_MAX_DELAY + + + Constant MaximumWetdrymix. + FXECHO_MAX_WETDRYMIX + + + Constant MinimumWetdrymix. + FXECHO_MIN_WETDRYMIX + + + Constant DefaultWetdrymix. + FXECHO_DEFAULT_WETDRYMIX + + + Constant DefaultDelay. + FXECHO_DEFAULT_DELAY + + + Constant DefaultFeedback. + FXECHO_DEFAULT_FEEDBACK + + + + Initializes a new instance of the class. + + + + + Functions + + + + A Equalizer XAPO AudioProcessor + + + + Constant MaximumBandwidth. + FXEQ_MAX_BANDWIDTH + + + Constant MaximumFrameRate. + FXEQ_MAX_FRAMERATE + + + Constant MinimumBandwidth. + FXEQ_MIN_BANDWIDTH + + + Constant MinimumFrameRate. + FXEQ_MIN_FRAMERATE + + + Constant MaximumGain. + FXEQ_MAX_GAIN + + + Constant DefaultFrequencyCenter2. + FXEQ_DEFAULT_FREQUENCY_CENTER_2 + + + Constant MinimumGain. + FXEQ_MIN_GAIN + + + Constant DefaultGain. + FXEQ_DEFAULT_GAIN + + + Constant DefaultBandwidth. + FXEQ_DEFAULT_BANDWIDTH + + + Constant DefaultFrequencyCenter1. + FXEQ_DEFAULT_FREQUENCY_CENTER_1 + + + Constant MaximumFrequencyCenter. + FXEQ_MAX_FREQUENCY_CENTER + + + Constant DefaultFrequencyCenter3. + FXEQ_DEFAULT_FREQUENCY_CENTER_3 + + + Constant DefaultFrequencyCenter0. + FXEQ_DEFAULT_FREQUENCY_CENTER_0 + + + Constant MinimumFrequencyCenter. + FXEQ_MIN_FREQUENCY_CENTER + + + + Initializes a new instance of the class. + + + + + Functions + + + + A MateringLimiter XAPO AudioProcessor + + + + Constant MinimumLoudness. + FXMASTERINGLIMITER_MIN_LOUDNESS + + + Constant MaximumLoudness. + FXMASTERINGLIMITER_MAX_LOUDNESS + + + Constant DefaultLoudness. + FXMASTERINGLIMITER_DEFAULT_LOUDNESS + + + Constant MinimumRelease. + FXMASTERINGLIMITER_MIN_RELEASE + + + Constant MaximumRelease. + FXMASTERINGLIMITER_MAX_RELEASE + + + Constant DefaultRelease. + FXMASTERINGLIMITER_DEFAULT_RELEASE + + + + Initializes a new instance of the class. + + + + + Functions + + + + A Reverb XAPO AudioProcessor + + + + Constant MaximumRoomsize. + FXREVERB_MAX_ROOMSIZE + + + Constant MinimumRoomsize. + FXREVERB_MIN_ROOMSIZE + + + Constant MinimumDiffusion. + FXREVERB_MIN_DIFFUSION + + + Constant DefaultRoomsize. + FXREVERB_DEFAULT_ROOMSIZE + + + Constant MaximumDiffusion. + FXREVERB_MAX_DIFFUSION + + + Constant DefaultDiffusion. + FXREVERB_DEFAULT_DIFFUSION + + + + Initializes a new instance of the class. + + + + + Functions + + + + + Constant CLSID_FXEQ. + CLSID_FXEQ + + + Constant CLSID_FXMasteringLimiter. + CLSID_FXMasteringLimiter + + + Constant CLSID_FXReverb. + CLSID_FXReverb + + + Constant CLSID_FXEcho. + CLSID_FXEcho + + + +

Creates an instance of the requested XAPOFX effect.

+
+ No documentation. + No documentation. +

If this function succeeds, it returns . Otherwise, it returns an error code.

+ +

The created XAPO will have a reference count of 1. Client code must call IUnknown::Release after passing the XAPO to XAudio2 to allow XAudio2 to dispose of the XAPO when it is no longer needed. Use or to pass an XAPO to XAudio2.

Note??The DirectX SDK version of this function doesn't have the pInitData or InitDataByteSize parameters as it only takes the first 2 parameters. To set initial parameters for the XAPOFX effect that is created with the DirectX SDK version of this function, you must bind that effect to a voice and use . + For info about how to do this, see How to: Use XAPOFX in XAudio2.

+
+ + hh405044 + HRESULT CreateFX([In] const GUID& clsid,[Out, Fast] IUnknown** pEffect) + CreateFX +
+ + +

Parameters for use with the FXECHO XAPOFX.

+
+ +

Echo only supports FLOAT32 audio formats.

+
+ + microsoft.directx_sdk.xapofx.fxecho_parameters + FXECHO_PARAMETERS + FXECHO_PARAMETERS +
+ + + No documentation. + + + microsoft.directx_sdk.xapofx.fxecho_parameters + float WetDryMix + float WetDryMix + + + + No documentation. + + + microsoft.directx_sdk.xapofx.fxecho_parameters + float Feedback + float Feedback + + + + No documentation. + + + microsoft.directx_sdk.xapofx.fxecho_parameters + float Delay + float Delay + + + +

Parameters for use with the FXEQ XAPO.

+
+ +

Each band ranges from FrequencyCenterN - (BandwidthN / 2) to FrequencyCenterN + (BandwidthN / 2).

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + FXEQ_PARAMETERS + FXEQ_PARAMETERS +
+ + +

Center frequency in Hz for band 0. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float FrequencyCenter0 + float FrequencyCenter0 +
+ + +

The boost or decrease to frequencies in band 0. Must be between and

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Gain0 + float Gain0 +
+ + +

Width of band 0. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Bandwidth0 + float Bandwidth0 +
+ + +

Center frequency in Hz for band 1. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float FrequencyCenter1 + float FrequencyCenter1 +
+ + +

The boost or decrease to frequencies in band 1. Must be between and

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Gain1 + float Gain1 +
+ + +

Width of band 1. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Bandwidth1 + float Bandwidth1 +
+ + +

Center frequency in Hz for band 2. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float FrequencyCenter2 + float FrequencyCenter2 +
+ + +

The boost or decrease to frequencies in band 2. Must be between and

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Gain2 + float Gain2 +
+ + +

Width of band 2. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Bandwidth2 + float Bandwidth2 +
+ + +

Center frequency in Hz for band 3. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float FrequencyCenter3 + float FrequencyCenter3 +
+ + +

The boost or decrease to frequencies in band 3. Must be between and

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Gain3 + float Gain3 +
+ + +

Width of band 3. Must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxeq_parameters + float Bandwidth3 + float Bandwidth3 +
+ + +

Parameters for use with the FXMasteringLimiter XAPO.

+
+ + microsoft.directx_sdk.xapofx.fxmasteringlimiter_parameters + FXMASTERINGLIMITER_PARAMETERS + FXMASTERINGLIMITER_PARAMETERS +
+ + + No documentation. + + + microsoft.directx_sdk.xapofx.fxmasteringlimiter_parameters + unsigned int Release + unsigned int Release + + + + No documentation. + + + microsoft.directx_sdk.xapofx.fxmasteringlimiter_parameters + unsigned int Loudness + unsigned int Loudness + + + +

Parameters for use with the FXReverb XAPO.

+
+ + microsoft.directx_sdk.xapofx.fxreverb_parameters + FXREVERB_PARAMETERS + FXREVERB_PARAMETERS +
+ + +

Controls the character of the individual wall reflections. Set to minimum value to simulate a hard flat surface and to maximum value to simulate a diffuse surface.Value must be between and .

+
+ + microsoft.directx_sdk.xapofx.fxreverb_parameters + float Diffusion + float Diffusion +
+ + +

Size of the room. Value must be between and . Note that physical meaning of RoomSize is subjective and not tied to any particular units. A smaller value will result in reflections reaching the listener more quickly while reflections will take longer with larger values for RoomSize.

+
+ + microsoft.directx_sdk.xapofx.fxreverb_parameters + float RoomSize + float RoomSize +
+ + +

An optional interface that allows an XAPO to use effect-specific parameters.

+
+ + microsoft.directx_sdk.ixapoparameters.ixapoparameters + IXAPOParameters + IXAPOParameters +
+ + + Sets effect-specific parameters. + + Effect-specific parameter block. + void IXAPOParameters::SetParameters([In, Buffer] const void* pParameters,[None] UINT32 ParameterByteSize) + + + + Gets the current values for any effect-specific parameters. + + [in, out] Receives an effect-specific parameter block. + void IXAPOParameters::GetParameters([Out, Buffer] void* pParameters,[None] UINT32 ParameterByteSize) + + + +

An optional interface that allows an XAPO to use effect-specific parameters.

+
+ + microsoft.directx_sdk.ixapoparameters.ixapoparameters + IXAPOParameters + IXAPOParameters +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Sets effect-specific parameters.

+
+

Effect-specific parameter block.

+

Size of pParameters, in bytes.

+ +

The data in pParameters is completely effect-specific and determined by the implementation of the function. The data passed to SetParameters can be used to set the state of the XAPO and control the behavior of the function.

SetParameters can only be called on the real-time audio processing thread; no synchronization between SetParameters and the method is necessary. However, the method may be called from any thread as it adds in the required synchronization to deliver a copy (asynchronously) of the parameters to SetParameters on the real-time thread; no synchronization between and the method is necessary.

+
+ + microsoft.directx_sdk.ixapoparameters.ixapoparameters.setparameters + void IXAPOParameters::SetParameters([In, Buffer] const void* pParameters,[In] unsigned int ParameterByteSize) + IXAPOParameters::SetParameters +
+ + +

Gets the current values for any effect-specific parameters.

+
+

Receives an effect-specific parameter block.

+

Size of pParameters, in bytes.

+ +

The data in pParameters is completely effect-specific and determined by the implementation of the function. The data returned in pParameters can be used to provide information about the current state of the XAPO.

Unlike SetParameters, XAudio2 does not call this method on the realtime audio processing thread. Thus, the XAPO must protect variables shared with or using appropriate synchronization. The CXAPOParametersBase class is an implementation of and its implementation of GetParameters efficiently handles this synchronization for the user.

XAudio2 calls this method from the method.

This method may block and should never be called from the realtime audio processing thread instead get the current parameters from CXAPOParametersBase::BeginProcess.

+
+ + microsoft.directx_sdk.ixapoparameters.ixapoparameters.getparameters + void IXAPOParameters::GetParameters([Out, Buffer] void* pParameters,[In] unsigned int ParameterByteSize) + IXAPOParameters::GetParameters +
+ + +

Defines stream buffer parameters that may change from one call to the next. Used with the Process method.

+
+ +

Although the format and maximum size values of a particular stream buffer are constant, as defined by the structure, the actual memory address of the stream buffer is permitted to change. For constant-bit-rate (CBR) XAPOs, ValidFrameCount is constant and is always equal to the corresponding .MaxFrameCount for this buffer.

Note??Only constant-bit-rate XAPOs are currently supported.

+
+ + microsoft.directx_sdk.xapo.xapo_process_buffer_parameters + XAPO_PROCESS_BUFFER_PARAMETERS + XAPO_PROCESS_BUFFER_PARAMETERS +
+ + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_process_buffer_parameters + void* pBuffer + void pBuffer + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_process_buffer_parameters + XAPO_BUFFER_FLAGS BufferFlags + XAPO_BUFFER_FLAGS BufferFlags + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_process_buffer_parameters + unsigned int ValidFrameCount + unsigned int ValidFrameCount + + + +

Defines stream buffer parameters that remain constant while an XAPO is locked. Used with the method.

+
+ +

The byte size of the respective stream buffer must be at least MaxFrameCount ? (pFormat->nBlockAlign) bytes.

+
+ + microsoft.directx_sdk.xapo.xapo_lockforprocess_parameters + XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS + XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS +
+ + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_lockforprocess_parameters + const WAVEFORMATEX* pFormat + WAVEFORMATEX pFormat + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_lockforprocess_parameters + unsigned int MaxFrameCount + unsigned int MaxFrameCount + + + + Gets or sets the waveformat. + + The format. + + + +

Describes general characteristics of an XAPO. Used with , CXAPOParametersBase::CXAPOParametersBase, and CXAPOBase::CXAPOBase.

+
+ + microsoft.directx_sdk.xapo.xapo_registration_properties + XAPO_REGISTRATION_PROPERTIES + XAPO_REGISTRATION_PROPERTIES +
+ + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + GUID clsid + GUID clsid + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + wchar_t FriendlyName[256] + wchar_t FriendlyName + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + wchar_t CopyrightInfo[256] + wchar_t CopyrightInfo + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + unsigned int MajorVersion + unsigned int MajorVersion + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + unsigned int MinorVersion + unsigned int MinorVersion + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + XAPO_PROPERTY_TYPE Flags + XAPO_PROPERTY_TYPE Flags + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + unsigned int MinInputBufferCount + unsigned int MinInputBufferCount + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + unsigned int MaxInputBufferCount + unsigned int MaxInputBufferCount + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + unsigned int MinOutputBufferCount + unsigned int MinOutputBufferCount + + + + No documentation. + + + microsoft.directx_sdk.xapo.xapo_registration_properties + unsigned int MaxOutputBufferCount + unsigned int MaxOutputBufferCount + + + + Internal class used to initialize this assembly. + + + + + Initializes this assembly. + + + This method is called when the assembly is loaded. + + + + + The namespace provides a managed XAudio2 API. + + hh405049 + XAudio2 + XAudio2 + + + + No documentation. + + + + + + No documentation. + + + XAUDIO2_VOICE_USEFILTER + XAUDIO2_VOICE_USEFILTER + + + + None. + + + None + None + + + + Internal VoiceCallback callback Implementation + + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + The namespace provides a managed X3DAudio API. + + ee415714 + X3DAudio + X3DAudio + + + + Base AudioProcessor class that implements methods from . This class is + also providing its parameter through a generic. + + type of the parameter for this AudioProcessor + + + + Queries if a specific input format is supported for a given output format. + + Output format. + Input format to check for being supported. + If not NULL, and the input format is not supported for the given output format, ppSupportedInputFormat returns a pointer to the closest input format that is supported. Use {{XAPOFree}} to free the returned structure. + No documentation. + HRESULT IXAPO::IsInputFormatSupported([None] const WAVEFORMATEX* pOutputFormat,[None] const WAVEFORMATEX* pRequestedInputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedInputFormat) + + + + Queries if a specific output format is supported for a given input format. + + [in] Input format. + [in] Output format to check for being supported. + [out] If not NULL and the output format is not supported for the given input format, ppSupportedOutputFormat returns a pointer to the closest output format that is supported. Use {{XAPOFree}} to free the returned structure. + No documentation. + HRESULT IXAPO::IsOutputFormatSupported([None] const WAVEFORMATEX* pInputFormat,[None] const WAVEFORMATEX* pRequestedOutputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedOutputFormat) + + + + Performs any effect-specific initialization. + + Effect-specific initialization parameters, may be NULL if DataByteSize is 0. + No documentation. + HRESULT IXAPO::Initialize([In, Buffer, Optional] const void* pData,[None] UINT32 DataByteSize) + + + + Resets variables dependent on frame history. + + void IXAPO::Reset() + + + + Called by XAudio2 to lock the input and output configurations of an XAPO allowing it to + do any final initialization before {{Process}} is called on the realtime thread. + + Array of input structures.pInputLockedParameters may be NULL if InputLockedParameterCount is 0, otherwise it must have InputLockedParameterCount elements. + Array of output structures.pOutputLockedParameters may be NULL if OutputLockedParameterCount is 0, otherwise it must have OutputLockedParameterCount elements. + No documentation. + HRESULT IXAPO::LockForProcess([None] UINT32 InputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pInputLockedParameters,[None] UINT32 OutputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pOutputLockedParameters) + + + + Deallocates variables that were allocated with the {{LockForProcess}} method. + + void IXAPO::UnlockForProcess() + + + + Runs the XAPO's digital signal processing (DSP) code on the given input and output buffers. + + [in] Input array of structures. + [in, out] Output array of structures. On input, the value of .ValidFrameCount indicates the number of frames that the XAPO should write to the output buffer. On output, the value of .ValidFrameCount indicates the actual number of frames written. + TRUE to process normally; FALSE to process thru. See Remarks for additional information. + void IXAPO::Process([None] UINT32 InputProcessParameterCount,[In, Buffer, Optional] const XAPO_PROCESS_BUFFER_PARAMETERS* pInputProcessParameters,[None] UINT32 OutputProcessParameterCount,[InOut, Buffer, Optional] XAPO_PROCESS_BUFFER_PARAMETERS* pOutputProcessParameters,[None] BOOL IsEnabled) + + + + Returns the number of input frames required to generate the given number of output frames. + + The number of output frames desired. + No documentation. + UINT32 IXAPO::CalcInputFrames([None] UINT32 OutputFrameCount) + + + + Returns the number of output frames that will be generated from a given number of input frames. + + The number of input frames. + No documentation. + UINT32 IXAPO::CalcOutputFrames([None] UINT32 InputFrameCount) + + + + Sets effect-specific parameters. + + Effect-specific parameter block. + void IXAPOParameters::SetParameters([In, Buffer] const void* pParameters,[None] UINT32 ParameterByteSize) + + + + Gets the current values for any effect-specific parameters. + + [in, out] Receives an effect-specific parameter block. + void IXAPOParameters::GetParameters([Out, Buffer] void* pParameters,[None] UINT32 ParameterByteSize) + + + + Return parameters + + + + + Gets the input format locked. + + The input format locked. + + + + Gets the output format locked. + + The output format locked. + + + + Gets the max frame count locked. + + The max frame count locked. + + + + Returns the registration properties of an XAPO. + + a structure containing the registration properties the XAPO was created with; use XAPOFree to free the structure. + HRESULT IXAPO::GetRegistrationProperties([Out] XAPO_REGISTRATION_PROPERTIES** ppRegistrationProperties) + + + + Internal AudioProcessorShadow + + IXAPO GUID + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + HRESULT IXAPO::GetRegistrationProperties([Out] XAPO_REGISTRATION_PROPERTIES** ppRegistrationProperties) + + + HRESULT IXAPO::IsInputFormatSupported([None] const WAVEFORMATEX* pOutputFormat,[None] const WAVEFORMATEX* pRequestedInputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedInputFormat) + + + HRESULT IXAPO::IsOutputFormatSupported([None] const WAVEFORMATEX* pInputFormat,[None] const WAVEFORMATEX* pRequestedOutputFormat,[Out, Optional] WAVEFORMATEX** ppSupportedOutputFormat) + + + HRESULT IXAPO::Initialize([In, Buffer, Optional] const void* pData,[None] UINT32 DataByteSize) + + + void IXAPO::Reset() + + + HRESULT IXAPO::LockForProcess([None] UINT32 InputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pInputLockedParameters,[None] UINT32 OutputLockedParameterCount,[In, Buffer, Optional] const XAPO_LOCKFORPROCESS_BUFFER_PARAMETERS* pOutputLockedParameters) + + + + Deallocates variables that were allocated with the {{LockForProcess}} method. + + void IXAPO::UnlockForProcess() + + + void IXAPO::Process([None] UINT32 InputProcessParameterCount,[In, Buffer, Optional] const XAPO_PROCESS_BUFFER_PARAMETERS* pInputProcessParameters,[None] UINT32 OutputProcessParameterCount,[InOut, Buffer, Optional] XAPO_PROCESS_BUFFER_PARAMETERS* pOutputProcessParameters,[None] BOOL IsEnabled) + + + + Returns the number of input frames required to generate the given number of output frames. + + This pointer + The number of output frames desired. + No documentation. + UINT32 IXAPO::CalcInputFrames([None] UINT32 OutputFrameCount) + + + + Returns the number of output frames that will be generated from a given number of input frames. + + This Pointer + The number of input frames. + No documentation. + UINT32 IXAPO::CalcOutputFrames([None] UINT32 InputFrameCount) + + + + Internal AudioProcessorShadow + + IXAPOParameters + + + + Return a pointer to the unmanaged version of this callback. + + The callback. + A pointer to a shadow c++ callback + + + + Sets effect-specific parameters. + + This pointer + Effect-specific parameter block. + size of the parameters + void IXAPOParameters::SetParameters([In, Buffer] const void* pParameters,[None] UINT32 ParameterByteSize) + + + + Gets the current values for any effect-specific parameters. + + This pointer + [in, out] Receives an effect-specific parameter block. + size of the parameters + void IXAPOParameters::GetParameters([Out, Buffer] void* pParameters,[None] UINT32 ParameterByteSize) + + + + A VolumeMeter XAudio2 AudioProcessor. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.XInput.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.XInput.dll new file mode 100644 index 0000000..c62b192 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.XInput.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.XInput.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.XInput.xml new file mode 100644 index 0000000..f5482e7 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.XInput.xml @@ -0,0 +1,1352 @@ + + + + SharpDX.XInput + + + + + The assembly provides managed XInput API. + + hh405053 + XInput + XInput + + + + A XInput controller. + + + + + Initializes a new instance of the class. + + Index of the user. + + + + Gets the battery information. + + Type of the battery device. + + unsigned int XInputGetBatteryInformation([In] XUSER_INDEX dwUserIndex,[In] BATTERY_DEVTYPE devType,[Out] XINPUT_BATTERY_INFORMATION* pBatteryInformation) + + + + Gets the capabilities. + + Type of the device query. + + unsigned int XInputGetCapabilities([In] XUSER_INDEX dwUserIndex,[In] XINPUT_DEVQUERYTYPE dwFlags,[Out] XINPUT_CAPABILITIES* pCapabilities) + + + + Gets the capabilities. + + Type of the device query. + The capabilities of this controller. + true if the controller is connected, false otherwise. + + + + Gets the keystroke. + + The flag. + The keystroke. + + unsigned int XInputGetKeystroke([In] XUSER_INDEX dwUserIndex,[In] unsigned int dwReserved,[Out] XINPUT_KEYSTROKE* pKeystroke) + + + + Gets the state. + + The state of this controller. + + + + Gets the state. + + The state of this controller. + true if the controller is connected, false otherwise. + + + + Sets the reporting. + + if set to true [enable reporting]. + + + + Sets the vibration. + + The vibration. + + + + + Gets the associated with this controller. + + The index of the user. + + + + Gets a value indicating whether this instance is connected. + + + true if this instance is connected; otherwise, false. + + + + + Gets the sound render GUID. + + + + + Gets the sound capture GUID. + + + + +

Describes the current state of the Xbox 360 Controller.

+
+ +

This structure is used by the structure when polling for changes in the state of the controller.

The specific mapping of button to game function varies depending on the game type.

The constant XINPUT_GAMEPAD_TRIGGER_THRESHOLD may be used as the value which bLeftTrigger and bRightTrigger must be greater than to register as pressed. This is optional, but often desirable. Xbox 360 Controller buttons do not manifest crosstalk. +

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD + XINPUT_GAMEPAD +
+ + Constant TriggerThreshold. + XINPUT_GAMEPAD_TRIGGER_THRESHOLD + + + Constant LeftThumbDeadZone. + XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE + + + Constant RightThumbDeadZone. + XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE + + + +

Bitmask of the device digital buttons, as follows. A set bit indicates that the corresponding button is pressed.

Device buttonBitmask
0x0001
0x0002
0x0004
0x0008
0x0010
0x0020
0x0040
0x0080
0x0100
0x0200
0x1000
0x2000
0x4000
0x8000

?

Bits that are set but not defined above are reserved, and their state is undefined.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_BUTTON_FLAGS wButtons + XINPUT_GAMEPAD_BUTTON_FLAGS wButtons +
+ + +

The current value of the left trigger analog control. The value is between 0 and 255.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + unsigned char bLeftTrigger + unsigned char bLeftTrigger +
+ + +

The current value of the right trigger analog control. The value is between 0 and 255.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + unsigned char bRightTrigger + unsigned char bRightTrigger +
+ + +

Left thumbstick x-axis value. Each of the thumbstick axis members is a signed value between -32768 and 32767 describing the position of the thumbstick. A value of 0 is centered. Negative values signify down or to the left. Positive values signify up or to the right. The constants or can be used as a positive and negative value to filter a thumbstick input. +

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + short sThumbLX + short sThumbLX +
+ + +

Left thumbstick y-axis value. The value is between -32768 and 32767.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + short sThumbLY + short sThumbLY +
+ + +

Right thumbstick x-axis value. The value is between -32768 and 32767.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + short sThumbRX + short sThumbRX +
+ + +

Right thumbstick y-axis value. The value is between -32768 and 32767.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + short sThumbRY + short sThumbRY +
+ + +

Retrieves the battery type and charge status of a wireless controller.

+
+ + microsoft.directx_sdk.reference.xinputgetbatteryinformation + BATTERY_DEVTYPE + BATTERY_DEVTYPE +
+ + +

Index of the signed-in gamer associated with the device. Can be a value in the range 0?XUSER_MAX_COUNT ? 1.

+
+ + microsoft.directx_sdk.reference.xinputgetbatteryinformation + BATTERY_DEVTYPE_GAMEPAD + BATTERY_DEVTYPE_GAMEPAD +
+ + +

Specifies which device associated with this user index should be queried. Must be or .

+
+ + microsoft.directx_sdk.reference.xinputgetbatteryinformation + BATTERY_DEVTYPE_HEADSET + BATTERY_DEVTYPE_HEADSET +
+ + + No documentation. + + + BATTERY_LEVEL + BATTERY_LEVEL + + + + No documentation. + + + BATTERY_LEVEL_EMPTY + BATTERY_LEVEL_EMPTY + + + + No documentation. + + + BATTERY_LEVEL_LOW + BATTERY_LEVEL_LOW + + + + No documentation. + + + BATTERY_LEVEL_MEDIUM + BATTERY_LEVEL_MEDIUM + + + + No documentation. + + + BATTERY_LEVEL_FULL + BATTERY_LEVEL_FULL + + + +

Contains information on battery type and charge state.

+
+ + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE + BATTERY_TYPE +
+ + +

The type of battery. BatteryType will be one of the following values.

ValueDescription
The device is not connected.?
The device is a wired device and does not have a battery.?
The device has an alkaline battery.?
The device has a nickel metal hydride battery.?
The device has an unknown battery type.?

?

+
+ + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE_DISCONNECTED + BATTERY_TYPE_DISCONNECTED +
+ + +

The charge state of the battery. This value is only valid for wireless devices with a known battery type. BatteryLevel will be one of the following values.

Value

?

+
+ + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE_WIRED + BATTERY_TYPE_WIRED +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE_ALKALINE + BATTERY_TYPE_ALKALINE + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE_NIMH + BATTERY_TYPE_NIMH + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE_UNKNOWN + BATTERY_TYPE_UNKNOWN + + + +

Describes the capabilities of a connected controller. The function returns .

+
+ +

returns to indicate the characteristics and available functionality of a specified controller.

sets the structure members to indicate which inputs the device supports. For binary state controls, such as digital buttons, the corresponding bit reflects whether or not the control is supported by the device. For proportional controls, such as thumbsticks, the value indicates the resolution for that control. Some number of the least significant bits may not be set, indicating that the control does not provide resolution to that level.

The SubType member indicates the specific subtype of controller present. Games may detect the controller subtype and tune their handling of controller input or output based on subtypes that are well suited to their game genre. For example, a car racing game might check for the presence of a wheel controller to provide finer control of the car being driven. However, titles must not disable or ignore a device based on its subtype. Subtypes not recognized by the game or for which the game is not specifically tuned should be treated as a standard Xbox 360 Controller ().

Older XUSB Windows drivers report incomplete capabilities information, particularly for wireless devices. The latest XUSB Windows driver provides full support for wired and wireless devices, and more complete and accurate capabilties flags.

+
+ + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_CAPS_FLAGS + XINPUT_CAPS_FLAGS +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_CAPS_VOICE_SUPPORTED + XINPUT_CAPS_VOICE_SUPPORTED + + + + None. + + + None + None + + + + No documentation. + + + XINPUT_DEVQUERYTYPE + XINPUT_DEVQUERYTYPE + + + + No documentation. + + + XINPUT_FLAG_GAMEPAD + XINPUT_FLAG_GAMEPAD + + + + No documentation. + + + XINPUT_FLAG_ANY + XINPUT_FLAG_ANY + + + +

A table of controller subtypes available in XInput.

+
+ + hh405050 + XINPUT_DEVSUBTYPE + XINPUT_DEVSUBTYPE +
+ + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_GAMEPAD + XINPUT_DEVSUBTYPE_GAMEPAD + + + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_WHEEL + XINPUT_DEVSUBTYPE_WHEEL + + + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_ARCADE_STICK + XINPUT_DEVSUBTYPE_ARCADE_STICK + + + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_FLIGHT_SICK + XINPUT_DEVSUBTYPE_FLIGHT_SICK + + + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_DANCE_PAD + XINPUT_DEVSUBTYPE_DANCE_PAD + + + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_GUITAR + XINPUT_DEVSUBTYPE_GUITAR + + + + No documentation. + + + hh405050 + XINPUT_DEVSUBTYPE_DRUM_KIT + XINPUT_DEVSUBTYPE_DRUM_KIT + + + +

Describes the capabilities of a connected controller. The function returns .

+
+ +

returns to indicate the characteristics and available functionality of a specified controller.

sets the structure members to indicate which inputs the device supports. For binary state controls, such as digital buttons, the corresponding bit reflects whether or not the control is supported by the device. For proportional controls, such as thumbsticks, the value indicates the resolution for that control. Some number of the least significant bits may not be set, indicating that the control does not provide resolution to that level.

The SubType member indicates the specific subtype of controller present. Games may detect the controller subtype and tune their handling of controller input or output based on subtypes that are well suited to their game genre. For example, a car racing game might check for the presence of a wheel controller to provide finer control of the car being driven. However, titles must not disable or ignore a device based on its subtype. Subtypes not recognized by the game or for which the game is not specifically tuned should be treated as a standard Xbox 360 Controller ().

Older XUSB Windows drivers report incomplete capabilities information, particularly for wireless devices. The latest XUSB Windows driver provides full support for wired and wireless devices, and more complete and accurate capabilties flags.

+
+ + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_DEVTYPE + XINPUT_DEVTYPE +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_DEVTYPE_GAMEPAD + XINPUT_DEVTYPE_GAMEPAD + + + +

Describes the current state of the Xbox 360 Controller.

+
+ +

This structure is used by the structure when polling for changes in the state of the controller.

The specific mapping of button to game function varies depending on the game type.

The constant XINPUT_GAMEPAD_TRIGGER_THRESHOLD may be used as the value which bLeftTrigger and bRightTrigger must be greater than to register as pressed. This is optional, but often desirable. Xbox 360 Controller buttons do not manifest crosstalk. +

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_BUTTON_FLAGS + XINPUT_GAMEPAD_BUTTON_FLAGS +
+ + +

Bitmask of the device digital buttons, as follows. A set bit indicates that the corresponding button is pressed.

Device buttonBitmask
0x0001
0x0002
0x0004
0x0008
0x0010
0x0020
0x0040
0x0080
0x0100
0x0200
0x1000
0x2000
0x4000
0x8000

?

Bits that are set but not defined above are reserved, and their state is undefined.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_DPAD_UP + XINPUT_GAMEPAD_DPAD_UP +
+ + +

The current value of the left trigger analog control. The value is between 0 and 255.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_DPAD_DOWN + XINPUT_GAMEPAD_DPAD_DOWN +
+ + +

The current value of the right trigger analog control. The value is between 0 and 255.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_DPAD_LEFT + XINPUT_GAMEPAD_DPAD_LEFT +
+ + +

Left thumbstick x-axis value. Each of the thumbstick axis members is a signed value between -32768 and 32767 describing the position of the thumbstick. A value of 0 is centered. Negative values signify down or to the left. Positive values signify up or to the right. The constants or can be used as a positive and negative value to filter a thumbstick input. +

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_DPAD_RIGHT + XINPUT_GAMEPAD_DPAD_RIGHT +
+ + +

Left thumbstick y-axis value. The value is between -32768 and 32767.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_START + XINPUT_GAMEPAD_START +
+ + +

Right thumbstick x-axis value. The value is between -32768 and 32767.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_BACK + XINPUT_GAMEPAD_BACK +
+ + +

Right thumbstick y-axis value. The value is between -32768 and 32767.

+
+ + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_LEFT_THUMB + XINPUT_GAMEPAD_LEFT_THUMB +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_RIGHT_THUMB + XINPUT_GAMEPAD_RIGHT_THUMB + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_LEFT_SHOULDER + XINPUT_GAMEPAD_LEFT_SHOULDER + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_RIGHT_SHOULDER + XINPUT_GAMEPAD_RIGHT_SHOULDER + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_A + XINPUT_GAMEPAD_A + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_B + XINPUT_GAMEPAD_B + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_X + XINPUT_GAMEPAD_X + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_gamepad + XINPUT_GAMEPAD_Y + XINPUT_GAMEPAD_Y + + + + None. + + + None + None + + + +

Specifies keystroke data returned by .

+
+ +

Future devices may return HID codes and virtual key values that are not supported on current devices, and are currently undefined. Applications should ignore these unexpected values.

A virtual-key code is a byte value that represents a particular physical key on the keyboard, not the character or characters (possibly none) that the key can be mapped to based on keyboard state. The keyboard state at the time a virtual key is pressed modifies the character reported. For example, VK_4 might represent a "4" or a "$", depending on the state of the SHIFT key.

A reported keyboard event includes the virtual key that caused the event, whether the key was pressed or released (or is repeating), and the state of the keyboard at the time of the event. The keyboard state includes information about whether any CTRL, ALT, or SHIFT keys are down.

If the keyboard event represents an Unicode character (for example, pressing the "A" key), the Unicode member will contain that character. Otherwise, Unicode will contain the value zero.

The valid virtual-key (VK_xxx) codes are defined in XInput.h. In addition to codes that indicate key presses, the following codes indicate controller input.

ValueDescription
A button?
B button?
X button?
Y button?
Right shoulder button?
Left shoulder button?
Left trigger?
Right trigger?
Directional pad up?
Directional pad down?
Directional pad left?
Directional pad right?
START button?
BACK button?
Left thumbstick click?
Right thumbstick click?
Left thumbstick up?
Left thumbstick down?
Left thumbstick right?
Left thumbstick left?
Left thumbstick up and left?
Left thumbstick up and right?
Left thumbstick down and right?
Left thumbstick down and left?
Right thumbstick up?
Right thumbstick down?
Right thumbstick right?
Right thumbstick left?
Right thumbstick up and left?
Right thumbstick up and right?
Right thumbstick down and right?
Right thumbstick down and left?

?

+
+ + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_GAMEPAD_KEY_CODE + XINPUT_GAMEPAD_KEY_CODE +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_A + VK_PAD_A + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_B + VK_PAD_B + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_X + VK_PAD_X + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_Y + VK_PAD_Y + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RSHOULDER + VK_PAD_RSHOULDER + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LSHOULDER + VK_PAD_LSHOULDER + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTRIGGER + VK_PAD_LTRIGGER + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTRIGGER + VK_PAD_RTRIGGER + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_DPAD_UP + VK_PAD_DPAD_UP + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_DPAD_DOWN + VK_PAD_DPAD_DOWN + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_DPAD_LEFT + VK_PAD_DPAD_LEFT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_DPAD_RIGHT + VK_PAD_DPAD_RIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_START + VK_PAD_START + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_BACK + VK_PAD_BACK + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_PRESS + VK_PAD_LTHUMB_PRESS + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_PRESS + VK_PAD_RTHUMB_PRESS + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_UP + VK_PAD_LTHUMB_UP + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_DOWN + VK_PAD_LTHUMB_DOWN + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_RIGHT + VK_PAD_LTHUMB_RIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_LEFT + VK_PAD_LTHUMB_LEFT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_UPLEFT + VK_PAD_LTHUMB_UPLEFT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_UPRIGHT + VK_PAD_LTHUMB_UPRIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_DOWNRIGHT + VK_PAD_LTHUMB_DOWNRIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_LTHUMB_DOWNLEFT + VK_PAD_LTHUMB_DOWNLEFT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_UP + VK_PAD_RTHUMB_UP + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_DOWN + VK_PAD_RTHUMB_DOWN + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_RIGHT + VK_PAD_RTHUMB_RIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_LEFT + VK_PAD_RTHUMB_LEFT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_UPLEFT + VK_PAD_RTHUMB_UPLEFT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_UPRIGHT + VK_PAD_RTHUMB_UPRIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_DOWNRIGHT + VK_PAD_RTHUMB_DOWNRIGHT + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + VK_PAD_RTHUMB_DOWNLEFT + VK_PAD_RTHUMB_DOWNLEFT + + + + None. + + + None + None + + + +

Specifies keystroke data returned by .

+
+ +

Future devices may return HID codes and virtual key values that are not supported on current devices, and are currently undefined. Applications should ignore these unexpected values.

A virtual-key code is a byte value that represents a particular physical key on the keyboard, not the character or characters (possibly none) that the key can be mapped to based on keyboard state. The keyboard state at the time a virtual key is pressed modifies the character reported. For example, VK_4 might represent a "4" or a "$", depending on the state of the SHIFT key.

A reported keyboard event includes the virtual key that caused the event, whether the key was pressed or released (or is repeating), and the state of the keyboard at the time of the event. The keyboard state includes information about whether any CTRL, ALT, or SHIFT keys are down.

If the keyboard event represents an Unicode character (for example, pressing the "A" key), the Unicode member will contain that character. Otherwise, Unicode will contain the value zero.

The valid virtual-key (VK_xxx) codes are defined in XInput.h. In addition to codes that indicate key presses, the following codes indicate controller input.

ValueDescription
A button?
B button?
X button?
Y button?
Right shoulder button?
Left shoulder button?
Left trigger?
Right trigger?
Directional pad up?
Directional pad down?
Directional pad left?
Directional pad right?
START button?
BACK button?
Left thumbstick click?
Right thumbstick click?
Left thumbstick up?
Left thumbstick down?
Left thumbstick right?
Left thumbstick left?
Left thumbstick up and left?
Left thumbstick up and right?
Left thumbstick down and right?
Left thumbstick down and left?
Right thumbstick up?
Right thumbstick down?
Right thumbstick right?
Right thumbstick left?
Right thumbstick up and left?
Right thumbstick up and right?
Right thumbstick down and right?
Right thumbstick down and left?

?

+
+ + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_KEYSTROKE_FLAGS + XINPUT_KEYSTROKE_FLAGS +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_KEYSTROKE_KEYDOWN + XINPUT_KEYSTROKE_KEYDOWN + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_KEYSTROKE_KEYUP + XINPUT_KEYSTROKE_KEYUP + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_KEYSTROKE_REPEAT + XINPUT_KEYSTROKE_REPEAT + + + + None. + + + None + None + + + +

Retrieves a gamepad input event.

+
+ +

Wireless controllers are not considered active upon system startup, and calls to any of the XInput functions before a wireless controller is made active return . Game titles must examine the return code and be prepared to handle this condition. Wired controllers are automatically activated when they are inserted. Wireless controllers are activated when the user presses the START or Xbox Guide button to power on the controller.

+
+ + microsoft.directx_sdk.reference.xinputgetkeystroke + XUSER_INDEX + XUSER_INDEX +
+ + +

[in] Index of the signed-in gamer associated with the device. Can be a value in the range 0?XUSER_MAX_COUNT ? 1, or to fetch the next available input event from any user.

+
+ + microsoft.directx_sdk.reference.xinputgetkeystroke + XUSER_INDEX_ANY + XUSER_INDEX_ANY +
+ + +

[in] Reserved

+
+ + microsoft.directx_sdk.reference.xinputgetkeystroke + XUSER_INDEX_ONE + XUSER_INDEX_ONE +
+ + +

[out] Pointer to an structure that receives an input event.

+
+ + microsoft.directx_sdk.reference.xinputgetkeystroke + XUSER_INDEX_TWO + XUSER_INDEX_TWO +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinputgetkeystroke + XUSER_INDEX_THREE + XUSER_INDEX_THREE + + + + No documentation. + + + microsoft.directx_sdk.reference.xinputgetkeystroke + XUSER_INDEX_FOUR + XUSER_INDEX_FOUR + + + + Functions + + + + + +

Retrieves a gamepad input event.

+
+

[in] Index of the signed-in gamer associated with the device. Can be a value in the range 0?XUSER_MAX_COUNT ? 1, or to fetch the next available input event from any user.

+

[in] Reserved

+

[out] Pointer to an structure that receives an input event.

+

If the function succeeds, the return value is .

If no new keys have been pressed, the return value is .

If the controller is not connected or the user has not activated it, the return value is . See the Remarks section below.

If the function fails, the return value is an error code defined in Winerror.h. The function does not use SetLastError to set the calling thread's last-error code.

+ +

Wireless controllers are not considered active upon system startup, and calls to any of the XInput functions before a wireless controller is made active return . Game titles must examine the return code and be prepared to handle this condition. Wired controllers are automatically activated when they are inserted. Wireless controllers are activated when the user presses the START or Xbox Guide button to power on the controller.

+
+ + microsoft.directx_sdk.reference.xinputgetkeystroke + unsigned int XInputGetKeystroke([In] unsigned int dwUserIndex,[In] unsigned int dwReserved,[Out] XINPUT_KEYSTROKE* pKeystroke) + XInputGetKeystroke +
+ + +

Retrieves the battery type and charge status of a wireless controller.

+
+

Index of the signed-in gamer associated with the device. Can be a value in the range 0?XUSER_MAX_COUNT ? 1.

+

Specifies which device associated with this user index should be queried. Must be or .

+

Pointer to an structure that receives the battery information.

+

If the function succeeds, the return value is .

+ + microsoft.directx_sdk.reference.xinputgetbatteryinformation + unsigned int XInputGetBatteryInformation([In] unsigned int dwUserIndex,[In] BATTERY_DEVTYPE devType,[Out] XINPUT_BATTERY_INFORMATION* pBatteryInformation) + XInputGetBatteryInformation +
+ + +

Sends data to a connected controller. This function is used to activate the vibration function of a controller.

+
+

Index of the user's controller. Can be a value from 0 to 3. For information about how this value is determined and how the value maps to indicators on the controller, see Multiple Controllers.

+

Pointer to an structure containing the vibration information to send to the controller.

+

If the function succeeds, the return value is .

If the controller is not connected, the return value is .

If the function fails, the return value is an error code defined in WinError.h. The function does not use SetLastError to set the calling thread's last-error code.

+ + microsoft.directx_sdk.reference.xinputsetstate + unsigned int XInputSetState([In] unsigned int dwUserIndex,[In] XINPUT_VIBRATION* pVibration) + XInputSetState +
+ + +

Gets the sound rendering and sound capture device GUIDs that are associated with the headset connected to the specified controller.

+
+

[in] Index of the user's controller. It can be a value in the range 0?3. For information about how this value is determined and how the value maps to indicators on the controller, see Multiple Controllers.

+

[out] Pointer that receives the of the headset sound rendering device.

+

[out] Pointer that receives the of the headset sound capture device.

+

If the function successfully retrieves the device IDs for render and capture, the return code is .

If there is no headset connected to the controller, the function also retrieves with GUID_NULL as the values for pDSoundRenderGuid and pDSoundCaptureGuid.

If the controller port device is not physically connected, the function returns .

If the function fails, it returns a valid Win32 error code.

+ +

Use of legacy DirectSound is not recommended, and DirectSound is not available for Windows Store apps.

Note?? is deprecated because it isn't supported by Windows?8 (XInput 1.4).

+
+ + microsoft.directx_sdk.reference.xinputgetdsoundaudiodeviceguids + unsigned int XInputGetDSoundAudioDeviceGuids([In] unsigned int dwUserIndex,[Out] GUID* pDSoundRenderGuid,[Out] GUID* pDSoundCaptureGuid) + XInputGetDSoundAudioDeviceGuids +
+ + +

Retrieves the current state of the specified controller.

+
+

Index of the user's controller. Can be a value from 0 to 3. For information about how this value is determined and how the value maps to indicators on the controller, see Multiple Controllers.

+

Pointer to an structure that receives the current state of the controller.

+

If the function succeeds, the return value is .

If the controller is not connected, the return value is .

If the function fails, the return value is an error code defined in Winerror.h. The function does not use SetLastError to set the calling thread's last-error code.

+ +

When is used to retrieve controller data, the left and right triggers are each reported separately. For legacy reasons, when DirectInput retrieves controller data, the two triggers share the same axis. The legacy behavior is noticeable in the current Game Device Control Panel, which uses DirectInput for controller state.

+
+ + microsoft.directx_sdk.reference.xinputgetstate + unsigned int XInputGetState([In] unsigned int dwUserIndex,[Out] XINPUT_STATE* pState) + XInputGetState +
+ + +

Sets the reporting state of XInput.

+
+

If enable is , XInput will only send neutral data in response to (all buttons up, axes centered, and triggers at 0). calls will be registered but not sent to the device. Sending any value other than will restore reading and writing functionality to normal.

+ +

This function is meant to be called when an application gains or loses focus (such as via WM_ACTIVATEAPP). Using this function, you will not have to change the XInput query loop in your application as neutral data will always be reported if XInput is disabled.

In a controller that supports vibration effects:

  • Passing will stop any vibration effects currently playing. In this state, calls to will be registered, but not passed to the device.
  • Passing TRUE will pass the last vibration request (even if it is 0) sent to to the device.
+
+ + microsoft.directx_sdk.reference.xinputenable + void XInputEnable([In] BOOL enable) + XInputEnable +
+ + +

Retrieves the capabilities and features of a connected controller.

+
+

Index of the user's controller. Can be a value in the range 0?3. For information about how this value is determined and how the value maps to indicators on the controller, see Multiple Controllers.

+

Input flags that identify the controller type. If this value is 0, then the capabilities of all controllers connected to the system are returned. Currently, only one value is supported:

ValueDescription
Limit query to devices of Xbox 360 Controller type.

?

Any value of dwflags other than the above or 0 is illegal and will result in an error break when debugging.

+

Pointer to an structure that receives the controller capabilities.

+

If the function succeeds, the return value is .

If the controller is not connected, the return value is .

If the function fails, the return value is an error code defined in WinError.h. The function does not use SetLastError to set the calling thread's last-error code.

+ +

Note??The legacy XINPUT 9.1.0 version (included in Windows?Vista and later) always returned a fixed set of capabilities regardless of attached device.

+
+ + microsoft.directx_sdk.reference.xinputgetcapabilities + unsigned int XInputGetCapabilities([In] unsigned int dwUserIndex,[In] XINPUT_DEVQUERYTYPE dwFlags,[Out] XINPUT_CAPABILITIES* pCapabilities) + XInputGetCapabilities +
+ + +

Contains information on battery type and charge state.

+
+ + microsoft.directx_sdk.reference.xinput_battery_information + XINPUT_BATTERY_INFORMATION + XINPUT_BATTERY_INFORMATION +
+ + +

The type of battery. BatteryType will be one of the following values.

ValueDescription
The device is not connected.?
The device is a wired device and does not have a battery.?
The device has an alkaline battery.?
The device has a nickel metal hydride battery.?
The device has an unknown battery type.?

?

+
+ + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_TYPE BatteryType + BATTERY_TYPE BatteryType +
+ + +

The charge state of the battery. This value is only valid for wireless devices with a known battery type. BatteryLevel will be one of the following values.

Value

?

+
+ + microsoft.directx_sdk.reference.xinput_battery_information + BATTERY_LEVEL BatteryLevel + BATTERY_LEVEL BatteryLevel +
+ + +

Describes the capabilities of a connected controller. The function returns .

+
+ +

returns to indicate the characteristics and available functionality of a specified controller.

sets the structure members to indicate which inputs the device supports. For binary state controls, such as digital buttons, the corresponding bit reflects whether or not the control is supported by the device. For proportional controls, such as thumbsticks, the value indicates the resolution for that control. Some number of the least significant bits may not be set, indicating that the control does not provide resolution to that level.

The SubType member indicates the specific subtype of controller present. Games may detect the controller subtype and tune their handling of controller input or output based on subtypes that are well suited to their game genre. For example, a car racing game might check for the presence of a wheel controller to provide finer control of the car being driven. However, titles must not disable or ignore a device based on its subtype. Subtypes not recognized by the game or for which the game is not specifically tuned should be treated as a standard Xbox 360 Controller ().

Older XUSB Windows drivers report incomplete capabilities information, particularly for wireless devices. The latest XUSB Windows driver provides full support for wired and wireless devices, and more complete and accurate capabilties flags.

+
+ + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_CAPABILITIES + XINPUT_CAPABILITIES +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_DEVTYPE Type + XINPUT_DEVTYPE Type + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_DEVSUBTYPE SubType + XINPUT_DEVSUBTYPE SubType + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_CAPS_FLAGS Flags + XINPUT_CAPS_FLAGS Flags + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_GAMEPAD Gamepad + XINPUT_GAMEPAD Gamepad + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_capabilities + XINPUT_VIBRATION Vibration + XINPUT_VIBRATION Vibration + + + +

Specifies keystroke data returned by .

+
+ +

Future devices may return HID codes and virtual key values that are not supported on current devices, and are currently undefined. Applications should ignore these unexpected values.

A virtual-key code is a byte value that represents a particular physical key on the keyboard, not the character or characters (possibly none) that the key can be mapped to based on keyboard state. The keyboard state at the time a virtual key is pressed modifies the character reported. For example, VK_4 might represent a "4" or a "$", depending on the state of the SHIFT key.

A reported keyboard event includes the virtual key that caused the event, whether the key was pressed or released (or is repeating), and the state of the keyboard at the time of the event. The keyboard state includes information about whether any CTRL, ALT, or SHIFT keys are down.

If the keyboard event represents an Unicode character (for example, pressing the "A" key), the Unicode member will contain that character. Otherwise, Unicode will contain the value zero.

The valid virtual-key (VK_xxx) codes are defined in XInput.h. In addition to codes that indicate key presses, the following codes indicate controller input.

ValueDescription
A button?
B button?
X button?
Y button?
Right shoulder button?
Left shoulder button?
Left trigger?
Right trigger?
Directional pad up?
Directional pad down?
Directional pad left?
Directional pad right?
START button?
BACK button?
Left thumbstick click?
Right thumbstick click?
Left thumbstick up?
Left thumbstick down?
Left thumbstick right?
Left thumbstick left?
Left thumbstick up and left?
Left thumbstick up and right?
Left thumbstick down and right?
Left thumbstick down and left?
Right thumbstick up?
Right thumbstick down?
Right thumbstick right?
Right thumbstick left?
Right thumbstick up and left?
Right thumbstick up and right?
Right thumbstick down and right?
Right thumbstick down and left?

?

+
+ + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_KEYSTROKE + XINPUT_KEYSTROKE +
+ + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_GAMEPAD_KEY_CODE VirtualKey + XINPUT_GAMEPAD_KEY_CODE VirtualKey + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + wchar_t Unicode + wchar_t Unicode + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + XINPUT_KEYSTROKE_FLAGS Flags + XINPUT_KEYSTROKE_FLAGS Flags + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + XUSER_INDEX UserIndex + XUSER_INDEX UserIndex + + + + No documentation. + + + microsoft.directx_sdk.reference.xinput_keystroke + unsigned char HidCode + unsigned char HidCode + + + +

Represents the state of a controller.

+
+ +

The dwPacketNumber member is incremented only if the status of the controller has changed since the controller was last polled.

+
+ + microsoft.directx_sdk.reference.xinput_state + XINPUT_STATE + XINPUT_STATE +
+ + +

State packet number. The packet number indicates whether there have been any changes in the state of the controller. If the dwPacketNumber member is the same in sequentially returned structures, the controller state has not changed.

+
+ + microsoft.directx_sdk.reference.xinput_state + unsigned int dwPacketNumber + unsigned int dwPacketNumber +
+ + +

structure containing the current state of an Xbox 360 Controller.

+
+ + microsoft.directx_sdk.reference.xinput_state + XINPUT_GAMEPAD Gamepad + XINPUT_GAMEPAD Gamepad +
+ + +

Specifies motor speed levels for the vibration function of a controller.

+
+ +

The left motor is the low-frequency rumble motor. The right motor is the high-frequency rumble motor. The two motors are not the same, and they create different vibration effects.

+
+ + microsoft.directx_sdk.reference.xinput_vibration + XINPUT_VIBRATION + XINPUT_VIBRATION +
+ + +

Speed of the left motor. Valid values are in the range 0 to 65,535. Zero signifies no motor use; 65,535 signifies 100 percent motor use.

+
+ + microsoft.directx_sdk.reference.xinput_vibration + SHARPDX_USHORT wLeftMotorSpeed + SHARPDX_USHORT wLeftMotorSpeed +
+ + +

Speed of the right motor. Valid values are in the range 0 to 65,535. Zero signifies no motor use; 65,535 signifies 100 percent motor use.

+
+ + microsoft.directx_sdk.reference.xinput_vibration + SHARPDX_USHORT wRightMotorSpeed + SHARPDX_USHORT wRightMotorSpeed +
+ + + The namespace provides a managed XInput API. + + hh405053 + XInput + XInput + + + + Common error code from XInput + + + + + Device is not connected + + +
+
diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.dll b/FirstProject/bin/Windows/x86/Debug/SharpDX.dll new file mode 100644 index 0000000..0899027 Binary files /dev/null and b/FirstProject/bin/Windows/x86/Debug/SharpDX.dll differ diff --git a/FirstProject/bin/Windows/x86/Debug/SharpDX.xml b/FirstProject/bin/Windows/x86/Debug/SharpDX.xml new file mode 100644 index 0000000..e7ad107 --- /dev/null +++ b/FirstProject/bin/Windows/x86/Debug/SharpDX.xml @@ -0,0 +1,48704 @@ + + + + SharpDX + + + + + Represents a unit independent angle using a single-precision floating-point + internal representation. + + + + + Implement this interface to serialize datas with . + + + + + Reads or writes datas from/to the given binary serializer. + + The binary serializer. + + + + A value that specifies the size of a single degree. + + + + + A value that specifies the size of a single minute. + + + + + A value that specifies the size of a single second. + + + + + A value that specifies the size of a single radian. + + + + + A value that specifies the size of a single milliradian. + + + + + A value that specifies the size of a single gradian. + + + + + The internal representation of the angle. + + + + + Initializes a new instance of the SharpDX.AngleSingle structure with the + given unit dependant angle and unit type. + + A unit dependant measure of the angle. + The type of unit the angle argument is. + + + + Initializes a new instance of the SharpDX.AngleSingle structure using the + arc length formula (θ = s/r). + + The measure of the arc. + The radius of the circle. + + + + Wraps this SharpDX.AngleSingle to be in the range [π, -π]. + + + + + Wraps this SharpDX.AngleSingle to be in the range [0, 2π). + + + + + Wraps the SharpDX.AngleSingle given in the value argument to be in the range [π, -π]. + + A SharpDX.AngleSingle to wrap. + The SharpDX.AngleSingle that is wrapped. + + + + Wraps the SharpDX.AngleSingle given in the value argument to be in the range [0, 2π). + + A SharpDX.AngleSingle to wrap. + The SharpDX.AngleSingle that is wrapped. + + + + Compares two SharpDX.AngleSingle instances and returns the smaller angle. + + The first SharpDX.AngleSingle instance to compare. + The second SharpDX.AngleSingle instance to compare. + The smaller of the two given SharpDX.AngleSingle instances. + + + + Compares two SharpDX.AngleSingle instances and returns the greater angle. + + The first SharpDX.AngleSingle instance to compare. + The second SharpDX.AngleSingle instance to compare. + The greater of the two given SharpDX.AngleSingle instances. + + + + Adds two SharpDX.AngleSingle objects and returns the result. + + The first object to add. + The second object to add. + The value of the two objects added together. + + + + Subtracts two SharpDX.AngleSingle objects and returns the result. + + The first object to subtract. + The second object to subtract. + The value of the two objects subtracted. + + + + Multiplies two SharpDX.AngleSingle objects and returns the result. + + The first object to multiply. + The second object to multiply. + The value of the two objects multiplied together. + + + + Divides two SharpDX.AngleSingle objects and returns the result. + + The numerator object. + The denominator object. + The value of the two objects divided. + + + + Returns a System.Boolean that indicates whether the values of two SharpDX.Angle + objects are equal. + + The first object to compare. + The second object to compare. + True if the left and right parameters have the same value; otherwise, false. + + + + Returns a System.Boolean that indicates whether the values of two SharpDX.Angle + objects are not equal. + + The first object to compare. + The second object to compare. + True if the left and right parameters do not have the same value; otherwise, false. + + + + Returns a System.Boolean that indicates whether a SharpDX.Angle + object is less than another SharpDX.AngleSingle object. + + The first object to compare. + The second object to compare. + True if left is less than right; otherwise, false. + + + + Returns a System.Boolean that indicates whether a SharpDX.Angle + object is greater than another SharpDX.AngleSingle object. + + The first object to compare. + The second object to compare. + True if left is greater than right; otherwise, false. + + + + Returns a System.Boolean that indicates whether a SharpDX.Angle + object is less than or equal to another SharpDX.AngleSingle object. + + The first object to compare. + The second object to compare. + True if left is less than or equal to right; otherwise, false. + + + + Returns a System.Boolean that indicates whether a SharpDX.Angle + object is greater than or equal to another SharpDX.AngleSingle object. + + The first object to compare. + The second object to compare. + True if left is greater than or equal to right; otherwise, false. + + + + Returns the value of the SharpDX.AngleSingle operand. (The sign of + the operand is unchanged.) + + A SharpDX.AngleSingle object. + The value of the value parameter. + + + + Returns the the negated value of the SharpDX.AngleSingle operand. + + A SharpDX.AngleSingle object. + The negated value of the value parameter. + + + + Adds two SharpDX.AngleSingle objects and returns the result. + + The first object to add. + The second object to add. + The value of the two objects added together. + + + + Subtracts two SharpDX.AngleSingle objects and returns the result. + + The first object to subtract + The second object to subtract. + The value of the two objects subtracted. + + + + Multiplies two SharpDX.AngleSingle objects and returns the result. + + The first object to multiply. + The second object to multiply. + The value of the two objects multiplied together. + + + + Divides two SharpDX.AngleSingle objects and returns the result. + + The numerator object. + The denominator object. + The value of the two objects divided. + + + + Compares this instance to a specified object and returns an integer that + indicates whether the value of this instance is less than, equal to, or greater + than the value of the specified object. + + The object to compare. + + A signed integer that indicates the relationship of the current instance + to the obj parameter. If the value is less than zero, the current instance + is less than the other. If the value is zero, the current instance is equal + to the other. If the value is greater than zero, the current instance is + greater than the other. + + + + + Compares this instance to a second SharpDX.AngleSingle and returns + an integer that indicates whether the value of this instance is less than, + equal to, or greater than the value of the specified object. + + The object to compare. + + A signed integer that indicates the relationship of the current instance + to the obj parameter. If the value is less than zero, the current instance + is less than the other. If the value is zero, the current instance is equal + to the other. If the value is greater than zero, the current instance is + greater than the other. + + + + + Returns a value that indicates whether the current instance and a specified + SharpDX.AngleSingle object have the same value. + + The object to compare. + + Returns true if this SharpDX.AngleSingle object and another have the same value; + otherwise, false. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this SharpDX.AngleSingle instance. + + A 32-bit signed integer hash code. + + + + Returns a value that indicates whether the current instance and a specified + object have the same value. + + The object to compare. + + Returns true if the obj parameter is a SharpDX.AngleSingle object or a type + capable of implicit conversion to a SharpDX.AngleSingle value, and + its value is equal to the value of the current SharpDX.Angle + object; otherwise, false. + + + + + + + + Gets or sets the total number of revolutions this SharpDX.AngleSingle represents. + + + + + Gets or sets the total number of degrees this SharpDX.AngleSingle represents. + + + + + Gets or sets the minutes component of the degrees this SharpDX.AngleSingle represents. + When setting the minutes, if the value is in the range (-60, 60) the whole degrees are + not changed; otherwise, the whole degrees may be changed. Fractional values may set + the seconds component. + + + + + Gets or sets the seconds of the degrees this SharpDX.AngleSingle represents. + When setting the seconds, if the value is in the range (-60, 60) the whole minutes + or whole degrees are not changed; otherwise, the whole minutes or whole degrees + may be changed. + + + + + Gets or sets the total number of radians this SharpDX.AngleSingle represents. + + + + + Gets or sets the total number of milliradians this SharpDX.AngleSingle represents. + One milliradian is equal to 1/(2000π). + + + + + Gets or sets the total number of gradians this SharpDX.AngleSingle represents. + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is a right angle (i.e. 90° or π/2). + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is a straight angle (i.e. 180° or π). + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is a full rotation angle (i.e. 360° or 2π). + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is an oblique angle (i.e. is not 90° or a multiple of 90°). + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is an acute angle (i.e. less than 90° but greater than 0°). + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is an obtuse angle (i.e. greater than 90° but less than 180°). + + + + + Gets a System.Boolean that determines whether this SharpDX.Angle + is a reflex angle (i.e. greater than 180° but less than 360°). + + + + + Gets a SharpDX.AngleSingle instance that complements this angle (i.e. the two angles add to 90°). + + + + + Gets a SharpDX.AngleSingle instance that supplements this angle (i.e. the two angles add to 180°). + + + + + Gets a new SharpDX.AngleSingle instance that represents the zero angle (i.e. 0°). + + + + + Gets a new SharpDX.AngleSingle instance that represents the right angle (i.e. 90° or π/2). + + + + + Gets a new SharpDX.AngleSingle instance that represents the straight angle (i.e. 180° or π). + + + + + Gets a new SharpDX.AngleSingle instance that represents the full rotation angle (i.e. 360° or 2π). + + + + + A boolean value stored on 4 bytes (instead of 1 in .NET). + + + + + Initializes a new instance of the class. + + if set to true [bool value]. + + + + Indicates whether this instance and a specified object are equal. + + The other. + true if and this instance are the same type and represent the same value; otherwise, false. + + + + Implements the ==. + + The left. + The right. + The result of the operator. + + + + Implements the !=. + + The left. + The right. + The result of the operator. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + + + + Represents an axis-aligned bounding box in three dimensional space. + + + + + The minimum point of the box. + + + + + The maximum point of the box. + + + + + Initializes a new instance of the struct. + + The minimum vertex of the bounding box. + The maximum vertex of the bounding box. + + + + Retrieves the eight corners of the bounding box. + + An array of points representing the eight corners of the bounding box. + + + + Retrieves the eight corners of the bounding box. + + An array of points representing the eight corners of the bounding box. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Determines whether the current objects contains a point. + + The point to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a point. + + The point to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a . + + The box to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a . + + The box to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a . + + The sphere to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a . + + The sphere to test. + The type of containment the two objects have. + + + + Constructs a that fully contains the given points. + + The points that will be contained by the box. + When the method completes, contains the newly constructed bounding box. + Thrown when is null. + + + + Constructs a that fully contains the given points. + + The points that will be contained by the box. + The newly constructed bounding box. + Thrown when is null. + + + + Constructs a from a given sphere. + + The sphere that will designate the extents of the box. + When the method completes, contains the newly constructed bounding box. + + + + Constructs a from a given sphere. + + The sphere that will designate the extents of the box. + The newly constructed bounding box. + + + + Constructs a that is as large as the total combined area of the two specified boxes. + + The first box to merge. + The second box to merge. + When the method completes, contains the newly constructed bounding box. + + + + Constructs a that is as large as the total combined area of the two specified boxes. + + The first box to merge. + The second box to merge. + The newly constructed bounding box. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Defines a frustum which can be used in frustum culling, zoom to Extents (zoom to fit) operations, + (matrix, frustum, camera) interchange, and many kind of intersection testing. + + + + + Creates a new instance of BoundingFrustum. + + Combined matrix that usually takes view × projection matrix. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Implements the operator ==. + + The left. + The right. + + The result of the operator. + + + + + Implements the operator !=. + + The left. + The right. + + The result of the operator. + + + + + Returns one of the 6 planes related to this frustum. + + Plane index where 0 fro Left, 1 for Right, 2 for Top, 3 for Bottom, 4 for Near, 5 for Far + + + + + Creates a new frustum relaying on perspective camera parameters + + The camera pos. + The look dir. + Up dir. + The fov. + The znear. + The zfar. + The aspect. + The bounding frustum calculated from perspective camera + + + + Creates a new frustum relaying on perspective camera parameters + + The camera params. + The bounding frustum from camera params + + + + Returns the 8 corners of the frustum, element0 is Near1 (near right down corner) + , element1 is Near2 (near right top corner) + , element2 is Near3 (near Left top corner) + , element3 is Near4 (near Left down corner) + , element4 is Far1 (far right down corner) + , element5 is Far2 (far right top corner) + , element6 is Far3 (far left top corner) + , element7 is Far4 (far left down corner) + + The 8 corners of the frustum + + + + Returns the 8 corners of the frustum, element0 is Near1 (near right down corner) + , element1 is Near2 (near right top corner) + , element2 is Near3 (near Left top corner) + , element3 is Near4 (near Left down corner) + , element4 is Far1 (far right down corner) + , element5 is Far2 (far right top corner) + , element6 is Far3 (far left top corner) + , element7 is Far4 (far left down corner) + + The 8 corners of the frustum + + + + Extracts perspective camera parameters from the frustum, doesn't work with orthographic frustums. + + Perspective camera parameters from the frustum + + + + Checks whether a point lay inside, intersects or lay outside the frustum. + + The point. + Type of the containment + + + + Checks whether a point lay inside, intersects or lay outside the frustum. + + The point. + Type of the containment + + + + Checks whether a group of points lay totally inside the frustum (Contains), or lay partially inside the frustum (Intersects), or lay outside the frustum (Disjoint). + + The points. + Type of the containment + + + + Checks whether a group of points lay totally inside the frustum (Contains), or lay partially inside the frustum (Intersects), or lay outside the frustum (Disjoint). + + The points. + Type of the containment. + + + + Determines the intersection relationship between the frustum and a bounding box. + + The box. + Type of the containment + + + + Determines the intersection relationship between the frustum and a bounding box. + + The box. + Type of the containment + + + + Determines the intersection relationship between the frustum and a bounding box. + + The box. + Type of the containment. + + + + Determines the intersection relationship between the frustum and a bounding sphere. + + The sphere. + Type of the containment + + + + Determines the intersection relationship between the frustum and a bounding sphere. + + The sphere. + Type of the containment + + + + Determines the intersection relationship between the frustum and a bounding sphere. + + The sphere. + Type of the containment. + + + + Determines the intersection relationship between the frustum and another bounding frustum. + + The frustum. + Type of the containment + + + + Determines the intersection relationship between the frustum and another bounding frustum. + + The frustum. + Type of the containment + + + + Determines the intersection relationship between the frustum and another bounding frustum. + + The frustum. + Type of the containment. + + + + Checks whether the current BoundingFrustum intersects a BoundingSphere. + + The sphere. + Type of the containment + + + + Checks whether the current BoundingFrustum intersects a BoundingSphere. + + The sphere. + Set to true if the current BoundingFrustum intersects a BoundingSphere. + + + + Checks whether the current BoundingFrustum intersects a BoundingBox. + + The box. + true if the current BoundingFrustum intersects a BoundingSphere. + + + + Checks whether the current BoundingFrustum intersects a BoundingBox. + + The box. + true if the current BoundingFrustum intersects a BoundingSphere. + + + + Checks whether the current BoundingFrustum intersects the specified Plane. + + The plane. + Plane intersection type. + + + + Checks whether the current BoundingFrustum intersects the specified Plane. + + The plane. + Plane intersection type. + + + + Get the width of the frustum at specified depth. + + the depth at which to calculate frustum width. + With of the frustum at the specified depth + + + + Get the height of the frustum at specified depth. + + the depth at which to calculate frustum height. + Height of the frustum at the specified depth + + + + Checks whether the current BoundingFrustum intersects the specified Ray. + + The ray. + true if the current BoundingFrustum intersects the specified Ray. + + + + Checks whether the current BoundingFrustum intersects the specified Ray. + + The Ray to check for intersection with. + The distance at which the ray enters the frustum if there is an intersection and the ray starts outside the frustum. + The distance at which the ray exits the frustum if there is an intersection. + true if the current BoundingFrustum intersects the specified Ray. + + + + Get the distance which when added to camera position along the lookat direction will do the effect of zoom to extents (zoom to fit) operation, + so all the passed points will fit in the current view. + if the returned value is positive, the camera will move toward the lookat direction (ZoomIn). + if the returned value is negative, the camera will move in the reverse direction of the lookat direction (ZoomOut). + + The points. + The zoom to fit distance + + + + Get the distance which when added to camera position along the lookat direction will do the effect of zoom to extents (zoom to fit) operation, + so all the passed points will fit in the current view. + if the returned value is positive, the camera will move toward the lookat direction (ZoomIn). + if the returned value is negative, the camera will move in the reverse direction of the lookat direction (ZoomOut). + + The bounding box. + The zoom to fit distance + + + + Get the vector shift which when added to camera position will do the effect of zoom to extents (zoom to fit) operation, + so all the passed points will fit in the current view. + + The points. + The zoom to fit vector + + + + Get the vector shift which when added to camera position will do the effect of zoom to extents (zoom to fit) operation, + so all the passed points will fit in the current view. + + The bounding box. + The zoom to fit vector + + + + + + + Gets or sets the Matrix that describes this bounding frustum. + + + + + Gets the near plane of the BoundingFrustum. + + + + + Gets the far plane of the BoundingFrustum. + + + + + Gets the left plane of the BoundingFrustum. + + + + + Gets the right plane of the BoundingFrustum. + + + + + Gets the top plane of the BoundingFrustum. + + + + + Gets the bottom plane of the BoundingFrustum. + + + + + Indicate whether the current BoundingFrustrum is Orthographic. + + + true if the current BoundingFrustrum is Orthographic; otherwise, false. + + + + + Represents a bounding sphere in three dimensional space. + + + + + The center of the sphere in three dimensional space. + + + + + The radius of the sphere. + + + + + Initializes a new instance of the struct. + + The center of the sphere in three dimensional space. + The radius of the sphere. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a triangle. + + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Determines whether the current objects contains a point. + + The point to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a triangle. + + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a . + + The box to test. + The type of containment the two objects have. + + + + Determines whether the current objects contains a . + + The sphere to test. + The type of containment the two objects have. + + + + Constructs a that fully contains the given points. + + The points that will be contained by the sphere. + The start index from points array to start compute the bounding sphere. + The count of points to process to compute the bounding sphere. + When the method completes, contains the newly constructed bounding sphere. + points + + start + or + count + + + + + Constructs a that fully contains the given points. + + The points that will be contained by the sphere. + When the method completes, contains the newly constructed bounding sphere. + + + + Constructs a that fully contains the given points. + + The points that will be contained by the sphere. + The newly constructed bounding sphere. + + + + Constructs a from a given box. + + The box that will designate the extents of the sphere. + When the method completes, the newly constructed bounding sphere. + + + + Constructs a from a given box. + + The box that will designate the extents of the sphere. + The newly constructed bounding sphere. + + + + Constructs a that is the as large as the total combined area of the two specified spheres. + + The first sphere to merge. + The second sphere to merge. + When the method completes, contains the newly constructed bounding sphere. + + + + Constructs a that is the as large as the total combined area of the two specified spheres. + + The first sphere to merge. + The second sphere to merge. + The newly constructed bounding sphere. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Callback base implementation of . + + + + + Base class for a class. + + + + + Releases unmanaged resources and performs other cleanup operations before the + is reclaimed by garbage collection. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Releases unmanaged and - optionally - managed resources + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Occurs when this instance is starting to be disposed. + + + + + Occurs when this instance is fully disposed. + + + + + Gets a value indicating whether this instance is disposed. + + + true if this instance is disposed; otherwise, false. + + + + + Use this interface to tag a class that is called by an unmanaged + object. A class must dispose the + on dispose. + + + + + Gets or sets the unmanaged shadow callback. + + The unmanaged shadow callback. + + This property is set whenever this instance has an unmanaged shadow callback + registered. This callback must be disposed when disposing this instance. + + + + + Releases unmanaged and - optionally - managed resources + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Provides for default value types. + + + + + A default for . + + + + + An observable collection. + + Type of a collection item + + + + Raised when an item is added to this instance. + + + + + Raised when a item is removed from this instance. + + + + + An event providing the item changed in a collection (inserted or removed). + + Type of a collection item + + + + Initializes a new instance of the class. + + The item from the collection. + + + + Gets the item from the collection that was inserted or removed. + + The collection item. + + + + An observable dictionary. + + The dictionary's key type. + The dictionary's value type. + + + + + + + + + + + + + + + + + + + + + + Gets the enumerator of this dictionary. + + The enumerator instance of the dictionary. + + + + Removes all items from the dictionary. + + + + + Adds a new value with the specified key to dictionary. + + The added key. + The added value. + + + + Checks whether the dictionary contains the specified key. + + The key to check for presence. + true if the dictionary contains the provided key, false - otherwise. + + + + Removes the value corresponding to the specified key from dictionary. + + The key to remove. + true if the item was removed, false - otherwise. + + + + Tries to get the value associated with the specified key. + + The key. + Contains the returned value on success. + true if the value was returned successfuly, false - otherwise. + + + + + + + + + + + + + + + + + + + + + + + + + Returns the collection of the keys present in dictionary. + + + + + Gets the collection of the values present in dictionary. + + + + + Gets the cound of items present in dictionary. + + + + + Is raised when a new item is added to the dictionary. + + + + + Is raised when an item is removed from the dictionary. + + + + + Gets or sets a value associated with the specified key. + + The key. + The associated value. + + + + + + + Event arguments for the and events. + + The dictionary key type. + The dictionary value type. + + + + Initializes a new instance of the class from the provided . + + The that contains the event arguments. + + + + Initializes a new instance of the class from the provided key and value. + + The event's key argument. + The event's value argument. + + + + Gets the event's key argument. + + + + + Gets the event's value argument. + + + + + A generic collection for effect framework. + + Type of the collection + + + + Adds the specified item. + + The item. + + + + Determines whether this collection contains an element with the specified name. + + The name. + true if [contains] an element with the specified name; otherwise, false. + + + + Gets the number of objects in the collection. + + + + Gets a specific element in the collection by using an index value. + Index of the EffectTechnique to get. + + + Gets a specific element in the collection by using a name. + Name of the EffectTechnique to get. + + + + Use to provide a debug view on a custom collection. Use this by adding + an attribute [DebuggerTypeProxy(typeof(CollectionDebugView))] to your custom collection. + + + + + Initializes a new instance of the class. + + The collection. + collection + + + + Gets the items. + + The items. + + + + + Initializes a new instance of the class. + + The collection. + collection + + + + Gets the items. + + The items. + + + + Helper class to allow programmatic capturing of graphics information that can be loaded later in Visual Studio. + This is a managed implementation of the VsDbg class (http://msdn.microsoft.com/en-us/library/vstudio/dn440549.aspx). + Requires to have installed VS Remote Tools. + http://msdn.microsoft.com/en-us/library/vstudio/hh708963.aspx + http://msdn.microsoft.com/en-us/library/vstudio/hh780905.aspx + + + + + Creates a new instance of the class and prepares the in-app component of graphics diagnostics to actively capture and record graphics information.. + + The destination filename for log writing. + + + + Copies the contents of the active graphics log (.vsglog) file into a new file. + + The new log file name. + + + + Toggles the graphics diagnostics HUD overlay on or off. + + + + + Adds a custom message to the graphics diagnostics HUD (Head-Up Display). + + The message to add. + + + + Captures the remainder of the current frame to the graphics log file. + + + + + Begins a capture interval that will end with . + + A instance that once disposed, calls automatically the method. + + + + Ends a capture interval that was started with . + + + + + Finalizes the graphics log file, closes it, and frees resources that were used while the app was actively recording graphics information. + + Ignored. + + + + Helper structure to ease the begin/end graphics capturing + + + var debugger = new VSGraphicsDebugger(); + using(debugger.BeginCapture()) + { + ... + } + + + + + Creates a new instance of the structure. + + The attanched graphics debugger. + + + + Ends the capture by calling . + + + + + Represents a 3x3 Matrix ( contains only Scale and Rotation ). + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The identity . + + + + + Value at row 1 column 1 of the Matrix3x3. + + + + + Value at row 1 column 2 of the Matrix3x3. + + + + + Value at row 1 column 3 of the Matrix3x3. + + + + + Value at row 2 column 1 of the Matrix3x3. + + + + + Value at row 2 column 2 of the Matrix3x3. + + + + + Value at row 2 column 3 of the Matrix3x3. + + + + + Value at row 3 column 1 of the Matrix3x3. + + + + + Value at row 3 column 2 of the Matrix3x3. + + + + + Value at row 3 column 3 of the Matrix3x3. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The value to assign at row 1 column 1 of the Matrix3x3. + The value to assign at row 1 column 2 of the Matrix3x3. + The value to assign at row 1 column 3 of the Matrix3x3. + The value to assign at row 2 column 1 of the Matrix3x3. + The value to assign at row 2 column 2 of the Matrix3x3. + The value to assign at row 2 column 3 of the Matrix3x3. + The value to assign at row 3 column 1 of the Matrix3x3. + The value to assign at row 3 column 2 of the Matrix3x3. + The value to assign at row 3 column 3 of the Matrix3x3. + + + + Initializes a new instance of the struct. + + The values to assign to the components of the Matrix3x3. This must be an array with sixteen elements. + Thrown when is null. + Thrown when contains more or less than sixteen elements. + + + + Calculates the determinant of the Matrix3x3. + + The determinant of the Matrix3x3. + + + + Inverts the Matrix3x3. + + + + + Transposes the Matrix3x3. + + + + + Orthogonalizes the specified Matrix3x3. + + + Orthogonalization is the process of making all rows orthogonal to each other. This + means that any given row in the Matrix3x3 will be orthogonal to any other given row in the + Matrix3x3. + Because this method uses the modified Gram-Schmidt process, the resulting Matrix3x3 + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the Matrix3x3 rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthonormalizes the specified Matrix3x3. + + + Orthonormalization is the process of making all rows and columns orthogonal to each + other and making all rows and columns of unit length. This means that any given row will + be orthogonal to any other given row and any given column will be orthogonal to any other + given column. Any given row will not be orthogonal to any given column. Every row and every + column will be of unit length. + Because this method uses the modified Gram-Schmidt process, the resulting Matrix3x3 + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the Matrix3x3 rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Decomposes a Matrix3x3 into an orthonormalized Matrix3x3 Q and a right triangular Matrix3x3 R. + + When the method completes, contains the orthonormalized Matrix3x3 of the decomposition. + When the method completes, contains the right triangular Matrix3x3 of the decomposition. + + + + Decomposes a Matrix3x3 into a lower triangular Matrix3x3 L and an orthonormalized Matrix3x3 Q. + + When the method completes, contains the lower triangular Matrix3x3 of the decomposition. + When the method completes, contains the orthonormalized Matrix3x3 of the decomposition. + + + + Decomposes a Matrix3x3 into a scale, rotation, and translation. + + When the method completes, contains the scaling component of the decomposed Matrix3x3. + When the method completes, contains the rotation component of the decomposed Matrix3x3. + + This method is designed to decompose an SRT transformation Matrix3x3 only. + + + + + Decomposes a uniform scale matrix into a scale, rotation, and translation. + A uniform scale matrix has the same scale in every axis. + + When the method completes, contains the scaling component of the decomposed matrix. + When the method completes, contains the rotation component of the decomposed matrix. + + This method is designed to decompose only an SRT transformation matrix that has the same scale in every axis. + + + + + Exchanges two rows in the Matrix3x3. + + The first row to exchange. This is an index of the row starting at zero. + The second row to exchange. This is an index of the row starting at zero. + + + + Exchanges two columns in the Matrix3x3. + + The first column to exchange. This is an index of the column starting at zero. + The second column to exchange. This is an index of the column starting at zero. + + + + Creates an array containing the elements of the Matrix3x3. + + A 9-element array containing the components of the Matrix3x3. + + + + Determines the sum of two matrices. + + The first Matrix3x3 to add. + The second Matrix3x3 to add. + When the method completes, contains the sum of the two matrices. + + + + Determines the sum of two matrices. + + The first Matrix3x3 to add. + The second Matrix3x3 to add. + The sum of the two matrices. + + + + Determines the difference between two matrices. + + The first Matrix3x3 to subtract. + The second Matrix3x3 to subtract. + When the method completes, contains the difference between the two matrices. + + + + Determines the difference between two matrices. + + The first Matrix3x3 to subtract. + The second Matrix3x3 to subtract. + The difference between the two matrices. + + + + Scales a Matrix3x3 by the given value. + + The Matrix3x3 to scale. + The amount by which to scale. + When the method completes, contains the scaled Matrix3x3. + + + + Scales a Matrix3x3 by the given value. + + The Matrix3x3 to scale. + The amount by which to scale. + The scaled Matrix3x3. + + + + Determines the product of two matrices. + + The first Matrix3x3 to multiply. + The second Matrix3x3 to multiply. + The product of the two matrices. + + + + Determines the product of two matrices. + + The first Matrix3x3 to multiply. + The second Matrix3x3 to multiply. + The product of the two matrices. + + + + Scales a Matrix3x3 by the given value. + + The Matrix3x3 to scale. + The amount by which to scale. + When the method completes, contains the scaled Matrix3x3. + + + + Scales a Matrix3x3 by the given value. + + The Matrix3x3 to scale. + The amount by which to scale. + The scaled Matrix3x3. + + + + Determines the quotient of two matrices. + + The first Matrix3x3 to divide. + The second Matrix3x3 to divide. + When the method completes, contains the quotient of the two matrices. + + + + Determines the quotient of two matrices. + + The first Matrix3x3 to divide. + The second Matrix3x3 to divide. + The quotient of the two matrices. + + + + Performs the exponential operation on a Matrix3x3. + + The Matrix3x3 to perform the operation on. + The exponent to raise the Matrix3x3 to. + When the method completes, contains the exponential Matrix3x3. + Thrown when the is negative. + + + + Performs the exponential operation on a Matrix3x3. + + The Matrix3x3 to perform the operation on. + The exponent to raise the Matrix3x3 to. + The exponential Matrix3x3. + Thrown when the is negative. + + + + Negates a Matrix3x3. + + The Matrix3x3 to be negated. + When the method completes, contains the negated Matrix3x3. + + + + Negates a Matrix3x3. + + The Matrix3x3 to be negated. + The negated Matrix3x3. + + + + Performs a linear interpolation between two matrices. + + Start Matrix3x3. + End Matrix3x3. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two matrices. + + Start Matrix3x3. + End Matrix3x3. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two matrices. + + Start Matrix3x3. + End Matrix3x3. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two matrices. + + + + Performs a cubic interpolation between two matrices. + + Start Matrix3x3. + End Matrix3x3. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two matrices. + + + + Calculates the transpose of the specified Matrix3x3. + + The Matrix3x3 whose transpose is to be calculated. + When the method completes, contains the transpose of the specified Matrix3x3. + + + + Calculates the transpose of the specified Matrix3x3. + + The Matrix3x3 whose transpose is to be calculated. + When the method completes, contains the transpose of the specified Matrix3x3. + + + + Calculates the transpose of the specified Matrix3x3. + + The Matrix3x3 whose transpose is to be calculated. + The transpose of the specified Matrix3x3. + + + + Calculates the inverse of the specified Matrix3x3. + + The Matrix3x3 whose inverse is to be calculated. + When the method completes, contains the inverse of the specified Matrix3x3. + + + + Calculates the inverse of the specified Matrix3x3. + + The Matrix3x3 whose inverse is to be calculated. + The inverse of the specified Matrix3x3. + + + + Orthogonalizes the specified Matrix3x3. + + The Matrix3x3 to orthogonalize. + When the method completes, contains the orthogonalized Matrix3x3. + + Orthogonalization is the process of making all rows orthogonal to each other. This + means that any given row in the Matrix3x3 will be orthogonal to any other given row in the + Matrix3x3. + Because this method uses the modified Gram-Schmidt process, the resulting Matrix3x3 + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the Matrix3x3 rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthogonalizes the specified Matrix3x3. + + The Matrix3x3 to orthogonalize. + The orthogonalized Matrix3x3. + + Orthogonalization is the process of making all rows orthogonal to each other. This + means that any given row in the Matrix3x3 will be orthogonal to any other given row in the + Matrix3x3. + Because this method uses the modified Gram-Schmidt process, the resulting Matrix3x3 + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the Matrix3x3 rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthonormalizes the specified Matrix3x3. + + The Matrix3x3 to orthonormalize. + When the method completes, contains the orthonormalized Matrix3x3. + + Orthonormalization is the process of making all rows and columns orthogonal to each + other and making all rows and columns of unit length. This means that any given row will + be orthogonal to any other given row and any given column will be orthogonal to any other + given column. Any given row will not be orthogonal to any given column. Every row and every + column will be of unit length. + Because this method uses the modified Gram-Schmidt process, the resulting Matrix3x3 + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the Matrix3x3 rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthonormalizes the specified Matrix3x3. + + The Matrix3x3 to orthonormalize. + The orthonormalized Matrix3x3. + + Orthonormalization is the process of making all rows and columns orthogonal to each + other and making all rows and columns of unit length. This means that any given row will + be orthogonal to any other given row and any given column will be orthogonal to any other + given column. Any given row will not be orthogonal to any given column. Every row and every + column will be of unit length. + Because this method uses the modified Gram-Schmidt process, the resulting Matrix3x3 + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the Matrix3x3 rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Brings the Matrix3x3 into upper triangular form using elementary row operations. + + The Matrix3x3 to put into upper triangular form. + When the method completes, contains the upper triangular Matrix3x3. + + If the Matrix3x3 is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the Matrix3x3 represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the Matrix3x3 into upper triangular form using elementary row operations. + + The Matrix3x3 to put into upper triangular form. + The upper triangular Matrix3x3. + + If the Matrix3x3 is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the Matrix3x3 represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the Matrix3x3 into lower triangular form using elementary row operations. + + The Matrix3x3 to put into lower triangular form. + When the method completes, contains the lower triangular Matrix3x3. + + If the Matrix3x3 is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the Matrix3x3 represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the Matrix3x3 into lower triangular form using elementary row operations. + + The Matrix3x3 to put into lower triangular form. + The lower triangular Matrix3x3. + + If the Matrix3x3 is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the Matrix3x3 represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the Matrix3x3 into row echelon form using elementary row operations; + + The Matrix3x3 to put into row echelon form. + When the method completes, contains the row echelon form of the Matrix3x3. + + + + Brings the Matrix3x3 into row echelon form using elementary row operations; + + The Matrix3x3 to put into row echelon form. + When the method completes, contains the row echelon form of the Matrix3x3. + + + + Creates a left-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + When the method completes, contains the created billboard Matrix3x3. + + + + Creates a left-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + The created billboard Matrix3x3. + + + + Creates a right-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + When the method completes, contains the created billboard Matrix3x3. + + + + Creates a right-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + The created billboard Matrix3x3. + + + + Creates a left-handed, look-at Matrix3x3. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + When the method completes, contains the created look-at Matrix3x3. + + + + Creates a left-handed, look-at Matrix3x3. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + The created look-at Matrix3x3. + + + + Creates a right-handed, look-at Matrix3x3. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + When the method completes, contains the created look-at Matrix3x3. + + + + Creates a right-handed, look-at Matrix3x3. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + The created look-at Matrix3x3. + + + + Builds a Matrix3x3 that can be used to reflect vectors about a plane. + + The plane for which the reflection occurs. This parameter is assumed to be normalized. + When the method completes, contains the reflection Matrix3x3. + + + + Builds a Matrix3x3 that can be used to reflect vectors about a plane. + + The plane for which the reflection occurs. This parameter is assumed to be normalized. + The reflection Matrix3x3. + + + + Creates a Matrix3x3 that flattens geometry into a shadow. + + The light direction. If the W component is 0, the light is directional light; if the + W component is 1, the light is a point light. + The plane onto which to project the geometry as a shadow. This parameter is assumed to be normalized. + When the method completes, contains the shadow Matrix3x3. + + + + Creates a Matrix3x3 that flattens geometry into a shadow. + + The light direction. If the W component is 0, the light is directional light; if the + W component is 1, the light is a point light. + The plane onto which to project the geometry as a shadow. This parameter is assumed to be normalized. + The shadow Matrix3x3. + + + + Creates a Matrix3x3 that scales along the x-axis, y-axis, and y-axis. + + Scaling factor for all three axes. + When the method completes, contains the created scaling Matrix3x3. + + + + Creates a Matrix3x3 that scales along the x-axis, y-axis, and y-axis. + + Scaling factor for all three axes. + The created scaling Matrix3x3. + + + + Creates a Matrix3x3 that scales along the x-axis, y-axis, and y-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Scaling factor that is applied along the z-axis. + When the method completes, contains the created scaling Matrix3x3. + + + + Creates a Matrix3x3 that scales along the x-axis, y-axis, and y-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Scaling factor that is applied along the z-axis. + The created scaling Matrix3x3. + + + + Creates a Matrix3x3 that uniformly scales along all three axis. + + The uniform scale that is applied along all axis. + When the method completes, contains the created scaling Matrix3x3. + + + + Creates a Matrix3x3 that uniformly scales along all three axis. + + The uniform scale that is applied along all axis. + The created scaling Matrix3x3. + + + + Creates a Matrix3x3 that rotates around the x-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around the x-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around the y-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around the y-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around the z-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around the z-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around an arbitrary axis. + + The axis around which to rotate. This parameter is assumed to be normalized. + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation Matrix3x3. + + + + Creates a Matrix3x3 that rotates around an arbitrary axis. + + The axis around which to rotate. This parameter is assumed to be normalized. + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation Matrix3x3. + + + + Creates a rotation Matrix3x3 from a quaternion. + + The quaternion to use to build the Matrix3x3. + The created rotation Matrix3x3. + + + + Creates a rotation Matrix3x3 from a quaternion. + + The quaternion to use to build the Matrix3x3. + The created rotation Matrix3x3. + + + + Creates a rotation Matrix3x3 with a specified yaw, pitch, and roll. + + Yaw around the y-axis, in radians. + Pitch around the x-axis, in radians. + Roll around the z-axis, in radians. + When the method completes, contains the created rotation Matrix3x3. + + + + Creates a rotation Matrix3x3 with a specified yaw, pitch, and roll. + + Yaw around the y-axis, in radians. + Pitch around the x-axis, in radians. + Roll around the z-axis, in radians. + The created rotation Matrix3x3. + + + + Adds two matrices. + + The first Matrix3x3 to add. + The second Matrix3x3 to add. + The sum of the two matrices. + + + + Assert a Matrix3x3 (return it unchanged). + + The Matrix3x3 to assert (unchanged). + The asserted (unchanged) Matrix3x3. + + + + Subtracts two matrices. + + The first Matrix3x3 to subtract. + The second Matrix3x3 to subtract. + The difference between the two matrices. + + + + Negates a Matrix3x3. + + The Matrix3x3 to negate. + The negated Matrix3x3. + + + + Scales a Matrix3x3 by a given value. + + The Matrix3x3 to scale. + The amount by which to scale. + The scaled Matrix3x3. + + + + Scales a Matrix3x3 by a given value. + + The Matrix3x3 to scale. + The amount by which to scale. + The scaled Matrix3x3. + + + + Multiplies two matrices. + + The first Matrix3x3 to multiply. + The second Matrix3x3 to multiply. + The product of the two matrices. + + + + Scales a Matrix3x3 by a given value. + + The Matrix3x3 to scale. + The amount by which to scale. + The scaled Matrix3x3. + + + + Divides two matrices. + + The first Matrix3x3 to divide. + The second Matrix3x3 to divide. + The quotient of the two matrices. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Convert the 3x3 Matrix to a 4x4 Matrix. + + A 4x4 Matrix with zero translation and M44=1 + + + + Convert the 4x4 Matrix to a 3x3 Matrix. + + A 3x3 Matrix + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified are equal. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Gets or sets the first row in the Matrix3x3; that is M11, M12, M13 + + + + + Gets or sets the second row in the Matrix3x3; that is M21, M22, M23 + + + + + Gets or sets the third row in the Matrix3x3; that is M31, M32, M33 + + + + + Gets or sets the first column in the Matrix3x3; that is M11, M21, M31 + + + + + Gets or sets the second column in the Matrix3x3; that is M12, M22, M32 + + + + + Gets or sets the third column in the Matrix3x3; that is M13, M23, M33 + + + + + Gets or sets the scale of the Matrix3x3; that is M11, M22, and M33. + + + + + Gets a value indicating whether this instance is an identity Matrix3x3. + + + true if this instance is an identity Matrix3x3; otherwise, false. + + + + + Gets or sets the component at the specified index. + + The value of the Matrix3x3 component, depending on the index. + The zero-based index of the component to access. + The value of the component at the specified index. + Thrown when the is out of the range [0, 15]. + + + + Gets or sets the component at the specified index. + + The value of the Matrix3x3 component, depending on the index. + The row of the Matrix3x3 to access. + The column of the Matrix3x3 to access. + The value of the component at the specified index. + Thrown when the or is out of the range [0, 3]. + + + + Internal class used to initialize this assembly. + + + + + Initializes this assembly. + + + This method is called when the assembly is loaded. + + + + + OrientedBoundingBox (OBB) is a rectangular block, much like an AABB (BoundingBox) but with an arbitrary orientation. + + + + + Half lengths of the box along each axis. + + + + + The matrix which aligns and scales the box, and its translation vector represents the center of the box. + + + + + Creates an from a BoundingBox. + + The BoundingBox to create from. + + Initially, the OBB is axis-aligned box, but it can be rotated and transformed later. + + + + + Creates an which contained between two minimum and maximum points. + + The minimum vertex of the bounding box. + The maximum vertex of the bounding box. + + Initially, the OrientedBoundingBox is axis-aligned box, but it can be rotated and transformed later. + + + + + Creates an that fully contains the given points. + + The points that will be contained by the box. + + This method is not for computing the best tight-fitting OrientedBoundingBox. + And initially, the OrientedBoundingBox is axis-aligned box, but it can be rotated and transformed later. + + + + + Retrieves the eight corners of the bounding box. + + An array of points representing the eight corners of the bounding box. + + + + Transforms this box using a transformation matrix. + + The transformation matrix. + + While any kind of transformation can be applied, it is recommended to apply scaling using scale method instead, which + scales the Extents and keeps the Transformation matrix for rotation only, and that preserves collision detection accuracy. + + + + + Transforms this box using a transformation matrix. + + The transformation matrix. + + While any kind of transformation can be applied, it is recommended to apply scaling using scale method instead, which + scales the Extents and keeps the Transformation matrix for rotation only, and that preserves collision detection accuracy. + + + + + Scales the by scaling its Extents without affecting the Transformation matrix, + By keeping Transformation matrix scaling-free, the collision detection methods will be more accurate. + + + + + + Scales the by scaling its Extents without affecting the Transformation matrix, + By keeping Transformation matrix scaling-free, the collision detection methods will be more accurate. + + + + + + Scales the by scaling its Extents without affecting the Transformation matrix, + By keeping Transformation matrix scaling-free, the collision detection methods will be more accurate. + + + + + + Translates the to a new position using a translation vector; + + the translation vector. + + + + Translates the to a new position using a translation vector; + + the translation vector. + + + + Returns the size of the taking into consideration the scaling applied to the transformation matrix. + + The size of the consideration + + This method is computationally expensive, so if no scale is applied to the transformation matrix + use property instead. + + + + + Returns the square size of the taking into consideration the scaling applied to the transformation matrix. + + The size of the consideration + + + + Determines whether a contains a point. + + The point to test. + The type of containment the two objects have. + + + + Determines whether a contains a point. + + The point to test. + The type of containment the two objects have. + + + + Determines whether a contains an array of points>. + + The points array to test. + The type of containment. + + + + Determines whether a contains a . + + The sphere to test. + Optimize the check operation by assuming that has no scaling applied + The type of containment the two objects have. + + This method is not designed for which has a non-uniform scaling applied to its transformation matrix. + But any type of scaling applied using Scale method will keep this method accurate. + + + + + Check the intersection between two + + The OrientedBoundingBoxs to test. + The type of containment the two objects have. + + For accuracy, The transformation matrix for both must not have any scaling applied to it. + Anyway, scaling using Scale method will keep this method accurate. + + + + + Check the intersection between an and a line defined by two points + + The first point in the line. + The second point in the line. + The type of containment the two objects have. + + For accuracy, The transformation matrix for the must not have any scaling applied to it. + Anyway, scaling using Scale method will keep this method accurate. + + + + + Check the intersection between an and + + The BoundingBox to test. + The type of containment the two objects have. + + For accuracy, The transformation matrix for the must not have any scaling applied to it. + Anyway, scaling using Scale method will keep this method accurate. + + + + + Determines whether there is an intersection between a and a . + + The ray to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The ray to test. + Whether the two objects intersected. + + + + Get the axis-aligned which contains all corners. + + The axis-aligned BoundingBox of this OrientedBoundingBox. + + + + Calculates the matrix required to transfer any point from one local coordinates to another. + + The source OrientedBoundingBox. + The target OrientedBoundingBox. + + If true, the method will use a fast algorithm which is inapplicable if a scale is applied to the transformation matrix of the OrientedBoundingBox. + + + + + + Merge an OrientedBoundingBox B into another OrientedBoundingBox A, by expanding A to contain B and keeping A orientation. + + The to merge into it. + The to be merged + + If true, the method will use a fast algorithm which is inapplicable if a scale is applied to the transformation matrix of the OrientedBoundingBox. + + + Unlike merging axis aligned boxes, The operation is not interchangeable, because it keeps A orientation and merge B into it. + + + + + Merge this OrientedBoundingBox into another OrientedBoundingBox, keeping the other OrientedBoundingBox orientation. + + The other to merge into. + + If true, the method will use a fast algorithm which is inapplicable if a scale is applied to the transformation matrix of the OrientedBoundingBox. + + + + + Merge another OrientedBoundingBox into this OrientedBoundingBox. + + The other to merge into this OrientedBoundingBox. + + If true, the method will use a fast algorithm which is inapplicable if a scale is applied to the transformation matrix of the OrientedBoundingBox. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + + + + The size of the if no scaling is applied to the transformation matrix. + + + The property will return the actual size even if the scaling is applied using Scale method, + but if the scaling is applied to transformation matrix, use GetSize Function instead. + + + + + Returns the center of the . + + + + + Random functions on commun types. + + + + + Gets random float number within range. + + Current . + Minimum. + Maximum. + Random float number. + + + + Gets random double number within range. + + Current . + Minimum. + Maximum. + Random double number. + + + + Gets random long number. + + Current . + Random long number. + + + + Gets random long number within range. + + Current . + Minimum. + Maximum. + Random long number. + + + + Gets random within range. + + Current . + Minimum. + Maximum. + Random . + + + + Gets random within range. + + Current . + Minimum. + Maximum. + Random . + + + + Gets random within range. + + Current . + Minimum. + Maximum. + Random . + + + + Gets random opaque . + + Current . + Random . + + + + Gets random opaque . + + Current . + Minimum brightness. + Maximum brightness + Random . + + + + Gets random . + + Current . + Minimum brightness. + Maximum brightness + Alpha value. + Random . + + + + Gets random . + + Current . + Minimum brightness. + Maximum brightness + Minimum alpha. + Maximum alpha. + Random . + + + + Gets random . + + Current . + Minimum. + Maximum. + Random . + + + + Gets random . + + Current . + Minimum. + Maximum. + Random . + + + + Task utility for threading. + + + + + Runs the specified action in a thread. + + The action. + Name of the task. + + + + Defines the viewport dimensions using float coordinates for (X,Y,Width,Height). + + + + + Position of the pixel coordinate of the upper-left corner of the viewport. + + + + + Position of the pixel coordinate of the upper-left corner of the viewport. + + + + + Width dimension of the viewport. + + + + + Height dimension of the viewport. + + + + + Gets or sets the minimum depth of the clip volume. + + + + + Gets or sets the maximum depth of the clip volume. + + + + + Initializes a new instance of the struct. + + The x coordinate of the upper-left corner of the viewport in pixels. + The y coordinate of the upper-left corner of the viewport in pixels. + The width of the viewport in pixels. + The height of the viewport in pixels. + + + + Initializes a new instance of the struct. + + The x coordinate of the upper-left corner of the viewport in pixels. + The y coordinate of the upper-left corner of the viewport in pixels. + The width of the viewport in pixels. + The height of the viewport in pixels. + The minimum depth of the clip volume. + The maximum depth of the clip volume. + + + + Initializes a new instance of the struct. + + A bounding box that defines the location and size of the viewport in a render target. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified object is equal to this instance. + + The object to compare with this instance. + + true if the specified object is equal to this instance; otherwise, false. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Retrieves a string representation of this object. + + A that represents this instance. + + + + + Projects a 3D vector from object space into screen space. + + The vector to project. + A combined WorldViewProjection matrix. + The projected vector. + + + + Converts a screen space point into a corresponding point in world space. + + The vector to project. + The projection matrix. + The view matrix. + The world matrix. + The unprojected Vector. + + + + Converts a screen space point into a corresponding point in world space. + + The vector to project. + An inverted combined WorldViewProjection matrix. + The unprojected vector. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Gets the size of this resource. + + The bounds. + + + + Gets the aspect ratio used by the viewport. + + The aspect ratio. + + + + A fast method to pass array of to SharpDX methods. + + + + + Initializes a new instance of the class. + + The array. + + + + Initializes a new instance of the class. + + The size. + + + + Gets an object at the specified index. + + The index. + A + + + + Sets an object at the specified index. + + The index. + The value. + + + + + + + Gets the pointer to the native array associated to this instance. + + + + + Gets the length. + + + + + A typed version of + + Type of the + + + + Initializes a new instance of the class. + + The array. + + + + Initializes a new instance of the class. + + The size. + + + + Gets or sets the with the specified i. + + + + + Generic class to hold a shader compilation results. + + Type of the class containing the generated bytecode. + + + + Initializes a new instance of the class. + + The bytecode. + Result code from compilation. + The message. + + + + + + + Gets the Shader bytecode. + + + + + Gets the result code from the compilation. + + + + + Gets a value indicating whether this instance has errors. + + + true if this instance has errors; otherwise, false. + + + + + Gets the message. + + + Message are warning or error messages. + + + + + Represents a four dimensional mathematical vector of bool (32 bits per bool value). + + + + + The size of the type, in bytes. + + + + + A with all of its components set to false. + + + + + The X unit (true, 0, 0, 0). + + + + + The Y unit (0, true, 0, 0). + + + + + The Z unit (0, 0, true, 0). + + + + + The W unit (0, 0, 0, true). + + + + + A with all of its components set to true. + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + The Z component of the vector. + + + + + The W component of the vector. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the vector. + Initial value for the Y component of the vector. + Initial value for the Z component of the vector. + Initial value for the W component of the vector. + + + + Initializes a new instance of the struct. + + The values to assign to the X, Y, Z, and W components of the vector. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Creates an array containing the elements of the vector. + + A four-element array containing the components of the vector. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Performs an implicit conversion from array to . + + The input. + The result of the conversion. + + + + Performs an implicit conversion from to array. + + The input. + The result of the conversion. + + + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + The Z component of the vector. + + + + + The W component of the vector. + + + + + Gets or sets the component at the specified index. + + The value of the X, Y, Z, or W component, depending on the index. + The index of the component to access. Use 0 for the X component, 1 for the Y component, 2 for the Z component, and 3 for the W component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + The assembly is the core assembly providing infrastructure for all managed DirectX API. + + + + + Represents a 32-bit color (4 bytes) in the form of RGBA (in byte order: R, G, B, A). + + + List of predefined . + + + + + The red component of the color. + + + + + The green component of the color. + + + + + The blue component of the color. + + + + + The alpha component of the color. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The red component of the color. + The green component of the color. + The blue component of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. Alpha is set to 255. + + The red component of the color. + The green component of the color. + The blue component of the color. + + + + Initializes a new instance of the struct. Passed values are clamped within byte range. + + The red component of the color. + The green component of the color. + The blue component of the color. + + + + Initializes a new instance of the struct. Alpha is set to 255. Passed values are clamped within byte range. + + The red component of the color. + The green component of the color. + The blue component of the color. + + + + Initializes a new instance of the struct. + + The red component of the color. + The green component of the color. + The blue component of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. Alpha is set to 255. + + The red component of the color. + The green component of the color. + The blue component of the color. + + + + Initializes a new instance of the struct. + + The red, green, blue, and alpha components of the color. + + + + Initializes a new instance of the struct. + + The red, green, and blue components of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. Alpha is set to 255. + + The red, green, and blue components of the color. + + + + Initializes a new instance of the struct. + + A packed integer containing all four color components in RGBA order. + + + + Initializes a new instance of the struct. + + A packed integer containing all four color components in RGBA order. + + + + Initializes a new instance of the struct. + + The values to assign to the red, green, and blue, alpha components of the color. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Initializes a new instance of the struct. + + The values to assign to the alpha, red, green, and blue components of the color. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a three component vector. + + A three component vector containing the red, green, and blue components of the color. + + + + Converts the color into a three component color. + + A three component color containing the red, green, and blue components of the color. + + + + Converts the color into a four component vector. + + A four component vector containing all four color components. + + + + Creates an array containing the elements of the color. + + A four-element array containing the components of the color in RGBA order. + + + + Gets the brightness. + + The Hue-Saturation-Brightness (HSB) saturation for this + + + + Gets the hue. + + The Hue-Saturation-Brightness (HSB) saturation for this + + + + Gets the saturation. + + The Hue-Saturation-Brightness (HSB) saturation for this + + + + Adds two colors. + + The first color to add. + The second color to add. + When the method completes, completes the sum of the two colors. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + WHen the method completes, contains the difference of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract + The difference of the two colors. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + When the method completes, contains the modulated color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + When the method completes, contains the scaled color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + The scaled color. + + + + Negates a color. + + The color to negate. + When the method completes, contains the negated color. + + + + Negates a color. + + The color to negate. + The negated color. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The premultiplied result. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The premultiplied result. + + + + Converts the color from a packed BGRA integer. + + A packed integer containing all four color components in BGRA order + A color. + + + + Converts the color from a packed BGRA integer. + + A packed integer containing all four color components in BGRA order + A color. + + + + Converts the color from a packed ABGR integer. + + A packed integer containing all four color components in ABGR order + A color. + + + + Converts the color from a packed ABGR integer. + + A packed integer containing all four color components in ABGR order + A color. + + + + Converts the color from a packed BGRA integer. + + A packed integer containing all four color components in RGBA order + A color. + + + + Converts the color from a packed BGRA integer. + + A packed integer containing all four color components in RGBA order + A color. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two colors. + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the largest components of the source colors. + + + + Returns a color containing the largest components of the specified colorss. + + The first source color. + The second source color. + A color containing the largest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the smallest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + A color containing the smallest components of the source colors. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + When the method completes, contains the adjusted color. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + The adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + When the method completes, contains the adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + The adjusted color. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Assert a color (return it unchanged). + + The color to assert (unchanged). + The asserted (unchanged) color. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + The difference of the two colors. + + + + Negates a color. + + The color to negate. + A negated color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Convert this instance to a + + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an explicit conversion from to . + + The value. + + The result of the conversion. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel element (byte). + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel element (byte). + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Zero color. + + + + + Transparent color. + + + + + AliceBlue color. + + + + + AntiqueWhite color. + + + + + Aqua color. + + + + + Aquamarine color. + + + + + Azure color. + + + + + Beige color. + + + + + Bisque color. + + + + + Black color. + + + + + BlanchedAlmond color. + + + + + Blue color. + + + + + BlueViolet color. + + + + + Brown color. + + + + + BurlyWood color. + + + + + CadetBlue color. + + + + + Chartreuse color. + + + + + Chocolate color. + + + + + Coral color. + + + + + CornflowerBlue color. + + + + + Cornsilk color. + + + + + Crimson color. + + + + + Cyan color. + + + + + DarkBlue color. + + + + + DarkCyan color. + + + + + DarkGoldenrod color. + + + + + DarkGray color. + + + + + DarkGreen color. + + + + + DarkKhaki color. + + + + + DarkMagenta color. + + + + + DarkOliveGreen color. + + + + + DarkOrange color. + + + + + DarkOrchid color. + + + + + DarkRed color. + + + + + DarkSalmon color. + + + + + DarkSeaGreen color. + + + + + DarkSlateBlue color. + + + + + DarkSlateGray color. + + + + + DarkTurquoise color. + + + + + DarkViolet color. + + + + + DeepPink color. + + + + + DeepSkyBlue color. + + + + + DimGray color. + + + + + DodgerBlue color. + + + + + Firebrick color. + + + + + FloralWhite color. + + + + + ForestGreen color. + + + + + Fuchsia color. + + + + + Gainsboro color. + + + + + GhostWhite color. + + + + + Gold color. + + + + + Goldenrod color. + + + + + Gray color. + + + + + Green color. + + + + + GreenYellow color. + + + + + Honeydew color. + + + + + HotPink color. + + + + + IndianRed color. + + + + + Indigo color. + + + + + Ivory color. + + + + + Khaki color. + + + + + Lavender color. + + + + + LavenderBlush color. + + + + + LawnGreen color. + + + + + LemonChiffon color. + + + + + LightBlue color. + + + + + LightCoral color. + + + + + LightCyan color. + + + + + LightGoldenrodYellow color. + + + + + LightGray color. + + + + + LightGreen color. + + + + + LightPink color. + + + + + LightSalmon color. + + + + + LightSeaGreen color. + + + + + LightSkyBlue color. + + + + + LightSlateGray color. + + + + + LightSteelBlue color. + + + + + LightYellow color. + + + + + Lime color. + + + + + LimeGreen color. + + + + + Linen color. + + + + + Magenta color. + + + + + Maroon color. + + + + + MediumAquamarine color. + + + + + MediumBlue color. + + + + + MediumOrchid color. + + + + + MediumPurple color. + + + + + MediumSeaGreen color. + + + + + MediumSlateBlue color. + + + + + MediumSpringGreen color. + + + + + MediumTurquoise color. + + + + + MediumVioletRed color. + + + + + MidnightBlue color. + + + + + MintCream color. + + + + + MistyRose color. + + + + + Moccasin color. + + + + + NavajoWhite color. + + + + + Navy color. + + + + + OldLace color. + + + + + Olive color. + + + + + OliveDrab color. + + + + + Orange color. + + + + + OrangeRed color. + + + + + Orchid color. + + + + + PaleGoldenrod color. + + + + + PaleGreen color. + + + + + PaleTurquoise color. + + + + + PaleVioletRed color. + + + + + PapayaWhip color. + + + + + PeachPuff color. + + + + + Peru color. + + + + + Pink color. + + + + + Plum color. + + + + + PowderBlue color. + + + + + Purple color. + + + + + Red color. + + + + + RosyBrown color. + + + + + RoyalBlue color. + + + + + SaddleBrown color. + + + + + Salmon color. + + + + + SandyBrown color. + + + + + SeaGreen color. + + + + + SeaShell color. + + + + + Sienna color. + + + + + Silver color. + + + + + SkyBlue color. + + + + + SlateBlue color. + + + + + SlateGray color. + + + + + Snow color. + + + + + SpringGreen color. + + + + + SteelBlue color. + + + + + Tan color. + + + + + Teal color. + + + + + Thistle color. + + + + + Tomato color. + + + + + Turquoise color. + + + + + Violet color. + + + + + Wheat color. + + + + + White color. + + + + + WhiteSmoke color. + + + + + Yellow color. + + + + + YellowGreen color. + + + + + Gets or sets the component at the specified index. + + The value of the alpha, red, green, or blue component, depending on the index. + The index of the component to access. Use 0 for the alpha component, 1 for the red component, 2 for the green component, and 3 for the blue component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + Represents a 32-bit color (4 bytes) in the form of BGRA (in byte order: B, G, B, A). + + + + + The blue component of the color. + + + + + The green component of the color. + + + + + The red component of the color. + + + + + The alpha component of the color. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The red component of the color. + The green component of the color. + The blue component of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. + + The red component of the color. + The green component of the color. + The blue component of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. + + The red, green, blue, and alpha components of the color. + + + + Initializes a new instance of the struct. + + The red, green, and blue components of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. + + A packed integer containing all four color components in BGRA order. + + + + Initializes a new instance of the struct. + + A packed integer containing all four color components in BGRA. + + + + Initializes a new instance of the struct. + + The values to assign to the red, green, and blue, alpha components of the color. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Initializes a new instance of the struct. + + The values to assign to the red, green, and blue, alpha components of the color. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a three component vector. + + A three component vector containing the red, green, and blue components of the color. + + + + Converts the color into a three component color. + + A three component color containing the red, green, and blue components of the color. + + + + Converts the color into a four component vector. + + A four component vector containing all four color components. + + + + Creates an array containing the elements of the color. + + A four-element array containing the components of the color in BGRA order. + + + + Gets the brightness. + + The Hue-Saturation-Brightness (HSB) saturation for this + + + + Gets the hue. + + The Hue-Saturation-Brightness (HSB) saturation for this + + + + Gets the saturation. + + The Hue-Saturation-Brightness (HSB) saturation for this + + + + Converts the color from a packed BGRA integer. + + A packed integer containing all four color components in BGRA order + A color. + + + + Converts the color from a packed BGRA integer. + + A packed integer containing all four color components in BGRA order + A color. + + + + Converts the color from a packed RGBA integer. + + A packed integer containing all four color components in RGBA order + A color. + + + + Converts the color from a packed RGBA integer. + + A packed integer containing all four color components in RGBA order + A color. + + + + Adds two colors. + + The first color to add. + The second color to add. + When the method completes, completes the sum of the two colors. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + WHen the method completes, contains the difference of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract + The difference of the two colors. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + When the method completes, contains the modulated color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + When the method completes, contains the scaled color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + The scaled color. + + + + Negates a color. + + The color to negate. + When the method completes, contains the negated color. + + + + Negates a color. + + The color to negate. + The negated color. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two colors. + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two colors. + + + + Returns a color containing the smallest components of the specified colorss. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the largest components of the source colorss. + + + + Returns a color containing the largest components of the specified colorss. + + The first source color. + The second source color. + A color containing the largest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the smallest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + A color containing the smallest components of the source colors. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + When the method completes, contains the adjusted color. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + The adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + When the method completes, contains the adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + The adjusted color. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The premultiplied result. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The premultiplied result. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Assert a color (return it unchanged). + + The color to assert (unchange). + The asserted (unchanged) color. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + The difference of the two colors. + + + + Negates a color. + + The color to negate. + A negated color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an explicit conversion from to . + + The value. + + The result of the conversion. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel (byte). + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel (byte). + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Gets or sets the component at the specified index. + + The value of the alpha, red, green, or blue component, depending on the index. + The index of the component to access. Use 0 for the alpha component, 1 for the red component, 2 for the green component, and 3 for the blue component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + Base interface for a component base. + + + + + Gets the name of this component. + + The name. + + + + A service registry is a that provides methods to register and unregister services. + + + + + Gets the service object of specified type. The service must be registered with the type key. + + This method will thrown an exception if the service is not registered, it null value can be accepted - use the method. + The type of the service to get. + The service instance. + Is thrown when the corresponding service is not registered. + + + + Adds a service to this service provider. + + The type of service to add. + The instance of the service provider to add. + Service type cannot be null + Service is already registered + + + + Adds a service to this service provider. + + The type of the service to add. + The instance of the service provider to add. + Service type cannot be null + Service is already registered + + + + Removes the object providing a specified service. + + The type of service. + + + + Occurs when a new service is added. + + + + + Occurs when when a service is removed. + + + + + Path utility methods. + + + + + Transform a path by replacing '/' by '\' and transforming relative '..' or current path '.' to an absolute path. See remarks. + + A path string + A normalized path. + + Unlike , this doesn't make a path absolute to the actual file system. + + + + + Specify the size used for encoding length for array while using a , just before an array is encoded. + + + + + Use variable length 7Bit Encoding that will output from 1 byte to 5 byte depending on the range of length value. + + + + + Output a length as a byte. The length must not be greater than 255. + + + + + Output a length as an ushort. The length must not be greater than 65535. + + + + + Output a length as an int. The length must not be greater than 2^31 - 1. + + + + + The namespace contains a serialization API. + + + + + Flags used when serializing a value with a . + + + + + Normal serialize (not dynamic, not nullable). + + + + + Serialize a value as a dynamic value (the output stream will contain a magic-code for each encoded object). + + + + + Serialize a value that can be null. + + + + + A singleton string is a string that has a unique instance in memory, See remarks for usage scenarios. + + + This class should mostly be used internally for performance reasons, in scenarios where equals/hashcode + could be invoked frequently, and the set of strings is limited. Internally, + string is using the method and also is precaching the hashcode of the string. + + + + + Initializes a new instance of the struct. + + The text. + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + A lightweight Component base class. + + + + + Occurs while this component is disposing and before it is disposed. + + + + + Gets or sets a value indicating whether the name of this instance is immutable. + + true if this instance is name immutable; otherwise, false. + + + + Initializes a new instance of the class with a mutable name. + + + + + Initializes a new instance of the class with an immutable name. + + The name. + + + + Gets the name of this component. + + The name. + + + + Gets or sets the tag associated to this object. + + The tag. + + + + Occurs when a property value changes. + + + + + Pointer to a native buffer with a specific size. + + + + + Gets an Empty Data Pointer. + + + + + Initializes a new instance of the struct. + + The pointer. + The size. + + + + Initializes a new instance of the struct. + + The pointer. + The size. + + + + Pointer to the buffer. + + + + + Size in bytes of the buffer. + + + + + Converts this DataPointer to a . + + An instance of a . + + + + Converts this DataPointer to a . + + An instance of a . + + + + Converts this instance to a read only byte buffer. + + A readonly byte buffer. + + DataPointer is Zero + or + Size cannot be < 0 + + + + + Converts this instance to a read only typed buffer. + + Type of a buffer element + A readonly typed buffer. + DataPointer is Zero + + + + Reads the content of the unmanaged memory location of this instance to the specified buffer. + + Type of a buffer element + The buffer. + The offset in the array to write to. + The number of T element to read from the memory location. + buffer + DataPointer is Zero + buffer;Total buffer size cannot be larger than size of this data pointer + + + + Writes the content of the specified buffer to the unmanaged memory location of this instance. + + Type of a buffer element + The buffer. + buffer + DataPointer is Zero + + + + Writes the content of the specified buffer to the unmanaged memory location of this instance. + + + The buffer to read from. + The offset in the array to read from. + The number of T element to write to the memory location. + buffer + DataPointer is Zero + buffer;Total buffer size cannot be larger than size of this data pointer + + + + Implements the ==. + + The left. + The right. + The result of the operator. + + + + Implements the !=. + + The left. + The right. + The result of the operator. + + + + Gets a value indicating whether this instance is empty (zeroed). + + true if this instance is empty; otherwise, false. + + + + The namespace contains classes to help to diagnostic of COM object lifecycles Dispose and Release methods. + + + + + The namespace contains enumerations and structures shared by , and assemblies. + + + + + A class to dispose instances and allocated unmanaged memory. + + + + + Disposes all object collected by this class and clear the list. The collector can still be used for collecting. + + + To completely dispose this instance and avoid further dispose, use method instead. + + + + + Disposes of object resources. + + If true, managed resources should be + disposed of in addition to unmanaged resources. + + + + Adds a object or a allocated using to the list of the objects to dispose. + + To dispose. + If toDispose argument is not IDisposable or a valid memory pointer allocated by + + + + Dispose a disposable object and set the reference to null. Removes this object from this instance.. + + Object to dispose. + + + + Removes a disposable object to the list of the objects to dispose. + + + To dispose. + + + + Gets the number of elements to dispose. + + The number of elements to dispose. + + + + Frustum camera parameters. + + + + + Position of the camera. + + + + + Looking at direction of the camera. + + + + + Up direction. + + + + + Field of view. + + + + + Z near distance. + + + + + Z far distance. + + + + + Aspect ratio. + + + + + Equality comparer using the identify of the object. + + Type of the parameter + + From http://stackoverflow.com/questions/8946790/how-to-use-an-objects-identity-as-key-for-dictionaryk-v. + + + + + Represents a three dimensional mathematical int vector. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The X unit (1, 0, 0). + + + + + The Y unit (0, 1, 0). + + + + + The Z unit (0, 0, 1). + + + + + A with all of its components set to one. + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + The Z component of the vector. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the vector. + Initial value for the Y component of the vector. + Initial value for the Z component of the vector. + + + + Initializes a new instance of the struct. + + The values to assign to the X, Y, Z, and W components of the vector. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Creates an array containing the elements of the vector. + + A four-element array containing the components of the vector. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + When the method completes, contains the sum of the two vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + When the method completes, contains the difference of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Modulates a vector with another by performing component-wise multiplication. + + The first vector to modulate. + The second vector to modulate. + When the method completes, contains the modulated vector. + + + + Modulates a vector with another by performing component-wise multiplication. + + The first vector to modulate. + The second vector to modulate. + The modulated vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Reverses the direction of a given vector. + + The vector to negate. + When the method completes, contains a vector facing in the opposite direction. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the largest components of the source vectors. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the largest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the smallest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the smallest components of the source vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Assert a vector (return it unchanged). + + The vector to assert (unchanged). + The asserted (unchanged) vector. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Performs an implicit conversion from array to . + + The input. + The result of the conversion. + + + + Performs an implicit conversion from to array. + + The input. + The result of the conversion. + + + + Gets or sets the component at the specified index. + + The value of the X, Y, Z, or W component, depending on the index. + The index of the component to access. Use 0 for the X component, 1 for the Y component, 2 for the Z component, and 3 for the W component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + The namespace contains helper classes in replacement of some classes in useful under Windows 8 Metro. + + + + + This enumeration defines constants that indicate the role that the system has assigned to an audio endpoint device. + + dd370842 + ERole + ERole + + + + Games, system notification sounds, and voice commands + + + + + Music, movies, narration, and live music recording. + + + + + Voice communications (talking to another person). + + + + + The namespace contains common structures and helper classes for audio/video processing. + + + + + Use this attribute to specify the id of a dynamic type with . + + + + + Initializes a new instance of the class. + + The id to register as a dynamic type. + + + + Initializes a new instance of the class. + + The id to register as a dynamic type. + + + + Gets the id. + + The id. + + + + Exceptions thrown when an invalid chunk is decoded. + + + + + Initializes a new instance of the class with a specified error message. + + The chunk id. + The expected chunk id. + + + + Gets the chunk id. + + The chunk id. + + + + Gets the expected chunk id. + + The expected chunk id. + + + + Serializer action. + + The value to read or write. + The serializer. + + + + This class provides serialization methods for types implementing the . + + + BinarySerializer is a basic binary serializer with the following features: +
    +
  • 10x times faster and smaller than default System Serialization and Xml Serialization.
  • +
  • Supports for all primitive types, array/List<T>/Dictionary of primitive types, custom data via (struct or class) and array/List/Dictionary of custom data.
  • +
  • Optimized binary format, data serialized to the strict minimum.
  • +
  • Should be compatible with Win8/WinRT, Desktop.
  • +
  • Not reflection based serializer, but fully compile time serializer.
  • +
  • Format could be read back from C/C++.
  • + +
+
+
+ + + A disposable component base class. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with an immutable name. + + The name. + + + + Releases unmanaged and - optionally - managed resources + + + + + Disposes of object resources. + + If true, managed resources should be + disposed of in addition to unmanaged resources. + + + + Adds a disposable object to the list of the objects to dispose. + + To dispose. + + + + Dispose a disposable object and set the reference to null. Removes this object from the ToDispose list. + + Object to dispose. + + + + Removes a disposable object to the list of the objects to dispose. + + + To dispose. + + + + Gets or sets the disposables. + + The disposables. + + + + Gets or sets a value indicating whether this instance is attached to a collector. + + + true if this instance is attached to a collector; otherwise, false. + + + + + Gets a value indicating whether this instance is disposed. + + + true if this instance is disposed; otherwise, false. + + + + + Occurs when when Dispose is called. + + + + + Gets the reader and throws an exception if this serializer is in Write mode. + + The context object that requires a Reader. + A BinaryReader. + context + If this reader is not in read mode + + + + Initializes a new instance of the class. + + The stream to read or write to. + The read or write mode. + + + + Initializes a new instance of the class. + + The stream to read or write to. + The read or write mode. + Default encoding used for strings. This parameter can be overriden later using Encoding property. + + + + Gets a tag value with the specified key. + + The tag key. + A tag value associated to a key + + + + Determines whether a tag with a specified key is already stored. + + The key. + true if a tag with a specified key is already stored; otherwise, false. + + + + Removes a tag with the specified key. + + The key. + + + + Sets a tag value with the specified key. + + The key. + The value. + + + + + Register a dynamic serializer for a particular type implementing the interface and having the . + + Type of the element to serialize. + + + + Register a dynamic serializer for a particular type implementing the interface. + + Type of the element to serialize. + The id to use for serializing T. + + + + Register a dynamic array serializer for a particular type implementing the interface. + + Type of the element in the array. + The id to use for serializing T[]. + + + + Register a dynamic List<T> serializer for a particular type implementing the interface. + + Type of the element in the List<T>. + The id to use for serializing List<T>. + + + + Register a dynamic serializer using an external action. + + Type of the element to serialize. + The id to use for serializing T. + The serializer. + + + + Begin to serialize a a new chunk. + + The chunk id. + If the chuck to read is not the expecting chunk. + + A Chunk is an identifiable portion of data that will serialized. Chunk are useful to encapsulate a variable + data (and check for the presence of the chunk Id). Chunk are storing a 4 bytes identifier and the length of + the chunk before reading/writing actual data. + + + + + Ends a chunk. + + If there EndChunk is called without a previous BeginChunk. + If the size of data read from the chunk is different from chunk size. + + + + Deserialize a data from the underlying stream. + + Type of the data to load. + An instance of the loaded data. + + + + Serializes the specified value to the underlying stream. + + Type of the data to save. + The value to save. + + + + Flush the underlying + + + + + Serializes a dynamic value that can be nullable. + + Known type of the value to serialize. The known type is not the runtime type that will be actually serialized. + The value to serialize based on its runtime type. + + + + Serializes a dynamic value. + + Known type of the value to serialize. The known type is not the runtime type that will be actually serialized. + The value to serialize based on its runtime type. + Type of serialization, see . + + + + Serializes a static value implementing the interface. + + Type of the data to serialize. + The value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a static value implementing the interface. Unlike , + this method doesn't allocate a new instance when reading but use the reference value. + + Type of the data to serialize. + The value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes an enum value. + + Type of the enum to serialize. + The value to serialize + If type T is not an enum. + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes an array of primitives using serialization methods implemented by this instance for each item in the array. + + Type of the primitive data to serialize. + An array of primitive value to serialize + The serializer to user to serialize the T values. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes count elements in an array of primitives using serialization methods implemented by this instance for each item in the array. + + Type of the primitive data to serialize. + An array of primitive value to serialize + Count elements to serialize. See remarks. + The serializer to user to serialize the T values. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value.
+ Caution: Also unlike the plain array version, the count is not serialized. This method is useful + when we want to serialize the count of an array separately from the array. +
+
+ + + Serializes an array of static values that are implementing the interface. + + Type of the data to serialize. + An array of value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes an array of static values that are implementing the interface. + + Type of the data to serialize. + An array of value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes count elements in an array of static values that are implementing the interface. + + Type of the data to serialize. + An array of value to serialize + Count elements to serialize. See remarks. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value.
+ Caution: Also unlike the plain array version, the count is not serialized. This method is useful + when we want to serialize the count of an array separately from the array. +
+
+ + + Serializes an array of bytes. + + An array of bytes to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes an array of bytes. + + An array of bytes to serialize + Count elements to serialize. See remarks. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value.
+ Caution: Also unlike the plain array version, the count is not serialized. This method is useful + when we want to serialize the count of an array separately from the array. +
+
+ + + Serializes a list of static values that are implementing the interface. + + Type of the data to serialize. + A list of value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a list of static values that are implementing the interface. + + Type of the data to serialize. + A list of value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a list of primitive values using a specific serializer method from this instance. + + Type of the data to serialize. + A list of value to serialize + A method of this instance to serialize the primitive T type + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes count elements from a list of static values that are implementing the interface. + + Type of the data to serialize. + A list of value to serialize + Count elements to serialize. See remarks. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value.
+ Caution: Also unlike the plain array version, the count is not serialized. This method is useful + when we want to serialize the count of an array separately from the array. +
+
+ + + Serializes count elements from a list of primitive values using a specific serializer method from this instance. + + Type of the data to serialize. + A list of value to serialize + A method of this instance to serialize the primitive T type + Count elements to serialize. See remarks. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value.
+ Caution: Also unlike the plain array version, the count is not serialized. This method is useful + when we want to serialize the count of an array separately from the array. +
+
+ + + Serializes a dictionary of key/values that are both implementing the interface. + + Type of key to serialize. + Type of value to serialize. + A dictionary to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a dictionary of key/values. + + Type of key to serialize that is implementing the interface. + Type of primitive value with its associated serializer. + A dictionary to serialize + Serializer used for the TValue. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a dictionary of key/values. + + Type of primitive value with its associated serializer. + Type of value to serialize that is implementing the interface. + A dictionary to serialize + Serializer used for the TKey. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a dictionary of key/values. + + Type of primitive key with its associated serializer. + Type of primitive value with its associated serializer. + A dictionary to serialize + Serializer used for the TKey. + Serializer used for the TValue. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single string value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + This string is serialized with the current set on this instance. + + + + + Serializes a single string value. + + The value to serialize + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + This string is serialized with the current set on this instance. + + + + + Serializes a single string value. + + The value to serialize + Write a null byte at the end of the string. + Type of serialization, see . + + Note that depending on the serialization , this method reads or writes the value. + This string is serialized with the current set on this instance. + + + + + Serializes a single fixed length string value. + + The value to serialize + Read/write a specific number of characters. + + Note that depending on the serialization , this method reads or writes the value. + This string is serialized with the current set on this instance. + + + + + Serializes a single boolean value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single byte value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single sbyte value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single short value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single ushort value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single int value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single int as a packed value (from 1 byte to 5 byte. if value < 128, then 1 byte...etc.) + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a memory region. + + The pointer to an unmanaged memory region. For read operation, this pointer must be allocated by the caller. + If the end of stream was reached before reading all the bytes. + Note that depending on the serialization , this method reads or writes the value. + This method doesn't serialize the sizeInBytes of the region, so the size must be serialized separately. + + + + + Serializes a memory region. + + The data pointer. For read operation, this pointer must be allocated by the caller. + The size in bytes. See remarks. + If the end of stream was reached before reading all the bytes. + Note that depending on the serialization , this method reads or writes the value. + This method doesn't serialize the sizeInBytes of the region, so the size must be serialized separately. + + + + + Serializes a single uint value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single long value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single ulong value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single char value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single float value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single double value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single DateTime value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Serializes a single Guid value. + + The value to serialize + + Note that depending on the serialization , this method reads or writes the value. + + + + + Underlying stream this instance is reading/writing to. + + + + + Reader used to directly read from the underlying stream. + + + + + Writer used to directly write to the underlying stream. + + + + + Gets or sets the serialization mode. + + The serialization mode. + + + + Gets or sets the encoding used to serialized strings. + + The encoding. + When setting a null encoding + + + + Enables to serialize an object only once using object reference. Default is false. + + true if [allow null]; otherwise, false. + If an invalid matching pair of true/false is detected. + + + + Serialization mode used by . + + + + + Reads the data from the stream. + + + + + Writes the data to the stream. + + + + + Shadow attribute used to associate a COM callbackable interface to its Shadow implementation. + + + + + Initializes a new instance of class. + + Type of the associated shadow + + + + Get ShadowAttribute from type. + + Type to get shadow attribute + The associated shadow attribute or null if no shadow attribute were found + + + + Gets the value. + + + + + Represents a 4x4 mathematical Matrix5x4. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The identity . + + + + + Value at row 1 column 1 of the Matrix5x4. + + + + + Value at row 1 column 2 of the Matrix5x4. + + + + + Value at row 1 column 3 of the Matrix5x4. + + + + + Value at row 1 column 4 of the Matrix5x4. + + + + + Value at row 2 column 1 of the Matrix5x4. + + + + + Value at row 2 column 2 of the Matrix5x4. + + + + + Value at row 2 column 3 of the Matrix5x4. + + + + + Value at row 2 column 4 of the Matrix5x4. + + + + + Value at row 3 column 1 of the Matrix5x4. + + + + + Value at row 3 column 2 of the Matrix5x4. + + + + + Value at row 3 column 3 of the Matrix5x4. + + + + + Value at row 3 column 4 of the Matrix5x4. + + + + + Value at row 4 column 1 of the Matrix5x4. + + + + + Value at row 4 column 2 of the Matrix5x4. + + + + + Value at row 4 column 3 of the Matrix5x4. + + + + + Value at row 4 column 4 of the Matrix5x4. + + + + + Value at row 5 column 1 of the Matrix5x4. + + + + + Value at row 5 column 2 of the Matrix5x4. + + + + + Value at row 5 column 3 of the Matrix5x4. + + + + + Value at row 5 column 4 of the Matrix5x4. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The value to assign at row 1 column 1 of the Matrix5x4. + The value to assign at row 1 column 2 of the Matrix5x4. + The value to assign at row 1 column 3 of the Matrix5x4. + The value to assign at row 1 column 4 of the Matrix5x4. + The value to assign at row 2 column 1 of the Matrix5x4. + The value to assign at row 2 column 2 of the Matrix5x4. + The value to assign at row 2 column 3 of the Matrix5x4. + The value to assign at row 2 column 4 of the Matrix5x4. + The value to assign at row 3 column 1 of the Matrix5x4. + The value to assign at row 3 column 2 of the Matrix5x4. + The value to assign at row 3 column 3 of the Matrix5x4. + The value to assign at row 3 column 4 of the Matrix5x4. + The value to assign at row 4 column 1 of the Matrix5x4. + The value to assign at row 4 column 2 of the Matrix5x4. + The value to assign at row 4 column 3 of the Matrix5x4. + The value to assign at row 4 column 4 of the Matrix5x4. + The value to assign at row 5 column 1 of the Matrix5x4. + The value to assign at row 5 column 2 of the Matrix5x4. + The value to assign at row 5 column 3 of the Matrix5x4. + The value to assign at row 5 column 4 of the Matrix5x4. + + + + Initializes a new instance of the struct. + + The values to assign to the components of the Matrix5x4. This must be an array with sixteen elements. + Thrown when is null. + Thrown when contains more or less than sixteen elements. + + + + Determines the sum of two matrices. + + The first Matrix5x4 to add. + The second Matrix5x4 to add. + When the method completes, contains the sum of the two matrices. + + + + Determines the sum of two matrices. + + The first Matrix5x4 to add. + The second Matrix5x4 to add. + The sum of the two matrices. + + + + Determines the difference between two matrices. + + The first Matrix5x4 to subtract. + The second Matrix5x4 to subtract. + When the method completes, contains the difference between the two matrices. + + + + Determines the difference between two matrices. + + The first Matrix5x4 to subtract. + The second Matrix5x4 to subtract. + The difference between the two matrices. + + + + Scales a Matrix5x4 by the given value. + + The Matrix5x4 to scale. + The amount by which to scale. + When the method completes, contains the scaled Matrix5x4. + + + + Scales a Matrix5x4 by the given value. + + The Matrix5x4 to scale. + The amount by which to scale. + When the method completes, contains the scaled Matrix5x4. + + + + Negates a Matrix5x4. + + The Matrix5x4 to be negated. + When the method completes, contains the negated Matrix5x4. + + + + Negates a Matrix5x4. + + The Matrix5x4 to be negated. + The negated Matrix5x4. + + + + Performs a linear interpolation between two matrices. + + Start Matrix5x4. + End Matrix5x4. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two matrices. + + Start Matrix5x4. + End Matrix5x4. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two matrices. + + Start Matrix5x4. + End Matrix5x4. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two matrices. + + + + Performs a cubic interpolation between two matrices. + + Start Matrix5x4. + End Matrix5x4. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two matrices. + + + + Creates a Matrix5x4 that scales along the x-axis, y-axis, y-axis and w-axis + + Scaling factor for all three axes. + When the method completes, contains the created scaling Matrix5x4. + + + + Creates a Matrix5x4 that scales along the x-axis, y-axis, and y-axis. + + Scaling factor for all three axes. + The created scaling Matrix5x4. + + + + Creates a Matrix5x4 that scales along the x-axis, y-axis, z-axis and w-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Scaling factor that is applied along the z-axis. + Scaling factor that is applied along the w-axis. + When the method completes, contains the created scaling Matrix5x4. + + + + Creates a Matrix5x4 that scales along the x-axis, y-axis, z-axis and w-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Scaling factor that is applied along the z-axis. + Scaling factor that is applied along the w-axis. + The created scaling Matrix5x4. + + + + Creates a Matrix5x4 that uniformly scales along all three axis. + + The uniform scale that is applied along all axis. + When the method completes, contains the created scaling Matrix5x4. + + + + Creates a Matrix5x4 that uniformly scales along all three axis. + + The uniform scale that is applied along all axis. + The created scaling Matrix5x4. + + + + Creates a translation Matrix5x4 using the specified offsets. + + The offset for all three coordinate planes. + When the method completes, contains the created translation Matrix5x4. + + + + Creates a translation Matrix5x4 using the specified offsets. + + The offset for all three coordinate planes. + The created translation Matrix5x4. + + + + Creates a translation Matrix5x4 using the specified offsets. + + X-coordinate offset. + Y-coordinate offset. + Z-coordinate offset. + W-coordinate offset. + When the method completes, contains the created translation Matrix5x4. + + + + Creates a translation Matrix5x4 using the specified offsets. + + X-coordinate offset. + Y-coordinate offset. + Z-coordinate offset. + W-coordinate offset. + The created translation Matrix5x4. + + + + Adds two matrices. + + The first Matrix5x4 to add. + The second Matrix5x4 to add. + The sum of the two matrices. + + + + Assert a Matrix5x4 (return it unchanged). + + The Matrix5x4 to assert (unchanged). + The asserted (unchanged) Matrix5x4. + + + + Subtracts two matrices. + + The first Matrix5x4 to subtract. + The second Matrix5x4 to subtract. + The difference between the two matrices. + + + + Negates a Matrix5x4. + + The Matrix5x4 to negate. + The negated Matrix5x4. + + + + Scales a Matrix5x4 by a given value. + + The Matrix5x4 to scale. + The amount by which to scale. + The scaled Matrix5x4. + + + + Scales a Matrix5x4 by a given value. + + The Matrix5x4 to scale. + The amount by which to scale. + The scaled Matrix5x4. + + + + Scales a Matrix5x4 by a given value. + + The Matrix5x4 to scale. + The amount by which to scale. + The scaled Matrix5x4. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Gets or sets the first row in the Matrix5x4; that is M11, M12, M13, and M14. + + + + + Gets or sets the second row in the Matrix5x4; that is M21, M22, M23, and M24. + + + + + Gets or sets the third row in the Matrix5x4; that is M31, M32, M33, and M34. + + + + + Gets or sets the fourth row in the Matrix5x4; that is M41, M42, M43, and M44. + + + + + Gets or sets the fifth row in the Matrix5x4; that is M51, M52, M53, and M54. + + + + + Gets or sets the translation of the Matrix5x4; that is M41, M42, and M43. + + + + + Gets or sets the scale of the Matrix5x4; that is M11, M22, and M33. + + + + + Gets a value indicating whether this instance is an identity Matrix5x4. + + + true if this instance is an identity Matrix5x4; otherwise, false. + + + + + Gets or sets the component at the specified index. + + The value of the Matrix5x4 component, depending on the index. + The zero-based index of the component to access. + The value of the component at the specified index. + Thrown when the is out of the range [0, 15]. + + + + Gets or sets the component at the specified index. + + The value of the Matrix5x4 component, depending on the index. + The row of the Matrix5x4 to access. + The column of the Matrix5x4 to access. + The value of the component at the specified index. + Thrown when the or is out of the range [0, 3]. + + + + Descriptor used to provide detailed message for a particular . + + + + + Initializes a new instance of the class. + + The HRESULT error code. + The module (ex: SharpDX.Direct2D1). + The API code (ex: D2D1_ERR_...). + The description of the result code if any. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + + + + Performs an implicit conversion from to . + + The result. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The result. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The result. + The result of the conversion. + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Registers a provider. + + Type of the descriptors provider. + + Providers are usually registered at module init when SharpDX assemblies are loaded. + + + + + Finds the specified result descriptor. + + The result code. + A descriptor for the specified result + + + + Gets the result. + + + + + Gets the HRESULT error code. + + The HRESULT error code. + + + + Gets the module (ex: SharpDX.Direct2D1) + + + + + Gets the native API code (ex: D2D1_ERR_ ...) + + + + + Gets the API code (ex: DemiceRemoved ...) + + + + + Gets the description of the result code if any. + + + + + Structure using the same layout than . + + + + + A zero size with (width, height) = (0,0) + + + + + A zero size with (width, height) = (0,0) + + + + + Initializes a new instance of the struct. + + The x. + The y. + + + + Width. + + + + + Height. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + + + + Implements the operator ==. + + The left. + The right. + + The result of the operator. + + + + + Implements the operator !=. + + The left. + The right. + + The result of the operator. + + + + + + + + Structure using the same layout than . + + + + + A zero size with (width, height) = (0,0) + + + + + A zero size with (width, height) = (0,0) + + + + + Initializes a new instance of the struct. + + The x. + The y. + + + + Width. + + + + + Height. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + + + + Implements the operator ==. + + The left. + The right. + + The result of the operator. + + + + + Implements the operator !=. + + The left. + The right. + + The result of the operator. + + + + + + + + Structure using the same layout than . + + + + + A point with (0,0) coordinates. + + + + + Initializes a new instance of the struct. + + The x. + The y. + + + + Left coordinate. + + + + + Top coordinate. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + + + + Implements the operator ==. + + The left. + The right. + + The result of the operator. + + + + + Implements the operator !=. + + The left. + The right. + + The result of the operator. + + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + + + + Helper class for PIX. + + + + + Marks the beginning of a user-defined event. PIX can use this event to trigger an action. + + The Event color. + The Event Name. + The zero-based level of the hierarchy that this event is starting in. If an error occurs, the return value will be negative. + D3DPERF_BeginEvent + + + + Marks the beginning of a user-defined event. PIX can use this event to trigger an action. + + The Event color. + The Event formatted Name. + The parameters to use for the formatted name. + + The zero-based level of the hierarchy that this event is starting in. If an error occurs, the return value will be negative. + + D3DPERF_BeginEvent + + + + Mark the end of a user-defined event. PIX can use this event to trigger an action. + + The level of the hierarchy in which the event is ending. If an error occurs, this value is negative. + D3DPERF_EndEvent + + + + Mark an instantaneous event. PIX can use this event to trigger an action. + + The color. + The name. + D3DPERF_SetMarker + + + + Mark an instantaneous event. PIX can use this event to trigger an action. + + The color. + The name to format. + The parameters to use to format the name. + D3DPERF_SetMarker + + + + Set this to false to notify PIX that the target program does not give permission to be profiled. + + if set to true PIX profiling is authorized. Default to true. + D3DPERF_SetOptions + + + + Gets a value indicating whether this instance is currently profiled by PIX. + + + true if this instance is currently profiled; otherwise, false. + + D3DPERF_GetStatus + + + + Windows File Helper. + + + + + Checks if the specified file path exists. + + The file path. + true if the specified file path exists, false otherwise + + + + Opens a binary file, reads the contents of the file into a byte array, and then closes the file. + + The file to open for reading. + A byte array containing the contents of the file. + + + + Opens a text file, reads all lines of the file, and then closes the file. + + The file to open for reading. + A string containing all lines of the file. + + + + Opens a text file, reads all lines of the file, and then closes the file. + + The file to open for reading. + The encoding. + The sharing. + A string containing all lines of the file. + + + + Gets the last write time access for the specified path. + + The path. + The last write time access + + + + Reads to a file. + + The file handle. + The buffer. + The number of bytes to read. + The number of bytes read. + The overlapped. + A Result + ReadFile + + + + Writes to a file. + + The file handle. + The buffer. + The number of bytes to read. + The number of bytes read. + The overlapped. + A Result + WriteFile + + + + Sets the file pointer. + + The handle. + The distance to move. + The distance to move high. + The seek origin. + + SetFilePointerEx + + + + Sets the end of file. + + The handle. + + SetEndOfFile + + + + Creates the file. + + Name of the file. + The desired access. + The share mode. + The security attributes. + The creation disposition. + The flags and attributes. + The template file. + A handle to the created file. IntPtr.Zero if failed. + CreateFile + + + + Gets the size of the file. + + The handle. + Size of the file. + + GetFileSizeEx + + + + Windows File Helper. + + + + + Initializes a new instance of the class. + + Name of the file. + The file mode. + The access mode. + The share mode. + + + + + + + + + + + + + + + + Reads a block of bytes from the stream and writes the data in a given buffer. + + When this method returns, contains the specified buffer with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. + The byte offset in array at which the read bytes will be placed. + The maximum number of bytes to read. + array is null. + The total number of bytes read into the buffer. This might be less than the number of bytes requested if that number of bytes are not currently available, or zero if the end of the stream is reached. + + + + + + + Writes a block of bytes to this stream using data from a buffer. + + The buffer containing data to write to the stream. + The zero-based byte offset in buffer at which to begin copying bytes to the current stream. + The number of bytes to be written to the current stream. + + + + + + + + + + + + + + + + + + + Native File access flags. + + + + + Read access. + + + + + Write access. + + + + + Read/Write Access, + + + + + Execute access. + + + + + All access + + + + + Native file attributes. + + + + + None attribute. + + + + + Read only attribute. + + + + + Hidden attribute. + + + + + System attribute. + + + + + Directory attribute. + + + + + Archive attribute. + + + + + Device attribute. + + + + + Normal attribute. + + + + + Temporary attribute. + + + + + Sparse file attribute. + + + + + ReparsePoint attribute. + + + + + Compressed attribute. + + + + + Offline attribute. + + + + + Not content indexed attribute. + + + + + Encrypted attribute. + + + + + Write through attribute. + + + + + Overlapped attribute. + + + + + No buffering attribute. + + + + + Random access attribute. + + + + + Sequential scan attribute. + + + + + Delete on close attribute. + + + + + Backup semantics attribute. + + + + + Post semantics attribute. + + + + + Open reparse point attribute. + + + + + Open no recall attribute. + + + + + First pipe instance attribute. + + + + + Native file creation disposition. + + + + + Creates a new file. The function fails if a specified file exists. + + + + + Creates a new file, always. + If a file exists, the function overwrites the file, clears the existing attributes, combines the specified file attributes, + and flags with FILE_ATTRIBUTE_ARCHIVE, but does not set the security descriptor that the SECURITY_ATTRIBUTES structure specifies. + + + + + Opens a file. The function fails if the file does not exist. + + + + + Opens a file, always. + If a file does not exist, the function creates a file as if dwCreationDisposition is CREATE_NEW. + + + + + Opens a file and truncates it so that its size is 0 (zero) bytes. The function fails if the file does not exist. + The calling process must open the file with the GENERIC_WRITE access right. + + + + + Native file share. + + + + + None flag. + + + + + Enables subsequent open operations on an object to request read access. + Otherwise, other processes cannot open the object if they request read access. + If this flag is not specified, but the object has been opened for read access, the function fails. + + + + + Enables subsequent open operations on an object to request write access. + Otherwise, other processes cannot open the object if they request write access. + If this flag is not specified, but the object has been opened for write access, the function fails. + + + + + Read and Write flags. + + + + + Enables subsequent open operations on an object to request delete access. + Otherwise, other processes cannot open the object if they request delete access. + If this flag is not specified, but the object has been opened for delete access, the function fails. + + + + + Direct2D Matrix3x2. Supports implicit cast from . + + + + + Gets the identity matrix. + + The identity matrix. + + + + Element (1,1) + + + + + Element (1,2) + + + + + Element (2,1) + + + + + Element (2,2) + + + + + Element (3,1) + + + + + Element (3,2) + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The value to assign at row 1 column 1 of the matrix. + The value to assign at row 1 column 2 of the matrix. + The value to assign at row 2 column 1 of the matrix. + The value to assign at row 2 column 2 of the matrix. + The value to assign at row 3 column 1 of the matrix. + The value to assign at row 3 column 2 of the matrix. + + + + Initializes a new instance of the struct. + + The values to assign to the components of the matrix. This must be an array with six elements. + Thrown when is null. + Thrown when contains more or less than six elements. + + + + Creates an array containing the elements of the matrix. + + A sixteen-element array containing the components of the matrix. + + + + Determines the sum of two matrices. + + The first matrix to add. + The second matrix to add. + When the method completes, contains the sum of the two matrices. + + + + Determines the sum of two matrices. + + The first matrix to add. + The second matrix to add. + The sum of the two matrices. + + + + Determines the difference between two matrices. + + The first matrix to subtract. + The second matrix to subtract. + When the method completes, contains the difference between the two matrices. + + + + Determines the difference between two matrices. + + The first matrix to subtract. + The second matrix to subtract. + The difference between the two matrices. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + When the method completes, contains the scaled matrix. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Determines the product of two matrices. + + The first matrix to multiply. + The second matrix to multiply. + The product of the two matrices. + + + + Determines the product of two matrices. + + The first matrix to multiply. + The second matrix to multiply. + The product of the two matrices. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + When the method completes, contains the scaled matrix. + + + + Determines the quotient of two matrices. + + The first matrix to divide. + The second matrix to divide. + When the method completes, contains the quotient of the two matrices. + + + + Negates a matrix. + + The matrix to be negated. + When the method completes, contains the negated matrix. + + + + Negates a matrix. + + The matrix to be negated. + The negated matrix. + + + + Performs a linear interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two matrices. + + + + Performs a cubic interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two matrices. + + + + Creates a matrix that scales along the x-axis and y-axis. + + Scaling factor for both axes. + When the method completes, contains the created scaling matrix. + + + + Creates a matrix that scales along the x-axis and y-axis. + + Scaling factor for both axes. + The created scaling matrix. + + + + Creates a matrix that scales along the x-axis and y-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + When the method completes, contains the created scaling matrix. + + + + Creates a matrix that scales along the x-axis and y-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + The created scaling matrix. + + + + Creates a matrix that uniformly scales along both axes. + + The uniform scale that is applied along both axes. + When the method completes, contains the created scaling matrix. + + + + Creates a matrix that uniformly scales along both axes. + + The uniform scale that is applied along both axes. + The created scaling matrix. + + + + Creates a matrix that is scaling from a specified center. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + The center of the scaling. + The created scaling matrix. + + + + Creates a matrix that is scaling from a specified center. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + The center of the scaling. + The created scaling matrix. + + + + Calculates the determinant of this matrix. + + Result of the determinant. + + + + Creates a matrix that rotates. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis. + When the method completes, contains the created rotation matrix. + + + + Creates a matrix that rotates. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis. + The created rotation matrix. + + + + Creates a matrix that rotates about a specified center. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis. + The center of the rotation. + The created rotation matrix. + + + + Creates a matrix that rotates about a specified center. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis. + The center of the rotation. + When the method completes, contains the created rotation matrix. + + + + Creates a transformation matrix. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis. + X-coordinate offset. + Y-coordinate offset. + When the method completes, contains the created transformation matrix. + + + + Creates a transformation matrix. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Angle of rotation in radians. + X-coordinate offset. + Y-coordinate offset. + The created transformation matrix. + + + + Creates a translation matrix using the specified offsets. + + The offset for both coordinate planes. + When the method completes, contains the created translation matrix. + + + + Creates a translation matrix using the specified offsets. + + The offset for both coordinate planes. + The created translation matrix. + + + + Creates a translation matrix using the specified offsets. + + X-coordinate offset. + Y-coordinate offset. + When the method completes, contains the created translation matrix. + + + + Creates a translation matrix using the specified offsets. + + X-coordinate offset. + Y-coordinate offset. + The created translation matrix. + + + + Transforms a vector by this matrix. + + The matrix to use as a transformation matrix. + The original vector to apply the transformation. + The result of the transformation for the input vector. + + + + Transforms a vector by this matrix. + + The matrix to use as a transformation matrix. + The original vector to apply the transformation. + The result of the transformation for the input vector. + + + + + Calculates the inverse of this matrix instance. + + + + + Calculates the inverse of the specified matrix. + + The matrix whose inverse is to be calculated. + the inverse of the specified matrix. + + + + Creates a skew matrix. + + Angle of skew along the X-axis in radians. + Angle of skew along the Y-axis in radians. + The created skew matrix. + + + + Creates a skew matrix. + + Angle of skew along the X-axis in radians. + Angle of skew along the Y-axis in radians. + When the method completes, contains the created skew matrix. + + + + Calculates the inverse of the specified matrix. + + The matrix whose inverse is to be calculated. + When the method completes, contains the inverse of the specified matrix. + + + + Adds two matrices. + + The first matrix to add. + The second matrix to add. + The sum of the two matrices. + + + + Assert a matrix (return it unchanged). + + The matrix to assert (unchanged). + The asserted (unchanged) matrix. + + + + Subtracts two matrices. + + The first matrix to subtract. + The second matrix to subtract. + The difference between the two matrices. + + + + Negates a matrix. + + The matrix to negate. + The negated matrix. + + + + Scales a matrix by a given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Scales a matrix by a given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Multiplies two matrices. + + The first matrix to multiply. + The second matrix to multiply. + The product of the two matrices. + + + + Scales a matrix by a given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Divides two matrices. + + The first matrix to divide. + The second matrix to divide. + The quotient of the two matrices. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Performs an implicit conversion from to . + + The matrix. + The result of the conversion. + + + + Gets or sets the first row in the matrix; that is M11 and M12. + + + + + Gets or sets the second row in the matrix; that is M21 and M22. + + + + + Gets or sets the third row in the matrix; that is M31 and M32. + + + + + Gets or sets the first column in the matrix; that is M11, M21, and M31. + + + + + Gets or sets the second column in the matrix; that is M12, M22, and M32. + + + + + Gets or sets the translation of the matrix; that is M31 and M32. + + + + + Gets or sets the scale of the matrix; that is M11 and M22. + + + + + Gets a value indicating whether this instance is an identity matrix. + + + true if this instance is an identity matrix; otherwise, false. + + + + + Gets or sets the component at the specified index. + + The value of the matrix component, depending on the index. + The zero-based index of the component to access. + The value of the component at the specified index. + Thrown when the is out of the range [0, 5]. + + + + Gets or sets the component at the specified index. + + The value of the matrix component, depending on the index. + The row of the matrix to access. + The column of the matrix to access. + The value of the component at the specified index. + Thrown when the or is out of the range [0, 3]. + + + + A strongly-typed resource class, for looking up localized strings, etc. + + + + + Returns the cached ResourceManager instance used by this class. + + + + + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. + + + + + The ShadowContainer is the main container used internally to keep references to all native COM/C++ callbacks. + It is stored in the property . + + + + + Contains static methods to help in determining intersections, containment, etc. + + + + + Determines the closest point between a point and a triangle. + + The point to test. + The first vertex to test. + The second vertex to test. + The third vertex to test. + When the method completes, contains the closest point between the two objects. + + + + Determines the closest point between a and a point. + + The plane to test. + The point to test. + When the method completes, contains the closest point between the two objects. + + + + Determines the closest point between a and a point. + + The box to test. + The point to test. + When the method completes, contains the closest point between the two objects. + + + + Determines the closest point between a and a point. + + + The point to test. + When the method completes, contains the closest point between the two objects; + or, if the point is directly in the center of the sphere, contains . + + + + Determines the closest point between a and a . + + The first sphere to test. + The second sphere to test. + When the method completes, contains the closest point between the two objects; + or, if the point is directly in the center of the sphere, contains . + + If the two spheres are overlapping, but not directly on top of each other, the closest point + is the 'closest' point of intersection. This can also be considered is the deepest point of + intersection. + + + + + Determines the distance between a and a point. + + The plane to test. + The point to test. + The distance between the two objects. + + + + Determines the distance between a and a point. + + The box to test. + The point to test. + The distance between the two objects. + + + + Determines the distance between a and a . + + The first box to test. + The second box to test. + The distance between the two objects. + + + + Determines the distance between a and a point. + + The sphere to test. + The point to test. + The distance between the two objects. + + + + Determines the distance between a and a . + + The first sphere to test. + The second sphere to test. + The distance between the two objects. + + + + Determines whether there is an intersection between a and a point. + + The ray to test. + The point to test. + Whether the two objects intersect. + + + + Determines whether there is an intersection between a and a . + + The first ray to test. + The second ray to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersect. + + This method performs a ray vs ray intersection test based on the following formula + from Goldman. + s = det([o_2 - o_1, d_2, d_1 x d_2]) / ||d_1 x d_2||^2 + t = det([o_2 - o_1, d_1, d_1 x d_2]) / ||d_1 x d_2||^2 + Where o_1 is the position of the first ray, o_2 is the position of the second ray, + d_1 is the normalized direction of the first ray, d_2 is the normalized direction + of the second ray, det denotes the determinant of a matrix, x denotes the cross + product, [ ] denotes a matrix, and || || denotes the length or magnitude of a vector. + + + + + Determines whether there is an intersection between a and a . + + The ray to test. + The plane to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersect. + + + + Determines whether there is an intersection between a and a . + + The ray to test. + The plane to test + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a triangle. + + The ray to test. + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + This method tests if the ray intersects either the front or back of the triangle. + If the ray is parallel to the triangle's plane, no intersection is assumed to have + happened. If the intersection of the ray and the triangle is behind the origin of + the ray, no intersection is assumed to have happened. In both cases of assumptions, + this method returns false. + + + + + Determines whether there is an intersection between a and a triangle. + + The ray to test. + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The ray to test. + The box to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The ray to test. + The box to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The ray to test. + The sphere to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The ray to test. + The sphere to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a point. + + The plane to test. + The point to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The first plane to test. + The second plane to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The first plane to test. + The second plane to test. + When the method completes, contains the line of intersection + as a , or a zero ray if there was no intersection. + Whether the two objects intersected. + + Although a ray is set to have an origin, the ray returned by this method is really + a line in three dimensions which has no real origin. The ray is considered valid when + both the positive direction is used and when the negative direction is used. + + + + + Determines whether there is an intersection between a and a triangle. + + The plane to test. + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The plane to test. + The box to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The plane to test. + The sphere to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The first box to test. + The second box to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + The box to test. + The sphere to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a triangle. + + The sphere to test. + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + Whether the two objects intersected. + + + + Determines whether there is an intersection between a and a . + + First sphere to test. + Second sphere to test. + Whether the two objects intersected. + + + + Determines whether a contains a point. + + The box to test. + The point to test. + The type of containment the two objects have. + + + + Determines whether a contains a . + + The first box to test. + The second box to test. + The type of containment the two objects have. + + + + Determines whether a contains a . + + The box to test. + The sphere to test. + The type of containment the two objects have. + + + + Determines whether a contains a point. + + The sphere to test. + The point to test. + The type of containment the two objects have. + + + + Determines whether a contains a triangle. + + The sphere to test. + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + The type of containment the two objects have. + + + + Determines whether a contains a . + + The sphere to test. + The box to test. + The type of containment the two objects have. + + + + Determines whether a contains a . + + The first sphere to test. + The second sphere to test. + The type of containment the two objects have. + + + + Represents a color in the form of rgb. + + + + + The Black color (0, 0, 0). + + + + + The White color (1, 1, 1, 1). + + + + + The red component of the color. + + + + + The green component of the color. + + + + + The blue component of the color. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The red component of the color. + The green component of the color. + The blue component of the color. + + + + Initializes a new instance of the struct. + + The red, green, and blue components of the color. + + + + Initializes a new instance of the struct. + + A packed integer containing all three color components in RGB order. + The alpha component is ignored. + + + + Initializes a new instance of the struct. + + The values to assign to the red, green, and blue components of the color. This must be an array with three elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Converts the color into a packed integer. + + A packed integer containing all three color components. + The alpha channel is set to 255. + + + + Converts the color into a packed integer. + + A packed integer containing all three color components. + The alpha channel is set to 255. + + + + Converts the color into a three component vector. + + A three component vector containing the red, green, and blue components of the color. + + + + Creates an array containing the elements of the color. + + A three-element array containing the components of the color. + + + + Adds two colors. + + The first color to add. + The second color to add. + When the method completes, completes the sum of the two colors. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + WHen the method completes, contains the difference of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract + The difference of the two colors. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + When the method completes, contains the modulated color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + When the method completes, contains the scaled color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + The scaled color. + + + + Negates a color. + + The color to negate. + When the method completes, contains the negated color. + + + + Negates a color. + + The color to negate. + The negated color. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two colors. + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the largest components of the source colors. + + + + Returns a color containing the largest components of the specified colors. + + The first source color. + The second source color. + A color containing the largest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the smallest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + A color containing the smallest components of the source colors. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + When the method completes, contains the adjusted color. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + The adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + When the method completes, contains the adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + The adjusted color. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The color alpha. + The premultiplied result. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The color alpha. + The premultiplied color. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Assert a color (return it unchanged). + + The color to assert (unchanged). + The asserted (unchanged) color. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + The difference of the two colors. + + + + Negates a color. + + The color to negate. + A negated color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel element (float) + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel element (float). + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Gets or sets the component at the specified index. + + The value of the red, green, or blue component, depending on the index. + The index of the component to access. Use 0 for the red component, 1 for the green component, and 2 for the blue component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 2]. + + + + Represents a color in the form of rgba. + + + + + The Black color (0, 0, 0, 1). + + + + + The White color (1, 1, 1, 1). + + + + + The red component of the color. + + + + + The green component of the color. + + + + + The blue component of the color. + + + + + The alpha component of the color. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The red component of the color. + The green component of the color. + The blue component of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. + + The red, green, blue, and alpha components of the color. + + + + Initializes a new instance of the struct. + + The red, green, and blue components of the color. + The alpha component of the color. + + + + Initializes a new instance of the struct. + + A packed integer containing all four color components in RGBA order. + + + + Initializes a new instance of the struct. + + A packed integer containing all four color components in RGBA order. + + + + Initializes a new instance of the struct. + + The values to assign to the red, green, blue, and alpha components of the color. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Initializes a new instance of the struct. + + used to initialize the color. + + + + Initializes a new instance of the struct. + + used to initialize the color. + The alpha component of the color. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a packed integer. + + A packed integer containing all four color components. + + + + Converts the color into a three component vector. + + A three component vector containing the red, green, and blue components of the color. + + + + Converts the color into a four component vector. + + A four component vector containing all four color components. + + + + Creates an array containing the elements of the color. + + A four-element array containing the components of the color. + + + + Adds two colors. + + The first color to add. + The second color to add. + When the method completes, completes the sum of the two colors. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + WHen the method completes, contains the difference of the two colors. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract + The difference of the two colors. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + When the method completes, contains the modulated color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + When the method completes, contains the scaled color. + + + + Scales a color. + + The color to scale. + The amount by which to scale. + The scaled color. + + + + Negates a color. + + The color to negate. + When the method completes, contains the negated color. + + + + Negates a color. + + The color to negate. + The negated color. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two colors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two colors. + + + + Performs a cubic interpolation between two colors. + + Start color. + End color. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the largest components of the source colors. + + + + Returns a color containing the largest components of the specified colors. + + The first source color. + The second source color. + A color containing the largest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + When the method completes, contains an new color composed of the smallest components of the source colors. + + + + Returns a color containing the smallest components of the specified colors. + + The first source color. + The second source color. + A color containing the smallest components of the source colors. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + When the method completes, contains the adjusted color. + + + + Adjusts the contrast of a color. + + The color whose contrast is to be adjusted. + The amount by which to adjust the contrast. + The adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + When the method completes, contains the adjusted color. + + + + Adjusts the saturation of a color. + + The color whose saturation is to be adjusted. + The amount by which to adjust the saturation. + The adjusted color. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The premultiplied result. + + + + Computes the premultiplied value of the provided color. + + The non-premultiplied value. + The premultiplied result. + + + + Adds two colors. + + The first color to add. + The second color to add. + The sum of the two colors. + + + + Assert a color (return it unchanged). + + The color to assert (unchanged). + The asserted (unchanged) color. + + + + Subtracts two colors. + + The first color to subtract. + The second color to subtract. + The difference of the two colors. + + + + Negates a color. + + The color to negate. + A negated color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Scales a color. + + The factor by which to scale the color. + The color to scale. + The scaled color. + + + + Modulates two colors. + + The first color to modulate. + The second color to modulate. + The modulated color. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + + The result of the conversion. + + + + + Performs an explicit conversion from to . + + The value. + + The result of the conversion. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel (float). + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format to apply to each channel (float). + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Gets or sets the component at the specified index. + + The value of the red, green, blue, and alpha components, depending on the index. + The index of the component to access. Use 0 for the alpha component, 1 for the red component, 2 for the green component, and 3 for the blue component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + Gets or sets the unmanaged callback. + + The unmanaged callback. + + This property is set whenever this instance has an unmanaged callback + registered. This callback must be disposed when disposing this instance. + + + + + Root IUnknown class to interop with COM object + + + + + Root class for all Cpp interop object. + + + + + The native pointer + + + + + Default constructor. + + Pointer to Cpp Object + + + + Initializes a new instance of the class. + + + + + Performs an explicit conversion from to . + + The CPP object. + + The result of the conversion. + + + + + Initializes this instance with a pointer from a temporary object and set the pointer of the temporary + object to IntPtr.Zero. + + The instance to get the NativePointer. + + + + Initializes this instance with a pointer from a temporary object and set the pointer of the temporary + object to IntPtr.Zero. + + The instance to get the NativePointer. + + + + Method called when is going to be update. + + + + + Method called when the is updated. + + + + + Instantiate a ComObject from a native pointer. + + The ComObject class that will be returned + The native pointer to a com object. + An instance of T binded to the native pointer + + + + Return the unmanaged C++ pointer from a instance. + + The type of the callback. + The callback. + A pointer to the unmanaged C++ object of the callback + + + + Gets or sets a custom user tag object to associate with this instance.. + + The tag object. + + + + Get a pointer to the underlying Cpp Object + + + + + Base interface for Component Object Model (COM). + + + + + Queries the supported COM interface on this instance. + + The guid of the interface. + The output COM object reference. + If successful, + + + + Increments the reference count for an interface on this instance. + + The method returns the new reference count. + + + + Decrements the reference count for an interface on this instance. + + The method returns the new reference count. + + + + Initializes a new instance of the class. + + Pointer to Cpp Object + + + + Initializes a new instance of the class from a IUnknown object. + + Reference to a IUnknown object + + + + Initializes a new instance of the class. + + + + + Query this instance for a particular COM GUID/interface support. + + GUID query interface + output object associated with this GUID, IntPtr.Zero in interface is not supported + If this object doesn't support the interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Query instance for a particular COM GUID/interface support. + + GUID query interface + If this object doesn't support the interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Compares 2 COM objects and return true if the native pointer is the same. + + The left. + The right. + true if the native pointer is the same, false otherwise + + + + Query this instance for a particular COM interface support. + + The type of the COM interface to query + An instance of the queried interface + If this object doesn't support the interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Query this instance for a particular COM interface support. + + The type of the COM interface to query + An instance of the queried interface + If this object doesn't support the interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Queries a managed object for a particular COM interface support (This method is a shortcut to ) + + The type of the COM interface to query + The managed COM object. + An instance of the queried interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Queries a managed object for a particular COM interface support (This method is a shortcut to ) + + The type of the COM interface to query + The managed COM object. + An instance of the queried interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Queries a managed object for a particular COM interface support. + + The type of the COM interface to query + The managed COM object. + An instance of the queried interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Queries a managed object for a particular COM interface support. + + The type of the COM interface to query + A pointer to a COM object. + An instance of the queried interface + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Query Interface for a particular interface support. + + An instance of the queried interface or null if it is not supported + + ms682521 + IUnknown::QueryInterface + IUnknown::QueryInterface + + + + Performs an explicit conversion from to . + + The native pointer. + + The result of the conversion. + + + + + Query Interface for a particular interface support and attach to the given instance. + + + + + + + Releases unmanaged and - optionally - managed resources + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + ms682317 + IUnknown::Release + IUnknown::Release + + + + Base class for unmanaged callbackable Com object. + + + + + Initializes a new instance of the class. + + Pointer to Cpp Object + + + + Initializes a new instance of the class. + + + + + Implements but it cannot not be set. + This is only used to support for interop with unmanaged callback. + + + + + A COM Interface Callback + + + + + An Interface shadow callback + + + + + Initializes the specified shadow instance from a vtbl and a callback. + + The callback. + + + + Gets the callback. + + + + + Gets the VTBL associated with this shadow instance. + + + + + Default Constructor. + + number of methods to allocate in the VTBL + + + + Add a method supported by this interface. This method is typically called from inherited constructor. + + the managed delegate method + + + + Gets the pointer to the vtbl. + + + + + A compilation exception. + + + + + The base class for errors that occur in SharpDX. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The result code that caused this exception. + + + + Initializes a new instance of the class. + + The result descriptor. + + + + Initializes a new instance of the class. + + The error result code. + The message describing the exception. + + + + Initializes a new instance of the class. + + The error result code. + The message describing the exception. + formatting arguments + + + + Initializes a new instance of the class. + + The message describing the exception. + formatting arguments + + + + Initializes a new instance of the class. + + The message describing the exception. + The exception that caused this exception. + formatting arguments + + + + Gets the Result code for the exception. This value indicates + the specific type of failure that occurred within SharpDX. + + + + + Gets the Result code for the exception. This value indicates + the specific type of failure that occurred within SharpDX. + + + + + Initializes a new instance of the class. + + The message. + + + + Initializes a new instance of the class. + + The error code. + The message. + + + + Global configuration. + + + + + Enables or disables object tracking. Default is disabled (false). + + + Object Tracking is used to track COM object lifecycle creation/dispose. When this option is enabled + objects can be tracked using . Using Object tracking has a significant + impact on performance and should be used only while debugging. + + + + + Enables or disables release of on finalizer. Default is disabled (false). + + + + + Enables or disables writing a warning via if a was disposed in the finalizer. Default is enabled (true). + + + + + Throws a when a shader or effect compilation error occurred. Default is enabled (true). + + + + + By default all objects in the process are tracked. + Use this property to track objects per thread. + + + + + Provides access to data organized in 3D. + + + + + Initializes a new instance of the struct. + + The datapointer. + The row pitch. + The slice pitch. + + + + Initializes a new instance of the struct. + + The data pointer. + + + + Pointer to the data. + + + + + Gets the number of bytes per row. + + + + + Gets the number of bytes per slice (for a 3D texture, a slice is a 2D image) + + + + + Gets a value indicating whether this instance is empty. + + true if this instance is empty; otherwise, false. + + + + Provides access to data organized in 2D. + + + + + Initializes a new instance of the class. + + The data pointer. + The pitch. + + + + Pointer to the data. + + + + + Gets the number of bytes per row. + + + + + Provides a stream interface to a buffer located in unmanaged memory. + + + + + Initializes a new instance of the class from a Blob buffer. + + The buffer. + + + + Initializes a new instance of the class, using a managed buffer as a backing store. + + + A managed array to be used as a backing store. + true if reading from the buffer should be allowed; otherwise, false. + true if writing to the buffer should be allowed; otherwise, false. + Index inside the buffer in terms of element count (not size in bytes). + True to keep the managed buffer and pin it, false will allocate unmanaged memory and make a copy of it. Default is true. + + + + + Initializes a new instance of the class, and allocates a new buffer to use as a backing store. + + The size of the buffer to be allocated, in bytes. + + true if reading from the buffer should be allowed; otherwise, false. + + true if writing to the buffer should be allowed; otherwise, false. + + + + Initializes a new instance of the class. + + The data pointer. + + + + Initializes a new instance of the class, using an unmanaged buffer as a backing store. + + A pointer to the buffer to be used as a backing store. + The size of the buffer provided, in bytes. + + true if reading from the buffer should be allowed; otherwise, false. + + true if writing to the buffer should be allowed; otherwise, false. + + + + Releases unmanaged and - optionally - managed resources + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Not supported. + + Always thrown. + + + + Reads a single value from the current stream and advances the current + position within this stream by the number of bytes read. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The type of the value to be read from the stream. + The value that was read. + This stream does not support reading. + + + + Reads a float. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + a float from the stream + + + + Reads a int. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an int from the stream + + + + Reads a short. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an short from the stream + + + + Reads a bool. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an bool from the stream + + + + Reads a Vector2. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Vector2 from the stream + + + + Reads a Vector3. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Vector3 from the stream + + + + Reads a Vector4. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Vector4 from the stream + + + + Reads a Color3. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Color3 from the stream + + + + Reads a Color4. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Color4 from the stream + + + + Reads a Half. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Half from the stream + + + + Reads a Half2. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Half2 from the stream + + + + Reads a Half3. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Half3 from the stream + + + + Reads a Half4. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + an Half4 from the stream + + + + Reads a Matrix. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + a Matrix from the stream + + + + Reads a Quaternion. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + a Quaternion from the stream + + + + + + + Reads a sequence of bytes from the current stream and advances the position + within the stream by the number of bytes read. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + An array of values to be read from the stream. + The zero-based byte offset in buffer at which to begin storing + the data read from the current stream. + The maximum number of bytes to be read from the current stream. + The number of bytes read from the stream. + This stream does not support reading. + + + + Reads a sequence of bytes from the current stream and advances the current position within this stream by the number of bytes written. + + An array of bytes. This method copies bytes from to the current stream. + The zero-based byte offset in at which to begin copying bytes to the current stream. + The number of bytes to be written to the current stream. + + + + Reads an array of values from the current stream, and advances the current position + within this stream by the number of bytes written. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The type of the values to be read from the stream. + An array of values that was read from the current stream. + + + + Reads a sequence of elements from the current stream into a target buffer and + advances the position within the stream by the number of bytes read. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + An array of values to be read from the stream. + The zero-based byte offset in buffer at which to begin storing + the data read from the current stream. + The number of values to be read from the current stream. + The number of bytes read from the stream. + This stream does not support reading. + + + + Sets the position within the current stream. + + Attempted to seek outside of the bounds of the stream. + + + + Not supported. + + Always ignored. + Always thrown. + + + + Writes a single value to the stream, and advances the current position + within this stream by the number of bytes written. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The type of the value to be written to the stream. + The value to write to the stream. + The stream does not support writing. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes the specified value. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The value. + + + + Writes a sequence of bytes to the current stream and advances the current + position within this stream by the number of bytes written. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + An array of bytes. This method copies count bytes from buffer to the current stream. + The zero-based byte offset in buffer at which to begin copying bytes to the current stream. + The number of bytes to be written to the current stream. + This stream does not support writing. + + + + When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. + + An array of bytes. This method copies bytes from to the current stream. + The zero-based byte offset in at which to begin copying bytes to the current stream. + The number of bytes to be written to the current stream. + + + + Writes an array of values to the current stream, and advances the current position + within this stream by the number of bytes written. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + An array of values to be written to the current stream. + This stream does not support writing. + + + + Writes a range of bytes to the current stream, and advances the current position + within this stream by the number of bytes written. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + A pointer to the location to start copying from. + The number of bytes to copy from source to the current stream. + This stream does not support writing. + + + + Writes an array of values to the current stream, and advances the current position + within this stream by the number of bytes written. + + + In order to provide faster read/write, this operation doesn't check stream bound. + A client must carefully not read/write above the size of this datastream. + + The type of the values to be written to the stream. + An array of values to be written to the stream. + The zero-based offset in data at which to begin copying values to the current stream. + The number of values to be written to the current stream. If this is zero, + all of the contents will be written. + This stream does not support writing. + + + + Performs an explicit conversion from to . + + The from value. + The result of the conversion. + + + + Gets a value indicating whether the current stream supports reading. + + + true if the stream supports reading; otherwise, false. + + + + Gets a value indicating whether the current stream supports seeking. + + Always true. + + + + Gets a value indicating whether the current stream supports writing. + + + true if the stream supports writing; otherwise, false. + + + + Gets the internal pointer to the current stream's backing store. + + An IntPtr to the buffer being used as a backing store. + + + + Gets the length in bytes of the stream. + + A long value representing the length of the stream in bytes. + + + + Gets or sets the position within the current stream. + + The current position within the stream. + Stream Class + + + + Gets the position pointer. + + The position pointer. + + + + Gets the length of the remaining. + + The length of the remaining. + + + + Provides methods to perform fast read/write random access data on a buffer located in an unmanaged memory. + + + This class doesn't validate the position read/write from. It is the responsibility of the client of this class + to verify that access is done within the size of the buffer. + + + + + Creates the specified user buffer. + + Type of the buffer. + The buffer to use as a DataBuffer. + Index inside the buffer in terms of element count (not size in bytes). + True to keep the managed buffer and pin it, false will allocate unmanaged memory and make a copy of it. Default is true. + An instance of a DataBuffer + + + + Initializes a new instance of the class, and allocates a new buffer to use as a backing store. + + The size of the buffer to be allocated, in bytes. + + is less than 1. + + + + Initializes a new instance of the class. + + The data pointer. + + + + Initializes a new instance of the class, using an unmanaged buffer as a backing store. + + A pointer to the buffer to be used as a backing store. + The size of the buffer provided, in bytes. + + + + Releases unmanaged and - optionally - managed resources + + true to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Clears the buffer. + + + + + Gets a single value from the current buffer at the specified position. + + Relative position in bytes from the beginning of the buffer to get the data from. + The type of the value to be read from the buffer. + The value that was read. + + + + Gets a single value from the current buffer at the specified position. + + The type of the value to be read from the buffer. + Relative position in bytes from the beginning of the buffer to get the data from. + The value as out. + The value that was read. + + + + Gets a float. + + Relative position in bytes from the beginning of the buffer to get the data from. + a float from the buffer + + + + Gets a int. + + Relative position in bytes from the beginning of the buffer to get the data from. + an int from the buffer + + + + Gets a short. + + Relative position in bytes from the beginning of the buffer to get the data from. + an short from the buffer + + + + Gets a bool. + + Relative position in bytes from the beginning of the buffer to get the data from. + an bool from the buffer + + + + Gets a Vector2. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Vector2 from the buffer + + + + Gets a Vector3. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Vector3 from the buffer + + + + Gets a Vector4. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Vector4 from the buffer + + + + Gets a Color3. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Color3 from the buffer + + + + Gets a Color4. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Color4 from the buffer + + + + Gets a Half. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Half from the buffer + + + + Gets a Half2. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Half2 from the buffer + + + + Gets a Half3. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Half3 from the buffer + + + + Gets a Half4. + + Relative position in bytes from the beginning of the buffer to get the data from. + an Half4 from the buffer + + + + Gets a Matrix. + + Relative position in bytes from the beginning of the buffer to get the data from. + a Matrix from the buffer + + + + Gets a Quaternion. + + Relative position in bytes from the beginning of the buffer to get the data from. + a Quaternion from the buffer + + + + Gets an array of values from a position in the buffer. + + Relative position in bytes from the beginning of the buffer to get the data from. + number of T instance to get from the positionInBytes + The type of the values to be read from the buffer. + An array of values that was read from the current buffer. + + + + Gets a sequence of elements from a position in the buffer into a target buffer. + + Relative position in bytes from the beginning of the buffer to get the data from. + An array of values to be read from the buffer. + The zero-based byte offset in buffer at which to begin storing + the data read from the current buffer. + The number of values to be read from the current buffer. + + + + Sets a single value to the buffer at a specified position. + + The type of the value to be written to the buffer. + Relative position in bytes from the beginning of the buffer to set the data to. + The value to write to the buffer. + + + + Sets a single value to the buffer at a specified position. + + The type of the value to be written to the buffer. + Relative position in bytes from the beginning of the buffer to set the data to. + The value to write to the buffer. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets the specified value. + + Relative position in bytes from the beginning of the buffer to set the data to. + The value. + + + + Sets an array of values to a specified position into the buffer. + + Relative position in bytes from the beginning of the buffer to set the data to. + An array of values to be written to the current buffer. + + + + Sets a range of data to a specified position into the buffer. + + Relative position in bytes from the beginning of the buffer to set the data to. + A pointer to the location to start copying from. + The number of bytes to copy from source to the current buffer. + + + + Sets an array of values to a specified position into the buffer. + + The type of the values to be written to the buffer. + Relative position in bytes from the beginning of the buffer to set the data to. + An array of values to be written to the buffer. + The zero-based offset in data at which to begin copying values to the current buffer. + The number of values to be written to the current buffer. If this is zero, + all of the contents will be written. + + + + Performs an explicit conversion from to . + + The from value. + The result of the conversion. + + + + Gets a pointer to the buffer used as a backing store.. + + An IntPtr to the buffer being used as a backing store. + + + + Gets the length in bytes of the buffer. + + A long value representing the length of the buffer in bytes. + + + + Contains information about a tracked COM object. + + + + + Initializes a new instance of the class. + + The creation time. + The com object to track. + The stack trace. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Gets the time the object was created. + + The creation time. + + + + Gets a weak reference to the tracked object. + + The weak reference to the tracked object. + + + + Gets the stack trace when the track object was created. + + The stack trace. + + + + Gets a value indicating whether the tracked object is alive. + + true if tracked object is alive; otherwise, false. + + + + Event args for used by . + + + + + The object being tracked/untracked. + + + + + Initializes a new instance of the class. + + The o. + + + + Track all allocated objects. + + + + + Initializes the class. + + + + + Called when [process exit]. + + The sender. + The instance containing the event data. + + + + Tracks the specified COM object. + + The COM object. + + + + Finds a list of object reference from a specified COM object pointer. + + The COM object pointer. + A list of object reference + + + + Finds the object reference for a specific COM object. + + The COM object. + An object reference + + + + Untracks the specified COM object. + + The COM object. + + + + Reports all COM object that are active and not yet disposed. + + + + + Reports all COM object that are active and not yet disposed. + + + + + Occurs when a ComObject is tracked. + + + + + Occurs when a ComObject is untracked. + + + + + Describes the type of angle. + + + + + Specifies an angle measurement in revolutions. + + + + + Specifies an angle measurement in degrees. + + + + + Specifies an angle measurement in radians. + + + + + Specifies an angle measurement in gradians. + + + + + Describes how one bounding volume contains another. + + + + + The two bounding volumes don't intersect at all. + + + + + One bounding volume completely contains another. + + + + + The two bounding volumes overlap. + + + + + Describes the result of an intersection with a plane in three dimensions. + + + + + The object is behind the plane. + + + + + The object is in front of the plane. + + + + + The object is intersecting the plane. + + + + + FunctionCallback + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + +

Driver type options.

+
+ +

The driver type is required when calling or .

+
+ + ff476328 + D3D_DRIVER_TYPE + D3D_DRIVER_TYPE +
+ + +

The driver type is unknown.

+
+ + ff476328 + D3D_DRIVER_TYPE_UNKNOWN + D3D_DRIVER_TYPE_UNKNOWN +
+ + +

A hardware driver, which implements Direct3D features in hardware. This is the primary driver that you should use in your Direct3D applications because it provides the best performance. A hardware driver uses hardware acceleration (on supported hardware) but can also use software for parts of the pipeline that are not supported in hardware. This driver type is often referred to as a hardware abstraction layer or HAL.

+
+ + ff476328 + D3D_DRIVER_TYPE_HARDWARE + D3D_DRIVER_TYPE_HARDWARE +
+ + +

A reference driver, which is a software implementation that supports every Direct3D feature. A reference driver is designed for accuracy rather than speed and as a result is slow but accurate. The rasterizer portion of the driver does make use of special CPU instructions whenever it can, but it is not intended for retail applications; use it only for feature testing, demonstration of functionality, debugging, or verifying bugs in other drivers. The reference device for this driver is installed by the Windows SDK 8.0 or later and is intended only as a debug aid for development purposes. This driver may be referred to as a REF driver, a reference driver, or a reference rasterizer.

Note??When you use the REF driver in Windows Store apps, the REF driver renders correctly but doesn't display any output on the screen. To verify bugs in hardware drivers for Windows Store apps, use for the WARP driver instead.

+
+ + ff476328 + D3D_DRIVER_TYPE_REFERENCE + D3D_DRIVER_TYPE_REFERENCE +
+ + +

A null driver, which is a reference driver without render capability. This driver is commonly used for debugging non-rendering API calls, it is not appropriate for retail applications. This driver is installed by the DirectX SDK.

+
+ + ff476328 + D3D_DRIVER_TYPE_NULL + D3D_DRIVER_TYPE_NULL +
+ + +

A software driver, which is a driver implemented completely in software. The software implementation is not intended for a high-performance application due to its very slow performance.

+
+ + ff476328 + D3D_DRIVER_TYPE_SOFTWARE + D3D_DRIVER_TYPE_SOFTWARE +
+ + +

A WARP driver, which is a high-performance software rasterizer. The rasterizer supports feature levels 9_1 through level 10_1 with a high performance software implementation. For information about limitations creating a WARP device on certain feature levels, see Limitations Creating WARP and Reference Devices. For more information about using a WARP driver, see Windows Advanced Rasterization Platform (WARP) In-Depth Guide.

Note??The WARP driver that Windows?8 includes supports feature levels 9_1 through level 11_1.

Note??The WARP driver that Windows?8.1 includes fully supports feature level 11_1, including tiled, IDXGIDevice3::Trim, shared BCn surfaces, minblend, and map default.

+
+ + ff476328 + D3D_DRIVER_TYPE_WARP + D3D_DRIVER_TYPE_WARP +
+ + +

Describes the set of features targeted by a Direct3D device.

+
+ +

For an overview of the capabilities of each feature level, see Overview For Each Feature Level.

For information about limitations creating nonhardware-type devices on certain feature levels, see Limitations Creating WARP and Reference Devices.

+
+ + ff476329 + D3D_FEATURE_LEVEL + D3D_FEATURE_LEVEL +
+ + +

Targets features supported by feature level 9.1 including shader model 2.

+
+ + ff476329 + D3D_FEATURE_LEVEL_9_1 + D3D_FEATURE_LEVEL_9_1 +
+ + +

Targets features supported by feature level 9.2 including shader model 2.

+
+ + ff476329 + D3D_FEATURE_LEVEL_9_2 + D3D_FEATURE_LEVEL_9_2 +
+ + +

Targets features supported by feature level 9.3 including shader model 2.0b.

+
+ + ff476329 + D3D_FEATURE_LEVEL_9_3 + D3D_FEATURE_LEVEL_9_3 +
+ + +

Targets features supported by Direct3D 10.0 including shader model 4.

+
+ + ff476329 + D3D_FEATURE_LEVEL_10_0 + D3D_FEATURE_LEVEL_10_0 +
+ + +

Targets features supported by Direct3D 10.1 including shader model 4.

+
+ + ff476329 + D3D_FEATURE_LEVEL_10_1 + D3D_FEATURE_LEVEL_10_1 +
+ + +

Targets features supported by Direct3D 11.0 including shader model 5.

+
+ + ff476329 + D3D_FEATURE_LEVEL_11_0 + D3D_FEATURE_LEVEL_11_0 +
+ + +

Values that indicate how the pipeline interprets vertex data that is bound to the input-assembler stage. These primitive topology values determine how the vertex data is rendered on screen.

+
+ +

Use the method and a value from to bind a primitive topology to the input-assembler stage. Use the method to retrieve the primitive topology for the input-assembler stage.

The following diagram shows the various primitive types for a geometry shader object.

+
+ + ff728726 + D3D_PRIMITIVE_TOPOLOGY + D3D_PRIMITIVE_TOPOLOGY +
+ + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_UNDEFINED + D3D_PRIMITIVE_TOPOLOGY_UNDEFINED + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_POINTLIST + D3D_PRIMITIVE_TOPOLOGY_POINTLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_LINELIST + D3D_PRIMITIVE_TOPOLOGY_LINELIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ + D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ + D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ + D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ + D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST + + + + No documentation. + + + ff728726 + D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST + D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST + + + +

Values that identify the type of resource to be viewed as a shader resource.

+
+ +

A -typed value is specified in the ViewDimension member of the structure or the Dimension member of the structure.

+
+ + ff728736 + D3D_SRV_DIMENSION + D3D_SRV_DIMENSION +
+ + +

The type is unknown.

+
+ + ff728736 + D3D_SRV_DIMENSION_UNKNOWN + D3D_SRV_DIMENSION_UNKNOWN +
+ + +

The resource is a buffer.

+
+ + ff728736 + D3D_SRV_DIMENSION_BUFFER + D3D_SRV_DIMENSION_BUFFER +
+ + +

The resource is a 1D texture.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE1D + D3D_SRV_DIMENSION_TEXTURE1D +
+ + +

The resource is an array of 1D textures.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE1DARRAY + D3D_SRV_DIMENSION_TEXTURE1DARRAY +
+ + +

The resource is a 2D texture.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE2D + D3D_SRV_DIMENSION_TEXTURE2D +
+ + +

The resource is an array of 2D textures.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE2DARRAY + D3D_SRV_DIMENSION_TEXTURE2DARRAY +
+ + +

The resource is a multisampling 2D texture.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE2DMS + D3D_SRV_DIMENSION_TEXTURE2DMS +
+ + +

The resource is an array of multisampling 2D textures.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE2DMSARRAY + D3D_SRV_DIMENSION_TEXTURE2DMSARRAY +
+ + +

The resource is a 3D texture.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURE3D + D3D_SRV_DIMENSION_TEXTURE3D +
+ + +

The resource is a cube texture.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURECUBE + D3D_SRV_DIMENSION_TEXTURECUBE +
+ + +

The resource is an array of cube textures.

+
+ + ff728736 + D3D_SRV_DIMENSION_TEXTURECUBEARRAY + D3D_SRV_DIMENSION_TEXTURECUBEARRAY +
+ + +

The resource is a raw buffer. For more info about raw viewing of buffers, see Raw Views of Buffers.

+
+ + ff728736 + D3D_SRV_DIMENSION_BUFFEREX + D3D_SRV_DIMENSION_BUFFEREX +
+ + + Functions + + + + + Constant DebugObjectName. + WKPDID_D3DDebugObjectName + + + + Functions + + + + + +

Creates a buffer.

+
+

Number of bytes in the blob.

+

The address of a reference to the ID3DBlob interface that is used to retrieve the buffer.

+

Returns one of the Direct3D 11 return codes.

+ +

The latest D3dcompiler_nn.dll contains the compiler function. Therefore, you are no longer required to create and use an arbitrary length data buffer by using the D3D10CreateBlob function that is contained in D3d10.dll.

Windows Phone 8.1: This API is supported.

+
+ + ff728672 + HRESULT D3DCreateBlob([In] SIZE_T Size,[Out, Fast] ID3D10Blob** ppBlob) + D3DCreateBlob +
+ + +

This interface is used to return arbitrary length data.

+
+ +

An is obtained by calling D3D10CreateBlob.

The ID3DBlob interface is type defined in the D3DCommon.h header file as a interface, which is fully defined in the D3DCommon.h header file. ID3DBlob is version neutral and can be used in code for any Direct3D version.

Blobs can be used as a data buffer, storing vertex, adjacency, and material information during mesh optimization and loading operations. Also, these objects are used to return object code and error messages in APIs that compile vertex, geometry and pixel shaders.

+
+ + bb173507 + ID3D10Blob + ID3D10Blob +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Get a reference to the data.

+
+

Returns a reference.

+ + bb173508 + void* ID3D10Blob::GetBufferPointer() + ID3D10Blob::GetBufferPointer +
+ + +

Get the size.

+
+

The size of the data, in bytes.

+ + bb173509 + SIZE_T ID3D10Blob::GetBufferSize() + ID3D10Blob::GetBufferSize +
+ + +

Get a reference to the data.

+
+ + bb173508 + GetBufferPointer + GetBufferPointer + void* ID3D10Blob::GetBufferPointer() +
+ + +

Get the size.

+
+ + bb173509 + GetBufferSize + GetBufferSize + SIZE_T ID3D10Blob::GetBufferSize() +
+ + +

A multithread interface accesses multithread settings and can only be used if the thread-safe layer is turned on.

+
+ +

This interface is obtained by querying it from the Interface using IUnknown::QueryInterface.

+
+ + bb173816 + ID3D10Multithread + ID3D10Multithread +
+ + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

Enter a device's critical section.

+
+ +

Entering a device's critical section prevents other threads from simultaneously calling that device's methods (if multithread protection is set to true), calling DXGI methods, and calling the methods of all resource, view, shader, state, and asynchronous interfaces.

This function should be used in multithreaded applications when there is a series of graphics commands that must happen in order. This function is typically called at the beginning of the series of graphics commands, and is typically called after those graphics commands.

+
+ + bb173817 + void ID3D10Multithread::Enter() + ID3D10Multithread::Enter +
+ + +

Leave a device's critical section.

+
+ +

This function is typically used in multithreaded applications when there is a series of graphics commands that must happen in order. is typically called at the beginning of a series of graphics commands, and this function is typically called after those graphics commands.

+
+ + bb173819 + void ID3D10Multithread::Leave() + ID3D10Multithread::Leave +
+ + +

Turn multithreading on or off.

+
+

True to turn multithreading on, false to turn it off.

+

True if multithreading was turned on prior to calling this method, false otherwise.

+ + bb173820 + BOOL ID3D10Multithread::SetMultithreadProtected([In] BOOL bMTProtect) + ID3D10Multithread::SetMultithreadProtected +
+ + +

Find out if multithreading is turned on or not.

+
+

Whether or not multithreading is turned on. True means on, false means off.

+ + bb173818 + BOOL ID3D10Multithread::GetMultithreadProtected() + ID3D10Multithread::GetMultithreadProtected +
+ + +

Defines a shader macro.

+
+ +

You can use shader macros in your shaders. The structure defines a single shader macro as shown in the following example:

  Shader_Macros[1] = { "zero", "0"  };	
+            

The following shader or effect creation functions take an array of shader macros as an input parameter:

  • D3D10CompileShader
  • D3DX10PreprocessShaderFromFile
  • D3DX11CreateAsyncShaderPreprocessProcessor
+
+ + ff728732 + D3D_SHADER_MACRO + D3D_SHADER_MACRO +
+ + +

The macro name.

+
+ + ff728732 + const char* Name + char Name +
+ + +

The macro definition.

+
+ + ff728732 + const char* Definition + char Definition +
+ + + Initializes a new instance of the struct. + + + The name. + + + The definition. + + + + + No documentation. + + + SPEAKER_FLAGS + SPEAKER_FLAGS + + + + No documentation. + + + SPEAKER_FRONT_LEFT + SPEAKER_FRONT_LEFT + + + + No documentation. + + + SPEAKER_FRONT_RIGHT + SPEAKER_FRONT_RIGHT + + + + No documentation. + + + SPEAKER_FRONT_CENTER + SPEAKER_FRONT_CENTER + + + + No documentation. + + + SPEAKER_LOW_FREQUENCY + SPEAKER_LOW_FREQUENCY + + + + No documentation. + + + SPEAKER_BACK_LEFT + SPEAKER_BACK_LEFT + + + + No documentation. + + + SPEAKER_BACK_RIGHT + SPEAKER_BACK_RIGHT + + + + No documentation. + + + SPEAKER_FRONT_LEFT_OF_CENTER + SPEAKER_FRONT_LEFT_OF_CENTER + + + + No documentation. + + + SPEAKER_FRONT_RIGHT_OF_CENTER + SPEAKER_FRONT_RIGHT_OF_CENTER + + + + No documentation. + + + SPEAKER_BACK_CENTER + SPEAKER_BACK_CENTER + + + + No documentation. + + + SPEAKER_SIDE_LEFT + SPEAKER_SIDE_LEFT + + + + No documentation. + + + SPEAKER_SIDE_RIGHT + SPEAKER_SIDE_RIGHT + + + + No documentation. + + + SPEAKER_TOP_CENTER + SPEAKER_TOP_CENTER + + + + No documentation. + + + SPEAKER_TOP_FRONT_LEFT + SPEAKER_TOP_FRONT_LEFT + + + + No documentation. + + + SPEAKER_TOP_FRONT_CENTER + SPEAKER_TOP_FRONT_CENTER + + + + No documentation. + + + SPEAKER_TOP_FRONT_RIGHT + SPEAKER_TOP_FRONT_RIGHT + + + + No documentation. + + + SPEAKER_TOP_BACK_LEFT + SPEAKER_TOP_BACK_LEFT + + + + No documentation. + + + SPEAKER_TOP_BACK_CENTER + SPEAKER_TOP_BACK_CENTER + + + + No documentation. + + + SPEAKER_TOP_BACK_RIGHT + SPEAKER_TOP_BACK_RIGHT + + + + No documentation. + + + SPEAKER_RESERVED + SPEAKER_RESERVED + + + + No documentation. + + + SPEAKER_ALL + SPEAKER_ALL + + + + No documentation. + + + SPEAKER_MONO + SPEAKER_MONO + + + + No documentation. + + + SPEAKER_STEREO + SPEAKER_STEREO + + + + No documentation. + + + SPEAKER_2POINT1 + SPEAKER_2POINT1 + + + + No documentation. + + + SPEAKER_SURROUND + SPEAKER_SURROUND + + + + No documentation. + + + SPEAKER_QUAD + SPEAKER_QUAD + + + + No documentation. + + + SPEAKER_4POINT1 + SPEAKER_4POINT1 + + + + No documentation. + + + SPEAKER_5POINT1 + SPEAKER_5POINT1 + + + + No documentation. + + + SPEAKER_7POINT1 + SPEAKER_7POINT1 + + + + No documentation. + + + SPEAKER_5POINT1_SURROUND + SPEAKER_5POINT1_SURROUND + + + + No documentation. + + + SPEAKER_7POINT1_SURROUND + SPEAKER_7POINT1_SURROUND + + + + None. + + + None + None + + + + No documentation. + + + ff539946 + HID_USAGE_ID + HID_USAGE_ID + + + +

Aliased

+
+ + ff539946 + HID_USAGE_GENERIC_POINTER + HID_USAGE_GENERIC_POINTER +
+ + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_MOUSE + HID_USAGE_GENERIC_MOUSE + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_JOYSTICK + HID_USAGE_GENERIC_JOYSTICK + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_GAMEPAD + HID_USAGE_GENERIC_GAMEPAD + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_KEYBOARD + HID_USAGE_GENERIC_KEYBOARD + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_KEYPAD + HID_USAGE_GENERIC_KEYPAD + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSTEM_CTL + HID_USAGE_GENERIC_SYSTEM_CTL + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_X + HID_USAGE_GENERIC_X + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_Y + HID_USAGE_GENERIC_Y + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_Z + HID_USAGE_GENERIC_Z + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_RX + HID_USAGE_GENERIC_RX + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_RY + HID_USAGE_GENERIC_RY + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_RZ + HID_USAGE_GENERIC_RZ + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SLIDER + HID_USAGE_GENERIC_SLIDER + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_DIAL + HID_USAGE_GENERIC_DIAL + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_WHEEL + HID_USAGE_GENERIC_WHEEL + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_HATSWITCH + HID_USAGE_GENERIC_HATSWITCH + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_COUNTED_BUFFER + HID_USAGE_GENERIC_COUNTED_BUFFER + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_BYTE_COUNT + HID_USAGE_GENERIC_BYTE_COUNT + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_MOTION_WAKEUP + HID_USAGE_GENERIC_MOTION_WAKEUP + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VX + HID_USAGE_GENERIC_VX + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VY + HID_USAGE_GENERIC_VY + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VZ + HID_USAGE_GENERIC_VZ + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VBRX + HID_USAGE_GENERIC_VBRX + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VBRY + HID_USAGE_GENERIC_VBRY + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VBRZ + HID_USAGE_GENERIC_VBRZ + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_VNO + HID_USAGE_GENERIC_VNO + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_POWER + HID_USAGE_GENERIC_SYSCTL_POWER + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_SLEEP + HID_USAGE_GENERIC_SYSCTL_SLEEP + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_WAKE + HID_USAGE_GENERIC_SYSCTL_WAKE + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_CONTEXT_MENU + HID_USAGE_GENERIC_SYSCTL_CONTEXT_MENU + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MAIN_MENU + HID_USAGE_GENERIC_SYSCTL_MAIN_MENU + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_APP_MENU + HID_USAGE_GENERIC_SYSCTL_APP_MENU + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_HELP_MENU + HID_USAGE_GENERIC_SYSCTL_HELP_MENU + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MENU_EXIT + HID_USAGE_GENERIC_SYSCTL_MENU_EXIT + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MENU_SELECT + HID_USAGE_GENERIC_SYSCTL_MENU_SELECT + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MENU_RIGHT + HID_USAGE_GENERIC_SYSCTL_MENU_RIGHT + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MENU_LEFT + HID_USAGE_GENERIC_SYSCTL_MENU_LEFT + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MENU_UP + HID_USAGE_GENERIC_SYSCTL_MENU_UP + + + + No documentation. + + + ff539946 + HID_USAGE_GENERIC_SYSCTL_MENU_DOWN + HID_USAGE_GENERIC_SYSCTL_MENU_DOWN + + + + No documentation. + + + ff539946 + HID_USAGE_SIMULATION_RUDDER + HID_USAGE_SIMULATION_RUDDER + + + + No documentation. + + + ff539946 + HID_USAGE_SIMULATION_THROTTLE + HID_USAGE_SIMULATION_THROTTLE + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_NOEVENT + HID_USAGE_KEYBOARD_NOEVENT + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_ROLLOVER + HID_USAGE_KEYBOARD_ROLLOVER + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_POSTFAIL + HID_USAGE_KEYBOARD_POSTFAIL + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_UNDEFINED + HID_USAGE_KEYBOARD_UNDEFINED + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_aA + HID_USAGE_KEYBOARD_aA + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_zZ + HID_USAGE_KEYBOARD_zZ + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_ONE + HID_USAGE_KEYBOARD_ONE + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_ZERO + HID_USAGE_KEYBOARD_ZERO + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_LCTRL + HID_USAGE_KEYBOARD_LCTRL + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_LSHFT + HID_USAGE_KEYBOARD_LSHFT + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_LALT + HID_USAGE_KEYBOARD_LALT + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_LGUI + HID_USAGE_KEYBOARD_LGUI + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_RCTRL + HID_USAGE_KEYBOARD_RCTRL + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_RSHFT + HID_USAGE_KEYBOARD_RSHFT + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_RALT + HID_USAGE_KEYBOARD_RALT + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_RGUI + HID_USAGE_KEYBOARD_RGUI + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_SCROLL_LOCK + HID_USAGE_KEYBOARD_SCROLL_LOCK + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_NUM_LOCK + HID_USAGE_KEYBOARD_NUM_LOCK + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_CAPS_LOCK + HID_USAGE_KEYBOARD_CAPS_LOCK + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_F1 + HID_USAGE_KEYBOARD_F1 + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_F12 + HID_USAGE_KEYBOARD_F12 + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_RETURN + HID_USAGE_KEYBOARD_RETURN + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_ESCAPE + HID_USAGE_KEYBOARD_ESCAPE + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_DELETE + HID_USAGE_KEYBOARD_DELETE + + + + No documentation. + + + ff539946 + HID_USAGE_KEYBOARD_PRINT_SCREEN + HID_USAGE_KEYBOARD_PRINT_SCREEN + + + + No documentation. + + + ff539946 + HID_USAGE_LED_NUM_LOCK + HID_USAGE_LED_NUM_LOCK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CAPS_LOCK + HID_USAGE_LED_CAPS_LOCK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SCROLL_LOCK + HID_USAGE_LED_SCROLL_LOCK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_COMPOSE + HID_USAGE_LED_COMPOSE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_KANA + HID_USAGE_LED_KANA + + + + No documentation. + + + ff539946 + HID_USAGE_LED_POWER + HID_USAGE_LED_POWER + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SHIFT + HID_USAGE_LED_SHIFT + + + + No documentation. + + + ff539946 + HID_USAGE_LED_DO_NOT_DISTURB + HID_USAGE_LED_DO_NOT_DISTURB + + + + No documentation. + + + ff539946 + HID_USAGE_LED_MUTE + HID_USAGE_LED_MUTE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_TONE_ENABLE + HID_USAGE_LED_TONE_ENABLE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_HIGH_CUT_FILTER + HID_USAGE_LED_HIGH_CUT_FILTER + + + + No documentation. + + + ff539946 + HID_USAGE_LED_LOW_CUT_FILTER + HID_USAGE_LED_LOW_CUT_FILTER + + + + No documentation. + + + ff539946 + HID_USAGE_LED_EQUALIZER_ENABLE + HID_USAGE_LED_EQUALIZER_ENABLE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SOUND_FIELD_ON + HID_USAGE_LED_SOUND_FIELD_ON + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SURROUND_FIELD_ON + HID_USAGE_LED_SURROUND_FIELD_ON + + + + No documentation. + + + ff539946 + HID_USAGE_LED_REPEAT + HID_USAGE_LED_REPEAT + + + + No documentation. + + + ff539946 + HID_USAGE_LED_STEREO + HID_USAGE_LED_STEREO + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SAMPLING_RATE_DETECT + HID_USAGE_LED_SAMPLING_RATE_DETECT + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SPINNING + HID_USAGE_LED_SPINNING + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CAV + HID_USAGE_LED_CAV + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CLV + HID_USAGE_LED_CLV + + + + No documentation. + + + ff539946 + HID_USAGE_LED_RECORDING_FORMAT_DET + HID_USAGE_LED_RECORDING_FORMAT_DET + + + + No documentation. + + + ff539946 + HID_USAGE_LED_OFF_HOOK + HID_USAGE_LED_OFF_HOOK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_RING + HID_USAGE_LED_RING + + + + No documentation. + + + ff539946 + HID_USAGE_LED_MESSAGE_WAITING + HID_USAGE_LED_MESSAGE_WAITING + + + + No documentation. + + + ff539946 + HID_USAGE_LED_DATA_MODE + HID_USAGE_LED_DATA_MODE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_BATTERY_OPERATION + HID_USAGE_LED_BATTERY_OPERATION + + + + No documentation. + + + ff539946 + HID_USAGE_LED_BATTERY_OK + HID_USAGE_LED_BATTERY_OK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_BATTERY_LOW + HID_USAGE_LED_BATTERY_LOW + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SPEAKER + HID_USAGE_LED_SPEAKER + + + + No documentation. + + + ff539946 + HID_USAGE_LED_HEAD_SET + HID_USAGE_LED_HEAD_SET + + + + No documentation. + + + ff539946 + HID_USAGE_LED_HOLD + HID_USAGE_LED_HOLD + + + + No documentation. + + + ff539946 + HID_USAGE_LED_MICROPHONE + HID_USAGE_LED_MICROPHONE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_COVERAGE + HID_USAGE_LED_COVERAGE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_NIGHT_MODE + HID_USAGE_LED_NIGHT_MODE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SEND_CALLS + HID_USAGE_LED_SEND_CALLS + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CALL_PICKUP + HID_USAGE_LED_CALL_PICKUP + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CONFERENCE + HID_USAGE_LED_CONFERENCE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_STAND_BY + HID_USAGE_LED_STAND_BY + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CAMERA_ON + HID_USAGE_LED_CAMERA_ON + + + + No documentation. + + + ff539946 + HID_USAGE_LED_CAMERA_OFF + HID_USAGE_LED_CAMERA_OFF + + + + No documentation. + + + ff539946 + HID_USAGE_LED_ON_LINE + HID_USAGE_LED_ON_LINE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_OFF_LINE + HID_USAGE_LED_OFF_LINE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_BUSY + HID_USAGE_LED_BUSY + + + + No documentation. + + + ff539946 + HID_USAGE_LED_READY + HID_USAGE_LED_READY + + + + No documentation. + + + ff539946 + HID_USAGE_LED_PAPER_OUT + HID_USAGE_LED_PAPER_OUT + + + + No documentation. + + + ff539946 + HID_USAGE_LED_PAPER_JAM + HID_USAGE_LED_PAPER_JAM + + + + No documentation. + + + ff539946 + HID_USAGE_LED_REMOTE + HID_USAGE_LED_REMOTE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_FORWARD + HID_USAGE_LED_FORWARD + + + + No documentation. + + + ff539946 + HID_USAGE_LED_REVERSE + HID_USAGE_LED_REVERSE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_STOP + HID_USAGE_LED_STOP + + + + No documentation. + + + ff539946 + HID_USAGE_LED_REWIND + HID_USAGE_LED_REWIND + + + + No documentation. + + + ff539946 + HID_USAGE_LED_FAST_FORWARD + HID_USAGE_LED_FAST_FORWARD + + + + No documentation. + + + ff539946 + HID_USAGE_LED_PLAY + HID_USAGE_LED_PLAY + + + + No documentation. + + + ff539946 + HID_USAGE_LED_PAUSE + HID_USAGE_LED_PAUSE + + + + No documentation. + + + ff539946 + HID_USAGE_LED_RECORD + HID_USAGE_LED_RECORD + + + + No documentation. + + + ff539946 + HID_USAGE_LED_ERROR + HID_USAGE_LED_ERROR + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SELECTED_INDICATOR + HID_USAGE_LED_SELECTED_INDICATOR + + + + No documentation. + + + ff539946 + HID_USAGE_LED_IN_USE_INDICATOR + HID_USAGE_LED_IN_USE_INDICATOR + + + + No documentation. + + + ff539946 + HID_USAGE_LED_MULTI_MODE_INDICATOR + HID_USAGE_LED_MULTI_MODE_INDICATOR + + + + No documentation. + + + ff539946 + HID_USAGE_LED_INDICATOR_ON + HID_USAGE_LED_INDICATOR_ON + + + + No documentation. + + + ff539946 + HID_USAGE_LED_INDICATOR_FLASH + HID_USAGE_LED_INDICATOR_FLASH + + + + No documentation. + + + ff539946 + HID_USAGE_LED_INDICATOR_SLOW_BLINK + HID_USAGE_LED_INDICATOR_SLOW_BLINK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_INDICATOR_FAST_BLINK + HID_USAGE_LED_INDICATOR_FAST_BLINK + + + + No documentation. + + + ff539946 + HID_USAGE_LED_INDICATOR_OFF + HID_USAGE_LED_INDICATOR_OFF + + + + No documentation. + + + ff539946 + HID_USAGE_LED_FLASH_ON_TIME + HID_USAGE_LED_FLASH_ON_TIME + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SLOW_BLINK_ON_TIME + HID_USAGE_LED_SLOW_BLINK_ON_TIME + + + + No documentation. + + + ff539946 + HID_USAGE_LED_SLOW_BLINK_OFF_TIME + HID_USAGE_LED_SLOW_BLINK_OFF_TIME + + + + No documentation. + + + ff539946 + HID_USAGE_LED_FAST_BLINK_ON_TIME + HID_USAGE_LED_FAST_BLINK_ON_TIME + + + + No documentation. + + + ff539946 + HID_USAGE_LED_FAST_BLINK_OFF_TIME + HID_USAGE_LED_FAST_BLINK_OFF_TIME + + + + No documentation. + + + ff539946 + HID_USAGE_LED_INDICATOR_COLOR + HID_USAGE_LED_INDICATOR_COLOR + + + + No documentation. + + + ff539946 + HID_USAGE_LED_RED + HID_USAGE_LED_RED + + + + No documentation. + + + ff539946 + HID_USAGE_LED_GREEN + HID_USAGE_LED_GREEN + + + + No documentation. + + + ff539946 + HID_USAGE_LED_AMBER + HID_USAGE_LED_AMBER + + + + No documentation. + + + ff539946 + HID_USAGE_LED_GENERIC_INDICATOR + HID_USAGE_LED_GENERIC_INDICATOR + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_PHONE + HID_USAGE_TELEPHONY_PHONE + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_ANSWERING_MACHINE + HID_USAGE_TELEPHONY_ANSWERING_MACHINE + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_MESSAGE_CONTROLS + HID_USAGE_TELEPHONY_MESSAGE_CONTROLS + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_HANDSET + HID_USAGE_TELEPHONY_HANDSET + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_HEADSET + HID_USAGE_TELEPHONY_HEADSET + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_KEYPAD + HID_USAGE_TELEPHONY_KEYPAD + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_PROGRAMMABLE_BUTTON + HID_USAGE_TELEPHONY_PROGRAMMABLE_BUTTON + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_REDIAL + HID_USAGE_TELEPHONY_REDIAL + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_TRANSFER + HID_USAGE_TELEPHONY_TRANSFER + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_DROP + HID_USAGE_TELEPHONY_DROP + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_LINE + HID_USAGE_TELEPHONY_LINE + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_RING_ENABLE + HID_USAGE_TELEPHONY_RING_ENABLE + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_SEND + HID_USAGE_TELEPHONY_SEND + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_KEYPAD_0 + HID_USAGE_TELEPHONY_KEYPAD_0 + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_KEYPAD_D + HID_USAGE_TELEPHONY_KEYPAD_D + + + + No documentation. + + + ff539946 + HID_USAGE_TELEPHONY_HOST_AVAILABLE + HID_USAGE_TELEPHONY_HOST_AVAILABLE + + + + No documentation. + + + ff539946 + HID_USAGE_MS_BTH_HF_DIALNUMBER + HID_USAGE_MS_BTH_HF_DIALNUMBER + + + + No documentation. + + + ff539946 + HID_USAGE_MS_BTH_HF_DIALMEMORY + HID_USAGE_MS_BTH_HF_DIALMEMORY + + + + No documentation. + + + ff539946 + HID_USAGE_CONSUMERCTRL + HID_USAGE_CONSUMERCTRL + + + + No documentation. + + + ff539946 + HID_USAGE_DIGITIZER_PEN + HID_USAGE_DIGITIZER_PEN + + + + No documentation. + + + ff539946 + HID_USAGE_DIGITIZER_IN_RANGE + HID_USAGE_DIGITIZER_IN_RANGE + + + + No documentation. + + + ff539946 + HID_USAGE_DIGITIZER_TIP_SWITCH + HID_USAGE_DIGITIZER_TIP_SWITCH + + + + No documentation. + + + ff539946 + HID_USAGE_DIGITIZER_BARREL_SWITCH + HID_USAGE_DIGITIZER_BARREL_SWITCH + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE + HID_USAGE_PAGE + + + +

Aliased

+
+ + ff539946 + HID_USAGE_PAGE_UNDEFINED + HID_USAGE_PAGE_UNDEFINED +
+ + + No documentation. + + + ff539946 + HID_USAGE_PAGE_GENERIC + HID_USAGE_PAGE_GENERIC + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_SIMULATION + HID_USAGE_PAGE_SIMULATION + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_VR + HID_USAGE_PAGE_VR + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_SPORT + HID_USAGE_PAGE_SPORT + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_GAME + HID_USAGE_PAGE_GAME + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_KEYBOARD + HID_USAGE_PAGE_KEYBOARD + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_LED + HID_USAGE_PAGE_LED + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_BUTTON + HID_USAGE_PAGE_BUTTON + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_ORDINAL + HID_USAGE_PAGE_ORDINAL + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_TELEPHONY + HID_USAGE_PAGE_TELEPHONY + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_CONSUMER + HID_USAGE_PAGE_CONSUMER + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_DIGITIZER + HID_USAGE_PAGE_DIGITIZER + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_UNICODE + HID_USAGE_PAGE_UNICODE + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_ALPHANUMERIC + HID_USAGE_PAGE_ALPHANUMERIC + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MICROSOFT_BLUETOOTH_HANDSFREE + HID_USAGE_PAGE_MICROSOFT_BLUETOOTH_HANDSFREE + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MEDICAL + HID_USAGE_PAGE_MEDICAL + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MONITOR_PAGE0 + HID_USAGE_PAGE_MONITOR_PAGE0 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MONITOR_PAGE1 + HID_USAGE_PAGE_MONITOR_PAGE1 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MONITOR_PAGE2 + HID_USAGE_PAGE_MONITOR_PAGE2 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MONITOR_PAGE3 + HID_USAGE_PAGE_MONITOR_PAGE3 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_POWER_PAGE0 + HID_USAGE_PAGE_POWER_PAGE0 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_POWER_PAGE1 + HID_USAGE_PAGE_POWER_PAGE1 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_POWER_PAGE2 + HID_USAGE_PAGE_POWER_PAGE2 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_POWER_PAGE3 + HID_USAGE_PAGE_POWER_PAGE3 + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_BARCODE + HID_USAGE_PAGE_BARCODE + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_SCALE + HID_USAGE_PAGE_SCALE + + + + No documentation. + + + ff539946 + HID_USAGE_PAGE_MSR + HID_USAGE_PAGE_MSR + + + + No documentation. + + + WAVE_FORMAT_ENCODING + WAVE_FORMAT_ENCODING + + + + No documentation. + + + WAVE_FORMAT_UNKNOWN + WAVE_FORMAT_UNKNOWN + + + + No documentation. + + + WAVE_FORMAT_ADPCM + WAVE_FORMAT_ADPCM + + + + No documentation. + + + WAVE_FORMAT_IEEE_FLOAT + WAVE_FORMAT_IEEE_FLOAT + + + + No documentation. + + + WAVE_FORMAT_VSELP + WAVE_FORMAT_VSELP + + + + No documentation. + + + WAVE_FORMAT_IBM_CVSD + WAVE_FORMAT_IBM_CVSD + + + + No documentation. + + + WAVE_FORMAT_ALAW + WAVE_FORMAT_ALAW + + + + No documentation. + + + WAVE_FORMAT_MULAW + WAVE_FORMAT_MULAW + + + + No documentation. + + + WAVE_FORMAT_DTS + WAVE_FORMAT_DTS + + + + No documentation. + + + WAVE_FORMAT_DRM + WAVE_FORMAT_DRM + + + + No documentation. + + + WAVE_FORMAT_WMAVOICE9 + WAVE_FORMAT_WMAVOICE9 + + + + No documentation. + + + WAVE_FORMAT_WMAVOICE10 + WAVE_FORMAT_WMAVOICE10 + + + + No documentation. + + + WAVE_FORMAT_OKI_ADPCM + WAVE_FORMAT_OKI_ADPCM + + + + No documentation. + + + WAVE_FORMAT_DVI_ADPCM + WAVE_FORMAT_DVI_ADPCM + + + + No documentation. + + + WAVE_FORMAT_IMA_ADPCM + WAVE_FORMAT_IMA_ADPCM + + + + No documentation. + + + WAVE_FORMAT_MEDIASPACE_ADPCM + WAVE_FORMAT_MEDIASPACE_ADPCM + + + + No documentation. + + + WAVE_FORMAT_SIERRA_ADPCM + WAVE_FORMAT_SIERRA_ADPCM + + + + No documentation. + + + WAVE_FORMAT_G723_ADPCM + WAVE_FORMAT_G723_ADPCM + + + + No documentation. + + + WAVE_FORMAT_DIGISTD + WAVE_FORMAT_DIGISTD + + + + No documentation. + + + WAVE_FORMAT_DIGIFIX + WAVE_FORMAT_DIGIFIX + + + + No documentation. + + + WAVE_FORMAT_DIALOGIC_OKI_ADPCM + WAVE_FORMAT_DIALOGIC_OKI_ADPCM + + + + No documentation. + + + WAVE_FORMAT_MEDIAVISION_ADPCM + WAVE_FORMAT_MEDIAVISION_ADPCM + + + + No documentation. + + + WAVE_FORMAT_CU_CODEC + WAVE_FORMAT_CU_CODEC + + + + No documentation. + + + WAVE_FORMAT_YAMAHA_ADPCM + WAVE_FORMAT_YAMAHA_ADPCM + + + + No documentation. + + + WAVE_FORMAT_SONARC + WAVE_FORMAT_SONARC + + + + No documentation. + + + WAVE_FORMAT_DSPGROUP_TRUESPEECH + WAVE_FORMAT_DSPGROUP_TRUESPEECH + + + + No documentation. + + + WAVE_FORMAT_ECHOSC1 + WAVE_FORMAT_ECHOSC1 + + + + No documentation. + + + WAVE_FORMAT_AUDIOFILE_AF36 + WAVE_FORMAT_AUDIOFILE_AF36 + + + + No documentation. + + + WAVE_FORMAT_APTX + WAVE_FORMAT_APTX + + + + No documentation. + + + WAVE_FORMAT_AUDIOFILE_AF10 + WAVE_FORMAT_AUDIOFILE_AF10 + + + + No documentation. + + + WAVE_FORMAT_PROSODY_1612 + WAVE_FORMAT_PROSODY_1612 + + + + No documentation. + + + WAVE_FORMAT_LRC + WAVE_FORMAT_LRC + + + + No documentation. + + + WAVE_FORMAT_DOLBY_AC2 + WAVE_FORMAT_DOLBY_AC2 + + + + No documentation. + + + WAVE_FORMAT_GSM610 + WAVE_FORMAT_GSM610 + + + + No documentation. + + + WAVE_FORMAT_MSNAUDIO + WAVE_FORMAT_MSNAUDIO + + + + No documentation. + + + WAVE_FORMAT_ANTEX_ADPCME + WAVE_FORMAT_ANTEX_ADPCME + + + + No documentation. + + + WAVE_FORMAT_CONTROL_RES_VQLPC + WAVE_FORMAT_CONTROL_RES_VQLPC + + + + No documentation. + + + WAVE_FORMAT_DIGIREAL + WAVE_FORMAT_DIGIREAL + + + + No documentation. + + + WAVE_FORMAT_DIGIADPCM + WAVE_FORMAT_DIGIADPCM + + + + No documentation. + + + WAVE_FORMAT_CONTROL_RES_CR10 + WAVE_FORMAT_CONTROL_RES_CR10 + + + + No documentation. + + + WAVE_FORMAT_NMS_VBXADPCM + WAVE_FORMAT_NMS_VBXADPCM + + + + No documentation. + + + WAVE_FORMAT_CS_IMAADPCM + WAVE_FORMAT_CS_IMAADPCM + + + + No documentation. + + + WAVE_FORMAT_ECHOSC3 + WAVE_FORMAT_ECHOSC3 + + + + No documentation. + + + WAVE_FORMAT_ROCKWELL_ADPCM + WAVE_FORMAT_ROCKWELL_ADPCM + + + + No documentation. + + + WAVE_FORMAT_ROCKWELL_DIGITALK + WAVE_FORMAT_ROCKWELL_DIGITALK + + + + No documentation. + + + WAVE_FORMAT_XEBEC + WAVE_FORMAT_XEBEC + + + + No documentation. + + + WAVE_FORMAT_G721_ADPCM + WAVE_FORMAT_G721_ADPCM + + + + No documentation. + + + WAVE_FORMAT_G728_CELP + WAVE_FORMAT_G728_CELP + + + + No documentation. + + + WAVE_FORMAT_MSG723 + WAVE_FORMAT_MSG723 + + + + No documentation. + + + WAVE_FORMAT_MPEG + WAVE_FORMAT_MPEG + + + + No documentation. + + + WAVE_FORMAT_RT24 + WAVE_FORMAT_RT24 + + + + No documentation. + + + WAVE_FORMAT_PAC + WAVE_FORMAT_PAC + + + + No documentation. + + + WAVE_FORMAT_MPEGLAYER3 + WAVE_FORMAT_MPEGLAYER3 + + + + No documentation. + + + WAVE_FORMAT_LUCENT_G723 + WAVE_FORMAT_LUCENT_G723 + + + + No documentation. + + + WAVE_FORMAT_CIRRUS + WAVE_FORMAT_CIRRUS + + + + No documentation. + + + WAVE_FORMAT_ESPCM + WAVE_FORMAT_ESPCM + + + + No documentation. + + + WAVE_FORMAT_VOXWARE + WAVE_FORMAT_VOXWARE + + + + No documentation. + + + WAVE_FORMAT_CANOPUS_ATRAC + WAVE_FORMAT_CANOPUS_ATRAC + + + + No documentation. + + + WAVE_FORMAT_G726_ADPCM + WAVE_FORMAT_G726_ADPCM + + + + No documentation. + + + WAVE_FORMAT_G722_ADPCM + WAVE_FORMAT_G722_ADPCM + + + + No documentation. + + + WAVE_FORMAT_DSAT_DISPLAY + WAVE_FORMAT_DSAT_DISPLAY + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_BYTE_ALIGNED + WAVE_FORMAT_VOXWARE_BYTE_ALIGNED + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_AC8 + WAVE_FORMAT_VOXWARE_AC8 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_AC10 + WAVE_FORMAT_VOXWARE_AC10 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_AC16 + WAVE_FORMAT_VOXWARE_AC16 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_AC20 + WAVE_FORMAT_VOXWARE_AC20 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_RT24 + WAVE_FORMAT_VOXWARE_RT24 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_RT29 + WAVE_FORMAT_VOXWARE_RT29 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_RT29HW + WAVE_FORMAT_VOXWARE_RT29HW + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_VR12 + WAVE_FORMAT_VOXWARE_VR12 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_VR18 + WAVE_FORMAT_VOXWARE_VR18 + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_TQ40 + WAVE_FORMAT_VOXWARE_TQ40 + + + + No documentation. + + + WAVE_FORMAT_SOFTSOUND + WAVE_FORMAT_SOFTSOUND + + + + No documentation. + + + WAVE_FORMAT_VOXWARE_TQ60 + WAVE_FORMAT_VOXWARE_TQ60 + + + + No documentation. + + + WAVE_FORMAT_MSRT24 + WAVE_FORMAT_MSRT24 + + + + No documentation. + + + WAVE_FORMAT_G729A + WAVE_FORMAT_G729A + + + + No documentation. + + + WAVE_FORMAT_MVI_MVI2 + WAVE_FORMAT_MVI_MVI2 + + + + No documentation. + + + WAVE_FORMAT_DF_G726 + WAVE_FORMAT_DF_G726 + + + + No documentation. + + + WAVE_FORMAT_DF_GSM610 + WAVE_FORMAT_DF_GSM610 + + + + No documentation. + + + WAVE_FORMAT_ISIAUDIO + WAVE_FORMAT_ISIAUDIO + + + + No documentation. + + + WAVE_FORMAT_ONLIVE + WAVE_FORMAT_ONLIVE + + + + No documentation. + + + WAVE_FORMAT_SBC24 + WAVE_FORMAT_SBC24 + + + + No documentation. + + + WAVE_FORMAT_DOLBY_AC3_SPDIF + WAVE_FORMAT_DOLBY_AC3_SPDIF + + + + No documentation. + + + WAVE_FORMAT_MEDIASONIC_G723 + WAVE_FORMAT_MEDIASONIC_G723 + + + + No documentation. + + + WAVE_FORMAT_PROSODY_8KBPS + WAVE_FORMAT_PROSODY_8KBPS + + + + No documentation. + + + WAVE_FORMAT_ZYXEL_ADPCM + WAVE_FORMAT_ZYXEL_ADPCM + + + + No documentation. + + + WAVE_FORMAT_PHILIPS_LPCBB + WAVE_FORMAT_PHILIPS_LPCBB + + + + No documentation. + + + WAVE_FORMAT_PACKED + WAVE_FORMAT_PACKED + + + + No documentation. + + + WAVE_FORMAT_MALDEN_PHONYTALK + WAVE_FORMAT_MALDEN_PHONYTALK + + + + No documentation. + + + WAVE_FORMAT_RAW_AAC1 + WAVE_FORMAT_RAW_AAC1 + + + + No documentation. + + + WAVE_FORMAT_RHETOREX_ADPCM + WAVE_FORMAT_RHETOREX_ADPCM + + + + No documentation. + + + WAVE_FORMAT_IRAT + WAVE_FORMAT_IRAT + + + + No documentation. + + + WAVE_FORMAT_VIVO_G723 + WAVE_FORMAT_VIVO_G723 + + + + No documentation. + + + WAVE_FORMAT_VIVO_SIREN + WAVE_FORMAT_VIVO_SIREN + + + + No documentation. + + + WAVE_FORMAT_DIGITAL_G723 + WAVE_FORMAT_DIGITAL_G723 + + + + No documentation. + + + WAVE_FORMAT_SANYO_LD_ADPCM + WAVE_FORMAT_SANYO_LD_ADPCM + + + + No documentation. + + + WAVE_FORMAT_SIPROLAB_ACEPLNET + WAVE_FORMAT_SIPROLAB_ACEPLNET + + + + No documentation. + + + WAVE_FORMAT_SIPROLAB_ACELP4800 + WAVE_FORMAT_SIPROLAB_ACELP4800 + + + + No documentation. + + + WAVE_FORMAT_SIPROLAB_ACELP8V3 + WAVE_FORMAT_SIPROLAB_ACELP8V3 + + + + No documentation. + + + WAVE_FORMAT_SIPROLAB_G729 + WAVE_FORMAT_SIPROLAB_G729 + + + + No documentation. + + + WAVE_FORMAT_SIPROLAB_G729A + WAVE_FORMAT_SIPROLAB_G729A + + + + No documentation. + + + WAVE_FORMAT_SIPROLAB_KELVIN + WAVE_FORMAT_SIPROLAB_KELVIN + + + + No documentation. + + + WAVE_FORMAT_G726ADPCM + WAVE_FORMAT_G726ADPCM + + + + No documentation. + + + WAVE_FORMAT_QUALCOMM_PUREVOICE + WAVE_FORMAT_QUALCOMM_PUREVOICE + + + + No documentation. + + + WAVE_FORMAT_QUALCOMM_HALFRATE + WAVE_FORMAT_QUALCOMM_HALFRATE + + + + No documentation. + + + WAVE_FORMAT_TUBGSM + WAVE_FORMAT_TUBGSM + + + + No documentation. + + + WAVE_FORMAT_MSAUDIO1 + WAVE_FORMAT_MSAUDIO1 + + + + No documentation. + + + WAVE_FORMAT_WMAUDIO2 + WAVE_FORMAT_WMAUDIO2 + + + + No documentation. + + + WAVE_FORMAT_WMAUDIO3 + WAVE_FORMAT_WMAUDIO3 + + + + No documentation. + + + WAVE_FORMAT_WMAUDIO_LOSSLESS + WAVE_FORMAT_WMAUDIO_LOSSLESS + + + + No documentation. + + + WAVE_FORMAT_WMASPDIF + WAVE_FORMAT_WMASPDIF + + + + No documentation. + + + WAVE_FORMAT_UNISYS_NAP_ADPCM + WAVE_FORMAT_UNISYS_NAP_ADPCM + + + + No documentation. + + + WAVE_FORMAT_UNISYS_NAP_ULAW + WAVE_FORMAT_UNISYS_NAP_ULAW + + + + No documentation. + + + WAVE_FORMAT_UNISYS_NAP_ALAW + WAVE_FORMAT_UNISYS_NAP_ALAW + + + + No documentation. + + + WAVE_FORMAT_UNISYS_NAP_16K + WAVE_FORMAT_UNISYS_NAP_16K + + + + No documentation. + + + WAVE_FORMAT_CREATIVE_ADPCM + WAVE_FORMAT_CREATIVE_ADPCM + + + + No documentation. + + + WAVE_FORMAT_CREATIVE_FASTSPEECH8 + WAVE_FORMAT_CREATIVE_FASTSPEECH8 + + + + No documentation. + + + WAVE_FORMAT_CREATIVE_FASTSPEECH10 + WAVE_FORMAT_CREATIVE_FASTSPEECH10 + + + + No documentation. + + + WAVE_FORMAT_UHER_ADPCM + WAVE_FORMAT_UHER_ADPCM + + + + No documentation. + + + WAVE_FORMAT_QUARTERDECK + WAVE_FORMAT_QUARTERDECK + + + + No documentation. + + + WAVE_FORMAT_ILINK_VC + WAVE_FORMAT_ILINK_VC + + + + No documentation. + + + WAVE_FORMAT_RAW_SPORT + WAVE_FORMAT_RAW_SPORT + + + + No documentation. + + + WAVE_FORMAT_ESST_AC3 + WAVE_FORMAT_ESST_AC3 + + + + No documentation. + + + WAVE_FORMAT_GENERIC_PASSTHRU + WAVE_FORMAT_GENERIC_PASSTHRU + + + + No documentation. + + + WAVE_FORMAT_IPI_HSX + WAVE_FORMAT_IPI_HSX + + + + No documentation. + + + WAVE_FORMAT_IPI_RPELP + WAVE_FORMAT_IPI_RPELP + + + + No documentation. + + + WAVE_FORMAT_CS2 + WAVE_FORMAT_CS2 + + + + No documentation. + + + WAVE_FORMAT_SONY_SCX + WAVE_FORMAT_SONY_SCX + + + + No documentation. + + + WAVE_FORMAT_FM_TOWNS_SND + WAVE_FORMAT_FM_TOWNS_SND + + + + No documentation. + + + WAVE_FORMAT_BTV_DIGITAL + WAVE_FORMAT_BTV_DIGITAL + + + + No documentation. + + + WAVE_FORMAT_QDESIGN_MUSIC + WAVE_FORMAT_QDESIGN_MUSIC + + + + No documentation. + + + WAVE_FORMAT_VME_VMPCM + WAVE_FORMAT_VME_VMPCM + + + + No documentation. + + + WAVE_FORMAT_TPC + WAVE_FORMAT_TPC + + + + No documentation. + + + WAVE_FORMAT_OLIGSM + WAVE_FORMAT_OLIGSM + + + + No documentation. + + + WAVE_FORMAT_OLIADPCM + WAVE_FORMAT_OLIADPCM + + + + No documentation. + + + WAVE_FORMAT_OLICELP + WAVE_FORMAT_OLICELP + + + + No documentation. + + + WAVE_FORMAT_OLISBC + WAVE_FORMAT_OLISBC + + + + No documentation. + + + WAVE_FORMAT_OLIOPR + WAVE_FORMAT_OLIOPR + + + + No documentation. + + + WAVE_FORMAT_LH_CODEC + WAVE_FORMAT_LH_CODEC + + + + No documentation. + + + WAVE_FORMAT_NORRIS + WAVE_FORMAT_NORRIS + + + + No documentation. + + + WAVE_FORMAT_SOUNDSPACE_MUSICOMPRESS + WAVE_FORMAT_SOUNDSPACE_MUSICOMPRESS + + + + No documentation. + + + WAVE_FORMAT_MPEG_ADTS_AAC + WAVE_FORMAT_MPEG_ADTS_AAC + + + + No documentation. + + + WAVE_FORMAT_MPEG_RAW_AAC + WAVE_FORMAT_MPEG_RAW_AAC + + + + No documentation. + + + WAVE_FORMAT_MPEG_LOAS + WAVE_FORMAT_MPEG_LOAS + + + + No documentation. + + + WAVE_FORMAT_NOKIA_MPEG_ADTS_AAC + WAVE_FORMAT_NOKIA_MPEG_ADTS_AAC + + + + No documentation. + + + WAVE_FORMAT_NOKIA_MPEG_RAW_AAC + WAVE_FORMAT_NOKIA_MPEG_RAW_AAC + + + + No documentation. + + + WAVE_FORMAT_VODAFONE_MPEG_ADTS_AAC + WAVE_FORMAT_VODAFONE_MPEG_ADTS_AAC + + + + No documentation. + + + WAVE_FORMAT_VODAFONE_MPEG_RAW_AAC + WAVE_FORMAT_VODAFONE_MPEG_RAW_AAC + + + + No documentation. + + + WAVE_FORMAT_MPEG_HEAAC + WAVE_FORMAT_MPEG_HEAAC + + + + No documentation. + + + WAVE_FORMAT_DVM + WAVE_FORMAT_DVM + + + + No documentation. + + + WAVE_FORMAT_DTS2 + WAVE_FORMAT_DTS2 + + + + No documentation. + + + WAVE_FORMAT_EXTENSIBLE + WAVE_FORMAT_EXTENSIBLE + + + + No documentation. + + + WAVE_FORMAT_DEVELOPMENT + WAVE_FORMAT_DEVELOPMENT + + + + No documentation. + + + WAVE_FORMAT_PCM + WAVE_FORMAT_PCM + + + + No documentation. + + + STGC + STGC + + + + No documentation. + + + STGC_DEFAULT + STGC_DEFAULT + + + + No documentation. + + + STGC_OVERWRITE + STGC_OVERWRITE + + + + No documentation. + + + STGC_ONLYIFCURRENT + STGC_ONLYIFCURRENT + + + + No documentation. + + + STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE + STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE + + + + No documentation. + + + STGC_CONSOLIDATE + STGC_CONSOLIDATE + + + + No documentation. + + + SHARPDX_ERRORCODE + SHARPDX_ERRORCODE + + + + No documentation. + + + ERROR_SUCCESS + ERROR_SUCCESS + + + + No documentation. + + + ERROR_INVALID_FUNCTION + ERROR_INVALID_FUNCTION + + + + No documentation. + + + ERROR_FILE_NOT_FOUND + ERROR_FILE_NOT_FOUND + + + + No documentation. + + + ERROR_PATH_NOT_FOUND + ERROR_PATH_NOT_FOUND + + + + No documentation. + + + ERROR_TOO_MANY_OPEN_FILES + ERROR_TOO_MANY_OPEN_FILES + + + + No documentation. + + + ERROR_ACCESS_DENIED + ERROR_ACCESS_DENIED + + + + No documentation. + + + ERROR_INVALID_HANDLE + ERROR_INVALID_HANDLE + + + + No documentation. + + + ERROR_ARENA_TRASHED + ERROR_ARENA_TRASHED + + + + No documentation. + + + ERROR_NOT_ENOUGH_MEMORY + ERROR_NOT_ENOUGH_MEMORY + + + + No documentation. + + + ERROR_INVALID_BLOCK + ERROR_INVALID_BLOCK + + + + No documentation. + + + ERROR_BAD_ENVIRONMENT + ERROR_BAD_ENVIRONMENT + + + + No documentation. + + + ERROR_BAD_FORMAT + ERROR_BAD_FORMAT + + + + No documentation. + + + ERROR_INVALID_ACCESS + ERROR_INVALID_ACCESS + + + + No documentation. + + + ERROR_INVALID_DATA + ERROR_INVALID_DATA + + + + No documentation. + + + ERROR_OUTOFMEMORY + ERROR_OUTOFMEMORY + + + + No documentation. + + + ERROR_INVALID_DRIVE + ERROR_INVALID_DRIVE + + + + No documentation. + + + ERROR_CURRENT_DIRECTORY + ERROR_CURRENT_DIRECTORY + + + + No documentation. + + + ERROR_NOT_SAME_DEVICE + ERROR_NOT_SAME_DEVICE + + + + No documentation. + + + ERROR_NO_MORE_FILES + ERROR_NO_MORE_FILES + + + + No documentation. + + + ERROR_WRITE_PROTECT + ERROR_WRITE_PROTECT + + + + No documentation. + + + ERROR_BAD_UNIT + ERROR_BAD_UNIT + + + + No documentation. + + + ERROR_NOT_READY + ERROR_NOT_READY + + + + No documentation. + + + ERROR_BAD_COMMAND + ERROR_BAD_COMMAND + + + + No documentation. + + + ERROR_CRC + ERROR_CRC + + + + No documentation. + + + ERROR_BAD_LENGTH + ERROR_BAD_LENGTH + + + + No documentation. + + + ERROR_SEEK + ERROR_SEEK + + + + No documentation. + + + ERROR_NOT_DOS_DISK + ERROR_NOT_DOS_DISK + + + + No documentation. + + + ERROR_SECTOR_NOT_FOUND + ERROR_SECTOR_NOT_FOUND + + + + No documentation. + + + ERROR_OUT_OF_PAPER + ERROR_OUT_OF_PAPER + + + + No documentation. + + + ERROR_WRITE_FAULT + ERROR_WRITE_FAULT + + + + No documentation. + + + ERROR_READ_FAULT + ERROR_READ_FAULT + + + + No documentation. + + + ERROR_GEN_FAILURE + ERROR_GEN_FAILURE + + + + No documentation. + + + ERROR_SHARING_VIOLATION + ERROR_SHARING_VIOLATION + + + + No documentation. + + + ERROR_LOCK_VIOLATION + ERROR_LOCK_VIOLATION + + + + No documentation. + + + ERROR_WRONG_DISK + ERROR_WRONG_DISK + + + + No documentation. + + + ERROR_SHARING_BUFFER_EXCEEDED + ERROR_SHARING_BUFFER_EXCEEDED + + + + No documentation. + + + ERROR_HANDLE_EOF + ERROR_HANDLE_EOF + + + + No documentation. + + + ERROR_HANDLE_DISK_FULL + ERROR_HANDLE_DISK_FULL + + + + No documentation. + + + ERROR_NOT_SUPPORTED + ERROR_NOT_SUPPORTED + + + + No documentation. + + + ERROR_REM_NOT_LIST + ERROR_REM_NOT_LIST + + + + No documentation. + + + ERROR_DUP_NAME + ERROR_DUP_NAME + + + + No documentation. + + + ERROR_BAD_NETPATH + ERROR_BAD_NETPATH + + + + No documentation. + + + ERROR_NETWORK_BUSY + ERROR_NETWORK_BUSY + + + + No documentation. + + + ERROR_DEV_NOT_EXIST + ERROR_DEV_NOT_EXIST + + + + No documentation. + + + ERROR_TOO_MANY_CMDS + ERROR_TOO_MANY_CMDS + + + + No documentation. + + + ERROR_ADAP_HDW_ERR + ERROR_ADAP_HDW_ERR + + + + No documentation. + + + ERROR_BAD_NET_RESP + ERROR_BAD_NET_RESP + + + + No documentation. + + + ERROR_UNEXP_NET_ERR + ERROR_UNEXP_NET_ERR + + + + No documentation. + + + ERROR_BAD_REM_ADAP + ERROR_BAD_REM_ADAP + + + + No documentation. + + + ERROR_PRINTQ_FULL + ERROR_PRINTQ_FULL + + + + No documentation. + + + ERROR_NO_SPOOL_SPACE + ERROR_NO_SPOOL_SPACE + + + + No documentation. + + + ERROR_PRINT_CANCELLED + ERROR_PRINT_CANCELLED + + + + No documentation. + + + ERROR_NETNAME_DELETED + ERROR_NETNAME_DELETED + + + + No documentation. + + + ERROR_NETWORK_ACCESS_DENIED + ERROR_NETWORK_ACCESS_DENIED + + + + No documentation. + + + ERROR_BAD_DEV_TYPE + ERROR_BAD_DEV_TYPE + + + + No documentation. + + + ERROR_BAD_NET_NAME + ERROR_BAD_NET_NAME + + + + No documentation. + + + ERROR_TOO_MANY_NAMES + ERROR_TOO_MANY_NAMES + + + + No documentation. + + + ERROR_TOO_MANY_SESS + ERROR_TOO_MANY_SESS + + + + No documentation. + + + ERROR_SHARING_PAUSED + ERROR_SHARING_PAUSED + + + + No documentation. + + + ERROR_REQ_NOT_ACCEP + ERROR_REQ_NOT_ACCEP + + + + No documentation. + + + ERROR_REDIR_PAUSED + ERROR_REDIR_PAUSED + + + + No documentation. + + + ERROR_FILE_EXISTS + ERROR_FILE_EXISTS + + + + No documentation. + + + ERROR_CANNOT_MAKE + ERROR_CANNOT_MAKE + + + + No documentation. + + + ERROR_FAIL_I24 + ERROR_FAIL_I24 + + + + No documentation. + + + ERROR_OUT_OF_STRUCTURES + ERROR_OUT_OF_STRUCTURES + + + + No documentation. + + + ERROR_ALREADY_ASSIGNED + ERROR_ALREADY_ASSIGNED + + + + No documentation. + + + ERROR_INVALID_PASSWORD + ERROR_INVALID_PASSWORD + + + + No documentation. + + + ERROR_INVALID_PARAMETER + ERROR_INVALID_PARAMETER + + + + No documentation. + + + ERROR_NET_WRITE_FAULT + ERROR_NET_WRITE_FAULT + + + + No documentation. + + + ERROR_NO_PROC_SLOTS + ERROR_NO_PROC_SLOTS + + + + No documentation. + + + ERROR_TOO_MANY_SEMAPHORES + ERROR_TOO_MANY_SEMAPHORES + + + + No documentation. + + + ERROR_EXCL_SEM_ALREADY_OWNED + ERROR_EXCL_SEM_ALREADY_OWNED + + + + No documentation. + + + ERROR_SEM_IS_SET + ERROR_SEM_IS_SET + + + + No documentation. + + + ERROR_TOO_MANY_SEM_REQUESTS + ERROR_TOO_MANY_SEM_REQUESTS + + + + No documentation. + + + ERROR_INVALID_AT_INTERRUPT_TIME + ERROR_INVALID_AT_INTERRUPT_TIME + + + + No documentation. + + + ERROR_SEM_OWNER_DIED + ERROR_SEM_OWNER_DIED + + + + No documentation. + + + ERROR_SEM_USER_LIMIT + ERROR_SEM_USER_LIMIT + + + + No documentation. + + + ERROR_DISK_CHANGE + ERROR_DISK_CHANGE + + + + No documentation. + + + ERROR_DRIVE_LOCKED + ERROR_DRIVE_LOCKED + + + + No documentation. + + + ERROR_BROKEN_PIPE + ERROR_BROKEN_PIPE + + + + No documentation. + + + ERROR_OPEN_FAILED + ERROR_OPEN_FAILED + + + + No documentation. + + + ERROR_BUFFER_OVERFLOW + ERROR_BUFFER_OVERFLOW + + + + No documentation. + + + ERROR_DISK_FULL + ERROR_DISK_FULL + + + + No documentation. + + + ERROR_NO_MORE_SEARCH_HANDLES + ERROR_NO_MORE_SEARCH_HANDLES + + + + No documentation. + + + ERROR_INVALID_TARGET_HANDLE + ERROR_INVALID_TARGET_HANDLE + + + + No documentation. + + + ERROR_INVALID_CATEGORY + ERROR_INVALID_CATEGORY + + + + No documentation. + + + ERROR_INVALID_VERIFY_SWITCH + ERROR_INVALID_VERIFY_SWITCH + + + + No documentation. + + + ERROR_BAD_DRIVER_LEVEL + ERROR_BAD_DRIVER_LEVEL + + + + No documentation. + + + ERROR_CALL_NOT_IMPLEMENTED + ERROR_CALL_NOT_IMPLEMENTED + + + + No documentation. + + + ERROR_SEM_TIMEOUT + ERROR_SEM_TIMEOUT + + + + No documentation. + + + ERROR_INSUFFICIENT_BUFFER + ERROR_INSUFFICIENT_BUFFER + + + + No documentation. + + + ERROR_INVALID_NAME + ERROR_INVALID_NAME + + + + No documentation. + + + ERROR_INVALID_LEVEL + ERROR_INVALID_LEVEL + + + + No documentation. + + + ERROR_NO_VOLUME_LABEL + ERROR_NO_VOLUME_LABEL + + + + No documentation. + + + ERROR_MOD_NOT_FOUND + ERROR_MOD_NOT_FOUND + + + + No documentation. + + + ERROR_PROC_NOT_FOUND + ERROR_PROC_NOT_FOUND + + + + No documentation. + + + ERROR_WAIT_NO_CHILDREN + ERROR_WAIT_NO_CHILDREN + + + + No documentation. + + + ERROR_CHILD_NOT_COMPLETE + ERROR_CHILD_NOT_COMPLETE + + + + No documentation. + + + ERROR_DIRECT_ACCESS_HANDLE + ERROR_DIRECT_ACCESS_HANDLE + + + + No documentation. + + + ERROR_NEGATIVE_SEEK + ERROR_NEGATIVE_SEEK + + + + No documentation. + + + ERROR_SEEK_ON_DEVICE + ERROR_SEEK_ON_DEVICE + + + + No documentation. + + + ERROR_IS_JOIN_TARGET + ERROR_IS_JOIN_TARGET + + + + No documentation. + + + ERROR_IS_JOINED + ERROR_IS_JOINED + + + + No documentation. + + + ERROR_IS_SUBSTED + ERROR_IS_SUBSTED + + + + No documentation. + + + ERROR_NOT_JOINED + ERROR_NOT_JOINED + + + + No documentation. + + + ERROR_NOT_SUBSTED + ERROR_NOT_SUBSTED + + + + No documentation. + + + ERROR_JOIN_TO_JOIN + ERROR_JOIN_TO_JOIN + + + + No documentation. + + + ERROR_SUBST_TO_SUBST + ERROR_SUBST_TO_SUBST + + + + No documentation. + + + ERROR_JOIN_TO_SUBST + ERROR_JOIN_TO_SUBST + + + + No documentation. + + + ERROR_SUBST_TO_JOIN + ERROR_SUBST_TO_JOIN + + + + No documentation. + + + ERROR_BUSY_DRIVE + ERROR_BUSY_DRIVE + + + + No documentation. + + + ERROR_SAME_DRIVE + ERROR_SAME_DRIVE + + + + No documentation. + + + ERROR_DIR_NOT_ROOT + ERROR_DIR_NOT_ROOT + + + + No documentation. + + + ERROR_DIR_NOT_EMPTY + ERROR_DIR_NOT_EMPTY + + + + No documentation. + + + ERROR_IS_SUBST_PATH + ERROR_IS_SUBST_PATH + + + + No documentation. + + + ERROR_IS_JOIN_PATH + ERROR_IS_JOIN_PATH + + + + No documentation. + + + ERROR_PATH_BUSY + ERROR_PATH_BUSY + + + + No documentation. + + + ERROR_IS_SUBST_TARGET + ERROR_IS_SUBST_TARGET + + + + No documentation. + + + ERROR_SYSTEM_TRACE + ERROR_SYSTEM_TRACE + + + + No documentation. + + + ERROR_INVALID_EVENT_COUNT + ERROR_INVALID_EVENT_COUNT + + + + No documentation. + + + ERROR_TOO_MANY_MUXWAITERS + ERROR_TOO_MANY_MUXWAITERS + + + + No documentation. + + + ERROR_INVALID_LIST_FORMAT + ERROR_INVALID_LIST_FORMAT + + + + No documentation. + + + ERROR_LABEL_TOO_LONG + ERROR_LABEL_TOO_LONG + + + + No documentation. + + + ERROR_TOO_MANY_TCBS + ERROR_TOO_MANY_TCBS + + + + No documentation. + + + ERROR_SIGNAL_REFUSED + ERROR_SIGNAL_REFUSED + + + + No documentation. + + + ERROR_DISCARDED + ERROR_DISCARDED + + + + No documentation. + + + ERROR_NOT_LOCKED + ERROR_NOT_LOCKED + + + + No documentation. + + + ERROR_BAD_THREADID_ADDR + ERROR_BAD_THREADID_ADDR + + + + No documentation. + + + ERROR_BAD_ARGUMENTS + ERROR_BAD_ARGUMENTS + + + + No documentation. + + + ERROR_BAD_PATHNAME + ERROR_BAD_PATHNAME + + + + No documentation. + + + ERROR_SIGNAL_PENDING + ERROR_SIGNAL_PENDING + + + + No documentation. + + + ERROR_MAX_THRDS_REACHED + ERROR_MAX_THRDS_REACHED + + + + No documentation. + + + ERROR_LOCK_FAILED + ERROR_LOCK_FAILED + + + + No documentation. + + + ERROR_BUSY + ERROR_BUSY + + + + No documentation. + + + ERROR_CANCEL_VIOLATION + ERROR_CANCEL_VIOLATION + + + + No documentation. + + + ERROR_ATOMIC_LOCKS_NOT_SUPPORTED + ERROR_ATOMIC_LOCKS_NOT_SUPPORTED + + + + No documentation. + + + ERROR_INVALID_SEGMENT_NUMBER + ERROR_INVALID_SEGMENT_NUMBER + + + + No documentation. + + + ERROR_INVALID_ORDINAL + ERROR_INVALID_ORDINAL + + + + No documentation. + + + ERROR_ALREADY_EXISTS + ERROR_ALREADY_EXISTS + + + + No documentation. + + + ERROR_INVALID_FLAG_NUMBER + ERROR_INVALID_FLAG_NUMBER + + + + No documentation. + + + ERROR_SEM_NOT_FOUND + ERROR_SEM_NOT_FOUND + + + + No documentation. + + + ERROR_INVALID_STARTING_CODESEG + ERROR_INVALID_STARTING_CODESEG + + + + No documentation. + + + ERROR_INVALID_STACKSEG + ERROR_INVALID_STACKSEG + + + + No documentation. + + + ERROR_INVALID_MODULETYPE + ERROR_INVALID_MODULETYPE + + + + No documentation. + + + ERROR_INVALID_EXE_SIGNATURE + ERROR_INVALID_EXE_SIGNATURE + + + + No documentation. + + + ERROR_EXE_MARKED_INVALID + ERROR_EXE_MARKED_INVALID + + + + No documentation. + + + ERROR_BAD_EXE_FORMAT + ERROR_BAD_EXE_FORMAT + + + + No documentation. + + + ERROR_ITERATED_DATA_EXCEEDS_64k + ERROR_ITERATED_DATA_EXCEEDS_64k + + + + No documentation. + + + ERROR_INVALID_MINALLOCSIZE + ERROR_INVALID_MINALLOCSIZE + + + + No documentation. + + + ERROR_DYNLINK_FROM_INVALID_RING + ERROR_DYNLINK_FROM_INVALID_RING + + + + No documentation. + + + ERROR_IOPL_NOT_ENABLED + ERROR_IOPL_NOT_ENABLED + + + + No documentation. + + + ERROR_INVALID_SEGDPL + ERROR_INVALID_SEGDPL + + + + No documentation. + + + ERROR_AUTODATASEG_EXCEEDS_64k + ERROR_AUTODATASEG_EXCEEDS_64k + + + + No documentation. + + + ERROR_RING2SEG_MUST_BE_MOVABLE + ERROR_RING2SEG_MUST_BE_MOVABLE + + + + No documentation. + + + ERROR_RELOC_CHAIN_XEEDS_SEGLIM + ERROR_RELOC_CHAIN_XEEDS_SEGLIM + + + + No documentation. + + + ERROR_INFLOOP_IN_RELOC_CHAIN + ERROR_INFLOOP_IN_RELOC_CHAIN + + + + No documentation. + + + ERROR_ENVVAR_NOT_FOUND + ERROR_ENVVAR_NOT_FOUND + + + + No documentation. + + + ERROR_NO_SIGNAL_SENT + ERROR_NO_SIGNAL_SENT + + + + No documentation. + + + ERROR_FILENAME_EXCED_RANGE + ERROR_FILENAME_EXCED_RANGE + + + + No documentation. + + + ERROR_RING2_STACK_IN_USE + ERROR_RING2_STACK_IN_USE + + + + No documentation. + + + ERROR_META_EXPANSION_TOO_LONG + ERROR_META_EXPANSION_TOO_LONG + + + + No documentation. + + + ERROR_INVALID_SIGNAL_NUMBER + ERROR_INVALID_SIGNAL_NUMBER + + + + No documentation. + + + ERROR_THREAD_1_INACTIVE + ERROR_THREAD_1_INACTIVE + + + + No documentation. + + + ERROR_LOCKED + ERROR_LOCKED + + + + No documentation. + + + ERROR_TOO_MANY_MODULES + ERROR_TOO_MANY_MODULES + + + + No documentation. + + + ERROR_NESTING_NOT_ALLOWED + ERROR_NESTING_NOT_ALLOWED + + + + No documentation. + + + ERROR_EXE_MACHINE_TYPE_MISMATCH + ERROR_EXE_MACHINE_TYPE_MISMATCH + + + + No documentation. + + + ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY + ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY + + + + No documentation. + + + ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY + ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY + + + + No documentation. + + + ERROR_FILE_CHECKED_OUT + ERROR_FILE_CHECKED_OUT + + + + No documentation. + + + ERROR_CHECKOUT_REQUIRED + ERROR_CHECKOUT_REQUIRED + + + + No documentation. + + + ERROR_BAD_FILE_TYPE + ERROR_BAD_FILE_TYPE + + + + No documentation. + + + ERROR_FILE_TOO_LARGE + ERROR_FILE_TOO_LARGE + + + + No documentation. + + + ERROR_FORMS_AUTH_REQUIRED + ERROR_FORMS_AUTH_REQUIRED + + + + No documentation. + + + ERROR_VIRUS_INFECTED + ERROR_VIRUS_INFECTED + + + + No documentation. + + + ERROR_VIRUS_DELETED + ERROR_VIRUS_DELETED + + + + No documentation. + + + ERROR_PIPE_LOCAL + ERROR_PIPE_LOCAL + + + + No documentation. + + + ERROR_BAD_PIPE + ERROR_BAD_PIPE + + + + No documentation. + + + ERROR_PIPE_BUSY + ERROR_PIPE_BUSY + + + + No documentation. + + + ERROR_NO_DATA + ERROR_NO_DATA + + + + No documentation. + + + ERROR_PIPE_NOT_CONNECTED + ERROR_PIPE_NOT_CONNECTED + + + + No documentation. + + + ERROR_MORE_DATA + ERROR_MORE_DATA + + + + No documentation. + + + ERROR_VC_DISCONNECTED + ERROR_VC_DISCONNECTED + + + + No documentation. + + + ERROR_INVALID_EA_NAME + ERROR_INVALID_EA_NAME + + + + No documentation. + + + ERROR_EA_LIST_INCONSISTENT + ERROR_EA_LIST_INCONSISTENT + + + + No documentation. + + + ERROR_NO_MORE_ITEMS + ERROR_NO_MORE_ITEMS + + + + No documentation. + + + ERROR_CANNOT_COPY + ERROR_CANNOT_COPY + + + + No documentation. + + + ERROR_DIRECTORY + ERROR_DIRECTORY + + + + No documentation. + + + ERROR_EAS_DIDNT_FIT + ERROR_EAS_DIDNT_FIT + + + + No documentation. + + + ERROR_EA_FILE_CORRUPT + ERROR_EA_FILE_CORRUPT + + + + No documentation. + + + ERROR_EA_TABLE_FULL + ERROR_EA_TABLE_FULL + + + + No documentation. + + + ERROR_INVALID_EA_HANDLE + ERROR_INVALID_EA_HANDLE + + + + No documentation. + + + ERROR_EAS_NOT_SUPPORTED + ERROR_EAS_NOT_SUPPORTED + + + + No documentation. + + + ERROR_NOT_OWNER + ERROR_NOT_OWNER + + + + No documentation. + + + ERROR_TOO_MANY_POSTS + ERROR_TOO_MANY_POSTS + + + + No documentation. + + + ERROR_PARTIAL_COPY + ERROR_PARTIAL_COPY + + + + No documentation. + + + ERROR_OPLOCK_NOT_GRANTED + ERROR_OPLOCK_NOT_GRANTED + + + + No documentation. + + + ERROR_INVALID_OPLOCK_PROTOCOL + ERROR_INVALID_OPLOCK_PROTOCOL + + + + No documentation. + + + ERROR_DISK_TOO_FRAGMENTED + ERROR_DISK_TOO_FRAGMENTED + + + + No documentation. + + + ERROR_DELETE_PENDING + ERROR_DELETE_PENDING + + + + No documentation. + + + ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING + ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING + + + + No documentation. + + + ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME + ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME + + + + No documentation. + + + ERROR_SECURITY_STREAM_IS_INCONSISTENT + ERROR_SECURITY_STREAM_IS_INCONSISTENT + + + + No documentation. + + + ERROR_INVALID_LOCK_RANGE + ERROR_INVALID_LOCK_RANGE + + + + No documentation. + + + ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT + ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT + + + + No documentation. + + + ERROR_NOTIFICATION_GUID_ALREADY_DEFINED + ERROR_NOTIFICATION_GUID_ALREADY_DEFINED + + + + No documentation. + + + ERROR_MR_MID_NOT_FOUND + ERROR_MR_MID_NOT_FOUND + + + + No documentation. + + + ERROR_SCOPE_NOT_FOUND + ERROR_SCOPE_NOT_FOUND + + + + No documentation. + + + ERROR_FAIL_NOACTION_REBOOT + ERROR_FAIL_NOACTION_REBOOT + + + + No documentation. + + + ERROR_FAIL_SHUTDOWN + ERROR_FAIL_SHUTDOWN + + + + No documentation. + + + ERROR_FAIL_RESTART + ERROR_FAIL_RESTART + + + + No documentation. + + + ERROR_MAX_SESSIONS_REACHED + ERROR_MAX_SESSIONS_REACHED + + + + No documentation. + + + ERROR_THREAD_MODE_ALREADY_BACKGROUND + ERROR_THREAD_MODE_ALREADY_BACKGROUND + + + + No documentation. + + + ERROR_THREAD_MODE_NOT_BACKGROUND + ERROR_THREAD_MODE_NOT_BACKGROUND + + + + No documentation. + + + ERROR_PROCESS_MODE_ALREADY_BACKGROUND + ERROR_PROCESS_MODE_ALREADY_BACKGROUND + + + + No documentation. + + + ERROR_PROCESS_MODE_NOT_BACKGROUND + ERROR_PROCESS_MODE_NOT_BACKGROUND + + + + No documentation. + + + ERROR_INVALID_ADDRESS + ERROR_INVALID_ADDRESS + + + + No documentation. + + + ERROR_USER_PROFILE_LOAD + ERROR_USER_PROFILE_LOAD + + + + No documentation. + + + ERROR_ARITHMETIC_OVERFLOW + ERROR_ARITHMETIC_OVERFLOW + + + + No documentation. + + + ERROR_PIPE_CONNECTED + ERROR_PIPE_CONNECTED + + + + No documentation. + + + ERROR_PIPE_LISTENING + ERROR_PIPE_LISTENING + + + + No documentation. + + + ERROR_VERIFIER_STOP + ERROR_VERIFIER_STOP + + + + No documentation. + + + ERROR_ABIOS_ERROR + ERROR_ABIOS_ERROR + + + + No documentation. + + + ERROR_WX86_WARNING + ERROR_WX86_WARNING + + + + No documentation. + + + ERROR_WX86_ERROR + ERROR_WX86_ERROR + + + + No documentation. + + + ERROR_TIMER_NOT_CANCELED + ERROR_TIMER_NOT_CANCELED + + + + No documentation. + + + ERROR_UNWIND + ERROR_UNWIND + + + + No documentation. + + + ERROR_BAD_STACK + ERROR_BAD_STACK + + + + No documentation. + + + ERROR_INVALID_UNWIND_TARGET + ERROR_INVALID_UNWIND_TARGET + + + + No documentation. + + + ERROR_INVALID_PORT_ATTRIBUTES + ERROR_INVALID_PORT_ATTRIBUTES + + + + No documentation. + + + ERROR_PORT_MESSAGE_TOO_LONG + ERROR_PORT_MESSAGE_TOO_LONG + + + + No documentation. + + + ERROR_INVALID_QUOTA_LOWER + ERROR_INVALID_QUOTA_LOWER + + + + No documentation. + + + ERROR_DEVICE_ALREADY_ATTACHED + ERROR_DEVICE_ALREADY_ATTACHED + + + + No documentation. + + + ERROR_INSTRUCTION_MISALIGNMENT + ERROR_INSTRUCTION_MISALIGNMENT + + + + No documentation. + + + ERROR_PROFILING_NOT_STARTED + ERROR_PROFILING_NOT_STARTED + + + + No documentation. + + + ERROR_PROFILING_NOT_STOPPED + ERROR_PROFILING_NOT_STOPPED + + + + No documentation. + + + ERROR_COULD_NOT_INTERPRET + ERROR_COULD_NOT_INTERPRET + + + + No documentation. + + + ERROR_PROFILING_AT_LIMIT + ERROR_PROFILING_AT_LIMIT + + + + No documentation. + + + ERROR_CANT_WAIT + ERROR_CANT_WAIT + + + + No documentation. + + + ERROR_CANT_TERMINATE_SELF + ERROR_CANT_TERMINATE_SELF + + + + No documentation. + + + ERROR_UNEXPECTED_MM_CREATE_ERR + ERROR_UNEXPECTED_MM_CREATE_ERR + + + + No documentation. + + + ERROR_UNEXPECTED_MM_MAP_ERROR + ERROR_UNEXPECTED_MM_MAP_ERROR + + + + No documentation. + + + ERROR_UNEXPECTED_MM_EXTEND_ERR + ERROR_UNEXPECTED_MM_EXTEND_ERR + + + + No documentation. + + + ERROR_BAD_FUNCTION_TABLE + ERROR_BAD_FUNCTION_TABLE + + + + No documentation. + + + ERROR_NO_GUID_TRANSLATION + ERROR_NO_GUID_TRANSLATION + + + + No documentation. + + + ERROR_INVALID_LDT_SIZE + ERROR_INVALID_LDT_SIZE + + + + No documentation. + + + ERROR_INVALID_LDT_OFFSET + ERROR_INVALID_LDT_OFFSET + + + + No documentation. + + + ERROR_INVALID_LDT_DESCRIPTOR + ERROR_INVALID_LDT_DESCRIPTOR + + + + No documentation. + + + ERROR_TOO_MANY_THREADS + ERROR_TOO_MANY_THREADS + + + + No documentation. + + + ERROR_THREAD_NOT_IN_PROCESS + ERROR_THREAD_NOT_IN_PROCESS + + + + No documentation. + + + ERROR_PAGEFILE_QUOTA_EXCEEDED + ERROR_PAGEFILE_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_LOGON_SERVER_CONFLICT + ERROR_LOGON_SERVER_CONFLICT + + + + No documentation. + + + ERROR_SYNCHRONIZATION_REQUIRED + ERROR_SYNCHRONIZATION_REQUIRED + + + + No documentation. + + + ERROR_NET_OPEN_FAILED + ERROR_NET_OPEN_FAILED + + + + No documentation. + + + ERROR_IO_PRIVILEGE_FAILED + ERROR_IO_PRIVILEGE_FAILED + + + + No documentation. + + + ERROR_CONTROL_C_EXIT + ERROR_CONTROL_C_EXIT + + + + No documentation. + + + ERROR_MISSING_SYSTEMFILE + ERROR_MISSING_SYSTEMFILE + + + + No documentation. + + + ERROR_UNHANDLED_EXCEPTION + ERROR_UNHANDLED_EXCEPTION + + + + No documentation. + + + ERROR_APP_INIT_FAILURE + ERROR_APP_INIT_FAILURE + + + + No documentation. + + + ERROR_PAGEFILE_CREATE_FAILED + ERROR_PAGEFILE_CREATE_FAILED + + + + No documentation. + + + ERROR_INVALID_IMAGE_HASH + ERROR_INVALID_IMAGE_HASH + + + + No documentation. + + + ERROR_NO_PAGEFILE + ERROR_NO_PAGEFILE + + + + No documentation. + + + ERROR_ILLEGAL_FLOAT_CONTEXT + ERROR_ILLEGAL_FLOAT_CONTEXT + + + + No documentation. + + + ERROR_NO_EVENT_PAIR + ERROR_NO_EVENT_PAIR + + + + No documentation. + + + ERROR_DOMAIN_CTRLR_CONFIG_ERROR + ERROR_DOMAIN_CTRLR_CONFIG_ERROR + + + + No documentation. + + + ERROR_ILLEGAL_CHARACTER + ERROR_ILLEGAL_CHARACTER + + + + No documentation. + + + ERROR_UNDEFINED_CHARACTER + ERROR_UNDEFINED_CHARACTER + + + + No documentation. + + + ERROR_FLOPPY_VOLUME + ERROR_FLOPPY_VOLUME + + + + No documentation. + + + ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT + ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT + + + + No documentation. + + + ERROR_BACKUP_CONTROLLER + ERROR_BACKUP_CONTROLLER + + + + No documentation. + + + ERROR_MUTANT_LIMIT_EXCEEDED + ERROR_MUTANT_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_FS_DRIVER_REQUIRED + ERROR_FS_DRIVER_REQUIRED + + + + No documentation. + + + ERROR_CANNOT_LOAD_REGISTRY_FILE + ERROR_CANNOT_LOAD_REGISTRY_FILE + + + + No documentation. + + + ERROR_DEBUG_ATTACH_FAILED + ERROR_DEBUG_ATTACH_FAILED + + + + No documentation. + + + ERROR_SYSTEM_PROCESS_TERMINATED + ERROR_SYSTEM_PROCESS_TERMINATED + + + + No documentation. + + + ERROR_DATA_NOT_ACCEPTED + ERROR_DATA_NOT_ACCEPTED + + + + No documentation. + + + ERROR_VDM_HARD_ERROR + ERROR_VDM_HARD_ERROR + + + + No documentation. + + + ERROR_DRIVER_CANCEL_TIMEOUT + ERROR_DRIVER_CANCEL_TIMEOUT + + + + No documentation. + + + ERROR_REPLY_MESSAGE_MISMATCH + ERROR_REPLY_MESSAGE_MISMATCH + + + + No documentation. + + + ERROR_LOST_WRITEBEHIND_DATA + ERROR_LOST_WRITEBEHIND_DATA + + + + No documentation. + + + ERROR_CLIENT_SERVER_PARAMETERS_INVALID + ERROR_CLIENT_SERVER_PARAMETERS_INVALID + + + + No documentation. + + + ERROR_NOT_TINY_STREAM + ERROR_NOT_TINY_STREAM + + + + No documentation. + + + ERROR_STACK_OVERFLOW_READ + ERROR_STACK_OVERFLOW_READ + + + + No documentation. + + + ERROR_CONVERT_TO_LARGE + ERROR_CONVERT_TO_LARGE + + + + No documentation. + + + ERROR_FOUND_OUT_OF_SCOPE + ERROR_FOUND_OUT_OF_SCOPE + + + + No documentation. + + + ERROR_ALLOCATE_BUCKET + ERROR_ALLOCATE_BUCKET + + + + No documentation. + + + ERROR_MARSHALL_OVERFLOW + ERROR_MARSHALL_OVERFLOW + + + + No documentation. + + + ERROR_INVALID_VARIANT + ERROR_INVALID_VARIANT + + + + No documentation. + + + ERROR_BAD_COMPRESSION_BUFFER + ERROR_BAD_COMPRESSION_BUFFER + + + + No documentation. + + + ERROR_AUDIT_FAILED + ERROR_AUDIT_FAILED + + + + No documentation. + + + ERROR_TIMER_RESOLUTION_NOT_SET + ERROR_TIMER_RESOLUTION_NOT_SET + + + + No documentation. + + + ERROR_INSUFFICIENT_LOGON_INFO + ERROR_INSUFFICIENT_LOGON_INFO + + + + No documentation. + + + ERROR_BAD_DLL_ENTRYPOINT + ERROR_BAD_DLL_ENTRYPOINT + + + + No documentation. + + + ERROR_BAD_SERVICE_ENTRYPOINT + ERROR_BAD_SERVICE_ENTRYPOINT + + + + No documentation. + + + ERROR_IP_ADDRESS_CONFLICT1 + ERROR_IP_ADDRESS_CONFLICT1 + + + + No documentation. + + + ERROR_IP_ADDRESS_CONFLICT2 + ERROR_IP_ADDRESS_CONFLICT2 + + + + No documentation. + + + ERROR_REGISTRY_QUOTA_LIMIT + ERROR_REGISTRY_QUOTA_LIMIT + + + + No documentation. + + + ERROR_NO_CALLBACK_ACTIVE + ERROR_NO_CALLBACK_ACTIVE + + + + No documentation. + + + ERROR_PWD_TOO_SHORT + ERROR_PWD_TOO_SHORT + + + + No documentation. + + + ERROR_PWD_TOO_RECENT + ERROR_PWD_TOO_RECENT + + + + No documentation. + + + ERROR_PWD_HISTORY_CONFLICT + ERROR_PWD_HISTORY_CONFLICT + + + + No documentation. + + + ERROR_UNSUPPORTED_COMPRESSION + ERROR_UNSUPPORTED_COMPRESSION + + + + No documentation. + + + ERROR_INVALID_HW_PROFILE + ERROR_INVALID_HW_PROFILE + + + + No documentation. + + + ERROR_INVALID_PLUGPLAY_DEVICE_PATH + ERROR_INVALID_PLUGPLAY_DEVICE_PATH + + + + No documentation. + + + ERROR_QUOTA_LIST_INCONSISTENT + ERROR_QUOTA_LIST_INCONSISTENT + + + + No documentation. + + + ERROR_EVALUATION_EXPIRATION + ERROR_EVALUATION_EXPIRATION + + + + No documentation. + + + ERROR_ILLEGAL_DLL_RELOCATION + ERROR_ILLEGAL_DLL_RELOCATION + + + + No documentation. + + + ERROR_DLL_INIT_FAILED_LOGOFF + ERROR_DLL_INIT_FAILED_LOGOFF + + + + No documentation. + + + ERROR_VALIDATE_CONTINUE + ERROR_VALIDATE_CONTINUE + + + + No documentation. + + + ERROR_NO_MORE_MATCHES + ERROR_NO_MORE_MATCHES + + + + No documentation. + + + ERROR_RANGE_LIST_CONFLICT + ERROR_RANGE_LIST_CONFLICT + + + + No documentation. + + + ERROR_SERVER_SID_MISMATCH + ERROR_SERVER_SID_MISMATCH + + + + No documentation. + + + ERROR_CANT_ENABLE_DENY_ONLY + ERROR_CANT_ENABLE_DENY_ONLY + + + + No documentation. + + + ERROR_FLOAT_MULTIPLE_FAULTS + ERROR_FLOAT_MULTIPLE_FAULTS + + + + No documentation. + + + ERROR_FLOAT_MULTIPLE_TRAPS + ERROR_FLOAT_MULTIPLE_TRAPS + + + + No documentation. + + + ERROR_NOINTERFACE + ERROR_NOINTERFACE + + + + No documentation. + + + ERROR_DRIVER_FAILED_SLEEP + ERROR_DRIVER_FAILED_SLEEP + + + + No documentation. + + + ERROR_CORRUPT_SYSTEM_FILE + ERROR_CORRUPT_SYSTEM_FILE + + + + No documentation. + + + ERROR_COMMITMENT_MINIMUM + ERROR_COMMITMENT_MINIMUM + + + + No documentation. + + + ERROR_PNP_RESTART_ENUMERATION + ERROR_PNP_RESTART_ENUMERATION + + + + No documentation. + + + ERROR_SYSTEM_IMAGE_BAD_SIGNATURE + ERROR_SYSTEM_IMAGE_BAD_SIGNATURE + + + + No documentation. + + + ERROR_PNP_REBOOT_REQUIRED + ERROR_PNP_REBOOT_REQUIRED + + + + No documentation. + + + ERROR_INSUFFICIENT_POWER + ERROR_INSUFFICIENT_POWER + + + + No documentation. + + + ERROR_MULTIPLE_FAULT_VIOLATION + ERROR_MULTIPLE_FAULT_VIOLATION + + + + No documentation. + + + ERROR_SYSTEM_SHUTDOWN + ERROR_SYSTEM_SHUTDOWN + + + + No documentation. + + + ERROR_PORT_NOT_SET + ERROR_PORT_NOT_SET + + + + No documentation. + + + ERROR_DS_VERSION_CHECK_FAILURE + ERROR_DS_VERSION_CHECK_FAILURE + + + + No documentation. + + + ERROR_RANGE_NOT_FOUND + ERROR_RANGE_NOT_FOUND + + + + No documentation. + + + ERROR_NOT_SAFE_MODE_DRIVER + ERROR_NOT_SAFE_MODE_DRIVER + + + + No documentation. + + + ERROR_FAILED_DRIVER_ENTRY + ERROR_FAILED_DRIVER_ENTRY + + + + No documentation. + + + ERROR_DEVICE_ENUMERATION_ERROR + ERROR_DEVICE_ENUMERATION_ERROR + + + + No documentation. + + + ERROR_MOUNT_POINT_NOT_RESOLVED + ERROR_MOUNT_POINT_NOT_RESOLVED + + + + No documentation. + + + ERROR_INVALID_DEVICE_OBJECT_PARAMETER + ERROR_INVALID_DEVICE_OBJECT_PARAMETER + + + + No documentation. + + + ERROR_MCA_OCCURED + ERROR_MCA_OCCURED + + + + No documentation. + + + ERROR_DRIVER_DATABASE_ERROR + ERROR_DRIVER_DATABASE_ERROR + + + + No documentation. + + + ERROR_SYSTEM_HIVE_TOO_LARGE + ERROR_SYSTEM_HIVE_TOO_LARGE + + + + No documentation. + + + ERROR_DRIVER_FAILED_PRIOR_UNLOAD + ERROR_DRIVER_FAILED_PRIOR_UNLOAD + + + + No documentation. + + + ERROR_VOLSNAP_PREPARE_HIBERNATE + ERROR_VOLSNAP_PREPARE_HIBERNATE + + + + No documentation. + + + ERROR_HIBERNATION_FAILURE + ERROR_HIBERNATION_FAILURE + + + + No documentation. + + + ERROR_FILE_SYSTEM_LIMITATION + ERROR_FILE_SYSTEM_LIMITATION + + + + No documentation. + + + ERROR_ASSERTION_FAILURE + ERROR_ASSERTION_FAILURE + + + + No documentation. + + + ERROR_ACPI_ERROR + ERROR_ACPI_ERROR + + + + No documentation. + + + ERROR_WOW_ASSERTION + ERROR_WOW_ASSERTION + + + + No documentation. + + + ERROR_PNP_BAD_MPS_TABLE + ERROR_PNP_BAD_MPS_TABLE + + + + No documentation. + + + ERROR_PNP_TRANSLATION_FAILED + ERROR_PNP_TRANSLATION_FAILED + + + + No documentation. + + + ERROR_PNP_IRQ_TRANSLATION_FAILED + ERROR_PNP_IRQ_TRANSLATION_FAILED + + + + No documentation. + + + ERROR_PNP_INVALID_ID + ERROR_PNP_INVALID_ID + + + + No documentation. + + + ERROR_WAKE_SYSTEM_DEBUGGER + ERROR_WAKE_SYSTEM_DEBUGGER + + + + No documentation. + + + ERROR_HANDLES_CLOSED + ERROR_HANDLES_CLOSED + + + + No documentation. + + + ERROR_EXTRANEOUS_INFORMATION + ERROR_EXTRANEOUS_INFORMATION + + + + No documentation. + + + ERROR_RXACT_COMMIT_NECESSARY + ERROR_RXACT_COMMIT_NECESSARY + + + + No documentation. + + + ERROR_MEDIA_CHECK + ERROR_MEDIA_CHECK + + + + No documentation. + + + ERROR_GUID_SUBSTITUTION_MADE + ERROR_GUID_SUBSTITUTION_MADE + + + + No documentation. + + + ERROR_STOPPED_ON_SYMLINK + ERROR_STOPPED_ON_SYMLINK + + + + No documentation. + + + ERROR_LONGJUMP + ERROR_LONGJUMP + + + + No documentation. + + + ERROR_PLUGPLAY_QUERY_VETOED + ERROR_PLUGPLAY_QUERY_VETOED + + + + No documentation. + + + ERROR_UNWIND_CONSOLIDATE + ERROR_UNWIND_CONSOLIDATE + + + + No documentation. + + + ERROR_REGISTRY_HIVE_RECOVERED + ERROR_REGISTRY_HIVE_RECOVERED + + + + No documentation. + + + ERROR_DLL_MIGHT_BE_INSECURE + ERROR_DLL_MIGHT_BE_INSECURE + + + + No documentation. + + + ERROR_DLL_MIGHT_BE_INCOMPATIBLE + ERROR_DLL_MIGHT_BE_INCOMPATIBLE + + + + No documentation. + + + ERROR_DBG_EXCEPTION_NOT_HANDLED + ERROR_DBG_EXCEPTION_NOT_HANDLED + + + + No documentation. + + + ERROR_DBG_REPLY_LATER + ERROR_DBG_REPLY_LATER + + + + No documentation. + + + ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE + ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE + + + + No documentation. + + + ERROR_DBG_TERMINATE_THREAD + ERROR_DBG_TERMINATE_THREAD + + + + No documentation. + + + ERROR_DBG_TERMINATE_PROCESS + ERROR_DBG_TERMINATE_PROCESS + + + + No documentation. + + + ERROR_DBG_CONTROL_C + ERROR_DBG_CONTROL_C + + + + No documentation. + + + ERROR_DBG_PRINTEXCEPTION_C + ERROR_DBG_PRINTEXCEPTION_C + + + + No documentation. + + + ERROR_DBG_RIPEXCEPTION + ERROR_DBG_RIPEXCEPTION + + + + No documentation. + + + ERROR_DBG_CONTROL_BREAK + ERROR_DBG_CONTROL_BREAK + + + + No documentation. + + + ERROR_DBG_COMMAND_EXCEPTION + ERROR_DBG_COMMAND_EXCEPTION + + + + No documentation. + + + ERROR_OBJECT_NAME_EXISTS + ERROR_OBJECT_NAME_EXISTS + + + + No documentation. + + + ERROR_THREAD_WAS_SUSPENDED + ERROR_THREAD_WAS_SUSPENDED + + + + No documentation. + + + ERROR_IMAGE_NOT_AT_BASE + ERROR_IMAGE_NOT_AT_BASE + + + + No documentation. + + + ERROR_RXACT_STATE_CREATED + ERROR_RXACT_STATE_CREATED + + + + No documentation. + + + ERROR_SEGMENT_NOTIFICATION + ERROR_SEGMENT_NOTIFICATION + + + + No documentation. + + + ERROR_BAD_CURRENT_DIRECTORY + ERROR_BAD_CURRENT_DIRECTORY + + + + No documentation. + + + ERROR_FT_READ_RECOVERY_FROM_BACKUP + ERROR_FT_READ_RECOVERY_FROM_BACKUP + + + + No documentation. + + + ERROR_FT_WRITE_RECOVERY + ERROR_FT_WRITE_RECOVERY + + + + No documentation. + + + ERROR_IMAGE_MACHINE_TYPE_MISMATCH + ERROR_IMAGE_MACHINE_TYPE_MISMATCH + + + + No documentation. + + + ERROR_RECEIVE_PARTIAL + ERROR_RECEIVE_PARTIAL + + + + No documentation. + + + ERROR_RECEIVE_EXPEDITED + ERROR_RECEIVE_EXPEDITED + + + + No documentation. + + + ERROR_RECEIVE_PARTIAL_EXPEDITED + ERROR_RECEIVE_PARTIAL_EXPEDITED + + + + No documentation. + + + ERROR_EVENT_DONE + ERROR_EVENT_DONE + + + + No documentation. + + + ERROR_EVENT_PENDING + ERROR_EVENT_PENDING + + + + No documentation. + + + ERROR_CHECKING_FILE_SYSTEM + ERROR_CHECKING_FILE_SYSTEM + + + + No documentation. + + + ERROR_FATAL_APP_EXIT + ERROR_FATAL_APP_EXIT + + + + No documentation. + + + ERROR_PREDEFINED_HANDLE + ERROR_PREDEFINED_HANDLE + + + + No documentation. + + + ERROR_WAS_UNLOCKED + ERROR_WAS_UNLOCKED + + + + No documentation. + + + ERROR_SERVICE_NOTIFICATION + ERROR_SERVICE_NOTIFICATION + + + + No documentation. + + + ERROR_WAS_LOCKED + ERROR_WAS_LOCKED + + + + No documentation. + + + ERROR_LOG_HARD_ERROR + ERROR_LOG_HARD_ERROR + + + + No documentation. + + + ERROR_ALREADY_WIN32 + ERROR_ALREADY_WIN32 + + + + No documentation. + + + ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE + ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE + + + + No documentation. + + + ERROR_NO_YIELD_PERFORMED + ERROR_NO_YIELD_PERFORMED + + + + No documentation. + + + ERROR_TIMER_RESUME_IGNORED + ERROR_TIMER_RESUME_IGNORED + + + + No documentation. + + + ERROR_ARBITRATION_UNHANDLED + ERROR_ARBITRATION_UNHANDLED + + + + No documentation. + + + ERROR_CARDBUS_NOT_SUPPORTED + ERROR_CARDBUS_NOT_SUPPORTED + + + + No documentation. + + + ERROR_MP_PROCESSOR_MISMATCH + ERROR_MP_PROCESSOR_MISMATCH + + + + No documentation. + + + ERROR_HIBERNATED + ERROR_HIBERNATED + + + + No documentation. + + + ERROR_RESUME_HIBERNATION + ERROR_RESUME_HIBERNATION + + + + No documentation. + + + ERROR_FIRMWARE_UPDATED + ERROR_FIRMWARE_UPDATED + + + + No documentation. + + + ERROR_DRIVERS_LEAKING_LOCKED_PAGES + ERROR_DRIVERS_LEAKING_LOCKED_PAGES + + + + No documentation. + + + ERROR_WAKE_SYSTEM + ERROR_WAKE_SYSTEM + + + + No documentation. + + + ERROR_WAIT_1 + ERROR_WAIT_1 + + + + No documentation. + + + ERROR_WAIT_2 + ERROR_WAIT_2 + + + + No documentation. + + + ERROR_WAIT_3 + ERROR_WAIT_3 + + + + No documentation. + + + ERROR_WAIT_63 + ERROR_WAIT_63 + + + + No documentation. + + + ERROR_ABANDONED_WAIT_0 + ERROR_ABANDONED_WAIT_0 + + + + No documentation. + + + ERROR_ABANDONED_WAIT_63 + ERROR_ABANDONED_WAIT_63 + + + + No documentation. + + + ERROR_USER_APC + ERROR_USER_APC + + + + No documentation. + + + ERROR_KERNEL_APC + ERROR_KERNEL_APC + + + + No documentation. + + + ERROR_ALERTED + ERROR_ALERTED + + + + No documentation. + + + ERROR_ELEVATION_REQUIRED + ERROR_ELEVATION_REQUIRED + + + + No documentation. + + + ERROR_REPARSE + ERROR_REPARSE + + + + No documentation. + + + ERROR_OPLOCK_BREAK_IN_PROGRESS + ERROR_OPLOCK_BREAK_IN_PROGRESS + + + + No documentation. + + + ERROR_VOLUME_MOUNTED + ERROR_VOLUME_MOUNTED + + + + No documentation. + + + ERROR_RXACT_COMMITTED + ERROR_RXACT_COMMITTED + + + + No documentation. + + + ERROR_NOTIFY_CLEANUP + ERROR_NOTIFY_CLEANUP + + + + No documentation. + + + ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED + ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED + + + + No documentation. + + + ERROR_PAGE_FAULT_TRANSITION + ERROR_PAGE_FAULT_TRANSITION + + + + No documentation. + + + ERROR_PAGE_FAULT_DEMAND_ZERO + ERROR_PAGE_FAULT_DEMAND_ZERO + + + + No documentation. + + + ERROR_PAGE_FAULT_COPY_ON_WRITE + ERROR_PAGE_FAULT_COPY_ON_WRITE + + + + No documentation. + + + ERROR_PAGE_FAULT_GUARD_PAGE + ERROR_PAGE_FAULT_GUARD_PAGE + + + + No documentation. + + + ERROR_PAGE_FAULT_PAGING_FILE + ERROR_PAGE_FAULT_PAGING_FILE + + + + No documentation. + + + ERROR_CACHE_PAGE_LOCKED + ERROR_CACHE_PAGE_LOCKED + + + + No documentation. + + + ERROR_CRASH_DUMP + ERROR_CRASH_DUMP + + + + No documentation. + + + ERROR_BUFFER_ALL_ZEROS + ERROR_BUFFER_ALL_ZEROS + + + + No documentation. + + + ERROR_REPARSE_OBJECT + ERROR_REPARSE_OBJECT + + + + No documentation. + + + ERROR_RESOURCE_REQUIREMENTS_CHANGED + ERROR_RESOURCE_REQUIREMENTS_CHANGED + + + + No documentation. + + + ERROR_TRANSLATION_COMPLETE + ERROR_TRANSLATION_COMPLETE + + + + No documentation. + + + ERROR_NOTHING_TO_TERMINATE + ERROR_NOTHING_TO_TERMINATE + + + + No documentation. + + + ERROR_PROCESS_NOT_IN_JOB + ERROR_PROCESS_NOT_IN_JOB + + + + No documentation. + + + ERROR_PROCESS_IN_JOB + ERROR_PROCESS_IN_JOB + + + + No documentation. + + + ERROR_VOLSNAP_HIBERNATE_READY + ERROR_VOLSNAP_HIBERNATE_READY + + + + No documentation. + + + ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY + ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY + + + + No documentation. + + + ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED + ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED + + + + No documentation. + + + ERROR_INTERRUPT_STILL_CONNECTED + ERROR_INTERRUPT_STILL_CONNECTED + + + + No documentation. + + + ERROR_WAIT_FOR_OPLOCK + ERROR_WAIT_FOR_OPLOCK + + + + No documentation. + + + ERROR_DBG_EXCEPTION_HANDLED + ERROR_DBG_EXCEPTION_HANDLED + + + + No documentation. + + + ERROR_DBG_CONTINUE + ERROR_DBG_CONTINUE + + + + No documentation. + + + ERROR_CALLBACK_POP_STACK + ERROR_CALLBACK_POP_STACK + + + + No documentation. + + + ERROR_COMPRESSION_DISABLED + ERROR_COMPRESSION_DISABLED + + + + No documentation. + + + ERROR_CANTFETCHBACKWARDS + ERROR_CANTFETCHBACKWARDS + + + + No documentation. + + + ERROR_CANTSCROLLBACKWARDS + ERROR_CANTSCROLLBACKWARDS + + + + No documentation. + + + ERROR_ROWSNOTRELEASED + ERROR_ROWSNOTRELEASED + + + + No documentation. + + + ERROR_BAD_ACCESSOR_FLAGS + ERROR_BAD_ACCESSOR_FLAGS + + + + No documentation. + + + ERROR_ERRORS_ENCOUNTERED + ERROR_ERRORS_ENCOUNTERED + + + + No documentation. + + + ERROR_NOT_CAPABLE + ERROR_NOT_CAPABLE + + + + No documentation. + + + ERROR_REQUEST_OUT_OF_SEQUENCE + ERROR_REQUEST_OUT_OF_SEQUENCE + + + + No documentation. + + + ERROR_VERSION_PARSE_ERROR + ERROR_VERSION_PARSE_ERROR + + + + No documentation. + + + ERROR_BADSTARTPOSITION + ERROR_BADSTARTPOSITION + + + + No documentation. + + + ERROR_MEMORY_HARDWARE + ERROR_MEMORY_HARDWARE + + + + No documentation. + + + ERROR_DISK_REPAIR_DISABLED + ERROR_DISK_REPAIR_DISABLED + + + + No documentation. + + + ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE + ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE + + + + No documentation. + + + ERROR_SYSTEM_POWERSTATE_TRANSITION + ERROR_SYSTEM_POWERSTATE_TRANSITION + + + + No documentation. + + + ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION + ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION + + + + No documentation. + + + ERROR_MCA_EXCEPTION + ERROR_MCA_EXCEPTION + + + + No documentation. + + + ERROR_ACCESS_AUDIT_BY_POLICY + ERROR_ACCESS_AUDIT_BY_POLICY + + + + No documentation. + + + ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY + ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY + + + + No documentation. + + + ERROR_ABANDON_HIBERFILE + ERROR_ABANDON_HIBERFILE + + + + No documentation. + + + ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED + ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED + + + + No documentation. + + + ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR + ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR + + + + No documentation. + + + ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR + ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR + + + + No documentation. + + + ERROR_BAD_MCFG_TABLE + ERROR_BAD_MCFG_TABLE + + + + No documentation. + + + ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE + ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE + + + + No documentation. + + + ERROR_CANNOT_GRANT_REQUESTED_OPLOCK + ERROR_CANNOT_GRANT_REQUESTED_OPLOCK + + + + No documentation. + + + ERROR_CANNOT_BREAK_OPLOCK + ERROR_CANNOT_BREAK_OPLOCK + + + + No documentation. + + + ERROR_OPLOCK_HANDLE_CLOSED + ERROR_OPLOCK_HANDLE_CLOSED + + + + No documentation. + + + ERROR_NO_ACE_CONDITION + ERROR_NO_ACE_CONDITION + + + + No documentation. + + + ERROR_INVALID_ACE_CONDITION + ERROR_INVALID_ACE_CONDITION + + + + No documentation. + + + ERROR_EA_ACCESS_DENIED + ERROR_EA_ACCESS_DENIED + + + + No documentation. + + + ERROR_OPERATION_ABORTED + ERROR_OPERATION_ABORTED + + + + No documentation. + + + ERROR_IO_INCOMPLETE + ERROR_IO_INCOMPLETE + + + + No documentation. + + + ERROR_IO_PENDING + ERROR_IO_PENDING + + + + No documentation. + + + ERROR_NOACCESS + ERROR_NOACCESS + + + + No documentation. + + + ERROR_SWAPERROR + ERROR_SWAPERROR + + + + No documentation. + + + ERROR_STACK_OVERFLOW + ERROR_STACK_OVERFLOW + + + + No documentation. + + + ERROR_INVALID_MESSAGE + ERROR_INVALID_MESSAGE + + + + No documentation. + + + ERROR_CAN_NOT_COMPLETE + ERROR_CAN_NOT_COMPLETE + + + + No documentation. + + + ERROR_INVALID_FLAGS + ERROR_INVALID_FLAGS + + + + No documentation. + + + ERROR_UNRECOGNIZED_VOLUME + ERROR_UNRECOGNIZED_VOLUME + + + + No documentation. + + + ERROR_FILE_INVALID + ERROR_FILE_INVALID + + + + No documentation. + + + ERROR_FULLSCREEN_MODE + ERROR_FULLSCREEN_MODE + + + + No documentation. + + + ERROR_NO_TOKEN + ERROR_NO_TOKEN + + + + No documentation. + + + ERROR_BADDB + ERROR_BADDB + + + + No documentation. + + + ERROR_BADKEY + ERROR_BADKEY + + + + No documentation. + + + ERROR_CANTOPEN + ERROR_CANTOPEN + + + + No documentation. + + + ERROR_CANTREAD + ERROR_CANTREAD + + + + No documentation. + + + ERROR_CANTWRITE + ERROR_CANTWRITE + + + + No documentation. + + + ERROR_REGISTRY_RECOVERED + ERROR_REGISTRY_RECOVERED + + + + No documentation. + + + ERROR_REGISTRY_CORRUPT + ERROR_REGISTRY_CORRUPT + + + + No documentation. + + + ERROR_REGISTRY_IO_FAILED + ERROR_REGISTRY_IO_FAILED + + + + No documentation. + + + ERROR_NOT_REGISTRY_FILE + ERROR_NOT_REGISTRY_FILE + + + + No documentation. + + + ERROR_KEY_DELETED + ERROR_KEY_DELETED + + + + No documentation. + + + ERROR_NO_LOG_SPACE + ERROR_NO_LOG_SPACE + + + + No documentation. + + + ERROR_KEY_HAS_CHILDREN + ERROR_KEY_HAS_CHILDREN + + + + No documentation. + + + ERROR_CHILD_MUST_BE_VOLATILE + ERROR_CHILD_MUST_BE_VOLATILE + + + + No documentation. + + + ERROR_NOTIFY_ENUM_DIR + ERROR_NOTIFY_ENUM_DIR + + + + No documentation. + + + ERROR_DEPENDENT_SERVICES_RUNNING + ERROR_DEPENDENT_SERVICES_RUNNING + + + + No documentation. + + + ERROR_INVALID_SERVICE_CONTROL + ERROR_INVALID_SERVICE_CONTROL + + + + No documentation. + + + ERROR_SERVICE_REQUEST_TIMEOUT + ERROR_SERVICE_REQUEST_TIMEOUT + + + + No documentation. + + + ERROR_SERVICE_NO_THREAD + ERROR_SERVICE_NO_THREAD + + + + No documentation. + + + ERROR_SERVICE_DATABASE_LOCKED + ERROR_SERVICE_DATABASE_LOCKED + + + + No documentation. + + + ERROR_SERVICE_ALREADY_RUNNING + ERROR_SERVICE_ALREADY_RUNNING + + + + No documentation. + + + ERROR_INVALID_SERVICE_ACCOUNT + ERROR_INVALID_SERVICE_ACCOUNT + + + + No documentation. + + + ERROR_SERVICE_DISABLED + ERROR_SERVICE_DISABLED + + + + No documentation. + + + ERROR_CIRCULAR_DEPENDENCY + ERROR_CIRCULAR_DEPENDENCY + + + + No documentation. + + + ERROR_SERVICE_DOES_NOT_EXIST + ERROR_SERVICE_DOES_NOT_EXIST + + + + No documentation. + + + ERROR_SERVICE_CANNOT_ACCEPT_CTRL + ERROR_SERVICE_CANNOT_ACCEPT_CTRL + + + + No documentation. + + + ERROR_SERVICE_NOT_ACTIVE + ERROR_SERVICE_NOT_ACTIVE + + + + No documentation. + + + ERROR_FAILED_SERVICE_CONTROLLER_CONNECT + ERROR_FAILED_SERVICE_CONTROLLER_CONNECT + + + + No documentation. + + + ERROR_EXCEPTION_IN_SERVICE + ERROR_EXCEPTION_IN_SERVICE + + + + No documentation. + + + ERROR_DATABASE_DOES_NOT_EXIST + ERROR_DATABASE_DOES_NOT_EXIST + + + + No documentation. + + + ERROR_SERVICE_SPECIFIC_ERROR + ERROR_SERVICE_SPECIFIC_ERROR + + + + No documentation. + + + ERROR_PROCESS_ABORTED + ERROR_PROCESS_ABORTED + + + + No documentation. + + + ERROR_SERVICE_DEPENDENCY_FAIL + ERROR_SERVICE_DEPENDENCY_FAIL + + + + No documentation. + + + ERROR_SERVICE_LOGON_FAILED + ERROR_SERVICE_LOGON_FAILED + + + + No documentation. + + + ERROR_SERVICE_START_HANG + ERROR_SERVICE_START_HANG + + + + No documentation. + + + ERROR_INVALID_SERVICE_LOCK + ERROR_INVALID_SERVICE_LOCK + + + + No documentation. + + + ERROR_SERVICE_MARKED_FOR_DELETE + ERROR_SERVICE_MARKED_FOR_DELETE + + + + No documentation. + + + ERROR_SERVICE_EXISTS + ERROR_SERVICE_EXISTS + + + + No documentation. + + + ERROR_ALREADY_RUNNING_LKG + ERROR_ALREADY_RUNNING_LKG + + + + No documentation. + + + ERROR_SERVICE_DEPENDENCY_DELETED + ERROR_SERVICE_DEPENDENCY_DELETED + + + + No documentation. + + + ERROR_BOOT_ALREADY_ACCEPTED + ERROR_BOOT_ALREADY_ACCEPTED + + + + No documentation. + + + ERROR_SERVICE_NEVER_STARTED + ERROR_SERVICE_NEVER_STARTED + + + + No documentation. + + + ERROR_DUPLICATE_SERVICE_NAME + ERROR_DUPLICATE_SERVICE_NAME + + + + No documentation. + + + ERROR_DIFFERENT_SERVICE_ACCOUNT + ERROR_DIFFERENT_SERVICE_ACCOUNT + + + + No documentation. + + + ERROR_CANNOT_DETECT_DRIVER_FAILURE + ERROR_CANNOT_DETECT_DRIVER_FAILURE + + + + No documentation. + + + ERROR_CANNOT_DETECT_PROCESS_ABORT + ERROR_CANNOT_DETECT_PROCESS_ABORT + + + + No documentation. + + + ERROR_NO_RECOVERY_PROGRAM + ERROR_NO_RECOVERY_PROGRAM + + + + No documentation. + + + ERROR_SERVICE_NOT_IN_EXE + ERROR_SERVICE_NOT_IN_EXE + + + + No documentation. + + + ERROR_NOT_SAFEBOOT_SERVICE + ERROR_NOT_SAFEBOOT_SERVICE + + + + No documentation. + + + ERROR_END_OF_MEDIA + ERROR_END_OF_MEDIA + + + + No documentation. + + + ERROR_FILEMARK_DETECTED + ERROR_FILEMARK_DETECTED + + + + No documentation. + + + ERROR_BEGINNING_OF_MEDIA + ERROR_BEGINNING_OF_MEDIA + + + + No documentation. + + + ERROR_SETMARK_DETECTED + ERROR_SETMARK_DETECTED + + + + No documentation. + + + ERROR_NO_DATA_DETECTED + ERROR_NO_DATA_DETECTED + + + + No documentation. + + + ERROR_PARTITION_FAILURE + ERROR_PARTITION_FAILURE + + + + No documentation. + + + ERROR_INVALID_BLOCK_LENGTH + ERROR_INVALID_BLOCK_LENGTH + + + + No documentation. + + + ERROR_DEVICE_NOT_PARTITIONED + ERROR_DEVICE_NOT_PARTITIONED + + + + No documentation. + + + ERROR_UNABLE_TO_LOCK_MEDIA + ERROR_UNABLE_TO_LOCK_MEDIA + + + + No documentation. + + + ERROR_UNABLE_TO_UNLOAD_MEDIA + ERROR_UNABLE_TO_UNLOAD_MEDIA + + + + No documentation. + + + ERROR_MEDIA_CHANGED + ERROR_MEDIA_CHANGED + + + + No documentation. + + + ERROR_BUS_RESET + ERROR_BUS_RESET + + + + No documentation. + + + ERROR_NO_MEDIA_IN_DRIVE + ERROR_NO_MEDIA_IN_DRIVE + + + + No documentation. + + + ERROR_NO_UNICODE_TRANSLATION + ERROR_NO_UNICODE_TRANSLATION + + + + No documentation. + + + ERROR_DLL_INIT_FAILED + ERROR_DLL_INIT_FAILED + + + + No documentation. + + + ERROR_SHUTDOWN_IN_PROGRESS + ERROR_SHUTDOWN_IN_PROGRESS + + + + No documentation. + + + ERROR_NO_SHUTDOWN_IN_PROGRESS + ERROR_NO_SHUTDOWN_IN_PROGRESS + + + + No documentation. + + + ERROR_IO_DEVICE + ERROR_IO_DEVICE + + + + No documentation. + + + ERROR_SERIAL_NO_DEVICE + ERROR_SERIAL_NO_DEVICE + + + + No documentation. + + + ERROR_IRQ_BUSY + ERROR_IRQ_BUSY + + + + No documentation. + + + ERROR_MORE_WRITES + ERROR_MORE_WRITES + + + + No documentation. + + + ERROR_COUNTER_TIMEOUT + ERROR_COUNTER_TIMEOUT + + + + No documentation. + + + ERROR_FLOPPY_ID_MARK_NOT_FOUND + ERROR_FLOPPY_ID_MARK_NOT_FOUND + + + + No documentation. + + + ERROR_FLOPPY_WRONG_CYLINDER + ERROR_FLOPPY_WRONG_CYLINDER + + + + No documentation. + + + ERROR_FLOPPY_UNKNOWN_ERROR + ERROR_FLOPPY_UNKNOWN_ERROR + + + + No documentation. + + + ERROR_FLOPPY_BAD_REGISTERS + ERROR_FLOPPY_BAD_REGISTERS + + + + No documentation. + + + ERROR_DISK_RECALIBRATE_FAILED + ERROR_DISK_RECALIBRATE_FAILED + + + + No documentation. + + + ERROR_DISK_OPERATION_FAILED + ERROR_DISK_OPERATION_FAILED + + + + No documentation. + + + ERROR_DISK_RESET_FAILED + ERROR_DISK_RESET_FAILED + + + + No documentation. + + + ERROR_EOM_OVERFLOW + ERROR_EOM_OVERFLOW + + + + No documentation. + + + ERROR_NOT_ENOUGH_SERVER_MEMORY + ERROR_NOT_ENOUGH_SERVER_MEMORY + + + + No documentation. + + + ERROR_POSSIBLE_DEADLOCK + ERROR_POSSIBLE_DEADLOCK + + + + No documentation. + + + ERROR_MAPPED_ALIGNMENT + ERROR_MAPPED_ALIGNMENT + + + + No documentation. + + + ERROR_SET_POWER_STATE_VETOED + ERROR_SET_POWER_STATE_VETOED + + + + No documentation. + + + ERROR_SET_POWER_STATE_FAILED + ERROR_SET_POWER_STATE_FAILED + + + + No documentation. + + + ERROR_TOO_MANY_LINKS + ERROR_TOO_MANY_LINKS + + + + No documentation. + + + ERROR_OLD_WIN_VERSION + ERROR_OLD_WIN_VERSION + + + + No documentation. + + + ERROR_APP_WRONG_OS + ERROR_APP_WRONG_OS + + + + No documentation. + + + ERROR_SINGLE_INSTANCE_APP + ERROR_SINGLE_INSTANCE_APP + + + + No documentation. + + + ERROR_RMODE_APP + ERROR_RMODE_APP + + + + No documentation. + + + ERROR_INVALID_DLL + ERROR_INVALID_DLL + + + + No documentation. + + + ERROR_NO_ASSOCIATION + ERROR_NO_ASSOCIATION + + + + No documentation. + + + ERROR_DDE_FAIL + ERROR_DDE_FAIL + + + + No documentation. + + + ERROR_DLL_NOT_FOUND + ERROR_DLL_NOT_FOUND + + + + No documentation. + + + ERROR_NO_MORE_USER_HANDLES + ERROR_NO_MORE_USER_HANDLES + + + + No documentation. + + + ERROR_MESSAGE_SYNC_ONLY + ERROR_MESSAGE_SYNC_ONLY + + + + No documentation. + + + ERROR_SOURCE_ELEMENT_EMPTY + ERROR_SOURCE_ELEMENT_EMPTY + + + + No documentation. + + + ERROR_DESTINATION_ELEMENT_FULL + ERROR_DESTINATION_ELEMENT_FULL + + + + No documentation. + + + ERROR_ILLEGAL_ELEMENT_ADDRESS + ERROR_ILLEGAL_ELEMENT_ADDRESS + + + + No documentation. + + + ERROR_MAGAZINE_NOT_PRESENT + ERROR_MAGAZINE_NOT_PRESENT + + + + No documentation. + + + ERROR_DEVICE_REINITIALIZATION_NEEDED + ERROR_DEVICE_REINITIALIZATION_NEEDED + + + + No documentation. + + + ERROR_DEVICE_REQUIRES_CLEANING + ERROR_DEVICE_REQUIRES_CLEANING + + + + No documentation. + + + ERROR_DEVICE_DOOR_OPEN + ERROR_DEVICE_DOOR_OPEN + + + + No documentation. + + + ERROR_DEVICE_NOT_CONNECTED + ERROR_DEVICE_NOT_CONNECTED + + + + No documentation. + + + ERROR_NOT_FOUND + ERROR_NOT_FOUND + + + + No documentation. + + + ERROR_NO_MATCH + ERROR_NO_MATCH + + + + No documentation. + + + ERROR_SET_NOT_FOUND + ERROR_SET_NOT_FOUND + + + + No documentation. + + + ERROR_POINT_NOT_FOUND + ERROR_POINT_NOT_FOUND + + + + No documentation. + + + ERROR_NO_TRACKING_SERVICE + ERROR_NO_TRACKING_SERVICE + + + + No documentation. + + + ERROR_NO_VOLUME_ID + ERROR_NO_VOLUME_ID + + + + No documentation. + + + ERROR_UNABLE_TO_REMOVE_REPLACED + ERROR_UNABLE_TO_REMOVE_REPLACED + + + + No documentation. + + + ERROR_UNABLE_TO_MOVE_REPLACEMENT + ERROR_UNABLE_TO_MOVE_REPLACEMENT + + + + No documentation. + + + ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 + ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 + + + + No documentation. + + + ERROR_JOURNAL_DELETE_IN_PROGRESS + ERROR_JOURNAL_DELETE_IN_PROGRESS + + + + No documentation. + + + ERROR_JOURNAL_NOT_ACTIVE + ERROR_JOURNAL_NOT_ACTIVE + + + + No documentation. + + + ERROR_POTENTIAL_FILE_FOUND + ERROR_POTENTIAL_FILE_FOUND + + + + No documentation. + + + ERROR_JOURNAL_ENTRY_DELETED + ERROR_JOURNAL_ENTRY_DELETED + + + + No documentation. + + + ERROR_SHUTDOWN_IS_SCHEDULED + ERROR_SHUTDOWN_IS_SCHEDULED + + + + No documentation. + + + ERROR_SHUTDOWN_USERS_LOGGED_ON + ERROR_SHUTDOWN_USERS_LOGGED_ON + + + + No documentation. + + + ERROR_BAD_DEVICE + ERROR_BAD_DEVICE + + + + No documentation. + + + ERROR_CONNECTION_UNAVAIL + ERROR_CONNECTION_UNAVAIL + + + + No documentation. + + + ERROR_DEVICE_ALREADY_REMEMBERED + ERROR_DEVICE_ALREADY_REMEMBERED + + + + No documentation. + + + ERROR_NO_NET_OR_BAD_PATH + ERROR_NO_NET_OR_BAD_PATH + + + + No documentation. + + + ERROR_BAD_PROVIDER + ERROR_BAD_PROVIDER + + + + No documentation. + + + ERROR_CANNOT_OPEN_PROFILE + ERROR_CANNOT_OPEN_PROFILE + + + + No documentation. + + + ERROR_BAD_PROFILE + ERROR_BAD_PROFILE + + + + No documentation. + + + ERROR_NOT_CONTAINER + ERROR_NOT_CONTAINER + + + + No documentation. + + + ERROR_EXTENDED_ERROR + ERROR_EXTENDED_ERROR + + + + No documentation. + + + ERROR_INVALID_GROUPNAME + ERROR_INVALID_GROUPNAME + + + + No documentation. + + + ERROR_INVALID_COMPUTERNAME + ERROR_INVALID_COMPUTERNAME + + + + No documentation. + + + ERROR_INVALID_EVENTNAME + ERROR_INVALID_EVENTNAME + + + + No documentation. + + + ERROR_INVALID_DOMAINNAME + ERROR_INVALID_DOMAINNAME + + + + No documentation. + + + ERROR_INVALID_SERVICENAME + ERROR_INVALID_SERVICENAME + + + + No documentation. + + + ERROR_INVALID_NETNAME + ERROR_INVALID_NETNAME + + + + No documentation. + + + ERROR_INVALID_SHARENAME + ERROR_INVALID_SHARENAME + + + + No documentation. + + + ERROR_INVALID_PASSWORDNAME + ERROR_INVALID_PASSWORDNAME + + + + No documentation. + + + ERROR_INVALID_MESSAGENAME + ERROR_INVALID_MESSAGENAME + + + + No documentation. + + + ERROR_INVALID_MESSAGEDEST + ERROR_INVALID_MESSAGEDEST + + + + No documentation. + + + ERROR_SESSION_CREDENTIAL_CONFLICT + ERROR_SESSION_CREDENTIAL_CONFLICT + + + + No documentation. + + + ERROR_REMOTE_SESSION_LIMIT_EXCEEDED + ERROR_REMOTE_SESSION_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_DUP_DOMAINNAME + ERROR_DUP_DOMAINNAME + + + + No documentation. + + + ERROR_NO_NETWORK + ERROR_NO_NETWORK + + + + No documentation. + + + ERROR_CANCELLED + ERROR_CANCELLED + + + + No documentation. + + + ERROR_USER_MAPPED_FILE + ERROR_USER_MAPPED_FILE + + + + No documentation. + + + ERROR_CONNECTION_REFUSED + ERROR_CONNECTION_REFUSED + + + + No documentation. + + + ERROR_GRACEFUL_DISCONNECT + ERROR_GRACEFUL_DISCONNECT + + + + No documentation. + + + ERROR_ADDRESS_ALREADY_ASSOCIATED + ERROR_ADDRESS_ALREADY_ASSOCIATED + + + + No documentation. + + + ERROR_ADDRESS_NOT_ASSOCIATED + ERROR_ADDRESS_NOT_ASSOCIATED + + + + No documentation. + + + ERROR_CONNECTION_INVALID + ERROR_CONNECTION_INVALID + + + + No documentation. + + + ERROR_CONNECTION_ACTIVE + ERROR_CONNECTION_ACTIVE + + + + No documentation. + + + ERROR_NETWORK_UNREACHABLE + ERROR_NETWORK_UNREACHABLE + + + + No documentation. + + + ERROR_HOST_UNREACHABLE + ERROR_HOST_UNREACHABLE + + + + No documentation. + + + ERROR_PROTOCOL_UNREACHABLE + ERROR_PROTOCOL_UNREACHABLE + + + + No documentation. + + + ERROR_PORT_UNREACHABLE + ERROR_PORT_UNREACHABLE + + + + No documentation. + + + ERROR_REQUEST_ABORTED + ERROR_REQUEST_ABORTED + + + + No documentation. + + + ERROR_CONNECTION_ABORTED + ERROR_CONNECTION_ABORTED + + + + No documentation. + + + ERROR_RETRY + ERROR_RETRY + + + + No documentation. + + + ERROR_CONNECTION_COUNT_LIMIT + ERROR_CONNECTION_COUNT_LIMIT + + + + No documentation. + + + ERROR_LOGIN_TIME_RESTRICTION + ERROR_LOGIN_TIME_RESTRICTION + + + + No documentation. + + + ERROR_LOGIN_WKSTA_RESTRICTION + ERROR_LOGIN_WKSTA_RESTRICTION + + + + No documentation. + + + ERROR_INCORRECT_ADDRESS + ERROR_INCORRECT_ADDRESS + + + + No documentation. + + + ERROR_ALREADY_REGISTERED + ERROR_ALREADY_REGISTERED + + + + No documentation. + + + ERROR_SERVICE_NOT_FOUND + ERROR_SERVICE_NOT_FOUND + + + + No documentation. + + + ERROR_NOT_AUTHENTICATED + ERROR_NOT_AUTHENTICATED + + + + No documentation. + + + ERROR_NOT_LOGGED_ON + ERROR_NOT_LOGGED_ON + + + + No documentation. + + + ERROR_CONTINUE + ERROR_CONTINUE + + + + No documentation. + + + ERROR_ALREADY_INITIALIZED + ERROR_ALREADY_INITIALIZED + + + + No documentation. + + + ERROR_NO_MORE_DEVICES + ERROR_NO_MORE_DEVICES + + + + No documentation. + + + ERROR_NO_SUCH_SITE + ERROR_NO_SUCH_SITE + + + + No documentation. + + + ERROR_DOMAIN_CONTROLLER_EXISTS + ERROR_DOMAIN_CONTROLLER_EXISTS + + + + No documentation. + + + ERROR_ONLY_IF_CONNECTED + ERROR_ONLY_IF_CONNECTED + + + + No documentation. + + + ERROR_OVERRIDE_NOCHANGES + ERROR_OVERRIDE_NOCHANGES + + + + No documentation. + + + ERROR_BAD_USER_PROFILE + ERROR_BAD_USER_PROFILE + + + + No documentation. + + + ERROR_NOT_SUPPORTED_ON_SBS + ERROR_NOT_SUPPORTED_ON_SBS + + + + No documentation. + + + ERROR_SERVER_SHUTDOWN_IN_PROGRESS + ERROR_SERVER_SHUTDOWN_IN_PROGRESS + + + + No documentation. + + + ERROR_HOST_DOWN + ERROR_HOST_DOWN + + + + No documentation. + + + ERROR_NON_ACCOUNT_SID + ERROR_NON_ACCOUNT_SID + + + + No documentation. + + + ERROR_NON_DOMAIN_SID + ERROR_NON_DOMAIN_SID + + + + No documentation. + + + ERROR_APPHELP_BLOCK + ERROR_APPHELP_BLOCK + + + + No documentation. + + + ERROR_ACCESS_DISABLED_BY_POLICY + ERROR_ACCESS_DISABLED_BY_POLICY + + + + No documentation. + + + ERROR_REG_NAT_CONSUMPTION + ERROR_REG_NAT_CONSUMPTION + + + + No documentation. + + + ERROR_CSCSHARE_OFFLINE + ERROR_CSCSHARE_OFFLINE + + + + No documentation. + + + ERROR_PKINIT_FAILURE + ERROR_PKINIT_FAILURE + + + + No documentation. + + + ERROR_SMARTCARD_SUBSYSTEM_FAILURE + ERROR_SMARTCARD_SUBSYSTEM_FAILURE + + + + No documentation. + + + ERROR_DOWNGRADE_DETECTED + ERROR_DOWNGRADE_DETECTED + + + + No documentation. + + + ERROR_MACHINE_LOCKED + ERROR_MACHINE_LOCKED + + + + No documentation. + + + ERROR_CALLBACK_SUPPLIED_INVALID_DATA + ERROR_CALLBACK_SUPPLIED_INVALID_DATA + + + + No documentation. + + + ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED + ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED + + + + No documentation. + + + ERROR_DRIVER_BLOCKED + ERROR_DRIVER_BLOCKED + + + + No documentation. + + + ERROR_INVALID_IMPORT_OF_NON_DLL + ERROR_INVALID_IMPORT_OF_NON_DLL + + + + No documentation. + + + ERROR_ACCESS_DISABLED_WEBBLADE + ERROR_ACCESS_DISABLED_WEBBLADE + + + + No documentation. + + + ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER + ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER + + + + No documentation. + + + ERROR_RECOVERY_FAILURE + ERROR_RECOVERY_FAILURE + + + + No documentation. + + + ERROR_ALREADY_FIBER + ERROR_ALREADY_FIBER + + + + No documentation. + + + ERROR_ALREADY_THREAD + ERROR_ALREADY_THREAD + + + + No documentation. + + + ERROR_STACK_BUFFER_OVERRUN + ERROR_STACK_BUFFER_OVERRUN + + + + No documentation. + + + ERROR_PARAMETER_QUOTA_EXCEEDED + ERROR_PARAMETER_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_DEBUGGER_INACTIVE + ERROR_DEBUGGER_INACTIVE + + + + No documentation. + + + ERROR_DELAY_LOAD_FAILED + ERROR_DELAY_LOAD_FAILED + + + + No documentation. + + + ERROR_VDM_DISALLOWED + ERROR_VDM_DISALLOWED + + + + No documentation. + + + ERROR_UNIDENTIFIED_ERROR + ERROR_UNIDENTIFIED_ERROR + + + + No documentation. + + + ERROR_INVALID_CRUNTIME_PARAMETER + ERROR_INVALID_CRUNTIME_PARAMETER + + + + No documentation. + + + ERROR_BEYOND_VDL + ERROR_BEYOND_VDL + + + + No documentation. + + + ERROR_INCOMPATIBLE_SERVICE_SID_TYPE + ERROR_INCOMPATIBLE_SERVICE_SID_TYPE + + + + No documentation. + + + ERROR_DRIVER_PROCESS_TERMINATED + ERROR_DRIVER_PROCESS_TERMINATED + + + + No documentation. + + + ERROR_IMPLEMENTATION_LIMIT + ERROR_IMPLEMENTATION_LIMIT + + + + No documentation. + + + ERROR_PROCESS_IS_PROTECTED + ERROR_PROCESS_IS_PROTECTED + + + + No documentation. + + + ERROR_SERVICE_NOTIFY_CLIENT_LAGGING + ERROR_SERVICE_NOTIFY_CLIENT_LAGGING + + + + No documentation. + + + ERROR_DISK_QUOTA_EXCEEDED + ERROR_DISK_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_CONTENT_BLOCKED + ERROR_CONTENT_BLOCKED + + + + No documentation. + + + ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE + ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE + + + + No documentation. + + + ERROR_APP_HANG + ERROR_APP_HANG + + + + No documentation. + + + ERROR_INVALID_LABEL + ERROR_INVALID_LABEL + + + + No documentation. + + + ERROR_NOT_ALL_ASSIGNED + ERROR_NOT_ALL_ASSIGNED + + + + No documentation. + + + ERROR_SOME_NOT_MAPPED + ERROR_SOME_NOT_MAPPED + + + + No documentation. + + + ERROR_NO_QUOTAS_FOR_ACCOUNT + ERROR_NO_QUOTAS_FOR_ACCOUNT + + + + No documentation. + + + ERROR_LOCAL_USER_SESSION_KEY + ERROR_LOCAL_USER_SESSION_KEY + + + + No documentation. + + + ERROR_NULL_LM_PASSWORD + ERROR_NULL_LM_PASSWORD + + + + No documentation. + + + ERROR_UNKNOWN_REVISION + ERROR_UNKNOWN_REVISION + + + + No documentation. + + + ERROR_REVISION_MISMATCH + ERROR_REVISION_MISMATCH + + + + No documentation. + + + ERROR_INVALID_OWNER + ERROR_INVALID_OWNER + + + + No documentation. + + + ERROR_INVALID_PRIMARY_GROUP + ERROR_INVALID_PRIMARY_GROUP + + + + No documentation. + + + ERROR_NO_IMPERSONATION_TOKEN + ERROR_NO_IMPERSONATION_TOKEN + + + + No documentation. + + + ERROR_CANT_DISABLE_MANDATORY + ERROR_CANT_DISABLE_MANDATORY + + + + No documentation. + + + ERROR_NO_LOGON_SERVERS + ERROR_NO_LOGON_SERVERS + + + + No documentation. + + + ERROR_NO_SUCH_LOGON_SESSION + ERROR_NO_SUCH_LOGON_SESSION + + + + No documentation. + + + ERROR_NO_SUCH_PRIVILEGE + ERROR_NO_SUCH_PRIVILEGE + + + + No documentation. + + + ERROR_PRIVILEGE_NOT_HELD + ERROR_PRIVILEGE_NOT_HELD + + + + No documentation. + + + ERROR_INVALID_ACCOUNT_NAME + ERROR_INVALID_ACCOUNT_NAME + + + + No documentation. + + + ERROR_USER_EXISTS + ERROR_USER_EXISTS + + + + No documentation. + + + ERROR_NO_SUCH_USER + ERROR_NO_SUCH_USER + + + + No documentation. + + + ERROR_GROUP_EXISTS + ERROR_GROUP_EXISTS + + + + No documentation. + + + ERROR_NO_SUCH_GROUP + ERROR_NO_SUCH_GROUP + + + + No documentation. + + + ERROR_MEMBER_IN_GROUP + ERROR_MEMBER_IN_GROUP + + + + No documentation. + + + ERROR_MEMBER_NOT_IN_GROUP + ERROR_MEMBER_NOT_IN_GROUP + + + + No documentation. + + + ERROR_LAST_ADMIN + ERROR_LAST_ADMIN + + + + No documentation. + + + ERROR_WRONG_PASSWORD + ERROR_WRONG_PASSWORD + + + + No documentation. + + + ERROR_ILL_FORMED_PASSWORD + ERROR_ILL_FORMED_PASSWORD + + + + No documentation. + + + ERROR_PASSWORD_RESTRICTION + ERROR_PASSWORD_RESTRICTION + + + + No documentation. + + + ERROR_LOGON_FAILURE + ERROR_LOGON_FAILURE + + + + No documentation. + + + ERROR_ACCOUNT_RESTRICTION + ERROR_ACCOUNT_RESTRICTION + + + + No documentation. + + + ERROR_INVALID_LOGON_HOURS + ERROR_INVALID_LOGON_HOURS + + + + No documentation. + + + ERROR_INVALID_WORKSTATION + ERROR_INVALID_WORKSTATION + + + + No documentation. + + + ERROR_PASSWORD_EXPIRED + ERROR_PASSWORD_EXPIRED + + + + No documentation. + + + ERROR_ACCOUNT_DISABLED + ERROR_ACCOUNT_DISABLED + + + + No documentation. + + + ERROR_NONE_MAPPED + ERROR_NONE_MAPPED + + + + No documentation. + + + ERROR_TOO_MANY_LUIDS_REQUESTED + ERROR_TOO_MANY_LUIDS_REQUESTED + + + + No documentation. + + + ERROR_LUIDS_EXHAUSTED + ERROR_LUIDS_EXHAUSTED + + + + No documentation. + + + ERROR_INVALID_SUB_AUTHORITY + ERROR_INVALID_SUB_AUTHORITY + + + + No documentation. + + + ERROR_INVALID_ACL + ERROR_INVALID_ACL + + + + No documentation. + + + ERROR_INVALID_SID + ERROR_INVALID_SID + + + + No documentation. + + + ERROR_INVALID_SECURITY_DESCR + ERROR_INVALID_SECURITY_DESCR + + + + No documentation. + + + ERROR_BAD_INHERITANCE_ACL + ERROR_BAD_INHERITANCE_ACL + + + + No documentation. + + + ERROR_SERVER_DISABLED + ERROR_SERVER_DISABLED + + + + No documentation. + + + ERROR_SERVER_NOT_DISABLED + ERROR_SERVER_NOT_DISABLED + + + + No documentation. + + + ERROR_INVALID_ID_AUTHORITY + ERROR_INVALID_ID_AUTHORITY + + + + No documentation. + + + ERROR_ALLOTTED_SPACE_EXCEEDED + ERROR_ALLOTTED_SPACE_EXCEEDED + + + + No documentation. + + + ERROR_INVALID_GROUP_ATTRIBUTES + ERROR_INVALID_GROUP_ATTRIBUTES + + + + No documentation. + + + ERROR_BAD_IMPERSONATION_LEVEL + ERROR_BAD_IMPERSONATION_LEVEL + + + + No documentation. + + + ERROR_CANT_OPEN_ANONYMOUS + ERROR_CANT_OPEN_ANONYMOUS + + + + No documentation. + + + ERROR_BAD_VALIDATION_CLASS + ERROR_BAD_VALIDATION_CLASS + + + + No documentation. + + + ERROR_BAD_TOKEN_TYPE + ERROR_BAD_TOKEN_TYPE + + + + No documentation. + + + ERROR_NO_SECURITY_ON_OBJECT + ERROR_NO_SECURITY_ON_OBJECT + + + + No documentation. + + + ERROR_CANT_ACCESS_DOMAIN_INFO + ERROR_CANT_ACCESS_DOMAIN_INFO + + + + No documentation. + + + ERROR_INVALID_SERVER_STATE + ERROR_INVALID_SERVER_STATE + + + + No documentation. + + + ERROR_INVALID_DOMAIN_STATE + ERROR_INVALID_DOMAIN_STATE + + + + No documentation. + + + ERROR_INVALID_DOMAIN_ROLE + ERROR_INVALID_DOMAIN_ROLE + + + + No documentation. + + + ERROR_NO_SUCH_DOMAIN + ERROR_NO_SUCH_DOMAIN + + + + No documentation. + + + ERROR_DOMAIN_EXISTS + ERROR_DOMAIN_EXISTS + + + + No documentation. + + + ERROR_DOMAIN_LIMIT_EXCEEDED + ERROR_DOMAIN_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_INTERNAL_DB_CORRUPTION + ERROR_INTERNAL_DB_CORRUPTION + + + + No documentation. + + + ERROR_INTERNAL_ERROR + ERROR_INTERNAL_ERROR + + + + No documentation. + + + ERROR_GENERIC_NOT_MAPPED + ERROR_GENERIC_NOT_MAPPED + + + + No documentation. + + + ERROR_BAD_DESCRIPTOR_FORMAT + ERROR_BAD_DESCRIPTOR_FORMAT + + + + No documentation. + + + ERROR_NOT_LOGON_PROCESS + ERROR_NOT_LOGON_PROCESS + + + + No documentation. + + + ERROR_LOGON_SESSION_EXISTS + ERROR_LOGON_SESSION_EXISTS + + + + No documentation. + + + ERROR_NO_SUCH_PACKAGE + ERROR_NO_SUCH_PACKAGE + + + + No documentation. + + + ERROR_BAD_LOGON_SESSION_STATE + ERROR_BAD_LOGON_SESSION_STATE + + + + No documentation. + + + ERROR_LOGON_SESSION_COLLISION + ERROR_LOGON_SESSION_COLLISION + + + + No documentation. + + + ERROR_INVALID_LOGON_TYPE + ERROR_INVALID_LOGON_TYPE + + + + No documentation. + + + ERROR_CANNOT_IMPERSONATE + ERROR_CANNOT_IMPERSONATE + + + + No documentation. + + + ERROR_RXACT_INVALID_STATE + ERROR_RXACT_INVALID_STATE + + + + No documentation. + + + ERROR_RXACT_COMMIT_FAILURE + ERROR_RXACT_COMMIT_FAILURE + + + + No documentation. + + + ERROR_SPECIAL_ACCOUNT + ERROR_SPECIAL_ACCOUNT + + + + No documentation. + + + ERROR_SPECIAL_GROUP + ERROR_SPECIAL_GROUP + + + + No documentation. + + + ERROR_SPECIAL_USER + ERROR_SPECIAL_USER + + + + No documentation. + + + ERROR_MEMBERS_PRIMARY_GROUP + ERROR_MEMBERS_PRIMARY_GROUP + + + + No documentation. + + + ERROR_TOKEN_ALREADY_IN_USE + ERROR_TOKEN_ALREADY_IN_USE + + + + No documentation. + + + ERROR_NO_SUCH_ALIAS + ERROR_NO_SUCH_ALIAS + + + + No documentation. + + + ERROR_MEMBER_NOT_IN_ALIAS + ERROR_MEMBER_NOT_IN_ALIAS + + + + No documentation. + + + ERROR_MEMBER_IN_ALIAS + ERROR_MEMBER_IN_ALIAS + + + + No documentation. + + + ERROR_ALIAS_EXISTS + ERROR_ALIAS_EXISTS + + + + No documentation. + + + ERROR_LOGON_NOT_GRANTED + ERROR_LOGON_NOT_GRANTED + + + + No documentation. + + + ERROR_TOO_MANY_SECRETS + ERROR_TOO_MANY_SECRETS + + + + No documentation. + + + ERROR_SECRET_TOO_LONG + ERROR_SECRET_TOO_LONG + + + + No documentation. + + + ERROR_INTERNAL_DB_ERROR + ERROR_INTERNAL_DB_ERROR + + + + No documentation. + + + ERROR_TOO_MANY_CONTEXT_IDS + ERROR_TOO_MANY_CONTEXT_IDS + + + + No documentation. + + + ERROR_LOGON_TYPE_NOT_GRANTED + ERROR_LOGON_TYPE_NOT_GRANTED + + + + No documentation. + + + ERROR_NT_CROSS_ENCRYPTION_REQUIRED + ERROR_NT_CROSS_ENCRYPTION_REQUIRED + + + + No documentation. + + + ERROR_NO_SUCH_MEMBER + ERROR_NO_SUCH_MEMBER + + + + No documentation. + + + ERROR_INVALID_MEMBER + ERROR_INVALID_MEMBER + + + + No documentation. + + + ERROR_TOO_MANY_SIDS + ERROR_TOO_MANY_SIDS + + + + No documentation. + + + ERROR_LM_CROSS_ENCRYPTION_REQUIRED + ERROR_LM_CROSS_ENCRYPTION_REQUIRED + + + + No documentation. + + + ERROR_NO_INHERITANCE + ERROR_NO_INHERITANCE + + + + No documentation. + + + ERROR_FILE_CORRUPT + ERROR_FILE_CORRUPT + + + + No documentation. + + + ERROR_DISK_CORRUPT + ERROR_DISK_CORRUPT + + + + No documentation. + + + ERROR_NO_USER_SESSION_KEY + ERROR_NO_USER_SESSION_KEY + + + + No documentation. + + + ERROR_LICENSE_QUOTA_EXCEEDED + ERROR_LICENSE_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_WRONG_TARGET_NAME + ERROR_WRONG_TARGET_NAME + + + + No documentation. + + + ERROR_MUTUAL_AUTH_FAILED + ERROR_MUTUAL_AUTH_FAILED + + + + No documentation. + + + ERROR_TIME_SKEW + ERROR_TIME_SKEW + + + + No documentation. + + + ERROR_CURRENT_DOMAIN_NOT_ALLOWED + ERROR_CURRENT_DOMAIN_NOT_ALLOWED + + + + No documentation. + + + ERROR_INVALID_WINDOW_HANDLE + ERROR_INVALID_WINDOW_HANDLE + + + + No documentation. + + + ERROR_INVALID_MENU_HANDLE + ERROR_INVALID_MENU_HANDLE + + + + No documentation. + + + ERROR_INVALID_CURSOR_HANDLE + ERROR_INVALID_CURSOR_HANDLE + + + + No documentation. + + + ERROR_INVALID_ACCEL_HANDLE + ERROR_INVALID_ACCEL_HANDLE + + + + No documentation. + + + ERROR_INVALID_HOOK_HANDLE + ERROR_INVALID_HOOK_HANDLE + + + + No documentation. + + + ERROR_INVALID_DWP_HANDLE + ERROR_INVALID_DWP_HANDLE + + + + No documentation. + + + ERROR_TLW_WITH_WSCHILD + ERROR_TLW_WITH_WSCHILD + + + + No documentation. + + + ERROR_CANNOT_FIND_WND_CLASS + ERROR_CANNOT_FIND_WND_CLASS + + + + No documentation. + + + ERROR_WINDOW_OF_OTHER_THREAD + ERROR_WINDOW_OF_OTHER_THREAD + + + + No documentation. + + + ERROR_HOTKEY_ALREADY_REGISTERED + ERROR_HOTKEY_ALREADY_REGISTERED + + + + No documentation. + + + ERROR_CLASS_ALREADY_EXISTS + ERROR_CLASS_ALREADY_EXISTS + + + + No documentation. + + + ERROR_CLASS_DOES_NOT_EXIST + ERROR_CLASS_DOES_NOT_EXIST + + + + No documentation. + + + ERROR_CLASS_HAS_WINDOWS + ERROR_CLASS_HAS_WINDOWS + + + + No documentation. + + + ERROR_INVALID_INDEX + ERROR_INVALID_INDEX + + + + No documentation. + + + ERROR_INVALID_ICON_HANDLE + ERROR_INVALID_ICON_HANDLE + + + + No documentation. + + + ERROR_PRIVATE_DIALOG_INDEX + ERROR_PRIVATE_DIALOG_INDEX + + + + No documentation. + + + ERROR_LISTBOX_ID_NOT_FOUND + ERROR_LISTBOX_ID_NOT_FOUND + + + + No documentation. + + + ERROR_NO_WILDCARD_CHARACTERS + ERROR_NO_WILDCARD_CHARACTERS + + + + No documentation. + + + ERROR_CLIPBOARD_NOT_OPEN + ERROR_CLIPBOARD_NOT_OPEN + + + + No documentation. + + + ERROR_HOTKEY_NOT_REGISTERED + ERROR_HOTKEY_NOT_REGISTERED + + + + No documentation. + + + ERROR_WINDOW_NOT_DIALOG + ERROR_WINDOW_NOT_DIALOG + + + + No documentation. + + + ERROR_CONTROL_ID_NOT_FOUND + ERROR_CONTROL_ID_NOT_FOUND + + + + No documentation. + + + ERROR_INVALID_COMBOBOX_MESSAGE + ERROR_INVALID_COMBOBOX_MESSAGE + + + + No documentation. + + + ERROR_WINDOW_NOT_COMBOBOX + ERROR_WINDOW_NOT_COMBOBOX + + + + No documentation. + + + ERROR_INVALID_EDIT_HEIGHT + ERROR_INVALID_EDIT_HEIGHT + + + + No documentation. + + + ERROR_DC_NOT_FOUND + ERROR_DC_NOT_FOUND + + + + No documentation. + + + ERROR_INVALID_HOOK_FILTER + ERROR_INVALID_HOOK_FILTER + + + + No documentation. + + + ERROR_INVALID_FILTER_PROC + ERROR_INVALID_FILTER_PROC + + + + No documentation. + + + ERROR_HOOK_NEEDS_HMOD + ERROR_HOOK_NEEDS_HMOD + + + + No documentation. + + + ERROR_GLOBAL_ONLY_HOOK + ERROR_GLOBAL_ONLY_HOOK + + + + No documentation. + + + ERROR_JOURNAL_HOOK_SET + ERROR_JOURNAL_HOOK_SET + + + + No documentation. + + + ERROR_HOOK_NOT_INSTALLED + ERROR_HOOK_NOT_INSTALLED + + + + No documentation. + + + ERROR_INVALID_LB_MESSAGE + ERROR_INVALID_LB_MESSAGE + + + + No documentation. + + + ERROR_SETCOUNT_ON_BAD_LB + ERROR_SETCOUNT_ON_BAD_LB + + + + No documentation. + + + ERROR_LB_WITHOUT_TABSTOPS + ERROR_LB_WITHOUT_TABSTOPS + + + + No documentation. + + + ERROR_DESTROY_OBJECT_OF_OTHER_THREAD + ERROR_DESTROY_OBJECT_OF_OTHER_THREAD + + + + No documentation. + + + ERROR_CHILD_WINDOW_MENU + ERROR_CHILD_WINDOW_MENU + + + + No documentation. + + + ERROR_NO_SYSTEM_MENU + ERROR_NO_SYSTEM_MENU + + + + No documentation. + + + ERROR_INVALID_MSGBOX_STYLE + ERROR_INVALID_MSGBOX_STYLE + + + + No documentation. + + + ERROR_INVALID_SPI_VALUE + ERROR_INVALID_SPI_VALUE + + + + No documentation. + + + ERROR_SCREEN_ALREADY_LOCKED + ERROR_SCREEN_ALREADY_LOCKED + + + + No documentation. + + + ERROR_HWNDS_HAVE_DIFF_PARENT + ERROR_HWNDS_HAVE_DIFF_PARENT + + + + No documentation. + + + ERROR_NOT_CHILD_WINDOW + ERROR_NOT_CHILD_WINDOW + + + + No documentation. + + + ERROR_INVALID_GW_COMMAND + ERROR_INVALID_GW_COMMAND + + + + No documentation. + + + ERROR_INVALID_THREAD_ID + ERROR_INVALID_THREAD_ID + + + + No documentation. + + + ERROR_NON_MDICHILD_WINDOW + ERROR_NON_MDICHILD_WINDOW + + + + No documentation. + + + ERROR_POPUP_ALREADY_ACTIVE + ERROR_POPUP_ALREADY_ACTIVE + + + + No documentation. + + + ERROR_NO_SCROLLBARS + ERROR_NO_SCROLLBARS + + + + No documentation. + + + ERROR_INVALID_SCROLLBAR_RANGE + ERROR_INVALID_SCROLLBAR_RANGE + + + + No documentation. + + + ERROR_INVALID_SHOWWIN_COMMAND + ERROR_INVALID_SHOWWIN_COMMAND + + + + No documentation. + + + ERROR_NO_SYSTEM_RESOURCES + ERROR_NO_SYSTEM_RESOURCES + + + + No documentation. + + + ERROR_NONPAGED_SYSTEM_RESOURCES + ERROR_NONPAGED_SYSTEM_RESOURCES + + + + No documentation. + + + ERROR_PAGED_SYSTEM_RESOURCES + ERROR_PAGED_SYSTEM_RESOURCES + + + + No documentation. + + + ERROR_WORKING_SET_QUOTA + ERROR_WORKING_SET_QUOTA + + + + No documentation. + + + ERROR_PAGEFILE_QUOTA + ERROR_PAGEFILE_QUOTA + + + + No documentation. + + + ERROR_COMMITMENT_LIMIT + ERROR_COMMITMENT_LIMIT + + + + No documentation. + + + ERROR_MENU_ITEM_NOT_FOUND + ERROR_MENU_ITEM_NOT_FOUND + + + + No documentation. + + + ERROR_INVALID_KEYBOARD_HANDLE + ERROR_INVALID_KEYBOARD_HANDLE + + + + No documentation. + + + ERROR_HOOK_TYPE_NOT_ALLOWED + ERROR_HOOK_TYPE_NOT_ALLOWED + + + + No documentation. + + + ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION + ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION + + + + No documentation. + + + ERROR_TIMEOUT + ERROR_TIMEOUT + + + + No documentation. + + + ERROR_INVALID_MONITOR_HANDLE + ERROR_INVALID_MONITOR_HANDLE + + + + No documentation. + + + ERROR_INCORRECT_SIZE + ERROR_INCORRECT_SIZE + + + + No documentation. + + + ERROR_SYMLINK_CLASS_DISABLED + ERROR_SYMLINK_CLASS_DISABLED + + + + No documentation. + + + ERROR_SYMLINK_NOT_SUPPORTED + ERROR_SYMLINK_NOT_SUPPORTED + + + + No documentation. + + + ERROR_XML_PARSE_ERROR + ERROR_XML_PARSE_ERROR + + + + No documentation. + + + ERROR_XMLDSIG_ERROR + ERROR_XMLDSIG_ERROR + + + + No documentation. + + + ERROR_RESTART_APPLICATION + ERROR_RESTART_APPLICATION + + + + No documentation. + + + ERROR_WRONG_COMPARTMENT + ERROR_WRONG_COMPARTMENT + + + + No documentation. + + + ERROR_AUTHIP_FAILURE + ERROR_AUTHIP_FAILURE + + + + No documentation. + + + ERROR_NO_NVRAM_RESOURCES + ERROR_NO_NVRAM_RESOURCES + + + + No documentation. + + + ERROR_EVENTLOG_FILE_CORRUPT + ERROR_EVENTLOG_FILE_CORRUPT + + + + No documentation. + + + ERROR_EVENTLOG_CANT_START + ERROR_EVENTLOG_CANT_START + + + + No documentation. + + + ERROR_LOG_FILE_FULL + ERROR_LOG_FILE_FULL + + + + No documentation. + + + ERROR_EVENTLOG_FILE_CHANGED + ERROR_EVENTLOG_FILE_CHANGED + + + + No documentation. + + + ERROR_INVALID_TASK_NAME + ERROR_INVALID_TASK_NAME + + + + No documentation. + + + ERROR_INVALID_TASK_INDEX + ERROR_INVALID_TASK_INDEX + + + + No documentation. + + + ERROR_THREAD_ALREADY_IN_TASK + ERROR_THREAD_ALREADY_IN_TASK + + + + No documentation. + + + ERROR_INSTALL_SERVICE_FAILURE + ERROR_INSTALL_SERVICE_FAILURE + + + + No documentation. + + + ERROR_INSTALL_USEREXIT + ERROR_INSTALL_USEREXIT + + + + No documentation. + + + ERROR_INSTALL_FAILURE + ERROR_INSTALL_FAILURE + + + + No documentation. + + + ERROR_INSTALL_SUSPEND + ERROR_INSTALL_SUSPEND + + + + No documentation. + + + ERROR_UNKNOWN_PRODUCT + ERROR_UNKNOWN_PRODUCT + + + + No documentation. + + + ERROR_UNKNOWN_FEATURE + ERROR_UNKNOWN_FEATURE + + + + No documentation. + + + ERROR_UNKNOWN_COMPONENT + ERROR_UNKNOWN_COMPONENT + + + + No documentation. + + + ERROR_UNKNOWN_PROPERTY + ERROR_UNKNOWN_PROPERTY + + + + No documentation. + + + ERROR_INVALID_HANDLE_STATE + ERROR_INVALID_HANDLE_STATE + + + + No documentation. + + + ERROR_BAD_CONFIGURATION + ERROR_BAD_CONFIGURATION + + + + No documentation. + + + ERROR_INDEX_ABSENT + ERROR_INDEX_ABSENT + + + + No documentation. + + + ERROR_INSTALL_SOURCE_ABSENT + ERROR_INSTALL_SOURCE_ABSENT + + + + No documentation. + + + ERROR_INSTALL_PACKAGE_VERSION + ERROR_INSTALL_PACKAGE_VERSION + + + + No documentation. + + + ERROR_PRODUCT_UNINSTALLED + ERROR_PRODUCT_UNINSTALLED + + + + No documentation. + + + ERROR_BAD_QUERY_SYNTAX + ERROR_BAD_QUERY_SYNTAX + + + + No documentation. + + + ERROR_INVALID_FIELD + ERROR_INVALID_FIELD + + + + No documentation. + + + ERROR_DEVICE_REMOVED + ERROR_DEVICE_REMOVED + + + + No documentation. + + + ERROR_INSTALL_ALREADY_RUNNING + ERROR_INSTALL_ALREADY_RUNNING + + + + No documentation. + + + ERROR_INSTALL_PACKAGE_OPEN_FAILED + ERROR_INSTALL_PACKAGE_OPEN_FAILED + + + + No documentation. + + + ERROR_INSTALL_PACKAGE_INVALID + ERROR_INSTALL_PACKAGE_INVALID + + + + No documentation. + + + ERROR_INSTALL_UI_FAILURE + ERROR_INSTALL_UI_FAILURE + + + + No documentation. + + + ERROR_INSTALL_LOG_FAILURE + ERROR_INSTALL_LOG_FAILURE + + + + No documentation. + + + ERROR_INSTALL_LANGUAGE_UNSUPPORTED + ERROR_INSTALL_LANGUAGE_UNSUPPORTED + + + + No documentation. + + + ERROR_INSTALL_TRANSFORM_FAILURE + ERROR_INSTALL_TRANSFORM_FAILURE + + + + No documentation. + + + ERROR_INSTALL_PACKAGE_REJECTED + ERROR_INSTALL_PACKAGE_REJECTED + + + + No documentation. + + + ERROR_FUNCTION_NOT_CALLED + ERROR_FUNCTION_NOT_CALLED + + + + No documentation. + + + ERROR_FUNCTION_FAILED + ERROR_FUNCTION_FAILED + + + + No documentation. + + + ERROR_INVALID_TABLE + ERROR_INVALID_TABLE + + + + No documentation. + + + ERROR_DATATYPE_MISMATCH + ERROR_DATATYPE_MISMATCH + + + + No documentation. + + + ERROR_UNSUPPORTED_TYPE + ERROR_UNSUPPORTED_TYPE + + + + No documentation. + + + ERROR_CREATE_FAILED + ERROR_CREATE_FAILED + + + + No documentation. + + + ERROR_INSTALL_TEMP_UNWRITABLE + ERROR_INSTALL_TEMP_UNWRITABLE + + + + No documentation. + + + ERROR_INSTALL_PLATFORM_UNSUPPORTED + ERROR_INSTALL_PLATFORM_UNSUPPORTED + + + + No documentation. + + + ERROR_INSTALL_NOTUSED + ERROR_INSTALL_NOTUSED + + + + No documentation. + + + ERROR_PATCH_PACKAGE_OPEN_FAILED + ERROR_PATCH_PACKAGE_OPEN_FAILED + + + + No documentation. + + + ERROR_PATCH_PACKAGE_INVALID + ERROR_PATCH_PACKAGE_INVALID + + + + No documentation. + + + ERROR_PATCH_PACKAGE_UNSUPPORTED + ERROR_PATCH_PACKAGE_UNSUPPORTED + + + + No documentation. + + + ERROR_PRODUCT_VERSION + ERROR_PRODUCT_VERSION + + + + No documentation. + + + ERROR_INVALID_COMMAND_LINE + ERROR_INVALID_COMMAND_LINE + + + + No documentation. + + + ERROR_INSTALL_REMOTE_DISALLOWED + ERROR_INSTALL_REMOTE_DISALLOWED + + + + No documentation. + + + ERROR_SUCCESS_REBOOT_INITIATED + ERROR_SUCCESS_REBOOT_INITIATED + + + + No documentation. + + + ERROR_PATCH_TARGET_NOT_FOUND + ERROR_PATCH_TARGET_NOT_FOUND + + + + No documentation. + + + ERROR_PATCH_PACKAGE_REJECTED + ERROR_PATCH_PACKAGE_REJECTED + + + + No documentation. + + + ERROR_INSTALL_TRANSFORM_REJECTED + ERROR_INSTALL_TRANSFORM_REJECTED + + + + No documentation. + + + ERROR_INSTALL_REMOTE_PROHIBITED + ERROR_INSTALL_REMOTE_PROHIBITED + + + + No documentation. + + + ERROR_PATCH_REMOVAL_UNSUPPORTED + ERROR_PATCH_REMOVAL_UNSUPPORTED + + + + No documentation. + + + ERROR_UNKNOWN_PATCH + ERROR_UNKNOWN_PATCH + + + + No documentation. + + + ERROR_PATCH_NO_SEQUENCE + ERROR_PATCH_NO_SEQUENCE + + + + No documentation. + + + ERROR_PATCH_REMOVAL_DISALLOWED + ERROR_PATCH_REMOVAL_DISALLOWED + + + + No documentation. + + + ERROR_INVALID_PATCH_XML + ERROR_INVALID_PATCH_XML + + + + No documentation. + + + ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT + ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT + + + + No documentation. + + + ERROR_INSTALL_SERVICE_SAFEBOOT + ERROR_INSTALL_SERVICE_SAFEBOOT + + + + No documentation. + + + ERROR_FAIL_FAST_EXCEPTION + ERROR_FAIL_FAST_EXCEPTION + + + + No documentation. + + + ERROR_INVALID_USER_BUFFER + ERROR_INVALID_USER_BUFFER + + + + No documentation. + + + ERROR_UNRECOGNIZED_MEDIA + ERROR_UNRECOGNIZED_MEDIA + + + + No documentation. + + + ERROR_NO_TRUST_LSA_SECRET + ERROR_NO_TRUST_LSA_SECRET + + + + No documentation. + + + ERROR_NO_TRUST_SAM_ACCOUNT + ERROR_NO_TRUST_SAM_ACCOUNT + + + + No documentation. + + + ERROR_TRUSTED_DOMAIN_FAILURE + ERROR_TRUSTED_DOMAIN_FAILURE + + + + No documentation. + + + ERROR_TRUSTED_RELATIONSHIP_FAILURE + ERROR_TRUSTED_RELATIONSHIP_FAILURE + + + + No documentation. + + + ERROR_TRUST_FAILURE + ERROR_TRUST_FAILURE + + + + No documentation. + + + ERROR_NETLOGON_NOT_STARTED + ERROR_NETLOGON_NOT_STARTED + + + + No documentation. + + + ERROR_ACCOUNT_EXPIRED + ERROR_ACCOUNT_EXPIRED + + + + No documentation. + + + ERROR_REDIRECTOR_HAS_OPEN_HANDLES + ERROR_REDIRECTOR_HAS_OPEN_HANDLES + + + + No documentation. + + + ERROR_PRINTER_DRIVER_ALREADY_INSTALLED + ERROR_PRINTER_DRIVER_ALREADY_INSTALLED + + + + No documentation. + + + ERROR_UNKNOWN_PORT + ERROR_UNKNOWN_PORT + + + + No documentation. + + + ERROR_UNKNOWN_PRINTER_DRIVER + ERROR_UNKNOWN_PRINTER_DRIVER + + + + No documentation. + + + ERROR_UNKNOWN_PRINTPROCESSOR + ERROR_UNKNOWN_PRINTPROCESSOR + + + + No documentation. + + + ERROR_INVALID_SEPARATOR_FILE + ERROR_INVALID_SEPARATOR_FILE + + + + No documentation. + + + ERROR_INVALID_PRIORITY + ERROR_INVALID_PRIORITY + + + + No documentation. + + + ERROR_INVALID_PRINTER_NAME + ERROR_INVALID_PRINTER_NAME + + + + No documentation. + + + ERROR_PRINTER_ALREADY_EXISTS + ERROR_PRINTER_ALREADY_EXISTS + + + + No documentation. + + + ERROR_INVALID_PRINTER_COMMAND + ERROR_INVALID_PRINTER_COMMAND + + + + No documentation. + + + ERROR_INVALID_DATATYPE + ERROR_INVALID_DATATYPE + + + + No documentation. + + + ERROR_INVALID_ENVIRONMENT + ERROR_INVALID_ENVIRONMENT + + + + No documentation. + + + ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT + ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT + + + + No documentation. + + + ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT + ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT + + + + No documentation. + + + ERROR_NOLOGON_SERVER_TRUST_ACCOUNT + ERROR_NOLOGON_SERVER_TRUST_ACCOUNT + + + + No documentation. + + + ERROR_DOMAIN_TRUST_INCONSISTENT + ERROR_DOMAIN_TRUST_INCONSISTENT + + + + No documentation. + + + ERROR_SERVER_HAS_OPEN_HANDLES + ERROR_SERVER_HAS_OPEN_HANDLES + + + + No documentation. + + + ERROR_RESOURCE_DATA_NOT_FOUND + ERROR_RESOURCE_DATA_NOT_FOUND + + + + No documentation. + + + ERROR_RESOURCE_TYPE_NOT_FOUND + ERROR_RESOURCE_TYPE_NOT_FOUND + + + + No documentation. + + + ERROR_RESOURCE_NAME_NOT_FOUND + ERROR_RESOURCE_NAME_NOT_FOUND + + + + No documentation. + + + ERROR_RESOURCE_LANG_NOT_FOUND + ERROR_RESOURCE_LANG_NOT_FOUND + + + + No documentation. + + + ERROR_NOT_ENOUGH_QUOTA + ERROR_NOT_ENOUGH_QUOTA + + + + No documentation. + + + ERROR_INVALID_TIME + ERROR_INVALID_TIME + + + + No documentation. + + + ERROR_INVALID_FORM_NAME + ERROR_INVALID_FORM_NAME + + + + No documentation. + + + ERROR_INVALID_FORM_SIZE + ERROR_INVALID_FORM_SIZE + + + + No documentation. + + + ERROR_ALREADY_WAITING + ERROR_ALREADY_WAITING + + + + No documentation. + + + ERROR_PRINTER_DELETED + ERROR_PRINTER_DELETED + + + + No documentation. + + + ERROR_INVALID_PRINTER_STATE + ERROR_INVALID_PRINTER_STATE + + + + No documentation. + + + ERROR_PASSWORD_MUST_CHANGE + ERROR_PASSWORD_MUST_CHANGE + + + + No documentation. + + + ERROR_DOMAIN_CONTROLLER_NOT_FOUND + ERROR_DOMAIN_CONTROLLER_NOT_FOUND + + + + No documentation. + + + ERROR_ACCOUNT_LOCKED_OUT + ERROR_ACCOUNT_LOCKED_OUT + + + + No documentation. + + + ERROR_NO_SITENAME + ERROR_NO_SITENAME + + + + No documentation. + + + ERROR_CANT_ACCESS_FILE + ERROR_CANT_ACCESS_FILE + + + + No documentation. + + + ERROR_CANT_RESOLVE_FILENAME + ERROR_CANT_RESOLVE_FILENAME + + + + No documentation. + + + ERROR_KM_DRIVER_BLOCKED + ERROR_KM_DRIVER_BLOCKED + + + + No documentation. + + + ERROR_CONTEXT_EXPIRED + ERROR_CONTEXT_EXPIRED + + + + No documentation. + + + ERROR_PER_USER_TRUST_QUOTA_EXCEEDED + ERROR_PER_USER_TRUST_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED + ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED + ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_AUTHENTICATION_FIREWALL_FAILED + ERROR_AUTHENTICATION_FIREWALL_FAILED + + + + No documentation. + + + ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED + ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED + + + + No documentation. + + + ERROR_NTLM_BLOCKED + ERROR_NTLM_BLOCKED + + + + No documentation. + + + ERROR_INVALID_PIXEL_FORMAT + ERROR_INVALID_PIXEL_FORMAT + + + + No documentation. + + + ERROR_BAD_DRIVER + ERROR_BAD_DRIVER + + + + No documentation. + + + ERROR_INVALID_WINDOW_STYLE + ERROR_INVALID_WINDOW_STYLE + + + + No documentation. + + + ERROR_METAFILE_NOT_SUPPORTED + ERROR_METAFILE_NOT_SUPPORTED + + + + No documentation. + + + ERROR_TRANSFORM_NOT_SUPPORTED + ERROR_TRANSFORM_NOT_SUPPORTED + + + + No documentation. + + + ERROR_CLIPPING_NOT_SUPPORTED + ERROR_CLIPPING_NOT_SUPPORTED + + + + No documentation. + + + ERROR_INVALID_CMM + ERROR_INVALID_CMM + + + + No documentation. + + + ERROR_INVALID_PROFILE + ERROR_INVALID_PROFILE + + + + No documentation. + + + ERROR_TAG_NOT_FOUND + ERROR_TAG_NOT_FOUND + + + + No documentation. + + + ERROR_TAG_NOT_PRESENT + ERROR_TAG_NOT_PRESENT + + + + No documentation. + + + ERROR_DUPLICATE_TAG + ERROR_DUPLICATE_TAG + + + + No documentation. + + + ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE + ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE + + + + No documentation. + + + ERROR_PROFILE_NOT_FOUND + ERROR_PROFILE_NOT_FOUND + + + + No documentation. + + + ERROR_INVALID_COLORSPACE + ERROR_INVALID_COLORSPACE + + + + No documentation. + + + ERROR_ICM_NOT_ENABLED + ERROR_ICM_NOT_ENABLED + + + + No documentation. + + + ERROR_DELETING_ICM_XFORM + ERROR_DELETING_ICM_XFORM + + + + No documentation. + + + ERROR_INVALID_TRANSFORM + ERROR_INVALID_TRANSFORM + + + + No documentation. + + + ERROR_COLORSPACE_MISMATCH + ERROR_COLORSPACE_MISMATCH + + + + No documentation. + + + ERROR_INVALID_COLORINDEX + ERROR_INVALID_COLORINDEX + + + + No documentation. + + + ERROR_PROFILE_DOES_NOT_MATCH_DEVICE + ERROR_PROFILE_DOES_NOT_MATCH_DEVICE + + + + No documentation. + + + ERROR_CONNECTED_OTHER_PASSWORD + ERROR_CONNECTED_OTHER_PASSWORD + + + + No documentation. + + + ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT + ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT + + + + No documentation. + + + ERROR_BAD_USERNAME + ERROR_BAD_USERNAME + + + + No documentation. + + + ERROR_NOT_CONNECTED + ERROR_NOT_CONNECTED + + + + No documentation. + + + ERROR_OPEN_FILES + ERROR_OPEN_FILES + + + + No documentation. + + + ERROR_ACTIVE_CONNECTIONS + ERROR_ACTIVE_CONNECTIONS + + + + No documentation. + + + ERROR_DEVICE_IN_USE + ERROR_DEVICE_IN_USE + + + + No documentation. + + + ERROR_UNKNOWN_PRINT_MONITOR + ERROR_UNKNOWN_PRINT_MONITOR + + + + No documentation. + + + ERROR_PRINTER_DRIVER_IN_USE + ERROR_PRINTER_DRIVER_IN_USE + + + + No documentation. + + + ERROR_SPOOL_FILE_NOT_FOUND + ERROR_SPOOL_FILE_NOT_FOUND + + + + No documentation. + + + ERROR_SPL_NO_STARTDOC + ERROR_SPL_NO_STARTDOC + + + + No documentation. + + + ERROR_SPL_NO_ADDJOB + ERROR_SPL_NO_ADDJOB + + + + No documentation. + + + ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED + ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED + + + + No documentation. + + + ERROR_PRINT_MONITOR_ALREADY_INSTALLED + ERROR_PRINT_MONITOR_ALREADY_INSTALLED + + + + No documentation. + + + ERROR_INVALID_PRINT_MONITOR + ERROR_INVALID_PRINT_MONITOR + + + + No documentation. + + + ERROR_PRINT_MONITOR_IN_USE + ERROR_PRINT_MONITOR_IN_USE + + + + No documentation. + + + ERROR_PRINTER_HAS_JOBS_QUEUED + ERROR_PRINTER_HAS_JOBS_QUEUED + + + + No documentation. + + + ERROR_SUCCESS_REBOOT_REQUIRED + ERROR_SUCCESS_REBOOT_REQUIRED + + + + No documentation. + + + ERROR_SUCCESS_RESTART_REQUIRED + ERROR_SUCCESS_RESTART_REQUIRED + + + + No documentation. + + + ERROR_PRINTER_NOT_FOUND + ERROR_PRINTER_NOT_FOUND + + + + No documentation. + + + ERROR_PRINTER_DRIVER_WARNED + ERROR_PRINTER_DRIVER_WARNED + + + + No documentation. + + + ERROR_PRINTER_DRIVER_BLOCKED + ERROR_PRINTER_DRIVER_BLOCKED + + + + No documentation. + + + ERROR_PRINTER_DRIVER_PACKAGE_IN_USE + ERROR_PRINTER_DRIVER_PACKAGE_IN_USE + + + + No documentation. + + + ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND + ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND + + + + No documentation. + + + ERROR_FAIL_REBOOT_REQUIRED + ERROR_FAIL_REBOOT_REQUIRED + + + + No documentation. + + + ERROR_FAIL_REBOOT_INITIATED + ERROR_FAIL_REBOOT_INITIATED + + + + No documentation. + + + ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED + ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED + + + + No documentation. + + + ERROR_PRINT_JOB_RESTART_REQUIRED + ERROR_PRINT_JOB_RESTART_REQUIRED + + + + No documentation. + + + ERROR_IO_REISSUE_AS_CACHED + ERROR_IO_REISSUE_AS_CACHED + + + + No documentation. + + + ERROR_WINS_INTERNAL + ERROR_WINS_INTERNAL + + + + No documentation. + + + ERROR_CAN_NOT_DEL_LOCAL_WINS + ERROR_CAN_NOT_DEL_LOCAL_WINS + + + + No documentation. + + + ERROR_STATIC_INIT + ERROR_STATIC_INIT + + + + No documentation. + + + ERROR_INC_BACKUP + ERROR_INC_BACKUP + + + + No documentation. + + + ERROR_FULL_BACKUP + ERROR_FULL_BACKUP + + + + No documentation. + + + ERROR_REC_NON_EXISTENT + ERROR_REC_NON_EXISTENT + + + + No documentation. + + + ERROR_RPL_NOT_ALLOWED + ERROR_RPL_NOT_ALLOWED + + + + No documentation. + + + ERROR_DHCP_ADDRESS_CONFLICT + ERROR_DHCP_ADDRESS_CONFLICT + + + + No documentation. + + + ERROR_WMI_GUID_NOT_FOUND + ERROR_WMI_GUID_NOT_FOUND + + + + No documentation. + + + ERROR_WMI_INSTANCE_NOT_FOUND + ERROR_WMI_INSTANCE_NOT_FOUND + + + + No documentation. + + + ERROR_WMI_ITEMID_NOT_FOUND + ERROR_WMI_ITEMID_NOT_FOUND + + + + No documentation. + + + ERROR_WMI_TRY_AGAIN + ERROR_WMI_TRY_AGAIN + + + + No documentation. + + + ERROR_WMI_DP_NOT_FOUND + ERROR_WMI_DP_NOT_FOUND + + + + No documentation. + + + ERROR_WMI_UNRESOLVED_INSTANCE_REF + ERROR_WMI_UNRESOLVED_INSTANCE_REF + + + + No documentation. + + + ERROR_WMI_ALREADY_ENABLED + ERROR_WMI_ALREADY_ENABLED + + + + No documentation. + + + ERROR_WMI_GUID_DISCONNECTED + ERROR_WMI_GUID_DISCONNECTED + + + + No documentation. + + + ERROR_WMI_SERVER_UNAVAILABLE + ERROR_WMI_SERVER_UNAVAILABLE + + + + No documentation. + + + ERROR_WMI_DP_FAILED + ERROR_WMI_DP_FAILED + + + + No documentation. + + + ERROR_WMI_INVALID_MOF + ERROR_WMI_INVALID_MOF + + + + No documentation. + + + ERROR_WMI_INVALID_REGINFO + ERROR_WMI_INVALID_REGINFO + + + + No documentation. + + + ERROR_WMI_ALREADY_DISABLED + ERROR_WMI_ALREADY_DISABLED + + + + No documentation. + + + ERROR_WMI_READ_ONLY + ERROR_WMI_READ_ONLY + + + + No documentation. + + + ERROR_WMI_SET_FAILURE + ERROR_WMI_SET_FAILURE + + + + No documentation. + + + ERROR_INVALID_MEDIA + ERROR_INVALID_MEDIA + + + + No documentation. + + + ERROR_INVALID_LIBRARY + ERROR_INVALID_LIBRARY + + + + No documentation. + + + ERROR_INVALID_MEDIA_POOL + ERROR_INVALID_MEDIA_POOL + + + + No documentation. + + + ERROR_DRIVE_MEDIA_MISMATCH + ERROR_DRIVE_MEDIA_MISMATCH + + + + No documentation. + + + ERROR_MEDIA_OFFLINE + ERROR_MEDIA_OFFLINE + + + + No documentation. + + + ERROR_LIBRARY_OFFLINE + ERROR_LIBRARY_OFFLINE + + + + No documentation. + + + ERROR_EMPTY + ERROR_EMPTY + + + + No documentation. + + + ERROR_NOT_EMPTY + ERROR_NOT_EMPTY + + + + No documentation. + + + ERROR_MEDIA_UNAVAILABLE + ERROR_MEDIA_UNAVAILABLE + + + + No documentation. + + + ERROR_RESOURCE_DISABLED + ERROR_RESOURCE_DISABLED + + + + No documentation. + + + ERROR_INVALID_CLEANER + ERROR_INVALID_CLEANER + + + + No documentation. + + + ERROR_UNABLE_TO_CLEAN + ERROR_UNABLE_TO_CLEAN + + + + No documentation. + + + ERROR_OBJECT_NOT_FOUND + ERROR_OBJECT_NOT_FOUND + + + + No documentation. + + + ERROR_DATABASE_FAILURE + ERROR_DATABASE_FAILURE + + + + No documentation. + + + ERROR_DATABASE_FULL + ERROR_DATABASE_FULL + + + + No documentation. + + + ERROR_MEDIA_INCOMPATIBLE + ERROR_MEDIA_INCOMPATIBLE + + + + No documentation. + + + ERROR_RESOURCE_NOT_PRESENT + ERROR_RESOURCE_NOT_PRESENT + + + + No documentation. + + + ERROR_INVALID_OPERATION + ERROR_INVALID_OPERATION + + + + No documentation. + + + ERROR_MEDIA_NOT_AVAILABLE + ERROR_MEDIA_NOT_AVAILABLE + + + + No documentation. + + + ERROR_DEVICE_NOT_AVAILABLE + ERROR_DEVICE_NOT_AVAILABLE + + + + No documentation. + + + ERROR_REQUEST_REFUSED + ERROR_REQUEST_REFUSED + + + + No documentation. + + + ERROR_INVALID_DRIVE_OBJECT + ERROR_INVALID_DRIVE_OBJECT + + + + No documentation. + + + ERROR_LIBRARY_FULL + ERROR_LIBRARY_FULL + + + + No documentation. + + + ERROR_MEDIUM_NOT_ACCESSIBLE + ERROR_MEDIUM_NOT_ACCESSIBLE + + + + No documentation. + + + ERROR_UNABLE_TO_LOAD_MEDIUM + ERROR_UNABLE_TO_LOAD_MEDIUM + + + + No documentation. + + + ERROR_UNABLE_TO_INVENTORY_DRIVE + ERROR_UNABLE_TO_INVENTORY_DRIVE + + + + No documentation. + + + ERROR_UNABLE_TO_INVENTORY_SLOT + ERROR_UNABLE_TO_INVENTORY_SLOT + + + + No documentation. + + + ERROR_UNABLE_TO_INVENTORY_TRANSPORT + ERROR_UNABLE_TO_INVENTORY_TRANSPORT + + + + No documentation. + + + ERROR_TRANSPORT_FULL + ERROR_TRANSPORT_FULL + + + + No documentation. + + + ERROR_CONTROLLING_IEPORT + ERROR_CONTROLLING_IEPORT + + + + No documentation. + + + ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA + ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA + + + + No documentation. + + + ERROR_CLEANER_SLOT_SET + ERROR_CLEANER_SLOT_SET + + + + No documentation. + + + ERROR_CLEANER_SLOT_NOT_SET + ERROR_CLEANER_SLOT_NOT_SET + + + + No documentation. + + + ERROR_CLEANER_CARTRIDGE_SPENT + ERROR_CLEANER_CARTRIDGE_SPENT + + + + No documentation. + + + ERROR_UNEXPECTED_OMID + ERROR_UNEXPECTED_OMID + + + + No documentation. + + + ERROR_CANT_DELETE_LAST_ITEM + ERROR_CANT_DELETE_LAST_ITEM + + + + No documentation. + + + ERROR_MESSAGE_EXCEEDS_MAX_SIZE + ERROR_MESSAGE_EXCEEDS_MAX_SIZE + + + + No documentation. + + + ERROR_VOLUME_CONTAINS_SYS_FILES + ERROR_VOLUME_CONTAINS_SYS_FILES + + + + No documentation. + + + ERROR_INDIGENOUS_TYPE + ERROR_INDIGENOUS_TYPE + + + + No documentation. + + + ERROR_NO_SUPPORTING_DRIVES + ERROR_NO_SUPPORTING_DRIVES + + + + No documentation. + + + ERROR_CLEANER_CARTRIDGE_INSTALLED + ERROR_CLEANER_CARTRIDGE_INSTALLED + + + + No documentation. + + + ERROR_IEPORT_FULL + ERROR_IEPORT_FULL + + + + No documentation. + + + ERROR_FILE_OFFLINE + ERROR_FILE_OFFLINE + + + + No documentation. + + + ERROR_REMOTE_STORAGE_NOT_ACTIVE + ERROR_REMOTE_STORAGE_NOT_ACTIVE + + + + No documentation. + + + ERROR_REMOTE_STORAGE_MEDIA_ERROR + ERROR_REMOTE_STORAGE_MEDIA_ERROR + + + + No documentation. + + + ERROR_NOT_A_REPARSE_POINT + ERROR_NOT_A_REPARSE_POINT + + + + No documentation. + + + ERROR_REPARSE_ATTRIBUTE_CONFLICT + ERROR_REPARSE_ATTRIBUTE_CONFLICT + + + + No documentation. + + + ERROR_INVALID_REPARSE_DATA + ERROR_INVALID_REPARSE_DATA + + + + No documentation. + + + ERROR_REPARSE_TAG_INVALID + ERROR_REPARSE_TAG_INVALID + + + + No documentation. + + + ERROR_REPARSE_TAG_MISMATCH + ERROR_REPARSE_TAG_MISMATCH + + + + No documentation. + + + ERROR_VOLUME_NOT_SIS_ENABLED + ERROR_VOLUME_NOT_SIS_ENABLED + + + + No documentation. + + + ERROR_DEPENDENT_RESOURCE_EXISTS + ERROR_DEPENDENT_RESOURCE_EXISTS + + + + No documentation. + + + ERROR_DEPENDENCY_NOT_FOUND + ERROR_DEPENDENCY_NOT_FOUND + + + + No documentation. + + + ERROR_DEPENDENCY_ALREADY_EXISTS + ERROR_DEPENDENCY_ALREADY_EXISTS + + + + No documentation. + + + ERROR_RESOURCE_NOT_ONLINE + ERROR_RESOURCE_NOT_ONLINE + + + + No documentation. + + + ERROR_HOST_NODE_NOT_AVAILABLE + ERROR_HOST_NODE_NOT_AVAILABLE + + + + No documentation. + + + ERROR_RESOURCE_NOT_AVAILABLE + ERROR_RESOURCE_NOT_AVAILABLE + + + + No documentation. + + + ERROR_RESOURCE_NOT_FOUND + ERROR_RESOURCE_NOT_FOUND + + + + No documentation. + + + ERROR_SHUTDOWN_CLUSTER + ERROR_SHUTDOWN_CLUSTER + + + + No documentation. + + + ERROR_CANT_EVICT_ACTIVE_NODE + ERROR_CANT_EVICT_ACTIVE_NODE + + + + No documentation. + + + ERROR_OBJECT_ALREADY_EXISTS + ERROR_OBJECT_ALREADY_EXISTS + + + + No documentation. + + + ERROR_OBJECT_IN_LIST + ERROR_OBJECT_IN_LIST + + + + No documentation. + + + ERROR_GROUP_NOT_AVAILABLE + ERROR_GROUP_NOT_AVAILABLE + + + + No documentation. + + + ERROR_GROUP_NOT_FOUND + ERROR_GROUP_NOT_FOUND + + + + No documentation. + + + ERROR_GROUP_NOT_ONLINE + ERROR_GROUP_NOT_ONLINE + + + + No documentation. + + + ERROR_HOST_NODE_NOT_RESOURCE_OWNER + ERROR_HOST_NODE_NOT_RESOURCE_OWNER + + + + No documentation. + + + ERROR_HOST_NODE_NOT_GROUP_OWNER + ERROR_HOST_NODE_NOT_GROUP_OWNER + + + + No documentation. + + + ERROR_RESMON_CREATE_FAILED + ERROR_RESMON_CREATE_FAILED + + + + No documentation. + + + ERROR_RESMON_ONLINE_FAILED + ERROR_RESMON_ONLINE_FAILED + + + + No documentation. + + + ERROR_RESOURCE_ONLINE + ERROR_RESOURCE_ONLINE + + + + No documentation. + + + ERROR_QUORUM_RESOURCE + ERROR_QUORUM_RESOURCE + + + + No documentation. + + + ERROR_NOT_QUORUM_CAPABLE + ERROR_NOT_QUORUM_CAPABLE + + + + No documentation. + + + ERROR_CLUSTER_SHUTTING_DOWN + ERROR_CLUSTER_SHUTTING_DOWN + + + + No documentation. + + + ERROR_INVALID_STATE + ERROR_INVALID_STATE + + + + No documentation. + + + ERROR_RESOURCE_PROPERTIES_STORED + ERROR_RESOURCE_PROPERTIES_STORED + + + + No documentation. + + + ERROR_NOT_QUORUM_CLASS + ERROR_NOT_QUORUM_CLASS + + + + No documentation. + + + ERROR_CORE_RESOURCE + ERROR_CORE_RESOURCE + + + + No documentation. + + + ERROR_QUORUM_RESOURCE_ONLINE_FAILED + ERROR_QUORUM_RESOURCE_ONLINE_FAILED + + + + No documentation. + + + ERROR_QUORUMLOG_OPEN_FAILED + ERROR_QUORUMLOG_OPEN_FAILED + + + + No documentation. + + + ERROR_CLUSTERLOG_CORRUPT + ERROR_CLUSTERLOG_CORRUPT + + + + No documentation. + + + ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE + ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE + + + + No documentation. + + + ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE + ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE + + + + No documentation. + + + ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND + ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE + ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE + + + + No documentation. + + + ERROR_QUORUM_OWNER_ALIVE + ERROR_QUORUM_OWNER_ALIVE + + + + No documentation. + + + ERROR_NETWORK_NOT_AVAILABLE + ERROR_NETWORK_NOT_AVAILABLE + + + + No documentation. + + + ERROR_NODE_NOT_AVAILABLE + ERROR_NODE_NOT_AVAILABLE + + + + No documentation. + + + ERROR_ALL_NODES_NOT_AVAILABLE + ERROR_ALL_NODES_NOT_AVAILABLE + + + + No documentation. + + + ERROR_RESOURCE_FAILED + ERROR_RESOURCE_FAILED + + + + No documentation. + + + ERROR_CLUSTER_INVALID_NODE + ERROR_CLUSTER_INVALID_NODE + + + + No documentation. + + + ERROR_CLUSTER_NODE_EXISTS + ERROR_CLUSTER_NODE_EXISTS + + + + No documentation. + + + ERROR_CLUSTER_JOIN_IN_PROGRESS + ERROR_CLUSTER_JOIN_IN_PROGRESS + + + + No documentation. + + + ERROR_CLUSTER_NODE_NOT_FOUND + ERROR_CLUSTER_NODE_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND + ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_EXISTS + ERROR_CLUSTER_NETWORK_EXISTS + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_NOT_FOUND + ERROR_CLUSTER_NETWORK_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_NETINTERFACE_EXISTS + ERROR_CLUSTER_NETINTERFACE_EXISTS + + + + No documentation. + + + ERROR_CLUSTER_NETINTERFACE_NOT_FOUND + ERROR_CLUSTER_NETINTERFACE_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_INVALID_REQUEST + ERROR_CLUSTER_INVALID_REQUEST + + + + No documentation. + + + ERROR_CLUSTER_INVALID_NETWORK_PROVIDER + ERROR_CLUSTER_INVALID_NETWORK_PROVIDER + + + + No documentation. + + + ERROR_CLUSTER_NODE_DOWN + ERROR_CLUSTER_NODE_DOWN + + + + No documentation. + + + ERROR_CLUSTER_NODE_UNREACHABLE + ERROR_CLUSTER_NODE_UNREACHABLE + + + + No documentation. + + + ERROR_CLUSTER_NODE_NOT_MEMBER + ERROR_CLUSTER_NODE_NOT_MEMBER + + + + No documentation. + + + ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS + ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS + + + + No documentation. + + + ERROR_CLUSTER_INVALID_NETWORK + ERROR_CLUSTER_INVALID_NETWORK + + + + No documentation. + + + ERROR_CLUSTER_NODE_UP + ERROR_CLUSTER_NODE_UP + + + + No documentation. + + + ERROR_CLUSTER_IPADDR_IN_USE + ERROR_CLUSTER_IPADDR_IN_USE + + + + No documentation. + + + ERROR_CLUSTER_NODE_NOT_PAUSED + ERROR_CLUSTER_NODE_NOT_PAUSED + + + + No documentation. + + + ERROR_CLUSTER_NO_SECURITY_CONTEXT + ERROR_CLUSTER_NO_SECURITY_CONTEXT + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_NOT_INTERNAL + ERROR_CLUSTER_NETWORK_NOT_INTERNAL + + + + No documentation. + + + ERROR_CLUSTER_NODE_ALREADY_UP + ERROR_CLUSTER_NODE_ALREADY_UP + + + + No documentation. + + + ERROR_CLUSTER_NODE_ALREADY_DOWN + ERROR_CLUSTER_NODE_ALREADY_DOWN + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_ALREADY_ONLINE + ERROR_CLUSTER_NETWORK_ALREADY_ONLINE + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE + ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE + + + + No documentation. + + + ERROR_CLUSTER_NODE_ALREADY_MEMBER + ERROR_CLUSTER_NODE_ALREADY_MEMBER + + + + No documentation. + + + ERROR_CLUSTER_LAST_INTERNAL_NETWORK + ERROR_CLUSTER_LAST_INTERNAL_NETWORK + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS + ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS + + + + No documentation. + + + ERROR_INVALID_OPERATION_ON_QUORUM + ERROR_INVALID_OPERATION_ON_QUORUM + + + + No documentation. + + + ERROR_DEPENDENCY_NOT_ALLOWED + ERROR_DEPENDENCY_NOT_ALLOWED + + + + No documentation. + + + ERROR_CLUSTER_NODE_PAUSED + ERROR_CLUSTER_NODE_PAUSED + + + + No documentation. + + + ERROR_NODE_CANT_HOST_RESOURCE + ERROR_NODE_CANT_HOST_RESOURCE + + + + No documentation. + + + ERROR_CLUSTER_NODE_NOT_READY + ERROR_CLUSTER_NODE_NOT_READY + + + + No documentation. + + + ERROR_CLUSTER_NODE_SHUTTING_DOWN + ERROR_CLUSTER_NODE_SHUTTING_DOWN + + + + No documentation. + + + ERROR_CLUSTER_JOIN_ABORTED + ERROR_CLUSTER_JOIN_ABORTED + + + + No documentation. + + + ERROR_CLUSTER_INCOMPATIBLE_VERSIONS + ERROR_CLUSTER_INCOMPATIBLE_VERSIONS + + + + No documentation. + + + ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED + ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED + + + + No documentation. + + + ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED + ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED + + + + No documentation. + + + ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND + ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED + ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED + + + + No documentation. + + + ERROR_CLUSTER_RESNAME_NOT_FOUND + ERROR_CLUSTER_RESNAME_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED + ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED + + + + No documentation. + + + ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST + ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST + + + + No documentation. + + + ERROR_CLUSTER_DATABASE_SEQMISMATCH + ERROR_CLUSTER_DATABASE_SEQMISMATCH + + + + No documentation. + + + ERROR_RESMON_INVALID_STATE + ERROR_RESMON_INVALID_STATE + + + + No documentation. + + + ERROR_CLUSTER_GUM_NOT_LOCKER + ERROR_CLUSTER_GUM_NOT_LOCKER + + + + No documentation. + + + ERROR_QUORUM_DISK_NOT_FOUND + ERROR_QUORUM_DISK_NOT_FOUND + + + + No documentation. + + + ERROR_DATABASE_BACKUP_CORRUPT + ERROR_DATABASE_BACKUP_CORRUPT + + + + No documentation. + + + ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT + ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT + + + + No documentation. + + + ERROR_RESOURCE_PROPERTY_UNCHANGEABLE + ERROR_RESOURCE_PROPERTY_UNCHANGEABLE + + + + No documentation. + + + ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE + ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE + + + + No documentation. + + + ERROR_CLUSTER_QUORUMLOG_NOT_FOUND + ERROR_CLUSTER_QUORUMLOG_NOT_FOUND + + + + No documentation. + + + ERROR_CLUSTER_MEMBERSHIP_HALT + ERROR_CLUSTER_MEMBERSHIP_HALT + + + + No documentation. + + + ERROR_CLUSTER_INSTANCE_ID_MISMATCH + ERROR_CLUSTER_INSTANCE_ID_MISMATCH + + + + No documentation. + + + ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP + ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP + + + + No documentation. + + + ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH + ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH + + + + No documentation. + + + ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP + ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP + + + + No documentation. + + + ERROR_CLUSTER_PARAMETER_MISMATCH + ERROR_CLUSTER_PARAMETER_MISMATCH + + + + No documentation. + + + ERROR_NODE_CANNOT_BE_CLUSTERED + ERROR_NODE_CANNOT_BE_CLUSTERED + + + + No documentation. + + + ERROR_CLUSTER_WRONG_OS_VERSION + ERROR_CLUSTER_WRONG_OS_VERSION + + + + No documentation. + + + ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME + ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME + + + + No documentation. + + + ERROR_CLUSCFG_ALREADY_COMMITTED + ERROR_CLUSCFG_ALREADY_COMMITTED + + + + No documentation. + + + ERROR_CLUSCFG_ROLLBACK_FAILED + ERROR_CLUSCFG_ROLLBACK_FAILED + + + + No documentation. + + + ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT + ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT + + + + No documentation. + + + ERROR_CLUSTER_OLD_VERSION + ERROR_CLUSTER_OLD_VERSION + + + + No documentation. + + + ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME + ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME + + + + No documentation. + + + ERROR_CLUSTER_NO_NET_ADAPTERS + ERROR_CLUSTER_NO_NET_ADAPTERS + + + + No documentation. + + + ERROR_CLUSTER_POISONED + ERROR_CLUSTER_POISONED + + + + No documentation. + + + ERROR_CLUSTER_GROUP_MOVING + ERROR_CLUSTER_GROUP_MOVING + + + + No documentation. + + + ERROR_CLUSTER_RESOURCE_TYPE_BUSY + ERROR_CLUSTER_RESOURCE_TYPE_BUSY + + + + No documentation. + + + ERROR_RESOURCE_CALL_TIMED_OUT + ERROR_RESOURCE_CALL_TIMED_OUT + + + + No documentation. + + + ERROR_INVALID_CLUSTER_IPV6_ADDRESS + ERROR_INVALID_CLUSTER_IPV6_ADDRESS + + + + No documentation. + + + ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION + ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION + + + + No documentation. + + + ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS + ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS + + + + No documentation. + + + ERROR_CLUSTER_PARTIAL_SEND + ERROR_CLUSTER_PARTIAL_SEND + + + + No documentation. + + + ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION + ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION + + + + No documentation. + + + ERROR_CLUSTER_INVALID_STRING_TERMINATION + ERROR_CLUSTER_INVALID_STRING_TERMINATION + + + + No documentation. + + + ERROR_CLUSTER_INVALID_STRING_FORMAT + ERROR_CLUSTER_INVALID_STRING_FORMAT + + + + No documentation. + + + ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS + ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS + + + + No documentation. + + + ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS + ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS + + + + No documentation. + + + ERROR_CLUSTER_NULL_DATA + ERROR_CLUSTER_NULL_DATA + + + + No documentation. + + + ERROR_CLUSTER_PARTIAL_READ + ERROR_CLUSTER_PARTIAL_READ + + + + No documentation. + + + ERROR_CLUSTER_PARTIAL_WRITE + ERROR_CLUSTER_PARTIAL_WRITE + + + + No documentation. + + + ERROR_CLUSTER_CANT_DESERIALIZE_DATA + ERROR_CLUSTER_CANT_DESERIALIZE_DATA + + + + No documentation. + + + ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT + ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT + + + + No documentation. + + + ERROR_CLUSTER_NO_QUORUM + ERROR_CLUSTER_NO_QUORUM + + + + No documentation. + + + ERROR_CLUSTER_INVALID_IPV6_NETWORK + ERROR_CLUSTER_INVALID_IPV6_NETWORK + + + + No documentation. + + + ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK + ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK + + + + No documentation. + + + ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP + ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP + + + + No documentation. + + + ERROR_DEPENDENCY_TREE_TOO_COMPLEX + ERROR_DEPENDENCY_TREE_TOO_COMPLEX + + + + No documentation. + + + ERROR_EXCEPTION_IN_RESOURCE_CALL + ERROR_EXCEPTION_IN_RESOURCE_CALL + + + + No documentation. + + + ERROR_CLUSTER_RHS_FAILED_INITIALIZATION + ERROR_CLUSTER_RHS_FAILED_INITIALIZATION + + + + No documentation. + + + ERROR_CLUSTER_NOT_INSTALLED + ERROR_CLUSTER_NOT_INSTALLED + + + + No documentation. + + + ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE + ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE + + + + No documentation. + + + ERROR_CLUSTER_MAX_NODES_IN_CLUSTER + ERROR_CLUSTER_MAX_NODES_IN_CLUSTER + + + + No documentation. + + + ERROR_CLUSTER_TOO_MANY_NODES + ERROR_CLUSTER_TOO_MANY_NODES + + + + No documentation. + + + ERROR_CLUSTER_OBJECT_ALREADY_USED + ERROR_CLUSTER_OBJECT_ALREADY_USED + + + + No documentation. + + + ERROR_NONCORE_GROUPS_FOUND + ERROR_NONCORE_GROUPS_FOUND + + + + No documentation. + + + ERROR_FILE_SHARE_RESOURCE_CONFLICT + ERROR_FILE_SHARE_RESOURCE_CONFLICT + + + + No documentation. + + + ERROR_CLUSTER_EVICT_INVALID_REQUEST + ERROR_CLUSTER_EVICT_INVALID_REQUEST + + + + No documentation. + + + ERROR_CLUSTER_SINGLETON_RESOURCE + ERROR_CLUSTER_SINGLETON_RESOURCE + + + + No documentation. + + + ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE + ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE + + + + No documentation. + + + ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED + ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED + + + + No documentation. + + + ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR + ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR + + + + No documentation. + + + ERROR_CLUSTER_GROUP_BUSY + ERROR_CLUSTER_GROUP_BUSY + + + + No documentation. + + + ERROR_CLUSTER_NOT_SHARED_VOLUME + ERROR_CLUSTER_NOT_SHARED_VOLUME + + + + No documentation. + + + ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR + ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR + + + + No documentation. + + + ERROR_CLUSTER_SHARED_VOLUMES_IN_USE + ERROR_CLUSTER_SHARED_VOLUMES_IN_USE + + + + No documentation. + + + ERROR_CLUSTER_USE_SHARED_VOLUMES_API + ERROR_CLUSTER_USE_SHARED_VOLUMES_API + + + + No documentation. + + + ERROR_CLUSTER_BACKUP_IN_PROGRESS + ERROR_CLUSTER_BACKUP_IN_PROGRESS + + + + No documentation. + + + ERROR_NON_CSV_PATH + ERROR_NON_CSV_PATH + + + + No documentation. + + + ERROR_CSV_VOLUME_NOT_LOCAL + ERROR_CSV_VOLUME_NOT_LOCAL + + + + No documentation. + + + ERROR_CLUSTER_WATCHDOG_TERMINATING + ERROR_CLUSTER_WATCHDOG_TERMINATING + + + + No documentation. + + + ERROR_ENCRYPTION_FAILED + ERROR_ENCRYPTION_FAILED + + + + No documentation. + + + ERROR_DECRYPTION_FAILED + ERROR_DECRYPTION_FAILED + + + + No documentation. + + + ERROR_FILE_ENCRYPTED + ERROR_FILE_ENCRYPTED + + + + No documentation. + + + ERROR_NO_RECOVERY_POLICY + ERROR_NO_RECOVERY_POLICY + + + + No documentation. + + + ERROR_NO_EFS + ERROR_NO_EFS + + + + No documentation. + + + ERROR_WRONG_EFS + ERROR_WRONG_EFS + + + + No documentation. + + + ERROR_NO_USER_KEYS + ERROR_NO_USER_KEYS + + + + No documentation. + + + ERROR_FILE_NOT_ENCRYPTED + ERROR_FILE_NOT_ENCRYPTED + + + + No documentation. + + + ERROR_NOT_EXPORT_FORMAT + ERROR_NOT_EXPORT_FORMAT + + + + No documentation. + + + ERROR_FILE_READ_ONLY + ERROR_FILE_READ_ONLY + + + + No documentation. + + + ERROR_DIR_EFS_DISALLOWED + ERROR_DIR_EFS_DISALLOWED + + + + No documentation. + + + ERROR_EFS_SERVER_NOT_TRUSTED + ERROR_EFS_SERVER_NOT_TRUSTED + + + + No documentation. + + + ERROR_BAD_RECOVERY_POLICY + ERROR_BAD_RECOVERY_POLICY + + + + No documentation. + + + ERROR_EFS_ALG_BLOB_TOO_BIG + ERROR_EFS_ALG_BLOB_TOO_BIG + + + + No documentation. + + + ERROR_VOLUME_NOT_SUPPORT_EFS + ERROR_VOLUME_NOT_SUPPORT_EFS + + + + No documentation. + + + ERROR_EFS_DISABLED + ERROR_EFS_DISABLED + + + + No documentation. + + + ERROR_EFS_VERSION_NOT_SUPPORT + ERROR_EFS_VERSION_NOT_SUPPORT + + + + No documentation. + + + ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE + ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE + + + + No documentation. + + + ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER + ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER + + + + No documentation. + + + ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE + ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE + + + + No documentation. + + + ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE + ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE + + + + No documentation. + + + ERROR_CS_ENCRYPTION_FILE_NOT_CSE + ERROR_CS_ENCRYPTION_FILE_NOT_CSE + + + + No documentation. + + + ERROR_ENCRYPTION_POLICY_DENIES_OPERATION + ERROR_ENCRYPTION_POLICY_DENIES_OPERATION + + + + No documentation. + + + ERROR_NO_BROWSER_SERVERS_FOUND + ERROR_NO_BROWSER_SERVERS_FOUND + + + + No documentation. + + + ERROR_LOG_SECTOR_INVALID + ERROR_LOG_SECTOR_INVALID + + + + No documentation. + + + ERROR_LOG_SECTOR_PARITY_INVALID + ERROR_LOG_SECTOR_PARITY_INVALID + + + + No documentation. + + + ERROR_LOG_SECTOR_REMAPPED + ERROR_LOG_SECTOR_REMAPPED + + + + No documentation. + + + ERROR_LOG_BLOCK_INCOMPLETE + ERROR_LOG_BLOCK_INCOMPLETE + + + + No documentation. + + + ERROR_LOG_INVALID_RANGE + ERROR_LOG_INVALID_RANGE + + + + No documentation. + + + ERROR_LOG_BLOCKS_EXHAUSTED + ERROR_LOG_BLOCKS_EXHAUSTED + + + + No documentation. + + + ERROR_LOG_READ_CONTEXT_INVALID + ERROR_LOG_READ_CONTEXT_INVALID + + + + No documentation. + + + ERROR_LOG_RESTART_INVALID + ERROR_LOG_RESTART_INVALID + + + + No documentation. + + + ERROR_LOG_BLOCK_VERSION + ERROR_LOG_BLOCK_VERSION + + + + No documentation. + + + ERROR_LOG_BLOCK_INVALID + ERROR_LOG_BLOCK_INVALID + + + + No documentation. + + + ERROR_LOG_READ_MODE_INVALID + ERROR_LOG_READ_MODE_INVALID + + + + No documentation. + + + ERROR_LOG_NO_RESTART + ERROR_LOG_NO_RESTART + + + + No documentation. + + + ERROR_LOG_METADATA_CORRUPT + ERROR_LOG_METADATA_CORRUPT + + + + No documentation. + + + ERROR_LOG_METADATA_INVALID + ERROR_LOG_METADATA_INVALID + + + + No documentation. + + + ERROR_LOG_METADATA_INCONSISTENT + ERROR_LOG_METADATA_INCONSISTENT + + + + No documentation. + + + ERROR_LOG_RESERVATION_INVALID + ERROR_LOG_RESERVATION_INVALID + + + + No documentation. + + + ERROR_LOG_CANT_DELETE + ERROR_LOG_CANT_DELETE + + + + No documentation. + + + ERROR_LOG_CONTAINER_LIMIT_EXCEEDED + ERROR_LOG_CONTAINER_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_LOG_START_OF_LOG + ERROR_LOG_START_OF_LOG + + + + No documentation. + + + ERROR_LOG_POLICY_ALREADY_INSTALLED + ERROR_LOG_POLICY_ALREADY_INSTALLED + + + + No documentation. + + + ERROR_LOG_POLICY_NOT_INSTALLED + ERROR_LOG_POLICY_NOT_INSTALLED + + + + No documentation. + + + ERROR_LOG_POLICY_INVALID + ERROR_LOG_POLICY_INVALID + + + + No documentation. + + + ERROR_LOG_POLICY_CONFLICT + ERROR_LOG_POLICY_CONFLICT + + + + No documentation. + + + ERROR_LOG_PINNED_ARCHIVE_TAIL + ERROR_LOG_PINNED_ARCHIVE_TAIL + + + + No documentation. + + + ERROR_LOG_RECORD_NONEXISTENT + ERROR_LOG_RECORD_NONEXISTENT + + + + No documentation. + + + ERROR_LOG_RECORDS_RESERVED_INVALID + ERROR_LOG_RECORDS_RESERVED_INVALID + + + + No documentation. + + + ERROR_LOG_SPACE_RESERVED_INVALID + ERROR_LOG_SPACE_RESERVED_INVALID + + + + No documentation. + + + ERROR_LOG_TAIL_INVALID + ERROR_LOG_TAIL_INVALID + + + + No documentation. + + + ERROR_LOG_FULL + ERROR_LOG_FULL + + + + No documentation. + + + ERROR_COULD_NOT_RESIZE_LOG + ERROR_COULD_NOT_RESIZE_LOG + + + + No documentation. + + + ERROR_LOG_MULTIPLEXED + ERROR_LOG_MULTIPLEXED + + + + No documentation. + + + ERROR_LOG_DEDICATED + ERROR_LOG_DEDICATED + + + + No documentation. + + + ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS + ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS + + + + No documentation. + + + ERROR_LOG_ARCHIVE_IN_PROGRESS + ERROR_LOG_ARCHIVE_IN_PROGRESS + + + + No documentation. + + + ERROR_LOG_EPHEMERAL + ERROR_LOG_EPHEMERAL + + + + No documentation. + + + ERROR_LOG_NOT_ENOUGH_CONTAINERS + ERROR_LOG_NOT_ENOUGH_CONTAINERS + + + + No documentation. + + + ERROR_LOG_CLIENT_ALREADY_REGISTERED + ERROR_LOG_CLIENT_ALREADY_REGISTERED + + + + No documentation. + + + ERROR_LOG_CLIENT_NOT_REGISTERED + ERROR_LOG_CLIENT_NOT_REGISTERED + + + + No documentation. + + + ERROR_LOG_FULL_HANDLER_IN_PROGRESS + ERROR_LOG_FULL_HANDLER_IN_PROGRESS + + + + No documentation. + + + ERROR_LOG_CONTAINER_READ_FAILED + ERROR_LOG_CONTAINER_READ_FAILED + + + + No documentation. + + + ERROR_LOG_CONTAINER_WRITE_FAILED + ERROR_LOG_CONTAINER_WRITE_FAILED + + + + No documentation. + + + ERROR_LOG_CONTAINER_OPEN_FAILED + ERROR_LOG_CONTAINER_OPEN_FAILED + + + + No documentation. + + + ERROR_LOG_CONTAINER_STATE_INVALID + ERROR_LOG_CONTAINER_STATE_INVALID + + + + No documentation. + + + ERROR_LOG_STATE_INVALID + ERROR_LOG_STATE_INVALID + + + + No documentation. + + + ERROR_LOG_PINNED + ERROR_LOG_PINNED + + + + No documentation. + + + ERROR_LOG_METADATA_FLUSH_FAILED + ERROR_LOG_METADATA_FLUSH_FAILED + + + + No documentation. + + + ERROR_LOG_INCONSISTENT_SECURITY + ERROR_LOG_INCONSISTENT_SECURITY + + + + No documentation. + + + ERROR_LOG_APPENDED_FLUSH_FAILED + ERROR_LOG_APPENDED_FLUSH_FAILED + + + + No documentation. + + + ERROR_LOG_PINNED_RESERVATION + ERROR_LOG_PINNED_RESERVATION + + + + No documentation. + + + ERROR_INVALID_TRANSACTION + ERROR_INVALID_TRANSACTION + + + + No documentation. + + + ERROR_TRANSACTION_NOT_ACTIVE + ERROR_TRANSACTION_NOT_ACTIVE + + + + No documentation. + + + ERROR_TRANSACTION_REQUEST_NOT_VALID + ERROR_TRANSACTION_REQUEST_NOT_VALID + + + + No documentation. + + + ERROR_TRANSACTION_NOT_REQUESTED + ERROR_TRANSACTION_NOT_REQUESTED + + + + No documentation. + + + ERROR_TRANSACTION_ALREADY_ABORTED + ERROR_TRANSACTION_ALREADY_ABORTED + + + + No documentation. + + + ERROR_TRANSACTION_ALREADY_COMMITTED + ERROR_TRANSACTION_ALREADY_COMMITTED + + + + No documentation. + + + ERROR_TM_INITIALIZATION_FAILED + ERROR_TM_INITIALIZATION_FAILED + + + + No documentation. + + + ERROR_RESOURCEMANAGER_READ_ONLY + ERROR_RESOURCEMANAGER_READ_ONLY + + + + No documentation. + + + ERROR_TRANSACTION_NOT_JOINED + ERROR_TRANSACTION_NOT_JOINED + + + + No documentation. + + + ERROR_TRANSACTION_SUPERIOR_EXISTS + ERROR_TRANSACTION_SUPERIOR_EXISTS + + + + No documentation. + + + ERROR_CRM_PROTOCOL_ALREADY_EXISTS + ERROR_CRM_PROTOCOL_ALREADY_EXISTS + + + + No documentation. + + + ERROR_TRANSACTION_PROPAGATION_FAILED + ERROR_TRANSACTION_PROPAGATION_FAILED + + + + No documentation. + + + ERROR_CRM_PROTOCOL_NOT_FOUND + ERROR_CRM_PROTOCOL_NOT_FOUND + + + + No documentation. + + + ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER + ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER + + + + No documentation. + + + ERROR_CURRENT_TRANSACTION_NOT_VALID + ERROR_CURRENT_TRANSACTION_NOT_VALID + + + + No documentation. + + + ERROR_TRANSACTION_NOT_FOUND + ERROR_TRANSACTION_NOT_FOUND + + + + No documentation. + + + ERROR_RESOURCEMANAGER_NOT_FOUND + ERROR_RESOURCEMANAGER_NOT_FOUND + + + + No documentation. + + + ERROR_ENLISTMENT_NOT_FOUND + ERROR_ENLISTMENT_NOT_FOUND + + + + No documentation. + + + ERROR_TRANSACTIONMANAGER_NOT_FOUND + ERROR_TRANSACTIONMANAGER_NOT_FOUND + + + + No documentation. + + + ERROR_TRANSACTIONMANAGER_NOT_ONLINE + ERROR_TRANSACTIONMANAGER_NOT_ONLINE + + + + No documentation. + + + ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION + ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION + + + + No documentation. + + + ERROR_TRANSACTION_NOT_ROOT + ERROR_TRANSACTION_NOT_ROOT + + + + No documentation. + + + ERROR_TRANSACTION_OBJECT_EXPIRED + ERROR_TRANSACTION_OBJECT_EXPIRED + + + + No documentation. + + + ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED + ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED + + + + No documentation. + + + ERROR_TRANSACTION_RECORD_TOO_LONG + ERROR_TRANSACTION_RECORD_TOO_LONG + + + + No documentation. + + + ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED + ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED + + + + No documentation. + + + ERROR_TRANSACTION_INTEGRITY_VIOLATED + ERROR_TRANSACTION_INTEGRITY_VIOLATED + + + + No documentation. + + + ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH + ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH + + + + No documentation. + + + ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT + ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT + + + + No documentation. + + + ERROR_TRANSACTION_MUST_WRITETHROUGH + ERROR_TRANSACTION_MUST_WRITETHROUGH + + + + No documentation. + + + ERROR_TRANSACTION_NO_SUPERIOR + ERROR_TRANSACTION_NO_SUPERIOR + + + + No documentation. + + + ERROR_HEURISTIC_DAMAGE_POSSIBLE + ERROR_HEURISTIC_DAMAGE_POSSIBLE + + + + No documentation. + + + ERROR_TRANSACTIONAL_CONFLICT + ERROR_TRANSACTIONAL_CONFLICT + + + + No documentation. + + + ERROR_RM_NOT_ACTIVE + ERROR_RM_NOT_ACTIVE + + + + No documentation. + + + ERROR_RM_METADATA_CORRUPT + ERROR_RM_METADATA_CORRUPT + + + + No documentation. + + + ERROR_DIRECTORY_NOT_RM + ERROR_DIRECTORY_NOT_RM + + + + No documentation. + + + ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE + ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE + + + + No documentation. + + + ERROR_LOG_RESIZE_INVALID_SIZE + ERROR_LOG_RESIZE_INVALID_SIZE + + + + No documentation. + + + ERROR_OBJECT_NO_LONGER_EXISTS + ERROR_OBJECT_NO_LONGER_EXISTS + + + + No documentation. + + + ERROR_STREAM_MINIVERSION_NOT_FOUND + ERROR_STREAM_MINIVERSION_NOT_FOUND + + + + No documentation. + + + ERROR_STREAM_MINIVERSION_NOT_VALID + ERROR_STREAM_MINIVERSION_NOT_VALID + + + + No documentation. + + + ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION + ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION + + + + No documentation. + + + ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT + ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT + + + + No documentation. + + + ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS + ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS + + + + No documentation. + + + ERROR_REMOTE_FILE_VERSION_MISMATCH + ERROR_REMOTE_FILE_VERSION_MISMATCH + + + + No documentation. + + + ERROR_HANDLE_NO_LONGER_VALID + ERROR_HANDLE_NO_LONGER_VALID + + + + No documentation. + + + ERROR_NO_TXF_METADATA + ERROR_NO_TXF_METADATA + + + + No documentation. + + + ERROR_LOG_CORRUPTION_DETECTED + ERROR_LOG_CORRUPTION_DETECTED + + + + No documentation. + + + ERROR_CANT_RECOVER_WITH_HANDLE_OPEN + ERROR_CANT_RECOVER_WITH_HANDLE_OPEN + + + + No documentation. + + + ERROR_RM_DISCONNECTED + ERROR_RM_DISCONNECTED + + + + No documentation. + + + ERROR_ENLISTMENT_NOT_SUPERIOR + ERROR_ENLISTMENT_NOT_SUPERIOR + + + + No documentation. + + + ERROR_RECOVERY_NOT_NEEDED + ERROR_RECOVERY_NOT_NEEDED + + + + No documentation. + + + ERROR_RM_ALREADY_STARTED + ERROR_RM_ALREADY_STARTED + + + + No documentation. + + + ERROR_FILE_IDENTITY_NOT_PERSISTENT + ERROR_FILE_IDENTITY_NOT_PERSISTENT + + + + No documentation. + + + ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY + ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY + + + + No documentation. + + + ERROR_CANT_CROSS_RM_BOUNDARY + ERROR_CANT_CROSS_RM_BOUNDARY + + + + No documentation. + + + ERROR_TXF_DIR_NOT_EMPTY + ERROR_TXF_DIR_NOT_EMPTY + + + + No documentation. + + + ERROR_INDOUBT_TRANSACTIONS_EXIST + ERROR_INDOUBT_TRANSACTIONS_EXIST + + + + No documentation. + + + ERROR_TM_VOLATILE + ERROR_TM_VOLATILE + + + + No documentation. + + + ERROR_ROLLBACK_TIMER_EXPIRED + ERROR_ROLLBACK_TIMER_EXPIRED + + + + No documentation. + + + ERROR_TXF_ATTRIBUTE_CORRUPT + ERROR_TXF_ATTRIBUTE_CORRUPT + + + + No documentation. + + + ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION + ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION + + + + No documentation. + + + ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED + ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED + + + + No documentation. + + + ERROR_LOG_GROWTH_FAILED + ERROR_LOG_GROWTH_FAILED + + + + No documentation. + + + ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE + ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE + + + + No documentation. + + + ERROR_TXF_METADATA_ALREADY_PRESENT + ERROR_TXF_METADATA_ALREADY_PRESENT + + + + No documentation. + + + ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET + ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET + + + + No documentation. + + + ERROR_TRANSACTION_REQUIRED_PROMOTION + ERROR_TRANSACTION_REQUIRED_PROMOTION + + + + No documentation. + + + ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION + ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION + + + + No documentation. + + + ERROR_TRANSACTIONS_NOT_FROZEN + ERROR_TRANSACTIONS_NOT_FROZEN + + + + No documentation. + + + ERROR_TRANSACTION_FREEZE_IN_PROGRESS + ERROR_TRANSACTION_FREEZE_IN_PROGRESS + + + + No documentation. + + + ERROR_NOT_SNAPSHOT_VOLUME + ERROR_NOT_SNAPSHOT_VOLUME + + + + No documentation. + + + ERROR_NO_SAVEPOINT_WITH_OPEN_FILES + ERROR_NO_SAVEPOINT_WITH_OPEN_FILES + + + + No documentation. + + + ERROR_DATA_LOST_REPAIR + ERROR_DATA_LOST_REPAIR + + + + No documentation. + + + ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION + ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION + + + + No documentation. + + + ERROR_TM_IDENTITY_MISMATCH + ERROR_TM_IDENTITY_MISMATCH + + + + No documentation. + + + ERROR_FLOATED_SECTION + ERROR_FLOATED_SECTION + + + + No documentation. + + + ERROR_CANNOT_ACCEPT_TRANSACTED_WORK + ERROR_CANNOT_ACCEPT_TRANSACTED_WORK + + + + No documentation. + + + ERROR_CANNOT_ABORT_TRANSACTIONS + ERROR_CANNOT_ABORT_TRANSACTIONS + + + + No documentation. + + + ERROR_BAD_CLUSTERS + ERROR_BAD_CLUSTERS + + + + No documentation. + + + ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION + ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION + + + + No documentation. + + + ERROR_VOLUME_DIRTY + ERROR_VOLUME_DIRTY + + + + No documentation. + + + ERROR_NO_LINK_TRACKING_IN_TRANSACTION + ERROR_NO_LINK_TRACKING_IN_TRANSACTION + + + + No documentation. + + + ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION + ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION + + + + No documentation. + + + ERROR_EXPIRED_HANDLE + ERROR_EXPIRED_HANDLE + + + + No documentation. + + + ERROR_TRANSACTION_NOT_ENLISTED + ERROR_TRANSACTION_NOT_ENLISTED + + + + No documentation. + + + ERROR_CTX_WINSTATION_NAME_INVALID + ERROR_CTX_WINSTATION_NAME_INVALID + + + + No documentation. + + + ERROR_CTX_INVALID_PD + ERROR_CTX_INVALID_PD + + + + No documentation. + + + ERROR_CTX_PD_NOT_FOUND + ERROR_CTX_PD_NOT_FOUND + + + + No documentation. + + + ERROR_CTX_WD_NOT_FOUND + ERROR_CTX_WD_NOT_FOUND + + + + No documentation. + + + ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY + ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY + + + + No documentation. + + + ERROR_CTX_SERVICE_NAME_COLLISION + ERROR_CTX_SERVICE_NAME_COLLISION + + + + No documentation. + + + ERROR_CTX_CLOSE_PENDING + ERROR_CTX_CLOSE_PENDING + + + + No documentation. + + + ERROR_CTX_NO_OUTBUF + ERROR_CTX_NO_OUTBUF + + + + No documentation. + + + ERROR_CTX_MODEM_INF_NOT_FOUND + ERROR_CTX_MODEM_INF_NOT_FOUND + + + + No documentation. + + + ERROR_CTX_INVALID_MODEMNAME + ERROR_CTX_INVALID_MODEMNAME + + + + No documentation. + + + ERROR_CTX_MODEM_RESPONSE_ERROR + ERROR_CTX_MODEM_RESPONSE_ERROR + + + + No documentation. + + + ERROR_CTX_MODEM_RESPONSE_TIMEOUT + ERROR_CTX_MODEM_RESPONSE_TIMEOUT + + + + No documentation. + + + ERROR_CTX_MODEM_RESPONSE_NO_CARRIER + ERROR_CTX_MODEM_RESPONSE_NO_CARRIER + + + + No documentation. + + + ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE + ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE + + + + No documentation. + + + ERROR_CTX_MODEM_RESPONSE_BUSY + ERROR_CTX_MODEM_RESPONSE_BUSY + + + + No documentation. + + + ERROR_CTX_MODEM_RESPONSE_VOICE + ERROR_CTX_MODEM_RESPONSE_VOICE + + + + No documentation. + + + ERROR_CTX_TD_ERROR + ERROR_CTX_TD_ERROR + + + + No documentation. + + + ERROR_CTX_WINSTATION_NOT_FOUND + ERROR_CTX_WINSTATION_NOT_FOUND + + + + No documentation. + + + ERROR_CTX_WINSTATION_ALREADY_EXISTS + ERROR_CTX_WINSTATION_ALREADY_EXISTS + + + + No documentation. + + + ERROR_CTX_WINSTATION_BUSY + ERROR_CTX_WINSTATION_BUSY + + + + No documentation. + + + ERROR_CTX_BAD_VIDEO_MODE + ERROR_CTX_BAD_VIDEO_MODE + + + + No documentation. + + + ERROR_CTX_GRAPHICS_INVALID + ERROR_CTX_GRAPHICS_INVALID + + + + No documentation. + + + ERROR_CTX_LOGON_DISABLED + ERROR_CTX_LOGON_DISABLED + + + + No documentation. + + + ERROR_CTX_NOT_CONSOLE + ERROR_CTX_NOT_CONSOLE + + + + No documentation. + + + ERROR_CTX_CLIENT_QUERY_TIMEOUT + ERROR_CTX_CLIENT_QUERY_TIMEOUT + + + + No documentation. + + + ERROR_CTX_CONSOLE_DISCONNECT + ERROR_CTX_CONSOLE_DISCONNECT + + + + No documentation. + + + ERROR_CTX_CONSOLE_CONNECT + ERROR_CTX_CONSOLE_CONNECT + + + + No documentation. + + + ERROR_CTX_SHADOW_DENIED + ERROR_CTX_SHADOW_DENIED + + + + No documentation. + + + ERROR_CTX_WINSTATION_ACCESS_DENIED + ERROR_CTX_WINSTATION_ACCESS_DENIED + + + + No documentation. + + + ERROR_CTX_INVALID_WD + ERROR_CTX_INVALID_WD + + + + No documentation. + + + ERROR_CTX_SHADOW_INVALID + ERROR_CTX_SHADOW_INVALID + + + + No documentation. + + + ERROR_CTX_SHADOW_DISABLED + ERROR_CTX_SHADOW_DISABLED + + + + No documentation. + + + ERROR_CTX_CLIENT_LICENSE_IN_USE + ERROR_CTX_CLIENT_LICENSE_IN_USE + + + + No documentation. + + + ERROR_CTX_CLIENT_LICENSE_NOT_SET + ERROR_CTX_CLIENT_LICENSE_NOT_SET + + + + No documentation. + + + ERROR_CTX_LICENSE_NOT_AVAILABLE + ERROR_CTX_LICENSE_NOT_AVAILABLE + + + + No documentation. + + + ERROR_CTX_LICENSE_CLIENT_INVALID + ERROR_CTX_LICENSE_CLIENT_INVALID + + + + No documentation. + + + ERROR_CTX_LICENSE_EXPIRED + ERROR_CTX_LICENSE_EXPIRED + + + + No documentation. + + + ERROR_CTX_SHADOW_NOT_RUNNING + ERROR_CTX_SHADOW_NOT_RUNNING + + + + No documentation. + + + ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE + ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE + + + + No documentation. + + + ERROR_ACTIVATION_COUNT_EXCEEDED + ERROR_ACTIVATION_COUNT_EXCEEDED + + + + No documentation. + + + ERROR_CTX_WINSTATIONS_DISABLED + ERROR_CTX_WINSTATIONS_DISABLED + + + + No documentation. + + + ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED + ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED + + + + No documentation. + + + ERROR_CTX_SESSION_IN_USE + ERROR_CTX_SESSION_IN_USE + + + + No documentation. + + + ERROR_CTX_NO_FORCE_LOGOFF + ERROR_CTX_NO_FORCE_LOGOFF + + + + No documentation. + + + ERROR_CTX_ACCOUNT_RESTRICTION + ERROR_CTX_ACCOUNT_RESTRICTION + + + + No documentation. + + + ERROR_RDP_PROTOCOL_ERROR + ERROR_RDP_PROTOCOL_ERROR + + + + No documentation. + + + ERROR_CTX_CDM_CONNECT + ERROR_CTX_CDM_CONNECT + + + + No documentation. + + + ERROR_CTX_CDM_DISCONNECT + ERROR_CTX_CDM_DISCONNECT + + + + No documentation. + + + ERROR_CTX_SECURITY_LAYER_ERROR + ERROR_CTX_SECURITY_LAYER_ERROR + + + + No documentation. + + + ERROR_TS_INCOMPATIBLE_SESSIONS + ERROR_TS_INCOMPATIBLE_SESSIONS + + + + No documentation. + + + ERROR_TS_VIDEO_SUBSYSTEM_ERROR + ERROR_TS_VIDEO_SUBSYSTEM_ERROR + + + + No documentation. + + + ERROR_DS_NOT_INSTALLED + ERROR_DS_NOT_INSTALLED + + + + No documentation. + + + ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY + ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY + + + + No documentation. + + + ERROR_DS_NO_ATTRIBUTE_OR_VALUE + ERROR_DS_NO_ATTRIBUTE_OR_VALUE + + + + No documentation. + + + ERROR_DS_INVALID_ATTRIBUTE_SYNTAX + ERROR_DS_INVALID_ATTRIBUTE_SYNTAX + + + + No documentation. + + + ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED + ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED + + + + No documentation. + + + ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS + ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS + + + + No documentation. + + + ERROR_DS_BUSY + ERROR_DS_BUSY + + + + No documentation. + + + ERROR_DS_UNAVAILABLE + ERROR_DS_UNAVAILABLE + + + + No documentation. + + + ERROR_DS_NO_RIDS_ALLOCATED + ERROR_DS_NO_RIDS_ALLOCATED + + + + No documentation. + + + ERROR_DS_NO_MORE_RIDS + ERROR_DS_NO_MORE_RIDS + + + + No documentation. + + + ERROR_DS_INCORRECT_ROLE_OWNER + ERROR_DS_INCORRECT_ROLE_OWNER + + + + No documentation. + + + ERROR_DS_RIDMGR_INIT_ERROR + ERROR_DS_RIDMGR_INIT_ERROR + + + + No documentation. + + + ERROR_DS_OBJ_CLASS_VIOLATION + ERROR_DS_OBJ_CLASS_VIOLATION + + + + No documentation. + + + ERROR_DS_CANT_ON_NON_LEAF + ERROR_DS_CANT_ON_NON_LEAF + + + + No documentation. + + + ERROR_DS_CANT_ON_RDN + ERROR_DS_CANT_ON_RDN + + + + No documentation. + + + ERROR_DS_CANT_MOD_OBJ_CLASS + ERROR_DS_CANT_MOD_OBJ_CLASS + + + + No documentation. + + + ERROR_DS_CROSS_DOM_MOVE_ERROR + ERROR_DS_CROSS_DOM_MOVE_ERROR + + + + No documentation. + + + ERROR_DS_GC_NOT_AVAILABLE + ERROR_DS_GC_NOT_AVAILABLE + + + + No documentation. + + + ERROR_SHARED_POLICY + ERROR_SHARED_POLICY + + + + No documentation. + + + ERROR_POLICY_OBJECT_NOT_FOUND + ERROR_POLICY_OBJECT_NOT_FOUND + + + + No documentation. + + + ERROR_POLICY_ONLY_IN_DS + ERROR_POLICY_ONLY_IN_DS + + + + No documentation. + + + ERROR_PROMOTION_ACTIVE + ERROR_PROMOTION_ACTIVE + + + + No documentation. + + + ERROR_NO_PROMOTION_ACTIVE + ERROR_NO_PROMOTION_ACTIVE + + + + No documentation. + + + ERROR_DS_OPERATIONS_ERROR + ERROR_DS_OPERATIONS_ERROR + + + + No documentation. + + + ERROR_DS_PROTOCOL_ERROR + ERROR_DS_PROTOCOL_ERROR + + + + No documentation. + + + ERROR_DS_TIMELIMIT_EXCEEDED + ERROR_DS_TIMELIMIT_EXCEEDED + + + + No documentation. + + + ERROR_DS_SIZELIMIT_EXCEEDED + ERROR_DS_SIZELIMIT_EXCEEDED + + + + No documentation. + + + ERROR_DS_ADMIN_LIMIT_EXCEEDED + ERROR_DS_ADMIN_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_DS_COMPARE_FALSE + ERROR_DS_COMPARE_FALSE + + + + No documentation. + + + ERROR_DS_COMPARE_TRUE + ERROR_DS_COMPARE_TRUE + + + + No documentation. + + + ERROR_DS_AUTH_METHOD_NOT_SUPPORTED + ERROR_DS_AUTH_METHOD_NOT_SUPPORTED + + + + No documentation. + + + ERROR_DS_STRONG_AUTH_REQUIRED + ERROR_DS_STRONG_AUTH_REQUIRED + + + + No documentation. + + + ERROR_DS_INAPPROPRIATE_AUTH + ERROR_DS_INAPPROPRIATE_AUTH + + + + No documentation. + + + ERROR_DS_AUTH_UNKNOWN + ERROR_DS_AUTH_UNKNOWN + + + + No documentation. + + + ERROR_DS_REFERRAL + ERROR_DS_REFERRAL + + + + No documentation. + + + ERROR_DS_UNAVAILABLE_CRIT_EXTENSION + ERROR_DS_UNAVAILABLE_CRIT_EXTENSION + + + + No documentation. + + + ERROR_DS_CONFIDENTIALITY_REQUIRED + ERROR_DS_CONFIDENTIALITY_REQUIRED + + + + No documentation. + + + ERROR_DS_INAPPROPRIATE_MATCHING + ERROR_DS_INAPPROPRIATE_MATCHING + + + + No documentation. + + + ERROR_DS_CONSTRAINT_VIOLATION + ERROR_DS_CONSTRAINT_VIOLATION + + + + No documentation. + + + ERROR_DS_NO_SUCH_OBJECT + ERROR_DS_NO_SUCH_OBJECT + + + + No documentation. + + + ERROR_DS_ALIAS_PROBLEM + ERROR_DS_ALIAS_PROBLEM + + + + No documentation. + + + ERROR_DS_INVALID_DN_SYNTAX + ERROR_DS_INVALID_DN_SYNTAX + + + + No documentation. + + + ERROR_DS_IS_LEAF + ERROR_DS_IS_LEAF + + + + No documentation. + + + ERROR_DS_ALIAS_DEREF_PROBLEM + ERROR_DS_ALIAS_DEREF_PROBLEM + + + + No documentation. + + + ERROR_DS_UNWILLING_TO_PERFORM + ERROR_DS_UNWILLING_TO_PERFORM + + + + No documentation. + + + ERROR_DS_LOOP_DETECT + ERROR_DS_LOOP_DETECT + + + + No documentation. + + + ERROR_DS_NAMING_VIOLATION + ERROR_DS_NAMING_VIOLATION + + + + No documentation. + + + ERROR_DS_OBJECT_RESULTS_TOO_LARGE + ERROR_DS_OBJECT_RESULTS_TOO_LARGE + + + + No documentation. + + + ERROR_DS_AFFECTS_MULTIPLE_DSAS + ERROR_DS_AFFECTS_MULTIPLE_DSAS + + + + No documentation. + + + ERROR_DS_SERVER_DOWN + ERROR_DS_SERVER_DOWN + + + + No documentation. + + + ERROR_DS_LOCAL_ERROR + ERROR_DS_LOCAL_ERROR + + + + No documentation. + + + ERROR_DS_ENCODING_ERROR + ERROR_DS_ENCODING_ERROR + + + + No documentation. + + + ERROR_DS_DECODING_ERROR + ERROR_DS_DECODING_ERROR + + + + No documentation. + + + ERROR_DS_FILTER_UNKNOWN + ERROR_DS_FILTER_UNKNOWN + + + + No documentation. + + + ERROR_DS_PARAM_ERROR + ERROR_DS_PARAM_ERROR + + + + No documentation. + + + ERROR_DS_NOT_SUPPORTED + ERROR_DS_NOT_SUPPORTED + + + + No documentation. + + + ERROR_DS_NO_RESULTS_RETURNED + ERROR_DS_NO_RESULTS_RETURNED + + + + No documentation. + + + ERROR_DS_CONTROL_NOT_FOUND + ERROR_DS_CONTROL_NOT_FOUND + + + + No documentation. + + + ERROR_DS_CLIENT_LOOP + ERROR_DS_CLIENT_LOOP + + + + No documentation. + + + ERROR_DS_REFERRAL_LIMIT_EXCEEDED + ERROR_DS_REFERRAL_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_DS_SORT_CONTROL_MISSING + ERROR_DS_SORT_CONTROL_MISSING + + + + No documentation. + + + ERROR_DS_OFFSET_RANGE_ERROR + ERROR_DS_OFFSET_RANGE_ERROR + + + + No documentation. + + + ERROR_DS_ROOT_MUST_BE_NC + ERROR_DS_ROOT_MUST_BE_NC + + + + No documentation. + + + ERROR_DS_ADD_REPLICA_INHIBITED + ERROR_DS_ADD_REPLICA_INHIBITED + + + + No documentation. + + + ERROR_DS_ATT_NOT_DEF_IN_SCHEMA + ERROR_DS_ATT_NOT_DEF_IN_SCHEMA + + + + No documentation. + + + ERROR_DS_MAX_OBJ_SIZE_EXCEEDED + ERROR_DS_MAX_OBJ_SIZE_EXCEEDED + + + + No documentation. + + + ERROR_DS_OBJ_STRING_NAME_EXISTS + ERROR_DS_OBJ_STRING_NAME_EXISTS + + + + No documentation. + + + ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA + ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA + + + + No documentation. + + + ERROR_DS_RDN_DOESNT_MATCH_SCHEMA + ERROR_DS_RDN_DOESNT_MATCH_SCHEMA + + + + No documentation. + + + ERROR_DS_NO_REQUESTED_ATTS_FOUND + ERROR_DS_NO_REQUESTED_ATTS_FOUND + + + + No documentation. + + + ERROR_DS_USER_BUFFER_TO_SMALL + ERROR_DS_USER_BUFFER_TO_SMALL + + + + No documentation. + + + ERROR_DS_ATT_IS_NOT_ON_OBJ + ERROR_DS_ATT_IS_NOT_ON_OBJ + + + + No documentation. + + + ERROR_DS_ILLEGAL_MOD_OPERATION + ERROR_DS_ILLEGAL_MOD_OPERATION + + + + No documentation. + + + ERROR_DS_OBJ_TOO_LARGE + ERROR_DS_OBJ_TOO_LARGE + + + + No documentation. + + + ERROR_DS_BAD_INSTANCE_TYPE + ERROR_DS_BAD_INSTANCE_TYPE + + + + No documentation. + + + ERROR_DS_MASTERDSA_REQUIRED + ERROR_DS_MASTERDSA_REQUIRED + + + + No documentation. + + + ERROR_DS_OBJECT_CLASS_REQUIRED + ERROR_DS_OBJECT_CLASS_REQUIRED + + + + No documentation. + + + ERROR_DS_MISSING_REQUIRED_ATT + ERROR_DS_MISSING_REQUIRED_ATT + + + + No documentation. + + + ERROR_DS_ATT_NOT_DEF_FOR_CLASS + ERROR_DS_ATT_NOT_DEF_FOR_CLASS + + + + No documentation. + + + ERROR_DS_ATT_ALREADY_EXISTS + ERROR_DS_ATT_ALREADY_EXISTS + + + + No documentation. + + + ERROR_DS_CANT_ADD_ATT_VALUES + ERROR_DS_CANT_ADD_ATT_VALUES + + + + No documentation. + + + ERROR_DS_SINGLE_VALUE_CONSTRAINT + ERROR_DS_SINGLE_VALUE_CONSTRAINT + + + + No documentation. + + + ERROR_DS_RANGE_CONSTRAINT + ERROR_DS_RANGE_CONSTRAINT + + + + No documentation. + + + ERROR_DS_ATT_VAL_ALREADY_EXISTS + ERROR_DS_ATT_VAL_ALREADY_EXISTS + + + + No documentation. + + + ERROR_DS_CANT_REM_MISSING_ATT + ERROR_DS_CANT_REM_MISSING_ATT + + + + No documentation. + + + ERROR_DS_CANT_REM_MISSING_ATT_VAL + ERROR_DS_CANT_REM_MISSING_ATT_VAL + + + + No documentation. + + + ERROR_DS_ROOT_CANT_BE_SUBREF + ERROR_DS_ROOT_CANT_BE_SUBREF + + + + No documentation. + + + ERROR_DS_NO_CHAINING + ERROR_DS_NO_CHAINING + + + + No documentation. + + + ERROR_DS_NO_CHAINED_EVAL + ERROR_DS_NO_CHAINED_EVAL + + + + No documentation. + + + ERROR_DS_NO_PARENT_OBJECT + ERROR_DS_NO_PARENT_OBJECT + + + + No documentation. + + + ERROR_DS_PARENT_IS_AN_ALIAS + ERROR_DS_PARENT_IS_AN_ALIAS + + + + No documentation. + + + ERROR_DS_CANT_MIX_MASTER_AND_REPS + ERROR_DS_CANT_MIX_MASTER_AND_REPS + + + + No documentation. + + + ERROR_DS_CHILDREN_EXIST + ERROR_DS_CHILDREN_EXIST + + + + No documentation. + + + ERROR_DS_OBJ_NOT_FOUND + ERROR_DS_OBJ_NOT_FOUND + + + + No documentation. + + + ERROR_DS_ALIASED_OBJ_MISSING + ERROR_DS_ALIASED_OBJ_MISSING + + + + No documentation. + + + ERROR_DS_BAD_NAME_SYNTAX + ERROR_DS_BAD_NAME_SYNTAX + + + + No documentation. + + + ERROR_DS_ALIAS_POINTS_TO_ALIAS + ERROR_DS_ALIAS_POINTS_TO_ALIAS + + + + No documentation. + + + ERROR_DS_CANT_DEREF_ALIAS + ERROR_DS_CANT_DEREF_ALIAS + + + + No documentation. + + + ERROR_DS_OUT_OF_SCOPE + ERROR_DS_OUT_OF_SCOPE + + + + No documentation. + + + ERROR_DS_OBJECT_BEING_REMOVED + ERROR_DS_OBJECT_BEING_REMOVED + + + + No documentation. + + + ERROR_DS_CANT_DELETE_DSA_OBJ + ERROR_DS_CANT_DELETE_DSA_OBJ + + + + No documentation. + + + ERROR_DS_GENERIC_ERROR + ERROR_DS_GENERIC_ERROR + + + + No documentation. + + + ERROR_DS_DSA_MUST_BE_INT_MASTER + ERROR_DS_DSA_MUST_BE_INT_MASTER + + + + No documentation. + + + ERROR_DS_CLASS_NOT_DSA + ERROR_DS_CLASS_NOT_DSA + + + + No documentation. + + + ERROR_DS_INSUFF_ACCESS_RIGHTS + ERROR_DS_INSUFF_ACCESS_RIGHTS + + + + No documentation. + + + ERROR_DS_ILLEGAL_SUPERIOR + ERROR_DS_ILLEGAL_SUPERIOR + + + + No documentation. + + + ERROR_DS_ATTRIBUTE_OWNED_BY_SAM + ERROR_DS_ATTRIBUTE_OWNED_BY_SAM + + + + No documentation. + + + ERROR_DS_NAME_TOO_MANY_PARTS + ERROR_DS_NAME_TOO_MANY_PARTS + + + + No documentation. + + + ERROR_DS_NAME_TOO_LONG + ERROR_DS_NAME_TOO_LONG + + + + No documentation. + + + ERROR_DS_NAME_VALUE_TOO_LONG + ERROR_DS_NAME_VALUE_TOO_LONG + + + + No documentation. + + + ERROR_DS_NAME_UNPARSEABLE + ERROR_DS_NAME_UNPARSEABLE + + + + No documentation. + + + ERROR_DS_NAME_TYPE_UNKNOWN + ERROR_DS_NAME_TYPE_UNKNOWN + + + + No documentation. + + + ERROR_DS_NOT_AN_OBJECT + ERROR_DS_NOT_AN_OBJECT + + + + No documentation. + + + ERROR_DS_SEC_DESC_TOO_SHORT + ERROR_DS_SEC_DESC_TOO_SHORT + + + + No documentation. + + + ERROR_DS_SEC_DESC_INVALID + ERROR_DS_SEC_DESC_INVALID + + + + No documentation. + + + ERROR_DS_NO_DELETED_NAME + ERROR_DS_NO_DELETED_NAME + + + + No documentation. + + + ERROR_DS_SUBREF_MUST_HAVE_PARENT + ERROR_DS_SUBREF_MUST_HAVE_PARENT + + + + No documentation. + + + ERROR_DS_NCNAME_MUST_BE_NC + ERROR_DS_NCNAME_MUST_BE_NC + + + + No documentation. + + + ERROR_DS_CANT_ADD_SYSTEM_ONLY + ERROR_DS_CANT_ADD_SYSTEM_ONLY + + + + No documentation. + + + ERROR_DS_CLASS_MUST_BE_CONCRETE + ERROR_DS_CLASS_MUST_BE_CONCRETE + + + + No documentation. + + + ERROR_DS_INVALID_DMD + ERROR_DS_INVALID_DMD + + + + No documentation. + + + ERROR_DS_OBJ_GUID_EXISTS + ERROR_DS_OBJ_GUID_EXISTS + + + + No documentation. + + + ERROR_DS_NOT_ON_BACKLINK + ERROR_DS_NOT_ON_BACKLINK + + + + No documentation. + + + ERROR_DS_NO_CROSSREF_FOR_NC + ERROR_DS_NO_CROSSREF_FOR_NC + + + + No documentation. + + + ERROR_DS_SHUTTING_DOWN + ERROR_DS_SHUTTING_DOWN + + + + No documentation. + + + ERROR_DS_UNKNOWN_OPERATION + ERROR_DS_UNKNOWN_OPERATION + + + + No documentation. + + + ERROR_DS_INVALID_ROLE_OWNER + ERROR_DS_INVALID_ROLE_OWNER + + + + No documentation. + + + ERROR_DS_COULDNT_CONTACT_FSMO + ERROR_DS_COULDNT_CONTACT_FSMO + + + + No documentation. + + + ERROR_DS_CROSS_NC_DN_RENAME + ERROR_DS_CROSS_NC_DN_RENAME + + + + No documentation. + + + ERROR_DS_CANT_MOD_SYSTEM_ONLY + ERROR_DS_CANT_MOD_SYSTEM_ONLY + + + + No documentation. + + + ERROR_DS_REPLICATOR_ONLY + ERROR_DS_REPLICATOR_ONLY + + + + No documentation. + + + ERROR_DS_OBJ_CLASS_NOT_DEFINED + ERROR_DS_OBJ_CLASS_NOT_DEFINED + + + + No documentation. + + + ERROR_DS_OBJ_CLASS_NOT_SUBCLASS + ERROR_DS_OBJ_CLASS_NOT_SUBCLASS + + + + No documentation. + + + ERROR_DS_NAME_REFERENCE_INVALID + ERROR_DS_NAME_REFERENCE_INVALID + + + + No documentation. + + + ERROR_DS_CROSS_REF_EXISTS + ERROR_DS_CROSS_REF_EXISTS + + + + No documentation. + + + ERROR_DS_CANT_DEL_MASTER_CROSSREF + ERROR_DS_CANT_DEL_MASTER_CROSSREF + + + + No documentation. + + + ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD + ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD + + + + No documentation. + + + ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX + ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX + + + + No documentation. + + + ERROR_DS_DUP_RDN + ERROR_DS_DUP_RDN + + + + No documentation. + + + ERROR_DS_DUP_OID + ERROR_DS_DUP_OID + + + + No documentation. + + + ERROR_DS_DUP_MAPI_ID + ERROR_DS_DUP_MAPI_ID + + + + No documentation. + + + ERROR_DS_DUP_SCHEMA_ID_GUID + ERROR_DS_DUP_SCHEMA_ID_GUID + + + + No documentation. + + + ERROR_DS_DUP_LDAP_DISPLAY_NAME + ERROR_DS_DUP_LDAP_DISPLAY_NAME + + + + No documentation. + + + ERROR_DS_SEMANTIC_ATT_TEST + ERROR_DS_SEMANTIC_ATT_TEST + + + + No documentation. + + + ERROR_DS_SYNTAX_MISMATCH + ERROR_DS_SYNTAX_MISMATCH + + + + No documentation. + + + ERROR_DS_EXISTS_IN_MUST_HAVE + ERROR_DS_EXISTS_IN_MUST_HAVE + + + + No documentation. + + + ERROR_DS_EXISTS_IN_MAY_HAVE + ERROR_DS_EXISTS_IN_MAY_HAVE + + + + No documentation. + + + ERROR_DS_NONEXISTENT_MAY_HAVE + ERROR_DS_NONEXISTENT_MAY_HAVE + + + + No documentation. + + + ERROR_DS_NONEXISTENT_MUST_HAVE + ERROR_DS_NONEXISTENT_MUST_HAVE + + + + No documentation. + + + ERROR_DS_AUX_CLS_TEST_FAIL + ERROR_DS_AUX_CLS_TEST_FAIL + + + + No documentation. + + + ERROR_DS_NONEXISTENT_POSS_SUP + ERROR_DS_NONEXISTENT_POSS_SUP + + + + No documentation. + + + ERROR_DS_SUB_CLS_TEST_FAIL + ERROR_DS_SUB_CLS_TEST_FAIL + + + + No documentation. + + + ERROR_DS_BAD_RDN_ATT_ID_SYNTAX + ERROR_DS_BAD_RDN_ATT_ID_SYNTAX + + + + No documentation. + + + ERROR_DS_EXISTS_IN_AUX_CLS + ERROR_DS_EXISTS_IN_AUX_CLS + + + + No documentation. + + + ERROR_DS_EXISTS_IN_SUB_CLS + ERROR_DS_EXISTS_IN_SUB_CLS + + + + No documentation. + + + ERROR_DS_EXISTS_IN_POSS_SUP + ERROR_DS_EXISTS_IN_POSS_SUP + + + + No documentation. + + + ERROR_DS_RECALCSCHEMA_FAILED + ERROR_DS_RECALCSCHEMA_FAILED + + + + No documentation. + + + ERROR_DS_TREE_DELETE_NOT_FINISHED + ERROR_DS_TREE_DELETE_NOT_FINISHED + + + + No documentation. + + + ERROR_DS_CANT_DELETE + ERROR_DS_CANT_DELETE + + + + No documentation. + + + ERROR_DS_ATT_SCHEMA_REQ_ID + ERROR_DS_ATT_SCHEMA_REQ_ID + + + + No documentation. + + + ERROR_DS_BAD_ATT_SCHEMA_SYNTAX + ERROR_DS_BAD_ATT_SCHEMA_SYNTAX + + + + No documentation. + + + ERROR_DS_CANT_CACHE_ATT + ERROR_DS_CANT_CACHE_ATT + + + + No documentation. + + + ERROR_DS_CANT_CACHE_CLASS + ERROR_DS_CANT_CACHE_CLASS + + + + No documentation. + + + ERROR_DS_CANT_REMOVE_ATT_CACHE + ERROR_DS_CANT_REMOVE_ATT_CACHE + + + + No documentation. + + + ERROR_DS_CANT_REMOVE_CLASS_CACHE + ERROR_DS_CANT_REMOVE_CLASS_CACHE + + + + No documentation. + + + ERROR_DS_CANT_RETRIEVE_DN + ERROR_DS_CANT_RETRIEVE_DN + + + + No documentation. + + + ERROR_DS_MISSING_SUPREF + ERROR_DS_MISSING_SUPREF + + + + No documentation. + + + ERROR_DS_CANT_RETRIEVE_INSTANCE + ERROR_DS_CANT_RETRIEVE_INSTANCE + + + + No documentation. + + + ERROR_DS_CODE_INCONSISTENCY + ERROR_DS_CODE_INCONSISTENCY + + + + No documentation. + + + ERROR_DS_DATABASE_ERROR + ERROR_DS_DATABASE_ERROR + + + + No documentation. + + + ERROR_DS_GOVERNSID_MISSING + ERROR_DS_GOVERNSID_MISSING + + + + No documentation. + + + ERROR_DS_MISSING_EXPECTED_ATT + ERROR_DS_MISSING_EXPECTED_ATT + + + + No documentation. + + + ERROR_DS_NCNAME_MISSING_CR_REF + ERROR_DS_NCNAME_MISSING_CR_REF + + + + No documentation. + + + ERROR_DS_SECURITY_CHECKING_ERROR + ERROR_DS_SECURITY_CHECKING_ERROR + + + + No documentation. + + + ERROR_DS_SCHEMA_NOT_LOADED + ERROR_DS_SCHEMA_NOT_LOADED + + + + No documentation. + + + ERROR_DS_SCHEMA_ALLOC_FAILED + ERROR_DS_SCHEMA_ALLOC_FAILED + + + + No documentation. + + + ERROR_DS_ATT_SCHEMA_REQ_SYNTAX + ERROR_DS_ATT_SCHEMA_REQ_SYNTAX + + + + No documentation. + + + ERROR_DS_GCVERIFY_ERROR + ERROR_DS_GCVERIFY_ERROR + + + + No documentation. + + + ERROR_DS_DRA_SCHEMA_MISMATCH + ERROR_DS_DRA_SCHEMA_MISMATCH + + + + No documentation. + + + ERROR_DS_CANT_FIND_DSA_OBJ + ERROR_DS_CANT_FIND_DSA_OBJ + + + + No documentation. + + + ERROR_DS_CANT_FIND_EXPECTED_NC + ERROR_DS_CANT_FIND_EXPECTED_NC + + + + No documentation. + + + ERROR_DS_CANT_FIND_NC_IN_CACHE + ERROR_DS_CANT_FIND_NC_IN_CACHE + + + + No documentation. + + + ERROR_DS_CANT_RETRIEVE_CHILD + ERROR_DS_CANT_RETRIEVE_CHILD + + + + No documentation. + + + ERROR_DS_SECURITY_ILLEGAL_MODIFY + ERROR_DS_SECURITY_ILLEGAL_MODIFY + + + + No documentation. + + + ERROR_DS_CANT_REPLACE_HIDDEN_REC + ERROR_DS_CANT_REPLACE_HIDDEN_REC + + + + No documentation. + + + ERROR_DS_BAD_HIERARCHY_FILE + ERROR_DS_BAD_HIERARCHY_FILE + + + + No documentation. + + + ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED + ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED + + + + No documentation. + + + ERROR_DS_CONFIG_PARAM_MISSING + ERROR_DS_CONFIG_PARAM_MISSING + + + + No documentation. + + + ERROR_DS_COUNTING_AB_INDICES_FAILED + ERROR_DS_COUNTING_AB_INDICES_FAILED + + + + No documentation. + + + ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED + ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED + + + + No documentation. + + + ERROR_DS_INTERNAL_FAILURE + ERROR_DS_INTERNAL_FAILURE + + + + No documentation. + + + ERROR_DS_UNKNOWN_ERROR + ERROR_DS_UNKNOWN_ERROR + + + + No documentation. + + + ERROR_DS_ROOT_REQUIRES_CLASS_TOP + ERROR_DS_ROOT_REQUIRES_CLASS_TOP + + + + No documentation. + + + ERROR_DS_REFUSING_FSMO_ROLES + ERROR_DS_REFUSING_FSMO_ROLES + + + + No documentation. + + + ERROR_DS_MISSING_FSMO_SETTINGS + ERROR_DS_MISSING_FSMO_SETTINGS + + + + No documentation. + + + ERROR_DS_UNABLE_TO_SURRENDER_ROLES + ERROR_DS_UNABLE_TO_SURRENDER_ROLES + + + + No documentation. + + + ERROR_DS_DRA_GENERIC + ERROR_DS_DRA_GENERIC + + + + No documentation. + + + ERROR_DS_DRA_INVALID_PARAMETER + ERROR_DS_DRA_INVALID_PARAMETER + + + + No documentation. + + + ERROR_DS_DRA_BUSY + ERROR_DS_DRA_BUSY + + + + No documentation. + + + ERROR_DS_DRA_BAD_DN + ERROR_DS_DRA_BAD_DN + + + + No documentation. + + + ERROR_DS_DRA_BAD_NC + ERROR_DS_DRA_BAD_NC + + + + No documentation. + + + ERROR_DS_DRA_DN_EXISTS + ERROR_DS_DRA_DN_EXISTS + + + + No documentation. + + + ERROR_DS_DRA_INTERNAL_ERROR + ERROR_DS_DRA_INTERNAL_ERROR + + + + No documentation. + + + ERROR_DS_DRA_INCONSISTENT_DIT + ERROR_DS_DRA_INCONSISTENT_DIT + + + + No documentation. + + + ERROR_DS_DRA_CONNECTION_FAILED + ERROR_DS_DRA_CONNECTION_FAILED + + + + No documentation. + + + ERROR_DS_DRA_BAD_INSTANCE_TYPE + ERROR_DS_DRA_BAD_INSTANCE_TYPE + + + + No documentation. + + + ERROR_DS_DRA_OUT_OF_MEM + ERROR_DS_DRA_OUT_OF_MEM + + + + No documentation. + + + ERROR_DS_DRA_MAIL_PROBLEM + ERROR_DS_DRA_MAIL_PROBLEM + + + + No documentation. + + + ERROR_DS_DRA_REF_ALREADY_EXISTS + ERROR_DS_DRA_REF_ALREADY_EXISTS + + + + No documentation. + + + ERROR_DS_DRA_REF_NOT_FOUND + ERROR_DS_DRA_REF_NOT_FOUND + + + + No documentation. + + + ERROR_DS_DRA_OBJ_IS_REP_SOURCE + ERROR_DS_DRA_OBJ_IS_REP_SOURCE + + + + No documentation. + + + ERROR_DS_DRA_DB_ERROR + ERROR_DS_DRA_DB_ERROR + + + + No documentation. + + + ERROR_DS_DRA_NO_REPLICA + ERROR_DS_DRA_NO_REPLICA + + + + No documentation. + + + ERROR_DS_DRA_ACCESS_DENIED + ERROR_DS_DRA_ACCESS_DENIED + + + + No documentation. + + + ERROR_DS_DRA_NOT_SUPPORTED + ERROR_DS_DRA_NOT_SUPPORTED + + + + No documentation. + + + ERROR_DS_DRA_RPC_CANCELLED + ERROR_DS_DRA_RPC_CANCELLED + + + + No documentation. + + + ERROR_DS_DRA_SOURCE_DISABLED + ERROR_DS_DRA_SOURCE_DISABLED + + + + No documentation. + + + ERROR_DS_DRA_SINK_DISABLED + ERROR_DS_DRA_SINK_DISABLED + + + + No documentation. + + + ERROR_DS_DRA_NAME_COLLISION + ERROR_DS_DRA_NAME_COLLISION + + + + No documentation. + + + ERROR_DS_DRA_SOURCE_REINSTALLED + ERROR_DS_DRA_SOURCE_REINSTALLED + + + + No documentation. + + + ERROR_DS_DRA_MISSING_PARENT + ERROR_DS_DRA_MISSING_PARENT + + + + No documentation. + + + ERROR_DS_DRA_PREEMPTED + ERROR_DS_DRA_PREEMPTED + + + + No documentation. + + + ERROR_DS_DRA_ABANDON_SYNC + ERROR_DS_DRA_ABANDON_SYNC + + + + No documentation. + + + ERROR_DS_DRA_SHUTDOWN + ERROR_DS_DRA_SHUTDOWN + + + + No documentation. + + + ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET + ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET + + + + No documentation. + + + ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA + ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA + + + + No documentation. + + + ERROR_DS_DRA_EXTN_CONNECTION_FAILED + ERROR_DS_DRA_EXTN_CONNECTION_FAILED + + + + No documentation. + + + ERROR_DS_INSTALL_SCHEMA_MISMATCH + ERROR_DS_INSTALL_SCHEMA_MISMATCH + + + + No documentation. + + + ERROR_DS_DUP_LINK_ID + ERROR_DS_DUP_LINK_ID + + + + No documentation. + + + ERROR_DS_NAME_ERROR_RESOLVING + ERROR_DS_NAME_ERROR_RESOLVING + + + + No documentation. + + + ERROR_DS_NAME_ERROR_NOT_FOUND + ERROR_DS_NAME_ERROR_NOT_FOUND + + + + No documentation. + + + ERROR_DS_NAME_ERROR_NOT_UNIQUE + ERROR_DS_NAME_ERROR_NOT_UNIQUE + + + + No documentation. + + + ERROR_DS_NAME_ERROR_NO_MAPPING + ERROR_DS_NAME_ERROR_NO_MAPPING + + + + No documentation. + + + ERROR_DS_NAME_ERROR_DOMAIN_ONLY + ERROR_DS_NAME_ERROR_DOMAIN_ONLY + + + + No documentation. + + + ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING + ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING + + + + No documentation. + + + ERROR_DS_CONSTRUCTED_ATT_MOD + ERROR_DS_CONSTRUCTED_ATT_MOD + + + + No documentation. + + + ERROR_DS_WRONG_OM_OBJ_CLASS + ERROR_DS_WRONG_OM_OBJ_CLASS + + + + No documentation. + + + ERROR_DS_DRA_REPL_PENDING + ERROR_DS_DRA_REPL_PENDING + + + + No documentation. + + + ERROR_DS_DS_REQUIRED + ERROR_DS_DS_REQUIRED + + + + No documentation. + + + ERROR_DS_INVALID_LDAP_DISPLAY_NAME + ERROR_DS_INVALID_LDAP_DISPLAY_NAME + + + + No documentation. + + + ERROR_DS_NON_BASE_SEARCH + ERROR_DS_NON_BASE_SEARCH + + + + No documentation. + + + ERROR_DS_CANT_RETRIEVE_ATTS + ERROR_DS_CANT_RETRIEVE_ATTS + + + + No documentation. + + + ERROR_DS_BACKLINK_WITHOUT_LINK + ERROR_DS_BACKLINK_WITHOUT_LINK + + + + No documentation. + + + ERROR_DS_EPOCH_MISMATCH + ERROR_DS_EPOCH_MISMATCH + + + + No documentation. + + + ERROR_DS_SRC_NAME_MISMATCH + ERROR_DS_SRC_NAME_MISMATCH + + + + No documentation. + + + ERROR_DS_SRC_AND_DST_NC_IDENTICAL + ERROR_DS_SRC_AND_DST_NC_IDENTICAL + + + + No documentation. + + + ERROR_DS_DST_NC_MISMATCH + ERROR_DS_DST_NC_MISMATCH + + + + No documentation. + + + ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC + ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC + + + + No documentation. + + + ERROR_DS_SRC_GUID_MISMATCH + ERROR_DS_SRC_GUID_MISMATCH + + + + No documentation. + + + ERROR_DS_CANT_MOVE_DELETED_OBJECT + ERROR_DS_CANT_MOVE_DELETED_OBJECT + + + + No documentation. + + + ERROR_DS_PDC_OPERATION_IN_PROGRESS + ERROR_DS_PDC_OPERATION_IN_PROGRESS + + + + No documentation. + + + ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD + ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD + + + + No documentation. + + + ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION + ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION + + + + No documentation. + + + ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS + ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS + + + + No documentation. + + + ERROR_DS_NC_MUST_HAVE_NC_PARENT + ERROR_DS_NC_MUST_HAVE_NC_PARENT + + + + No documentation. + + + ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE + ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE + + + + No documentation. + + + ERROR_DS_DST_DOMAIN_NOT_NATIVE + ERROR_DS_DST_DOMAIN_NOT_NATIVE + + + + No documentation. + + + ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER + ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER + + + + No documentation. + + + ERROR_DS_CANT_MOVE_ACCOUNT_GROUP + ERROR_DS_CANT_MOVE_ACCOUNT_GROUP + + + + No documentation. + + + ERROR_DS_CANT_MOVE_RESOURCE_GROUP + ERROR_DS_CANT_MOVE_RESOURCE_GROUP + + + + No documentation. + + + ERROR_DS_INVALID_SEARCH_FLAG + ERROR_DS_INVALID_SEARCH_FLAG + + + + No documentation. + + + ERROR_DS_NO_TREE_DELETE_ABOVE_NC + ERROR_DS_NO_TREE_DELETE_ABOVE_NC + + + + No documentation. + + + ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE + ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE + + + + No documentation. + + + ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE + ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE + + + + No documentation. + + + ERROR_DS_SAM_INIT_FAILURE + ERROR_DS_SAM_INIT_FAILURE + + + + No documentation. + + + ERROR_DS_SENSITIVE_GROUP_VIOLATION + ERROR_DS_SENSITIVE_GROUP_VIOLATION + + + + No documentation. + + + ERROR_DS_CANT_MOD_PRIMARYGROUPID + ERROR_DS_CANT_MOD_PRIMARYGROUPID + + + + No documentation. + + + ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD + ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD + + + + No documentation. + + + ERROR_DS_NONSAFE_SCHEMA_CHANGE + ERROR_DS_NONSAFE_SCHEMA_CHANGE + + + + No documentation. + + + ERROR_DS_SCHEMA_UPDATE_DISALLOWED + ERROR_DS_SCHEMA_UPDATE_DISALLOWED + + + + No documentation. + + + ERROR_DS_CANT_CREATE_UNDER_SCHEMA + ERROR_DS_CANT_CREATE_UNDER_SCHEMA + + + + No documentation. + + + ERROR_DS_INSTALL_NO_SRC_SCH_VERSION + ERROR_DS_INSTALL_NO_SRC_SCH_VERSION + + + + No documentation. + + + ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE + ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE + + + + No documentation. + + + ERROR_DS_INVALID_GROUP_TYPE + ERROR_DS_INVALID_GROUP_TYPE + + + + No documentation. + + + ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN + ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN + + + + No documentation. + + + ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN + ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN + + + + No documentation. + + + ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER + ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER + + + + No documentation. + + + ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER + ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER + + + + No documentation. + + + ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER + ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER + + + + No documentation. + + + ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER + ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER + + + + No documentation. + + + ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER + ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER + + + + No documentation. + + + ERROR_DS_HAVE_PRIMARY_MEMBERS + ERROR_DS_HAVE_PRIMARY_MEMBERS + + + + No documentation. + + + ERROR_DS_STRING_SD_CONVERSION_FAILED + ERROR_DS_STRING_SD_CONVERSION_FAILED + + + + No documentation. + + + ERROR_DS_NAMING_MASTER_GC + ERROR_DS_NAMING_MASTER_GC + + + + No documentation. + + + ERROR_DS_DNS_LOOKUP_FAILURE + ERROR_DS_DNS_LOOKUP_FAILURE + + + + No documentation. + + + ERROR_DS_COULDNT_UPDATE_SPNS + ERROR_DS_COULDNT_UPDATE_SPNS + + + + No documentation. + + + ERROR_DS_CANT_RETRIEVE_SD + ERROR_DS_CANT_RETRIEVE_SD + + + + No documentation. + + + ERROR_DS_KEY_NOT_UNIQUE + ERROR_DS_KEY_NOT_UNIQUE + + + + No documentation. + + + ERROR_DS_WRONG_LINKED_ATT_SYNTAX + ERROR_DS_WRONG_LINKED_ATT_SYNTAX + + + + No documentation. + + + ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD + ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD + + + + No documentation. + + + ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY + ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY + + + + No documentation. + + + ERROR_DS_CANT_START + ERROR_DS_CANT_START + + + + No documentation. + + + ERROR_DS_INIT_FAILURE + ERROR_DS_INIT_FAILURE + + + + No documentation. + + + ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION + ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION + + + + No documentation. + + + ERROR_DS_SOURCE_DOMAIN_IN_FOREST + ERROR_DS_SOURCE_DOMAIN_IN_FOREST + + + + No documentation. + + + ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST + ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST + + + + No documentation. + + + ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED + ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED + + + + No documentation. + + + ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN + ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN + + + + No documentation. + + + ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER + ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER + + + + No documentation. + + + ERROR_DS_SRC_SID_EXISTS_IN_FOREST + ERROR_DS_SRC_SID_EXISTS_IN_FOREST + + + + No documentation. + + + ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH + ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH + + + + No documentation. + + + ERROR_SAM_INIT_FAILURE + ERROR_SAM_INIT_FAILURE + + + + No documentation. + + + ERROR_DS_DRA_SCHEMA_INFO_SHIP + ERROR_DS_DRA_SCHEMA_INFO_SHIP + + + + No documentation. + + + ERROR_DS_DRA_SCHEMA_CONFLICT + ERROR_DS_DRA_SCHEMA_CONFLICT + + + + No documentation. + + + ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT + ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT + + + + No documentation. + + + ERROR_DS_DRA_OBJ_NC_MISMATCH + ERROR_DS_DRA_OBJ_NC_MISMATCH + + + + No documentation. + + + ERROR_DS_NC_STILL_HAS_DSAS + ERROR_DS_NC_STILL_HAS_DSAS + + + + No documentation. + + + ERROR_DS_GC_REQUIRED + ERROR_DS_GC_REQUIRED + + + + No documentation. + + + ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY + ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY + + + + No documentation. + + + ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS + ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS + + + + No documentation. + + + ERROR_DS_CANT_ADD_TO_GC + ERROR_DS_CANT_ADD_TO_GC + + + + No documentation. + + + ERROR_DS_NO_CHECKPOINT_WITH_PDC + ERROR_DS_NO_CHECKPOINT_WITH_PDC + + + + No documentation. + + + ERROR_DS_SOURCE_AUDITING_NOT_ENABLED + ERROR_DS_SOURCE_AUDITING_NOT_ENABLED + + + + No documentation. + + + ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC + ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC + + + + No documentation. + + + ERROR_DS_INVALID_NAME_FOR_SPN + ERROR_DS_INVALID_NAME_FOR_SPN + + + + No documentation. + + + ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS + ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS + + + + No documentation. + + + ERROR_DS_UNICODEPWD_NOT_IN_QUOTES + ERROR_DS_UNICODEPWD_NOT_IN_QUOTES + + + + No documentation. + + + ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED + ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED + + + + No documentation. + + + ERROR_DS_MUST_BE_RUN_ON_DST_DC + ERROR_DS_MUST_BE_RUN_ON_DST_DC + + + + No documentation. + + + ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER + ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER + + + + No documentation. + + + ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ + ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ + + + + No documentation. + + + ERROR_DS_INIT_FAILURE_CONSOLE + ERROR_DS_INIT_FAILURE_CONSOLE + + + + No documentation. + + + ERROR_DS_SAM_INIT_FAILURE_CONSOLE + ERROR_DS_SAM_INIT_FAILURE_CONSOLE + + + + No documentation. + + + ERROR_DS_FOREST_VERSION_TOO_HIGH + ERROR_DS_FOREST_VERSION_TOO_HIGH + + + + No documentation. + + + ERROR_DS_DOMAIN_VERSION_TOO_HIGH + ERROR_DS_DOMAIN_VERSION_TOO_HIGH + + + + No documentation. + + + ERROR_DS_FOREST_VERSION_TOO_LOW + ERROR_DS_FOREST_VERSION_TOO_LOW + + + + No documentation. + + + ERROR_DS_DOMAIN_VERSION_TOO_LOW + ERROR_DS_DOMAIN_VERSION_TOO_LOW + + + + No documentation. + + + ERROR_DS_INCOMPATIBLE_VERSION + ERROR_DS_INCOMPATIBLE_VERSION + + + + No documentation. + + + ERROR_DS_LOW_DSA_VERSION + ERROR_DS_LOW_DSA_VERSION + + + + No documentation. + + + ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN + ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN + + + + No documentation. + + + ERROR_DS_NOT_SUPPORTED_SORT_ORDER + ERROR_DS_NOT_SUPPORTED_SORT_ORDER + + + + No documentation. + + + ERROR_DS_NAME_NOT_UNIQUE + ERROR_DS_NAME_NOT_UNIQUE + + + + No documentation. + + + ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 + ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 + + + + No documentation. + + + ERROR_DS_OUT_OF_VERSION_STORE + ERROR_DS_OUT_OF_VERSION_STORE + + + + No documentation. + + + ERROR_DS_INCOMPATIBLE_CONTROLS_USED + ERROR_DS_INCOMPATIBLE_CONTROLS_USED + + + + No documentation. + + + ERROR_DS_NO_REF_DOMAIN + ERROR_DS_NO_REF_DOMAIN + + + + No documentation. + + + ERROR_DS_RESERVED_LINK_ID + ERROR_DS_RESERVED_LINK_ID + + + + No documentation. + + + ERROR_DS_LINK_ID_NOT_AVAILABLE + ERROR_DS_LINK_ID_NOT_AVAILABLE + + + + No documentation. + + + ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER + ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER + + + + No documentation. + + + ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE + ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE + + + + No documentation. + + + ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC + ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC + + + + No documentation. + + + ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG + ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG + + + + No documentation. + + + ERROR_DS_MODIFYDN_WRONG_GRANDPARENT + ERROR_DS_MODIFYDN_WRONG_GRANDPARENT + + + + No documentation. + + + ERROR_DS_NAME_ERROR_TRUST_REFERRAL + ERROR_DS_NAME_ERROR_TRUST_REFERRAL + + + + No documentation. + + + ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER + ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER + + + + No documentation. + + + ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD + ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD + + + + No documentation. + + + ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 + ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 + + + + No documentation. + + + ERROR_DS_THREAD_LIMIT_EXCEEDED + ERROR_DS_THREAD_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_DS_NOT_CLOSEST + ERROR_DS_NOT_CLOSEST + + + + No documentation. + + + ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF + ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF + + + + No documentation. + + + ERROR_DS_SINGLE_USER_MODE_FAILED + ERROR_DS_SINGLE_USER_MODE_FAILED + + + + No documentation. + + + ERROR_DS_NTDSCRIPT_SYNTAX_ERROR + ERROR_DS_NTDSCRIPT_SYNTAX_ERROR + + + + No documentation. + + + ERROR_DS_NTDSCRIPT_PROCESS_ERROR + ERROR_DS_NTDSCRIPT_PROCESS_ERROR + + + + No documentation. + + + ERROR_DS_DIFFERENT_REPL_EPOCHS + ERROR_DS_DIFFERENT_REPL_EPOCHS + + + + No documentation. + + + ERROR_DS_DRS_EXTENSIONS_CHANGED + ERROR_DS_DRS_EXTENSIONS_CHANGED + + + + No documentation. + + + ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR + ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR + + + + No documentation. + + + ERROR_DS_NO_MSDS_INTID + ERROR_DS_NO_MSDS_INTID + + + + No documentation. + + + ERROR_DS_DUP_MSDS_INTID + ERROR_DS_DUP_MSDS_INTID + + + + No documentation. + + + ERROR_DS_EXISTS_IN_RDNATTID + ERROR_DS_EXISTS_IN_RDNATTID + + + + No documentation. + + + ERROR_DS_AUTHORIZATION_FAILED + ERROR_DS_AUTHORIZATION_FAILED + + + + No documentation. + + + ERROR_DS_INVALID_SCRIPT + ERROR_DS_INVALID_SCRIPT + + + + No documentation. + + + ERROR_DS_REMOTE_CROSSREF_OP_FAILED + ERROR_DS_REMOTE_CROSSREF_OP_FAILED + + + + No documentation. + + + ERROR_DS_CROSS_REF_BUSY + ERROR_DS_CROSS_REF_BUSY + + + + No documentation. + + + ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN + ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN + + + + No documentation. + + + ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC + ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC + + + + No documentation. + + + ERROR_DS_DUPLICATE_ID_FOUND + ERROR_DS_DUPLICATE_ID_FOUND + + + + No documentation. + + + ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT + ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT + + + + No documentation. + + + ERROR_DS_GROUP_CONVERSION_ERROR + ERROR_DS_GROUP_CONVERSION_ERROR + + + + No documentation. + + + ERROR_DS_CANT_MOVE_APP_BASIC_GROUP + ERROR_DS_CANT_MOVE_APP_BASIC_GROUP + + + + No documentation. + + + ERROR_DS_CANT_MOVE_APP_QUERY_GROUP + ERROR_DS_CANT_MOVE_APP_QUERY_GROUP + + + + No documentation. + + + ERROR_DS_ROLE_NOT_VERIFIED + ERROR_DS_ROLE_NOT_VERIFIED + + + + No documentation. + + + ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL + ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL + + + + No documentation. + + + ERROR_DS_DOMAIN_RENAME_IN_PROGRESS + ERROR_DS_DOMAIN_RENAME_IN_PROGRESS + + + + No documentation. + + + ERROR_DS_EXISTING_AD_CHILD_NC + ERROR_DS_EXISTING_AD_CHILD_NC + + + + No documentation. + + + ERROR_DS_REPL_LIFETIME_EXCEEDED + ERROR_DS_REPL_LIFETIME_EXCEEDED + + + + No documentation. + + + ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER + ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER + + + + No documentation. + + + ERROR_DS_LDAP_SEND_QUEUE_FULL + ERROR_DS_LDAP_SEND_QUEUE_FULL + + + + No documentation. + + + ERROR_DS_DRA_OUT_SCHEDULE_WINDOW + ERROR_DS_DRA_OUT_SCHEDULE_WINDOW + + + + No documentation. + + + ERROR_DS_POLICY_NOT_KNOWN + ERROR_DS_POLICY_NOT_KNOWN + + + + No documentation. + + + ERROR_NO_SITE_SETTINGS_OBJECT + ERROR_NO_SITE_SETTINGS_OBJECT + + + + No documentation. + + + ERROR_NO_SECRETS + ERROR_NO_SECRETS + + + + No documentation. + + + ERROR_NO_WRITABLE_DC_FOUND + ERROR_NO_WRITABLE_DC_FOUND + + + + No documentation. + + + ERROR_DS_NO_SERVER_OBJECT + ERROR_DS_NO_SERVER_OBJECT + + + + No documentation. + + + ERROR_DS_NO_NTDSA_OBJECT + ERROR_DS_NO_NTDSA_OBJECT + + + + No documentation. + + + ERROR_DS_NON_ASQ_SEARCH + ERROR_DS_NON_ASQ_SEARCH + + + + No documentation. + + + ERROR_DS_AUDIT_FAILURE + ERROR_DS_AUDIT_FAILURE + + + + No documentation. + + + ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE + ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE + + + + No documentation. + + + ERROR_DS_INVALID_SEARCH_FLAG_TUPLE + ERROR_DS_INVALID_SEARCH_FLAG_TUPLE + + + + No documentation. + + + ERROR_DS_HIERARCHY_TABLE_TOO_DEEP + ERROR_DS_HIERARCHY_TABLE_TOO_DEEP + + + + No documentation. + + + ERROR_DS_DRA_CORRUPT_UTD_VECTOR + ERROR_DS_DRA_CORRUPT_UTD_VECTOR + + + + No documentation. + + + ERROR_DS_DRA_SECRETS_DENIED + ERROR_DS_DRA_SECRETS_DENIED + + + + No documentation. + + + ERROR_DS_RESERVED_MAPI_ID + ERROR_DS_RESERVED_MAPI_ID + + + + No documentation. + + + ERROR_DS_MAPI_ID_NOT_AVAILABLE + ERROR_DS_MAPI_ID_NOT_AVAILABLE + + + + No documentation. + + + ERROR_DS_DRA_MISSING_KRBTGT_SECRET + ERROR_DS_DRA_MISSING_KRBTGT_SECRET + + + + No documentation. + + + ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST + ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST + + + + No documentation. + + + ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST + ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST + + + + No documentation. + + + ERROR_INVALID_USER_PRINCIPAL_NAME + ERROR_INVALID_USER_PRINCIPAL_NAME + + + + No documentation. + + + ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS + ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS + + + + No documentation. + + + ERROR_DS_OID_NOT_FOUND + ERROR_DS_OID_NOT_FOUND + + + + No documentation. + + + ERROR_DS_DRA_RECYCLED_TARGET + ERROR_DS_DRA_RECYCLED_TARGET + + + + No documentation. + + + ERROR_IPSEC_QM_POLICY_EXISTS + ERROR_IPSEC_QM_POLICY_EXISTS + + + + No documentation. + + + ERROR_IPSEC_QM_POLICY_NOT_FOUND + ERROR_IPSEC_QM_POLICY_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_QM_POLICY_IN_USE + ERROR_IPSEC_QM_POLICY_IN_USE + + + + No documentation. + + + ERROR_IPSEC_MM_POLICY_EXISTS + ERROR_IPSEC_MM_POLICY_EXISTS + + + + No documentation. + + + ERROR_IPSEC_MM_POLICY_NOT_FOUND + ERROR_IPSEC_MM_POLICY_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_MM_POLICY_IN_USE + ERROR_IPSEC_MM_POLICY_IN_USE + + + + No documentation. + + + ERROR_IPSEC_MM_FILTER_EXISTS + ERROR_IPSEC_MM_FILTER_EXISTS + + + + No documentation. + + + ERROR_IPSEC_MM_FILTER_NOT_FOUND + ERROR_IPSEC_MM_FILTER_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_TRANSPORT_FILTER_EXISTS + ERROR_IPSEC_TRANSPORT_FILTER_EXISTS + + + + No documentation. + + + ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND + ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_MM_AUTH_EXISTS + ERROR_IPSEC_MM_AUTH_EXISTS + + + + No documentation. + + + ERROR_IPSEC_MM_AUTH_NOT_FOUND + ERROR_IPSEC_MM_AUTH_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_MM_AUTH_IN_USE + ERROR_IPSEC_MM_AUTH_IN_USE + + + + No documentation. + + + ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND + ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND + ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND + ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_TUNNEL_FILTER_EXISTS + ERROR_IPSEC_TUNNEL_FILTER_EXISTS + + + + No documentation. + + + ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND + ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND + + + + No documentation. + + + ERROR_IPSEC_MM_FILTER_PENDING_DELETION + ERROR_IPSEC_MM_FILTER_PENDING_DELETION + + + + No documentation. + + + ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION + ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION + + + + No documentation. + + + ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION + ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION + + + + No documentation. + + + ERROR_IPSEC_MM_POLICY_PENDING_DELETION + ERROR_IPSEC_MM_POLICY_PENDING_DELETION + + + + No documentation. + + + ERROR_IPSEC_MM_AUTH_PENDING_DELETION + ERROR_IPSEC_MM_AUTH_PENDING_DELETION + + + + No documentation. + + + ERROR_IPSEC_QM_POLICY_PENDING_DELETION + ERROR_IPSEC_QM_POLICY_PENDING_DELETION + + + + No documentation. + + + ERROR_IPSEC_IKE_NEG_STATUS_BEGIN + ERROR_IPSEC_IKE_NEG_STATUS_BEGIN + + + + No documentation. + + + ERROR_IPSEC_IKE_AUTH_FAIL + ERROR_IPSEC_IKE_AUTH_FAIL + + + + No documentation. + + + ERROR_IPSEC_IKE_ATTRIB_FAIL + ERROR_IPSEC_IKE_ATTRIB_FAIL + + + + No documentation. + + + ERROR_IPSEC_IKE_NEGOTIATION_PENDING + ERROR_IPSEC_IKE_NEGOTIATION_PENDING + + + + No documentation. + + + ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR + ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR + + + + No documentation. + + + ERROR_IPSEC_IKE_TIMED_OUT + ERROR_IPSEC_IKE_TIMED_OUT + + + + No documentation. + + + ERROR_IPSEC_IKE_NO_CERT + ERROR_IPSEC_IKE_NO_CERT + + + + No documentation. + + + ERROR_IPSEC_IKE_SA_DELETED + ERROR_IPSEC_IKE_SA_DELETED + + + + No documentation. + + + ERROR_IPSEC_IKE_SA_REAPED + ERROR_IPSEC_IKE_SA_REAPED + + + + No documentation. + + + ERROR_IPSEC_IKE_MM_ACQUIRE_DROP + ERROR_IPSEC_IKE_MM_ACQUIRE_DROP + + + + No documentation. + + + ERROR_IPSEC_IKE_QM_ACQUIRE_DROP + ERROR_IPSEC_IKE_QM_ACQUIRE_DROP + + + + No documentation. + + + ERROR_IPSEC_IKE_QUEUE_DROP_MM + ERROR_IPSEC_IKE_QUEUE_DROP_MM + + + + No documentation. + + + ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM + ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM + + + + No documentation. + + + ERROR_IPSEC_IKE_DROP_NO_RESPONSE + ERROR_IPSEC_IKE_DROP_NO_RESPONSE + + + + No documentation. + + + ERROR_IPSEC_IKE_MM_DELAY_DROP + ERROR_IPSEC_IKE_MM_DELAY_DROP + + + + No documentation. + + + ERROR_IPSEC_IKE_QM_DELAY_DROP + ERROR_IPSEC_IKE_QM_DELAY_DROP + + + + No documentation. + + + ERROR_IPSEC_IKE_ERROR + ERROR_IPSEC_IKE_ERROR + + + + No documentation. + + + ERROR_IPSEC_IKE_CRL_FAILED + ERROR_IPSEC_IKE_CRL_FAILED + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_KEY_USAGE + ERROR_IPSEC_IKE_INVALID_KEY_USAGE + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_CERT_TYPE + ERROR_IPSEC_IKE_INVALID_CERT_TYPE + + + + No documentation. + + + ERROR_IPSEC_IKE_NO_PRIVATE_KEY + ERROR_IPSEC_IKE_NO_PRIVATE_KEY + + + + No documentation. + + + ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY + ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY + + + + No documentation. + + + ERROR_IPSEC_IKE_DH_FAIL + ERROR_IPSEC_IKE_DH_FAIL + + + + No documentation. + + + ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED + ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_HEADER + ERROR_IPSEC_IKE_INVALID_HEADER + + + + No documentation. + + + ERROR_IPSEC_IKE_NO_POLICY + ERROR_IPSEC_IKE_NO_POLICY + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_SIGNATURE + ERROR_IPSEC_IKE_INVALID_SIGNATURE + + + + No documentation. + + + ERROR_IPSEC_IKE_KERBEROS_ERROR + ERROR_IPSEC_IKE_KERBEROS_ERROR + + + + No documentation. + + + ERROR_IPSEC_IKE_NO_PUBLIC_KEY + ERROR_IPSEC_IKE_NO_PUBLIC_KEY + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR + ERROR_IPSEC_IKE_PROCESS_ERR + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_SA + ERROR_IPSEC_IKE_PROCESS_ERR_SA + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_PROP + ERROR_IPSEC_IKE_PROCESS_ERR_PROP + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_TRANS + ERROR_IPSEC_IKE_PROCESS_ERR_TRANS + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_KE + ERROR_IPSEC_IKE_PROCESS_ERR_KE + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_ID + ERROR_IPSEC_IKE_PROCESS_ERR_ID + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_CERT + ERROR_IPSEC_IKE_PROCESS_ERR_CERT + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ + ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_HASH + ERROR_IPSEC_IKE_PROCESS_ERR_HASH + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_SIG + ERROR_IPSEC_IKE_PROCESS_ERR_SIG + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_NONCE + ERROR_IPSEC_IKE_PROCESS_ERR_NONCE + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY + ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_DELETE + ERROR_IPSEC_IKE_PROCESS_ERR_DELETE + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR + ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_PAYLOAD + ERROR_IPSEC_IKE_INVALID_PAYLOAD + + + + No documentation. + + + ERROR_IPSEC_IKE_LOAD_SOFT_SA + ERROR_IPSEC_IKE_LOAD_SOFT_SA + + + + No documentation. + + + ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN + ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_COOKIE + ERROR_IPSEC_IKE_INVALID_COOKIE + + + + No documentation. + + + ERROR_IPSEC_IKE_NO_PEER_CERT + ERROR_IPSEC_IKE_NO_PEER_CERT + + + + No documentation. + + + ERROR_IPSEC_IKE_PEER_CRL_FAILED + ERROR_IPSEC_IKE_PEER_CRL_FAILED + + + + No documentation. + + + ERROR_IPSEC_IKE_POLICY_CHANGE + ERROR_IPSEC_IKE_POLICY_CHANGE + + + + No documentation. + + + ERROR_IPSEC_IKE_NO_MM_POLICY + ERROR_IPSEC_IKE_NO_MM_POLICY + + + + No documentation. + + + ERROR_IPSEC_IKE_NOTCBPRIV + ERROR_IPSEC_IKE_NOTCBPRIV + + + + No documentation. + + + ERROR_IPSEC_IKE_SECLOADFAIL + ERROR_IPSEC_IKE_SECLOADFAIL + + + + No documentation. + + + ERROR_IPSEC_IKE_FAILSSPINIT + ERROR_IPSEC_IKE_FAILSSPINIT + + + + No documentation. + + + ERROR_IPSEC_IKE_FAILQUERYSSP + ERROR_IPSEC_IKE_FAILQUERYSSP + + + + No documentation. + + + ERROR_IPSEC_IKE_SRVACQFAIL + ERROR_IPSEC_IKE_SRVACQFAIL + + + + No documentation. + + + ERROR_IPSEC_IKE_SRVQUERYCRED + ERROR_IPSEC_IKE_SRVQUERYCRED + + + + No documentation. + + + ERROR_IPSEC_IKE_GETSPIFAIL + ERROR_IPSEC_IKE_GETSPIFAIL + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_FILTER + ERROR_IPSEC_IKE_INVALID_FILTER + + + + No documentation. + + + ERROR_IPSEC_IKE_OUT_OF_MEMORY + ERROR_IPSEC_IKE_OUT_OF_MEMORY + + + + No documentation. + + + ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED + ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_POLICY + ERROR_IPSEC_IKE_INVALID_POLICY + + + + No documentation. + + + ERROR_IPSEC_IKE_UNKNOWN_DOI + ERROR_IPSEC_IKE_UNKNOWN_DOI + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_SITUATION + ERROR_IPSEC_IKE_INVALID_SITUATION + + + + No documentation. + + + ERROR_IPSEC_IKE_DH_FAILURE + ERROR_IPSEC_IKE_DH_FAILURE + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_GROUP + ERROR_IPSEC_IKE_INVALID_GROUP + + + + No documentation. + + + ERROR_IPSEC_IKE_ENCRYPT + ERROR_IPSEC_IKE_ENCRYPT + + + + No documentation. + + + ERROR_IPSEC_IKE_DECRYPT + ERROR_IPSEC_IKE_DECRYPT + + + + No documentation. + + + ERROR_IPSEC_IKE_POLICY_MATCH + ERROR_IPSEC_IKE_POLICY_MATCH + + + + No documentation. + + + ERROR_IPSEC_IKE_UNSUPPORTED_ID + ERROR_IPSEC_IKE_UNSUPPORTED_ID + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_HASH + ERROR_IPSEC_IKE_INVALID_HASH + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_HASH_ALG + ERROR_IPSEC_IKE_INVALID_HASH_ALG + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_HASH_SIZE + ERROR_IPSEC_IKE_INVALID_HASH_SIZE + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG + ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_AUTH_ALG + ERROR_IPSEC_IKE_INVALID_AUTH_ALG + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_SIG + ERROR_IPSEC_IKE_INVALID_SIG + + + + No documentation. + + + ERROR_IPSEC_IKE_LOAD_FAILED + ERROR_IPSEC_IKE_LOAD_FAILED + + + + No documentation. + + + ERROR_IPSEC_IKE_RPC_DELETE + ERROR_IPSEC_IKE_RPC_DELETE + + + + No documentation. + + + ERROR_IPSEC_IKE_BENIGN_REINIT + ERROR_IPSEC_IKE_BENIGN_REINIT + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY + ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION + ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN + ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN + + + + No documentation. + + + ERROR_IPSEC_IKE_MM_LIMIT + ERROR_IPSEC_IKE_MM_LIMIT + + + + No documentation. + + + ERROR_IPSEC_IKE_NEGOTIATION_DISABLED + ERROR_IPSEC_IKE_NEGOTIATION_DISABLED + + + + No documentation. + + + ERROR_IPSEC_IKE_QM_LIMIT + ERROR_IPSEC_IKE_QM_LIMIT + + + + No documentation. + + + ERROR_IPSEC_IKE_MM_EXPIRED + ERROR_IPSEC_IKE_MM_EXPIRED + + + + No documentation. + + + ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID + ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID + + + + No documentation. + + + ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH + ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH + + + + No documentation. + + + ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID + ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD + ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD + + + + No documentation. + + + ERROR_IPSEC_IKE_DOS_COOKIE_SENT + ERROR_IPSEC_IKE_DOS_COOKIE_SENT + + + + No documentation. + + + ERROR_IPSEC_IKE_SHUTTING_DOWN + ERROR_IPSEC_IKE_SHUTTING_DOWN + + + + No documentation. + + + ERROR_IPSEC_IKE_CGA_AUTH_FAILED + ERROR_IPSEC_IKE_CGA_AUTH_FAILED + + + + No documentation. + + + ERROR_IPSEC_IKE_PROCESS_ERR_NATOA + ERROR_IPSEC_IKE_PROCESS_ERR_NATOA + + + + No documentation. + + + ERROR_IPSEC_IKE_INVALID_MM_FOR_QM + ERROR_IPSEC_IKE_INVALID_MM_FOR_QM + + + + No documentation. + + + ERROR_IPSEC_IKE_QM_EXPIRED + ERROR_IPSEC_IKE_QM_EXPIRED + + + + No documentation. + + + ERROR_IPSEC_IKE_TOO_MANY_FILTERS + ERROR_IPSEC_IKE_TOO_MANY_FILTERS + + + + No documentation. + + + ERROR_IPSEC_IKE_NEG_STATUS_END + ERROR_IPSEC_IKE_NEG_STATUS_END + + + + No documentation. + + + ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL + ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL + + + + No documentation. + + + ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE + ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE + + + + No documentation. + + + ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING + ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING + + + + No documentation. + + + ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING + ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING + + + + No documentation. + + + ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS + ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS + + + + No documentation. + + + ERROR_IPSEC_IKE_RATELIMIT_DROP + ERROR_IPSEC_IKE_RATELIMIT_DROP + + + + No documentation. + + + ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE + ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE + + + + No documentation. + + + ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE + ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE + + + + No documentation. + + + ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE + ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE + + + + No documentation. + + + ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY + ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY + + + + No documentation. + + + ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE + ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE + + + + No documentation. + + + ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END + ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END + + + + No documentation. + + + ERROR_IPSEC_BAD_SPI + ERROR_IPSEC_BAD_SPI + + + + No documentation. + + + ERROR_IPSEC_SA_LIFETIME_EXPIRED + ERROR_IPSEC_SA_LIFETIME_EXPIRED + + + + No documentation. + + + ERROR_IPSEC_WRONG_SA + ERROR_IPSEC_WRONG_SA + + + + No documentation. + + + ERROR_IPSEC_REPLAY_CHECK_FAILED + ERROR_IPSEC_REPLAY_CHECK_FAILED + + + + No documentation. + + + ERROR_IPSEC_INVALID_PACKET + ERROR_IPSEC_INVALID_PACKET + + + + No documentation. + + + ERROR_IPSEC_INTEGRITY_CHECK_FAILED + ERROR_IPSEC_INTEGRITY_CHECK_FAILED + + + + No documentation. + + + ERROR_IPSEC_CLEAR_TEXT_DROP + ERROR_IPSEC_CLEAR_TEXT_DROP + + + + No documentation. + + + ERROR_IPSEC_AUTH_FIREWALL_DROP + ERROR_IPSEC_AUTH_FIREWALL_DROP + + + + No documentation. + + + ERROR_IPSEC_THROTTLE_DROP + ERROR_IPSEC_THROTTLE_DROP + + + + No documentation. + + + ERROR_IPSEC_DOSP_BLOCK + ERROR_IPSEC_DOSP_BLOCK + + + + No documentation. + + + ERROR_IPSEC_DOSP_RECEIVED_MULTICAST + ERROR_IPSEC_DOSP_RECEIVED_MULTICAST + + + + No documentation. + + + ERROR_IPSEC_DOSP_INVALID_PACKET + ERROR_IPSEC_DOSP_INVALID_PACKET + + + + No documentation. + + + ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED + ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED + + + + No documentation. + + + ERROR_IPSEC_DOSP_MAX_ENTRIES + ERROR_IPSEC_DOSP_MAX_ENTRIES + + + + No documentation. + + + ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED + ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED + + + + No documentation. + + + ERROR_IPSEC_DOSP_NOT_INSTALLED + ERROR_IPSEC_DOSP_NOT_INSTALLED + + + + No documentation. + + + ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES + ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES + + + + No documentation. + + + ERROR_SXS_SECTION_NOT_FOUND + ERROR_SXS_SECTION_NOT_FOUND + + + + No documentation. + + + ERROR_SXS_CANT_GEN_ACTCTX + ERROR_SXS_CANT_GEN_ACTCTX + + + + No documentation. + + + ERROR_SXS_INVALID_ACTCTXDATA_FORMAT + ERROR_SXS_INVALID_ACTCTXDATA_FORMAT + + + + No documentation. + + + ERROR_SXS_ASSEMBLY_NOT_FOUND + ERROR_SXS_ASSEMBLY_NOT_FOUND + + + + No documentation. + + + ERROR_SXS_MANIFEST_FORMAT_ERROR + ERROR_SXS_MANIFEST_FORMAT_ERROR + + + + No documentation. + + + ERROR_SXS_MANIFEST_PARSE_ERROR + ERROR_SXS_MANIFEST_PARSE_ERROR + + + + No documentation. + + + ERROR_SXS_ACTIVATION_CONTEXT_DISABLED + ERROR_SXS_ACTIVATION_CONTEXT_DISABLED + + + + No documentation. + + + ERROR_SXS_KEY_NOT_FOUND + ERROR_SXS_KEY_NOT_FOUND + + + + No documentation. + + + ERROR_SXS_VERSION_CONFLICT + ERROR_SXS_VERSION_CONFLICT + + + + No documentation. + + + ERROR_SXS_WRONG_SECTION_TYPE + ERROR_SXS_WRONG_SECTION_TYPE + + + + No documentation. + + + ERROR_SXS_THREAD_QUERIES_DISABLED + ERROR_SXS_THREAD_QUERIES_DISABLED + + + + No documentation. + + + ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET + ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET + + + + No documentation. + + + ERROR_SXS_UNKNOWN_ENCODING_GROUP + ERROR_SXS_UNKNOWN_ENCODING_GROUP + + + + No documentation. + + + ERROR_SXS_UNKNOWN_ENCODING + ERROR_SXS_UNKNOWN_ENCODING + + + + No documentation. + + + ERROR_SXS_INVALID_XML_NAMESPACE_URI + ERROR_SXS_INVALID_XML_NAMESPACE_URI + + + + No documentation. + + + ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED + ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED + + + + No documentation. + + + ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED + ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED + + + + No documentation. + + + ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE + ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE + + + + No documentation. + + + ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE + ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE + + + + No documentation. + + + ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE + ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE + + + + No documentation. + + + ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT + ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT + + + + No documentation. + + + ERROR_SXS_DUPLICATE_DLL_NAME + ERROR_SXS_DUPLICATE_DLL_NAME + + + + No documentation. + + + ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME + ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME + + + + No documentation. + + + ERROR_SXS_DUPLICATE_CLSID + ERROR_SXS_DUPLICATE_CLSID + + + + No documentation. + + + ERROR_SXS_DUPLICATE_IID + ERROR_SXS_DUPLICATE_IID + + + + No documentation. + + + ERROR_SXS_DUPLICATE_TLBID + ERROR_SXS_DUPLICATE_TLBID + + + + No documentation. + + + ERROR_SXS_DUPLICATE_PROGID + ERROR_SXS_DUPLICATE_PROGID + + + + No documentation. + + + ERROR_SXS_DUPLICATE_ASSEMBLY_NAME + ERROR_SXS_DUPLICATE_ASSEMBLY_NAME + + + + No documentation. + + + ERROR_SXS_FILE_HASH_MISMATCH + ERROR_SXS_FILE_HASH_MISMATCH + + + + No documentation. + + + ERROR_SXS_POLICY_PARSE_ERROR + ERROR_SXS_POLICY_PARSE_ERROR + + + + No documentation. + + + ERROR_SXS_XML_E_MISSINGQUOTE + ERROR_SXS_XML_E_MISSINGQUOTE + + + + No documentation. + + + ERROR_SXS_XML_E_COMMENTSYNTAX + ERROR_SXS_XML_E_COMMENTSYNTAX + + + + No documentation. + + + ERROR_SXS_XML_E_BADSTARTNAMECHAR + ERROR_SXS_XML_E_BADSTARTNAMECHAR + + + + No documentation. + + + ERROR_SXS_XML_E_BADNAMECHAR + ERROR_SXS_XML_E_BADNAMECHAR + + + + No documentation. + + + ERROR_SXS_XML_E_BADCHARINSTRING + ERROR_SXS_XML_E_BADCHARINSTRING + + + + No documentation. + + + ERROR_SXS_XML_E_XMLDECLSYNTAX + ERROR_SXS_XML_E_XMLDECLSYNTAX + + + + No documentation. + + + ERROR_SXS_XML_E_BADCHARDATA + ERROR_SXS_XML_E_BADCHARDATA + + + + No documentation. + + + ERROR_SXS_XML_E_MISSINGWHITESPACE + ERROR_SXS_XML_E_MISSINGWHITESPACE + + + + No documentation. + + + ERROR_SXS_XML_E_EXPECTINGTAGEND + ERROR_SXS_XML_E_EXPECTINGTAGEND + + + + No documentation. + + + ERROR_SXS_XML_E_MISSINGSEMICOLON + ERROR_SXS_XML_E_MISSINGSEMICOLON + + + + No documentation. + + + ERROR_SXS_XML_E_UNBALANCEDPAREN + ERROR_SXS_XML_E_UNBALANCEDPAREN + + + + No documentation. + + + ERROR_SXS_XML_E_INTERNALERROR + ERROR_SXS_XML_E_INTERNALERROR + + + + No documentation. + + + ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE + ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE + + + + No documentation. + + + ERROR_SXS_XML_E_INCOMPLETE_ENCODING + ERROR_SXS_XML_E_INCOMPLETE_ENCODING + + + + No documentation. + + + ERROR_SXS_XML_E_MISSING_PAREN + ERROR_SXS_XML_E_MISSING_PAREN + + + + No documentation. + + + ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE + ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE + + + + No documentation. + + + ERROR_SXS_XML_E_MULTIPLE_COLONS + ERROR_SXS_XML_E_MULTIPLE_COLONS + + + + No documentation. + + + ERROR_SXS_XML_E_INVALID_DECIMAL + ERROR_SXS_XML_E_INVALID_DECIMAL + + + + No documentation. + + + ERROR_SXS_XML_E_INVALID_HEXIDECIMAL + ERROR_SXS_XML_E_INVALID_HEXIDECIMAL + + + + No documentation. + + + ERROR_SXS_XML_E_INVALID_UNICODE + ERROR_SXS_XML_E_INVALID_UNICODE + + + + No documentation. + + + ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK + ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK + + + + No documentation. + + + ERROR_SXS_XML_E_UNEXPECTEDENDTAG + ERROR_SXS_XML_E_UNEXPECTEDENDTAG + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDTAG + ERROR_SXS_XML_E_UNCLOSEDTAG + + + + No documentation. + + + ERROR_SXS_XML_E_DUPLICATEATTRIBUTE + ERROR_SXS_XML_E_DUPLICATEATTRIBUTE + + + + No documentation. + + + ERROR_SXS_XML_E_MULTIPLEROOTS + ERROR_SXS_XML_E_MULTIPLEROOTS + + + + No documentation. + + + ERROR_SXS_XML_E_INVALIDATROOTLEVEL + ERROR_SXS_XML_E_INVALIDATROOTLEVEL + + + + No documentation. + + + ERROR_SXS_XML_E_BADXMLDECL + ERROR_SXS_XML_E_BADXMLDECL + + + + No documentation. + + + ERROR_SXS_XML_E_MISSINGROOT + ERROR_SXS_XML_E_MISSINGROOT + + + + No documentation. + + + ERROR_SXS_XML_E_UNEXPECTEDEOF + ERROR_SXS_XML_E_UNEXPECTEDEOF + + + + No documentation. + + + ERROR_SXS_XML_E_BADPEREFINSUBSET + ERROR_SXS_XML_E_BADPEREFINSUBSET + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDSTARTTAG + ERROR_SXS_XML_E_UNCLOSEDSTARTTAG + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDENDTAG + ERROR_SXS_XML_E_UNCLOSEDENDTAG + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDSTRING + ERROR_SXS_XML_E_UNCLOSEDSTRING + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDCOMMENT + ERROR_SXS_XML_E_UNCLOSEDCOMMENT + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDDECL + ERROR_SXS_XML_E_UNCLOSEDDECL + + + + No documentation. + + + ERROR_SXS_XML_E_UNCLOSEDCDATA + ERROR_SXS_XML_E_UNCLOSEDCDATA + + + + No documentation. + + + ERROR_SXS_XML_E_RESERVEDNAMESPACE + ERROR_SXS_XML_E_RESERVEDNAMESPACE + + + + No documentation. + + + ERROR_SXS_XML_E_INVALIDENCODING + ERROR_SXS_XML_E_INVALIDENCODING + + + + No documentation. + + + ERROR_SXS_XML_E_INVALIDSWITCH + ERROR_SXS_XML_E_INVALIDSWITCH + + + + No documentation. + + + ERROR_SXS_XML_E_BADXMLCASE + ERROR_SXS_XML_E_BADXMLCASE + + + + No documentation. + + + ERROR_SXS_XML_E_INVALID_STANDALONE + ERROR_SXS_XML_E_INVALID_STANDALONE + + + + No documentation. + + + ERROR_SXS_XML_E_UNEXPECTED_STANDALONE + ERROR_SXS_XML_E_UNEXPECTED_STANDALONE + + + + No documentation. + + + ERROR_SXS_XML_E_INVALID_VERSION + ERROR_SXS_XML_E_INVALID_VERSION + + + + No documentation. + + + ERROR_SXS_XML_E_MISSINGEQUALS + ERROR_SXS_XML_E_MISSINGEQUALS + + + + No documentation. + + + ERROR_SXS_PROTECTION_RECOVERY_FAILED + ERROR_SXS_PROTECTION_RECOVERY_FAILED + + + + No documentation. + + + ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT + ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT + + + + No documentation. + + + ERROR_SXS_PROTECTION_CATALOG_NOT_VALID + ERROR_SXS_PROTECTION_CATALOG_NOT_VALID + + + + No documentation. + + + ERROR_SXS_UNTRANSLATABLE_HRESULT + ERROR_SXS_UNTRANSLATABLE_HRESULT + + + + No documentation. + + + ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING + ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING + + + + No documentation. + + + ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE + ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE + + + + No documentation. + + + ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME + ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME + + + + No documentation. + + + ERROR_SXS_ASSEMBLY_MISSING + ERROR_SXS_ASSEMBLY_MISSING + + + + No documentation. + + + ERROR_SXS_CORRUPT_ACTIVATION_STACK + ERROR_SXS_CORRUPT_ACTIVATION_STACK + + + + No documentation. + + + ERROR_SXS_CORRUPTION + ERROR_SXS_CORRUPTION + + + + No documentation. + + + ERROR_SXS_EARLY_DEACTIVATION + ERROR_SXS_EARLY_DEACTIVATION + + + + No documentation. + + + ERROR_SXS_INVALID_DEACTIVATION + ERROR_SXS_INVALID_DEACTIVATION + + + + No documentation. + + + ERROR_SXS_MULTIPLE_DEACTIVATION + ERROR_SXS_MULTIPLE_DEACTIVATION + + + + No documentation. + + + ERROR_SXS_PROCESS_TERMINATION_REQUESTED + ERROR_SXS_PROCESS_TERMINATION_REQUESTED + + + + No documentation. + + + ERROR_SXS_RELEASE_ACTIVATION_CONTEXT + ERROR_SXS_RELEASE_ACTIVATION_CONTEXT + + + + No documentation. + + + ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY + ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY + + + + No documentation. + + + ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE + ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE + + + + No documentation. + + + ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME + ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME + + + + No documentation. + + + ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE + ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE + + + + No documentation. + + + ERROR_SXS_IDENTITY_PARSE_ERROR + ERROR_SXS_IDENTITY_PARSE_ERROR + + + + No documentation. + + + ERROR_MALFORMED_SUBSTITUTION_STRING + ERROR_MALFORMED_SUBSTITUTION_STRING + + + + No documentation. + + + ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN + ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN + + + + No documentation. + + + ERROR_UNMAPPED_SUBSTITUTION_STRING + ERROR_UNMAPPED_SUBSTITUTION_STRING + + + + No documentation. + + + ERROR_SXS_ASSEMBLY_NOT_LOCKED + ERROR_SXS_ASSEMBLY_NOT_LOCKED + + + + No documentation. + + + ERROR_SXS_COMPONENT_STORE_CORRUPT + ERROR_SXS_COMPONENT_STORE_CORRUPT + + + + No documentation. + + + ERROR_ADVANCED_INSTALLER_FAILED + ERROR_ADVANCED_INSTALLER_FAILED + + + + No documentation. + + + ERROR_XML_ENCODING_MISMATCH + ERROR_XML_ENCODING_MISMATCH + + + + No documentation. + + + ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT + ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT + + + + No documentation. + + + ERROR_SXS_IDENTITIES_DIFFERENT + ERROR_SXS_IDENTITIES_DIFFERENT + + + + No documentation. + + + ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT + ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT + + + + No documentation. + + + ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY + ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY + + + + No documentation. + + + ERROR_SXS_MANIFEST_TOO_BIG + ERROR_SXS_MANIFEST_TOO_BIG + + + + No documentation. + + + ERROR_SXS_SETTING_NOT_REGISTERED + ERROR_SXS_SETTING_NOT_REGISTERED + + + + No documentation. + + + ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE + ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE + + + + No documentation. + + + ERROR_SMI_PRIMITIVE_INSTALLER_FAILED + ERROR_SMI_PRIMITIVE_INSTALLER_FAILED + + + + No documentation. + + + ERROR_GENERIC_COMMAND_FAILED + ERROR_GENERIC_COMMAND_FAILED + + + + No documentation. + + + ERROR_SXS_FILE_HASH_MISSING + ERROR_SXS_FILE_HASH_MISSING + + + + No documentation. + + + ERROR_EVT_INVALID_CHANNEL_PATH + ERROR_EVT_INVALID_CHANNEL_PATH + + + + No documentation. + + + ERROR_EVT_INVALID_QUERY + ERROR_EVT_INVALID_QUERY + + + + No documentation. + + + ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND + ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND + ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_INVALID_PUBLISHER_NAME + ERROR_EVT_INVALID_PUBLISHER_NAME + + + + No documentation. + + + ERROR_EVT_INVALID_EVENT_DATA + ERROR_EVT_INVALID_EVENT_DATA + + + + No documentation. + + + ERROR_EVT_CHANNEL_NOT_FOUND + ERROR_EVT_CHANNEL_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_MALFORMED_XML_TEXT + ERROR_EVT_MALFORMED_XML_TEXT + + + + No documentation. + + + ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL + ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL + + + + No documentation. + + + ERROR_EVT_CONFIGURATION_ERROR + ERROR_EVT_CONFIGURATION_ERROR + + + + No documentation. + + + ERROR_EVT_QUERY_RESULT_STALE + ERROR_EVT_QUERY_RESULT_STALE + + + + No documentation. + + + ERROR_EVT_QUERY_RESULT_INVALID_POSITION + ERROR_EVT_QUERY_RESULT_INVALID_POSITION + + + + No documentation. + + + ERROR_EVT_NON_VALIDATING_MSXML + ERROR_EVT_NON_VALIDATING_MSXML + + + + No documentation. + + + ERROR_EVT_FILTER_ALREADYSCOPED + ERROR_EVT_FILTER_ALREADYSCOPED + + + + No documentation. + + + ERROR_EVT_FILTER_NOTELTSET + ERROR_EVT_FILTER_NOTELTSET + + + + No documentation. + + + ERROR_EVT_FILTER_INVARG + ERROR_EVT_FILTER_INVARG + + + + No documentation. + + + ERROR_EVT_FILTER_INVTEST + ERROR_EVT_FILTER_INVTEST + + + + No documentation. + + + ERROR_EVT_FILTER_INVTYPE + ERROR_EVT_FILTER_INVTYPE + + + + No documentation. + + + ERROR_EVT_FILTER_PARSEERR + ERROR_EVT_FILTER_PARSEERR + + + + No documentation. + + + ERROR_EVT_FILTER_UNSUPPORTEDOP + ERROR_EVT_FILTER_UNSUPPORTEDOP + + + + No documentation. + + + ERROR_EVT_FILTER_UNEXPECTEDTOKEN + ERROR_EVT_FILTER_UNEXPECTEDTOKEN + + + + No documentation. + + + ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL + ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL + + + + No documentation. + + + ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE + ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE + + + + No documentation. + + + ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE + ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE + + + + No documentation. + + + ERROR_EVT_CHANNEL_CANNOT_ACTIVATE + ERROR_EVT_CHANNEL_CANNOT_ACTIVATE + + + + No documentation. + + + ERROR_EVT_FILTER_TOO_COMPLEX + ERROR_EVT_FILTER_TOO_COMPLEX + + + + No documentation. + + + ERROR_EVT_MESSAGE_NOT_FOUND + ERROR_EVT_MESSAGE_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_MESSAGE_ID_NOT_FOUND + ERROR_EVT_MESSAGE_ID_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_UNRESOLVED_VALUE_INSERT + ERROR_EVT_UNRESOLVED_VALUE_INSERT + + + + No documentation. + + + ERROR_EVT_UNRESOLVED_PARAMETER_INSERT + ERROR_EVT_UNRESOLVED_PARAMETER_INSERT + + + + No documentation. + + + ERROR_EVT_MAX_INSERTS_REACHED + ERROR_EVT_MAX_INSERTS_REACHED + + + + No documentation. + + + ERROR_EVT_EVENT_DEFINITION_NOT_FOUND + ERROR_EVT_EVENT_DEFINITION_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND + ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND + + + + No documentation. + + + ERROR_EVT_VERSION_TOO_OLD + ERROR_EVT_VERSION_TOO_OLD + + + + No documentation. + + + ERROR_EVT_VERSION_TOO_NEW + ERROR_EVT_VERSION_TOO_NEW + + + + No documentation. + + + ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY + ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY + + + + No documentation. + + + ERROR_EVT_PUBLISHER_DISABLED + ERROR_EVT_PUBLISHER_DISABLED + + + + No documentation. + + + ERROR_EVT_FILTER_OUT_OF_RANGE + ERROR_EVT_FILTER_OUT_OF_RANGE + + + + No documentation. + + + ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE + ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE + + + + No documentation. + + + ERROR_EC_LOG_DISABLED + ERROR_EC_LOG_DISABLED + + + + No documentation. + + + ERROR_EC_CIRCULAR_FORWARDING + ERROR_EC_CIRCULAR_FORWARDING + + + + No documentation. + + + ERROR_EC_CREDSTORE_FULL + ERROR_EC_CREDSTORE_FULL + + + + No documentation. + + + ERROR_EC_CRED_NOT_FOUND + ERROR_EC_CRED_NOT_FOUND + + + + No documentation. + + + ERROR_EC_NO_ACTIVE_CHANNEL + ERROR_EC_NO_ACTIVE_CHANNEL + + + + No documentation. + + + ERROR_MUI_FILE_NOT_FOUND + ERROR_MUI_FILE_NOT_FOUND + + + + No documentation. + + + ERROR_MUI_INVALID_FILE + ERROR_MUI_INVALID_FILE + + + + No documentation. + + + ERROR_MUI_INVALID_RC_CONFIG + ERROR_MUI_INVALID_RC_CONFIG + + + + No documentation. + + + ERROR_MUI_INVALID_LOCALE_NAME + ERROR_MUI_INVALID_LOCALE_NAME + + + + No documentation. + + + ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME + ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME + + + + No documentation. + + + ERROR_MUI_FILE_NOT_LOADED + ERROR_MUI_FILE_NOT_LOADED + + + + No documentation. + + + ERROR_RESOURCE_ENUM_USER_STOP + ERROR_RESOURCE_ENUM_USER_STOP + + + + No documentation. + + + ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED + ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED + + + + No documentation. + + + ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME + ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME + + + + No documentation. + + + ERROR_MCA_INVALID_CAPABILITIES_STRING + ERROR_MCA_INVALID_CAPABILITIES_STRING + + + + No documentation. + + + ERROR_MCA_INVALID_VCP_VERSION + ERROR_MCA_INVALID_VCP_VERSION + + + + No documentation. + + + ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION + ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION + + + + No documentation. + + + ERROR_MCA_MCCS_VERSION_MISMATCH + ERROR_MCA_MCCS_VERSION_MISMATCH + + + + No documentation. + + + ERROR_MCA_UNSUPPORTED_MCCS_VERSION + ERROR_MCA_UNSUPPORTED_MCCS_VERSION + + + + No documentation. + + + ERROR_MCA_INTERNAL_ERROR + ERROR_MCA_INTERNAL_ERROR + + + + No documentation. + + + ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED + ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED + + + + No documentation. + + + ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE + ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE + + + + No documentation. + + + ERROR_AMBIGUOUS_SYSTEM_DEVICE + ERROR_AMBIGUOUS_SYSTEM_DEVICE + + + + No documentation. + + + ERROR_SYSTEM_DEVICE_NOT_FOUND + ERROR_SYSTEM_DEVICE_NOT_FOUND + + + + No documentation. + + + ERROR_HASH_NOT_SUPPORTED + ERROR_HASH_NOT_SUPPORTED + + + + No documentation. + + + ERROR_HASH_NOT_PRESENT + ERROR_HASH_NOT_PRESENT + + + + No documentation. + + + ERROR_AUDITING_DISABLED + ERROR_AUDITING_DISABLED + + + + No documentation. + + + ERROR_ALL_SIDS_FILTERED + ERROR_ALL_SIDS_FILTERED + + + + No documentation. + + + ERROR_BIZRULES_NOT_ENABLED + ERROR_BIZRULES_NOT_ENABLED + + + + No documentation. + + + ERROR_CRED_REQUIRES_CONFIRMATION + ERROR_CRED_REQUIRES_CONFIRMATION + + + + No documentation. + + + ERROR_FLT_IO_COMPLETE + ERROR_FLT_IO_COMPLETE + + + + No documentation. + + + ERROR_FLT_NO_HANDLER_DEFINED + ERROR_FLT_NO_HANDLER_DEFINED + + + + No documentation. + + + ERROR_FLT_CONTEXT_ALREADY_DEFINED + ERROR_FLT_CONTEXT_ALREADY_DEFINED + + + + No documentation. + + + ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST + ERROR_FLT_INVALID_ASYNCHRONOUS_REQUEST + + + + No documentation. + + + ERROR_FLT_DISALLOW_FAST_IO + ERROR_FLT_DISALLOW_FAST_IO + + + + No documentation. + + + ERROR_FLT_INVALID_NAME_REQUEST + ERROR_FLT_INVALID_NAME_REQUEST + + + + No documentation. + + + ERROR_FLT_NOT_SAFE_TO_POST_OPERATION + ERROR_FLT_NOT_SAFE_TO_POST_OPERATION + + + + No documentation. + + + ERROR_FLT_NOT_INITIALIZED + ERROR_FLT_NOT_INITIALIZED + + + + No documentation. + + + ERROR_FLT_FILTER_NOT_READY + ERROR_FLT_FILTER_NOT_READY + + + + No documentation. + + + ERROR_FLT_POST_OPERATION_CLEANUP + ERROR_FLT_POST_OPERATION_CLEANUP + + + + No documentation. + + + ERROR_FLT_INTERNAL_ERROR + ERROR_FLT_INTERNAL_ERROR + + + + No documentation. + + + ERROR_FLT_DELETING_OBJECT + ERROR_FLT_DELETING_OBJECT + + + + No documentation. + + + ERROR_FLT_MUST_BE_NONPAGED_POOL + ERROR_FLT_MUST_BE_NONPAGED_POOL + + + + No documentation. + + + ERROR_FLT_DUPLICATE_ENTRY + ERROR_FLT_DUPLICATE_ENTRY + + + + No documentation. + + + ERROR_FLT_CBDQ_DISABLED + ERROR_FLT_CBDQ_DISABLED + + + + No documentation. + + + ERROR_FLT_DO_NOT_ATTACH + ERROR_FLT_DO_NOT_ATTACH + + + + No documentation. + + + ERROR_FLT_DO_NOT_DETACH + ERROR_FLT_DO_NOT_DETACH + + + + No documentation. + + + ERROR_FLT_INSTANCE_ALTITUDE_COLLISION + ERROR_FLT_INSTANCE_ALTITUDE_COLLISION + + + + No documentation. + + + ERROR_FLT_INSTANCE_NAME_COLLISION + ERROR_FLT_INSTANCE_NAME_COLLISION + + + + No documentation. + + + ERROR_FLT_FILTER_NOT_FOUND + ERROR_FLT_FILTER_NOT_FOUND + + + + No documentation. + + + ERROR_FLT_VOLUME_NOT_FOUND + ERROR_FLT_VOLUME_NOT_FOUND + + + + No documentation. + + + ERROR_FLT_INSTANCE_NOT_FOUND + ERROR_FLT_INSTANCE_NOT_FOUND + + + + No documentation. + + + ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND + ERROR_FLT_CONTEXT_ALLOCATION_NOT_FOUND + + + + No documentation. + + + ERROR_FLT_INVALID_CONTEXT_REGISTRATION + ERROR_FLT_INVALID_CONTEXT_REGISTRATION + + + + No documentation. + + + ERROR_FLT_NAME_CACHE_MISS + ERROR_FLT_NAME_CACHE_MISS + + + + No documentation. + + + ERROR_FLT_NO_DEVICE_OBJECT + ERROR_FLT_NO_DEVICE_OBJECT + + + + No documentation. + + + ERROR_FLT_VOLUME_ALREADY_MOUNTED + ERROR_FLT_VOLUME_ALREADY_MOUNTED + + + + No documentation. + + + ERROR_FLT_ALREADY_ENLISTED + ERROR_FLT_ALREADY_ENLISTED + + + + No documentation. + + + ERROR_FLT_CONTEXT_ALREADY_LINKED + ERROR_FLT_CONTEXT_ALREADY_LINKED + + + + No documentation. + + + ERROR_FLT_NO_WAITER_FOR_REPLY + ERROR_FLT_NO_WAITER_FOR_REPLY + + + + No documentation. + + + ERROR_HUNG_DISPLAY_DRIVER_THREAD + ERROR_HUNG_DISPLAY_DRIVER_THREAD + + + + No documentation. + + + ERROR_MONITOR_NO_DESCRIPTOR + ERROR_MONITOR_NO_DESCRIPTOR + + + + No documentation. + + + ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT + ERROR_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT + + + + No documentation. + + + ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM + ERROR_MONITOR_INVALID_DESCRIPTOR_CHECKSUM + + + + No documentation. + + + ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK + ERROR_MONITOR_INVALID_STANDARD_TIMING_BLOCK + + + + No documentation. + + + ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED + ERROR_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED + + + + No documentation. + + + ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK + ERROR_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK + + + + No documentation. + + + ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK + ERROR_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK + + + + No documentation. + + + ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA + ERROR_MONITOR_NO_MORE_DESCRIPTOR_DATA + + + + No documentation. + + + ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK + ERROR_MONITOR_INVALID_DETAILED_TIMING_BLOCK + + + + No documentation. + + + ERROR_MONITOR_INVALID_MANUFACTURE_DATE + ERROR_MONITOR_INVALID_MANUFACTURE_DATE + + + + No documentation. + + + ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER + ERROR_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER + + + + No documentation. + + + ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER + ERROR_GRAPHICS_INSUFFICIENT_DMA_BUFFER + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER + ERROR_GRAPHICS_INVALID_DISPLAY_ADAPTER + + + + No documentation. + + + ERROR_GRAPHICS_ADAPTER_WAS_RESET + ERROR_GRAPHICS_ADAPTER_WAS_RESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_DRIVER_MODEL + ERROR_GRAPHICS_INVALID_DRIVER_MODEL + + + + No documentation. + + + ERROR_GRAPHICS_PRESENT_MODE_CHANGED + ERROR_GRAPHICS_PRESENT_MODE_CHANGED + + + + No documentation. + + + ERROR_GRAPHICS_PRESENT_OCCLUDED + ERROR_GRAPHICS_PRESENT_OCCLUDED + + + + No documentation. + + + ERROR_GRAPHICS_PRESENT_DENIED + ERROR_GRAPHICS_PRESENT_DENIED + + + + No documentation. + + + ERROR_GRAPHICS_CANNOTCOLORCONVERT + ERROR_GRAPHICS_CANNOTCOLORCONVERT + + + + No documentation. + + + ERROR_GRAPHICS_DRIVER_MISMATCH + ERROR_GRAPHICS_DRIVER_MISMATCH + + + + No documentation. + + + ERROR_GRAPHICS_PARTIAL_DATA_POPULATED + ERROR_GRAPHICS_PARTIAL_DATA_POPULATED + + + + No documentation. + + + ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED + ERROR_GRAPHICS_PRESENT_REDIRECTION_DISABLED + + + + No documentation. + + + ERROR_GRAPHICS_PRESENT_UNOCCLUDED + ERROR_GRAPHICS_PRESENT_UNOCCLUDED + + + + No documentation. + + + ERROR_GRAPHICS_NO_VIDEO_MEMORY + ERROR_GRAPHICS_NO_VIDEO_MEMORY + + + + No documentation. + + + ERROR_GRAPHICS_CANT_LOCK_MEMORY + ERROR_GRAPHICS_CANT_LOCK_MEMORY + + + + No documentation. + + + ERROR_GRAPHICS_ALLOCATION_BUSY + ERROR_GRAPHICS_ALLOCATION_BUSY + + + + No documentation. + + + ERROR_GRAPHICS_TOO_MANY_REFERENCES + ERROR_GRAPHICS_TOO_MANY_REFERENCES + + + + No documentation. + + + ERROR_GRAPHICS_TRY_AGAIN_LATER + ERROR_GRAPHICS_TRY_AGAIN_LATER + + + + No documentation. + + + ERROR_GRAPHICS_TRY_AGAIN_NOW + ERROR_GRAPHICS_TRY_AGAIN_NOW + + + + No documentation. + + + ERROR_GRAPHICS_ALLOCATION_INVALID + ERROR_GRAPHICS_ALLOCATION_INVALID + + + + No documentation. + + + ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE + ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE + + + + No documentation. + + + ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED + ERROR_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION + ERROR_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE + ERROR_GRAPHICS_INVALID_ALLOCATION_USAGE + + + + No documentation. + + + ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION + ERROR_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION + + + + No documentation. + + + ERROR_GRAPHICS_ALLOCATION_CLOSED + ERROR_GRAPHICS_ALLOCATION_CLOSED + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE + ERROR_GRAPHICS_INVALID_ALLOCATION_INSTANCE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE + ERROR_GRAPHICS_INVALID_ALLOCATION_HANDLE + + + + No documentation. + + + ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE + ERROR_GRAPHICS_WRONG_ALLOCATION_DEVICE + + + + No documentation. + + + ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST + ERROR_GRAPHICS_ALLOCATION_CONTENT_LOST + + + + No documentation. + + + ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE + ERROR_GRAPHICS_GPU_EXCEPTION_ON_DEVICE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY + ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED + ERROR_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED + ERROR_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN + ERROR_GRAPHICS_INVALID_VIDPN + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET + + + + No documentation. + + + ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED + ERROR_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_MODE_NOT_PINNED + ERROR_GRAPHICS_MODE_NOT_PINNED + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET + ERROR_GRAPHICS_INVALID_VIDPN_SOURCEMODESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET + ERROR_GRAPHICS_INVALID_VIDPN_TARGETMODESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_FREQUENCY + ERROR_GRAPHICS_INVALID_FREQUENCY + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_ACTIVE_REGION + ERROR_GRAPHICS_INVALID_ACTIVE_REGION + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_TOTAL_REGION + ERROR_GRAPHICS_INVALID_TOTAL_REGION + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE + ERROR_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE + + + + No documentation. + + + ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET + ERROR_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY + ERROR_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET + ERROR_GRAPHICS_MODE_ALREADY_IN_MODESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET + ERROR_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET + ERROR_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET + + + + No documentation. + + + ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET + ERROR_GRAPHICS_SOURCE_ALREADY_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_TARGET_ALREADY_IN_SET + ERROR_GRAPHICS_TARGET_ALREADY_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH + ERROR_GRAPHICS_INVALID_VIDPN_PRESENT_PATH + + + + No documentation. + + + ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY + ERROR_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET + ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE + ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE + + + + No documentation. + + + ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET + ERROR_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_NO_PREFERRED_MODE + ERROR_GRAPHICS_NO_PREFERRED_MODE + + + + No documentation. + + + ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET + ERROR_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_STALE_MODESET + ERROR_GRAPHICS_STALE_MODESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET + ERROR_GRAPHICS_INVALID_MONITOR_SOURCEMODESET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE + ERROR_GRAPHICS_INVALID_MONITOR_SOURCE_MODE + + + + No documentation. + + + ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN + ERROR_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN + + + + No documentation. + + + ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE + ERROR_GRAPHICS_MODE_ID_MUST_BE_UNIQUE + + + + No documentation. + + + ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION + ERROR_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION + + + + No documentation. + + + ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES + ERROR_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES + + + + No documentation. + + + ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY + ERROR_GRAPHICS_PATH_NOT_IN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE + ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE + + + + No documentation. + + + ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET + ERROR_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET + ERROR_GRAPHICS_INVALID_MONITORDESCRIPTORSET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR + ERROR_GRAPHICS_INVALID_MONITORDESCRIPTOR + + + + No documentation. + + + ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET + ERROR_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET + ERROR_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET + + + + No documentation. + + + ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE + ERROR_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE + ERROR_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE + + + + No documentation. + + + ERROR_GRAPHICS_RESOURCES_NOT_RELATED + ERROR_GRAPHICS_RESOURCES_NOT_RELATED + + + + No documentation. + + + ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE + ERROR_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE + + + + No documentation. + + + ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE + ERROR_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE + + + + No documentation. + + + ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET + ERROR_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET + + + + No documentation. + + + ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER + ERROR_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER + + + + No documentation. + + + ERROR_GRAPHICS_NO_VIDPNMGR + ERROR_GRAPHICS_NO_VIDPNMGR + + + + No documentation. + + + ERROR_GRAPHICS_NO_ACTIVE_VIDPN + ERROR_GRAPHICS_NO_ACTIVE_VIDPN + + + + No documentation. + + + ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY + ERROR_GRAPHICS_STALE_VIDPN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_MONITOR_NOT_CONNECTED + ERROR_GRAPHICS_MONITOR_NOT_CONNECTED + + + + No documentation. + + + ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY + ERROR_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE + ERROR_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE + ERROR_GRAPHICS_INVALID_VISIBLEREGION_SIZE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_STRIDE + ERROR_GRAPHICS_INVALID_STRIDE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PIXELFORMAT + ERROR_GRAPHICS_INVALID_PIXELFORMAT + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_COLORBASIS + ERROR_GRAPHICS_INVALID_COLORBASIS + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE + ERROR_GRAPHICS_INVALID_PIXELVALUEACCESSMODE + + + + No documentation. + + + ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY + ERROR_GRAPHICS_TARGET_NOT_IN_TOPOLOGY + + + + No documentation. + + + ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT + ERROR_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT + + + + No documentation. + + + ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE + ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE + + + + No documentation. + + + ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN + ERROR_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL + ERROR_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION + ERROR_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION + + + + No documentation. + + + ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED + ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_GAMMA_RAMP + ERROR_GRAPHICS_INVALID_GAMMA_RAMP + + + + No documentation. + + + ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED + ERROR_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED + ERROR_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_MODE_NOT_IN_MODESET + ERROR_GRAPHICS_MODE_NOT_IN_MODESET + + + + No documentation. + + + ERROR_GRAPHICS_DATASET_IS_EMPTY + ERROR_GRAPHICS_DATASET_IS_EMPTY + + + + No documentation. + + + ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET + ERROR_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON + ERROR_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE + ERROR_GRAPHICS_INVALID_PATH_CONTENT_TYPE + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE + ERROR_GRAPHICS_INVALID_COPYPROTECTION_TYPE + + + + No documentation. + + + ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS + ERROR_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS + + + + No documentation. + + + ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED + ERROR_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING + ERROR_GRAPHICS_INVALID_SCANLINE_ORDERING + + + + No documentation. + + + ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED + ERROR_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED + + + + No documentation. + + + ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS + ERROR_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS + + + + No documentation. + + + ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT + ERROR_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM + ERROR_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN + ERROR_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT + ERROR_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT + + + + No documentation. + + + ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED + ERROR_GRAPHICS_MAX_NUM_PATHS_REACHED + + + + No documentation. + + + ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION + ERROR_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_CLIENT_TYPE + ERROR_GRAPHICS_INVALID_CLIENT_TYPE + + + + No documentation. + + + ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET + ERROR_GRAPHICS_CLIENTVIDPN_NOT_SET + + + + No documentation. + + + ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED + ERROR_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED + + + + No documentation. + + + ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED + ERROR_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS + ERROR_GRAPHICS_UNKNOWN_CHILD_STATUS + + + + No documentation. + + + ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER + ERROR_GRAPHICS_NOT_A_LINKED_ADAPTER + + + + No documentation. + + + ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED + ERROR_GRAPHICS_LEADLINK_NOT_ENUMERATED + + + + No documentation. + + + ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED + ERROR_GRAPHICS_CHAINLINKS_NOT_ENUMERATED + + + + No documentation. + + + ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY + ERROR_GRAPHICS_ADAPTER_CHAIN_NOT_READY + + + + No documentation. + + + ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED + ERROR_GRAPHICS_CHAINLINKS_NOT_STARTED + + + + No documentation. + + + ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON + ERROR_GRAPHICS_CHAINLINKS_NOT_POWERED_ON + + + + No documentation. + + + ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE + ERROR_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE + + + + No documentation. + + + ERROR_GRAPHICS_LEADLINK_START_DEFERRED + ERROR_GRAPHICS_LEADLINK_START_DEFERRED + + + + No documentation. + + + ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER + ERROR_GRAPHICS_NOT_POST_DEVICE_DRIVER + + + + No documentation. + + + ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY + ERROR_GRAPHICS_POLLING_TOO_FREQUENTLY + + + + No documentation. + + + ERROR_GRAPHICS_START_DEFERRED + ERROR_GRAPHICS_START_DEFERRED + + + + No documentation. + + + ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED + ERROR_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED + + + + No documentation. + + + ERROR_GRAPHICS_OPM_NOT_SUPPORTED + ERROR_GRAPHICS_OPM_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_COPP_NOT_SUPPORTED + ERROR_GRAPHICS_COPP_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_UAB_NOT_SUPPORTED + ERROR_GRAPHICS_UAB_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS + ERROR_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS + + + + No documentation. + + + ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST + ERROR_GRAPHICS_OPM_NO_VIDEO_OUTPUTS_EXIST + + + + No documentation. + + + ERROR_GRAPHICS_OPM_INTERNAL_ERROR + ERROR_GRAPHICS_OPM_INTERNAL_ERROR + + + + No documentation. + + + ERROR_GRAPHICS_OPM_INVALID_HANDLE + ERROR_GRAPHICS_OPM_INVALID_HANDLE + + + + No documentation. + + + ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH + ERROR_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH + + + + No documentation. + + + ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED + ERROR_GRAPHICS_OPM_SPANNING_MODE_ENABLED + + + + No documentation. + + + ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED + ERROR_GRAPHICS_OPM_THEATER_MODE_ENABLED + + + + No documentation. + + + ERROR_GRAPHICS_PVP_HFS_FAILED + ERROR_GRAPHICS_PVP_HFS_FAILED + + + + No documentation. + + + ERROR_GRAPHICS_OPM_INVALID_SRM + ERROR_GRAPHICS_OPM_INVALID_SRM + + + + No documentation. + + + ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP + ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP + + + + No documentation. + + + ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP + ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP + + + + No documentation. + + + ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA + ERROR_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA + + + + No documentation. + + + ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET + ERROR_GRAPHICS_OPM_HDCP_SRM_NEVER_SET + + + + No documentation. + + + ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH + ERROR_GRAPHICS_OPM_RESOLUTION_TOO_HIGH + + + + No documentation. + + + ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE + ERROR_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE + + + + No documentation. + + + ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS + ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_NO_LONGER_EXISTS + + + + No documentation. + + + ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS + ERROR_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS + + + + No documentation. + + + ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS + ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS + + + + No documentation. + + + ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST + ERROR_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST + + + + No documentation. + + + ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR + ERROR_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR + + + + No documentation. + + + ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS + ERROR_GRAPHICS_OPM_VIDEO_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS + + + + No documentation. + + + ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED + ERROR_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST + ERROR_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST + + + + No documentation. + + + ERROR_GRAPHICS_I2C_NOT_SUPPORTED + ERROR_GRAPHICS_I2C_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST + ERROR_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST + + + + No documentation. + + + ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA + ERROR_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA + + + + No documentation. + + + ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA + ERROR_GRAPHICS_I2C_ERROR_RECEIVING_DATA + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED + ERROR_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_INVALID_DATA + ERROR_GRAPHICS_DDCCI_INVALID_DATA + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE + ERROR_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE + + + + No documentation. + + + ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING + ERROR_GRAPHICS_MCA_INVALID_CAPABILITIES_STRING + + + + No documentation. + + + ERROR_GRAPHICS_MCA_INTERNAL_ERROR + ERROR_GRAPHICS_MCA_INTERNAL_ERROR + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND + ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH + ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM + ERROR_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE + ERROR_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE + + + + No documentation. + + + ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS + ERROR_GRAPHICS_MONITOR_NO_LONGER_EXISTS + + + + No documentation. + + + ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE + ERROR_GRAPHICS_DDCCI_CURRENT_CURRENT_VALUE_GREATER_THAN_MAXIMUM_VALUE + + + + No documentation. + + + ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION + ERROR_GRAPHICS_MCA_INVALID_VCP_VERSION + + + + No documentation. + + + ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION + ERROR_GRAPHICS_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION + + + + No documentation. + + + ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH + ERROR_GRAPHICS_MCA_MCCS_VERSION_MISMATCH + + + + No documentation. + + + ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION + ERROR_GRAPHICS_MCA_UNSUPPORTED_MCCS_VERSION + + + + No documentation. + + + ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED + ERROR_GRAPHICS_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED + + + + No documentation. + + + ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE + ERROR_GRAPHICS_MCA_UNSUPPORTED_COLOR_TEMPERATURE + + + + No documentation. + + + ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED + ERROR_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME + ERROR_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME + + + + No documentation. + + + ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP + ERROR_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP + + + + No documentation. + + + ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED + ERROR_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED + + + + No documentation. + + + ERROR_GRAPHICS_INVALID_POINTER + ERROR_GRAPHICS_INVALID_POINTER + + + + No documentation. + + + ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE + ERROR_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE + + + + No documentation. + + + ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL + ERROR_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL + + + + No documentation. + + + ERROR_GRAPHICS_INTERNAL_ERROR + ERROR_GRAPHICS_INTERNAL_ERROR + + + + No documentation. + + + ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS + ERROR_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS + + + + No documentation. + + + ERROR_NDIS_INTERFACE_CLOSING + ERROR_NDIS_INTERFACE_CLOSING + + + + No documentation. + + + ERROR_NDIS_BAD_VERSION + ERROR_NDIS_BAD_VERSION + + + + No documentation. + + + ERROR_NDIS_BAD_CHARACTERISTICS + ERROR_NDIS_BAD_CHARACTERISTICS + + + + No documentation. + + + ERROR_NDIS_ADAPTER_NOT_FOUND + ERROR_NDIS_ADAPTER_NOT_FOUND + + + + No documentation. + + + ERROR_NDIS_OPEN_FAILED + ERROR_NDIS_OPEN_FAILED + + + + No documentation. + + + ERROR_NDIS_DEVICE_FAILED + ERROR_NDIS_DEVICE_FAILED + + + + No documentation. + + + ERROR_NDIS_MULTICAST_FULL + ERROR_NDIS_MULTICAST_FULL + + + + No documentation. + + + ERROR_NDIS_MULTICAST_EXISTS + ERROR_NDIS_MULTICAST_EXISTS + + + + No documentation. + + + ERROR_NDIS_MULTICAST_NOT_FOUND + ERROR_NDIS_MULTICAST_NOT_FOUND + + + + No documentation. + + + ERROR_NDIS_REQUEST_ABORTED + ERROR_NDIS_REQUEST_ABORTED + + + + No documentation. + + + ERROR_NDIS_RESET_IN_PROGRESS + ERROR_NDIS_RESET_IN_PROGRESS + + + + No documentation. + + + ERROR_NDIS_NOT_SUPPORTED + ERROR_NDIS_NOT_SUPPORTED + + + + No documentation. + + + ERROR_NDIS_INVALID_PACKET + ERROR_NDIS_INVALID_PACKET + + + + No documentation. + + + ERROR_NDIS_ADAPTER_NOT_READY + ERROR_NDIS_ADAPTER_NOT_READY + + + + No documentation. + + + ERROR_NDIS_INVALID_LENGTH + ERROR_NDIS_INVALID_LENGTH + + + + No documentation. + + + ERROR_NDIS_INVALID_DATA + ERROR_NDIS_INVALID_DATA + + + + No documentation. + + + ERROR_NDIS_BUFFER_TOO_SHORT + ERROR_NDIS_BUFFER_TOO_SHORT + + + + No documentation. + + + ERROR_NDIS_INVALID_OID + ERROR_NDIS_INVALID_OID + + + + No documentation. + + + ERROR_NDIS_ADAPTER_REMOVED + ERROR_NDIS_ADAPTER_REMOVED + + + + No documentation. + + + ERROR_NDIS_UNSUPPORTED_MEDIA + ERROR_NDIS_UNSUPPORTED_MEDIA + + + + No documentation. + + + ERROR_NDIS_GROUP_ADDRESS_IN_USE + ERROR_NDIS_GROUP_ADDRESS_IN_USE + + + + No documentation. + + + ERROR_NDIS_FILE_NOT_FOUND + ERROR_NDIS_FILE_NOT_FOUND + + + + No documentation. + + + ERROR_NDIS_ERROR_READING_FILE + ERROR_NDIS_ERROR_READING_FILE + + + + No documentation. + + + ERROR_NDIS_ALREADY_MAPPED + ERROR_NDIS_ALREADY_MAPPED + + + + No documentation. + + + ERROR_NDIS_RESOURCE_CONFLICT + ERROR_NDIS_RESOURCE_CONFLICT + + + + No documentation. + + + ERROR_NDIS_MEDIA_DISCONNECTED + ERROR_NDIS_MEDIA_DISCONNECTED + + + + No documentation. + + + ERROR_NDIS_INVALID_ADDRESS + ERROR_NDIS_INVALID_ADDRESS + + + + No documentation. + + + ERROR_NDIS_INVALID_DEVICE_REQUEST + ERROR_NDIS_INVALID_DEVICE_REQUEST + + + + No documentation. + + + ERROR_NDIS_PAUSED + ERROR_NDIS_PAUSED + + + + No documentation. + + + ERROR_NDIS_INTERFACE_NOT_FOUND + ERROR_NDIS_INTERFACE_NOT_FOUND + + + + No documentation. + + + ERROR_NDIS_UNSUPPORTED_REVISION + ERROR_NDIS_UNSUPPORTED_REVISION + + + + No documentation. + + + ERROR_NDIS_INVALID_PORT + ERROR_NDIS_INVALID_PORT + + + + No documentation. + + + ERROR_NDIS_INVALID_PORT_STATE + ERROR_NDIS_INVALID_PORT_STATE + + + + No documentation. + + + ERROR_NDIS_LOW_POWER_STATE + ERROR_NDIS_LOW_POWER_STATE + + + + No documentation. + + + ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED + ERROR_NDIS_DOT11_AUTO_CONFIG_ENABLED + + + + No documentation. + + + ERROR_NDIS_DOT11_MEDIA_IN_USE + ERROR_NDIS_DOT11_MEDIA_IN_USE + + + + No documentation. + + + ERROR_NDIS_DOT11_POWER_STATE_INVALID + ERROR_NDIS_DOT11_POWER_STATE_INVALID + + + + No documentation. + + + ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL + ERROR_NDIS_PM_WOL_PATTERN_LIST_FULL + + + + No documentation. + + + ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL + ERROR_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL + + + + No documentation. + + + ERROR_NDIS_INDICATION_REQUIRED + ERROR_NDIS_INDICATION_REQUIRED + + + + No documentation. + + + ERROR_NDIS_OFFLOAD_POLICY + ERROR_NDIS_OFFLOAD_POLICY + + + + No documentation. + + + ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED + ERROR_NDIS_OFFLOAD_CONNECTION_REJECTED + + + + No documentation. + + + ERROR_NDIS_OFFLOAD_PATH_REJECTED + ERROR_NDIS_OFFLOAD_PATH_REJECTED + + + + No documentation. + + + ERROR_HV_INVALID_HYPERCALL_CODE + ERROR_HV_INVALID_HYPERCALL_CODE + + + + No documentation. + + + ERROR_HV_INVALID_HYPERCALL_INPUT + ERROR_HV_INVALID_HYPERCALL_INPUT + + + + No documentation. + + + ERROR_HV_INVALID_ALIGNMENT + ERROR_HV_INVALID_ALIGNMENT + + + + No documentation. + + + ERROR_HV_INVALID_PARAMETER + ERROR_HV_INVALID_PARAMETER + + + + No documentation. + + + ERROR_HV_ACCESS_DENIED + ERROR_HV_ACCESS_DENIED + + + + No documentation. + + + ERROR_HV_INVALID_PARTITION_STATE + ERROR_HV_INVALID_PARTITION_STATE + + + + No documentation. + + + ERROR_HV_OPERATION_DENIED + ERROR_HV_OPERATION_DENIED + + + + No documentation. + + + ERROR_HV_UNKNOWN_PROPERTY + ERROR_HV_UNKNOWN_PROPERTY + + + + No documentation. + + + ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE + ERROR_HV_PROPERTY_VALUE_OUT_OF_RANGE + + + + No documentation. + + + ERROR_HV_INSUFFICIENT_MEMORY + ERROR_HV_INSUFFICIENT_MEMORY + + + + No documentation. + + + ERROR_HV_PARTITION_TOO_DEEP + ERROR_HV_PARTITION_TOO_DEEP + + + + No documentation. + + + ERROR_HV_INVALID_PARTITION_ID + ERROR_HV_INVALID_PARTITION_ID + + + + No documentation. + + + ERROR_HV_INVALID_VP_INDEX + ERROR_HV_INVALID_VP_INDEX + + + + No documentation. + + + ERROR_HV_INVALID_PORT_ID + ERROR_HV_INVALID_PORT_ID + + + + No documentation. + + + ERROR_HV_INVALID_CONNECTION_ID + ERROR_HV_INVALID_CONNECTION_ID + + + + No documentation. + + + ERROR_HV_INSUFFICIENT_BUFFERS + ERROR_HV_INSUFFICIENT_BUFFERS + + + + No documentation. + + + ERROR_HV_NOT_ACKNOWLEDGED + ERROR_HV_NOT_ACKNOWLEDGED + + + + No documentation. + + + ERROR_HV_ACKNOWLEDGED + ERROR_HV_ACKNOWLEDGED + + + + No documentation. + + + ERROR_HV_INVALID_SAVE_RESTORE_STATE + ERROR_HV_INVALID_SAVE_RESTORE_STATE + + + + No documentation. + + + ERROR_HV_INVALID_SYNIC_STATE + ERROR_HV_INVALID_SYNIC_STATE + + + + No documentation. + + + ERROR_HV_OBJECT_IN_USE + ERROR_HV_OBJECT_IN_USE + + + + No documentation. + + + ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO + ERROR_HV_INVALID_PROXIMITY_DOMAIN_INFO + + + + No documentation. + + + ERROR_HV_NO_DATA + ERROR_HV_NO_DATA + + + + No documentation. + + + ERROR_HV_INACTIVE + ERROR_HV_INACTIVE + + + + No documentation. + + + ERROR_HV_NO_RESOURCES + ERROR_HV_NO_RESOURCES + + + + No documentation. + + + ERROR_HV_FEATURE_UNAVAILABLE + ERROR_HV_FEATURE_UNAVAILABLE + + + + No documentation. + + + ERROR_HV_NOT_PRESENT + ERROR_HV_NOT_PRESENT + + + + No documentation. + + + ERROR_VID_DUPLICATE_HANDLER + ERROR_VID_DUPLICATE_HANDLER + + + + No documentation. + + + ERROR_VID_TOO_MANY_HANDLERS + ERROR_VID_TOO_MANY_HANDLERS + + + + No documentation. + + + ERROR_VID_QUEUE_FULL + ERROR_VID_QUEUE_FULL + + + + No documentation. + + + ERROR_VID_HANDLER_NOT_PRESENT + ERROR_VID_HANDLER_NOT_PRESENT + + + + No documentation. + + + ERROR_VID_INVALID_OBJECT_NAME + ERROR_VID_INVALID_OBJECT_NAME + + + + No documentation. + + + ERROR_VID_PARTITION_NAME_TOO_LONG + ERROR_VID_PARTITION_NAME_TOO_LONG + + + + No documentation. + + + ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG + ERROR_VID_MESSAGE_QUEUE_NAME_TOO_LONG + + + + No documentation. + + + ERROR_VID_PARTITION_ALREADY_EXISTS + ERROR_VID_PARTITION_ALREADY_EXISTS + + + + No documentation. + + + ERROR_VID_PARTITION_DOES_NOT_EXIST + ERROR_VID_PARTITION_DOES_NOT_EXIST + + + + No documentation. + + + ERROR_VID_PARTITION_NAME_NOT_FOUND + ERROR_VID_PARTITION_NAME_NOT_FOUND + + + + No documentation. + + + ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS + ERROR_VID_MESSAGE_QUEUE_ALREADY_EXISTS + + + + No documentation. + + + ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT + ERROR_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT + + + + No documentation. + + + ERROR_VID_MB_STILL_REFERENCED + ERROR_VID_MB_STILL_REFERENCED + + + + No documentation. + + + ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED + ERROR_VID_CHILD_GPA_PAGE_SET_CORRUPTED + + + + No documentation. + + + ERROR_VID_INVALID_NUMA_SETTINGS + ERROR_VID_INVALID_NUMA_SETTINGS + + + + No documentation. + + + ERROR_VID_INVALID_NUMA_NODE_INDEX + ERROR_VID_INVALID_NUMA_NODE_INDEX + + + + No documentation. + + + ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED + ERROR_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED + + + + No documentation. + + + ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE + ERROR_VID_INVALID_MEMORY_BLOCK_HANDLE + + + + No documentation. + + + ERROR_VID_PAGE_RANGE_OVERFLOW + ERROR_VID_PAGE_RANGE_OVERFLOW + + + + No documentation. + + + ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE + ERROR_VID_INVALID_MESSAGE_QUEUE_HANDLE + + + + No documentation. + + + ERROR_VID_INVALID_GPA_RANGE_HANDLE + ERROR_VID_INVALID_GPA_RANGE_HANDLE + + + + No documentation. + + + ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE + ERROR_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE + + + + No documentation. + + + ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED + ERROR_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED + + + + No documentation. + + + ERROR_VID_INVALID_PPM_HANDLE + ERROR_VID_INVALID_PPM_HANDLE + + + + No documentation. + + + ERROR_VID_MBPS_ARE_LOCKED + ERROR_VID_MBPS_ARE_LOCKED + + + + No documentation. + + + ERROR_VID_MESSAGE_QUEUE_CLOSED + ERROR_VID_MESSAGE_QUEUE_CLOSED + + + + No documentation. + + + ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED + ERROR_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED + + + + No documentation. + + + ERROR_VID_STOP_PENDING + ERROR_VID_STOP_PENDING + + + + No documentation. + + + ERROR_VID_INVALID_PROCESSOR_STATE + ERROR_VID_INVALID_PROCESSOR_STATE + + + + No documentation. + + + ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT + ERROR_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT + + + + No documentation. + + + ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED + ERROR_VID_KM_INTERFACE_ALREADY_INITIALIZED + + + + No documentation. + + + ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET + ERROR_VID_MB_PROPERTY_ALREADY_SET_RESET + + + + No documentation. + + + ERROR_VID_MMIO_RANGE_DESTROYED + ERROR_VID_MMIO_RANGE_DESTROYED + + + + No documentation. + + + ERROR_VID_INVALID_CHILD_GPA_PAGE_SET + ERROR_VID_INVALID_CHILD_GPA_PAGE_SET + + + + No documentation. + + + ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED + ERROR_VID_RESERVE_PAGE_SET_IS_BEING_USED + + + + No documentation. + + + ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL + ERROR_VID_RESERVE_PAGE_SET_TOO_SMALL + + + + No documentation. + + + ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE + ERROR_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE + + + + No documentation. + + + ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT + ERROR_VID_MBP_COUNT_EXCEEDED_LIMIT + + + + No documentation. + + + ERROR_VID_SAVED_STATE_CORRUPT + ERROR_VID_SAVED_STATE_CORRUPT + + + + No documentation. + + + ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM + ERROR_VID_SAVED_STATE_UNRECOGNIZED_ITEM + + + + No documentation. + + + ERROR_VID_SAVED_STATE_INCOMPATIBLE + ERROR_VID_SAVED_STATE_INCOMPATIBLE + + + + No documentation. + + + ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED + ERROR_VID_REMOTE_NODE_PARENT_GPA_PAGES_USED + + + + No documentation. + + + ERROR_VOLMGR_INCOMPLETE_REGENERATION + ERROR_VOLMGR_INCOMPLETE_REGENERATION + + + + No documentation. + + + ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION + ERROR_VOLMGR_INCOMPLETE_DISK_MIGRATION + + + + No documentation. + + + ERROR_VOLMGR_DATABASE_FULL + ERROR_VOLMGR_DATABASE_FULL + + + + No documentation. + + + ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED + ERROR_VOLMGR_DISK_CONFIGURATION_CORRUPTED + + + + No documentation. + + + ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC + ERROR_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC + + + + No documentation. + + + ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED + ERROR_VOLMGR_PACK_CONFIG_UPDATE_FAILED + + + + No documentation. + + + ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME + ERROR_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME + + + + No documentation. + + + ERROR_VOLMGR_DISK_DUPLICATE + ERROR_VOLMGR_DISK_DUPLICATE + + + + No documentation. + + + ERROR_VOLMGR_DISK_DYNAMIC + ERROR_VOLMGR_DISK_DYNAMIC + + + + No documentation. + + + ERROR_VOLMGR_DISK_ID_INVALID + ERROR_VOLMGR_DISK_ID_INVALID + + + + No documentation. + + + ERROR_VOLMGR_DISK_INVALID + ERROR_VOLMGR_DISK_INVALID + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAST_VOTER + ERROR_VOLMGR_DISK_LAST_VOTER + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAYOUT_INVALID + ERROR_VOLMGR_DISK_LAYOUT_INVALID + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS + ERROR_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED + ERROR_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL + ERROR_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS + ERROR_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS + + + + No documentation. + + + ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS + ERROR_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS + + + + No documentation. + + + ERROR_VOLMGR_DISK_MISSING + ERROR_VOLMGR_DISK_MISSING + + + + No documentation. + + + ERROR_VOLMGR_DISK_NOT_EMPTY + ERROR_VOLMGR_DISK_NOT_EMPTY + + + + No documentation. + + + ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE + ERROR_VOLMGR_DISK_NOT_ENOUGH_SPACE + + + + No documentation. + + + ERROR_VOLMGR_DISK_REVECTORING_FAILED + ERROR_VOLMGR_DISK_REVECTORING_FAILED + + + + No documentation. + + + ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID + ERROR_VOLMGR_DISK_SECTOR_SIZE_INVALID + + + + No documentation. + + + ERROR_VOLMGR_DISK_SET_NOT_CONTAINED + ERROR_VOLMGR_DISK_SET_NOT_CONTAINED + + + + No documentation. + + + ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS + ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS + + + + No documentation. + + + ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES + ERROR_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES + + + + No documentation. + + + ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED + ERROR_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED + + + + No documentation. + + + ERROR_VOLMGR_EXTENT_ALREADY_USED + ERROR_VOLMGR_EXTENT_ALREADY_USED + + + + No documentation. + + + ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS + ERROR_VOLMGR_EXTENT_NOT_CONTIGUOUS + + + + No documentation. + + + ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION + ERROR_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION + + + + No documentation. + + + ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED + ERROR_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED + + + + No documentation. + + + ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION + ERROR_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION + + + + No documentation. + + + ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH + ERROR_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH + + + + No documentation. + + + ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED + ERROR_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED + + + + No documentation. + + + ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID + ERROR_VOLMGR_INTERLEAVE_LENGTH_INVALID + + + + No documentation. + + + ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS + ERROR_VOLMGR_MAXIMUM_REGISTERED_USERS + + + + No documentation. + + + ERROR_VOLMGR_MEMBER_IN_SYNC + ERROR_VOLMGR_MEMBER_IN_SYNC + + + + No documentation. + + + ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE + ERROR_VOLMGR_MEMBER_INDEX_DUPLICATE + + + + No documentation. + + + ERROR_VOLMGR_MEMBER_INDEX_INVALID + ERROR_VOLMGR_MEMBER_INDEX_INVALID + + + + No documentation. + + + ERROR_VOLMGR_MEMBER_MISSING + ERROR_VOLMGR_MEMBER_MISSING + + + + No documentation. + + + ERROR_VOLMGR_MEMBER_NOT_DETACHED + ERROR_VOLMGR_MEMBER_NOT_DETACHED + + + + No documentation. + + + ERROR_VOLMGR_MEMBER_REGENERATING + ERROR_VOLMGR_MEMBER_REGENERATING + + + + No documentation. + + + ERROR_VOLMGR_ALL_DISKS_FAILED + ERROR_VOLMGR_ALL_DISKS_FAILED + + + + No documentation. + + + ERROR_VOLMGR_NO_REGISTERED_USERS + ERROR_VOLMGR_NO_REGISTERED_USERS + + + + No documentation. + + + ERROR_VOLMGR_NO_SUCH_USER + ERROR_VOLMGR_NO_SUCH_USER + + + + No documentation. + + + ERROR_VOLMGR_NOTIFICATION_RESET + ERROR_VOLMGR_NOTIFICATION_RESET + + + + No documentation. + + + ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID + ERROR_VOLMGR_NUMBER_OF_MEMBERS_INVALID + + + + No documentation. + + + ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID + ERROR_VOLMGR_NUMBER_OF_PLEXES_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PACK_DUPLICATE + ERROR_VOLMGR_PACK_DUPLICATE + + + + No documentation. + + + ERROR_VOLMGR_PACK_ID_INVALID + ERROR_VOLMGR_PACK_ID_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PACK_INVALID + ERROR_VOLMGR_PACK_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PACK_NAME_INVALID + ERROR_VOLMGR_PACK_NAME_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PACK_OFFLINE + ERROR_VOLMGR_PACK_OFFLINE + + + + No documentation. + + + ERROR_VOLMGR_PACK_HAS_QUORUM + ERROR_VOLMGR_PACK_HAS_QUORUM + + + + No documentation. + + + ERROR_VOLMGR_PACK_WITHOUT_QUORUM + ERROR_VOLMGR_PACK_WITHOUT_QUORUM + + + + No documentation. + + + ERROR_VOLMGR_PARTITION_STYLE_INVALID + ERROR_VOLMGR_PARTITION_STYLE_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PARTITION_UPDATE_FAILED + ERROR_VOLMGR_PARTITION_UPDATE_FAILED + + + + No documentation. + + + ERROR_VOLMGR_PLEX_IN_SYNC + ERROR_VOLMGR_PLEX_IN_SYNC + + + + No documentation. + + + ERROR_VOLMGR_PLEX_INDEX_DUPLICATE + ERROR_VOLMGR_PLEX_INDEX_DUPLICATE + + + + No documentation. + + + ERROR_VOLMGR_PLEX_INDEX_INVALID + ERROR_VOLMGR_PLEX_INDEX_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PLEX_LAST_ACTIVE + ERROR_VOLMGR_PLEX_LAST_ACTIVE + + + + No documentation. + + + ERROR_VOLMGR_PLEX_MISSING + ERROR_VOLMGR_PLEX_MISSING + + + + No documentation. + + + ERROR_VOLMGR_PLEX_REGENERATING + ERROR_VOLMGR_PLEX_REGENERATING + + + + No documentation. + + + ERROR_VOLMGR_PLEX_TYPE_INVALID + ERROR_VOLMGR_PLEX_TYPE_INVALID + + + + No documentation. + + + ERROR_VOLMGR_PLEX_NOT_RAID5 + ERROR_VOLMGR_PLEX_NOT_RAID5 + + + + No documentation. + + + ERROR_VOLMGR_PLEX_NOT_SIMPLE + ERROR_VOLMGR_PLEX_NOT_SIMPLE + + + + No documentation. + + + ERROR_VOLMGR_STRUCTURE_SIZE_INVALID + ERROR_VOLMGR_STRUCTURE_SIZE_INVALID + + + + No documentation. + + + ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS + ERROR_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS + + + + No documentation. + + + ERROR_VOLMGR_TRANSACTION_IN_PROGRESS + ERROR_VOLMGR_TRANSACTION_IN_PROGRESS + + + + No documentation. + + + ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE + ERROR_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK + ERROR_VOLMGR_VOLUME_CONTAINS_MISSING_DISK + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_ID_INVALID + ERROR_VOLMGR_VOLUME_ID_INVALID + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_LENGTH_INVALID + ERROR_VOLMGR_VOLUME_LENGTH_INVALID + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE + ERROR_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_NOT_MIRRORED + ERROR_VOLMGR_VOLUME_NOT_MIRRORED + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_NOT_RETAINED + ERROR_VOLMGR_VOLUME_NOT_RETAINED + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_OFFLINE + ERROR_VOLMGR_VOLUME_OFFLINE + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_RETAINED + ERROR_VOLMGR_VOLUME_RETAINED + + + + No documentation. + + + ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID + ERROR_VOLMGR_NUMBER_OF_EXTENTS_INVALID + + + + No documentation. + + + ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE + ERROR_VOLMGR_DIFFERENT_SECTOR_SIZE + + + + No documentation. + + + ERROR_VOLMGR_BAD_BOOT_DISK + ERROR_VOLMGR_BAD_BOOT_DISK + + + + No documentation. + + + ERROR_VOLMGR_PACK_CONFIG_OFFLINE + ERROR_VOLMGR_PACK_CONFIG_OFFLINE + + + + No documentation. + + + ERROR_VOLMGR_PACK_CONFIG_ONLINE + ERROR_VOLMGR_PACK_CONFIG_ONLINE + + + + No documentation. + + + ERROR_VOLMGR_NOT_PRIMARY_PACK + ERROR_VOLMGR_NOT_PRIMARY_PACK + + + + No documentation. + + + ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED + ERROR_VOLMGR_PACK_LOG_UPDATE_FAILED + + + + No documentation. + + + ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID + ERROR_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID + + + + No documentation. + + + ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID + ERROR_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID + + + + No documentation. + + + ERROR_VOLMGR_VOLUME_MIRRORED + ERROR_VOLMGR_VOLUME_MIRRORED + + + + No documentation. + + + ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED + ERROR_VOLMGR_PLEX_NOT_SIMPLE_SPANNED + + + + No documentation. + + + ERROR_VOLMGR_NO_VALID_LOG_COPIES + ERROR_VOLMGR_NO_VALID_LOG_COPIES + + + + No documentation. + + + ERROR_VOLMGR_PRIMARY_PACK_PRESENT + ERROR_VOLMGR_PRIMARY_PACK_PRESENT + + + + No documentation. + + + ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID + ERROR_VOLMGR_NUMBER_OF_DISKS_INVALID + + + + No documentation. + + + ERROR_VOLMGR_MIRROR_NOT_SUPPORTED + ERROR_VOLMGR_MIRROR_NOT_SUPPORTED + + + + No documentation. + + + ERROR_VOLMGR_RAID5_NOT_SUPPORTED + ERROR_VOLMGR_RAID5_NOT_SUPPORTED + + + + No documentation. + + + ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED + ERROR_BCD_NOT_ALL_ENTRIES_IMPORTED + + + + No documentation. + + + ERROR_BCD_TOO_MANY_ELEMENTS + ERROR_BCD_TOO_MANY_ELEMENTS + + + + No documentation. + + + ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED + ERROR_BCD_NOT_ALL_ENTRIES_SYNCHRONIZED + + + + No documentation. + + + ERROR_VHD_DRIVE_FOOTER_MISSING + ERROR_VHD_DRIVE_FOOTER_MISSING + + + + No documentation. + + + ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH + ERROR_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH + + + + No documentation. + + + ERROR_VHD_DRIVE_FOOTER_CORRUPT + ERROR_VHD_DRIVE_FOOTER_CORRUPT + + + + No documentation. + + + ERROR_VHD_FORMAT_UNKNOWN + ERROR_VHD_FORMAT_UNKNOWN + + + + No documentation. + + + ERROR_VHD_FORMAT_UNSUPPORTED_VERSION + ERROR_VHD_FORMAT_UNSUPPORTED_VERSION + + + + No documentation. + + + ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH + ERROR_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH + + + + No documentation. + + + ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION + ERROR_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION + + + + No documentation. + + + ERROR_VHD_SPARSE_HEADER_CORRUPT + ERROR_VHD_SPARSE_HEADER_CORRUPT + + + + No documentation. + + + ERROR_VHD_BLOCK_ALLOCATION_FAILURE + ERROR_VHD_BLOCK_ALLOCATION_FAILURE + + + + No documentation. + + + ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT + ERROR_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT + + + + No documentation. + + + ERROR_VHD_INVALID_BLOCK_SIZE + ERROR_VHD_INVALID_BLOCK_SIZE + + + + No documentation. + + + ERROR_VHD_BITMAP_MISMATCH + ERROR_VHD_BITMAP_MISMATCH + + + + No documentation. + + + ERROR_VHD_PARENT_VHD_NOT_FOUND + ERROR_VHD_PARENT_VHD_NOT_FOUND + + + + No documentation. + + + ERROR_VHD_CHILD_PARENT_ID_MISMATCH + ERROR_VHD_CHILD_PARENT_ID_MISMATCH + + + + No documentation. + + + ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH + ERROR_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH + + + + No documentation. + + + ERROR_VHD_METADATA_READ_FAILURE + ERROR_VHD_METADATA_READ_FAILURE + + + + No documentation. + + + ERROR_VHD_METADATA_WRITE_FAILURE + ERROR_VHD_METADATA_WRITE_FAILURE + + + + No documentation. + + + ERROR_VHD_INVALID_SIZE + ERROR_VHD_INVALID_SIZE + + + + No documentation. + + + ERROR_VHD_INVALID_FILE_SIZE + ERROR_VHD_INVALID_FILE_SIZE + + + + No documentation. + + + ERROR_VIRTDISK_PROVIDER_NOT_FOUND + ERROR_VIRTDISK_PROVIDER_NOT_FOUND + + + + No documentation. + + + ERROR_VIRTDISK_NOT_VIRTUAL_DISK + ERROR_VIRTDISK_NOT_VIRTUAL_DISK + + + + No documentation. + + + ERROR_VHD_PARENT_VHD_ACCESS_DENIED + ERROR_VHD_PARENT_VHD_ACCESS_DENIED + + + + No documentation. + + + ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH + ERROR_VHD_CHILD_PARENT_SIZE_MISMATCH + + + + No documentation. + + + ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED + ERROR_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED + + + + No documentation. + + + ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT + ERROR_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT + + + + No documentation. + + + ERROR_VIRTUAL_DISK_LIMITATION + ERROR_VIRTUAL_DISK_LIMITATION + + + + No documentation. + + + ERROR_VHD_INVALID_TYPE + ERROR_VHD_INVALID_TYPE + + + + No documentation. + + + ERROR_VHD_INVALID_STATE + ERROR_VHD_INVALID_STATE + + + + No documentation. + + + ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE + ERROR_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE + + + + No documentation. + + + ERROR_QUERY_STORAGE_ERROR + ERROR_QUERY_STORAGE_ERROR + + + +

Indicates the type of locks placed on records during editing.

+
+ + ms677223 + LOCKTYPE + LOCKTYPE +
+ + + No documentation. + + + ms677223 + LOCK_WRITE + LOCK_WRITE + + + + No documentation. + + + ms677223 + LOCK_EXCLUSIVE + LOCK_EXCLUSIVE + + + + No documentation. + + + ms677223 + LOCK_ONLYONCE + LOCK_ONLYONCE + + + +

The + enumeration values indicate whether the method should try to return a name in the pwcsName member of the + structure. The values are used in the + ILockBytes::Stat, + IStorage::Stat, and + methods to save memory when the pwcsName member is not required.

+
+ + aa380316 + STATFLAG + STATFLAG +
+ + + No documentation. + + + aa380316 + STATFLAG_DEFAULT + STATFLAG_DEFAULT + + + + No documentation. + + + aa380316 + STATFLAG_NONAME + STATFLAG_NONAME + + + + None. + + + None + None + + + +

The + interface lets you read and write data to stream objects. Stream objects contain the data in a structured storage object, where storages provide the structure. Simple data can be written directly to a stream but, most frequently, streams are elements nested within a storage object. They are similar to standard files.

The + interface defines methods similar to the MS-DOS FAT file functions. For example, each stream object has its own access rights and a seek reference. The main difference between a DOS file and a stream object is that in the latter case, streams are opened using an + interface reference rather than a file handle.

The methods in this interface present your object's data as a contiguous sequence of bytes that you can read or write. There are also methods for committing and reverting changes on streams that are open in transacted mode and methods for restricting access to a range of bytes in the stream.

Streams can remain open for long periods of time without consuming file-system resources. The IUnknown::Release method is similar to a close function on a file. Once released, the stream object is no longer valid and cannot be used.

Clients of asynchronous monikers can choose between a data-pull or data-push model for driving an asynchronous + IMoniker::BindToStorage operation and for receiving asynchronous notifications. See + URL Monikers for more information. The following table compares the behavior of asynchronous + and + calls returned in IBindStatusCallback::OnDataAvailable in these two download models:

+
+ + aa380034 + IStream + IStream +
+ + +

The + interface supports simplified sequential access to stream objects. The + interface inherits its + Read and + Write methods from + .

+
+ + aa380010 + ISequentialStream + ISequentialStream +
+ + +

The + interface supports simplified sequential access to stream objects. The + interface inherits its + Read and + Write methods from + .

+
+ + aa380010 + ISequentialStream + ISequentialStream +
+ + + Reads a specified number of bytes from the stream object into memory starting at the current seek pointer. + + The read buffer. + The number of bytes to read. + The actual number of bytes read from the stream object. + + + + Writes a specified number of bytes into the stream object starting at the current seek pointer. + + The buffer. + The number of bytes to read. + The actual number of bytes written to the stream object + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The Read method reads a specified number of bytes from the stream object into memory, starting at the current seek reference.

+
+

A reference to the buffer which the stream data is read into.

+

The number of bytes of data to read from the stream object.

+

A reference to a ULONG variable that receives the actual number of bytes read from the stream object.

Note??The number of bytes read may be zero.

+ +

This method reads bytes from this stream object into memory. The stream object must be opened in STGM_READ mode. This method adjusts the seek reference by the actual number of bytes read.

The number of bytes actually read is also returned in the pcbRead parameter.

+
+ + aa380011 + HRESULT ISequentialStream::Read([Out, Buffer] void* pv,[In] unsigned int cb,[Out, Optional] unsigned int* pcbRead) + ISequentialStream::Read +
+ + +

The Write method writes a specified number of bytes into the stream object starting at the current seek reference.

+
+

A reference to the buffer that contains the data that is to be written to the stream. A valid reference must be provided for this parameter even when cb is zero.

+

The number of bytes of data to attempt to write into the stream. This value can be zero.

+

A reference to a ULONG variable where this method writes the actual number of bytes written to the stream object. The caller can set this reference to null, in which case this method does not provide the actual number of bytes written.

+ +

writes the specified data to a stream object. The seek reference is adjusted for the number of bytes actually written. The number of bytes actually written is returned in the pcbWritten parameter. If the byte count is zero bytes, the write operation has no effect.

If the seek reference is currently past the end of the stream and the byte count is nonzero, this method increases the size of the stream to the seek reference and writes the specified bytes starting at the seek reference. The fill bytes written to the stream are not initialized to any particular value. This is the same as the end-of-file behavior in the MS-DOS FAT file system.

With a zero byte count and a seek reference past the end of the stream, this method does not create the fill bytes to increase the stream to the seek reference. In this case, you must call the + method to increase the size of the stream and write the fill bytes.

The pcbWritten parameter can have a value even if an error occurs.

In the COM-provided implementation, stream objects are not sparse. Any fill bytes are eventually allocated on the disk and assigned to the stream.

+
+ + aa380014 + HRESULT ISequentialStream::Write([In, Buffer] const void* pv,[In] unsigned int cb,[Out, Optional] unsigned int* pcbWritten) + ISequentialStream::Write +
+ + +

The + interface lets you read and write data to stream objects. Stream objects contain the data in a structured storage object, where storages provide the structure. Simple data can be written directly to a stream but, most frequently, streams are elements nested within a storage object. They are similar to standard files.

The + interface defines methods similar to the MS-DOS FAT file functions. For example, each stream object has its own access rights and a seek reference. The main difference between a DOS file and a stream object is that in the latter case, streams are opened using an + interface reference rather than a file handle.

The methods in this interface present your object's data as a contiguous sequence of bytes that you can read or write. There are also methods for committing and reverting changes on streams that are open in transacted mode and methods for restricting access to a range of bytes in the stream.

Streams can remain open for long periods of time without consuming file-system resources. The IUnknown::Release method is similar to a close function on a file. Once released, the stream object is no longer valid and cannot be used.

Clients of asynchronous monikers can choose between a data-pull or data-push model for driving an asynchronous + IMoniker::BindToStorage operation and for receiving asynchronous notifications. See + URL Monikers for more information. The following table compares the behavior of asynchronous + and + calls returned in IBindStatusCallback::OnDataAvailable in these two download models:

+
+ + aa380034 + IStream + IStream +
+ + + Changes the seek pointer to a new location relative to the beginning of the stream, to the end of the stream, or to the current seek pointer. + + The offset. + The origin. + The offset of the seek pointer from the beginning of the stream. + + + + Changes the size of the stream object. + + The new size. + + + + Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream. + + The stream destination. + The number of bytes to copy. + The number of bytes written. + The number of bytes read + + + + Commit method ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. If the stream object is open in direct mode, Commit has no effect other than flushing all memory buffers to the next-level storage object. The COM compound file implementation of streams does not support opening streams in transacted mode. + + The GRF commit flags. + + + + Discards all changes that have been made to a transacted stream since the last call. + + + + + Restricts access to a specified range of bytes in the stream. + + The offset. + The number of bytes to lock. + Type of the dw lock. + + + + Unlocks access to a specified range of bytes in the stream. + + The offset. + The number of bytes to lock. + Type of the dw lock. + + + + Gets the statistics. + + The storage statistics flags. + + + + + Clones this instance. + + + + + + Initializes a new instance of the class. + + The native pointer. + + + + Performs an explicit conversion from to . (This method is a shortcut to ) + + The native pointer. + + The result of the conversion. + + + + +

The Seek method changes the seek reference to a new location. The new location is relative to either the beginning of the stream, the end of the stream, or the current seek reference.

+
+

The displacement to be added to the location indicated by the dwOrigin parameter. If dwOrigin is STREAM_SEEK_SET, this is interpreted as an unsigned value rather than a signed value.

+

The origin for the displacement specified in dlibMove. The origin can be the beginning of the file (STREAM_SEEK_SET), the current seek reference (STREAM_SEEK_CUR), or the end of the file (STREAM_SEEK_END). For more information about values, see the STREAM_SEEK enumeration.

+

A reference to the location where this method writes the value of the new seek reference from the beginning of the stream.

You can set this reference to null. In this case, this method does not provide the new seek reference.

+ +

changes the seek reference so that subsequent read and write operations can be performed at a different location in the stream object. It is an error to seek before the beginning of the stream. It is not, however, an error to seek past the end of the stream. Seeking past the end of the stream is useful for subsequent write operations, as the stream byte range will be extended to the new seek position immediately before the write is complete.

You can also use this method to obtain the current value of the seek reference by calling this method with the dwOrigin parameter set to STREAM_SEEK_CUR and the dlibMove parameter set to 0 so that the seek reference is not changed. The current seek reference is returned in the plibNewPosition parameter.

+
+ + aa380043 + HRESULT IStream::Seek([In] LARGE_INTEGER dlibMove,[In] SHARPDX_SEEKORIGIN dwOrigin,[Out, Optional] ULARGE_INTEGER* plibNewPosition) + IStream::Seek +
+ + +

The SetSize method changes the size of the stream object.

+
+

Specifies the new size, in bytes, of the stream.

+

This method can return one of these values.

The size of the stream object was successfully changed.

E_PENDING

Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information, see IFillLockBytes and Asynchronous Storage.

STG_E_MEDIUMFULL

The stream size is not changed because there is no space left on the storage device.

STG_E_INVALIDFUNCTION

The value of the libNewSize parameter is not supported by the implementation. Not all streams support greater than 232 bytes. If a stream does not support more than 232 bytes, the high DWORD data type of libNewSize must be zero. If it is nonzero, the implementation may return STG_E_INVALIDFUNCTION. In general, COM-based implementations of the interface do not support streams larger than 232 bytes.

STG_E_REVERTED

The object has been invalidated by a revert operation above it in the transaction tree.

+ +

changes the size of the stream object. Call this method to preallocate space for the stream. If the libNewSize parameter is larger than the current stream size, the stream is extended to the indicated size by filling the intervening space with bytes of undefined value. This operation is similar to the + method if the seek reference is past the current end of the stream.

If the libNewSize parameter is smaller than the current stream, the stream is truncated to the indicated size.

The seek reference is not affected by the change in stream size.

Calling can be an effective way to obtain a large chunk of contiguous space.

+
+ + aa380044 + HRESULT IStream::SetSize([In] ULARGE_INTEGER libNewSize) + IStream::SetSize +
+ + +

The CopyTo method copies a specified number of bytes from the current seek reference in the stream to the current seek reference in another stream.

+
+

A reference to the destination stream. The stream pointed to by pstm can be a new stream or a clone of the source stream.

+

The number of bytes to copy from the source stream.

+

A reference to the location where this method writes the actual number of bytes written to the destination. You can set this reference to null. In this case, this method does not provide the actual number of bytes written.

+

A reference to the location where this method writes the actual number of bytes read from the source. You can set this reference to null. In this case, this method does not provide the actual number of bytes read.

+ +

The CopyTo method copies the specified bytes from one stream to another. It can also be used to copy a stream to itself. The seek reference in each stream instance is adjusted for the number of bytes read or written. This method is equivalent to reading cb bytes into memory using + and then immediately writing them to the destination stream using + , although will be more efficient.

The destination stream can be a clone of the source stream created by calling the + method.

If returns an error, you cannot assume that the seek references are valid for either the source or destination. Additionally, the values of pcbRead and pcbWritten are not meaningful even though they are returned.

If returns successfully, the actual number of bytes read and written are the same.

To copy the remainder of the source from the current seek reference, specify the maximum large integer value for the cb parameter. If the seek reference is the beginning of the stream, this operation copies the entire stream.

+
+ + aa380038 + HRESULT IStream::CopyTo([In] IStream* pstm,[In] ULARGE_INTEGER cb,[Out] ULARGE_INTEGER* pcbRead,[Out] ULARGE_INTEGER* pcbWritten) + IStream::CopyTo +
+ + +

The Commit method ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. If the stream object is open in direct mode, has no effect other than flushing all memory buffers to the next-level storage object. The COM compound file implementation of streams does not support opening streams in transacted mode.

+
+

Controls how the changes for the stream object are committed. See the enumeration for a definition of these values.

+

This method can return one of these values.

Changes to the stream object were successfully committed to the parent level.

E_PENDING

Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information see IFillLockBytes and Asynchronous Storage.

STG_E_MEDIUMFULL

The commit operation failed due to lack of space on the storage device.

STG_E_REVERTED

The object has been invalidated by a revert operation above it in the transaction tree.

+ +

The Commit method ensures that changes to a stream object opened in transacted mode are reflected in the parent storage. Changes that have been made to the stream since it was opened or last committed are reflected to the parent storage object. If the parent is opened in transacted mode, the parent may revert at a later time, rolling back the changes to this stream object. The compound file implementation does not support the opening of streams in transacted mode, so this method has very little effect other than to flush memory buffers. For more information, see + - Compound File Implementation.

If the stream is open in direct mode, this method ensures that any memory buffers have been flushed out to the underlying storage object. This is much like a flush in traditional file systems.

The method is useful on a direct mode stream when the implementation of the + interface is a wrapper for underlying file system APIs. In this case, would be connected to the file system's flush call.

+
+ + aa380036 + HRESULT IStream::Commit([In] STGC grfCommitFlags) + IStream::Commit +
+ + +

The Revert method discards all changes that have been made to a transacted stream since the last + call. On streams open in direct mode and streams using the COM compound file implementation of , this method has no effect.

+
+

This method can return one of these values.

The stream was successfully reverted to its previous version.

E_PENDING

Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information see IFillLockBytes and Asynchronous Storage.

+ +

The Revert method discards changes made to a transacted stream since the last commit operation.

+
+ + aa380042 + HRESULT IStream::Revert() + IStream::Revert +
+ + +

The LockRegion method restricts access to a specified range of bytes in the stream. Supporting this functionality is optional since some file systems do not provide it.

+
+

Integer that specifies the byte offset for the beginning of the range.

+

Integer that specifies the length of the range, in bytes, to be restricted.

+

Specifies the restrictions being requested on accessing the range.

+

This method can return one of these values.

The specified range of bytes was locked.

E_PENDING

Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information, see IFillLockBytes and Asynchronous Storage.

STG_E_INVALIDFUNCTION

Locking is not supported at all or the specific type of lock requested is not supported.

STG_E_LOCKVIOLATION

Requested lock is supported, but cannot be granted because of an existing lock.

STG_E_REVERTED

The object has been invalidated by a revert operation above it in the transaction tree.

+ +

The byte range of the stream can be extended. Locking an extended range for the stream is useful as a method of communication between different instances of the stream without changing data that is actually part of the stream.

Three types of locking can be supported: locking to exclude other writers, locking to exclude other readers or writers, and locking that allows only one requester to obtain a lock on the given range, which is usually an alias for one of the other two lock types. A given stream instance might support either of the first two types, or both. The lock type is specified by dwLockType, using a value from the + enumeration.

Any region locked with must later be explicitly unlocked by calling + with exactly the same values for the libOffset, cb, and dwLockType parameters. The region must be unlocked before the stream is released. Two adjacent regions cannot be locked separately and then unlocked with a single unlock call.

+
+ + aa380039 + HRESULT IStream::LockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType) + IStream::LockRegion +
+ + +

The UnlockRegion method removes the access restriction on a range of bytes previously restricted with + .

+
+ No documentation. + No documentation. + No documentation. +

This method can return one of these values.

The byte range was unlocked.

E_PENDING

Asynchronous Storage only: Part or all of the stream's data is currently unavailable. For more information see IFillLockBytes and Asynchronous Storage.

STG_E_INVALIDFUNCTION

Locking is not supported at all or the specific type of lock requested is not supported.

STG_E_LOCKVIOLATION

The requested unlock operation cannot be granted.

STG_E_REVERTED

The object has been invalidated by a revert operation above it in the transaction tree.

+ +

unlocks a region previously locked with the + method. Locked regions must later be explicitly unlocked by calling with exactly the same values for the libOffset, cb, and dwLockType parameters. The region must be unlocked before the stream is released. Two adjacent regions cannot be locked separately and then unlocked with a single unlock call.

+
+ + aa380046 + HRESULT IStream::UnlockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType) + IStream::UnlockRegion +
+ + +

The Stat method retrieves the + structure for this stream.

+
+ No documentation. + No documentation. + +

retrieves a reference to the + structure that contains information about this open stream. When this stream is within a structured storage and + IStorage::EnumElements is called, it creates an enumerator object with the + IEnumSTATSTG interface on it, which can be called to enumerate the storages and streams through the + structures associated with each of them.

+
+ + aa380045 + HRESULT IStream::Stat([Out] STATSTG* pstatstg,[In] STATFLAG grfStatFlag) + IStream::Stat +
+ + +

The Clone method creates a new stream object with its own seek reference that references the same bytes as the original stream.

+
+

When successful, reference to the location of an reference to the new stream object. If an error occurs, this parameter is null.

+ +

The Clone method creates a new stream object for accessing the same bytes but using a separate seek reference. The new stream object sees the same data as the source-stream object. Changes written to one object are immediately visible in the other. Range locking is shared between the stream objects.

The initial setting of the seek reference in the cloned stream instance is the same as the current setting of the seek reference in the original stream at the time of the clone operation.

+
+ + aa380035 + HRESULT IStream::Clone([Out] IStream** ppstm) + IStream::Clone +
+ + + Copies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream. + + The stream destination. + The number of bytes to copy. + The bytes written. + The number of bytes read from this instance + + + + Gets a com pointer to the underlying object. + + The stream. + A Com pointer + + + +

The + structure contains statistical data about an open storage, stream, or byte-array object. This structure is used in the + IEnumSTATSTG, + ILockBytes, + IStorage, and + interfaces.

+
+ + aa380319 + STATSTG + STATSTG +
+ + + No documentation. + + + aa380319 + wchar_t* pwcsName + wchar_t pwcsName + + + + No documentation. + + + aa380319 + unsigned int type + unsigned int type + + + + No documentation. + + + aa380319 + ULARGE_INTEGER cbSize + ULARGE_INTEGER cbSize + + + + No documentation. + + + aa380319 + FILETIME mtime + FILETIME mtime + + + + No documentation. + + + aa380319 + FILETIME ctime + FILETIME ctime + + + + No documentation. + + + aa380319 + FILETIME atime + FILETIME atime + + + + No documentation. + + + aa380319 + unsigned int grfMode + unsigned int grfMode + + + + No documentation. + + + aa380319 + unsigned int grfLocksSupported + unsigned int grfLocksSupported + + + + No documentation. + + + aa380319 + GUID clsid + GUID clsid + + + + No documentation. + + + aa380319 + unsigned int grfStateBits + unsigned int grfStateBits + + + + No documentation. + + + aa380319 + unsigned int reserved + unsigned int reserved + + + + A half precision (16 bit) floating point value. + + + + + Number of decimal digits of precision. + + + + + Number of bits in the mantissa. + + + + + Maximum decimal exponent. + + + + + Maximum binary exponent. + + + + + Minimum decimal exponent. + + + + + Minimum binary exponent. + + + + + Exponent radix. + + + + + Additional rounding. + + + + + Smallest such that 1.0 + epsilon != 1.0 + + + + + Maximum value of the number. + + + + + Minimum value of the number. + + + + + Initializes a new instance of the structure. + + The floating point value that should be stored in 16 bit format. + + + + Initializes a new instance of the structure. + + The floating point value that should be stored in 16 bit format. + + + + Converts an array of half precision values into full precision values. + + The values to be converted. + An array of converted values. + + + + Converts an array of full precision values into half precision values. + + The values to be converted. + An array of converted values. + + + + Performs an explicit conversion from to . + + The value to be converted. + The converted value. + + + + Performs an implicit conversion from to . + + The value to be converted. + The converted value. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + + true if has a different value than ; otherwise, false. + + + + Converts the value of the object to its equivalent string representation. + + The string representation of the value of this instance. + + + + Returns the hash code for this instance. + + A 32-bit signed integer hash code. + + + + + + + Determines whether the specified object instances are considered equal. + + + + + true if is the same instance as or + if both are null references or if value1.Equals(value2) returns true; otherwise, false. + + + + Returns a value that indicates whether the current instance is equal to the specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Gets or sets the raw 16 bit value used to back this half-float. + + + + + Defines a two component vector, using half precision floating point coordinates. + + + + + Gets or sets the X component of the vector. + + The X component of the vector. + + + + Gets or sets the Y component of the vector. + + The Y component of the vector. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + + + + Initializes a new instance of the structure. + + The value to set for both the X and Y components. + + + + Initializes a new instance of the structure. + + Value to initialize X and Y components with. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + + true if has a different value than ; otherwise, false. + + + + Returns the hash code for this instance. + + A 32-bit signed integer hash code. + + + + + + + Determines whether the specified object instances are considered equal. + + + + + true if is the same instance as or + if both are null references or if value1.Equals(value2) returns true; otherwise, false. + + + + Returns a value that indicates whether the current instance is equal to the specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Defines a three component vector, using half precision floating point coordinates. + + + + + Gets or sets the X component of the vector. + + The X component of the vector. + + + + Gets or sets the Y component of the vector. + + The Y component of the vector. + + + + Gets or sets the Z component of the vector. + + The Z component of the vector. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + The Z component. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + The Z component. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + The Z component. + + + + Initializes a new instance of the structure. + + The value to set for the X, Y, and Z components. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + + true if has a different value than ; otherwise, false. + + + + Returns the hash code for this instance. + + A 32-bit signed integer hash code. + + + + + + + Determines whether the specified object instances are considered equal. + + + + + true if is the same instance as or + if both are null references or if value1.Equals(value2) returns true; otherwise, false. + + + + Returns a value that indicates whether the current instance is equal to the specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Defines a four component vector, using half precision floating point coordinates. + + + + + Gets or sets the X component of the vector. + + The X component of the vector. + + + + Gets or sets the Y component of the vector. + + The Y component of the vector. + + + + Gets or sets the Z component of the vector. + + The Z component of the vector. + + + + Gets or sets the W component of the vector. + + The W component of the vector. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + The Z component. + The W component. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + The Z component. + The W component. + + + + Initializes a new instance of the structure. + + The X component. + The Y component. + The Z component. + The W component. + + + + Initializes a new instance of the structure. + + The value to set for the X, Y, Z, and W components. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + + true if has a different value than ; otherwise, false. + + + + Returns the hash code for this instance. + + A 32-bit signed integer hash code. + + + + + + + Determines whether the specified object instances are considered equal. + + + + + true if is the same instance as or + if both are null references or if value1.Equals(value2) returns true; otherwise, false. + + + + Returns a value that indicates whether the current instance is equal to the specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Returns a value that indicates whether the current instance is equal to a specified object. + + Object to make the comparison with. + + true if the current instance is equal to the specified object; false otherwise. + + + + Helper class to perform Half/Float conversion. + Code extract from paper : www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf by Jeroen van der Zijp + + + + + Unpacks the specified h. + + The h. + + + + + Packs the specified f. + + The f. + + + + + Represents a four dimensional mathematical vector. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The X unit (1, 0, 0, 0). + + + + + The Y unit (0, 1, 0, 0). + + + + + The Z unit (0, 0, 1, 0). + + + + + The W unit (0, 0, 0, 1). + + + + + A with all of its components set to one. + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + The Z component of the vector. + + + + + The W component of the vector. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the vector. + Initial value for the Y component of the vector. + Initial value for the Z component of the vector. + Initial value for the W component of the vector. + + + + Initializes a new instance of the struct. + + The values to assign to the X, Y, Z, and W components of the vector. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Creates an array containing the elements of the vector. + + A four-element array containing the components of the vector. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + When the method completes, contains the sum of the two vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + When the method completes, contains the difference of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Modulates a vector with another by performing component-wise multiplication. + + The first vector to modulate. + The second vector to modulate. + When the method completes, contains the modulated vector. + + + + Modulates a vector with another by performing component-wise multiplication. + + The first vector to modulate. + The second vector to modulate. + The modulated vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Reverses the direction of a given vector. + + The vector to negate. + When the method completes, contains a vector facing in the opposite direction. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the largest components of the source vectors. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the largest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the smallest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the smallest components of the source vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Assert a vector (return it unchanged). + + The vector to assert (unchanged). + The asserted (unchanged) vector. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Performs an implicit conversion from array to . + + The input. + The result of the conversion. + + + + Performs an implicit conversion from to array. + + The input. + The result of the conversion. + + + + Gets or sets the component at the specified index. + + The value of the X, Y, Z, or W component, depending on the index. + The index of the component to access. Use 0 for the X component, 1 for the Y component, 2 for the Z component, and 3 for the W component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + The implementation of this class is filled by InteropBuilder post-building-event. + + + + + Provides a fixed statement working with generics. + + + The data. + A fixed pointer to the referenced structure + + This is the only function in this class that is inlined in order to inline the fixed statement correctly. + + + + + The value for which all absolute numbers smaller than are considered equal to zero. + + + + + A value specifying the approximation of π which is 180 degrees. + + + + + A value specifying the approximation of 2π which is 360 degrees. + + + + + A value specifying the approximation of π/2 which is 90 degrees. + + + + + A value specifying the approximation of π/4 which is 45 degrees. + + + + + Checks if a and b are almost equals, taking into account the magnitude of floating point numbers (unlike method). See Remarks. + See remarks. + + The left value to compare. + The right value to compare. + true if a almost equal to b, false otherwise + + The code is using the technique described by Bruce Dawson in + Comparing Floating point numbers 2012 edition. + + + + + Determines whether the specified value is close to zero (0.0f). + + The floating value. + true if the specified value is close to zero (0.0f); otherwise, false. + + + + Determines whether the specified value is close to one (1.0f). + + The floating value. + true if the specified value is close to one (1.0f); otherwise, false. + + + + Checks if a - b are almost equals within a float epsilon. + + The left value to compare. + The right value to compare. + Epsilon value + true if a almost equal to b within a float epsilon, false otherwise + + + + Converts revolutions to degrees. + + The value to convert. + The converted value. + + + + Converts revolutions to radians. + + The value to convert. + The converted value. + + + + Converts revolutions to gradians. + + The value to convert. + The converted value. + + + + Converts degrees to revolutions. + + The value to convert. + The converted value. + + + + Converts degrees to radians. + + The value to convert. + The converted value. + + + + Converts radians to revolutions. + + The value to convert. + The converted value. + + + + Converts radians to gradians. + + The value to convert. + The converted value. + + + + Converts gradians to revolutions. + + The value to convert. + The converted value. + + + + Converts gradians to degrees. + + The value to convert. + The converted value. + + + + Converts gradians to radians. + + The value to convert. + The converted value. + + + + Converts radians to degrees. + + The value to convert. + The converted value. + + + + Clamps the specified value. + + The value. + The min. + The max. + The result of clamping a value between min and max + + + + Clamps the specified value. + + The value. + The min. + The max. + The result of clamping a value between min and max + + + + Interpolates between two values using a linear function by a given amount. + + + See http://www.encyclopediaofmath.org/index.php/Linear_interpolation and + http://fgiesen.wordpress.com/2012/08/15/linear-interpolation-past-present-and-future/ + + Value to interpolate from. + Value to interpolate to. + Interpolation amount. + The result of linear interpolation of values based on the amount. + + + + Interpolates between two values using a linear function by a given amount. + + + See http://www.encyclopediaofmath.org/index.php/Linear_interpolation and + http://fgiesen.wordpress.com/2012/08/15/linear-interpolation-past-present-and-future/ + + Value to interpolate from. + Value to interpolate to. + Interpolation amount. + The result of linear interpolation of values based on the amount. + + + + Interpolates between two values using a linear function by a given amount. + + + See http://www.encyclopediaofmath.org/index.php/Linear_interpolation and + http://fgiesen.wordpress.com/2012/08/15/linear-interpolation-past-present-and-future/ + + Value to interpolate from. + Value to interpolate to. + Interpolation amount. + The result of linear interpolation of values based on the amount. + + + + Performs smooth (cubic Hermite) interpolation between 0 and 1. + + + See https://en.wikipedia.org/wiki/Smoothstep + + Value between 0 and 1 indicating interpolation amount. + + + + Performs a smooth(er) interpolation between 0 and 1 with 1st and 2nd order derivatives of zero at endpoints. + + + See https://en.wikipedia.org/wiki/Smoothstep + + Value between 0 and 1 indicating interpolation amount. + + + + Calculates the modulo of the specified value. + + The value. + The modulo. + The result of the modulo applied to value + + + + Calculates the modulo 2*PI of the specified value. + + The value. + The result of the modulo applied to value + + + + Wraps the specified value into a range [min, max] + + The value to wrap. + The min. + The max. + Result of the wrapping. + Is thrown when is greater than . + + + + Wraps the specified value into a range [min, max[ + + The value. + The min. + The max. + Result of the wrapping. + Is thrown when is greater than . + + + + Gauss function. + http://en.wikipedia.org/wiki/Gaussian_function#Two-dimensional_Gaussian_function + + Curve amplitude. + Position X. + Position Y + Center X. + Center Y. + Curve sigma X. + Curve sigma Y. + The result of Gaussian function. + + + + Gauss function. + http://en.wikipedia.org/wiki/Gaussian_function#Two-dimensional_Gaussian_function + + Curve amplitude. + Position X. + Position Y + Center X. + Center Y. + Curve sigma X. + Curve sigma Y. + The result of Gaussian function. + + + + Represents a 4x4 mathematical matrix. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The identity . + + + + + Value at row 1 column 1 of the matrix. + + + + + Value at row 1 column 2 of the matrix. + + + + + Value at row 1 column 3 of the matrix. + + + + + Value at row 1 column 4 of the matrix. + + + + + Value at row 2 column 1 of the matrix. + + + + + Value at row 2 column 2 of the matrix. + + + + + Value at row 2 column 3 of the matrix. + + + + + Value at row 2 column 4 of the matrix. + + + + + Value at row 3 column 1 of the matrix. + + + + + Value at row 3 column 2 of the matrix. + + + + + Value at row 3 column 3 of the matrix. + + + + + Value at row 3 column 4 of the matrix. + + + + + Value at row 4 column 1 of the matrix. + + + + + Value at row 4 column 2 of the matrix. + + + + + Value at row 4 column 3 of the matrix. + + + + + Value at row 4 column 4 of the matrix. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The value to assign at row 1 column 1 of the matrix. + The value to assign at row 1 column 2 of the matrix. + The value to assign at row 1 column 3 of the matrix. + The value to assign at row 1 column 4 of the matrix. + The value to assign at row 2 column 1 of the matrix. + The value to assign at row 2 column 2 of the matrix. + The value to assign at row 2 column 3 of the matrix. + The value to assign at row 2 column 4 of the matrix. + The value to assign at row 3 column 1 of the matrix. + The value to assign at row 3 column 2 of the matrix. + The value to assign at row 3 column 3 of the matrix. + The value to assign at row 3 column 4 of the matrix. + The value to assign at row 4 column 1 of the matrix. + The value to assign at row 4 column 2 of the matrix. + The value to assign at row 4 column 3 of the matrix. + The value to assign at row 4 column 4 of the matrix. + + + + Initializes a new instance of the struct. + + The values to assign to the components of the matrix. This must be an array with sixteen elements. + Thrown when is null. + Thrown when contains more or less than sixteen elements. + + + + Calculates the determinant of the matrix. + + The determinant of the matrix. + + + + Inverts the matrix. + + + + + Transposes the matrix. + + + + + Orthogonalizes the specified matrix. + + + Orthogonalization is the process of making all rows orthogonal to each other. This + means that any given row in the matrix will be orthogonal to any other given row in the + matrix. + Because this method uses the modified Gram-Schmidt process, the resulting matrix + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the matrix rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthonormalizes the specified matrix. + + + Orthonormalization is the process of making all rows and columns orthogonal to each + other and making all rows and columns of unit length. This means that any given row will + be orthogonal to any other given row and any given column will be orthogonal to any other + given column. Any given row will not be orthogonal to any given column. Every row and every + column will be of unit length. + Because this method uses the modified Gram-Schmidt process, the resulting matrix + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the matrix rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Decomposes a matrix into an orthonormalized matrix Q and a right triangular matrix R. + + When the method completes, contains the orthonormalized matrix of the decomposition. + When the method completes, contains the right triangular matrix of the decomposition. + + + + Decomposes a matrix into a lower triangular matrix L and an orthonormalized matrix Q. + + When the method completes, contains the lower triangular matrix of the decomposition. + When the method completes, contains the orthonormalized matrix of the decomposition. + + + + Decomposes a matrix into a scale, rotation, and translation. + + When the method completes, contains the scaling component of the decomposed matrix. + When the method completes, contains the rotation component of the decomposed matrix. + When the method completes, contains the translation component of the decomposed matrix. + + This method is designed to decompose an SRT transformation matrix only. + + + + + Decomposes a uniform scale matrix into a scale, rotation, and translation. + A uniform scale matrix has the same scale in every axis. + + When the method completes, contains the scaling component of the decomposed matrix. + When the method completes, contains the rotation component of the decomposed matrix. + When the method completes, contains the translation component of the decomposed matrix. + + This method is designed to decompose only an SRT transformation matrix that has the same scale in every axis. + + + + + Exchanges two rows in the matrix. + + The first row to exchange. This is an index of the row starting at zero. + The second row to exchange. This is an index of the row starting at zero. + + + + Exchanges two columns in the matrix. + + The first column to exchange. This is an index of the column starting at zero. + The second column to exchange. This is an index of the column starting at zero. + + + + Creates an array containing the elements of the matrix. + + A sixteen-element array containing the components of the matrix. + + + + Determines the sum of two matrices. + + The first matrix to add. + The second matrix to add. + When the method completes, contains the sum of the two matrices. + + + + Determines the sum of two matrices. + + The first matrix to add. + The second matrix to add. + The sum of the two matrices. + + + + Determines the difference between two matrices. + + The first matrix to subtract. + The second matrix to subtract. + When the method completes, contains the difference between the two matrices. + + + + Determines the difference between two matrices. + + The first matrix to subtract. + The second matrix to subtract. + The difference between the two matrices. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + When the method completes, contains the scaled matrix. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Determines the product of two matrices. + + The first matrix to multiply. + The second matrix to multiply. + The product of the two matrices. + + + + Determines the product of two matrices. + + The first matrix to multiply. + The second matrix to multiply. + The product of the two matrices. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + When the method completes, contains the scaled matrix. + + + + Scales a matrix by the given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Determines the quotient of two matrices. + + The first matrix to divide. + The second matrix to divide. + When the method completes, contains the quotient of the two matrices. + + + + Determines the quotient of two matrices. + + The first matrix to divide. + The second matrix to divide. + The quotient of the two matrices. + + + + Performs the exponential operation on a matrix. + + The matrix to perform the operation on. + The exponent to raise the matrix to. + When the method completes, contains the exponential matrix. + Thrown when the is negative. + + + + Performs the exponential operation on a matrix. + + The matrix to perform the operation on. + The exponent to raise the matrix to. + The exponential matrix. + Thrown when the is negative. + + + + Negates a matrix. + + The matrix to be negated. + When the method completes, contains the negated matrix. + + + + Negates a matrix. + + The matrix to be negated. + The negated matrix. + + + + Performs a linear interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two matrices. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two matrices. + + + + Performs a cubic interpolation between two matrices. + + Start matrix. + End matrix. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two matrices. + + + + Calculates the transpose of the specified matrix. + + The matrix whose transpose is to be calculated. + When the method completes, contains the transpose of the specified matrix. + + + + Calculates the transpose of the specified matrix. + + The matrix whose transpose is to be calculated. + When the method completes, contains the transpose of the specified matrix. + + + + Calculates the transpose of the specified matrix. + + The matrix whose transpose is to be calculated. + The transpose of the specified matrix. + + + + Calculates the inverse of the specified matrix. + + The matrix whose inverse is to be calculated. + When the method completes, contains the inverse of the specified matrix. + + + + Calculates the inverse of the specified matrix. + + The matrix whose inverse is to be calculated. + The inverse of the specified matrix. + + + + Orthogonalizes the specified matrix. + + The matrix to orthogonalize. + When the method completes, contains the orthogonalized matrix. + + Orthogonalization is the process of making all rows orthogonal to each other. This + means that any given row in the matrix will be orthogonal to any other given row in the + matrix. + Because this method uses the modified Gram-Schmidt process, the resulting matrix + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the matrix rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthogonalizes the specified matrix. + + The matrix to orthogonalize. + The orthogonalized matrix. + + Orthogonalization is the process of making all rows orthogonal to each other. This + means that any given row in the matrix will be orthogonal to any other given row in the + matrix. + Because this method uses the modified Gram-Schmidt process, the resulting matrix + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the matrix rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthonormalizes the specified matrix. + + The matrix to orthonormalize. + When the method completes, contains the orthonormalized matrix. + + Orthonormalization is the process of making all rows and columns orthogonal to each + other and making all rows and columns of unit length. This means that any given row will + be orthogonal to any other given row and any given column will be orthogonal to any other + given column. Any given row will not be orthogonal to any given column. Every row and every + column will be of unit length. + Because this method uses the modified Gram-Schmidt process, the resulting matrix + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the matrix rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Orthonormalizes the specified matrix. + + The matrix to orthonormalize. + The orthonormalized matrix. + + Orthonormalization is the process of making all rows and columns orthogonal to each + other and making all rows and columns of unit length. This means that any given row will + be orthogonal to any other given row and any given column will be orthogonal to any other + given column. Any given row will not be orthogonal to any given column. Every row and every + column will be of unit length. + Because this method uses the modified Gram-Schmidt process, the resulting matrix + tends to be numerically unstable. The numeric stability decreases according to the rows + so that the first row is the most stable and the last row is the least stable. + This operation is performed on the rows of the matrix rather than the columns. + If you wish for this operation to be performed on the columns, first transpose the + input and than transpose the output. + + + + + Brings the matrix into upper triangular form using elementary row operations. + + The matrix to put into upper triangular form. + When the method completes, contains the upper triangular matrix. + + If the matrix is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the matrix represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the matrix into upper triangular form using elementary row operations. + + The matrix to put into upper triangular form. + The upper triangular matrix. + + If the matrix is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the matrix represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the matrix into lower triangular form using elementary row operations. + + The matrix to put into lower triangular form. + When the method completes, contains the lower triangular matrix. + + If the matrix is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the matrix represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the matrix into lower triangular form using elementary row operations. + + The matrix to put into lower triangular form. + The lower triangular matrix. + + If the matrix is not invertible (i.e. its determinant is zero) than the result of this + method may produce Single.Nan and Single.Inf values. When the matrix represents a system + of linear equations, than this often means that either no solution exists or an infinite + number of solutions exist. + + + + + Brings the matrix into row echelon form using elementary row operations; + + The matrix to put into row echelon form. + When the method completes, contains the row echelon form of the matrix. + + + + Brings the matrix into row echelon form using elementary row operations; + + The matrix to put into row echelon form. + When the method completes, contains the row echelon form of the matrix. + + + + Brings the matrix into reduced row echelon form using elementary row operations. + + The matrix to put into reduced row echelon form. + The fifth column of the matrix. + When the method completes, contains the resultant matrix after the operation. + When the method completes, contains the resultant fifth column of the matrix. + + The fifth column is often called the augmented part of the matrix. This is because the fifth + column is really just an extension of the matrix so that there is a place to put all of the + non-zero components after the operation is complete. + Often times the resultant matrix will the identity matrix or a matrix similar to the identity + matrix. Sometimes, however, that is not possible and numbers other than zero and one may appear. + This method can be used to solve systems of linear equations. Upon completion of this method, + the will contain the solution for the system. It is up to the user + to analyze both the input and the result to determine if a solution really exists. + + + + + Creates a left-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + When the method completes, contains the created billboard matrix. + + + + Creates a left-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + The created billboard matrix. + + + + Creates a right-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + When the method completes, contains the created billboard matrix. + + + + Creates a right-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + The created billboard matrix. + + + + Creates a left-handed, look-at matrix. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + When the method completes, contains the created look-at matrix. + + + + Creates a left-handed, look-at matrix. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + The created look-at matrix. + + + + Creates a right-handed, look-at matrix. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + When the method completes, contains the created look-at matrix. + + + + Creates a right-handed, look-at matrix. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + The created look-at matrix. + + + + Creates a left-handed, orthographic projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a left-handed, orthographic projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a right-handed, orthographic projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a right-handed, orthographic projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a left-handed, customized orthographic projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a left-handed, customized orthographic projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a right-handed, customized orthographic projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a right-handed, customized orthographic projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a left-handed, perspective projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a left-handed, perspective projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a right-handed, perspective projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a right-handed, perspective projection matrix. + + Width of the viewing volume. + Height of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a left-handed, perspective projection matrix based on a field of view. + + Field of view in the y direction, in radians. + Aspect ratio, defined as view space width divided by height. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a left-handed, perspective projection matrix based on a field of view. + + Field of view in the y direction, in radians. + Aspect ratio, defined as view space width divided by height. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a right-handed, perspective projection matrix based on a field of view. + + Field of view in the y direction, in radians. + Aspect ratio, defined as view space width divided by height. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a right-handed, perspective projection matrix based on a field of view. + + Field of view in the y direction, in radians. + Aspect ratio, defined as view space width divided by height. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a left-handed, customized perspective projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a left-handed, customized perspective projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Creates a right-handed, customized perspective projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + When the method completes, contains the created projection matrix. + + + + Creates a right-handed, customized perspective projection matrix. + + Minimum x-value of the viewing volume. + Maximum x-value of the viewing volume. + Minimum y-value of the viewing volume. + Maximum y-value of the viewing volume. + Minimum z-value of the viewing volume. + Maximum z-value of the viewing volume. + The created projection matrix. + + + + Builds a matrix that can be used to reflect vectors about a plane. + + The plane for which the reflection occurs. This parameter is assumed to be normalized. + When the method completes, contains the reflection matrix. + + + + Builds a matrix that can be used to reflect vectors about a plane. + + The plane for which the reflection occurs. This parameter is assumed to be normalized. + The reflection matrix. + + + + Creates a matrix that flattens geometry into a shadow. + + The light direction. If the W component is 0, the light is directional light; if the + W component is 1, the light is a point light. + The plane onto which to project the geometry as a shadow. This parameter is assumed to be normalized. + When the method completes, contains the shadow matrix. + + + + Creates a matrix that flattens geometry into a shadow. + + The light direction. If the W component is 0, the light is directional light; if the + W component is 1, the light is a point light. + The plane onto which to project the geometry as a shadow. This parameter is assumed to be normalized. + The shadow matrix. + + + + Creates a matrix that scales along the x-axis, y-axis, and y-axis. + + Scaling factor for all three axes. + When the method completes, contains the created scaling matrix. + + + + Creates a matrix that scales along the x-axis, y-axis, and y-axis. + + Scaling factor for all three axes. + The created scaling matrix. + + + + Creates a matrix that scales along the x-axis, y-axis, and y-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Scaling factor that is applied along the z-axis. + When the method completes, contains the created scaling matrix. + + + + Creates a matrix that scales along the x-axis, y-axis, and y-axis. + + Scaling factor that is applied along the x-axis. + Scaling factor that is applied along the y-axis. + Scaling factor that is applied along the z-axis. + The created scaling matrix. + + + + Creates a matrix that uniformly scales along all three axis. + + The uniform scale that is applied along all axis. + When the method completes, contains the created scaling matrix. + + + + Creates a matrix that uniformly scales along all three axis. + + The uniform scale that is applied along all axis. + The created scaling matrix. + + + + Creates a matrix that rotates around the x-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation matrix. + + + + Creates a matrix that rotates around the x-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation matrix. + + + + Creates a matrix that rotates around the y-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation matrix. + + + + Creates a matrix that rotates around the y-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation matrix. + + + + Creates a matrix that rotates around the z-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation matrix. + + + + Creates a matrix that rotates around the z-axis. + + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation matrix. + + + + Creates a matrix that rotates around an arbitrary axis. + + The axis around which to rotate. This parameter is assumed to be normalized. + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + When the method completes, contains the created rotation matrix. + + + + Creates a matrix that rotates around an arbitrary axis. + + The axis around which to rotate. This parameter is assumed to be normalized. + Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. + The created rotation matrix. + + + + Creates a rotation matrix from a quaternion. + + The quaternion to use to build the matrix. + The created rotation matrix. + + + + Creates a rotation matrix from a quaternion. + + The quaternion to use to build the matrix. + The created rotation matrix. + + + + Creates a rotation matrix with a specified yaw, pitch, and roll. + + Yaw around the y-axis, in radians. + Pitch around the x-axis, in radians. + Roll around the z-axis, in radians. + When the method completes, contains the created rotation matrix. + + + + Creates a rotation matrix with a specified yaw, pitch, and roll. + + Yaw around the y-axis, in radians. + Pitch around the x-axis, in radians. + Roll around the z-axis, in radians. + The created rotation matrix. + + + + Creates a translation matrix using the specified offsets. + + The offset for all three coordinate planes. + When the method completes, contains the created translation matrix. + + + + Creates a translation matrix using the specified offsets. + + The offset for all three coordinate planes. + The created translation matrix. + + + + Creates a translation matrix using the specified offsets. + + X-coordinate offset. + Y-coordinate offset. + Z-coordinate offset. + When the method completes, contains the created translation matrix. + + + + Creates a translation matrix using the specified offsets. + + X-coordinate offset. + Y-coordinate offset. + Z-coordinate offset. + The created translation matrix. + + + + Creates a skew/shear matrix by means of a translation vector, a rotation vector, and a rotation angle. + shearing is performed in the direction of translation vector, where translation vector and rotation vector define the shearing plane. + The effect is such that the skewed rotation vector has the specified angle with rotation itself. + + The rotation angle. + The rotation vector + The translation vector + Contains the created skew/shear matrix. + + + + Creates a 3D affine transformation matrix. + + Scaling factor. + The rotation of the transformation. + The translation factor of the transformation. + When the method completes, contains the created affine transformation matrix. + + + + Creates a 3D affine transformation matrix. + + Scaling factor. + The rotation of the transformation. + The translation factor of the transformation. + The created affine transformation matrix. + + + + Creates a 3D affine transformation matrix. + + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + When the method completes, contains the created affine transformation matrix. + + + + Creates a 3D affine transformation matrix. + + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + The created affine transformation matrix. + + + + Creates a 2D affine transformation matrix. + + Scaling factor. + The rotation of the transformation. + The translation factor of the transformation. + When the method completes, contains the created affine transformation matrix. + + + + Creates a 2D affine transformation matrix. + + Scaling factor. + The rotation of the transformation. + The translation factor of the transformation. + The created affine transformation matrix. + + + + Creates a 2D affine transformation matrix. + + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + When the method completes, contains the created affine transformation matrix. + + + + Creates a 2D affine transformation matrix. + + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + The created affine transformation matrix. + + + + Creates a transformation matrix. + + Center point of the scaling operation. + Scaling rotation amount. + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + When the method completes, contains the created transformation matrix. + + + + Creates a transformation matrix. + + Center point of the scaling operation. + Scaling rotation amount. + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + The created transformation matrix. + + + + Creates a 2D transformation matrix. + + Center point of the scaling operation. + Scaling rotation amount. + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + When the method completes, contains the created transformation matrix. + + + + Creates a 2D transformation matrix. + + Center point of the scaling operation. + Scaling rotation amount. + Scaling factor. + The center of the rotation. + The rotation of the transformation. + The translation factor of the transformation. + The created transformation matrix. + + + + Adds two matrices. + + The first matrix to add. + The second matrix to add. + The sum of the two matrices. + + + + Assert a matrix (return it unchanged). + + The matrix to assert (unchanged). + The asserted (unchanged) matrix. + + + + Subtracts two matrices. + + The first matrix to subtract. + The second matrix to subtract. + The difference between the two matrices. + + + + Negates a matrix. + + The matrix to negate. + The negated matrix. + + + + Scales a matrix by a given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Scales a matrix by a given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Multiplies two matrices. + + The first matrix to multiply. + The second matrix to multiply. + The product of the two matrices. + + + + Scales a matrix by a given value. + + The matrix to scale. + The amount by which to scale. + The scaled matrix. + + + + Divides two matrices. + + The first matrix to divide. + The second matrix to divide. + The quotient of the two matrices. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Gets or sets the up of the matrix; that is M21, M22, and M23. + + + + + Gets or sets the down of the matrix; that is -M21, -M22, and -M23. + + + + + Gets or sets the right of the matrix; that is M11, M12, and M13. + + + + + Gets or sets the left of the matrix; that is -M11, -M12, and -M13. + + + + + Gets or sets the forward of the matrix; that is -M31, -M32, and -M33. + + + + + Gets or sets the backward of the matrix; that is M31, M32, and M33. + + + + + Gets or sets the first row in the matrix; that is M11, M12, M13, and M14. + + + + + Gets or sets the second row in the matrix; that is M21, M22, M23, and M24. + + + + + Gets or sets the third row in the matrix; that is M31, M32, M33, and M34. + + + + + Gets or sets the fourth row in the matrix; that is M41, M42, M43, and M44. + + + + + Gets or sets the first column in the matrix; that is M11, M21, M31, and M41. + + + + + Gets or sets the second column in the matrix; that is M12, M22, M32, and M42. + + + + + Gets or sets the third column in the matrix; that is M13, M23, M33, and M43. + + + + + Gets or sets the fourth column in the matrix; that is M14, M24, M34, and M44. + + + + + Gets or sets the translation of the matrix; that is M41, M42, and M43. + + + + + Gets or sets the scale of the matrix; that is M11, M22, and M33. + + + + + Gets a value indicating whether this instance is an identity matrix. + + + true if this instance is an identity matrix; otherwise, false. + + + + + Gets or sets the component at the specified index. + + The value of the matrix component, depending on the index. + The zero-based index of the component to access. + The value of the component at the specified index. + Thrown when the is out of the range [0, 15]. + + + + Gets or sets the component at the specified index. + + The value of the matrix component, depending on the index. + The row of the matrix to access. + The column of the matrix to access. + The value of the component at the specified index. + Thrown when the or is out of the range [0, 3]. + + + + Generic sound input stream supporting WAV (Pcm,Float), ADPCM, xWMA sound file formats. + + + + + Initializes a new instance of the class. + + The sound stream. + + + + Initializes the specified stream. + + The stream. + + + + Converts this stream to a DataStream by loading all the data from the source stream. + + + + + + Performs an implicit conversion from to . + + The stream. + + The result of the conversion. + + + + + When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. + + + An I/O error occurs. + + + + + When overridden in a derived class, sets the position within the current stream. + + A byte offset relative to the parameter. + A value of type indicating the reference point used to obtain the new position. + + The new position within the current stream. + + + An I/O error occurs. + + + + The stream does not support seeking, such as if the stream is constructed from a pipe or console output. + + + + Methods were called after the stream was closed. + + + + + When overridden in a derived class, sets the length of the current stream. + + The desired length of the current stream in bytes. + + An I/O error occurs. + + + + The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. + + + + Methods were called after the stream was closed. + + + + + When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. + + An array of bytes. When this method returns, the buffer contains the specified byte array with the values between and ( + - 1) replaced by the bytes read from the current source. + The zero-based byte offset in at which to begin storing the data read from the current stream. + The maximum number of bytes to be read from the current stream. + + The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached. + + + The sum of and is larger than the buffer length. + + + + is null. + + + + or is negative. + + + + An I/O error occurs. + + + + The stream does not support reading. + + + + Methods were called after the stream was closed. + + + + + When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. + + An array of bytes. This method copies bytes from to the current stream. + The zero-based byte offset in at which to begin copying bytes to the current stream. + The number of bytes to be written to the current stream. + + The sum of and is greater than the buffer length. + + + + is null. + + + + or is negative. + + + + An I/O error occurs. + + + + The stream does not support writing. + + + + Methods were called after the stream was closed. + + + + + Gets the decoded packets info. + + + This property is only valid for XWMA stream. + + + + Gets the wave format of this instance. + + + + + When overridden in a derived class, gets a value indicating whether the current stream supports reading. + + true if the stream supports reading; otherwise, false. + + + + + When overridden in a derived class, gets a value indicating whether the current stream supports seeking. + + true if the stream supports seeking; otherwise, false. + + + + + When overridden in a derived class, gets a value indicating whether the current stream supports writing. + + true if the stream supports writing; otherwise, false. + + + + + When overridden in a derived class, gets or sets the position within the current stream. + + + The current position within the stream. + + + + An I/O error occurs. + + + + The stream does not support seeking. + + + + Methods were called after the stream was closed. + + + + + When overridden in a derived class, gets the length in bytes of the stream. + + + A long value representing the length of the stream in bytes. + + + + A class derived from Stream does not support seeking. + + + + Methods were called after the stream was closed. + + + + + WaveFormatAdpcm + http://msdn.microsoft.com/en-us/library/microsoft.directx_sdk.xaudio2.adpcmwaveformat%28v=vs.85%29.aspx + Additional documentation: http://icculus.org/SDL_sound/downloads/external_documentation/wavecomp.htm + + WAVEFORMATADPCM + + + + Represents a Wave file format + + WAVEFORMATEX + + + format type + + + number of channels + + + sample rate + + + for buffer estimation + + + block size of data + + + number of bits per sample of mono data + + + number of following bytes + + + + Creates a new PCM 44.1Khz stereo 16 bit format + + + + + Creates a new 16 bit wave format with the specified sample + rate and channel count + + Sample Rate + Number of channels + + + + Gets the size of a wave buffer equivalent to the latency in milliseconds. + + The milliseconds. + + + + + Creates a WaveFormat with custom members + + The encoding + Sample Rate + Number of channels + Average Bytes Per Second + Block Align + Bits Per Sample + + + + + Creates an A-law wave format + + Sample Rate + Number of Channels + Wave Format + + + + Creates a Mu-law wave format + + Sample Rate + Number of Channels + Wave Format + + + + Creates a new PCM format with the specified sample rate, bit depth and channels + + + + + Creates a new 32 bit IEEE floating point wave format + + sample rate + number of channels + + + + Helper function to retrieve a WaveFormat structure from a pointer + + Buffer to the WaveFormat rawdata + WaveFormat structure + + + + Helper function to retrieve a WaveFormat structure from a pointer + + Pointer to the WaveFormat rawdata + WaveFormat structure + + + + Helper function to marshal WaveFormat to an IntPtr + + WaveFormat + IntPtr to WaveFormat structure (needs to be freed by callee) + + + + Reads a new WaveFormat object from a stream + + A binary reader that wraps the stream + + + + Reports this WaveFormat as a string + + String describing the wave format + + + + Compares with another WaveFormat object + + Object to compare to + True if the objects are the same + + + + Provides a hash code for this WaveFormat + + A hash code + + + + Reads or writes data from/to the given binary serializer. + + The binary serializer. + + + + Returns the encoding type used + + + + + Returns the number of channels (1=mono,2=stereo etc) + + + + + Returns the sample rate (samples per second) + + + + + Returns the average number of bytes used per second + + + + + Returns the block alignment + + + + + Returns the number of bits per sample (usually 16 or 32, sometimes 24 or 8) + Can be 0 for some codecs + + + + + Returns the number of extra bytes used by this waveformat. Often 0, + except for compressed formats which store extra data after the WAVEFORMATEX header + + + + number of following bytes + + + format type + + + number of channels + + + sample rate + + + for buffer estimation + + + block size of data + + + number of bits per sample of mono data + + + + Parameterless constructor for marshalling + + + + + Creates a new WaveFormatAdpcm for MicrosoftADPCM + + The rate. + The channels. + The block align. If 0, then 256 for [0, 11KHz], 512 for ]11KHz, 22Khz], 1024 for ]22Khz, +inf] + + + + Gets or sets the samples per block. + + + The samples per block. + + + + + Gets or sets the coefficients. + + + The coefficients. + + + + + Gets or sets the coefficients. + + + The coefficients. + + + + + A FourCC descriptor. + + + + + Empty FourCC. + + + + + Initializes a new instance of the struct. + + The fourCC value as a string . + + + + Initializes a new instance of the struct. + + The byte1. + The byte2. + The byte3. + The byte4. + + + + Initializes a new instance of the struct. + + The fourCC value as an uint. + + + + Initializes a new instance of the struct. + + The fourCC value as an int. + + + + Performs an implicit conversion from to . + + The d. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The d. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The d. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The d. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The d. + + The result of the conversion. + + + + + Performs an implicit conversion from to . + + The d. + + The result of the conversion. + + + + + A chunk of a Riff stream. + + + + + Initializes a new instance of the class. + + The stream holding this chunk + The type. + The size. + The data offset. + if set to true [is list]. + if set to true [is header]. + + + + Gets the raw data contained in this chunk. + + + + + + Gets structured data contained in this chunk. + + The type of the data to return + + A structure filled with the chunk data + + + + + Gets structured data contained in this chunk. + + The type of the data to return + A structure filled with the chunk data + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Gets the type. + + + + + Gets the of this chunk. + + + + + Gets the size of the data embedded by this chunk. + + + + + Gets the position of the data embedded by this chunk relative to the stream. + + + + + Gets or sets a value indicating whether this instance is a list chunk. + + + true if this instance is list; otherwise, false. + + + + + Gets a value indicating whether this instance is a header chunk. + + + true if this instance is a header; otherwise, false. + + + + + Riff chunk enumerator. + + + + + Initializes a new instance of the class. + + The input. + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Advances the enumerator to the next element of the collection. + + + true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. + + + The collection was modified after the enumerator was created. + + + + + Sets the enumerator to its initial position, which is before the first element in the collection. + + + The collection was modified after the enumerator was created. + + + + + Ascends to the outer chunk. + + + + + Descends to the current chunk. + + + + + Gets all chunks. + + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + + + + Gets the current stack of chunks. + + + + + Gets the element in the collection at the current position of the enumerator. + + + The element in the collection at the current position of the enumerator. + + + + + Helper class for Speaker mask. + + + + + Counts the channels from a speaker mask. + + The speakers mask. + + + + + WaveFormatExtensible + http://www.microsoft.com/whdc/device/audio/multichaud.mspx + + WAVEFORMATEXTENSIBLE + + + + Guid of the subformat. + + + + + Speaker configuration + + + + + Parameterless constructor for marshalling + + + + + Creates a new WaveFormatExtensible for PCM or IEEE + + + + + String representation + + + + + The namespace contains fundamental classes used by SharpDX. + + + + + A general purpose tag attribute. + + + + + Initializes a new instance of class. + + + + + + Gets the value. + + + + + Overrides in order to provide for Win8 Modern App. + + + + + Provides a basic implementation to replace (not available on Win8 Modern App). + + + + + The namespace provides missing ASCIIEncoding for Win8 Modern platform. + + + + + This provides timing information similar to but an update occurring only on a method. + + + + + Initializes a new instance of the class. + + + + + Resets this instance. is set to zero. + + + + + Resumes this instance, only if a call to has been already issued. + + + + + Update the and , + + + This method must be called on a regular basis at every *tick*. + + + + + Pauses this instance. + + + + + Converts a raw time to a . + + The delta. + The . + + + + Gets the total time elapsed since the last reset or when this timer was created. + + + + + Gets the elapsed adjusted time since the previous call to taking into account time. + + + + + Gets the elapsed time since the previous call to . + + + + + Gets a value indicating whether this instance is paused. + + true if this instance is paused; otherwise, false. + + + + Defines the viewport dimensions. + + + + + Position of the pixel coordinate of the upper-left corner of the viewport. + + + + + Position of the pixel coordinate of the upper-left corner of the viewport. + + + + + Width dimension of the viewport. + + + + + Height dimension of the viewport. + + + + + Gets or sets the minimum depth of the clip volume. + + + + + Gets or sets the maximum depth of the clip volume. + + + + + Initializes a new instance of the struct. + + The x coordinate of the upper-left corner of the viewport in pixels. + The y coordinate of the upper-left corner of the viewport in pixels. + The width of the viewport in pixels. + The height of the viewport in pixels. + + + + Initializes a new instance of the struct. + + The x coordinate of the upper-left corner of the viewport in pixels. + The y coordinate of the upper-left corner of the viewport in pixels. + The width of the viewport in pixels. + The height of the viewport in pixels. + The minimum depth of the clip volume. + The maximum depth of the clip volume. + + + + Initializes a new instance of the struct. + + A bounding box that defines the location and size of the viewport in a render target. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified object is equal to this instance. + + The object to compare with this instance. + + true if the specified object is equal to this instance; otherwise, false. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Retrieves a string representation of this object. + + A that represents this instance. + + + + Projects a 3D vector from object space into screen space. + + The vector to project. + The projection matrix. + The view matrix. + The world matrix. + The projected vector. + + + + Projects a 3D vector from object space into screen space. + + The vector to project. + A combined WorldViewProjection matrix. + The projected vector. + + + + Converts a screen space point into a corresponding point in world space. + + The vector to project. + The projection matrix. + The view matrix. + The world matrix. + The unprojected Vector. + + + + Converts a screen space point into a corresponding point in world space. + + The vector to project. + An inverted combined WorldViewProjection matrix. + The unprojected vector. + + + + Gets the size of this resource. + + The bounds. + + + + Gets the aspect ratio used by the viewport. + + The aspect ratio. + + + + Internal class to interact with Native Message + + + + + Represents a plane in three dimensional space. + + + + + The normal vector of the plane. + + + + + The distance of the plane along its normal from the origin. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + The X component of the normal. + The Y component of the normal. + The Z component of the normal. + The distance of the plane along its normal from the origin. + + + + Initializes a new instance of the class. + + Any point that lies along the plane. + The normal vector to the plane. + + + + Initializes a new instance of the struct. + + The normal of the plane. + The distance of the plane along its normal from the origin + + + + Initializes a new instance of the struct. + + First point of a triangle defining the plane. + Second point of a triangle defining the plane. + Third point of a triangle defining the plane. + + + + Initializes a new instance of the struct. + + The values to assign to the A, B, C, and D components of the plane. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Changes the coefficients of the normal vector of the plane to make it of unit length. + + + + + Creates an array containing the elements of the plane. + + A four-element array containing the components of the plane. + + + + Determines if there is an intersection between the current object and a point. + + The point to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test. + When the method completes, contains the line of intersection + as a , or a zero ray if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a triangle. + + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Scales the plane by the given scaling factor. + + The plane to scale. + The amount by which to scale the plane. + When the method completes, contains the scaled plane. + + + + Scales the plane by the given scaling factor. + + The plane to scale. + The amount by which to scale the plane. + The scaled plane. + + + + Calculates the dot product of the specified vector and plane. + + The source plane. + The source vector. + When the method completes, contains the dot product of the specified plane and vector. + + + + Calculates the dot product of the specified vector and plane. + + The source plane. + The source vector. + The dot product of the specified plane and vector. + + + + Calculates the dot product of a specified vector and the normal of the plane plus the distance value of the plane. + + The source plane. + The source vector. + When the method completes, contains the dot product of a specified vector and the normal of the Plane plus the distance value of the plane. + + + + Calculates the dot product of a specified vector and the normal of the plane plus the distance value of the plane. + + The source plane. + The source vector. + The dot product of a specified vector and the normal of the Plane plus the distance value of the plane. + + + + Calculates the dot product of the specified vector and the normal of the plane. + + The source plane. + The source vector. + When the method completes, contains the dot product of the specified vector and the normal of the plane. + + + + Calculates the dot product of the specified vector and the normal of the plane. + + The source plane. + The source vector. + The dot product of the specified vector and the normal of the plane. + + + + Changes the coefficients of the normal vector of the plane to make it of unit length. + + The source plane. + When the method completes, contains the normalized plane. + + + + Changes the coefficients of the normal vector of the plane to make it of unit length. + + The source plane. + The normalized plane. + + + + Transforms a normalized plane by a quaternion rotation. + + The normalized source plane. + The quaternion rotation. + When the method completes, contains the transformed plane. + + + + Transforms a normalized plane by a quaternion rotation. + + The normalized source plane. + The quaternion rotation. + The transformed plane. + + + + Transforms an array of normalized planes by a quaternion rotation. + + The array of normalized planes to transform. + The quaternion rotation. + Thrown when is null. + + + + Transforms a normalized plane by a matrix. + + The normalized source plane. + The transformation matrix. + When the method completes, contains the transformed plane. + + + + Transforms a normalized plane by a matrix. + + The normalized source plane. + The transformation matrix. + When the method completes, contains the transformed plane. + + + + Transforms an array of normalized planes by a matrix. + + The array of normalized planes to transform. + The transformation matrix. + Thrown when is null. + + + + Scales a plane by the given value. + + The amount by which to scale the plane. + The plane to scale. + The scaled plane. + + + + Scales a plane by the given value. + + The plane to scale. + The amount by which to scale the plane. + The scaled plane. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Gets or sets the component at the specified index. + + The value of the A, B, C, or D component, depending on the index. + The index of the component to access. Use 0 for the A component, 1 for the B component, 2 for the C component, and 3 for the D component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + Represents a four dimensional mathematical quaternion. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + A with all of its components set to one. + + + + + The identity (0, 0, 0, 1). + + + + + The X component of the quaternion. + + + + + The Y component of the quaternion. + + + + + The Z component of the quaternion. + + + + + The W component of the quaternion. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + A vector containing the values with which to initialize the components. + + + + Initializes a new instance of the struct. + + A vector containing the values with which to initialize the X, Y, and Z components. + Initial value for the W component of the quaternion. + + + + Initializes a new instance of the struct. + + A vector containing the values with which to initialize the X and Y components. + Initial value for the Z component of the quaternion. + Initial value for the W component of the quaternion. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the quaternion. + Initial value for the Y component of the quaternion. + Initial value for the Z component of the quaternion. + Initial value for the W component of the quaternion. + + + + Initializes a new instance of the struct. + + The values to assign to the X, Y, Z, and W components of the quaternion. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Conjugates the quaternion. + + + + + Conjugates and renormalizes the quaternion. + + + + + Calculates the length of the quaternion. + + The length of the quaternion. + + may be preferred when only the relative length is needed + and speed is of the essence. + + + + + Calculates the squared length of the quaternion. + + The squared length of the quaternion. + + This method may be preferred to when only a relative length is needed + and speed is of the essence. + + + + + Converts the quaternion into a unit quaternion. + + + + + Creates an array containing the elements of the quaternion. + + A four-element array containing the components of the quaternion. + + + + Adds two quaternions. + + The first quaternion to add. + The second quaternion to add. + When the method completes, contains the sum of the two quaternions. + + + + Adds two quaternions. + + The first quaternion to add. + The second quaternion to add. + The sum of the two quaternions. + + + + Subtracts two quaternions. + + The first quaternion to subtract. + The second quaternion to subtract. + When the method completes, contains the difference of the two quaternions. + + + + Subtracts two quaternions. + + The first quaternion to subtract. + The second quaternion to subtract. + The difference of the two quaternions. + + + + Scales a quaternion by the given value. + + The quaternion to scale. + The amount by which to scale the quaternion. + When the method completes, contains the scaled quaternion. + + + + Scales a quaternion by the given value. + + The quaternion to scale. + The amount by which to scale the quaternion. + The scaled quaternion. + + + + Multiplies a quaternion by another. + + The first quaternion to multiply. + The second quaternion to multiply. + When the method completes, contains the multiplied quaternion. + + + + Multiplies a quaternion by another. + + The first quaternion to multiply. + The second quaternion to multiply. + The multiplied quaternion. + + + + Reverses the direction of a given quaternion. + + The quaternion to negate. + When the method completes, contains a quaternion facing in the opposite direction. + + + + Reverses the direction of a given quaternion. + + The quaternion to negate. + A quaternion facing in the opposite direction. + + + + Returns a containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 2D triangle. + + A containing the 4D Cartesian coordinates of vertex 1 of the triangle. + A containing the 4D Cartesian coordinates of vertex 2 of the triangle. + A containing the 4D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + When the method completes, contains a new containing the 4D Cartesian coordinates of the specified point. + + + + Returns a containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 2D triangle. + + A containing the 4D Cartesian coordinates of vertex 1 of the triangle. + A containing the 4D Cartesian coordinates of vertex 2 of the triangle. + A containing the 4D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + A new containing the 4D Cartesian coordinates of the specified point. + + + + Conjugates a quaternion. + + The quaternion to conjugate. + When the method completes, contains the conjugated quaternion. + + + + Conjugates a quaternion. + + The quaternion to conjugate. + The conjugated quaternion. + + + + Calculates the dot product of two quaternions. + + First source quaternion. + Second source quaternion. + When the method completes, contains the dot product of the two quaternions. + + + + Calculates the dot product of two quaternions. + + First source quaternion. + Second source quaternion. + The dot product of the two quaternions. + + + + Exponentiates a quaternion. + + The quaternion to exponentiate. + When the method completes, contains the exponentiated quaternion. + + + + Exponentiates a quaternion. + + The quaternion to exponentiate. + The exponentiated quaternion. + + + + Conjugates and renormalizes the quaternion. + + The quaternion to conjugate and renormalize. + When the method completes, contains the conjugated and renormalized quaternion. + + + + Conjugates and renormalizes the quaternion. + + The quaternion to conjugate and renormalize. + The conjugated and renormalized quaternion. + + + + Performs a linear interpolation between two quaternions. + + Start quaternion. + End quaternion. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two quaternions. + + This method performs the linear interpolation based on the following formula. + start + (end - start) * amount + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two quaternion. + + Start quaternion. + End quaternion. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two quaternions. + + This method performs the linear interpolation based on the following formula. + start + (end - start) * amount + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Calculates the natural logarithm of the specified quaternion. + + The quaternion whose logarithm will be calculated. + When the method completes, contains the natural logarithm of the quaternion. + + + + Calculates the natural logarithm of the specified quaternion. + + The quaternion whose logarithm will be calculated. + The natural logarithm of the quaternion. + + + + Converts the quaternion into a unit quaternion. + + The quaternion to normalize. + When the method completes, contains the normalized quaternion. + + + + Converts the quaternion into a unit quaternion. + + The quaternion to normalize. + The normalized quaternion. + + + + Creates a quaternion given a rotation and an axis. + + The axis of rotation. + The angle of rotation. + When the method completes, contains the newly created quaternion. + + + + Creates a quaternion given a rotation and an axis. + + The axis of rotation. + The angle of rotation. + The newly created quaternion. + + + + Creates a quaternion given a rotation matrix. + + The rotation matrix. + When the method completes, contains the newly created quaternion. + + + + Creates a quaternion given a rotation matrix. + + The rotation matrix. + When the method completes, contains the newly created quaternion. + + + + Creates a left-handed, look-at quaternion. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + When the method completes, contains the created look-at quaternion. + + + + Creates a left-handed, look-at quaternion. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + The created look-at quaternion. + + + + Creates a left-handed, look-at quaternion. + + The camera's forward direction. + The camera's up vector. + When the method completes, contains the created look-at quaternion. + + + + Creates a left-handed, look-at quaternion. + + The camera's forward direction. + The camera's up vector. + The created look-at quaternion. + + + + Creates a right-handed, look-at quaternion. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + When the method completes, contains the created look-at quaternion. + + + + Creates a right-handed, look-at quaternion. + + The position of the viewer's eye. + The camera look-at target. + The camera's up vector. + The created look-at quaternion. + + + + Creates a right-handed, look-at quaternion. + + The camera's forward direction. + The camera's up vector. + When the method completes, contains the created look-at quaternion. + + + + Creates a right-handed, look-at quaternion. + + The camera's forward direction. + The camera's up vector. + The created look-at quaternion. + + + + Creates a left-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + When the method completes, contains the created billboard quaternion. + + + + Creates a left-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + The created billboard quaternion. + + + + Creates a right-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + When the method completes, contains the created billboard quaternion. + + + + Creates a right-handed spherical billboard that rotates around a specified object position. + + The position of the object around which the billboard will rotate. + The position of the camera. + The up vector of the camera. + The forward vector of the camera. + The created billboard quaternion. + + + + Creates a quaternion given a rotation matrix. + + The rotation matrix. + The newly created quaternion. + + + + Creates a quaternion given a yaw, pitch, and roll value. + + The yaw of rotation. + The pitch of rotation. + The roll of rotation. + When the method completes, contains the newly created quaternion. + + + + Creates a quaternion given a yaw, pitch, and roll value. + + The yaw of rotation. + The pitch of rotation. + The roll of rotation. + The newly created quaternion. + + + + Interpolates between two quaternions, using spherical linear interpolation. + + Start quaternion. + End quaternion. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the spherical linear interpolation of the two quaternions. + + + + Interpolates between two quaternions, using spherical linear interpolation. + + Start quaternion. + End quaternion. + Value between 0 and 1 indicating the weight of . + The spherical linear interpolation of the two quaternions. + + + + Interpolates between quaternions, using spherical quadrangle interpolation. + + First source quaternion. + Second source quaternion. + Third source quaternion. + Fourth source quaternion. + Value between 0 and 1 indicating the weight of interpolation. + When the method completes, contains the spherical quadrangle interpolation of the quaternions. + + + + Interpolates between quaternions, using spherical quadrangle interpolation. + + First source quaternion. + Second source quaternion. + Third source quaternion. + Fourth source quaternion. + Value between 0 and 1 indicating the weight of interpolation. + The spherical quadrangle interpolation of the quaternions. + + + + Sets up control points for spherical quadrangle interpolation. + + First source quaternion. + Second source quaternion. + Third source quaternion. + Fourth source quaternion. + An array of three quaternions that represent control points for spherical quadrangle interpolation. + + + + Adds two quaternions. + + The first quaternion to add. + The second quaternion to add. + The sum of the two quaternions. + + + + Subtracts two quaternions. + + The first quaternion to subtract. + The second quaternion to subtract. + The difference of the two quaternions. + + + + Reverses the direction of a given quaternion. + + The quaternion to negate. + A quaternion facing in the opposite direction. + + + + Scales a quaternion by the given value. + + The quaternion to scale. + The amount by which to scale the quaternion. + The scaled quaternion. + + + + Scales a quaternion by the given value. + + The quaternion to scale. + The amount by which to scale the quaternion. + The scaled quaternion. + + + + Multiplies a quaternion by another. + + The first quaternion to multiply. + The second quaternion to multiply. + The multiplied quaternion. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Gets a value indicating whether this instance is equivalent to the identity quaternion. + + + true if this instance is an identity quaternion; otherwise, false. + + + + + Gets a value indicting whether this instance is normalized. + + + + + Gets the angle of the quaternion. + + The quaternion's angle. + + + + Gets the axis components of the quaternion. + + The axis components of the quaternion. + + + + Gets or sets the component at the specified index. + + The value of the X, Y, Z, or W component, depending on the index. + The index of the component to access. Use 0 for the X component, 1 for the Y component, 2 for the Z component, and 3 for the W component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + Represents a three dimensional line based on a point in space and a direction. + + + + + The position in three dimensional space where the ray starts. + + + + + The normalized direction in which the ray points. + + + + + Initializes a new instance of the struct. + + The position in three dimensional space of the origin of the ray. + The normalized direction of the ray. + + + + Determines if there is an intersection between the current object and a point. + + The point to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The ray to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The plane to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a triangle. + + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a triangle. + + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a triangle. + + The first vertex of the triangle to test. + The second vertex of the triangle to test. + The third vertex of the triangle to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The box to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + When the method completes, contains the distance of the intersection, + or 0 if there was no intersection. + Whether the two objects intersected. + + + + Determines if there is an intersection between the current object and a . + + The sphere to test. + When the method completes, contains the point of intersection, + or if there was no intersection. + Whether the two objects intersected. + + + + Calculates a world space from 2d screen coordinates. + + X coordinate on 2d screen. + Y coordinate on 2d screen. + . + Transformation . + Resulting . + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Define a Rectangle. This structure is slightly different from System.Drawing.Rectangle as it is + internally storing Left,Top,Right,Bottom instead of Left,Top,Width,Height. + + + + + An empty rectangle. + + + + + Initializes a new instance of the struct. + + The left. + The top. + The width. + The height. + + + Changes the position of the rectangle. + The values to adjust the position of the rectangle by. + + + Changes the position of the rectangle. + Change in the x-position. + Change in the y-position. + + + Pushes the edges of the rectangle out by the horizontal and vertical values specified. + Value to push the sides out by. + Value to push the top and bottom out by. + + + Determines whether this rectangle contains a specified point represented by its x- and y-coordinates. + The x-coordinate of the specified point. + The y-coordinate of the specified point. + + + Determines whether this rectangle contains a specified Point. + The Point to evaluate. + + + Determines whether this rectangle contains a specified Point. + The Point to evaluate. + [OutAttribute] true if the specified Point is contained within this rectangle; false otherwise. + + + Determines whether this rectangle entirely contains a specified rectangle. + The rectangle to evaluate. + + + Determines whether this rectangle entirely contains a specified rectangle. + The rectangle to evaluate. + [OutAttribute] On exit, is true if this rectangle entirely contains the specified rectangle, or false if not. + + + + Checks, if specified point is inside . + + X point coordinate. + Y point coordinate. + true if point is inside , otherwise false. + + + + Checks, if specified is inside . + + Coordinate . + true if is inside , otherwise false. + + + Determines whether a specified rectangle intersects with this rectangle. + The rectangle to evaluate. + + + + Determines whether a specified rectangle intersects with this rectangle. + + The rectangle to evaluate + [OutAttribute] true if the specified rectangle intersects with this one; false otherwise. + + + + Creates a rectangle defining the area where one rectangle overlaps with another rectangle. + + The first rectangle to compare. + The second rectangle to compare. + The intersection rectangle. + + + Creates a rectangle defining the area where one rectangle overlaps with another rectangle. + The first rectangle to compare. + The second rectangle to compare. + [OutAttribute] The area where the two first parameters overlap. + + + + Creates a new rectangle that exactly contains two other rectangles. + + The first rectangle to contain. + The second rectangle to contain. + The union rectangle. + + + + Creates a new rectangle that exactly contains two other rectangles. + + The first rectangle to contain. + The second rectangle to contain. + [OutAttribute] The rectangle that must be the union of the first two rectangles. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Performs an implicit conversion to the structure. + + Performs direct converstion from int to float. + The source value. + The converted structure. + + + + + + + Gets or sets the left. + + The left. + + + + Gets or sets the top. + + The top. + + + + Gets or sets the right. + + The right. + + + + Gets or sets the bottom. + + The bottom. + + + + Gets or sets the X position. + + The X position. + + + + Gets or sets the Y position. + + The Y position. + + + + Gets or sets the width. + + The width. + + + + Gets or sets the height. + + The height. + + + + Gets or sets the location. + + + The location. + + + + + Gets the Point that specifies the center of the rectangle. + + + The center. + + + + + Gets a value that indicates whether the rectangle is empty. + + + true if [is empty]; otherwise, false. + + + + + Gets or sets the size of the rectangle. + + The size of the rectangle. + + + + Gets the position of the top-left corner of the rectangle. + + The top-left corner of the rectangle. + + + + Gets the position of the top-right corner of the rectangle. + + The top-right corner of the rectangle. + + + + Gets the position of the bottom-left corner of the rectangle. + + The bottom-left corner of the rectangle. + + + + Gets the position of the bottom-right corner of the rectangle. + + The bottom-right corner of the rectangle. + + + + Define a RectangleF. This structure is slightly different from System.Drawing.RectangleF as it is + internally storing Left,Top,Right,Bottom instead of Left,Top,Width,Height. + + + + + An empty rectangle. + + + + + An infinite rectangle. See remarks. + + + http://msdn.microsoft.com/en-us/library/windows/desktop/dd372261%28v=vs.85%29.aspx + Any properties that involve computations, like , or + may return incorrect results - . + + + + + Initializes a new instance of the struct. + + The left. + The top. + The width. + The height. + + + Changes the position of the rectangle. + The values to adjust the position of the rectangle by. + + + Changes the position of the rectangle. + The values to adjust the position of the rectangle by. + + + Changes the position of the rectangle. + Change in the x-position. + Change in the y-position. + + + Pushes the edges of the rectangle out by the horizontal and vertical values specified. + Value to push the sides out by. + Value to push the top and bottom out by. + + + Determines whether this rectangle contains a specified Point. + The Point to evaluate. + [OutAttribute] true if the specified Point is contained within this rectangle; false otherwise. + + + Determines whether this rectangle entirely contains a specified rectangle. + The rectangle to evaluate. + + + Determines whether this rectangle entirely contains a specified rectangle. + The rectangle to evaluate. + [OutAttribute] On exit, is true if this rectangle entirely contains the specified rectangle, or false if not. + + + + Checks, if specified point is inside . + + X point coordinate. + Y point coordinate. + true if point is inside , otherwise false. + + + + Checks, if specified is inside . + + Coordinate . + true if is inside , otherwise false. + + + + Checks, if specified is inside . + + Coordinate . + true if is inside , otherwise false. + + + Determines whether a specified rectangle intersects with this rectangle. + The rectangle to evaluate. + + + + Determines whether a specified rectangle intersects with this rectangle. + + The rectangle to evaluate + [OutAttribute] true if the specified rectangle intersects with this one; false otherwise. + + + + Creates a rectangle defining the area where one rectangle overlaps with another rectangle. + + The first Rectangle to compare. + The second Rectangle to compare. + The intersection rectangle. + + + Creates a rectangle defining the area where one rectangle overlaps with another rectangle. + The first rectangle to compare. + The second rectangle to compare. + [OutAttribute] The area where the two first parameters overlap. + + + + Creates a new rectangle that exactly contains two other rectangles. + + The first rectangle to contain. + The second rectangle to contain. + The union rectangle. + + + + Creates a new rectangle that exactly contains two other rectangles. + + The first rectangle to contain. + The second rectangle to contain. + [OutAttribute] The rectangle that must be the union of the first two rectangles. + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Performs an explicit conversion to structure. + + Performs direct float to int conversion, any fractional data is truncated. + The source value. + A converted structure. + + + + + + + Gets or sets the X position of the left edge. + + The left. + + + + Gets or sets the top. + + The top. + + + + Gets or sets the right. + + The right. + + + + Gets or sets the bottom. + + The bottom. + + + + Gets or sets the X position. + + The X position. + + + + Gets or sets the Y position. + + The Y position. + + + + Gets or sets the width. + + The width. + + + + Gets or sets the height. + + The height. + + + + Gets or sets the location. + + + The location. + + + + + Gets the Point that specifies the center of the rectangle. + + + The center. + + + + + Gets a value that indicates whether the rectangle is empty. + + + true if [is empty]; otherwise, false. + + + + + Gets or sets the size of the rectangle. + + The size of the rectangle. + + + + Gets the position of the top-left corner of the rectangle. + + The top-left corner of the rectangle. + + + + Gets the position of the top-right corner of the rectangle. + + The top-right corner of the rectangle. + + + + Gets the position of the bottom-left corner of the rectangle. + + The bottom-left corner of the rectangle. + + + + Gets the position of the bottom-right corner of the rectangle. + + The bottom-right corner of the rectangle. + + + + Result structure for COM methods. + + + + + Initializes a new instance of the struct. + + The HRESULT error code. + + + + Initializes a new instance of the struct. + + The HRESULT error code. + + + + Performs an implicit conversion from to . + + The result. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The result. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The result. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The result. + The result of the conversion. + + + + Indicates whether the current object is equal to another object of the same type. + + An object to compare with this object. + + true if the current object is equal to the parameter; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Implements the operator ==. + + The left. + The right. + The result of the operator. + + + + Implements the operator !=. + + The left. + The right. + The result of the operator. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Checks the error. + + + + + Gets a from an . + + The exception + The associated result code + + + + Gets the result from win32 error. + + The win32Error. + A HRESULT. + + + + Result code Ok + + S_OK + + + + Result code False + + S_FALSE + + + + Result code Abort + + E_ABORT + + + + Result code AccessDenied + + E_ACCESSDENIED + + + + Result code Fail + + E_FAIL + + + + Result code Handle + + E_HANDLE + + + + Result code invalid argument + + E_INVALIDARG + + + + Result code no interface + + E_NOINTERFACE + + + + Result code not implemented + + E_NOTIMPL + + + + Result code out of memory + + E_OUTOFMEMORY + + + + Result code Invalid pointer + + E_POINTER + + + + Unexpected failure + + E_UNEXPECTED + + + + Result of a wait abandonned. + + WAIT_ABANDONED + + + + Result of a wait timeout. + + WAIT_TIMEOUT + + + + Gets the HRESULT error code. + + The HRESULT error code. + + + + Gets a value indicating whether this is success. + + true if success; otherwise, false. + + + + Gets a value indicating whether this is failure. + + true if failure; otherwise, false. + + + + The maximum number of bytes to which a pointer can point. Use for a count that must span the full range of a pointer. + Equivalent to Windows type SIZE_T. + + + + + An empty pointer size initialized to zero. + + + + + Initializes a new instance of the struct. + + The size. + + + + Default constructor. + + value to set + + + + Default constructor. + + value to set + + + + Default constructor. + + value to set + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Adds two sizes. + + The first size to add. + The second size to add. + The sum of the two sizes. + + + + Assert a size (return it unchanged). + + The size to assert (unchanged). + The asserted (unchanged) size. + + + + Subtracts two sizes. + + The first size to subtract. + The second size to subtract. + The difference of the two sizes. + + + + Reverses the direction of a given size. + + The size to negate. + A size facing in the opposite direction. + + + + Scales a size by the given value. + + The size to scale. + The amount by which to scale the size. + The scaled size. + + + + Scales a size by the given value. + + The size to scale. + The amount by which to scale the size. + The scaled size. + + + + Scales a size by the given value. + + The size to scale. + The amount by which to scale the size. + The scaled size. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from void* to . + + The value. + The result of the conversion. + + + + Performs an implicit conversion from to void*. + + The value. + The result of the conversion. + + + + A Delegate to get a property value from an object. + + Type of the getter. + The obj to get the property from. + The value to get. + + + + A Delegate to set a property value to an object. + + Type of the setter. + The obj to set the property from. + The value to set. + + + + Utility class. + + + + + Native memcpy. + + The destination memory location. + The source memory location. + The byte count. + + + + Compares two block of memory. + + The pointer to compare from. + The pointer to compare against. + The size in bytes to compare. + true if the buffers are equivalent; otherwise, false. + + + + Clears the memory. + + The dest. + The value. + The size in bytes to clear. + + + + Return the sizeof a struct from a CLR. Equivalent to sizeof operator but works on generics too. + + A struct to evaluate. + Size of this struct. + + + + Return the sizeof an array of struct. Equivalent to sizeof operator but works on generics too. + + A struct. + The array of struct to evaluate. + Size in bytes of this array of struct. + + + + Pins the specified source and call an action with the pinned pointer. + + The type of the structure to pin. + The source. + The pin action to perform on the pinned pointer. + + + + Pins the specified source and call an action with the pinned pointer. + + The type of the structure to pin. + The source array. + The pin action to perform on the pinned pointer. + + + + Converts a structured array to an equivalent byte array. + + The type of source array. + The source array. + Converted byte array. + + + + Swaps the value between two references. + + Type of a data to swap. + The left value. + The right value. + + + + Reads the specified T data from a memory location. + + Type of a data to read. + Memory location to read from. + The data read from the memory location. + + + + Reads the specified T data from a memory location. + + Type of a data to read. + Memory location to read from. + The data write to. + source pointer + sizeof(T). + + + + Reads the specified T data from a memory location. + + Type of a data to read. + Memory location to read from. + The data write to. + source pointer + sizeof(T). + + + + Reads the specified T data from a memory location. + + Type of a data to read. + Memory location to read from. + The data write to. + source pointer + sizeof(T). + + + + Reads the specified array T[] data from a memory location. + + Type of a data to read. + Memory location to read from. + The data write to. + The offset in the array to write to. + The number of T element to read from the memory location. + source pointer + sizeof(T) * count. + + + + Writes the specified T data to a memory location. + + Type of a data to write. + Memory location to write to. + The data to write. + destination pointer + sizeof(T). + + + + Writes the specified T data to a memory location. + + Type of a data to write. + Memory location to write to. + The data to write. + destination pointer + sizeof(T). + + + + Writes the specified array T[] data to a memory location. + + Type of a data to write. + Memory location to write to. + The array of T data to write. + The offset in the array to read from. + The number of T element to write to the memory location. + destination pointer + sizeof(T) * count. + + + + Converts bool array to integer pointers array. + + The bool array. + The destination array of int pointers. + + + + Converts bool array to array. + + The bool array. + Converted array of . + + + + Converts integer pointer array to bool array. + + The array of integer pointers. + Array size. + Converted array of bool. + + + + Converts array to bool array. + + The array. + Converted array of bool. + + + + Gets the from a type. + + The type. + The guid associated with this type. + + + + Determines whether a given type inherits from a generic type. + + Type of the class to check if it inherits from generic type. + Type of the generic. + true if [is assignable to generic type] [the specified given type]; otherwise, false. + + + + Allocate an aligned memory buffer. + + Size of the buffer to allocate. + Alignment, 16 bytes by default. + A pointer to a buffer aligned. + + To free this buffer, call . + + + + + Allocate an aligned memory buffer and clear it with a specified value (0 by default). + + Size of the buffer to allocate. + Default value used to clear the buffer. + Alignment, 16 bytes by default. + A pointer to a buffer aligned. + + To free this buffer, call . + + + + + Determines whether the specified memory pointer is aligned in memory. + + The memory pointer. + The align. + true if the specified memory pointer is aligned in memory; otherwise, false. + + + + Allocate an aligned memory buffer. + + A pointer to a buffer aligned. + + The buffer must have been allocated with . + + + + + Converts a pointer to a null-terminating string up to maxLength characters to a .Net string. + + The pointer to an ANSI null string. + Maximum length of the string. + The converted string. + + + + Converts a pointer to a null-terminating string up to maxLength characters to a .Net string. + + The pointer to an Unicode null string. + Maximum length of the string. + The converted string. + + + + Copies the contents of a managed String into unmanaged memory, converting into ANSI format as it copies. + + A managed string to be copied. + The address, in unmanaged memory, to where s was copied, or IntPtr.Zero if s is null. + + + + Copies the contents of a managed String into unmanaged memory. + + A managed string to be copied. + The address, in unmanaged memory, to where s was copied, or IntPtr.Zero if s is null. + + + + Copies the contents of a managed String into unmanaged memory using + + A managed string to be copied. + The address, in unmanaged memory, to where s was copied, or IntPtr.Zero if s is null. + + + + Gets the IUnknown from object. Similar to but accept null object + by returning an IntPtr.Zero IUnknown pointer. + + The managed object. + An IUnknown pointer to a managed object. + + + + Gets an object from an IUnknown pointer. Similar to but accept IntPtr.Zero + by returning a null object. + + an IUnknown pointer to a managed object. + The managed object. + + + + String helper join method to display an array of object as a single string. + + The separator. + The array. + A string with array elements separated by the separator. + + + + String helper join method to display an enumerable of object as a single string. + + The separator. + The enumerable. + A string with array elements separated by the separator. + + + + String helper join method to display an enumerable of object as a single string. + + The separator. + The enumerable. + A string with array elements separated by the separator. + + + + Converts a blob to a string. + + A blob. + A string extracted from a blob. + + + + Equivalent to IntPtr.Add method from 3.5+ .NET Framework. + Adds an offset to the value of a pointer. + + A native pointer. + The offset to add (number of bytes). + A new pointer that reflects the addition of offset to pointer. + + + + Read stream to a byte[] buffer. + + Input stream. + A byte[] buffer. + + + + Read stream to a byte[] buffer. + + Input stream. + Length to read. + A byte[] buffer. + + + + Compares two collection, element by elements. + + A "from" enumerator. + A "to" enumerator. + true if lists are identical, false otherwise. + + + + Compares two collection, element by elements. + + A "from" enumerator. + A "to" enumerator. + true if lists are identical; otherwise, false. + + + + Compares two collection, element by elements. + + The collection to compare from. + The collection to compare to. + true if lists are identical (but not necessarily of the same time); otherwise , false. + + + + Gets the custom attribute. + + Type of the custom attribute. + The member info. + if set to true [inherited]. + The custom attribute or null if not found. + + + + Gets the custom attributes. + + Type of the custom attribute. + The member info. + if set to true [inherited]. + The custom attribute or null if not found. + + + + Determines whether fromType can be assigned to toType. + + To type. + From type. + + true if [is assignable from] [the specified to type]; otherwise, false. + + + + + Determines whether the specified type to test is an enum. + + The type to test. + + true if the specified type to test is an enum; otherwise, false. + + + + + Determines whether the specified type to test is a value type. + + The type to test. + + true if the specified type to test is a value type; otherwise, false. + + + + + Builds a fast property getter from a type and a property info. + + Type of the getter. + Type of the custom effect. + The property info to get the value from. + A compiled delegate. + + + + Builds a fast property setter from a type and a property info. + + Type of the setter. + Type of the custom effect. + The property info to set the value to. + A compiled delegate. + + + + Suspends the current thread of a . + + The duration to sleep in milliseconds. + + + + Finds an explicit conversion between a source type and a target type. + + Type of the source. + Type of the target. + The method to perform the conversion. null if not found. + + + + Loads a native library. + + Name of the DLL. + If DLL was not found. + Handle to the module. + + + + Gets the proc address of a DLL. + + The handle. + The DLL function to import. + If the function was not found. + Pointer to address of the exported function or variable. + + + + Compute a FNV1-modified Hash from Fowler/Noll/Vo Hash improved version. + + Data to compute the hash from. + A hash value. + + + + Safely dispose a reference if not null, and set it to null after dispose. + + The type of COM interface to dispose. + Object to dispose. + + The reference will be set to null after dispose. + + + + + Transforms an to an array of T. + + Type of the element + The enumerable source. + an array of T + + + + Test if there is an element in this enumeration. + + Type of the element + The enumerable source. + true if there is an element in this enumeration, false otherwise + + + + Select elements from an enumeration. + + The type of the T source. + The type of the T result. + The source. + The selector. + A enumeration of selected values + + + + Selects distinct elements from an enumeration. + + The type of the T source. + The source. + The comparer. + A enumeration of selected values + + + + Determines whether the type inherits from the specified type (used to determine a type without using an explicit type instance). + + The type. + Name of the parent type to find in inheritance hierarchy of type. + true if the type inherits from the specified type; otherwise, false. + + + Determines the concurrency model used for incoming calls to objects created by this thread. This concurrency model can be either apartment-threaded or multi-threaded. + + + + Initializes the thread for apartment-threaded object concurrency. + + + + + Initializes the thread for multi-threaded object concurrency. + + + + + Disables DDE for OLE1 support. + + + + + Trade memory for speed. + + + + + Represents a two dimensional mathematical vector. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The X unit (1, 0). + + + + + The Y unit (0, 1). + + + + + A with all of its components set to one. + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the vector. + Initial value for the Y component of the vector. + + + + Initializes a new instance of the struct. + + The values to assign to the X and Y components of the vector. This must be an array with two elements. + Thrown when is null. + Thrown when contains more or less than two elements. + + + + Calculates the length of the vector. + + The length of the vector. + + may be preferred when only the relative length is needed + and speed is of the essence. + + + + + Calculates the squared length of the vector. + + The squared length of the vector. + + This method may be preferred to when only a relative length is needed + and speed is of the essence. + + + + + Converts the vector into a unit vector. + + + + + Creates an array containing the elements of the vector. + + A two-element array containing the components of the vector. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + When the method completes, contains the sum of the two vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Perform a component-wise addition + + The input vector + The scalar value to be added to elements + The vector with added scalar for each element. + + + + Perform a component-wise addition + + The input vector + The scalar value to be added to elements + The vector with added scalar for each element. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + When the method completes, contains the difference of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Perform a component-wise subtraction + + The input vector + The scalar value to be subtraced from elements + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The input vector + The scalar value to be subtraced from elements + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The scalar value to be subtraced from elements + The input vector + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The scalar value to be subtraced from elements + The input vector + The vector with subtracted scalar for each element. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Multiplies a vector with another by performing component-wise multiplication. + + The first vector to multiply. + The second vector to multiply. + When the method completes, contains the multiplied vector. + + + + Multiplies a vector with another by performing component-wise multiplication. + + The first vector to multiply. + The second vector to multiply. + The multiplied vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The amount by which to scale the vector. + The vector to scale. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Reverses the direction of a given vector. + + The vector to negate. + When the method completes, contains a vector facing in the opposite direction. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Returns a containing the 2D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 2D triangle. + + A containing the 2D Cartesian coordinates of vertex 1 of the triangle. + A containing the 2D Cartesian coordinates of vertex 2 of the triangle. + A containing the 2D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + When the method completes, contains the 2D Cartesian coordinates of the specified point. + + + + Returns a containing the 2D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 2D triangle. + + A containing the 2D Cartesian coordinates of vertex 1 of the triangle. + A containing the 2D Cartesian coordinates of vertex 2 of the triangle. + A containing the 2D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + A new containing the 2D Cartesian coordinates of the specified point. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Saturates this instance in the range [0,1] + + + + + Calculates the distance between two vectors. + + The first vector. + The second vector. + When the method completes, contains the distance between the two vectors. + + may be preferred when only the relative distance is needed + and speed is of the essence. + + + + + Calculates the distance between two vectors. + + The first vector. + The second vector. + The distance between the two vectors. + + may be preferred when only the relative distance is needed + and speed is of the essence. + + + + + Calculates the squared distance between two vectors. + + The first vector. + The second vector + When the method completes, contains the squared distance between the two vectors. + Distance squared is the value before taking the square root. + Distance squared can often be used in place of distance if relative comparisons are being made. + For example, consider three points A, B, and C. To determine whether B or C is further from A, + compare the distance between A and B to the distance between A and C. Calculating the two distances + involves two square roots, which are computationally expensive. However, using distance squared + provides the same information and avoids calculating two square roots. + + + + + Calculates the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between the two vectors. + Distance squared is the value before taking the square root. + Distance squared can often be used in place of distance if relative comparisons are being made. + For example, consider three points A, B, and C. To determine whether B or C is further from A, + compare the distance between A and B to the distance between A and C. Calculating the two distances + involves two square roots, which are computationally expensive. However, using distance squared + provides the same information and avoids calculating two square roots. + + + + + Calculates the dot product of two vectors. + + First source vector. + Second source vector. + When the method completes, contains the dot product of the two vectors. + + + + Calculates the dot product of two vectors. + + First source vector. + Second source vector. + The dot product of the two vectors. + + + + Converts the vector into a unit vector. + + The vector to normalize. + When the method completes, contains the normalized vector. + + + + Converts the vector into a unit vector. + + The vector to normalize. + The normalized vector. + + + + Performs a linear interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two vectors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two vectors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two vectors. + + + + Performs a cubic interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two vectors. + + + + Performs a Hermite spline interpolation. + + First source position vector. + First source tangent vector. + Second source position vector. + Second source tangent vector. + Weighting factor. + When the method completes, contains the result of the Hermite spline interpolation. + + + + Performs a Hermite spline interpolation. + + First source position vector. + First source tangent vector. + Second source position vector. + Second source tangent vector. + Weighting factor. + The result of the Hermite spline interpolation. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + When the method completes, contains the result of the Catmull-Rom interpolation. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + A vector that is the result of the Catmull-Rom interpolation. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the largest components of the source vectors. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the largest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the smallest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the smallest components of the source vectors. + + + + Returns the reflection of a vector off a surface that has the specified normal. + + The source vector. + Normal of the surface. + When the method completes, contains the reflected vector. + Reflect only gives the direction of a reflection off a surface, it does not determine + whether the original vector was close enough to the surface to hit it. + + + + Returns the reflection of a vector off a surface that has the specified normal. + + The source vector. + Normal of the surface. + The reflected vector. + Reflect only gives the direction of a reflection off a surface, it does not determine + whether the original vector was close enough to the surface to hit it. + + + + Orthogonalizes a list of vectors. + + The list of orthogonalized vectors. + The list of vectors to orthogonalize. + + Orthogonalization is the process of making all vectors orthogonal to each other. This + means that any given vector in the list will be orthogonal to any other given vector in the + list. + Because this method uses the modified Gram-Schmidt process, the resulting vectors + tend to be numerically unstable. The numeric stability decreases according to the vectors + position in the list so that the first vector is the most stable and the last vector is the + least stable. + + Thrown when or is null. + Thrown when is shorter in length than . + + + + Orthonormalizes a list of vectors. + + The list of orthonormalized vectors. + The list of vectors to orthonormalize. + + Orthonormalization is the process of making all vectors orthogonal to each + other and making all vectors of unit length. This means that any given vector will + be orthogonal to any other given vector in the list. + Because this method uses the modified Gram-Schmidt process, the resulting vectors + tend to be numerically unstable. The numeric stability decreases according to the vectors + position in the list so that the first vector is the most stable and the last vector is the + least stable. + + Thrown when or is null. + Thrown when is shorter in length than . + + + + Transforms a 2D vector by the given rotation. + + The vector to rotate. + The rotation to apply. + When the method completes, contains the transformed . + + + + Transforms a 2D vector by the given rotation. + + The vector to rotate. + The rotation to apply. + The transformed . + + + + Transforms an array of vectors by the given rotation. + + The array of vectors to transform. + The rotation to apply. + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + + + Transforms a 2D vector by the given . + + The source vector. + The transformation . + When the method completes, contains the transformed . + + + + Transforms a 2D vector by the given . + + The source vector. + The transformation . + The transformed . + + + + Transforms an array of 2D vectors by the given . + + The array of vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + Thrown when or is null. + Thrown when is shorter in length than . + + + + Performs a coordinate transformation using the given . + + The coordinate vector to transform. + The transformation . + When the method completes, contains the transformed coordinates. + + A coordinate transform performs the transformation with the assumption that the w component + is one. The four dimensional vector obtained from the transformation operation has each + component in the vector divided by the w component. This forces the w component to be one and + therefore makes the vector homogeneous. The homogeneous vector is often preferred when working + with coordinates as the w component can safely be ignored. + + + + + Performs a coordinate transformation using the given . + + The coordinate vector to transform. + The transformation . + The transformed coordinates. + + A coordinate transform performs the transformation with the assumption that the w component + is one. The four dimensional vector obtained from the transformation operation has each + component in the vector divided by the w component. This forces the w component to be one and + therefore makes the vector homogeneous. The homogeneous vector is often preferred when working + with coordinates as the w component can safely be ignored. + + + + + Performs a coordinate transformation on an array of vectors using the given . + + The array of coordinate vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + A coordinate transform performs the transformation with the assumption that the w component + is one. The four dimensional vector obtained from the transformation operation has each + component in the vector divided by the w component. This forces the w component to be one and + therefore makes the vector homogeneous. The homogeneous vector is often preferred when working + with coordinates as the w component can safely be ignored. + + + + + Performs a normal transformation using the given . + + The normal vector to transform. + The transformation . + When the method completes, contains the transformed normal. + + A normal transform performs the transformation with the assumption that the w component + is zero. This causes the fourth row and fourth column of the matrix to be unused. The + end result is a vector that is not translated, but all other transformation properties + apply. This is often preferred for normal vectors as normals purely represent direction + rather than location because normal vectors should not be translated. + + + + + Performs a normal transformation using the given . + + The normal vector to transform. + The transformation . + The transformed normal. + + A normal transform performs the transformation with the assumption that the w component + is zero. This causes the fourth row and fourth column of the matrix to be unused. The + end result is a vector that is not translated, but all other transformation properties + apply. This is often preferred for normal vectors as normals purely represent direction + rather than location because normal vectors should not be translated. + + + + + Performs a normal transformation on an array of vectors using the given . + + The array of normal vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + A normal transform performs the transformation with the assumption that the w component + is zero. This causes the fourth row and fourth column of the matrix to be unused. The + end result is a vector that is not translated, but all other transformation properties + apply. This is often preferred for normal vectors as normals purely represent direction + rather than location because normal vectors should not be translated. + + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Multiplies a vector with another by performing component-wise multiplication equivalent to . + + The first vector to multiply. + The second vector to multiply. + The multiplication of the two vectors. + + + + Assert a vector (return it unchanged). + + The vector to assert (unchanged). + The asserted (unchanged) vector. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The amount by which to scale the vector. + The vector to scale. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Perform a component-wise addition + + The input vector. + The scalar value to be added on elements + The vector with added scalar for each element. + + + + Perform a component-wise addition + + The input vector. + The scalar value to be added on elements + The vector with added scalar for each element. + + + + Perform a component-wise subtraction + + The input vector. + The scalar value to be subtraced from elements + The vector with subtraced scalar from each element. + + + + Perform a component-wise subtraction + + The input vector. + The scalar value to be subtraced from elements + The vector with subtraced scalar from each element. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Gets a value indicting whether this instance is normalized. + + + + + Gets a value indicting whether this vector is zero + + + + + Gets or sets the component at the specified index. + + The value of the X or Y component, depending on the index. + The index of the component to access. Use 0 for the X component and 1 for the Y component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 1]. + + + + Represents a three dimensional mathematical vector. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The X unit (1, 0, 0). + + + + + The Y unit (0, 1, 0). + + + + + The Z unit (0, 0, 1). + + + + + A with all of its components set to one. + + + + + A unit designating up (0, 1, 0). + + + + + A unit designating down (0, -1, 0). + + + + + A unit designating left (-1, 0, 0). + + + + + A unit designating right (1, 0, 0). + + + + + A unit designating forward in a right-handed coordinate system (0, 0, -1). + + + + + A unit designating forward in a left-handed coordinate system (0, 0, 1). + + + + + A unit designating backward in a right-handed coordinate system (0, 0, 1). + + + + + A unit designating backward in a left-handed coordinate system (0, 0, -1). + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + The Z component of the vector. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the vector. + Initial value for the Y component of the vector. + Initial value for the Z component of the vector. + + + + Initializes a new instance of the struct. + + A vector containing the values with which to initialize the X and Y components. + Initial value for the Z component of the vector. + + + + Initializes a new instance of the struct. + + The values to assign to the X, Y, and Z components of the vector. This must be an array with three elements. + Thrown when is null. + Thrown when contains more or less than three elements. + + + + Calculates the length of the vector. + + The length of the vector. + + may be preferred when only the relative length is needed + and speed is of the essence. + + + + + Calculates the squared length of the vector. + + The squared length of the vector. + + This method may be preferred to when only a relative length is needed + and speed is of the essence. + + + + + Converts the vector into a unit vector. + + + + + Creates an array containing the elements of the vector. + + A three-element array containing the components of the vector. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + When the method completes, contains the sum of the two vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Perform a component-wise addition + + The input vector + The scalar value to be added to elements + The vector with added scalar for each element. + + + + Perform a component-wise addition + + The input vector + The scalar value to be added to elements + The vector with added scalar for each element. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + When the method completes, contains the difference of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Perform a component-wise subtraction + + The input vector + The scalar value to be subtraced from elements + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The input vector + The scalar value to be subtraced from elements + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The scalar value to be subtraced from elements + The input vector. + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The scalar value to be subtraced from elements + The input vector. + The vector with subtracted scalar for each element. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Multiply a vector with another by performing component-wise multiplication. + + The first vector to multiply. + The second vector to multiply. + When the method completes, contains the multiplied vector. + + + + Multiply a vector with another by performing component-wise multiplication. + + The first vector to Multiply. + The second vector to multiply. + The multiplied vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The amount by which to scale the vector. + The vector to scale. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Reverses the direction of a given vector. + + The vector to negate. + When the method completes, contains a vector facing in the opposite direction. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Returns a containing the 3D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 3D triangle. + + A containing the 3D Cartesian coordinates of vertex 1 of the triangle. + A containing the 3D Cartesian coordinates of vertex 2 of the triangle. + A containing the 3D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + When the method completes, contains the 3D Cartesian coordinates of the specified point. + + + + Returns a containing the 3D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 3D triangle. + + A containing the 3D Cartesian coordinates of vertex 1 of the triangle. + A containing the 3D Cartesian coordinates of vertex 2 of the triangle. + A containing the 3D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + A new containing the 3D Cartesian coordinates of the specified point. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Calculates the cross product of two vectors. + + First source vector. + Second source vector. + When the method completes, contains he cross product of the two vectors. + + + + Calculates the cross product of two vectors. + + First source vector. + Second source vector. + The cross product of the two vectors. + + + + Calculates the distance between two vectors. + + The first vector. + The second vector. + When the method completes, contains the distance between the two vectors. + + may be preferred when only the relative distance is needed + and speed is of the essence. + + + + + Calculates the distance between two vectors. + + The first vector. + The second vector. + The distance between the two vectors. + + may be preferred when only the relative distance is needed + and speed is of the essence. + + + + + Calculates the squared distance between two vectors. + + The first vector. + The second vector. + When the method completes, contains the squared distance between the two vectors. + Distance squared is the value before taking the square root. + Distance squared can often be used in place of distance if relative comparisons are being made. + For example, consider three points A, B, and C. To determine whether B or C is further from A, + compare the distance between A and B to the distance between A and C. Calculating the two distances + involves two square roots, which are computationally expensive. However, using distance squared + provides the same information and avoids calculating two square roots. + + + + + Calculates the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between the two vectors. + Distance squared is the value before taking the square root. + Distance squared can often be used in place of distance if relative comparisons are being made. + For example, consider three points A, B, and C. To determine whether B or C is further from A, + compare the distance between A and B to the distance between A and C. Calculating the two distances + involves two square roots, which are computationally expensive. However, using distance squared + provides the same information and avoids calculating two square roots. + + + + + Tests whether one 3D vector is near another 3D vector. + + The left vector. + The right vector. + The epsilon. + true if left and right are near another 3D, false otherwise + + + + Tests whether one 3D vector is near another 3D vector. + + The left vector. + The right vector. + The epsilon. + true if left and right are near another 3D, false otherwise + + + + Calculates the dot product of two vectors. + + First source vector. + Second source vector. + When the method completes, contains the dot product of the two vectors. + + + + Calculates the dot product of two vectors. + + First source vector. + Second source vector. + The dot product of the two vectors. + + + + Converts the vector into a unit vector. + + The vector to normalize. + When the method completes, contains the normalized vector. + + + + Converts the vector into a unit vector. + + The vector to normalize. + The normalized vector. + + + + Performs a linear interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two vectors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two vectors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two vectors. + + + + Performs a cubic interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two vectors. + + + + Performs a Hermite spline interpolation. + + First source position vector. + First source tangent vector. + Second source position vector. + Second source tangent vector. + Weighting factor. + When the method completes, contains the result of the Hermite spline interpolation. + + + + Performs a Hermite spline interpolation. + + First source position vector. + First source tangent vector. + Second source position vector. + Second source tangent vector. + Weighting factor. + The result of the Hermite spline interpolation. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + When the method completes, contains the result of the Catmull-Rom interpolation. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + A vector that is the result of the Catmull-Rom interpolation. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the largest components of the source vectors. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the largest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the smallest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the smallest components of the source vectors. + + + + Projects a 3D vector from object space into screen space. + + The vector to project. + The X position of the viewport. + The Y position of the viewport. + The width of the viewport. + The height of the viewport. + The minimum depth of the viewport. + The maximum depth of the viewport. + The combined world-view-projection matrix. + When the method completes, contains the vector in screen space. + + + + Projects a 3D vector from object space into screen space. + + The vector to project. + The X position of the viewport. + The Y position of the viewport. + The width of the viewport. + The height of the viewport. + The minimum depth of the viewport. + The maximum depth of the viewport. + The combined world-view-projection matrix. + The vector in screen space. + + + + Projects a 3D vector from screen space into object space. + + The vector to project. + The X position of the viewport. + The Y position of the viewport. + The width of the viewport. + The height of the viewport. + The minimum depth of the viewport. + The maximum depth of the viewport. + The combined world-view-projection matrix. + When the method completes, contains the vector in object space. + + + + Projects a 3D vector from screen space into object space. + + The vector to project. + The X position of the viewport. + The Y position of the viewport. + The width of the viewport. + The height of the viewport. + The minimum depth of the viewport. + The maximum depth of the viewport. + The combined world-view-projection matrix. + The vector in object space. + + + + Returns the reflection of a vector off a surface that has the specified normal. + + The source vector. + Normal of the surface. + When the method completes, contains the reflected vector. + Reflect only gives the direction of a reflection off a surface, it does not determine + whether the original vector was close enough to the surface to hit it. + + + + Returns the reflection of a vector off a surface that has the specified normal. + + The source vector. + Normal of the surface. + The reflected vector. + Reflect only gives the direction of a reflection off a surface, it does not determine + whether the original vector was close enough to the surface to hit it. + + + + Orthogonalizes a list of vectors. + + The list of orthogonalized vectors. + The list of vectors to orthogonalize. + + Orthogonalization is the process of making all vectors orthogonal to each other. This + means that any given vector in the list will be orthogonal to any other given vector in the + list. + Because this method uses the modified Gram-Schmidt process, the resulting vectors + tend to be numerically unstable. The numeric stability decreases according to the vectors + position in the list so that the first vector is the most stable and the last vector is the + least stable. + + Thrown when or is null. + Thrown when is shorter in length than . + + + + Orthonormalizes a list of vectors. + + The list of orthonormalized vectors. + The list of vectors to orthonormalize. + + Orthonormalization is the process of making all vectors orthogonal to each + other and making all vectors of unit length. This means that any given vector will + be orthogonal to any other given vector in the list. + Because this method uses the modified Gram-Schmidt process, the resulting vectors + tend to be numerically unstable. The numeric stability decreases according to the vectors + position in the list so that the first vector is the most stable and the last vector is the + least stable. + + Thrown when or is null. + Thrown when is shorter in length than . + + + + Transforms a 3D vector by the given rotation. + + The vector to rotate. + The rotation to apply. + When the method completes, contains the transformed . + + + + Transforms a 3D vector by the given rotation. + + The vector to rotate. + The rotation to apply. + The transformed . + + + + Transforms an array of vectors by the given rotation. + + The array of vectors to transform. + The rotation to apply. + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + + + Transforms a 3D vector by the given . + + The source vector. + The transformation . + When the method completes, contains the transformed . + + + + Transforms a 3D vector by the given . + + The source vector. + The transformation . + The transformed . + + + + Transforms a 3D vector by the given . + + The source vector. + The transformation . + When the method completes, contains the transformed . + + + + Transforms a 3D vector by the given . + + The source vector. + The transformation . + When the method completes, contains the transformed . + + + + Transforms a 3D vector by the given . + + The source vector. + The transformation . + The transformed . + + + + Transforms an array of 3D vectors by the given . + + The array of vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + Thrown when or is null. + Thrown when is shorter in length than . + + + + Performs a coordinate transformation using the given . + + The coordinate vector to transform. + The transformation . + When the method completes, contains the transformed coordinates. + + A coordinate transform performs the transformation with the assumption that the w component + is one. The four dimensional vector obtained from the transformation operation has each + component in the vector divided by the w component. This forces the w component to be one and + therefore makes the vector homogeneous. The homogeneous vector is often preferred when working + with coordinates as the w component can safely be ignored. + + + + + Performs a coordinate transformation using the given . + + The coordinate vector to transform. + The transformation . + The transformed coordinates. + + A coordinate transform performs the transformation with the assumption that the w component + is one. The four dimensional vector obtained from the transformation operation has each + component in the vector divided by the w component. This forces the w component to be one and + therefore makes the vector homogeneous. The homogeneous vector is often preferred when working + with coordinates as the w component can safely be ignored. + + + + + Performs a coordinate transformation on an array of vectors using the given . + + The array of coordinate vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + A coordinate transform performs the transformation with the assumption that the w component + is one. The four dimensional vector obtained from the transformation operation has each + component in the vector divided by the w component. This forces the w component to be one and + therefore makes the vector homogeneous. The homogeneous vector is often preferred when working + with coordinates as the w component can safely be ignored. + + + + + Performs a normal transformation using the given . + + The normal vector to transform. + The transformation . + When the method completes, contains the transformed normal. + + A normal transform performs the transformation with the assumption that the w component + is zero. This causes the fourth row and fourth column of the matrix to be unused. The + end result is a vector that is not translated, but all other transformation properties + apply. This is often preferred for normal vectors as normals purely represent direction + rather than location because normal vectors should not be translated. + + + + + Performs a normal transformation using the given . + + The normal vector to transform. + The transformation . + The transformed normal. + + A normal transform performs the transformation with the assumption that the w component + is zero. This causes the fourth row and fourth column of the matrix to be unused. The + end result is a vector that is not translated, but all other transformation properties + apply. This is often preferred for normal vectors as normals purely represent direction + rather than location because normal vectors should not be translated. + + + + + Performs a normal transformation on an array of vectors using the given . + + The array of normal vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + A normal transform performs the transformation with the assumption that the w component + is zero. This causes the fourth row and fourth column of the matrix to be unused. The + end result is a vector that is not translated, but all other transformation properties + apply. This is often preferred for normal vectors as normals purely represent direction + rather than location because normal vectors should not be translated. + + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Multiplies a vector with another by performing component-wise multiplication equivalent to . + + The first vector to multiply. + The second vector to multiply. + The multiplication of the two vectors. + + + + Assert a vector (return it unchanged). + + The vector to assert (unchanged). + The asserted (unchanged) vector. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The amount by which to scale the vector. + The vector to scale. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Perform a component-wise addition + + The input vector. + The scalar value to be added on elements + The vector with added scalar for each element. + + + + Perform a component-wise addition + + The input vector. + The scalar value to be added on elements + The vector with added scalar for each element. + + + + Perform a component-wise subtraction + + The input vector. + The scalar value to be subtraced from elements + The vector with added scalar from each element. + + + + Perform a component-wise subtraction + + The input vector. + The scalar value to be subtraced from elements + The vector with subtraced scalar from each element. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Gets a value indicting whether this instance is normalized. + + + + + Gets a value indicting whether this vector is zero + + + + + Gets or sets the component at the specified index. + + The value of the X, Y, or Z component, depending on the index. + The index of the component to access. Use 0 for the X component, 1 for the Y component, and 2 for the Z component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 2]. + + + + Represents a four dimensional mathematical vector. + + + + + The size of the type, in bytes. + + + + + A with all of its components set to zero. + + + + + The X unit (1, 0, 0, 0). + + + + + The Y unit (0, 1, 0, 0). + + + + + The Z unit (0, 0, 1, 0). + + + + + The W unit (0, 0, 0, 1). + + + + + A with all of its components set to one. + + + + + The X component of the vector. + + + + + The Y component of the vector. + + + + + The Z component of the vector. + + + + + The W component of the vector. + + + + + Initializes a new instance of the struct. + + The value that will be assigned to all components. + + + + Initializes a new instance of the struct. + + Initial value for the X component of the vector. + Initial value for the Y component of the vector. + Initial value for the Z component of the vector. + Initial value for the W component of the vector. + + + + Initializes a new instance of the struct. + + A vector containing the values with which to initialize the X, Y, and Z components. + Initial value for the W component of the vector. + + + + Initializes a new instance of the struct. + + A vector containing the values with which to initialize the X and Y components. + Initial value for the Z component of the vector. + Initial value for the W component of the vector. + + + + Initializes a new instance of the struct. + + The values to assign to the X, Y, Z, and W components of the vector. This must be an array with four elements. + Thrown when is null. + Thrown when contains more or less than four elements. + + + + Calculates the length of the vector. + + The length of the vector. + + may be preferred when only the relative length is needed + and speed is of the essence. + + + + + Calculates the squared length of the vector. + + The squared length of the vector. + + This method may be preferred to when only a relative length is needed + and speed is of the essence. + + + + + Converts the vector into a unit vector. + + + + + Creates an array containing the elements of the vector. + + A four-element array containing the components of the vector. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + When the method completes, contains the sum of the two vectors. + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Perform a component-wise addition + + The input vector + The scalar value to be added to elements + The vector with added scalar for each element. + + + + Perform a component-wise addition + + The input vector + The scalar value to be added to elements + The vector with added scalar for each element. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + When the method completes, contains the difference of the two vectors. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Perform a component-wise subtraction + + The input vector + The scalar value to be subtraced from elements + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The input vector + The scalar value to be subtraced from elements + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The scalar value to be subtraced from elements + The input vector. + The vector with subtracted scalar for each element. + + + + Perform a component-wise subtraction + + The scalar value to be subtraced from elements + The input vector. + The vector with subtracted scalar for each element. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Multiplies a vector with another by performing component-wise multiplication. + + The first vector to multiply. + The second vector to multiply. + When the method completes, contains the multiplied vector. + + + + Multiplies a vector with another by performing component-wise multiplication. + + The first vector to multiply. + The second vector to multiply. + The multiplied vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The amount by which to scale the vector. + The vector to scale. + When the method completes, contains the scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Reverses the direction of a given vector. + + The vector to negate. + When the method completes, contains a vector facing in the opposite direction. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Returns a containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 4D triangle. + + A containing the 4D Cartesian coordinates of vertex 1 of the triangle. + A containing the 4D Cartesian coordinates of vertex 2 of the triangle. + A containing the 4D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + When the method completes, contains the 4D Cartesian coordinates of the specified point. + + + + Returns a containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 4D triangle. + + A containing the 4D Cartesian coordinates of vertex 1 of the triangle. + A containing the 4D Cartesian coordinates of vertex 2 of the triangle. + A containing the 4D Cartesian coordinates of vertex 3 of the triangle. + Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in ). + Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in ). + A new containing the 4D Cartesian coordinates of the specified point. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + When the method completes, contains the clamped value. + + + + Restricts a value to be within a specified range. + + The value to clamp. + The minimum value. + The maximum value. + The clamped value. + + + + Calculates the distance between two vectors. + + The first vector. + The second vector. + When the method completes, contains the distance between the two vectors. + + may be preferred when only the relative distance is needed + and speed is of the essence. + + + + + Calculates the distance between two vectors. + + The first vector. + The second vector. + The distance between the two vectors. + + may be preferred when only the relative distance is needed + and speed is of the essence. + + + + + Calculates the squared distance between two vectors. + + The first vector. + The second vector. + When the method completes, contains the squared distance between the two vectors. + Distance squared is the value before taking the square root. + Distance squared can often be used in place of distance if relative comparisons are being made. + For example, consider three points A, B, and C. To determine whether B or C is further from A, + compare the distance between A and B to the distance between A and C. Calculating the two distances + involves two square roots, which are computationally expensive. However, using distance squared + provides the same information and avoids calculating two square roots. + + + + + Calculates the squared distance between two vectors. + + The first vector. + The second vector. + The squared distance between the two vectors. + Distance squared is the value before taking the square root. + Distance squared can often be used in place of distance if relative comparisons are being made. + For example, consider three points A, B, and C. To determine whether B or C is further from A, + compare the distance between A and B to the distance between A and C. Calculating the two distances + involves two square roots, which are computationally expensive. However, using distance squared + provides the same information and avoids calculating two square roots. + + + + + Calculates the dot product of two vectors. + + First source vector + Second source vector. + When the method completes, contains the dot product of the two vectors. + + + + Calculates the dot product of two vectors. + + First source vector. + Second source vector. + The dot product of the two vectors. + + + + Converts the vector into a unit vector. + + The vector to normalize. + When the method completes, contains the normalized vector. + + + + Converts the vector into a unit vector. + + The vector to normalize. + The normalized vector. + + + + Performs a linear interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the linear interpolation of the two vectors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a linear interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + The linear interpolation of the two vectors. + + Passing a value of 0 will cause to be returned; a value of 1 will cause to be returned. + + + + + Performs a cubic interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + When the method completes, contains the cubic interpolation of the two vectors. + + + + Performs a cubic interpolation between two vectors. + + Start vector. + End vector. + Value between 0 and 1 indicating the weight of . + The cubic interpolation of the two vectors. + + + + Performs a Hermite spline interpolation. + + First source position vector. + First source tangent vector. + Second source position vector. + Second source tangent vector. + Weighting factor. + When the method completes, contains the result of the Hermite spline interpolation. + + + + Performs a Hermite spline interpolation. + + First source position vector. + First source tangent vector. + Second source position vector. + Second source tangent vector. + Weighting factor. + The result of the Hermite spline interpolation. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + When the method completes, contains the result of the Catmull-Rom interpolation. + + + + Performs a Catmull-Rom interpolation using the specified positions. + + The first position in the interpolation. + The second position in the interpolation. + The third position in the interpolation. + The fourth position in the interpolation. + Weighting factor. + A vector that is the result of the Catmull-Rom interpolation. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the largest components of the source vectors. + + + + Returns a vector containing the largest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the largest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + When the method completes, contains an new vector composed of the smallest components of the source vectors. + + + + Returns a vector containing the smallest components of the specified vectors. + + The first source vector. + The second source vector. + A vector containing the smallest components of the source vectors. + + + + Orthogonalizes a list of vectors. + + The list of orthogonalized vectors. + The list of vectors to orthogonalize. + + Orthogonalization is the process of making all vectors orthogonal to each other. This + means that any given vector in the list will be orthogonal to any other given vector in the + list. + Because this method uses the modified Gram-Schmidt process, the resulting vectors + tend to be numerically unstable. The numeric stability decreases according to the vectors + position in the list so that the first vector is the most stable and the last vector is the + least stable. + + Thrown when or is null. + Thrown when is shorter in length than . + + + + Orthonormalizes a list of vectors. + + The list of orthonormalized vectors. + The list of vectors to orthonormalize. + + Orthonormalization is the process of making all vectors orthogonal to each + other and making all vectors of unit length. This means that any given vector will + be orthogonal to any other given vector in the list. + Because this method uses the modified Gram-Schmidt process, the resulting vectors + tend to be numerically unstable. The numeric stability decreases according to the vectors + position in the list so that the first vector is the most stable and the last vector is the + least stable. + + Thrown when or is null. + Thrown when is shorter in length than . + + + + Transforms a 4D vector by the given rotation. + + The vector to rotate. + The rotation to apply. + When the method completes, contains the transformed . + + + + Transforms a 4D vector by the given rotation. + + The vector to rotate. + The rotation to apply. + The transformed . + + + + Transforms an array of vectors by the given rotation. + + The array of vectors to transform. + The rotation to apply. + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + + + Transforms a 4D vector by the given . + + The source vector. + The transformation . + When the method completes, contains the transformed . + + + + Transforms a 4D vector by the given . + + The source vector. + The transformation . + The transformed . + + + + Transforms a 4D vector by the given . + + The source vector. + The transformation . + When the method completes, contains the transformed . + + + + Transforms a 4D vector by the given . + + The source vector. + The transformation . + The transformed . + + + + Transforms an array of 4D vectors by the given . + + The array of vectors to transform. + The transformation . + The array for which the transformed vectors are stored. + This array may be the same array as . + Thrown when or is null. + Thrown when is shorter in length than . + + + + Adds two vectors. + + The first vector to add. + The second vector to add. + The sum of the two vectors. + + + + Multiplies a vector with another by performing component-wise multiplication equivalent to . + + The first vector to multiply. + The second vector to multiply. + The multiplication of the two vectors. + + + + Assert a vector (return it unchanged). + + The vector to assert (unchanged). + The asserted (unchanged) vector. + + + + Subtracts two vectors. + + The first vector to subtract. + The second vector to subtract. + The difference of the two vectors. + + + + Reverses the direction of a given vector. + + The vector to negate. + A vector facing in the opposite direction. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Scales a vector by the given value. + + The amount by which to scale the vector. + The vector to scale. + The scaled vector. + + + + Scales a vector by the given value. + + The vector to scale. + The amount by which to scale the vector. + The scaled vector. + + + + Perform a component-wise addition + + The input vector. + The scalar value to be added on elements + The vector with added scalar for each element. + + + + Perform a component-wise addition + + The input vector. + The scalar value to be added on elements + The vector with added scalar for each element. + + + + Perform a component-wise subtraction + + The input vector. + The scalar value to be subtraced from elements + The vector with subtraced scalar from each element. + + + + Perform a component-wise subtraction + + The input vector. + The scalar value to be subtraced from elements + The vector with subtraced scalar from each element. + + + + Tests for equality between two objects. + + The first value to compare. + The second value to compare. + true if has the same value as ; otherwise, false. + + + + Tests for inequality between two objects. + + The first value to compare. + The second value to compare. + true if has a different value than ; otherwise, false. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Performs an explicit conversion from to . + + The value. + The result of the conversion. + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format provider. + + A that represents this instance. + + + + + Returns a that represents this instance. + + The format. + The format provider. + + A that represents this instance. + + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + + + + + Gets a value indicting whether this instance is normalized. + + + + + Gets a value indicting whether this vector is zero + + + + + Gets or sets the component at the specified index. + + The value of the X, Y, Z, or W component, depending on the index. + The index of the component to access. Use 0 for the X component, 1 for the Y component, 2 for the Z component, and 3 for the W component. + The value of the component at the specified index. + Thrown when the is out of the range [0, 3]. + + + + Internal FontFileEnumerator callback + + + + + Internal FontFileEnumerator Callback + + + + HRESULT ISequentialStream::Read([Out, Buffer] void* pv,[In] unsigned int cb,[Out, Optional] unsigned int* pcbRead) + + + HRESULT ISequentialStream::Write([In, Buffer] const void* pv,[In] unsigned int cb,[Out, Optional] unsigned int* pcbWritten) + + + + Callbacks to pointer. + + The stream. + + + + HRESULT IStream::Seek([In] LARGE_INTEGER dlibMove,[In] SHARPDX_SEEKORIGIN dwOrigin,[Out, Optional] ULARGE_INTEGER* plibNewPosition) + + + HRESULT IStream::SetSize([In] ULARGE_INTEGER libNewSize) + + + HRESULT IStream::CopyTo([In] IStream* pstm,[In] ULARGE_INTEGER cb,[Out, Optional] ULARGE_INTEGER* pcbRead,[Out, Optional] ULARGE_INTEGER* pcbWritten) + + + HRESULT IStream::Commit([In] STGC grfCommitFlags) + + + HRESULT IStream::Revert() + + + HRESULT IStream::LockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType) + + + HRESULT IStream::UnlockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType) + + + HRESULT IStream::Stat([Out] STATSTG* pstatstg,[In] STATFLAG grfStatFlag) + + + HRESULT IStream::Clone([Out] IStream** ppstm) + + + + Converts a win32 error code to a . + + The error code. + A HRESULT code + + + + Converts a win32 error code to a . + + The error code. + A HRESULT code + + + + Provides a hook to WndProc of an existing window handle using . + + + + + Initializes a new instance of the class. + + The HWND. + + + + Adds a message filter to a window. + + The handle of the window. + The message filter. + + + + Removes a message filter associated with a window. + + The handle of the window. + The message filter. + + + + The namespace contains common enumerations, structures and helper classes for Win32 low-level API. + + + + + Implementation of OLE IPropertyBag2. + + IPropertyBag2 + + + + Initializes a new instance of the class. + + The property bag pointer. + + + + Gets the value of the property with this name. + + The name. + Value of the property + + + + Gets the value of the property by using a + + The public type of this property. + The marshaling type of this property. + The property key. + Value of the property + + + + Sets the value of the property with this name + + The name. + The value. + + + + Sets the value of the property by using a + + The public type of this property. + The marshaling type of this property. + The property key. + The value. + + + + Gets the number of properties. + + + + + Gets the keys. + + + + + Identifies a typed property in a . + + The public type of this property. + The marshaling type of this property. + + + + Initializes a new instance of the class. + + The name. + + + + Gets the name. + + + + + An enumerator using internally a . + + + + + Initializes a new instance of the class. + + The PTR to I enum string. + + + + Security attributes. + + SECURITY_ATTRIBUTES + + + + Length. + + + + + Descriptor. + + + + + Gets or sets a value indicating whether [inherit handle]. + + + true if [inherit handle]; otherwise, false. + + + + + Variant COM. + + PROPVARIANT + + + + Gets the type of the element. + + + The type of the element. + + + + + Gets the type. + + + + + Gets or sets the value. + + + The value. + + + + + Type of a simple variant value. + + + + + Type of a variant + + + + + Simple value + + + + + Vector value. + + + + + Array value. + + + + + By reference. + + + + + Reserved value. + + + + + The namespace contains basic controls used to render DirectX content. + + + + + RenderLoop provides a rendering loop infrastructure. See remarks for usage. + + + Use static + method to directly use a renderloop with a render callback or use your own loop: + + control.Show(); + using (var loop = new RenderLoop(control)) + { + while (loop.NextFrame()) + { + // Perform draw operations here. + } + } + + Note that the main control can be changed at anytime inside the loop. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + + + + Calls this method on each frame. + + true if if the control is still active, false otherwise. + An error occured + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Runs the specified main loop in the specified context. + + + + + Runs the specified main loop for the specified windows form. + + The form. + The rendering callback. + if set to true indicating whether the render loop should use the default instead of a custom window message loop lightweight for GC. Default is false. + form + or + renderCallback + + + + Gets or sets the control to associate with the current render loop. + + The control. + Control is already disposed + + + + Gets or sets a value indicating whether the render loop should use the default instead of a custom window message loop lightweight for GC. Default is false. + + true if the render loop should use the default instead of a custom window message loop (default false); otherwise, false. + By default, RenderLoop is using a custom window message loop that is more lightweight than to process windows event message. + Set this parameter to true to use the default . + + + + Gets a value indicating whether this instance is application idle. + + + true if this instance is application idle; otherwise, false. + + + + + Delegate for the rendering loop. + + + + + A Renderable UserControl. + + + + + Initializes a new instance of the class. + + + + + Paints the background of the control. + + A that contains the event data. + + + + Raises the event. + + A that contains the event data. + + + + Default Rendering Form. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The text. + + + + Raises the event. + + A that contains the event data. + + + + Raises the event. + + A that contains the event data. + + + + Raises the event. + + An that contains the event data. + + + + Paints the background of the control. + + A that contains the event data. + + + + Raises the Pause Rendering event. + + The instance containing the event data. + + + + Raises the Resume Rendering event. + + The instance containing the event data. + + + + Raises the User resized event. + + The instance containing the event data. + + + + Raises the On App Activated event. + + The instance containing the event data. + + + + Raises the App Deactivated event + + The instance containing the event data. + + + + Raises the System Suspend event + + The instance containing the event data. + + + + Raises the System Resume event + + The instance containing the event data. + + + + Raises the event. + + The instance containing the event data. + + + + Override windows message loop handling. + + The Windows to process. + + + + Occurs when [app activated]. + + + + + Occurs when [app deactivated]. + + + + + Occurs when [monitor changed]. + + + + + Occurs when [pause rendering]. + + + + + Occurs when [resume rendering]. + + + + + Occurs when [screensaver]. + + + + + Occurs when [system resume]. + + + + + Occurs when [system suspend]. + + + + + Occurs when [user resized]. + + + + + Gets or sets a value indicating whether this form can be resized by the user. See remarks. + + + This property alters , + for true value it is , + for false - . + + true if this form can be resized by the user (by default); otherwise, false. + + + + Gets or sets a value indicationg whether the current render form is in fullscreen mode. See remarks. + + + If Toolkit is used, this property is set automatically, + otherwise user should maintain it himself as it affects the behavior of property. + + +
+
diff --git a/FirstProject/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/FirstProject/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3cac758 Binary files /dev/null and b/FirstProject/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/FirstProject/obj/x86/Debug/FirstProject.csproj.FileListAbsolute.txt b/FirstProject/obj/x86/Debug/FirstProject.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..20c2147 --- /dev/null +++ b/FirstProject/obj/x86/Debug/FirstProject.csproj.FileListAbsolute.txt @@ -0,0 +1,64 @@ +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\Arial.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\bullet.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\EntToStart.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\Green_laser.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\rock_large.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\ship.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\spacebg.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\FirstProject.exe +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\FirstProject.pdb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\MonoGame.Framework.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.MediaFoundation.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XAudio2.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.DXGI.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D11.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct2D1.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XInput.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D9.dll +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\MonoGame.Framework.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.MediaFoundation.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XAudio2.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.DXGI.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D11.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct2D1.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XInput.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D9.xml +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\obj\x86\Debug\FirstProject.exe +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\obj\x86\Debug\FirstProject.pdb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\GameOver.xnb +E:\AIE\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\obj\x86\Debug\FirstProject.csprojResolveAssemblyReference.cache +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\obj\x86\Debug\FirstProject.exe +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\obj\x86\Debug\FirstProject.pdb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\Arial.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\bullet.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\EntToStart.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\GameOver.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\Green_laser.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\rock_large.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\ship.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\Content\spacebg.xnb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\FirstProject.exe +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\FirstProject.pdb +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\MonoGame.Framework.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.MediaFoundation.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XAudio2.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.DXGI.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D11.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct2D1.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XInput.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.RawInput.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D9.dll +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\MonoGame.Framework.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.MediaFoundation.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XAudio2.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.DXGI.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D11.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct2D1.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.XInput.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.RawInput.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\bin\Windows\x86\Debug\SharpDX.Direct3D9.xml +L:\001 Game Programming Basics in CSharp\001 Intro To Game Programming\2017-08-16 FirstProject Recovery\FirstProject\FirstProject\obj\x86\Debug\FirstProject.csprojResolveAssemblyReference.cache diff --git a/FirstProject/obj/x86/Debug/FirstProject.csprojResolveAssemblyReference.cache b/FirstProject/obj/x86/Debug/FirstProject.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..878cbdd Binary files /dev/null and b/FirstProject/obj/x86/Debug/FirstProject.csprojResolveAssemblyReference.cache differ diff --git a/FirstProject/obj/x86/Debug/FirstProject.exe b/FirstProject/obj/x86/Debug/FirstProject.exe new file mode 100644 index 0000000..cef9415 Binary files /dev/null and b/FirstProject/obj/x86/Debug/FirstProject.exe differ diff --git a/FirstProject/obj/x86/Debug/FirstProject.pdb b/FirstProject/obj/x86/Debug/FirstProject.pdb new file mode 100644 index 0000000..fc87963 Binary files /dev/null and b/FirstProject/obj/x86/Debug/FirstProject.pdb differ diff --git a/FirstProject/obj/x86/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/FirstProject/obj/x86/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/FirstProject/obj/x86/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/FirstProject/obj/x86/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/FirstProject/obj/x86/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/FirstProject/obj/x86/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29