5#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_CONTENTS_TEST_HELPERS_H_
6#define FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_CONTENTS_TEST_HELPERS_H_
16 command.vertex_bindings.buffers.end(),
18 return data.slot.ext_res_0 == 0u;
24 auto data = (
resource->view.resource.buffer->OnGetContents() +
25 resource->view.resource.range.offset);
26 return reinterpret_cast<typename T::VertInfo*
>(
data);
33 command.fragment_bindings.buffers.end(),
35 return data.slot.ext_res_0 == 0u ||
36 data.slot.binding == 64;
42 auto data = (
resource->view.resource.buffer->OnGetContents() +
43 resource->view.resource.range.offset);
44 return reinterpret_cast<typename T::FragInfo*
>(
data);
static SkString resource(SkPDFResourceType type, int index)
T::VertInfo * GetVertInfo(const Command &command)
Retrieve the [VertInfo] struct data from the provided [command].
T::FragInfo * GetFragInfo(const Command &command)
Retrieve the [FragInfo] struct data from the provided [command].
An object used to specify work to the GPU along with references to resources the GPU will used when d...
std::shared_ptr< const fml::Mapping > data