58bool BlitPassVK::OnCopyTextureToTextureCommand(
59 std::shared_ptr<Texture>
source,
60 std::shared_ptr<Texture> destination,
64 auto command = std::make_unique<BlitCopyTextureToTextureCommandVK>();
66 command->source = std::move(
source);
67 command->destination = std::move(destination);
68 command->source_region = source_region;
69 command->destination_origin = destination_origin;
70 command->label = std::move(label);
72 commands_.push_back(std::move(command));
77bool BlitPassVK::OnCopyTextureToBufferCommand(
78 std::shared_ptr<Texture>
source,
79 std::shared_ptr<DeviceBuffer> destination,
81 size_t destination_offset,
83 auto command = std::make_unique<BlitCopyTextureToBufferCommandVK>();
85 command->source = std::move(
source);
86 command->destination = std::move(destination);
87 command->source_region = source_region;
88 command->destination_offset = destination_offset;
89 command->label = std::move(label);
91 commands_.push_back(std::move(command));
96bool BlitPassVK::OnCopyBufferToTextureCommand(
98 std::shared_ptr<Texture> destination,
101 auto command = std::make_unique<BlitCopyBufferToTextureCommandVK>();
103 command->source = std::move(
source);
104 command->destination = std::move(destination);
105 command->destination_origin = destination_origin;
106 command->label = std::move(label);
108 commands_.push_back(std::move(command));
113bool BlitPassVK::OnGenerateMipmapCommand(std::shared_ptr<Texture>
texture,
115 auto command = std::make_unique<BlitGenerateMipmapCommandVK>();
117 command->texture = std::move(
texture);
118 command->label = std::move(label);
120 commands_.push_back(std::move(command));