Lines Matching refs:spv
1144 case spv::OpTypeVoid:
1145 case spv::OpTypeBool:
1146 case spv::OpTypeInt:
1147 case spv::OpTypeFloat:
1148 case spv::OpTypeVector:
1149 case spv::OpTypeMatrix:
1150 case spv::OpTypeImage:
1151 case spv::OpTypeSampler:
1152 case spv::OpTypeSampledImage:
1153 case spv::OpTypeArray:
1154 case spv::OpTypeRuntimeArray:
1155 case spv::OpTypeStruct:
1156 case spv::OpTypeOpaque:
1157 case spv::OpTypePointer:
1158 case spv::OpTypeFunction:
1159 case spv::OpTypeEvent:
1160 case spv::OpTypeDeviceEvent:
1161 case spv::OpTypeReserveId:
1162 case spv::OpTypeQueue:
1163 case spv::OpTypePipe:
1168 case spv::OpConstantTrue:
1169 case spv::OpConstantFalse:
1170 case spv::OpConstant:
1171 case spv::OpConstantComposite:
1172 case spv::OpConstantSampler:
1173 case spv::OpConstantNull:
1178 case spv::OpSpecConstantTrue:
1179 case spv::OpSpecConstantFalse:
1180 case spv::OpSpecConstant:
1181 case spv::OpSpecConstantComposite:
1182 case spv::OpSpecConstantOp:
1187 case spv::OpVariable:
1192 case spv::OpFunction:
1205 if (insn.opcode() == spv::OpEntryPoint) {
1223 return sizeInWords >= 5 && words[0] == spv::MagicNumber && words[1] == spv::Version;
1228 case spv::StorageClassInput:
1230 case spv::StorageClassOutput:
1232 case spv::StorageClassUniformConstant:
1234 case spv::StorageClassUniform:
1236 case spv::StorageClassWorkgroup:
1238 case spv::StorageClassCrossWorkgroup:
1240 case spv::StorageClassPrivate:
1242 case spv::StorageClassFunction:
1244 case spv::StorageClassGeneric:
1246 case spv::StorageClassAtomicCounter:
1248 case spv::StorageClassImage:
1250 case spv::StorageClassPushConstant:
1262 if (value.opcode() != spv::OpConstant) {
1278 case spv::OpTypeBool:
1281 case spv::OpTypeInt:
1284 case spv::OpTypeFloat:
1287 case spv::OpTypeVector:
1291 case spv::OpTypeMatrix:
1295 case spv::OpTypeArray:
1299 case spv::OpTypePointer:
1303 case spv::OpTypeStruct: {
1315 case spv::OpTypeSampler:
1318 case spv::OpTypeSampledImage:
1322 case spv::OpTypeImage:
1346 if (b_arrayed && b_insn.opcode() == spv::OpTypeArray) {
1357 case spv::OpTypeBool:
1359 case spv::OpTypeInt:
1362 case spv::OpTypeFloat:
1365 case spv::OpTypeVector:
1366 case spv::OpTypeMatrix:
1370 case spv::OpTypeArray:
1376 case spv::OpTypeStruct:
1396 case spv::OpTypePointer:
1421 case spv::OpTypePointer:
1425 case spv::OpTypeArray:
1431 case spv::OpTypeMatrix:
1456 if (def.opcode() == spv::OpTypePointer) {
1458 } else if (def.opcode() == spv::OpTypeArray && is_array_of_verts) {
1461 } else if (def.opcode() == spv::OpTypeStruct) {
1484 if (insn.opcode() == spv::OpMemberDecorate && insn.word(1) == type.word(1)) {
1487 if (insn.word(3) == spv::DecorationComponent) {
1496 if (insn.opcode() == spv::OpMemberDecorate && insn.word(1) == type.word(1)) {
1500 if (insn.word(3) == spv::DecorationLocation) {
1520 spv::StorageClass sinterface, std::map<location_t, interface_var> &out,
1532 if (insn.opcode() == spv::OpDecorate) {
1533 if (insn.word(2) == spv::DecorationLocation) {
1537 if (insn.word(2) == spv::DecorationBuiltIn) {
1541 if (insn.word(2) == spv::DecorationComponent) {
1545 if (insn.word(2) == spv::DecorationBlock) {
1567 assert(insn.opcode() == spv::OpVariable);
1615 if (insn.opcode() == spv::OpDecorate) {
1616 if (insn.word(2) == spv::DecorationDescriptorSet) {
1620 if (insn.word(2) == spv::DecorationBinding) {
1630 if (insn.opcode() == spv::OpVariable &&
1631 (insn.word(3) == spv::StorageClassUniform || insn.word(3) == spv::StorageClassUniformConstant)) {
1637 /* conflict within spv image */
1662 collect_interface_by_location(my_data, dev, producer, producer_entrypoint, spv::StorageClassOutput, outputs, false);
1663 collect_interface_by_location(my_data, dev, consumer, consumer_entrypoint, spv::StorageClassInput, inputs,
1769 case spv::OpTypeInt:
1771 case spv::OpTypeFloat:
1773 case spv::OpTypeVector:
1775 case spv::OpTypeMatrix:
1777 case spv::OpTypeArray:
1779 case spv::OpTypePointer:
1820 collect_interface_by_location(my_data, dev, vs, entrypoint, spv::StorageClassInput, inputs, false);
1881 /* TODO: dual source blend index (spv::DecIndex, zero if not provided) */
1883 collect_interface_by_location(my_data, dev, fs, entrypoint, spv::StorageClassOutput, outputs, false);
1961 case spv::OpFunction:
1963 while (++insn, insn.opcode() != spv::OpFunctionEnd) {
1965 case spv::OpLoad:
1966 case spv::OpAtomicLoad:
1967 case spv::OpAtomicExchange:
1968 case spv::OpAtomicCompareExchange:
1969 case spv::OpAtomicCompareExchangeWeak:
1970 case spv::OpAtomicIIncrement:
1971 case spv::OpAtomicIDecrement:
1972 case spv::OpAtomicIAdd:
1973 case spv::OpAtomicISub:
1974 case spv::OpAtomicSMin:
1975 case spv::OpAtomicUMin:
1976 case spv::OpAtomicSMax:
1977 case spv::OpAtomicUMax:
1978 case spv::OpAtomicAnd:
1979 case spv::OpAtomicOr:
1980 case spv::OpAtomicXor:
1983 case spv::OpStore:
1984 case spv::OpAtomicStore:
1987 case spv::OpAccessChain:
1988 case spv::OpInBoundsAccessChain:
1991 case spv::OpSampledImage:
1992 case spv::OpImageSampleImplicitLod:
1993 case spv::OpImageSampleExplicitLod:
1994 case spv::OpImageSampleDrefImplicitLod:
1995 case spv::OpImageSampleDrefExplicitLod:
1996 case spv::OpImageSampleProjImplicitLod:
1997 case spv::OpImageSampleProjExplicitLod:
1998 case spv::OpImageSampleProjDrefImplicitLod:
1999 case spv::OpImageSampleProjDrefExplicitLod:
2000 case spv::OpImageFetch:
2001 case spv::OpImageGather:
2002 case spv::OpImageDrefGather:
2003 case spv::OpImageRead:
2004 case spv::OpImage:
2005 case spv::OpImageQueryFormat:
2006 case spv::OpImageQueryOrder:
2007 case spv::OpImageQuerySizeLod:
2008 case spv::OpImageQuerySize:
2009 case spv::OpImageQueryLod:
2010 case spv::OpImageQueryLevels:
2011 case spv::OpImageQuerySamples:
2012 case spv::OpImageSparseSampleImplicitLod:
2013 case spv::OpImageSparseSampleExplicitLod:
2014 case spv::OpImageSparseSampleDrefImplicitLod:
2015 case spv::OpImageSparseSampleDrefExplicitLod:
2016 case spv::OpImageSparseSampleProjImplicitLod:
2017 case spv::OpImageSparseSampleProjExplicitLod:
2018 case spv::OpImageSparseSampleProjDrefImplicitLod:
2019 case spv::OpImageSparseSampleProjDrefExplicitLod:
2020 case spv::OpImageSparseFetch:
2021 case spv::OpImageSparseGather:
2022 case spv::OpImageSparseDrefGather:
2023 case spv::OpImageTexelPointer:
2026 case spv::OpImageWrite:
2029 case spv::OpFunctionCall:
2035 case spv::OpExtInst:
2074 if (insn.opcode() == spv::OpMemberDecorate && insn.word(1) == type.word(1)) {
2076 if (insn.word(3) == spv::DecorationOffset) {
2122 if (def_insn.opcode() == spv::OpVariable && def_insn.word(3) == spv::StorageClassPushConstant) {
2424 while (type.opcode() == spv::OpTypeArray || type.opcode() == spv::OpTypePointer) {
2425 if (type.opcode() == spv::OpTypeArray) {
2435 case spv::OpTypeStruct: {
2437 if (insn.opcode() == spv::OpDecorate && insn.word(1) == type.word(1)) {
2438 if (insn.word(2) == spv::DecorationBlock) {
2441 } else if (insn.word(2) == spv::DecorationBufferBlock) {
2452 case spv::OpTypeSampler:
2455 case spv::OpTypeSampledImage:
2458 case spv::OpTypeImage: {
2467 if (dim == spv::DimSubpassData) {
2469 } else if (dim == spv::DimBuffer) {
2511 if (insn.opcode() == spv::OpCapability) {
2513 case spv::CapabilityMatrix:
2514 case spv::CapabilityShader:
2515 case spv::CapabilityInputAttachment:
2516 case spv::CapabilitySampled1D:
2517 case spv::CapabilityImage1D:
2518 case spv::CapabilitySampledBuffer:
2519 case spv::CapabilityImageBuffer:
2520 case spv::CapabilityImageQuery:
2521 case spv::CapabilityDerivativeControl:
2525 case spv::CapabilityGeometry:
2529 case spv::CapabilityTessellation:
2533 case spv::CapabilityFloat64:
2537 case spv::CapabilityInt64:
2541 case spv::CapabilityTessellationPointSize:
2542 case spv::CapabilityGeometryPointSize:
2547 case spv::CapabilityImageGatherExtended:
2551 case spv::CapabilityStorageImageMultisample:
2555 case spv::CapabilityUniformBufferArrayDynamicIndexing:
2560 case spv::CapabilitySampledImageArrayDynamicIndexing:
2565 case spv::CapabilityStorageBufferArrayDynamicIndexing:
2570 case spv::CapabilityStorageImageArrayDynamicIndexing:
2575 case spv::CapabilityClipDistance:
2579 case spv::CapabilityCullDistance:
2583 case spv::CapabilityImageCubeArray:
2587 case spv::CapabilitySampleRateShading:
2591 case spv::CapabilitySparseResidency:
2595 case spv::CapabilityMinLod:
2599 case spv::CapabilitySampledCubeArray:
2603 case spv::CapabilityImageMSArray:
2607 case spv::CapabilityStorageImageExtendedFormats:
2612 case spv::CapabilityInterpolationFunction:
2616 case spv::CapabilityStorageImageReadWithoutFormat:
2621 case spv::CapabilityStorageImageWriteWithoutFormat:
2626 case spv::CapabilityMultiViewport: