WebGPU wrapper wip: move constant_entry to a separate header
This commit is contained in:
parent
e34b187235
commit
4370bf608f
3 changed files with 20 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include <psemek/wgpu/pipeline_layout.hpp>
|
||||
#include <psemek/wgpu/bind_group_layout.hpp>
|
||||
#include <psemek/wgpu/shader_module.hpp>
|
||||
#include <psemek/wgpu/render_pipeline.hpp>
|
||||
#include <psemek/wgpu/constant_entry.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
|
|
|||
18
libs/wgpu/include/psemek/wgpu/constant_entry.hpp
Normal file
18
libs/wgpu/include/psemek/wgpu/constant_entry.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <psemek/wgpu/chained_struct.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace psemek::wgpu
|
||||
{
|
||||
|
||||
struct constant_entry
|
||||
{
|
||||
std::vector<chained_struct> chain;
|
||||
std::string key;
|
||||
double value;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
#include <psemek/wgpu/shader_module.hpp>
|
||||
#include <psemek/wgpu/sampler.hpp>
|
||||
#include <psemek/wgpu/texture.hpp>
|
||||
#include <psemek/wgpu/constant_entry.hpp>
|
||||
#include <psemek/wgpu/detail/object.hpp>
|
||||
#include <psemek/wgpu/chained_struct.hpp>
|
||||
|
||||
|
|
@ -16,13 +17,6 @@
|
|||
namespace psemek::wgpu
|
||||
{
|
||||
|
||||
struct constant_entry
|
||||
{
|
||||
std::vector<chained_struct> chain;
|
||||
std::string key;
|
||||
double value;
|
||||
};
|
||||
|
||||
enum class vertex_step_mode : std::uint32_t
|
||||
{
|
||||
vertex = 0x00000000,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue