Closed ProGTX closed 4 years ago
This has been replaced by https://github.com/codeplaysoftware/standards-proposals/pull/124, which defines an accessor to be a Container
, and then you can have "empty" accessors if acc.empty() == true
.
This has been replaced by #124, which defines an accessor to be a
Container
, and then you can have "empty" accessors ifacc.empty() == true
.
Nice side effect of this container (point-of-) view...
This relates to https://github.com/codeplaysoftware/standards-proposals/pull/18.
It introduces a default constructed placeholder accessor, similar to that patch, called a null accessor here. Instead of proposing a
require(buf, acc)
, the buffer can be "bound" to an accessor by creating a new placeholder accessor that is already bound to a buffer. It can then be used as a normal placeholder accessor. If it's not bound, it can still be passed into a kernel, but should not be dereferenced inside the kernel.A new free function
make_placeholder_accessor
accessor is also proposed.