Started obj port and gave up.
This commit is contained in:
@@ -30,10 +30,7 @@ protected:
|
||||
class parser_context
|
||||
{
|
||||
public:
|
||||
parser_context(
|
||||
store_type& m_store,
|
||||
std::mutex& m_store_mutex
|
||||
);
|
||||
parser_context(store_type& m_store);
|
||||
|
||||
void operator()(lookup_type::const_pointer entry) noexcept;
|
||||
|
||||
@@ -48,7 +45,6 @@ protected:
|
||||
|
||||
private:
|
||||
store_type* m_store;
|
||||
std::mutex* m_store_mutex;
|
||||
shader_source_data m_buffer{};
|
||||
std::vector<std::string_view> m_value_buffer{};
|
||||
std::vector<std::size_t> m_declaration_value_count_buffer{};
|
||||
@@ -60,50 +56,29 @@ protected:
|
||||
std::vector<char>& source
|
||||
);
|
||||
|
||||
static void tokenize_declarations(
|
||||
std::string_view source,
|
||||
std::vector<std::string_view>& value_buffer,
|
||||
std::vector<std::size_t>& declaration_value_count_buffer,
|
||||
std::array<std::size_t, 4>& declaration_type_index_buffer
|
||||
);
|
||||
|
||||
static [[nodiscard]] bool parse_metadata_from_tokens(
|
||||
const std::vector<std::string_view>& value_buffer,
|
||||
const std::vector<std::size_t>& declaration_value_count_buffer,
|
||||
const std::array<std::size_t, 4>& declaration_type_index_buffer,
|
||||
shader_source_data& buffer
|
||||
);
|
||||
|
||||
static void remove_metadata_declarations(
|
||||
const std::vector<std::string_view>& value_buffer,
|
||||
const std::vector<std::size_t>& declaration_value_count_buffer,
|
||||
const std::array<std::size_t, 4>& declaration_type_index_buffer,
|
||||
std::vector<char>& source
|
||||
);
|
||||
|
||||
[[nodiscard]] static bool parse_geometry_declaration(
|
||||
std::span<const std::string_view> values,
|
||||
model_geometry::types& geometry_type
|
||||
shader_source_data::metadata& meta
|
||||
);
|
||||
|
||||
[[nodiscard]] static bool parse_stage_declaration(
|
||||
std::span<const std::string_view> values,
|
||||
shader_components::stage& stage
|
||||
shader_source_data::metadata& meta
|
||||
);
|
||||
|
||||
[[nodiscard]] static bool parse_components_declaration(
|
||||
std::span<const std::string_view> values,
|
||||
shader_source_data& buffer
|
||||
shader_source_data::metadata& meta
|
||||
);
|
||||
|
||||
[[nodiscard]] static bool parse_static_enable_declaration(
|
||||
std::span<const std::string_view> values,
|
||||
shader_source_data& buffer
|
||||
shader_source_data::metadata& meta
|
||||
);
|
||||
|
||||
[[nodiscard]] static bool parse_dynamic_enable_declaration(
|
||||
std::span<const std::string_view> values,
|
||||
shader_source_data& buffer
|
||||
shader_source_data::metadata& meta
|
||||
);
|
||||
|
||||
[[nodiscard]] static bool parse_component_tokens(
|
||||
|
||||
Reference in New Issue
Block a user