MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / _AddBufferElement

Function _AddBufferElement

pxr/imaging/hdSt/codeGen.cpp:1577–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1575}
1576
1577static 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
1595static void
1596_AddWritableBufferElement(

Callers 1

_EmitDeclarationFunction · 0.85

Calls 2

emplace_backMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected