| 1575 | } |
| 1576 | |
| 1577 | static void |
| 1578 | _AddBufferElement( |
| 1579 | HioGlslfxResourceLayout::ElementVector *elements, |
| 1580 | TfToken const &name, |
| 1581 | TfToken const &dataType, |
| 1582 | int location, |
| 1583 | int arraySize = 0) |
| 1584 | { |
| 1585 | elements->emplace_back( |
| 1586 | HioGlslfxResourceLayout::InOut::NONE, |
| 1587 | HioGlslfxResourceLayout::Kind::BUFFER_READ_ONLY, |
| 1588 | dataType, name); |
| 1589 | elements->back().members.emplace_back(dataType, name); |
| 1590 | if (location >= 0) { |
| 1591 | elements->back().location = static_cast<uint32_t>(location); |
| 1592 | } |
| 1593 | } |
| 1594 | |
| 1595 | static void |
| 1596 | _AddWritableBufferElement( |
no test coverage detected