C# Class DiagnosticDescriptors, ComputeSharp

A container for all DiagnosticDescriptor instances for errors reported by analyzers in this project.
显示文件 Open project: Sergio0694/ComputeSharp Class Usage Examples

Public Properties

Property Type Description
AnonymousObjectCreationExpression DiagnosticDescriptor,
AsyncModifierOnMethodOrFunction DiagnosticDescriptor,
AwaitExpression DiagnosticDescriptor,
CheckedExpression DiagnosticDescriptor,
CheckedStatement DiagnosticDescriptor,
EmbeddedBytecodeFailedWithDxcCompilationException DiagnosticDescriptor,
EmbeddedBytecodeFailedWithWin32Exception DiagnosticDescriptor,
FixedStatement DiagnosticDescriptor,
ForEachStatement DiagnosticDescriptor,
FunctionPointer DiagnosticDescriptor,
InvalidD2DInputCount DiagnosticDescriptor,
InvalidDiscoveredType DiagnosticDescriptor,
InvalidMethodCall DiagnosticDescriptor,
InvalidObjectCreationExpression DiagnosticDescriptor,
InvalidObjectDeclaration DiagnosticDescriptor,
InvalidPropertyDeclaration DiagnosticDescriptor,
InvalidShaderField DiagnosticDescriptor,
InvalidShaderStaticFieldType DiagnosticDescriptor,
InvalidSimpleAndComplexIndicesCombination DiagnosticDescriptor,
LockStatement DiagnosticDescriptor,
NonConstantMatrixSwizzledIndex DiagnosticDescriptor
OutOfRangeInputIndex DiagnosticDescriptor
PointerType DiagnosticDescriptor
QueryExpression DiagnosticDescriptor
RangeExpression DiagnosticDescriptor
RecursivePattern DiagnosticDescriptor
RefType DiagnosticDescriptor
RelationalPattern DiagnosticDescriptor
RepeatedD2DInputComplexIndices DiagnosticDescriptor
RepeatedD2DInputSimpleIndices DiagnosticDescriptor
ShaderDispatchDataSizeExceeded DiagnosticDescriptor
SizeOfExpression DiagnosticDescriptor
StackAllocArrayCreationExpression DiagnosticDescriptor
StringLiteralExpression DiagnosticDescriptor
ThrowExpressionOrStatement DiagnosticDescriptor
TryStatement DiagnosticDescriptor
TupleType DiagnosticDescriptor
UnsafeModifierOnMethodOrFunction DiagnosticDescriptor
UnsafeStatement DiagnosticDescriptor
UsingStatementOrDeclaration DiagnosticDescriptor
YieldStatement DiagnosticDescriptor

Property Details

AnonymousObjectCreationExpression public_oe static_oe property

Gets a DiagnosticDescriptor for an anonymous object creation expression.
public static DiagnosticDescriptor, AnonymousObjectCreationExpression
return DiagnosticDescriptor,

AsyncModifierOnMethodOrFunction public_oe static_oe property

Gets a DiagnosticDescriptor for an async modifier on a method or function.
public static DiagnosticDescriptor, AsyncModifierOnMethodOrFunction
return DiagnosticDescriptor,

AwaitExpression public_oe static_oe property

Gets a DiagnosticDescriptor for an await expression.
public static DiagnosticDescriptor, AwaitExpression
return DiagnosticDescriptor,

CheckedExpression public_oe static_oe property

Gets a DiagnosticDescriptor for a checked expression.
public static DiagnosticDescriptor, CheckedExpression
return DiagnosticDescriptor,

CheckedStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a checked statement.
public static DiagnosticDescriptor, CheckedStatement
return DiagnosticDescriptor,

EmbeddedBytecodeFailedWithDxcCompilationException public_oe static_oe property

Gets a DiagnosticDescriptor for an embedded bytecode shader failed due to an HLSL compilation exception.

Format: "The shader of type {0} failed to compile due to an HLSL compiler error (Message: "{1}")".

public static DiagnosticDescriptor, EmbeddedBytecodeFailedWithDxcCompilationException
return DiagnosticDescriptor,

EmbeddedBytecodeFailedWithWin32Exception public_oe static_oe property

Gets a DiagnosticDescriptor for an embedded bytecode shader failed due to a Win32 exception.

