23static bool is_offset_aligned(
size_t offset,
size_t alignment) {
24 return 0 == (
offset & (alignment - 1));
31 std::unique_ptr<Recorder> recorder = context->makeRecorder();
47 size_t requiredAlignment = context->priv().caps()->requiredStorageBufferAlignment();
54 auto recording = recorder->snap();
#define REPORTER_ASSERT(r, cond,...)
BindBufferInfo getIndexStorage(size_t requiredBytes)
std::pair< void *, BindBufferInfo > getStoragePointer(size_t requiredBytes)
BindBufferInfo getStorage(size_t requiredBytes, ClearBuffer cleared=ClearBuffer::kNo)
BindBufferInfo getIndirectStorage(size_t requiredBytes, ClearBuffer cleared=ClearBuffer::kNo)
BindBufferInfo getVertexStorage(size_t requiredBytes)
DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS(BufferManagerGpuOnlyBufferTest, reporter, context, CtsEnforcement::kNextRelease)