|
@@ -42,275 +42,275 @@ import hctdb_instrhelp
|
|
|
// OPCODE-OLOADS:BEGIN
|
|
|
const OP::OpCodeProperty OP::m_OpCodeProps[(unsigned)OP::OpCode::NumOpCodes] = {
|
|
|
// OpCode OpCode name, OpCodeClass OpCodeClass name, void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- // Temporary, indexable, input, output registers void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::TempRegLoad, "TempRegLoad", OCC::TempRegLoad, "tempRegLoad", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::TempRegStore, "TempRegStore", OCC::TempRegStore, "tempRegStore", false, true, true, false, false, false, true, true, false, false, false, Attribute::None, },
|
|
|
- { OC::MinPrecXRegLoad, "MinPrecXRegLoad", OCC::MinPrecXRegLoad, "minPrecXRegLoad", false, true, false, false, false, false, true, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::MinPrecXRegStore, "MinPrecXRegStore", OCC::MinPrecXRegStore, "minPrecXRegStore", false, true, false, false, false, false, true, false, false, false, false, Attribute::None, },
|
|
|
- { OC::LoadInput, "LoadInput", OCC::LoadInput, "loadInput", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::StoreOutput, "StoreOutput", OCC::StoreOutput, "storeOutput", false, true, true, false, false, false, true, true, false, false, false, Attribute::None, },
|
|
|
-
|
|
|
- // Unary float void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::FAbs, "FAbs", OCC::Unary, "unary", false, true, true, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Saturate, "Saturate", OCC::Unary, "unary", false, true, true, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::IsNaN, "IsNaN", OCC::IsSpecialFloat, "isSpecialFloat", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::IsInf, "IsInf", OCC::IsSpecialFloat, "isSpecialFloat", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::IsFinite, "IsFinite", OCC::IsSpecialFloat, "isSpecialFloat", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::IsNormal, "IsNormal", OCC::IsSpecialFloat, "isSpecialFloat", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Cos, "Cos", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Sin, "Sin", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Tan, "Tan", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Acos, "Acos", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Asin, "Asin", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Atan, "Atan", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Hcos, "Hcos", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Hsin, "Hsin", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Htan, "Htan", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Exp, "Exp", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Frc, "Frc", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Log, "Log", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Sqrt, "Sqrt", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Rsqrt, "Rsqrt", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary float - rounding void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Round_ne, "Round_ne", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Round_ni, "Round_ni", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Round_pi, "Round_pi", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Round_z, "Round_z", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Bfrev, "Bfrev", OCC::Unary, "unary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Countbits, "Countbits", OCC::UnaryBits, "unaryBits", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
- { OC::FirstbitLo, "FirstbitLo", OCC::UnaryBits, "unaryBits", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::FirstbitHi, "FirstbitHi", OCC::UnaryBits, "unaryBits", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::FirstbitSHi, "FirstbitSHi", OCC::UnaryBits, "unaryBits", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary float void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::FMax, "FMax", OCC::Binary, "binary", false, true, true, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::FMin, "FMin", OCC::Binary, "binary", false, true, true, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::IMax, "IMax", OCC::Binary, "binary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
- { OC::IMin, "IMin", OCC::Binary, "binary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::UMax, "UMax", OCC::Binary, "binary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
- { OC::UMin, "UMin", OCC::Binary, "binary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary int with two outputs void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::IMul, "IMul", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary uint with two outputs void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::UMul, "UMul", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::UDiv, "UDiv", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary uint with carry or borrow void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::UAddc, "UAddc", OCC::BinaryWithCarryOrBorrow, "binaryWithCarryOrBorrow", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::USubb, "USubb", OCC::BinaryWithCarryOrBorrow, "binaryWithCarryOrBorrow", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary float void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::FMad, "FMad", OCC::Tertiary, "tertiary", false, true, true, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Fma, "Fma", OCC::Tertiary, "tertiary", false, false, false, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::IMad, "IMad", OCC::Tertiary, "tertiary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::UMad, "UMad", OCC::Tertiary, "tertiary", false, false, false, false, false, false, true, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Msad, "Msad", OCC::Tertiary, "tertiary", false, false, false, false, false, false, false, true, true, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Ibfe, "Ibfe", OCC::Tertiary, "tertiary", false, false, false, false, false, false, false, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Ubfe, "Ubfe", OCC::Tertiary, "tertiary", false, false, false, false, false, false, false, true, true, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Quaternary void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Bfi, "Bfi", OCC::Quaternary, "quaternary", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Dot void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Dot2, "Dot2", OCC::Dot2, "dot2", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Dot3, "Dot3", OCC::Dot3, "dot3", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Dot4, "Dot4", OCC::Dot4, "dot4", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Resources void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::CreateHandle, "CreateHandle", OCC::CreateHandle, "createHandle", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::CBufferLoad, "CBufferLoad", OCC::CBufferLoad, "cbufferLoad", false, true, true, true, false, true, true, true, true, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::CBufferLoadLegacy, "CBufferLoadLegacy", OCC::CBufferLoadLegacy, "cbufferLoadLegacy", false, true, true, true, false, false, true, true, true, false, false, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources - sample void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Sample, "Sample", OCC::Sample, "sample", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::SampleBias, "SampleBias", OCC::SampleBias, "sampleBias", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::SampleLevel, "SampleLevel", OCC::SampleLevel, "sampleLevel", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::SampleGrad, "SampleGrad", OCC::SampleGrad, "sampleGrad", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::SampleCmp, "SampleCmp", OCC::SampleCmp, "sampleCmp", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::SampleCmpLevelZero, "SampleCmpLevelZero", OCC::SampleCmpLevelZero, "sampleCmpLevelZero", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::TextureLoad, "TextureLoad", OCC::TextureLoad, "textureLoad", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::TextureStore, "TextureStore", OCC::TextureStore, "textureStore", false, true, true, false, false, false, true, true, false, false, false, Attribute::None, },
|
|
|
- { OC::BufferLoad, "BufferLoad", OCC::BufferLoad, "bufferLoad", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::BufferStore, "BufferStore", OCC::BufferStore, "bufferStore", false, true, true, false, false, false, true, true, false, false, false, Attribute::None, },
|
|
|
- { OC::BufferUpdateCounter, "BufferUpdateCounter", OCC::BufferUpdateCounter, "bufferUpdateCounter", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::CheckAccessFullyMapped, "CheckAccessFullyMapped", OCC::CheckAccessFullyMapped, "checkAccessFullyMapped", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::GetDimensions, "GetDimensions", OCC::GetDimensions, "getDimensions", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources - gather void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::TextureGather, "TextureGather", OCC::TextureGather, "textureGather", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::TextureGatherCmp, "TextureGatherCmp", OCC::TextureGatherCmp, "textureGatherCmp", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources - sample void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::Texture2DMSGetSamplePosition, "Texture2DMSGetSamplePosition", OCC::Texture2DMSGetSamplePosition, "texture2DMSGetSamplePosition", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::RenderTargetGetSamplePosition, "RenderTargetGetSamplePosition", OCC::RenderTargetGetSamplePosition, "renderTargetGetSamplePosition", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::RenderTargetGetSampleCount, "RenderTargetGetSampleCount", OCC::RenderTargetGetSampleCount, "renderTargetGetSampleCount", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Synchronization void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::AtomicBinOp, "AtomicBinOp", OCC::AtomicBinOp, "atomicBinOp", false, false, false, false, false, false, false, true, false, false, false, Attribute::None, },
|
|
|
- { OC::AtomicCompareExchange, "AtomicCompareExchange", OCC::AtomicCompareExchange, "atomicCompareExchange", false, false, false, false, false, false, false, true, false, false, false, Attribute::None, },
|
|
|
- { OC::Barrier, "Barrier", OCC::Barrier, "barrier", true, false, false, false, false, false, false, false, false, false, false, Attribute::NoDuplicate, },
|
|
|
-
|
|
|
- // Pixel shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::CalculateLOD, "CalculateLOD", OCC::CalculateLOD, "calculateLOD", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::Discard, "Discard", OCC::Discard, "discard", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::DerivCoarseX, "DerivCoarseX", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::DerivCoarseY, "DerivCoarseY", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::DerivFineX, "DerivFineX", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::DerivFineY, "DerivFineY", OCC::Unary, "unary", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::EvalSnapped, "EvalSnapped", OCC::EvalSnapped, "evalSnapped", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::EvalSampleIndex, "EvalSampleIndex", OCC::EvalSampleIndex, "evalSampleIndex", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::EvalCentroid, "EvalCentroid", OCC::EvalCentroid, "evalCentroid", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::SampleIndex, "SampleIndex", OCC::SampleIndex, "sampleIndex", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::Coverage, "Coverage", OCC::Coverage, "coverage", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::InnerCoverage, "InnerCoverage", OCC::InnerCoverage, "innerCoverage", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Compute shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::ThreadId, "ThreadId", OCC::ThreadId, "threadId", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::GroupId, "GroupId", OCC::GroupId, "groupId", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::ThreadIdInGroup, "ThreadIdInGroup", OCC::ThreadIdInGroup, "threadIdInGroup", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::FlattenedThreadIdInGroup, "FlattenedThreadIdInGroup", OCC::FlattenedThreadIdInGroup, "flattenedThreadIdInGroup", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Geometry shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::EmitStream, "EmitStream", OCC::EmitStream, "emitStream", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::CutStream, "CutStream", OCC::CutStream, "cutStream", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::EmitThenCutStream, "EmitThenCutStream", OCC::EmitThenCutStream, "emitThenCutStream", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::GSInstanceID, "GSInstanceID", OCC::GSInstanceID, "gsInstanceID", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Double precision void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::MakeDouble, "MakeDouble", OCC::MakeDouble, "makeDouble", false, false, false, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::SplitDouble, "SplitDouble", OCC::SplitDouble, "splitDouble", false, false, false, true, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Domain and hull shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::LoadOutputControlPoint, "LoadOutputControlPoint", OCC::LoadOutputControlPoint, "loadOutputControlPoint", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::LoadPatchConstant, "LoadPatchConstant", OCC::LoadPatchConstant, "loadPatchConstant", false, true, true, false, false, false, true, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Domain shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::DomainLocation, "DomainLocation", OCC::DomainLocation, "domainLocation", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Hull shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::StorePatchConstant, "StorePatchConstant", OCC::StorePatchConstant, "storePatchConstant", false, true, true, false, false, false, true, true, false, false, false, Attribute::None, },
|
|
|
- { OC::OutputControlPointID, "OutputControlPointID", OCC::OutputControlPointID, "outputControlPointID", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Hull, Domain and Geometry shaders void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::PrimitiveID, "PrimitiveID", OCC::PrimitiveID, "primitiveID", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Other void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::CycleCounterLegacy, "CycleCounterLegacy", OCC::CycleCounterLegacy, "cycleCounterLegacy", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
-
|
|
|
- // Wave void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::WaveIsFirstLane, "WaveIsFirstLane", OCC::WaveIsFirstLane, "waveIsFirstLane", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::WaveGetLaneIndex, "WaveGetLaneIndex", OCC::WaveGetLaneIndex, "waveGetLaneIndex", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::WaveGetLaneCount, "WaveGetLaneCount", OCC::WaveGetLaneCount, "waveGetLaneCount", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::WaveAnyTrue, "WaveAnyTrue", OCC::WaveAnyTrue, "waveAnyTrue", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::WaveAllTrue, "WaveAllTrue", OCC::WaveAllTrue, "waveAllTrue", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::WaveActiveAllEqual, "WaveActiveAllEqual", OCC::WaveActiveAllEqual, "waveActiveAllEqual", false, true, true, true, true, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::WaveActiveBallot, "WaveActiveBallot", OCC::WaveActiveBallot, "waveActiveBallot", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::WaveReadLaneAt, "WaveReadLaneAt", OCC::WaveReadLaneAt, "waveReadLaneAt", false, true, true, true, true, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::WaveReadLaneFirst, "WaveReadLaneFirst", OCC::WaveReadLaneFirst, "waveReadLaneFirst", false, true, true, false, true, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::WaveActiveOp, "WaveActiveOp", OCC::WaveActiveOp, "waveActiveOp", false, true, true, true, true, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::WaveActiveBit, "WaveActiveBit", OCC::WaveActiveBit, "waveActiveBit", false, false, false, false, false, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::WavePrefixOp, "WavePrefixOp", OCC::WavePrefixOp, "wavePrefixOp", false, true, true, true, false, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::QuadReadLaneAt, "QuadReadLaneAt", OCC::QuadReadLaneAt, "quadReadLaneAt", false, true, true, true, true, true, true, true, true, false, false, Attribute::None, },
|
|
|
- { OC::QuadOp, "QuadOp", OCC::QuadOp, "quadOp", false, true, true, true, false, true, true, true, true, false, false, Attribute::None, },
|
|
|
-
|
|
|
- // Bitcasts with different sizes void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::BitcastI16toF16, "BitcastI16toF16", OCC::BitcastI16toF16, "bitcastI16toF16", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::BitcastF16toI16, "BitcastF16toI16", OCC::BitcastF16toI16, "bitcastF16toI16", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::BitcastI32toF32, "BitcastI32toF32", OCC::BitcastI32toF32, "bitcastI32toF32", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::BitcastF32toI32, "BitcastF32toI32", OCC::BitcastF32toI32, "bitcastF32toI32", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::BitcastI64toF64, "BitcastI64toF64", OCC::BitcastI64toF64, "bitcastI64toF64", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::BitcastF64toI64, "BitcastF64toI64", OCC::BitcastF64toI64, "bitcastF64toI64", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Legacy floating-point void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::LegacyF32ToF16, "LegacyF32ToF16", OCC::LegacyF32ToF16, "legacyF32ToF16", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::LegacyF16ToF32, "LegacyF16ToF32", OCC::LegacyF16ToF32, "legacyF16ToF32", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Double precision void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::LegacyDoubleToFloat, "LegacyDoubleToFloat", OCC::LegacyDoubleToFloat, "legacyDoubleToFloat", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::LegacyDoubleToSInt32, "LegacyDoubleToSInt32", OCC::LegacyDoubleToSInt32, "legacyDoubleToSInt32", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::LegacyDoubleToUInt32, "LegacyDoubleToUInt32", OCC::LegacyDoubleToUInt32, "legacyDoubleToUInt32", true, false, false, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Wave void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::WaveAllBitCount, "WaveAllBitCount", OCC::WaveAllOp, "waveAllOp", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
- { OC::WavePrefixBitCount, "WavePrefixBitCount", OCC::WavePrefixOp, "wavePrefixOp", true, false, false, false, false, false, false, false, false, false, false, Attribute::None, },
|
|
|
-
|
|
|
- // Pixel shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::AttributeAtVertex, "AttributeAtVertex", OCC::AttributeAtVertex, "attributeAtVertex", false, true, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Graphics shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::ViewID, "ViewID", OCC::ViewID, "viewID", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Resources void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::RawBufferLoad, "RawBufferLoad", OCC::RawBufferLoad, "rawBufferLoad", false, true, true, true, false, false, true, true, true, false, false, Attribute::ReadOnly, },
|
|
|
- { OC::RawBufferStore, "RawBufferStore", OCC::RawBufferStore, "rawBufferStore", false, true, true, true, false, false, true, true, true, false, false, Attribute::None, },
|
|
|
-
|
|
|
- // Raytracing object space uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::InstanceID, "InstanceID", OCC::InstanceID, "instanceID", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::InstanceIndex, "InstanceIndex", OCC::InstanceIndex, "instanceIndex", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Raytracing hit uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::HitKind, "HitKind", OCC::HitKind, "hitKind", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Raytracing uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::RayFlags, "RayFlags", OCC::RayFlags, "rayFlags", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Ray Dispatch Arguments void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::DispatchRaysIndex, "DispatchRaysIndex", OCC::DispatchRaysIndex, "dispatchRaysIndex", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::DispatchRaysDimensions, "DispatchRaysDimensions", OCC::DispatchRaysDimensions, "dispatchRaysDimensions", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Ray Vectors void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::WorldRayOrigin, "WorldRayOrigin", OCC::WorldRayOrigin, "worldRayOrigin", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::WorldRayDirection, "WorldRayDirection", OCC::WorldRayDirection, "worldRayDirection", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Ray object space Vectors void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::ObjectRayOrigin, "ObjectRayOrigin", OCC::ObjectRayOrigin, "objectRayOrigin", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::ObjectRayDirection, "ObjectRayDirection", OCC::ObjectRayDirection, "objectRayDirection", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Ray Transforms void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::ObjectToWorld, "ObjectToWorld", OCC::ObjectToWorld, "objectToWorld", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::WorldToObject, "WorldToObject", OCC::WorldToObject, "worldToObject", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // RayT void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::RayTMin, "RayTMin", OCC::RayTMin, "rayTMin", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadNone, },
|
|
|
- { OC::RayTCurrent, "RayTCurrent", OCC::RayTCurrent, "rayTCurrent", false, false, true, false, false, false, false, false, false, false, false, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // AnyHit Terminals void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::IgnoreHit, "IgnoreHit", OCC::IgnoreHit, "ignoreHit", true, false, false, false, false, false, false, false, false, false, false, Attribute::NoReturn, },
|
|
|
- { OC::AcceptHitAndEndSearch, "AcceptHitAndEndSearch", OCC::AcceptHitAndEndSearch, "acceptHitAndEndSearch", true, false, false, false, false, false, false, false, false, false, false, Attribute::NoReturn, },
|
|
|
-
|
|
|
- // Indirect Shader Invocation void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::TraceRay, "TraceRay", OCC::TraceRay, "traceRay", false, false, false, false, false, false, false, false, false, true, false, Attribute::None, },
|
|
|
- { OC::ReportHit, "ReportHit", OCC::ReportHit, "reportHit", false, false, false, false, false, false, false, false, false, true, false, Attribute::None, },
|
|
|
- { OC::CallShader, "CallShader", OCC::CallShader, "callShader", false, false, false, false, false, false, false, false, false, true, false, Attribute::None, },
|
|
|
-
|
|
|
- // Library create handle from resource struct (like HL intrinsic) void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::CreateHandleForLib, "CreateHandleForLib", OCC::CreateHandleForLib, "createHandleForLib", false, false, false, false, false, false, false, false, false, false, true, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Raytracing object space uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj, function attribute
|
|
|
- { OC::PrimitiveIndex, "PrimitiveIndex", OCC::PrimitiveIndex, "primitiveIndex", false, false, false, false, false, false, false, true, false, false, false, Attribute::ReadNone, },
|
|
|
+ // Temporary, indexable, input, output registers void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::TempRegLoad, "TempRegLoad", OCC::TempRegLoad, "tempRegLoad", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::TempRegStore, "TempRegStore", OCC::TempRegStore, "tempRegStore", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::None, },
|
|
|
+ { OC::MinPrecXRegLoad, "MinPrecXRegLoad", OCC::MinPrecXRegLoad, "minPrecXRegLoad", { false, true, false, false, false, false, true, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::MinPrecXRegStore, "MinPrecXRegStore", OCC::MinPrecXRegStore, "minPrecXRegStore", { false, true, false, false, false, false, true, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::LoadInput, "LoadInput", OCC::LoadInput, "loadInput", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::StoreOutput, "StoreOutput", OCC::StoreOutput, "storeOutput", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::None, },
|
|
|
+
|
|
|
+ // Unary float void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::FAbs, "FAbs", OCC::Unary, "unary", { false, true, true, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Saturate, "Saturate", OCC::Unary, "unary", { false, true, true, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::IsNaN, "IsNaN", OCC::IsSpecialFloat, "isSpecialFloat", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::IsInf, "IsInf", OCC::IsSpecialFloat, "isSpecialFloat", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::IsFinite, "IsFinite", OCC::IsSpecialFloat, "isSpecialFloat", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::IsNormal, "IsNormal", OCC::IsSpecialFloat, "isSpecialFloat", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Cos, "Cos", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Sin, "Sin", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Tan, "Tan", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Acos, "Acos", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Asin, "Asin", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Atan, "Atan", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Hcos, "Hcos", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Hsin, "Hsin", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Htan, "Htan", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Exp, "Exp", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Frc, "Frc", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Log, "Log", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Sqrt, "Sqrt", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Rsqrt, "Rsqrt", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Unary float - rounding void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Round_ne, "Round_ne", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Round_ni, "Round_ni", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Round_pi, "Round_pi", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Round_z, "Round_z", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Unary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Bfrev, "Bfrev", OCC::Unary, "unary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Countbits, "Countbits", OCC::UnaryBits, "unaryBits", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::FirstbitLo, "FirstbitLo", OCC::UnaryBits, "unaryBits", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Unary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::FirstbitHi, "FirstbitHi", OCC::UnaryBits, "unaryBits", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Unary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::FirstbitSHi, "FirstbitSHi", OCC::UnaryBits, "unaryBits", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Binary float void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::FMax, "FMax", OCC::Binary, "binary", { false, true, true, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::FMin, "FMin", OCC::Binary, "binary", { false, true, true, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Binary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::IMax, "IMax", OCC::Binary, "binary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::IMin, "IMin", OCC::Binary, "binary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Binary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::UMax, "UMax", OCC::Binary, "binary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::UMin, "UMin", OCC::Binary, "binary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Binary int with two outputs void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::IMul, "IMul", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Binary uint with two outputs void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::UMul, "UMul", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::UDiv, "UDiv", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Binary uint with carry or borrow void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::UAddc, "UAddc", OCC::BinaryWithCarryOrBorrow, "binaryWithCarryOrBorrow", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::USubb, "USubb", OCC::BinaryWithCarryOrBorrow, "binaryWithCarryOrBorrow", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Tertiary float void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::FMad, "FMad", OCC::Tertiary, "tertiary", { false, true, true, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Fma, "Fma", OCC::Tertiary, "tertiary", { false, false, false, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Tertiary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::IMad, "IMad", OCC::Tertiary, "tertiary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Tertiary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::UMad, "UMad", OCC::Tertiary, "tertiary", { false, false, false, false, false, false, true, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Tertiary int void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Msad, "Msad", OCC::Tertiary, "tertiary", { false, false, false, false, false, false, false, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Ibfe, "Ibfe", OCC::Tertiary, "tertiary", { false, false, false, false, false, false, false, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Tertiary uint void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Ubfe, "Ubfe", OCC::Tertiary, "tertiary", { false, false, false, false, false, false, false, true, true, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Quaternary void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Bfi, "Bfi", OCC::Quaternary, "quaternary", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Dot void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Dot2, "Dot2", OCC::Dot2, "dot2", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Dot3, "Dot3", OCC::Dot3, "dot3", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Dot4, "Dot4", OCC::Dot4, "dot4", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Resources void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::CreateHandle, "CreateHandle", OCC::CreateHandle, "createHandle", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::CBufferLoad, "CBufferLoad", OCC::CBufferLoad, "cbufferLoad", { false, true, true, true, false, true, true, true, true, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::CBufferLoadLegacy, "CBufferLoadLegacy", OCC::CBufferLoadLegacy, "cbufferLoadLegacy", { false, true, true, true, false, false, true, true, true, false, false}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // Resources - sample void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Sample, "Sample", OCC::Sample, "sample", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::SampleBias, "SampleBias", OCC::SampleBias, "sampleBias", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::SampleLevel, "SampleLevel", OCC::SampleLevel, "sampleLevel", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::SampleGrad, "SampleGrad", OCC::SampleGrad, "sampleGrad", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::SampleCmp, "SampleCmp", OCC::SampleCmp, "sampleCmp", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::SampleCmpLevelZero, "SampleCmpLevelZero", OCC::SampleCmpLevelZero, "sampleCmpLevelZero", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // Resources void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::TextureLoad, "TextureLoad", OCC::TextureLoad, "textureLoad", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::TextureStore, "TextureStore", OCC::TextureStore, "textureStore", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::None, },
|
|
|
+ { OC::BufferLoad, "BufferLoad", OCC::BufferLoad, "bufferLoad", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::BufferStore, "BufferStore", OCC::BufferStore, "bufferStore", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::None, },
|
|
|
+ { OC::BufferUpdateCounter, "BufferUpdateCounter", OCC::BufferUpdateCounter, "bufferUpdateCounter", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::CheckAccessFullyMapped, "CheckAccessFullyMapped", OCC::CheckAccessFullyMapped, "checkAccessFullyMapped", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::GetDimensions, "GetDimensions", OCC::GetDimensions, "getDimensions", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // Resources - gather void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::TextureGather, "TextureGather", OCC::TextureGather, "textureGather", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::TextureGatherCmp, "TextureGatherCmp", OCC::TextureGatherCmp, "textureGatherCmp", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // Resources - sample void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::Texture2DMSGetSamplePosition, "Texture2DMSGetSamplePosition", OCC::Texture2DMSGetSamplePosition, "texture2DMSGetSamplePosition", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::RenderTargetGetSamplePosition, "RenderTargetGetSamplePosition", OCC::RenderTargetGetSamplePosition, "renderTargetGetSamplePosition", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::RenderTargetGetSampleCount, "RenderTargetGetSampleCount", OCC::RenderTargetGetSampleCount, "renderTargetGetSampleCount", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // Synchronization void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::AtomicBinOp, "AtomicBinOp", OCC::AtomicBinOp, "atomicBinOp", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::None, },
|
|
|
+ { OC::AtomicCompareExchange, "AtomicCompareExchange", OCC::AtomicCompareExchange, "atomicCompareExchange", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::None, },
|
|
|
+ { OC::Barrier, "Barrier", OCC::Barrier, "barrier", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::NoDuplicate, },
|
|
|
+
|
|
|
+ // Pixel shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::CalculateLOD, "CalculateLOD", OCC::CalculateLOD, "calculateLOD", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::Discard, "Discard", OCC::Discard, "discard", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::DerivCoarseX, "DerivCoarseX", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::DerivCoarseY, "DerivCoarseY", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::DerivFineX, "DerivFineX", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::DerivFineY, "DerivFineY", OCC::Unary, "unary", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::EvalSnapped, "EvalSnapped", OCC::EvalSnapped, "evalSnapped", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::EvalSampleIndex, "EvalSampleIndex", OCC::EvalSampleIndex, "evalSampleIndex", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::EvalCentroid, "EvalCentroid", OCC::EvalCentroid, "evalCentroid", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::SampleIndex, "SampleIndex", OCC::SampleIndex, "sampleIndex", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::Coverage, "Coverage", OCC::Coverage, "coverage", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::InnerCoverage, "InnerCoverage", OCC::InnerCoverage, "innerCoverage", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Compute shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::ThreadId, "ThreadId", OCC::ThreadId, "threadId", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::GroupId, "GroupId", OCC::GroupId, "groupId", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::ThreadIdInGroup, "ThreadIdInGroup", OCC::ThreadIdInGroup, "threadIdInGroup", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::FlattenedThreadIdInGroup, "FlattenedThreadIdInGroup", OCC::FlattenedThreadIdInGroup, "flattenedThreadIdInGroup", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Geometry shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::EmitStream, "EmitStream", OCC::EmitStream, "emitStream", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::CutStream, "CutStream", OCC::CutStream, "cutStream", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::EmitThenCutStream, "EmitThenCutStream", OCC::EmitThenCutStream, "emitThenCutStream", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::GSInstanceID, "GSInstanceID", OCC::GSInstanceID, "gsInstanceID", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Double precision void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::MakeDouble, "MakeDouble", OCC::MakeDouble, "makeDouble", { false, false, false, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::SplitDouble, "SplitDouble", OCC::SplitDouble, "splitDouble", { false, false, false, true, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Domain and hull shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::LoadOutputControlPoint, "LoadOutputControlPoint", OCC::LoadOutputControlPoint, "loadOutputControlPoint", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::LoadPatchConstant, "LoadPatchConstant", OCC::LoadPatchConstant, "loadPatchConstant", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Domain shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::DomainLocation, "DomainLocation", OCC::DomainLocation, "domainLocation", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Hull shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::StorePatchConstant, "StorePatchConstant", OCC::StorePatchConstant, "storePatchConstant", { false, true, true, false, false, false, true, true, false, false, false}, Attribute::None, },
|
|
|
+ { OC::OutputControlPointID, "OutputControlPointID", OCC::OutputControlPointID, "outputControlPointID", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Hull, Domain and Geometry shaders void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::PrimitiveID, "PrimitiveID", OCC::PrimitiveID, "primitiveID", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Other void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::CycleCounterLegacy, "CycleCounterLegacy", OCC::CycleCounterLegacy, "cycleCounterLegacy", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+
|
|
|
+ // Wave void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::WaveIsFirstLane, "WaveIsFirstLane", OCC::WaveIsFirstLane, "waveIsFirstLane", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveGetLaneIndex, "WaveGetLaneIndex", OCC::WaveGetLaneIndex, "waveGetLaneIndex", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::WaveGetLaneCount, "WaveGetLaneCount", OCC::WaveGetLaneCount, "waveGetLaneCount", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::WaveAnyTrue, "WaveAnyTrue", OCC::WaveAnyTrue, "waveAnyTrue", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveAllTrue, "WaveAllTrue", OCC::WaveAllTrue, "waveAllTrue", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveActiveAllEqual, "WaveActiveAllEqual", OCC::WaveActiveAllEqual, "waveActiveAllEqual", { false, true, true, true, true, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveActiveBallot, "WaveActiveBallot", OCC::WaveActiveBallot, "waveActiveBallot", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveReadLaneAt, "WaveReadLaneAt", OCC::WaveReadLaneAt, "waveReadLaneAt", { false, true, true, true, true, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveReadLaneFirst, "WaveReadLaneFirst", OCC::WaveReadLaneFirst, "waveReadLaneFirst", { false, true, true, false, true, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveActiveOp, "WaveActiveOp", OCC::WaveActiveOp, "waveActiveOp", { false, true, true, true, true, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::WaveActiveBit, "WaveActiveBit", OCC::WaveActiveBit, "waveActiveBit", { false, false, false, false, false, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::WavePrefixOp, "WavePrefixOp", OCC::WavePrefixOp, "wavePrefixOp", { false, true, true, true, false, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::QuadReadLaneAt, "QuadReadLaneAt", OCC::QuadReadLaneAt, "quadReadLaneAt", { false, true, true, true, true, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+ { OC::QuadOp, "QuadOp", OCC::QuadOp, "quadOp", { false, true, true, true, false, true, true, true, true, false, false}, Attribute::None, },
|
|
|
+
|
|
|
+ // Bitcasts with different sizes void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::BitcastI16toF16, "BitcastI16toF16", OCC::BitcastI16toF16, "bitcastI16toF16", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::BitcastF16toI16, "BitcastF16toI16", OCC::BitcastF16toI16, "bitcastF16toI16", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::BitcastI32toF32, "BitcastI32toF32", OCC::BitcastI32toF32, "bitcastI32toF32", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::BitcastF32toI32, "BitcastF32toI32", OCC::BitcastF32toI32, "bitcastF32toI32", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::BitcastI64toF64, "BitcastI64toF64", OCC::BitcastI64toF64, "bitcastI64toF64", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::BitcastF64toI64, "BitcastF64toI64", OCC::BitcastF64toI64, "bitcastF64toI64", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Legacy floating-point void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::LegacyF32ToF16, "LegacyF32ToF16", OCC::LegacyF32ToF16, "legacyF32ToF16", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::LegacyF16ToF32, "LegacyF16ToF32", OCC::LegacyF16ToF32, "legacyF16ToF32", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Double precision void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::LegacyDoubleToFloat, "LegacyDoubleToFloat", OCC::LegacyDoubleToFloat, "legacyDoubleToFloat", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::LegacyDoubleToSInt32, "LegacyDoubleToSInt32", OCC::LegacyDoubleToSInt32, "legacyDoubleToSInt32", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::LegacyDoubleToUInt32, "LegacyDoubleToUInt32", OCC::LegacyDoubleToUInt32, "legacyDoubleToUInt32", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Wave void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::WaveAllBitCount, "WaveAllBitCount", OCC::WaveAllOp, "waveAllOp", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+ { OC::WavePrefixBitCount, "WavePrefixBitCount", OCC::WavePrefixOp, "wavePrefixOp", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
+
|
|
|
+ // Pixel shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::AttributeAtVertex, "AttributeAtVertex", OCC::AttributeAtVertex, "attributeAtVertex", { false, true, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Graphics shader void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::ViewID, "ViewID", OCC::ViewID, "viewID", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Resources void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::RawBufferLoad, "RawBufferLoad", OCC::RawBufferLoad, "rawBufferLoad", { false, true, true, true, false, false, true, true, true, false, false}, Attribute::ReadOnly, },
|
|
|
+ { OC::RawBufferStore, "RawBufferStore", OCC::RawBufferStore, "rawBufferStore", { false, true, true, true, false, false, true, true, true, false, false}, Attribute::None, },
|
|
|
+
|
|
|
+ // Raytracing object space uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::InstanceID, "InstanceID", OCC::InstanceID, "instanceID", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::InstanceIndex, "InstanceIndex", OCC::InstanceIndex, "instanceIndex", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Raytracing hit uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::HitKind, "HitKind", OCC::HitKind, "hitKind", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Raytracing uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::RayFlags, "RayFlags", OCC::RayFlags, "rayFlags", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Ray Dispatch Arguments void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::DispatchRaysIndex, "DispatchRaysIndex", OCC::DispatchRaysIndex, "dispatchRaysIndex", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::DispatchRaysDimensions, "DispatchRaysDimensions", OCC::DispatchRaysDimensions, "dispatchRaysDimensions", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Ray Vectors void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::WorldRayOrigin, "WorldRayOrigin", OCC::WorldRayOrigin, "worldRayOrigin", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::WorldRayDirection, "WorldRayDirection", OCC::WorldRayDirection, "worldRayDirection", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Ray object space Vectors void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::ObjectRayOrigin, "ObjectRayOrigin", OCC::ObjectRayOrigin, "objectRayOrigin", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::ObjectRayDirection, "ObjectRayDirection", OCC::ObjectRayDirection, "objectRayDirection", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // Ray Transforms void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::ObjectToWorld, "ObjectToWorld", OCC::ObjectToWorld, "objectToWorld", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::WorldToObject, "WorldToObject", OCC::WorldToObject, "worldToObject", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+
|
|
|
+ // RayT void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::RayTMin, "RayTMin", OCC::RayTMin, "rayTMin", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
+ { OC::RayTCurrent, "RayTCurrent", OCC::RayTCurrent, "rayTCurrent", { false, false, true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // AnyHit Terminals void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::IgnoreHit, "IgnoreHit", OCC::IgnoreHit, "ignoreHit", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::NoReturn, },
|
|
|
+ { OC::AcceptHitAndEndSearch, "AcceptHitAndEndSearch", OCC::AcceptHitAndEndSearch, "acceptHitAndEndSearch", { true, false, false, false, false, false, false, false, false, false, false}, Attribute::NoReturn, },
|
|
|
+
|
|
|
+ // Indirect Shader Invocation void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::TraceRay, "TraceRay", OCC::TraceRay, "traceRay", { false, false, false, false, false, false, false, false, false, true, false}, Attribute::None, },
|
|
|
+ { OC::ReportHit, "ReportHit", OCC::ReportHit, "reportHit", { false, false, false, false, false, false, false, false, false, true, false}, Attribute::None, },
|
|
|
+ { OC::CallShader, "CallShader", OCC::CallShader, "callShader", { false, false, false, false, false, false, false, false, false, true, false}, Attribute::None, },
|
|
|
+
|
|
|
+ // Library create handle from resource struct (like HL intrinsic) void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::CreateHandleForLib, "CreateHandleForLib", OCC::CreateHandleForLib, "createHandleForLib", { false, false, false, false, false, false, false, false, false, false, true}, Attribute::ReadOnly, },
|
|
|
+
|
|
|
+ // Raytracing object space uint System Values void, h, f, d, i1, i8, i16, i32, i64, udt, obj , function attribute
|
|
|
+ { OC::PrimitiveIndex, "PrimitiveIndex", OCC::PrimitiveIndex, "primitiveIndex", { false, false, false, false, false, false, false, true, false, false, false}, Attribute::ReadNone, },
|
|
|
};
|
|
|
// OPCODE-OLOADS:END
|
|
|
|
|
@@ -387,9 +387,9 @@ llvm::StringRef OP::GetTypeName(Type *Ty, std::string &str) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const char *OP::GetOpCodeName(OpCode OpCode) {
|
|
|
- DXASSERT(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
- return m_OpCodeProps[(unsigned)OpCode].pOpCodeName;
|
|
|
+const char *OP::GetOpCodeName(OpCode opCode) {
|
|
|
+ DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
+ return m_OpCodeProps[(unsigned)opCode].pOpCodeName;
|
|
|
}
|
|
|
|
|
|
const char *OP::GetAtomicOpName(DXIL::AtomicBinOpCode OpCode) {
|
|
@@ -398,25 +398,25 @@ const char *OP::GetAtomicOpName(DXIL::AtomicBinOpCode OpCode) {
|
|
|
return AtomicBinOpCodeName[static_cast<unsigned>(OpCode)];
|
|
|
}
|
|
|
|
|
|
-OP::OpCodeClass OP::GetOpCodeClass(OpCode OpCode) {
|
|
|
- DXASSERT(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
- return m_OpCodeProps[(unsigned)OpCode].OpCodeClass;
|
|
|
+OP::OpCodeClass OP::GetOpCodeClass(OpCode opCode) {
|
|
|
+ DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
+ return m_OpCodeProps[(unsigned)opCode].opCodeClass;
|
|
|
}
|
|
|
|
|
|
-const char *OP::GetOpCodeClassName(OpCode OpCode) {
|
|
|
- DXASSERT(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
- return m_OpCodeProps[(unsigned)OpCode].pOpCodeClassName;
|
|
|
+const char *OP::GetOpCodeClassName(OpCode opCode) {
|
|
|
+ DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
+ return m_OpCodeProps[(unsigned)opCode].pOpCodeClassName;
|
|
|
}
|
|
|
|
|
|
-bool OP::IsOverloadLegal(OpCode OpCode, Type *pType) {
|
|
|
- DXASSERT(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
+bool OP::IsOverloadLegal(OpCode opCode, Type *pType) {
|
|
|
+ DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes, "otherwise caller passed OOB index");
|
|
|
unsigned TypeSlot = GetTypeSlot(pType);
|
|
|
- return TypeSlot != UINT_MAX && m_OpCodeProps[(unsigned)OpCode].bAllowOverload[TypeSlot];
|
|
|
+ return TypeSlot != UINT_MAX && m_OpCodeProps[(unsigned)opCode].bAllowOverload[TypeSlot];
|
|
|
}
|
|
|
|
|
|
bool OP::CheckOpCodeTable() {
|
|
|
for (unsigned i = 0; i < (unsigned)OpCode::NumOpCodes; i++) {
|
|
|
- if ((unsigned)m_OpCodeProps[i].OpCode != i)
|
|
|
+ if ((unsigned)m_OpCodeProps[i].opCode != i)
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -494,7 +494,7 @@ bool OP::IsDxilOpWave(OpCode C) {
|
|
|
// WaveReadLaneFirst=118, WaveActiveOp=119, WaveActiveBit=120,
|
|
|
// WavePrefixOp=121, QuadReadLaneAt=122, QuadOp=123, WaveAllBitCount=135,
|
|
|
// WavePrefixBitCount=136
|
|
|
- return 110 <= op && op <= 123 || 135 <= op && op <= 136;
|
|
|
+ return (110 <= op && op <= 123) || (135 <= op && op <= 136);
|
|
|
// OPCODE-WAVE:END
|
|
|
}
|
|
|
|
|
@@ -505,7 +505,7 @@ bool OP::IsDxilOpGradient(OpCode C) {
|
|
|
// Instructions: Sample=60, SampleBias=61, SampleCmp=64, TextureGather=73,
|
|
|
// TextureGatherCmp=74, CalculateLOD=81, DerivCoarseX=83, DerivCoarseY=84,
|
|
|
// DerivFineX=85, DerivFineY=86
|
|
|
- return 60 <= op && op <= 61 || op == 64 || 73 <= op && op <= 74 || op == 81 || 83 <= op && op <= 86;
|
|
|
+ return (60 <= op && op <= 61) || op == 64 || (73 <= op && op <= 74) || op == 81 || (83 <= op && op <= 86);
|
|
|
// OPCODE-GRADIENT:END
|
|
|
}
|
|
|
|
|
@@ -521,7 +521,7 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
// OPCODE-SMMASK:BEGIN
|
|
|
// Instructions: ThreadId=93, GroupId=94, ThreadIdInGroup=95,
|
|
|
// FlattenedThreadIdInGroup=96
|
|
|
- if (93 <= op && op <= 96) {
|
|
|
+ if ((93 <= op && op <= 96)) {
|
|
|
mask = SFLAG(Compute);
|
|
|
return;
|
|
|
}
|
|
@@ -531,13 +531,13 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: LoadOutputControlPoint=103, LoadPatchConstant=104
|
|
|
- if (103 <= op && op <= 104) {
|
|
|
+ if ((103 <= op && op <= 104)) {
|
|
|
mask = SFLAG(Domain) | SFLAG(Hull);
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: EmitStream=97, CutStream=98, EmitThenCutStream=99,
|
|
|
// GSInstanceID=100
|
|
|
- if (97 <= op && op <= 100) {
|
|
|
+ if ((97 <= op && op <= 100)) {
|
|
|
mask = SFLAG(Geometry);
|
|
|
return;
|
|
|
}
|
|
@@ -547,13 +547,13 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: StorePatchConstant=106, OutputControlPointID=107
|
|
|
- if (106 <= op && op <= 107) {
|
|
|
+ if ((106 <= op && op <= 107)) {
|
|
|
mask = SFLAG(Hull);
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: Sample=60, SampleBias=61, SampleCmp=64, CalculateLOD=81,
|
|
|
// DerivCoarseX=83, DerivCoarseY=84, DerivFineX=85, DerivFineY=86
|
|
|
- if (60 <= op && op <= 61 || op == 64 || op == 81 || 83 <= op && op <= 86) {
|
|
|
+ if ((60 <= op && op <= 61) || op == 64 || op == 81 || (83 <= op && op <= 86)) {
|
|
|
mask = SFLAG(Library) | SFLAG(Pixel);
|
|
|
return;
|
|
|
}
|
|
@@ -561,7 +561,7 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
// RenderTargetGetSampleCount=77, Discard=82, EvalSnapped=87,
|
|
|
// EvalSampleIndex=88, EvalCentroid=89, SampleIndex=90, Coverage=91,
|
|
|
// InnerCoverage=92
|
|
|
- if (76 <= op && op <= 77 || op == 82 || 87 <= op && op <= 92) {
|
|
|
+ if ((76 <= op && op <= 77) || op == 82 || (87 <= op && op <= 92)) {
|
|
|
mask = SFLAG(Pixel);
|
|
|
return;
|
|
|
}
|
|
@@ -578,7 +578,7 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: RawBufferLoad=139, RawBufferStore=140
|
|
|
- if (139 <= op && op <= 140) {
|
|
|
+ if ((139 <= op && op <= 140)) {
|
|
|
if (bWithTranslation) {
|
|
|
major = 6; minor = 0;
|
|
|
} else {
|
|
@@ -587,7 +587,7 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: IgnoreHit=155, AcceptHitAndEndSearch=156
|
|
|
- if (155 <= op && op <= 156) {
|
|
|
+ if ((155 <= op && op <= 156)) {
|
|
|
major = 6; minor = 3;
|
|
|
mask = SFLAG(Library) | SFLAG(AnyHit);
|
|
|
return;
|
|
@@ -607,14 +607,14 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
// Instructions: InstanceID=141, InstanceIndex=142, HitKind=143,
|
|
|
// ObjectRayOrigin=149, ObjectRayDirection=150, ObjectToWorld=151,
|
|
|
// WorldToObject=152, PrimitiveIndex=161
|
|
|
- if (141 <= op && op <= 143 || 149 <= op && op <= 152 || op == 161) {
|
|
|
+ if ((141 <= op && op <= 143) || (149 <= op && op <= 152) || op == 161) {
|
|
|
major = 6; minor = 3;
|
|
|
mask = SFLAG(Library) | SFLAG(Intersection) | SFLAG(AnyHit) | SFLAG(ClosestHit);
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: RayFlags=144, WorldRayOrigin=147, WorldRayDirection=148,
|
|
|
// RayTMin=153, RayTCurrent=154
|
|
|
- if (op == 144 || 147 <= op && op <= 148 || 153 <= op && op <= 154) {
|
|
|
+ if (op == 144 || (147 <= op && op <= 148) || (153 <= op && op <= 154)) {
|
|
|
major = 6; minor = 3;
|
|
|
mask = SFLAG(Library) | SFLAG(Intersection) | SFLAG(AnyHit) | SFLAG(ClosestHit) | SFLAG(Miss);
|
|
|
return;
|
|
@@ -626,7 +626,7 @@ void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
return;
|
|
|
}
|
|
|
// Instructions: DispatchRaysIndex=145, DispatchRaysDimensions=146
|
|
|
- if (145 <= op && op <= 146) {
|
|
|
+ if ((145 <= op && op <= 146)) {
|
|
|
major = 6; minor = 3;
|
|
|
mask = SFLAG(Library) | SFLAG(RayGeneration) | SFLAG(Intersection) | SFLAG(AnyHit) | SFLAG(ClosestHit) | SFLAG(Miss) | SFLAG(Callable);
|
|
|
return;
|
|
@@ -696,7 +696,7 @@ void OP::RefreshCache() {
|
|
|
OpCode OpCode = OP::GetDxilOpFuncCallInst(CI);
|
|
|
Type *pOverloadType = OP::GetOverloadType(OpCode, &F);
|
|
|
Function *OpFunc = GetOpFunc(OpCode, pOverloadType);
|
|
|
- (OpFunc);
|
|
|
+ (void)(OpFunc);
|
|
|
DXASSERT_NOMSG(OpFunc == &F);
|
|
|
}
|
|
|
}
|
|
@@ -707,11 +707,11 @@ void OP::UpdateCache(OpCodeClass opClass, Type * Ty, llvm::Function *F) {
|
|
|
m_FunctionToOpClass[F] = opClass;
|
|
|
}
|
|
|
|
|
|
-Function *OP::GetOpFunc(OpCode OpCode, Type *pOverloadType) {
|
|
|
- DXASSERT(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes, "otherwise caller passed OOB OpCode");
|
|
|
- _Analysis_assume_(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes);
|
|
|
- DXASSERT(IsOverloadLegal(OpCode, pOverloadType), "otherwise the caller requested illegal operation overload (eg HLSL function with unsupported types for mapped intrinsic function)");
|
|
|
- OpCodeClass opClass = m_OpCodeProps[(unsigned)OpCode].OpCodeClass;
|
|
|
+Function *OP::GetOpFunc(OpCode opCode, Type *pOverloadType) {
|
|
|
+ DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes, "otherwise caller passed OOB OpCode");
|
|
|
+ _Analysis_assume_(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes);
|
|
|
+ DXASSERT(IsOverloadLegal(opCode, pOverloadType), "otherwise the caller requested illegal operation overload (eg HLSL function with unsupported types for mapped intrinsic function)");
|
|
|
+ OpCodeClass opClass = m_OpCodeProps[(unsigned)opCode].opCodeClass;
|
|
|
Function *&F = m_OpCodeClassCache[(unsigned)opClass].pOverloads[pOverloadType];
|
|
|
if (F != nullptr) {
|
|
|
UpdateCache(opClass, pOverloadType, F);
|
|
@@ -728,8 +728,8 @@ Function *OP::GetOpFunc(OpCode OpCode, Type *pOverloadType) {
|
|
|
Type *pI8 = Type::getInt8Ty(m_Ctx);
|
|
|
Type *pI16 = Type::getInt16Ty(m_Ctx);
|
|
|
Type *pI32 = Type::getInt32Ty(m_Ctx);
|
|
|
- Type *pPI32 = Type::getInt32PtrTy(m_Ctx); (pPI32); // Currently unused.
|
|
|
- Type *pI64 = Type::getInt64Ty(m_Ctx); (pI64); // Currently unused.
|
|
|
+ Type *pPI32 = Type::getInt32PtrTy(m_Ctx); (void)(pPI32); // Currently unused.
|
|
|
+ Type *pI64 = Type::getInt64Ty(m_Ctx); (void)(pI64); // Currently unused.
|
|
|
Type *pF16 = Type::getHalfTy(m_Ctx);
|
|
|
Type *pF32 = Type::getFloatTy(m_Ctx);
|
|
|
Type *pPF32 = Type::getFloatPtrTy(m_Ctx);
|
|
@@ -741,7 +741,7 @@ Function *OP::GetOpFunc(OpCode OpCode, Type *pOverloadType) {
|
|
|
Type *udt = pOverloadType;
|
|
|
Type *obj = pOverloadType;
|
|
|
|
|
|
- std::string funcName = (Twine(OP::m_NamePrefix) + Twine(GetOpCodeClassName(OpCode))).str();
|
|
|
+ std::string funcName = (Twine(OP::m_NamePrefix) + Twine(GetOpCodeClassName(opCode))).str();
|
|
|
// Add ret type to the name.
|
|
|
if (pOverloadType != pV) {
|
|
|
std::string typeName;
|
|
@@ -759,7 +759,7 @@ Function *OP::GetOpFunc(OpCode OpCode, Type *pOverloadType) {
|
|
|
#define CBRT(_y) A(GetCBufferRetType(_y))
|
|
|
|
|
|
/* <py::lines('OPCODE-OLOAD-FUNCS')>hctdb_instrhelp.get_oloads_funcs()</py>*/
|
|
|
- switch (OpCode) { // return OpCode
|
|
|
+ switch (opCode) { // return opCode
|
|
|
// OPCODE-OLOAD-FUNCS:BEGIN
|
|
|
// Temporary, indexable, input, output registers
|
|
|
case OpCode::TempRegLoad: A(pETy); A(pI32); A(pI32); break;
|
|
@@ -1045,19 +1045,19 @@ Function *OP::GetOpFunc(OpCode OpCode, Type *pOverloadType) {
|
|
|
UpdateCache(opClass, pOverloadType, F);
|
|
|
F->setCallingConv(CallingConv::C);
|
|
|
F->addFnAttr(Attribute::NoUnwind);
|
|
|
- if (m_OpCodeProps[(unsigned)OpCode].FuncAttr != Attribute::None)
|
|
|
- F->addFnAttr(m_OpCodeProps[(unsigned)OpCode].FuncAttr);
|
|
|
+ if (m_OpCodeProps[(unsigned)opCode].FuncAttr != Attribute::None)
|
|
|
+ F->addFnAttr(m_OpCodeProps[(unsigned)opCode].FuncAttr);
|
|
|
|
|
|
return F;
|
|
|
}
|
|
|
|
|
|
const SmallDenseMap<llvm::Type *, llvm::Function *, 8> &
|
|
|
-OP::GetOpFuncList(OpCode OpCode) const {
|
|
|
- DXASSERT(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes,
|
|
|
+OP::GetOpFuncList(OpCode opCode) const {
|
|
|
+ DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes,
|
|
|
"otherwise caller passed OOB OpCode");
|
|
|
- _Analysis_assume_(0 <= (unsigned)OpCode && OpCode < OpCode::NumOpCodes);
|
|
|
- return m_OpCodeClassCache[(unsigned)m_OpCodeProps[(unsigned)OpCode]
|
|
|
- .OpCodeClass]
|
|
|
+ _Analysis_assume_(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes);
|
|
|
+ return m_OpCodeClassCache[(unsigned)m_OpCodeProps[(unsigned)opCode]
|
|
|
+ .opCodeClass]
|
|
|
.pOverloads;
|
|
|
}
|
|
|
|
|
@@ -1087,11 +1087,11 @@ bool OP::GetOpCodeClass(const Function *F, OP::OpCodeClass &opClass) {
|
|
|
|
|
|
bool OP::UseMinPrecision() {
|
|
|
if (m_LowPrecisionMode == DXIL::LowPrecisionMode::Undefined) {
|
|
|
- if (&m_pModule->GetDxilModule()) {
|
|
|
+ if (m_pModule->HasDxilModule()) {
|
|
|
m_LowPrecisionMode = m_pModule->GetDxilModule().GetUseMinPrecision() ?
|
|
|
DXIL::LowPrecisionMode::UseMinPrecision : DXIL::LowPrecisionMode::UseNativeLowPrecision;
|
|
|
}
|
|
|
- else if (&m_pModule->GetHLModule()) {
|
|
|
+ else if (m_pModule->HasHLModule()) {
|
|
|
m_LowPrecisionMode = m_pModule->GetHLModule().GetHLOptions().bUseMinPrecision ?
|
|
|
DXIL::LowPrecisionMode::UseMinPrecision : DXIL::LowPrecisionMode::UseNativeLowPrecision;
|
|
|
}
|
|
@@ -1106,12 +1106,12 @@ uint64_t OP::GetAllocSizeForType(llvm::Type *Ty) {
|
|
|
return m_pModule->getDataLayout().getTypeAllocSize(Ty);
|
|
|
}
|
|
|
|
|
|
-llvm::Type *OP::GetOverloadType(OpCode OpCode, llvm::Function *F) {
|
|
|
+llvm::Type *OP::GetOverloadType(OpCode opCode, llvm::Function *F) {
|
|
|
DXASSERT(F, "not work on nullptr");
|
|
|
Type *Ty = F->getReturnType();
|
|
|
FunctionType *FT = F->getFunctionType();
|
|
|
/* <py::lines('OPCODE-OLOAD-TYPES')>hctdb_instrhelp.get_funcs_oload_type()</py>*/
|
|
|
- switch (OpCode) { // return OpCode
|
|
|
+ switch (opCode) { // return OpCode
|
|
|
// OPCODE-OLOAD-TYPES:BEGIN
|
|
|
case OpCode::TempRegStore:
|
|
|
case OpCode::CallShader:
|