Format: "The shader of type {0} failed to compile due to a Win32 exception (HRESULT: {1:X8}, Message: "{2}")".

public static DiagnosticDescriptor, EmbeddedBytecodeFailedWithWin32Exception
return DiagnosticDescriptor,

FixedStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a fixed statement.
public static DiagnosticDescriptor, FixedStatement
return DiagnosticDescriptor,

ForEachStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a foreach statement.
public static DiagnosticDescriptor, ForEachStatement
return DiagnosticDescriptor,

FunctionPointer public_oe static_oe property

Gets a DiagnosticDescriptor for a function pointer type.
public static DiagnosticDescriptor, FunctionPointer
return DiagnosticDescriptor,

InvalidD2DInputCount public_oe static_oe property

Gets a DiagnosticDescriptor for a invalid D2D input count value.

Format: "The D2D1 shader of type {0} is using an incorrect value for [D2DInputCount] (the number of inputs must be in the [0, 8] range)".

public static DiagnosticDescriptor, InvalidD2DInputCount
return DiagnosticDescriptor,

InvalidDiscoveredType public_oe static_oe property

Gets a DiagnosticDescriptor for an invalid discovered type.

Format: "The D2D1 shader of type {0} uses the invalid type {1}".

public static DiagnosticDescriptor, InvalidDiscoveredType
return DiagnosticDescriptor,

InvalidMethodCall public_oe static_oe property

Gets a DiagnosticDescriptor for a method invocation that is not valid from a shader.

Format: "The method {0} cannot be used in a D2D1 shader (methods need to either be HLSL intrinsics or with source available for analysis)".

public static DiagnosticDescriptor, InvalidMethodCall
return DiagnosticDescriptor,

InvalidObjectCreationExpression public_oe static_oe property

Gets a DiagnosticDescriptor for an invalid object creation expression.

Format: "The type {0} cannot be created in a compute shader".

public static DiagnosticDescriptor, InvalidObjectCreationExpression
return DiagnosticDescriptor,

InvalidObjectDeclaration public_oe static_oe property

Gets a DiagnosticDescriptor for an invalid object declaration.

Format: "A variable of type {0} cannot be declared in a compute shader".

public static DiagnosticDescriptor, InvalidObjectDeclaration
return DiagnosticDescriptor,

InvalidPropertyDeclaration public_oe static_oe property

Gets a DiagnosticDescriptor for a property declaration.

Format: "The D2D1 shader of type {0} contains an invalid property \"{1}\" declaration (only stateless properties explicitly implementing an interface property can be used)".

public static DiagnosticDescriptor, InvalidPropertyDeclaration
return DiagnosticDescriptor,

InvalidShaderField public_oe static_oe property

Gets a DiagnosticDescriptor for an invalid shader field.

Format: "The compute shader of type {0} contains a field \"{1}\" of an invalid type {2}".

public static DiagnosticDescriptor, InvalidShaderField
return DiagnosticDescriptor,

InvalidShaderStaticFieldType public_oe static_oe property

Gets a DiagnosticDescriptor for an invalid shader static readonly field type.

Format: "The compute shader of type {0} contains a static readonly field \"{1}\" of an invalid type {2} (only primitive, vector and matrix types are supported)".

public static DiagnosticDescriptor, InvalidShaderStaticFieldType
return DiagnosticDescriptor,

InvalidSimpleAndComplexIndicesCombination public_oe static_oe property

Gets a DiagnosticDescriptor for invalid combination of simple and complex indices.

Format: "The D2D1 shader of type {0} is using some indices in common for simple and complex input indices".

public static DiagnosticDescriptor, InvalidSimpleAndComplexIndicesCombination
return DiagnosticDescriptor,

LockStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a lock statement.
public static DiagnosticDescriptor, LockStatement
return DiagnosticDescriptor,

NonConstantMatrixSwizzledIndex public_oe static_oe property

Gets a DiagnosticDescriptor for an incorrect matrix swizzling property argument.
public static DiagnosticDescriptor NonConstantMatrixSwizzledIndex
return DiagnosticDescriptor

OutOfRangeInputIndex public_oe static_oe property

Gets a DiagnosticDescriptor for a shader with an out of range input index (or more).

