Support Dim InputTarget

This commit is contained in:
David Neto 2015-09-23 10:30:06 -04:00
parent 9819adf4cb
commit aa0c3a5c07
2 changed files with 7 additions and 2 deletions

View File

@ -363,6 +363,7 @@ static const spv_operand_desc_t storageClassEntries[] = {
}; };
static const spv_operand_desc_t dimensionalityEntries[] = { static const spv_operand_desc_t dimensionalityEntries[] = {
// TODO(dneto): Update capability dependencies for Rev32
{"1D", Dim1D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}}, {"1D", Dim1D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
{"2D", Dim2D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}}, {"2D", Dim2D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
{"3D", Dim3D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}}, {"3D", Dim3D, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
@ -377,6 +378,11 @@ static const spv_operand_desc_t dimensionalityEntries[] = {
CapabilityShader, CapabilityShader,
{SPV_OPERAND_TYPE_NONE}}, {SPV_OPERAND_TYPE_NONE}},
{"Buffer", DimBuffer, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}}, {"Buffer", DimBuffer, SPV_OPCODE_FLAGS_NONE, 0, {SPV_OPERAND_TYPE_NONE}},
{"InputTarget",
DimInputTarget,
SPV_OPCODE_FLAGS_CAPABILITIES,
CapabilityInputTarget,
{SPV_OPERAND_TYPE_NONE}},
}; };
static const spv_operand_desc_t samplerAddressingModeEntries[] = { static const spv_operand_desc_t samplerAddressingModeEntries[] = {

View File

@ -62,7 +62,7 @@ INSTANTIATE_TEST_CASE_P(
CASE(Cube), CASE(Cube),
CASE(Rect), CASE(Rect),
CASE(Buffer), CASE(Buffer),
// TODO(dneto): Rev32 adds InputTarget. CASE(InputTarget),
})); }));
#undef CASE #undef CASE
// clang-format on // clang-format on
@ -125,7 +125,6 @@ INSTANTIATE_TEST_CASE_P(
CASE(Rg8ui), CASE(Rg8ui),
CASE(R16ui), CASE(R16ui),
CASE(R8ui), CASE(R8ui),
// TODO(dneto): Rev32 adds InputTarget.
})); }));
#undef CASE #undef CASE
// clang-format on // clang-format on