This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vk_util.h> | |
namespace app { | |
static constexpr uint32_t IMAGE_WIDTH = 256; | |
static constexpr uint32_t IMAGE_HEIGHT = 64; | |
static constexpr uint32_t IMAGE_DATA_SIZE = 4 * IMAGE_WIDTH * IMAGE_HEIGHT; | |
static constexpr VkFormat IMAGE_DATA_FORMAT = VK_FORMAT_R8G8B8A8_UNORM; | |
VkContext vkContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2022 Valentin Milea <[email protected]> | |
* | |
* SPDX-License-Identifier: MIT | |
*/ | |
#include <i2c_fifo.h> | |
#include <i2c_slave.h> | |
#include <pico/multicore.h> // add pico_multicore to target_link_libraries | |
#include <pico/stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* Copyright 2011 See AUTHORS file. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "meta/FunctionTraits.h" | |
#include <utility> | |
#include <stdexcept> | |
#include <functional> | |
#include <string> | |
#include <cassert> | |
template <typename F> | |
class MoveOnCopyAdapter | |
{ |