Home
last modified time | relevance | path

Searched refs:uploadHandle (Results 1 – 10 of 10) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DDynamicUploader.cpp38 UploadHandle uploadHandle; in AllocateInternal() local
39 uploadHandle.mappedBuffer = static_cast<uint8_t*>(stagingBuffer->GetMappedPointer()); in AllocateInternal()
40 uploadHandle.stagingBuffer = stagingBuffer.get(); in AllocateInternal()
43 return uploadHandle; in AllocateInternal()
89 UploadHandle uploadHandle; in AllocateInternal() local
90 uploadHandle.stagingBuffer = targetRingBuffer->mStagingBuffer.get(); in AllocateInternal()
91 uploadHandle.mappedBuffer = in AllocateInternal()
92 static_cast<uint8_t*>(uploadHandle.stagingBuffer->GetMappedPointer()) + startOffset; in AllocateInternal()
93 uploadHandle.startOffset = startOffset; in AllocateInternal()
95 return uploadHandle; in AllocateInternal()
[all …]
DQueue.cpp108 UploadHandle uploadHandle; in UploadTextureDataAligningBytesPerRowAndOffset() local
109 DAWN_TRY_ASSIGN(uploadHandle, device->GetDynamicUploader()->Allocate( in UploadTextureDataAligningBytesPerRowAndOffset()
112 ASSERT(uploadHandle.mappedBuffer != nullptr); in UploadTextureDataAligningBytesPerRowAndOffset()
114 uint8_t* dstPointer = static_cast<uint8_t*>(uploadHandle.mappedBuffer); in UploadTextureDataAligningBytesPerRowAndOffset()
131 return uploadHandle; in UploadTextureDataAligningBytesPerRowAndOffset()
281 UploadHandle uploadHandle; in WriteBufferImpl() local
282 DAWN_TRY_ASSIGN(uploadHandle, device->GetDynamicUploader()->Allocate( in WriteBufferImpl()
285 ASSERT(uploadHandle.mappedBuffer != nullptr); in WriteBufferImpl()
287 memcpy(uploadHandle.mappedBuffer, data, size); in WriteBufferImpl()
291 return device->CopyFromStagingToBuffer(uploadHandle.stagingBuffer, uploadHandle.startOffset, in WriteBufferImpl()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBufferD3D12.cpp480 UploadHandle uploadHandle; in ClearBuffer() local
481 DAWN_TRY_ASSIGN(uploadHandle, in ClearBuffer()
485 memset(uploadHandle.mappedBuffer, clearValue, size); in ClearBuffer()
487 device->CopyFromStagingToBufferImpl(commandContext, uploadHandle.stagingBuffer, in ClearBuffer()
488 uploadHandle.startOffset, this, offset, size); in ClearBuffer()
DDeviceD3D12.cpp281 UploadHandle uploadHandle; in ClearBufferToZero() local
282 DAWN_TRY_ASSIGN(uploadHandle, in ClearBufferToZero()
286 memset(uploadHandle.mappedBuffer, 0u, kZeroBufferSize); in ClearBufferToZero()
288 CopyFromStagingToBufferImpl(commandContext, uploadHandle.stagingBuffer, in ClearBufferToZero()
289 uploadHandle.startOffset, mZeroBuffer.Get(), 0, in ClearBufferToZero()
DTextureD3D12.cpp1099 UploadHandle uploadHandle; in ClearTexture() local
1100 DAWN_TRY_ASSIGN(uploadHandle, in ClearTexture()
1103 memset(uploadHandle.mappedBuffer, clearColor, bufferSize); in ClearTexture()
1111 {0, 0, 0}, copySize, blockInfo, uploadHandle.startOffset, bytesPerRow); in ClearTexture()
1124 ToBackend(uploadHandle.stagingBuffer)->GetResource(), 0, bytesPerRow, in ClearTexture()
DCommandBufferD3D12.cpp1037 UploadHandle uploadHandle; in RecordCommands() local
1038 DAWN_TRY_ASSIGN(uploadHandle, device->GetDynamicUploader()->Allocate( in RecordCommands()
1041 ASSERT(uploadHandle.mappedBuffer != nullptr); in RecordCommands()
1042 memcpy(uploadHandle.mappedBuffer, data, size); in RecordCommands()
1052 ToBackend(uploadHandle.stagingBuffer)->GetResource(), in RecordCommands()
1053 uploadHandle.startOffset, size); in RecordCommands()
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DCommandBufferVk.cpp863 UploadHandle uploadHandle; in RecordCommands() local
864 DAWN_TRY_ASSIGN(uploadHandle, device->GetDynamicUploader()->Allocate( in RecordCommands()
867 ASSERT(uploadHandle.mappedBuffer != nullptr); in RecordCommands()
868 memcpy(uploadHandle.mappedBuffer, data, size); in RecordCommands()
875 copy.srcOffset = uploadHandle.startOffset; in RecordCommands()
880 commands, ToBackend(uploadHandle.stagingBuffer)->GetBufferHandle(), in RecordCommands()
DTextureVk.cpp1159 UploadHandle uploadHandle; in ClearTexture() local
1160 DAWN_TRY_ASSIGN(uploadHandle, in ClearTexture()
1163 memset(uploadHandle.mappedBuffer, uClearColor, bufferSize); in ClearTexture()
1180 dataLayout.offset = uploadHandle.startOffset; in ClearTexture()
1195 ToBackend(uploadHandle.stagingBuffer)->GetBufferHandle(), GetHandle(), in ClearTexture()
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DTextureMTL.mm663 UploadHandle uploadHandle;
664 DAWN_TRY_ASSIGN(uploadHandle,
667 memset(uploadHandle.mappedBuffer, clearColor, bufferSize);
670 ToBackend(uploadHandle.stagingBuffer)->GetBufferHandle();
688 sourceOffset:uploadHandle.startOffset
DCommandBufferMTL.mm1021 UploadHandle uploadHandle;
1022 DAWN_TRY_ASSIGN(uploadHandle, device->GetDynamicUploader()->Allocate(
1025 ASSERT(uploadHandle.mappedBuffer != nullptr);
1026 memcpy(uploadHandle.mappedBuffer, data, size);
1031 copyFromBuffer:ToBackend(uploadHandle.stagingBuffer)->GetBufferHandle()
1032 sourceOffset:uploadHandle.startOffset