Format: "The D2D1 shader of type {0} is using some out of range input indices".

public static DiagnosticDescriptor OutOfRangeInputIndex
return DiagnosticDescriptor

PointerType public_oe static_oe property

Gets a DiagnosticDescriptor for a pointer type.
public static DiagnosticDescriptor PointerType
return DiagnosticDescriptor

QueryExpression public_oe static_oe property

Gets a DiagnosticDescriptor for a query statement.
public static DiagnosticDescriptor QueryExpression
return DiagnosticDescriptor

RangeExpression public_oe static_oe property

Gets a DiagnosticDescriptor for a range expression.
public static DiagnosticDescriptor RangeExpression
return DiagnosticDescriptor

RecursivePattern public_oe static_oe property

Gets a DiagnosticDescriptor for a recursive pattern.
public static DiagnosticDescriptor RecursivePattern
return DiagnosticDescriptor

RefType public_oe static_oe property

Gets a DiagnosticDescriptor for a ref type.
public static DiagnosticDescriptor RefType
return DiagnosticDescriptor

RelationalPattern public_oe static_oe property

Gets a DiagnosticDescriptor for a relational pattern.
public static DiagnosticDescriptor RelationalPattern
return DiagnosticDescriptor

RepeatedD2DInputComplexIndices public_oe static_oe property

Gets a DiagnosticDescriptor for repeated indices for D2D complex indices.

Format: "The D2D1 shader of type {0} is using repeated indices for some of its [D2DInputComplex] attributes".

public static DiagnosticDescriptor RepeatedD2DInputComplexIndices
return DiagnosticDescriptor

RepeatedD2DInputSimpleIndices public_oe static_oe property

Gets a DiagnosticDescriptor for repeated indices for D2D simple indices.

Format: "The D2D1 shader of type {0} is using repeated indices for some of its [D2DInputSimple] attributes".

public static DiagnosticDescriptor RepeatedD2DInputSimpleIndices
return DiagnosticDescriptor

ShaderDispatchDataSizeExceeded public_oe static_oe property

Gets a DiagnosticDescriptor for a shader with a root signature that is too large.

Format: "The D2D1 shader of type {0} has exceeded the maximum allowed size for captured values and resources".

public static DiagnosticDescriptor ShaderDispatchDataSizeExceeded
return DiagnosticDescriptor

SizeOfExpression public_oe static_oe property

Gets a DiagnosticDescriptor for a sizeof expression.
public static DiagnosticDescriptor SizeOfExpression
return DiagnosticDescriptor

StackAllocArrayCreationExpression public_oe static_oe property

Gets a DiagnosticDescriptor for a stackalloc expression.
public static DiagnosticDescriptor StackAllocArrayCreationExpression
return DiagnosticDescriptor

StringLiteralExpression public_oe static_oe property

Gets a DiagnosticDescriptor for a string literal.
public static DiagnosticDescriptor StringLiteralExpression
return DiagnosticDescriptor

ThrowExpressionOrStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a throw expression or statement.
public static DiagnosticDescriptor ThrowExpressionOrStatement
return DiagnosticDescriptor

TryStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a try statement.
public static DiagnosticDescriptor TryStatement
return DiagnosticDescriptor

TupleType public_oe static_oe property

Gets a DiagnosticDescriptor for a tuple type.
public static DiagnosticDescriptor TupleType
return DiagnosticDescriptor

UnsafeModifierOnMethodOrFunction public_oe static_oe property

Gets a DiagnosticDescriptor for an unsafe modifier on a method or function.
public static DiagnosticDescriptor UnsafeModifierOnMethodOrFunction
return DiagnosticDescriptor

UnsafeStatement public_oe static_oe property

Gets a DiagnosticDescriptor for an unsafe statement.
public static DiagnosticDescriptor UnsafeStatement
return DiagnosticDescriptor

UsingStatementOrDeclaration public_oe static_oe property

Gets a DiagnosticDescriptor for a using statement or declaration.
public static DiagnosticDescriptor UsingStatementOrDeclaration
return DiagnosticDescriptor

YieldStatement public_oe static_oe property

Gets a DiagnosticDescriptor for a yield statement.
public static DiagnosticDescriptor YieldStatement
return DiagnosticDescriptor