Home
last modified time | relevance | path

Searched refs:intendedType (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/src/gpu/d3d/
DGrD3DBuffer.cpp21 GrGpuBufferType intendedType, in make_d3d_buffer() argument
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() argument
70 gr_cp<ID3D12Resource> resource = make_d3d_buffer(gpu, size, intendedType, accessPattern, in Make()
76 return sk_sp<GrD3DBuffer>(new GrD3DBuffer(gpu, size, intendedType, accessPattern, in Make()
81 GrD3DBuffer::GrD3DBuffer(GrD3DGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrD3DBuffer() argument
84 : INHERITED(gpu, size, intendedType, accessPattern) in GrD3DBuffer()
239 SkASSERT(this->intendedType() == GrGpuBufferType::kVertex || in validate()
[all …]
/third_party/skia/src/gpu/mtl/
DGrMtlBuffer.mm38 sk_sp<GrMtlBuffer> GrMtlBuffer::Make(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType,
40 sk_sp<GrMtlBuffer> buffer(new GrMtlBuffer(gpu, size, intendedType, accessPattern));
47 GrMtlBuffer::GrMtlBuffer(GrMtlGpu* gpu, size_t size, GrGpuBufferType intendedType,
49 : INHERITED(gpu, size, intendedType, accessPattern)
73 fMtlBuffer.label = kBufferTypeNames[(int)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 ||
[all …]
DGrMtlBuffer.h21 static sk_sp<GrMtlBuffer> Make(GrMtlGpu*, size_t size, GrGpuBufferType intendedType,
29 GrMtlBuffer(GrMtlGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern);
/third_party/skia/src/gpu/gl/
DGrGLBuffer.cpp37 sk_sp<GrGLBuffer> GrGLBuffer::Make(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in Make() argument
40 (GrGpuBufferType::kXferCpuToGpu == intendedType || in Make()
41 GrGpuBufferType::kXferGpuToCpu == intendedType)) { in Make()
45 sk_sp<GrGLBuffer> buffer(new GrGLBuffer(gpu, size, intendedType, accessPattern, data)); in Make()
106 GrGLBuffer::GrGLBuffer(GrGLGpu* gpu, size_t size, GrGpuBufferType intendedType, in GrGLBuffer() argument
108 : INHERITED(gpu, size, intendedType, accessPattern) in GrGLBuffer()
109 , fIntendedType(intendedType) in GrGLBuffer()
111 , fUsage(gr_to_gl_access_pattern(intendedType, accessPattern, gpu->glCaps())) in GrGLBuffer()
DGrGLBuffer.h19 static sk_sp<GrGLBuffer> Make(GrGLGpu*, size_t size, GrGpuBufferType intendedType,
39 GrGLBuffer(GrGLGpu*, size_t size, GrGpuBufferType intendedType, GrAccessPattern,
DGrGLGpu.h260 sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType, GrAccessPattern,
DGrGLGpu.cpp1786 sk_sp<GrGpuBuffer> GrGLGpu::onCreateBuffer(size_t size, GrGpuBufferType intendedType, in onCreateBuffer() argument
1788 return GrGLBuffer::Make(this, size, intendedType, accessPattern, data); in onCreateBuffer()
/third_party/skia/src/gpu/
DGrGpuBuffer.cpp49 if (this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in updateData()
61 void GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(size_t size, GrGpuBufferType intendedType, in ComputeScratchKeyForDynamicBuffer() argument
65 builder[0] = SkToU32(intendedType); in ComputeScratchKeyForDynamicBuffer()
DGrResourceProvider.cpp408 sk_sp<const GrGpuBuffer> GrResourceProvider::findOrMakeStaticBuffer(GrGpuBufferType intendedType, in findOrMakeStaticBuffer() argument
415 if (auto buffer = this->createBuffer(size, intendedType, kStatic_GrAccessPattern, staticData)) { in findOrMakeStaticBuffer()
426 GrGpuBufferType intendedType, in findOrMakeStaticBuffer() argument
433 if (auto buffer = this->createBuffer(size, intendedType, kStatic_GrAccessPattern)) { in findOrMakeStaticBuffer()
549 sk_sp<GrGpuBuffer> GrResourceProvider::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer() argument
556 return this->gpu()->createBuffer(size, intendedType, accessPattern, data); in createBuffer()
561 size_t allocSize = intendedType == GrGpuBufferType::kUniform ? std::max(size, MIN_UNIFORM_SIZE) in createBuffer()
569 GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(allocSize, intendedType, &key); in createBuffer()
574 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
DGrRingBuffer.h25 GrRingBuffer(GrGpu* gpu, size_t size, size_t alignment, GrGpuBufferType intendedType) in GrRingBuffer() argument
29 , fType(intendedType) in GrRingBuffer()
DGrResourceProvider.h198 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
211 sk_sp<const GrGpuBuffer> findOrMakeStaticBuffer(GrGpuBufferType intendedType, size_t size,
286 GrGpuBufferType intendedType,
DGrGpuBuffer.h85 GrGpuBufferType intendedType() const { return fIntendedType; } in intendedType() function
DGrGpu.h218 sk_sp<GrGpuBuffer> createBuffer(size_t size, GrGpuBufferType intendedType,
745 virtual sk_sp<GrGpuBuffer> onCreateBuffer(size_t size, GrGpuBufferType intendedType,
DGrGpu.cpp383 sk_sp<GrGpuBuffer> GrGpu::createBuffer(size_t size, GrGpuBufferType intendedType, in createBuffer() argument
387 sk_sp<GrGpuBuffer> buffer = this->onCreateBuffer(size, intendedType, accessPattern, data); in createBuffer()
/third_party/skia/src/gpu/vk/
DGrVkBuffer.cpp166 if (fMapPtr && this->intendedType() == GrGpuBufferType::kXferGpuToCpu) { in vkMap()
221 buffer_type_to_access_flags(this->intendedType()), in copyCpuDataToGpuBuffer()