diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-10-03 15:38:14 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-10-03 15:38:14 +0100 |
commit | 9a8d0cf1b083565754c6560763185dbba7202f60 (patch) | |
tree | d752899a578dd45a8e17e5a3ef8f9980d28ebd6b /specs/d3d11.py | |
parent | 693382a5630079f9debfe55c59f8197d432f47ff (diff) |
dxgitrace: Recognize more D3D11_FEATURE_* cases.
Diffstat (limited to 'specs/d3d11.py')
-rw-r--r-- | specs/d3d11.py | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/specs/d3d11.py b/specs/d3d11.py index 07f7958d..10e9e69e 100644 --- a/specs/d3d11.py +++ b/specs/d3d11.py @@ -1069,12 +1069,88 @@ D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS = Struct("D3D11_FEATURE_DATA_D3D10_X (BOOL, "ComputeShaders_Plus_RawAndStructuredBuffers_Via_Shader_4_x"), ]) +D3D11_FEATURE_DATA_D3D11_OPTIONS = Struct("D3D11_FEATURE_DATA_D3D11_OPTIONS", [ + (BOOL, "OutputMergerLogicOp"), + (BOOL, "UAVOnlyRenderingForcedSampleCount"), + (BOOL, "DiscardAPIsSeenByDriver"), + (BOOL, "FlagsForUpdateAndCopySeenByDriver"), + (BOOL, "ClearView"), + (BOOL, "CopyWithOverlap"), + (BOOL, "ConstantBufferPartialUpdate"), + (BOOL, "ConstantBufferOffsetting"), + (BOOL, "MapNoOverwriteOnDynamicConstantBuffer"), + (BOOL, "MapNoOverwriteOnDynamicBufferSRV"), + (BOOL, "MultisampleRTVWithForcedSampleCountOne"), + (BOOL, "SAD4ShaderInstructions"), + (BOOL, "ExtendedDoublesShaderInstructions"), + (BOOL, "ExtendedResourceSharing"), +]) + +D3D11_FEATURE_DATA_ARCHITECTURE_INFO = Struct("D3D11_FEATURE_DATA_ARCHITECTURE_INFO", [ + (BOOL, "TileBasedDeferredRenderer"), +]) + +D3D11_FEATURE_DATA_D3D9_OPTIONS = Struct("D3D11_FEATURE_DATA_D3D9_OPTIONS", [ + (BOOL, "FullNonPow2TextureSupport"), +]) + +D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT = Struct("D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT", [ + (BOOL, "SupportsDepthAsTextureWithLessEqualComparisonFilter"), +]) + +D3D11_SHADER_MIN_PRECISION_SUPPORT = Enum("D3D11_SHADER_MIN_PRECISION_SUPPORT", [ + "D3D11_SHADER_MIN_PRECISION_10_BIT", + "D3D11_SHADER_MIN_PRECISION_16_BIT", +]) + +D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT = Struct("D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT", [ + (UINT, "PixelShaderMinPrecision"), + (UINT, "AllOtherShaderStagesMinPrecision"), +]) + +D3D11_TILED_RESOURCES_TIER = Enum("D3D11_TILED_RESOURCES_TIER", [ + "D3D11_TILED_RESOURCES_NOT_SUPPORTED", + "D3D11_TILED_RESOURCES_TIER_1", + "D3D11_TILED_RESOURCES_TIER_2", +]) + +D3D11_FEATURE_DATA_D3D11_OPTIONS1 = Struct("D3D11_FEATURE_DATA_D3D11_OPTIONS1", [ + (D3D11_TILED_RESOURCES_TIER, "TiledResourcesTier"), + (BOOL, "MinMaxFiltering"), + (BOOL, "ClearViewAlsoSupportsDepthOnlyFormats"), + (BOOL, "MapOnDefaultBuffers"), +]) + +D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT = Struct("D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT", [ + (BOOL, "SimpleInstancingSupported"), +]) + +D3D11_FEATURE_DATA_MARKER_SUPPORT = Struct("D3D11_FEATURE_DATA_MARKER_SUPPORT", [ + (BOOL, "Profile"), +]) + +D3D11_FEATURE_DATA_D3D9_OPTIONS1 = Struct("D3D11_FEATURE_DATA_D3D9_OPTIONS1", [ + (BOOL, "FullNonPow2TextureSupported"), + (BOOL, "DepthAsTextureWithLessEqualComparisonFilterSupported"), + (BOOL, "SimpleInstancingSupported"), + (BOOL, "TextureCubeFaceRenderTargetWithNonCubeDepthStencilSupported"), +]) + D3D11_FEATURE, D3D11_FEATURE_DATA = EnumPolymorphic("D3D11_FEATURE", "Feature", [ ("D3D11_FEATURE_THREADING", Pointer(D3D11_FEATURE_DATA_THREADING)), ("D3D11_FEATURE_DOUBLES", Pointer(D3D11_FEATURE_DATA_DOUBLES)), ("D3D11_FEATURE_FORMAT_SUPPORT", Pointer(D3D11_FEATURE_DATA_FORMAT_SUPPORT)), ("D3D11_FEATURE_FORMAT_SUPPORT2", Pointer(D3D11_FEATURE_DATA_FORMAT_SUPPORT2)), ("D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS", Pointer(D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS)), + ("D3D11_FEATURE_D3D11_OPTIONS", Pointer(D3D11_FEATURE_DATA_D3D11_OPTIONS)), + ("D3D11_FEATURE_ARCHITECTURE_INFO", Pointer(D3D11_FEATURE_DATA_ARCHITECTURE_INFO)), + ("D3D11_FEATURE_D3D9_OPTIONS", Pointer(D3D11_FEATURE_DATA_D3D9_OPTIONS)), + ("D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT", Pointer(D3D11_FEATURE_DATA_SHADER_MIN_PRECISION_SUPPORT)), + ("D3D11_FEATURE_D3D9_SHADOW_SUPPORT", Pointer(D3D11_FEATURE_DATA_D3D9_SHADOW_SUPPORT)), + ("D3D11_FEATURE_D3D11_OPTIONS1", Pointer(D3D11_FEATURE_DATA_D3D11_OPTIONS1)), + ("D3D11_FEATURE_D3D9_SIMPLE_INSTANCING_SUPPORT", Pointer(D3D11_FEATURE_DATA_D3D9_SIMPLE_INSTANCING_SUPPORT)), + ("D3D11_FEATURE_MARKER_SUPPORT", Pointer(D3D11_FEATURE_DATA_MARKER_SUPPORT)), + ("D3D11_FEATURE_D3D9_OPTIONS1", Pointer(D3D11_FEATURE_DATA_D3D9_OPTIONS1)), ], Blob(Void, "FeatureSupportDataSize"), False) ID3D11DeviceContext.methods += [ |