obs-StreamFX/source/obs/gs/gs-effect-pass.hpp

37 lines
1.5 KiB
C++
Raw Normal View History

// AUTOGENERATED COPYRIGHT HEADER START
// Copyright (C) 2019-2023 Michael Fabian 'Xaymar' Dirks <info@xaymar.com>
// Copyright (C) 2022 lainon <GermanAizek@yandex.ru>
// AUTOGENERATED COPYRIGHT HEADER END
#pragma once
#include "common.hpp"
#include "gs-effect-parameter.hpp"
2021-06-08 02:38:24 +00:00
namespace streamfx::obs::gs {
class effect_pass : public std::shared_ptr<gs_epass_t> {
std::shared_ptr<gs_technique_t> _parent;
public:
effect_pass(gs_epass_t* pass, std::shared_ptr<gs_technique_t> parent = nullptr);
~effect_pass();
std::string name();
//gs::shader get_pixel_shader();
//gs::shader get_vertex_shader();
//
2021-06-08 02:38:24 +00:00
std::size_t count_vertex_parameters();
streamfx::obs::gs::effect_parameter get_vertex_parameter(std::size_t idx);
streamfx::obs::gs::effect_parameter get_vertex_parameter(std::string_view name);
bool has_vertex_parameter(std::string_view name);
bool has_vertex_parameter(std::string_view name, streamfx::obs::gs::effect_parameter::type type);
2021-06-08 02:38:24 +00:00
std::size_t count_pixel_parameters();
streamfx::obs::gs::effect_parameter get_pixel_parameter(std::size_t idx);
streamfx::obs::gs::effect_parameter get_pixel_parameter(std::string_view name);
bool has_pixel_parameter(std::string_view name);
bool has_pixel_parameter(std::string_view name, streamfx::obs::gs::effect_parameter::type type);
};
2021-06-08 02:38:24 +00:00
} // namespace streamfx::obs::gs