Enum TextureOptions
Flags describing resource options for a Texture.
[Flags]
public enum TextureOptions
- Extension Methods
Fields
None = 0Enables data sharing between two or more Direct3D devices.
The only resources that can be shared are 2D non-mipmapped Textures.
Shared and SharedKeyedMutex are mutually exclusive.
Note that, starting with Windows 8, it is recommended to enable resource data sharing between two or more Direct3D devices by using a combination of the SharedNtHandle and SharedKeyedMutex flags instead.
Enables the Texture to be synchronized by using Silk.NET.DXGI.IDXGIKeyedMutex APIs.
When using this flag when creating a Texture with a graphics device, any other device can open the same Texture by using
OpenSharedResource. Then they must obtain theKeyedMutexfrom the Texture and acquire the mutex before they issue any rendering commands to the Texture. When those devices finish rendering, they must release the mutex.Shared and SharedKeyedMutex are mutually exclusive.
Enable the use of NT HANDLE values when you create a shared Texture.
When you use this flag, you must combine it with the SharedKeyedMutex flag by using a bitwise OR operation. The resulting value specifies a new shared resource type that directs the runtime to use NT HANDLE values for the shared resource. The runtime then must confirm that the shared resource works on all hardware at the specified graphics profile. Without this flag set, the runtime does not strictly validate shared resource parameters (that is, formats, flags, usage, and so on).
This flag is not supported until Level_11_1.
Remarks
This enumeration is used in TextureDescription.