Home
last modified time | relevance | path

Searched refs:GrGpuBufferType (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/skia/src/gpu/gl/
DGrGLBuffer.cpp37 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make()
40 (GrGpuBufferType::kXferCpuToGpu == intendedType || in Make()
41 GrGpuBufferType::kXferGpuToCpu == intendedType)) { in Make()
56 inline static GrGLenum gr_to_gl_access_pattern(GrGpuBufferType bufferType, in gr_to_gl_access_pattern()
84 auto usageType = [&drawUsage, &readUsage, &caps](GrGpuBufferType type, in gr_to_gl_access_pattern()
91 case GrGpuBufferType::kVertex: in gr_to_gl_access_pattern()
92 case GrGpuBufferType::kIndex: in gr_to_gl_access_pattern()
93 case GrGpuBufferType::kDrawIndirect: in gr_to_gl_access_pattern()
94 case GrGpuBufferType::kXferCpuToGpu: in gr_to_gl_access_pattern()
95 case GrGpuBufferType::kUniform: in gr_to_gl_access_pattern()
[all …]
DGrGLBuffer.h19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrGpuBufferType intendedType,
39 GrGLBuffer(GrGLGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern,
59 GrGpuBufferType fIntendedType;
/third_party/skia/src/gpu/vk/
DGrVkBuffer.cpp22 GrGpuBufferType bufferType, in GrVkBuffer()
33 SkASSERT(bufferType != GrGpuBufferType::kUniform || uniformDescriptorSet); in GrVkBuffer()
69 GrGpuBufferType bufferType, in Make()
92 case GrGpuBufferType::kVertex: in Make()
96 case GrGpuBufferType::kIndex: in Make()
100 case GrGpuBufferType::kDrawIndirect: in Make()
104 case GrGpuBufferType::kUniform: in Make()
108 case GrGpuBufferType::kXferCpuToGpu: in Make()
112 case GrGpuBufferType::kXferGpuToCpu: in Make()
142 if (bufferType == GrGpuBufferType::kUniform) { in Make()
[all …]
DGrVkBuffer.h21 GrGpuBufferType bufferType,
39 GrGpuBufferType bufferType,
/third_party/skia/src/gpu/d3d/
DGrD3DBuffer.cpp21 GrGpuBufferType intendedType, in make_d3d_buffer()
27 SkASSERT(intendedType != GrGpuBufferType::kXferCpuToGpu && in make_d3d_buffer()
28 intendedType != GrGpuBufferType::kXferGpuToCpu); in make_d3d_buffer()
33 if (intendedType == GrGpuBufferType::kXferGpuToCpu) { in make_d3d_buffer()
64 sk_sp<GrD3DBuffer> GrD3DBuffer::Make(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make()
81 GrD3DBuffer::GrD3DBuffer(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrD3DBuffer()
239 SkASSERT(this->intendedType() == GrGpuBufferType::kVertex || in validate()
240 this->intendedType() == GrGpuBufferType::kIndex || in validate()
241 this->intendedType() == GrGpuBufferType::kDrawIndirect || in validate()
242 this->intendedType() == GrGpuBufferType::kXferCpuToGpu || in validate()
[all …]
DGrD3DBuffer.h20 static sk_sp<GrD3DBuffer> Make(GrD3DGpu*, size_t size, GrGpuBufferType, GrAccessPattern);
32 GrD3DBuffer(GrD3DGpu*, size_t size, GrGpuBufferType, GrAccessPattern, gr_cp<ID3D12Resource>,
/third_party/flutter/skia/src/gpu/gl/
DGrGLBuffer.cpp32 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make()
35 (GrGpuBufferType::kXferCpuToGpu == intendedType || in Make()
36 GrGpuBufferType::kXferGpuToCpu == intendedType)) { in Make()
51 inline static GrGLenum gr_to_gl_access_pattern(GrGpuBufferType bufferType, in gr_to_gl_access_pattern()
78 auto usageType = [&drawUsage, &readUsage](GrGpuBufferType type, GrAccessPattern pattern) { in gr_to_gl_access_pattern()
80 case GrGpuBufferType::kVertex: in gr_to_gl_access_pattern()
81 case GrGpuBufferType::kIndex: in gr_to_gl_access_pattern()
82 case GrGpuBufferType::kXferCpuToGpu: in gr_to_gl_access_pattern()
84 case GrGpuBufferType::kXferGpuToCpu: in gr_to_gl_access_pattern()
93 GrGLBuffer::GrGLBuffer(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrGLBuffer()
[all …]
DGrGLBuffer.h19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrGpuBufferType intendedType,
39 GrGLBuffer(GrGLGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern,
59 GrGpuBufferType fIntendedType;
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnBuffer.cpp13 dawn::BufferUsageBit GrGpuBufferTypeToDawnUsageBit(GrGpuBufferType type) { in GrGpuBufferTypeToDawnUsageBit()
15 case GrGpuBufferType::kVertex: in GrGpuBufferTypeToDawnUsageBit()
17 case GrGpuBufferType::kIndex: in GrGpuBufferTypeToDawnUsageBit()
19 case GrGpuBufferType::kXferCpuToGpu: in GrGpuBufferTypeToDawnUsageBit()
21 case GrGpuBufferType::kXferGpuToCpu: in GrGpuBufferTypeToDawnUsageBit()
30 GrDawnBuffer::GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrDawnBuffer()
/third_party/skia/src/gpu/dawn/
DGrDawnBuffer.cpp13 wgpu::BufferUsage GrGpuBufferTypeToDawnUsageBit(GrGpuBufferType type) { in GrGpuBufferTypeToDawnUsageBit()
15 case GrGpuBufferType::kVertex: in GrGpuBufferTypeToDawnUsageBit()
17 case GrGpuBufferType::kIndex: in GrGpuBufferTypeToDawnUsageBit()
19 case GrGpuBufferType::kXferCpuToGpu: in GrGpuBufferTypeToDawnUsageBit()
21 case GrGpuBufferType::kXferGpuToCpu: in GrGpuBufferTypeToDawnUsageBit()
30 GrDawnBuffer::GrDawnBuffer(GrDawnGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrDawnBuffer()
/third_party/flutter/skia/src/gpu/
DGrGpuBuffer.h22 static void ComputeScratchKeyForDynamicVBO(size_t size, GrGpuBufferType, GrScratchKey*);
84 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern);
85 GrGpuBufferType intendedType() const { return fIntendedType; } in intendedType()
100 GrGpuBufferType fIntendedType;
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer()
44 if (this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in updateData()
50 void GrGpuBuffer::ComputeScratchKeyForDynamicVBO(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicVBO()
DGrOnFlushResourceProvider.h85 sk_sp<GrGpuBuffer> makeBuffer(GrGpuBufferType, size_t, const void* data = nullptr);
88 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType, size_t, const void* data,
DGrBufferAllocPool.h85 GrBufferAllocPool(GrGpu* gpu, GrGpuBufferType bufferType, sk_sp<CpuBufferCache> cpuBufferCache);
164 GrGpuBufferType fBufferType;
/third_party/skia/src/gpu/
DGrGpuBuffer.h22 static void ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType, GrScratchKey*);
84 GrGpuBuffer(GrGpu*, size_t sizeInBytes, GrGpuBufferType, GrAccessPattern);
85 GrGpuBufferType intendedType() const { return fIntendedType; } in intendedType()
100 GrGpuBufferType fIntendedType;
DGrGpuBuffer.cpp12 GrGpuBuffer::GrGpuBuffer(GrGpu* gpu, size_t sizeInBytes, GrGpuBufferType type, in GrGpuBuffer()
49 if (this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in updateData()
61 void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicBuffer()
DGrRingBuffer.h25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer()
64 GrGpuBufferType fType;
DGrBufferAllocPool.h86 GrBufferAllocPool(GrGpu* gpu, GrGpuBufferType bufferType, sk_sp<CpuBufferCache> cpuBufferCache);
165 GrGpuBufferType fBufferType;
321 : GrBufferAllocPool(gpu, GrGpuBufferType::kDrawIndirect, std::move(cpuBufferCache)) {} in GrDrawIndirectBufferAllocPool()
/third_party/skia/src/gpu/mtl/
DGrMtlBuffer.mm38 sk_sp<GrMtlBuffer> GrMtlBuffer::Make(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType,
47 GrMtlBuffer::GrMtlBuffer(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType,
189 this->intendedType() == GrGpuBufferType::kVertex ||
190 this->intendedType() == GrGpuBufferType::kIndex ||
191 this->intendedType() == GrGpuBufferType::kXferCpuToGpu ||
192 this->intendedType() == GrGpuBufferType::kXferGpuToCpu ||
193 this->intendedType() == GrGpuBufferType::kDrawIndirect ||
194 this->intendedType() == GrGpuBufferType::kUniform);
DGrMtlBuffer.h21 static sk_sp<GrMtlBuffer> Make(GrMtlGpu*, size_t size, GrGpuBufferType intendedType,
29 GrMtlBuffer(GrMtlGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern);
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlBuffer.mm24 sk_sp<GrMtlBuffer> GrMtlBuffer::Make(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType,
33 GrMtlBuffer::GrMtlBuffer(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType,
168 this->intendedType() == GrGpuBufferType::kVertex ||
169 this->intendedType() == GrGpuBufferType::kIndex ||
170 this->intendedType() == GrGpuBufferType::kXferCpuToGpu ||
171 this->intendedType() == GrGpuBufferType::kXferGpuToCpu);
DGrMtlBuffer.h21 static sk_sp<GrMtlBuffer> Make(GrMtlGpu*, size_t size, GrGpuBufferType intendedType,
30 GrMtlBuffer(GrMtlGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern);
/third_party/flutter/skia/src/gpu/ccpr/
DGrVSCoverageProcessor.cpp463 GrGpuBufferType::kVertex, sizeof(kTriangleVertices), kTriangleVertices, in reset()
468 GrGpuBufferType::kIndex, sizeof(kTriangleIndicesAsStrips), in reset()
473 GrGpuBufferType::kIndex, sizeof(kTriangleIndicesAsTris), in reset()
485 GrGpuBufferType::kVertex, sizeof(kCurveVertices), kCurveVertices, in reset()
490 GrGpuBufferType::kIndex, sizeof(kCurveIndicesAsStrips), in reset()
495 GrGpuBufferType::kIndex, sizeof(kCurveIndicesAsTris), kCurveIndicesAsTris, in reset()
DGrCCPathProcessor.cpp41 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kVertex, sizeof(kOctoEdgeNorms), in FindVertexBuffer()
72 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kIndex, in FindIndexBuffer()
76 return onFlushRP->findOrMakeStaticBuffer(GrGpuBufferType::kIndex, in FindIndexBuffer()
/third_party/flutter/skia/src/gpu/vk/
DGrVkTransferBuffer.cpp35 kCopyRead_Type == desc.fType ? GrGpuBufferType::kXferCpuToGpu in GrVkTransferBuffer()
36 : GrGpuBufferType::kXferGpuToCpu, in GrVkTransferBuffer()

12345