|
@@ -41,234 +41,281 @@ import hctdb_instrhelp
|
|
|
/* <py::lines('OPCODE-OLOADS')>hctdb_instrhelp.get_oloads_props()</py>*/
|
|
|
// 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 function attribute
|
|
|
- // Temporary, indexable, input, output registers void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::TempRegLoad, "TempRegLoad", OCC::TempRegLoad, "tempRegLoad", {false, true, true, false, false, false, true, true, false}, Attribute::ReadOnly, },
|
|
|
- { OC::TempRegStore, "TempRegStore", OCC::TempRegStore, "tempRegStore", {false, true, true, false, false, false, true, true, false}, Attribute::None, },
|
|
|
- { OC::MinPrecXRegLoad, "MinPrecXRegLoad", OCC::MinPrecXRegLoad, "minPrecXRegLoad", {false, true, false, false, false, false, true, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::MinPrecXRegStore, "MinPrecXRegStore", OCC::MinPrecXRegStore, "minPrecXRegStore", {false, true, false, false, false, false, true, false, false}, Attribute::None, },
|
|
|
- { OC::LoadInput, "LoadInput", OCC::LoadInput, "loadInput", {false, true, true, false, false, false, true, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::StoreOutput, "StoreOutput", OCC::StoreOutput, "storeOutput", {false, true, true, false, false, false, true, true, false}, Attribute::None, },
|
|
|
-
|
|
|
- // Unary float void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::FAbs, "FAbs", OCC::Unary, "unary", {false, true, true, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Saturate, "Saturate", OCC::Unary, "unary", {false, true, true, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::IsNaN, "IsNaN", OCC::IsSpecialFloat, "isSpecialFloat", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::IsInf, "IsInf", OCC::IsSpecialFloat, "isSpecialFloat", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::IsFinite, "IsFinite", OCC::IsSpecialFloat, "isSpecialFloat", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::IsNormal, "IsNormal", OCC::IsSpecialFloat, "isSpecialFloat", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Cos, "Cos", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Sin, "Sin", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Tan, "Tan", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Acos, "Acos", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Asin, "Asin", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Atan, "Atan", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Hcos, "Hcos", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Hsin, "Hsin", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Htan, "Htan", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Exp, "Exp", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Frc, "Frc", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Log, "Log", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Sqrt, "Sqrt", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Rsqrt, "Rsqrt", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary float - rounding void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Round_ne, "Round_ne", OCC::Unary, "unary", {false, true, true, 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}, Attribute::ReadNone, },
|
|
|
- { OC::Round_pi, "Round_pi", OCC::Unary, "unary", {false, true, true, 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}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary int void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Bfrev, "Bfrev", OCC::Unary, "unary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
- { OC::Countbits, "Countbits", OCC::UnaryBits, "unaryBits", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
- { OC::FirstbitLo, "FirstbitLo", OCC::UnaryBits, "unaryBits", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary uint void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::FirstbitHi, "FirstbitHi", OCC::UnaryBits, "unaryBits", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Unary int void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::FirstbitSHi, "FirstbitSHi", OCC::UnaryBits, "unaryBits", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary float void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::FMax, "FMax", OCC::Binary, "binary", {false, true, true, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::FMin, "FMin", OCC::Binary, "binary", {false, true, true, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary int void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::IMax, "IMax", OCC::Binary, "binary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
- { OC::IMin, "IMin", OCC::Binary, "binary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary uint void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::UMax, "UMax", OCC::Binary, "binary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
- { OC::UMin, "UMin", OCC::Binary, "binary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary int with two outputs void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::IMul, "IMul", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary uint with two outputs void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::UMul, "UMul", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::UDiv, "UDiv", OCC::BinaryWithTwoOuts, "binaryWithTwoOuts", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Binary uint with carry or borrow void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::UAddc, "UAddc", OCC::BinaryWithCarryOrBorrow, "binaryWithCarryOrBorrow", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::USubb, "USubb", OCC::BinaryWithCarryOrBorrow, "binaryWithCarryOrBorrow", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary float void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::FMad, "FMad", OCC::Tertiary, "tertiary", {false, true, true, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Fma, "Fma", OCC::Tertiary, "tertiary", {false, false, false, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary int void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::IMad, "IMad", OCC::Tertiary, "tertiary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary uint void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::UMad, "UMad", OCC::Tertiary, "tertiary", {false, false, false, false, false, false, true, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary int void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Msad, "Msad", OCC::Tertiary, "tertiary", {false, false, false, false, false, false, false, true, true}, Attribute::ReadNone, },
|
|
|
- { OC::Ibfe, "Ibfe", OCC::Tertiary, "tertiary", {false, false, false, false, false, false, false, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Tertiary uint void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Ubfe, "Ubfe", OCC::Tertiary, "tertiary", {false, false, false, false, false, false, false, true, true}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Quaternary void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Bfi, "Bfi", OCC::Quaternary, "quaternary", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Dot void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Dot2, "Dot2", OCC::Dot2, "dot2", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Dot3, "Dot3", OCC::Dot3, "dot3", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::Dot4, "Dot4", OCC::Dot4, "dot4", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Resources void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::CreateHandle, "CreateHandle", OCC::CreateHandle, "createHandle", { true, 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}, Attribute::ReadOnly, },
|
|
|
- { OC::CBufferLoadLegacy, "CBufferLoadLegacy", OCC::CBufferLoadLegacy, "cbufferLoadLegacy", {false, true, true, true, false, false, true, true, true}, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources - sample void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Sample, "Sample", OCC::Sample, "sample", {false, true, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::SampleBias, "SampleBias", OCC::SampleBias, "sampleBias", {false, true, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::SampleLevel, "SampleLevel", OCC::SampleLevel, "sampleLevel", {false, true, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::SampleGrad, "SampleGrad", OCC::SampleGrad, "sampleGrad", {false, true, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::SampleCmp, "SampleCmp", OCC::SampleCmp, "sampleCmp", {false, true, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::SampleCmpLevelZero, "SampleCmpLevelZero", OCC::SampleCmpLevelZero, "sampleCmpLevelZero", {false, true, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::TextureLoad, "TextureLoad", OCC::TextureLoad, "textureLoad", {false, true, true, false, false, false, true, true, false}, Attribute::ReadOnly, },
|
|
|
- { OC::TextureStore, "TextureStore", OCC::TextureStore, "textureStore", {false, true, true, false, false, false, true, true, false}, Attribute::None, },
|
|
|
- { OC::BufferLoad, "BufferLoad", OCC::BufferLoad, "bufferLoad", {false, true, true, false, false, false, true, true, false}, Attribute::ReadOnly, },
|
|
|
- { OC::BufferStore, "BufferStore", OCC::BufferStore, "bufferStore", {false, true, true, false, false, false, true, true, false}, Attribute::None, },
|
|
|
- { OC::BufferUpdateCounter, "BufferUpdateCounter", OCC::BufferUpdateCounter, "bufferUpdateCounter", { true, 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}, Attribute::ReadOnly, },
|
|
|
- { OC::GetDimensions, "GetDimensions", OCC::GetDimensions, "getDimensions", { true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources - gather void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::TextureGather, "TextureGather", OCC::TextureGather, "textureGather", {false, true, true, false, false, false, true, true, false}, Attribute::ReadOnly, },
|
|
|
- { OC::TextureGatherCmp, "TextureGatherCmp", OCC::TextureGatherCmp, "textureGatherCmp", {false, true, true, false, false, false, true, true, false}, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Resources - sample void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::Texture2DMSGetSamplePosition, "Texture2DMSGetSamplePosition", OCC::Texture2DMSGetSamplePosition, "texture2DMSGetSamplePosition", {true, 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}, Attribute::ReadOnly, },
|
|
|
- { OC::RenderTargetGetSampleCount, "RenderTargetGetSampleCount", OCC::RenderTargetGetSampleCount, "renderTargetGetSampleCount", {true, false, false, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
-
|
|
|
- // Synchronization void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::AtomicBinOp, "AtomicBinOp", OCC::AtomicBinOp, "atomicBinOp", {false, false, false, false, false, false, false, true, false}, Attribute::None, },
|
|
|
- { OC::AtomicCompareExchange, "AtomicCompareExchange", OCC::AtomicCompareExchange, "atomicCompareExchange", {false, false, false, false, false, false, false, true, false}, Attribute::None, },
|
|
|
- { OC::Barrier, "Barrier", OCC::Barrier, "barrier", { true, false, false, false, false, false, false, false, false}, Attribute::NoDuplicate, },
|
|
|
-
|
|
|
- // Pixel shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::CalculateLOD, "CalculateLOD", OCC::CalculateLOD, "calculateLOD", {false, false, true, false, false, false, false, false, false}, Attribute::ReadOnly, },
|
|
|
- { OC::Discard, "Discard", OCC::Discard, "discard", { true, 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}, Attribute::ReadNone, },
|
|
|
- { OC::DerivCoarseY, "DerivCoarseY", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::DerivFineX, "DerivFineX", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::DerivFineY, "DerivFineY", OCC::Unary, "unary", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::EvalSnapped, "EvalSnapped", OCC::EvalSnapped, "evalSnapped", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::EvalSampleIndex, "EvalSampleIndex", OCC::EvalSampleIndex, "evalSampleIndex", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::EvalCentroid, "EvalCentroid", OCC::EvalCentroid, "evalCentroid", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::SampleIndex, "SampleIndex", OCC::SampleIndex, "sampleIndex", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::Coverage, "Coverage", OCC::Coverage, "coverage", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::InnerCoverage, "InnerCoverage", OCC::InnerCoverage, "innerCoverage", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Compute shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::ThreadId, "ThreadId", OCC::ThreadId, "threadId", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::GroupId, "GroupId", OCC::GroupId, "groupId", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::ThreadIdInGroup, "ThreadIdInGroup", OCC::ThreadIdInGroup, "threadIdInGroup", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::FlattenedThreadIdInGroup, "FlattenedThreadIdInGroup", OCC::FlattenedThreadIdInGroup, "flattenedThreadIdInGroup", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Geometry shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::EmitStream, "EmitStream", OCC::EmitStream, "emitStream", { true, 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}, Attribute::None, },
|
|
|
- { OC::EmitThenCutStream, "EmitThenCutStream", OCC::EmitThenCutStream, "emitThenCutStream", { true, 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}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Double precision void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::MakeDouble, "MakeDouble", OCC::MakeDouble, "makeDouble", {false, false, false, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
- { OC::SplitDouble, "SplitDouble", OCC::SplitDouble, "splitDouble", {false, false, false, true, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Domain and hull shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::LoadOutputControlPoint, "LoadOutputControlPoint", OCC::LoadOutputControlPoint, "loadOutputControlPoint", {false, true, true, false, false, false, true, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::LoadPatchConstant, "LoadPatchConstant", OCC::LoadPatchConstant, "loadPatchConstant", {false, true, true, false, false, false, true, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Domain shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::DomainLocation, "DomainLocation", OCC::DomainLocation, "domainLocation", {false, false, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Hull shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::StorePatchConstant, "StorePatchConstant", OCC::StorePatchConstant, "storePatchConstant", {false, true, true, false, false, false, true, true, false}, Attribute::None, },
|
|
|
- { OC::OutputControlPointID, "OutputControlPointID", OCC::OutputControlPointID, "outputControlPointID", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
- { OC::PrimitiveID, "PrimitiveID", OCC::PrimitiveID, "primitiveID", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Other void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::CycleCounterLegacy, "CycleCounterLegacy", OCC::CycleCounterLegacy, "cycleCounterLegacy", { true, false, false, false, false, false, false, false, false}, Attribute::None, },
|
|
|
-
|
|
|
- // Wave void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::WaveIsFirstLane, "WaveIsFirstLane", OCC::WaveIsFirstLane, "waveIsFirstLane", { true, 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}, Attribute::ReadNone, },
|
|
|
- { OC::WaveGetLaneCount, "WaveGetLaneCount", OCC::WaveGetLaneCount, "waveGetLaneCount", { true, 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}, Attribute::None, },
|
|
|
- { OC::WaveAllTrue, "WaveAllTrue", OCC::WaveAllTrue, "waveAllTrue", { true, 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}, Attribute::None, },
|
|
|
- { OC::WaveActiveBallot, "WaveActiveBallot", OCC::WaveActiveBallot, "waveActiveBallot", { true, 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}, Attribute::None, },
|
|
|
- { OC::WaveReadLaneFirst, "WaveReadLaneFirst", OCC::WaveReadLaneFirst, "waveReadLaneFirst", {false, true, true, false, true, true, true, true, true}, Attribute::None, },
|
|
|
- { OC::WaveActiveOp, "WaveActiveOp", OCC::WaveActiveOp, "waveActiveOp", {false, true, true, true, true, true, true, true, true}, Attribute::None, },
|
|
|
- { OC::WaveActiveBit, "WaveActiveBit", OCC::WaveActiveBit, "waveActiveBit", {false, false, false, false, false, true, true, true, true}, Attribute::None, },
|
|
|
- { OC::WavePrefixOp, "WavePrefixOp", OCC::WavePrefixOp, "wavePrefixOp", {false, true, true, true, false, true, true, true, true}, Attribute::None, },
|
|
|
- { OC::QuadReadLaneAt, "QuadReadLaneAt", OCC::QuadReadLaneAt, "quadReadLaneAt", {false, true, true, true, true, true, true, true, true}, Attribute::None, },
|
|
|
- { OC::QuadOp, "QuadOp", OCC::QuadOp, "quadOp", {false, true, true, true, false, true, true, true, true}, Attribute::None, },
|
|
|
-
|
|
|
- // Bitcasts with different sizes void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::BitcastI16toF16, "BitcastI16toF16", OCC::BitcastI16toF16, "bitcastI16toF16", { true, 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}, Attribute::ReadNone, },
|
|
|
- { OC::BitcastI32toF32, "BitcastI32toF32", OCC::BitcastI32toF32, "bitcastI32toF32", { true, 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}, Attribute::ReadNone, },
|
|
|
- { OC::BitcastI64toF64, "BitcastI64toF64", OCC::BitcastI64toF64, "bitcastI64toF64", { true, 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}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Legacy floating-point void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::LegacyF32ToF16, "LegacyF32ToF16", OCC::LegacyF32ToF16, "legacyF32ToF16", { true, 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}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Double precision void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::LegacyDoubleToFloat, "LegacyDoubleToFloat", OCC::LegacyDoubleToFloat, "legacyDoubleToFloat", { true, 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}, Attribute::ReadNone, },
|
|
|
- { OC::LegacyDoubleToUInt32, "LegacyDoubleToUInt32", OCC::LegacyDoubleToUInt32, "legacyDoubleToUInt32", { true, false, false, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Wave void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::WaveAllBitCount, "WaveAllBitCount", OCC::WaveAllOp, "waveAllOp", { true, 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}, Attribute::None, },
|
|
|
-
|
|
|
- // Pixel shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::AttributeAtVertex, "AttributeAtVertex", OCC::AttributeAtVertex, "attributeAtVertex", {false, true, true, false, false, false, false, false, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Graphics shader void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::ViewID, "ViewID", OCC::ViewID, "viewID", {false, false, false, false, false, false, false, true, false}, Attribute::ReadNone, },
|
|
|
-
|
|
|
- // Resources void, h, f, d, i1, i8, i16, i32, i64 function attribute
|
|
|
- { OC::RawBufferLoad, "RawBufferLoad", OCC::RawBufferLoad, "rawBufferLoad", {false, true, true, false, false, false, true, true, false}, Attribute::ReadOnly, },
|
|
|
- { OC::RawBufferStore, "RawBufferStore", OCC::RawBufferStore, "rawBufferStore", {false, true, true, false, false, false, true, true, false}, Attribute::None, },
|
|
|
+// 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, },
|
|
|
};
|
|
|
// OPCODE-OLOADS:END
|
|
|
|
|
|
const char *OP::m_OverloadTypeName[kNumTypeOverloads] = {
|
|
|
- "void", "f16", "f32", "f64", "i1", "i8", "i16", "i32", "i64"
|
|
|
+ "void", "f16", "f32", "f64", "i1", "i8", "i16", "i32", "i64", "udt",
|
|
|
};
|
|
|
|
|
|
const char *OP::m_NamePrefix = "dx.op.";
|
|
@@ -307,6 +354,8 @@ unsigned OP::GetTypeSlot(Type *pType) {
|
|
|
case 64: return 8;
|
|
|
}
|
|
|
}
|
|
|
+ case Type::PointerTyID: return 9;
|
|
|
+ case Type::StructTyID: return 10;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -314,10 +363,30 @@ unsigned OP::GetTypeSlot(Type *pType) {
|
|
|
}
|
|
|
|
|
|
const char *OP::GetOverloadTypeName(unsigned TypeSlot) {
|
|
|
- DXASSERT(TypeSlot < kNumTypeOverloads, "otherwise caller passed OOB index");
|
|
|
+ DXASSERT(TypeSlot < kUserDefineTypeSlot, "otherwise caller passed OOB index");
|
|
|
return m_OverloadTypeName[TypeSlot];
|
|
|
}
|
|
|
|
|
|
+llvm::StringRef OP::GetTypeName(Type *Ty, std::string &str) {
|
|
|
+ unsigned TypeSlot = OP::GetTypeSlot(Ty);
|
|
|
+ if (TypeSlot < kUserDefineTypeSlot) {
|
|
|
+ return GetOverloadTypeName(TypeSlot);
|
|
|
+ } else if (TypeSlot == kUserDefineTypeSlot) {
|
|
|
+ if (Ty->isPointerTy())
|
|
|
+ Ty = Ty->getPointerElementType();
|
|
|
+ StructType *ST = cast<StructType>(Ty);
|
|
|
+ return ST->getStructName();
|
|
|
+ } else if (TypeSlot == kObjectTypeSlot) {
|
|
|
+ StructType *ST = cast<StructType>(Ty);
|
|
|
+ return ST->getStructName();
|
|
|
+ } else {
|
|
|
+ raw_string_ostream os(str);
|
|
|
+ Ty->print(os);
|
|
|
+ os.flush();
|
|
|
+ return 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;
|
|
@@ -440,6 +509,141 @@ bool OP::IsDxilOpGradient(OpCode C) {
|
|
|
// OPCODE-GRADIENT:END
|
|
|
}
|
|
|
|
|
|
+void OP::GetMinShaderModelAndMask(OpCode C, bool bWithTranslation,
|
|
|
+ unsigned &major, unsigned &minor,
|
|
|
+ unsigned &mask) {
|
|
|
+ unsigned op = (unsigned)C;
|
|
|
+ // Default is 6.0, all stages
|
|
|
+ major = 6; minor = 0;
|
|
|
+ mask = ((unsigned)1 << (unsigned)DXIL::ShaderKind::Invalid) - 1;
|
|
|
+#define SFLAG(stage) ((unsigned)1 << (unsigned)DXIL::ShaderKind::stage)
|
|
|
+ /* <py::lines('OPCODE-SMMASK')>hctdb_instrhelp.get_min_sm_and_mask_text()</py>*/
|
|
|
+ // OPCODE-SMMASK:BEGIN
|
|
|
+ // Instructions: ThreadId=93, GroupId=94, ThreadIdInGroup=95,
|
|
|
+ // FlattenedThreadIdInGroup=96
|
|
|
+ if ((93 <= op && op <= 96)) {
|
|
|
+ mask = SFLAG(Compute);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: DomainLocation=105
|
|
|
+ if (op == 105) {
|
|
|
+ mask = SFLAG(Domain);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: LoadOutputControlPoint=103, LoadPatchConstant=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)) {
|
|
|
+ mask = SFLAG(Geometry);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: PrimitiveID=108
|
|
|
+ if (op == 108) {
|
|
|
+ mask = SFLAG(Geometry) | SFLAG(Domain) | SFLAG(Hull);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: StorePatchConstant=106, OutputControlPointID=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)) {
|
|
|
+ mask = SFLAG(Library) | SFLAG(Pixel);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: RenderTargetGetSamplePosition=76,
|
|
|
+ // 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)) {
|
|
|
+ mask = SFLAG(Pixel);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: AttributeAtVertex=137
|
|
|
+ if (op == 137) {
|
|
|
+ major = 6; minor = 1;
|
|
|
+ mask = SFLAG(Pixel);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: ViewID=138
|
|
|
+ if (op == 138) {
|
|
|
+ major = 6; minor = 1;
|
|
|
+ mask = SFLAG(Vertex) | SFLAG(Hull) | SFLAG(Domain) | SFLAG(Geometry) | SFLAG(Pixel);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: RawBufferLoad=139, RawBufferStore=140
|
|
|
+ if ((139 <= op && op <= 140)) {
|
|
|
+ if (bWithTranslation) {
|
|
|
+ major = 6; minor = 0;
|
|
|
+ } else {
|
|
|
+ major = 6; minor = 2;
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: IgnoreHit=155, AcceptHitAndEndSearch=156
|
|
|
+ if ((155 <= op && op <= 156)) {
|
|
|
+ major = 6; minor = 3;
|
|
|
+ mask = SFLAG(AnyHit);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: CallShader=159
|
|
|
+ if (op == 159) {
|
|
|
+ major = 6; minor = 3;
|
|
|
+ mask = SFLAG(Library) | SFLAG(ClosestHit) | SFLAG(RayGeneration) | SFLAG(Miss) | SFLAG(Callable);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: ReportHit=158
|
|
|
+ if (op == 158) {
|
|
|
+ major = 6; minor = 3;
|
|
|
+ mask = SFLAG(Library) | SFLAG(Intersection);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // 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) {
|
|
|
+ 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)) {
|
|
|
+ major = 6; minor = 3;
|
|
|
+ mask = SFLAG(Library) | SFLAG(Intersection) | SFLAG(AnyHit) | SFLAG(ClosestHit) | SFLAG(Miss);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: TraceRay=157
|
|
|
+ if (op == 157) {
|
|
|
+ major = 6; minor = 3;
|
|
|
+ mask = SFLAG(Library) | SFLAG(RayGeneration) | SFLAG(ClosestHit) | SFLAG(Miss);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // Instructions: DispatchRaysIndex=145, DispatchRaysDimensions=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;
|
|
|
+ }
|
|
|
+ // Instructions: CreateHandleForLib=160
|
|
|
+ if (op == 160) {
|
|
|
+ if (bWithTranslation) {
|
|
|
+ major = 6; minor = 0;
|
|
|
+ } else {
|
|
|
+ major = 6; minor = 3;
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // OPCODE-SMMASK:END
|
|
|
+#undef SFLAG
|
|
|
+}
|
|
|
+
|
|
|
static Type *GetOrCreateStructType(LLVMContext &Ctx, ArrayRef<Type*> types, StringRef Name, Module *pModule) {
|
|
|
if (StructType *ST = pModule->getTypeByName(Name)) {
|
|
|
// TODO: validate the exist type match types if needed.
|
|
@@ -498,8 +702,8 @@ void OP::RefreshCache() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void OP::UpdateCache(OpCodeClass opClass, unsigned typeSlot, llvm::Function *F) {
|
|
|
- m_OpCodeClassCache[(unsigned)opClass].pOverloads[typeSlot] = F;
|
|
|
+void OP::UpdateCache(OpCodeClass opClass, Type * Ty, llvm::Function *F) {
|
|
|
+ m_OpCodeClassCache[(unsigned)opClass].pOverloads[Ty] = F;
|
|
|
m_FunctionToOpClass[F] = opClass;
|
|
|
}
|
|
|
|
|
@@ -507,11 +711,10 @@ 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)");
|
|
|
- unsigned TypeSlot = GetTypeSlot(pOverloadType);
|
|
|
OpCodeClass opClass = m_OpCodeProps[(unsigned)opCode].opCodeClass;
|
|
|
- Function *&F = m_OpCodeClassCache[(unsigned)opClass].pOverloads[TypeSlot];
|
|
|
+ Function *&F = m_OpCodeClassCache[(unsigned)opClass].pOverloads[pOverloadType];
|
|
|
if (F != nullptr) {
|
|
|
- UpdateCache(opClass, TypeSlot, F);
|
|
|
+ UpdateCache(opClass, pOverloadType, F);
|
|
|
return F;
|
|
|
}
|
|
|
|
|
@@ -535,16 +738,19 @@ Function *OP::GetOpFunc(OpCode opCode, Type *pOverloadType) {
|
|
|
Type *pF64 = Type::getDoubleTy(m_Ctx);
|
|
|
Type *pSDT = GetSplitDoubleType(); // Split double type.
|
|
|
Type *pI4S = GetInt4Type(); // 4 i32s in a struct.
|
|
|
+ Type *udt = pOverloadType;
|
|
|
+ Type *obj = pOverloadType;
|
|
|
|
|
|
std::string funcName = (Twine(OP::m_NamePrefix) + Twine(GetOpCodeClassName(opCode))).str();
|
|
|
// Add ret type to the name.
|
|
|
if (pOverloadType != pV) {
|
|
|
- funcName = Twine(funcName).concat(".").concat(GetOverloadTypeName(TypeSlot)).str();
|
|
|
+ std::string typeName;
|
|
|
+ funcName = Twine(funcName).concat(".").concat(GetTypeName(pOverloadType, typeName)).str();
|
|
|
}
|
|
|
// Try to find exist function with the same name in the module.
|
|
|
if (Function *existF = m_pModule->getFunction(funcName)) {
|
|
|
F = existF;
|
|
|
- UpdateCache(opClass, TypeSlot, F);
|
|
|
+ UpdateCache(opClass, pOverloadType, F);
|
|
|
return F;
|
|
|
}
|
|
|
|
|
@@ -726,6 +932,8 @@ Function *OP::GetOpFunc(OpCode opCode, Type *pOverloadType) {
|
|
|
// Hull shader
|
|
|
case OpCode::StorePatchConstant: A(pV); A(pI32); A(pI32); A(pI32); A(pI8); A(pETy); break;
|
|
|
case OpCode::OutputControlPointID: A(pI32); A(pI32); break;
|
|
|
+
|
|
|
+ // Hull, Domain and Geometry shaders
|
|
|
case OpCode::PrimitiveID: A(pI32); A(pI32); break;
|
|
|
|
|
|
// Other
|
|
@@ -777,6 +985,51 @@ Function *OP::GetOpFunc(OpCode opCode, Type *pOverloadType) {
|
|
|
// Resources
|
|
|
case OpCode::RawBufferLoad: RRT(pETy); A(pI32); A(pRes); A(pI32); A(pI32); A(pI8); A(pI32); break;
|
|
|
case OpCode::RawBufferStore: A(pV); A(pI32); A(pRes); A(pI32); A(pI32); A(pETy); A(pETy); A(pETy); A(pETy); A(pI8); A(pI32); break;
|
|
|
+
|
|
|
+ // Raytracing object space uint System Values
|
|
|
+ case OpCode::InstanceID: A(pI32); A(pI32); break;
|
|
|
+ case OpCode::InstanceIndex: A(pI32); A(pI32); break;
|
|
|
+
|
|
|
+ // Raytracing hit uint System Values
|
|
|
+ case OpCode::HitKind: A(pI32); A(pI32); break;
|
|
|
+
|
|
|
+ // Raytracing uint System Values
|
|
|
+ case OpCode::RayFlags: A(pI32); A(pI32); break;
|
|
|
+
|
|
|
+ // Ray Dispatch Arguments
|
|
|
+ case OpCode::DispatchRaysIndex: A(pI32); A(pI32); A(pI8); break;
|
|
|
+ case OpCode::DispatchRaysDimensions: A(pI32); A(pI32); A(pI8); break;
|
|
|
+
|
|
|
+ // Ray Vectors
|
|
|
+ case OpCode::WorldRayOrigin: A(pF32); A(pI32); A(pI8); break;
|
|
|
+ case OpCode::WorldRayDirection: A(pF32); A(pI32); A(pI8); break;
|
|
|
+
|
|
|
+ // Ray object space Vectors
|
|
|
+ case OpCode::ObjectRayOrigin: A(pF32); A(pI32); A(pI8); break;
|
|
|
+ case OpCode::ObjectRayDirection: A(pF32); A(pI32); A(pI8); break;
|
|
|
+
|
|
|
+ // Ray Transforms
|
|
|
+ case OpCode::ObjectToWorld: A(pF32); A(pI32); A(pI32); A(pI8); break;
|
|
|
+ case OpCode::WorldToObject: A(pF32); A(pI32); A(pI32); A(pI8); break;
|
|
|
+
|
|
|
+ // RayT
|
|
|
+ case OpCode::RayTMin: A(pF32); A(pI32); break;
|
|
|
+ case OpCode::RayTCurrent: A(pF32); A(pI32); break;
|
|
|
+
|
|
|
+ // AnyHit Terminals
|
|
|
+ case OpCode::IgnoreHit: A(pV); A(pI32); break;
|
|
|
+ case OpCode::AcceptHitAndEndSearch: A(pV); A(pI32); break;
|
|
|
+
|
|
|
+ // Indirect Shader Invocation
|
|
|
+ case OpCode::TraceRay: A(pV); A(pI32); A(pRes); A(pI32); A(pI32); A(pI32); A(pI32); A(pI32); A(pF32); A(pF32); A(pF32); A(pF32); A(pF32); A(pF32); A(pF32); A(pF32); A(udt); break;
|
|
|
+ case OpCode::ReportHit: A(pI1); A(pI32); A(pF32); A(pI32); A(udt); break;
|
|
|
+ case OpCode::CallShader: A(pV); A(pI32); A(pI32); A(udt); break;
|
|
|
+
|
|
|
+ // Library create handle from resource struct (like HL intrinsic)
|
|
|
+ case OpCode::CreateHandleForLib: A(pRes); A(pI32); A(obj); break;
|
|
|
+
|
|
|
+ // Raytracing object space uint System Values
|
|
|
+ case OpCode::PrimitiveIndex: A(pI32); A(pI32); break;
|
|
|
// OPCODE-OLOAD-FUNCS:END
|
|
|
default: DXASSERT(false, "otherwise unhandled case"); break;
|
|
|
}
|
|
@@ -789,7 +1042,7 @@ Function *OP::GetOpFunc(OpCode opCode, Type *pOverloadType) {
|
|
|
|
|
|
F = cast<Function>(m_pModule->getOrInsertFunction(funcName, pFT));
|
|
|
|
|
|
- UpdateCache(opClass, TypeSlot, F);
|
|
|
+ UpdateCache(opClass, pOverloadType, F);
|
|
|
F->setCallingConv(CallingConv::C);
|
|
|
F->addFnAttr(Attribute::NoUnwind);
|
|
|
if (m_OpCodeProps[(unsigned)opCode].FuncAttr != Attribute::None)
|
|
@@ -798,18 +1051,22 @@ Function *OP::GetOpFunc(OpCode opCode, Type *pOverloadType) {
|
|
|
return F;
|
|
|
}
|
|
|
|
|
|
-llvm::ArrayRef<llvm::Function *> OP::GetOpFuncList(OpCode opCode) const {
|
|
|
- DXASSERT(0 <= (unsigned)opCode && opCode < OpCode::NumOpCodes, "otherwise caller passed OOB OpCode");
|
|
|
+const SmallDenseMap<llvm::Type *, llvm::Function *, 8> &
|
|
|
+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 llvm::ArrayRef<llvm::Function *>(m_OpCodeClassCache[(unsigned)m_OpCodeProps[(unsigned)opCode].opCodeClass].pOverloads);
|
|
|
+ return m_OpCodeClassCache[(unsigned)m_OpCodeProps[(unsigned)opCode]
|
|
|
+ .opCodeClass]
|
|
|
+ .pOverloads;
|
|
|
}
|
|
|
|
|
|
void OP::RemoveFunction(Function *F) {
|
|
|
if (OP::IsDxilOpFunc(F)) {
|
|
|
OpCodeClass opClass = m_FunctionToOpClass[F];
|
|
|
- for (unsigned i=0;i<kNumTypeOverloads;i++) {
|
|
|
- if (F == m_OpCodeClassCache[(unsigned)opClass].pOverloads[i]) {
|
|
|
- m_OpCodeClassCache[(unsigned)opClass].pOverloads[i] = nullptr;
|
|
|
+ for (auto it : m_OpCodeClassCache[(unsigned)opClass].pOverloads) {
|
|
|
+ if (it.second == F) {
|
|
|
+ m_OpCodeClassCache[(unsigned)opClass].pOverloads.erase(it.first);
|
|
|
m_FunctionToOpClass.erase(F);
|
|
|
break;
|
|
|
}
|
|
@@ -820,7 +1077,8 @@ void OP::RemoveFunction(Function *F) {
|
|
|
bool OP::GetOpCodeClass(const Function *F, OP::OpCodeClass &opClass) {
|
|
|
auto iter = m_FunctionToOpClass.find(F);
|
|
|
if (iter == m_FunctionToOpClass.end()) {
|
|
|
- DXASSERT(!IsDxilOpFunc(F), "dxil function without an opcode class mapping?");
|
|
|
+ // When no user, cannot get opcode.
|
|
|
+ DXASSERT(F->user_empty() || !IsDxilOpFunc(F), "dxil function without an opcode class mapping?");
|
|
|
return false;
|
|
|
}
|
|
|
opClass = iter->second;
|
|
@@ -830,8 +1088,8 @@ bool OP::GetOpCodeClass(const Function *F, OP::OpCodeClass &opClass) {
|
|
|
bool OP::UseMinPrecision() {
|
|
|
if (m_LowPrecisionMode == DXIL::LowPrecisionMode::Undefined) {
|
|
|
if (m_pModule->HasDxilModule()) {
|
|
|
- m_LowPrecisionMode = m_pModule->GetDxilModule().m_ShaderFlags.GetUseNativeLowPrecision() ?
|
|
|
- DXIL::LowPrecisionMode::UseNativeLowPrecision : DXIL::LowPrecisionMode::UseMinPrecision;
|
|
|
+ m_LowPrecisionMode = m_pModule->GetDxilModule().GetUseMinPrecision() ?
|
|
|
+ DXIL::LowPrecisionMode::UseMinPrecision : DXIL::LowPrecisionMode::UseNativeLowPrecision;
|
|
|
}
|
|
|
else if (m_pModule->HasHLModule()) {
|
|
|
m_LowPrecisionMode = m_pModule->GetHLModule().GetHLOptions().bUseMinPrecision ?
|
|
@@ -856,6 +1114,7 @@ llvm::Type *OP::GetOverloadType(OpCode opCode, llvm::Function *F) {
|
|
|
switch (opCode) { // return OpCode
|
|
|
// OPCODE-OLOAD-TYPES:BEGIN
|
|
|
case OpCode::TempRegStore:
|
|
|
+ case OpCode::CallShader:
|
|
|
DXASSERT_NOMSG(FT->getNumParams() > 2);
|
|
|
return FT->getParamType(2);
|
|
|
case OpCode::MinPrecXRegStore:
|
|
@@ -879,11 +1138,18 @@ llvm::Type *OP::GetOverloadType(OpCode opCode, llvm::Function *F) {
|
|
|
case OpCode::UAddc:
|
|
|
case OpCode::USubb:
|
|
|
case OpCode::WaveActiveAllEqual:
|
|
|
+ case OpCode::CreateHandleForLib:
|
|
|
DXASSERT_NOMSG(FT->getNumParams() > 1);
|
|
|
return FT->getParamType(1);
|
|
|
case OpCode::TextureStore:
|
|
|
DXASSERT_NOMSG(FT->getNumParams() > 5);
|
|
|
return FT->getParamType(5);
|
|
|
+ case OpCode::TraceRay:
|
|
|
+ DXASSERT_NOMSG(FT->getNumParams() > 15);
|
|
|
+ return FT->getParamType(15);
|
|
|
+ case OpCode::ReportHit:
|
|
|
+ DXASSERT_NOMSG(FT->getNumParams() > 3);
|
|
|
+ return FT->getParamType(3);
|
|
|
case OpCode::CreateHandle:
|
|
|
case OpCode::BufferUpdateCounter:
|
|
|
case OpCode::GetDimensions:
|
|
@@ -915,6 +1181,8 @@ llvm::Type *OP::GetOverloadType(OpCode opCode, llvm::Function *F) {
|
|
|
case OpCode::LegacyDoubleToUInt32:
|
|
|
case OpCode::WaveAllBitCount:
|
|
|
case OpCode::WavePrefixBitCount:
|
|
|
+ case OpCode::IgnoreHit:
|
|
|
+ case OpCode::AcceptHitAndEndSearch:
|
|
|
return Type::getVoidTy(m_Ctx);
|
|
|
case OpCode::CheckAccessFullyMapped:
|
|
|
case OpCode::AtomicBinOp:
|
|
@@ -930,9 +1198,24 @@ llvm::Type *OP::GetOverloadType(OpCode opCode, llvm::Function *F) {
|
|
|
case OpCode::OutputControlPointID:
|
|
|
case OpCode::PrimitiveID:
|
|
|
case OpCode::ViewID:
|
|
|
+ case OpCode::InstanceID:
|
|
|
+ case OpCode::InstanceIndex:
|
|
|
+ case OpCode::HitKind:
|
|
|
+ case OpCode::RayFlags:
|
|
|
+ case OpCode::DispatchRaysIndex:
|
|
|
+ case OpCode::DispatchRaysDimensions:
|
|
|
+ case OpCode::PrimitiveIndex:
|
|
|
return IntegerType::get(m_Ctx, 32);
|
|
|
case OpCode::CalculateLOD:
|
|
|
case OpCode::DomainLocation:
|
|
|
+ case OpCode::WorldRayOrigin:
|
|
|
+ case OpCode::WorldRayDirection:
|
|
|
+ case OpCode::ObjectRayOrigin:
|
|
|
+ case OpCode::ObjectRayDirection:
|
|
|
+ case OpCode::ObjectToWorld:
|
|
|
+ case OpCode::WorldToObject:
|
|
|
+ case OpCode::RayTMin:
|
|
|
+ case OpCode::RayTCurrent:
|
|
|
return Type::getFloatTy(m_Ctx);
|
|
|
case OpCode::MakeDouble:
|
|
|
case OpCode::SplitDouble:
|