/dports/emulators/mame/mame-mame0226/src/osd/modules/render/bgfx/ |
H A D | texture.h | 23 …bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, … 24 …bgfx_texture(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, … 29 bgfx::TextureFormat::Enum format() const { return m_format; } in format() 35 virtual bgfx::TextureHandle texture() const override { return m_texture; } in texture() 38 void update(const bgfx::Memory *data, uint16_t pitch = UINT16_MAX); 42 bgfx::TextureFormat::Enum m_format; 46 bgfx::TextureHandle m_texture;
|
H A D | target.h | 30 …bgfx_target(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, u… 37 bgfx::FrameBufferHandle target(); 38 bgfx::TextureFormat::Enum format() const { return m_format; } in format() 50 virtual bgfx::TextureHandle texture() const override; 55 bgfx::TextureFormat::Enum m_format; 58 bgfx::FrameBufferHandle* m_targets; 59 bgfx::TextureHandle* m_textures;
|
H A D | uniformreader.cpp | 14 { "int", bgfx::UniformType::Sampler }, 15 { "vec4", bgfx::UniformType::Vec4 }, 16 { "mat3", bgfx::UniformType::Mat3 }, 17 { "mat4", bgfx::UniformType::Mat4 } 28 …bgfx::UniformType::Enum type = bgfx::UniformType::Enum(get_enum_from_value(value, "type", bgfx::Un… in read_from_value()
|
H A D | uniform.h | 21 bgfx_uniform(std::string name, bgfx::UniformType::Enum type); 28 bgfx::UniformType::Enum type() const { return m_type; } in type() 29 bgfx::UniformHandle handle() const { return m_handle; } in handle() 38 static size_t get_size_for_type(bgfx::UniformType::Enum type); 41 bgfx::UniformHandle m_handle; 43 bgfx::UniformType::Enum m_type;
|
H A D | effect.cpp | 15 bgfx_effect::bgfx_effect(uint64_t state, bgfx::ShaderHandle vertex_shader, bgfx::ShaderHandle fragm… in bgfx_effect() 18 m_program_handle = bgfx::createProgram(vertex_shader, fragment_shader, false); in bgfx_effect() 39 bgfx::destroy(m_program_handle); in ~bgfx_effect() 48 bgfx::setState(m_state | blend); in submit() 49 bgfx::submit(view, m_program_handle); in submit()
|
H A D | chainentry.cpp | 83 bgfx::TransientVertexBuffer buffer; in submit() 85 bgfx::setVertexBuffer(0, &buffer); in submit() 255 bgfx::FrameBufferHandle handle = BGFX_INVALID_HANDLE; in setup_view() 270 bgfx::setViewFrameBuffer(view, handle); in setup_view() 271 bgfx::setViewRect(view, 0, 0, width, height); in setup_view() 273 const bgfx::Caps* caps = bgfx::getCaps(); in setup_view() 280 bgfx::setViewTransform(view, nullptr, projMat); in setup_view() 290 bgfx::allocTransientVertexBuffer(buffer, 6, ScreenVertex::ms_decl); in put_screen_buffer() 304 bgfx::RendererType::Enum renderer_type = bgfx::getRendererType(); in put_screen_buffer() 305 if (renderer_type == bgfx::RendererType::OpenGL || renderer_type == bgfx::RendererType::OpenGLES) in put_screen_buffer() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/40-svt/ |
H A D | vt.cpp | 87 bgfx::destroy(m_stagingTextures[i]); in ~StagingPool() 464 bgfx::destroy(m_texture); in ~PageTable() 708 bgfx::destroy(m_texture); in ~TextureAtlas() 777 bgfx::blit(viewId, m_lastStagingTexture, 0, 0, bgfx::getTexture(m_feedbackFrameBuffer)); in copy() 873 u_vt_settings_1 = bgfx::createUniform("u_vt_settings_1", bgfx::UniformType::Vec4); in VirtualTexture() 874 u_vt_settings_2 = bgfx::createUniform("u_vt_settings_2", bgfx::UniformType::Vec4); in VirtualTexture() 875 s_vt_page_table = bgfx::createUniform("s_vt_page_table", bgfx::UniformType::Sampler); in VirtualTexture() 876 s_vt_texture_atlas = bgfx::createUniform("s_vt_texture_atlas", bgfx::UniformType::Sampler); in VirtualTexture() 888 bgfx::destroy(u_vt_settings_1); in ~VirtualTexture() 889 bgfx::destroy(u_vt_settings_2); in ~VirtualTexture() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/40-svt/ |
H A D | vt.cpp | 87 bgfx::destroy(m_stagingTextures[i]); in ~StagingPool() 464 bgfx::destroy(m_texture); in ~PageTable() 708 bgfx::destroy(m_texture); in ~TextureAtlas() 777 bgfx::blit(viewId, m_lastStagingTexture, 0, 0, bgfx::getTexture(m_feedbackFrameBuffer)); in copy() 873 u_vt_settings_1 = bgfx::createUniform("u_vt_settings_1", bgfx::UniformType::Vec4); in VirtualTexture() 874 u_vt_settings_2 = bgfx::createUniform("u_vt_settings_2", bgfx::UniformType::Vec4); in VirtualTexture() 875 s_vt_page_table = bgfx::createUniform("s_vt_page_table", bgfx::UniformType::Sampler); in VirtualTexture() 876 s_vt_texture_atlas = bgfx::createUniform("s_vt_texture_atlas", bgfx::UniformType::Sampler); in VirtualTexture() 888 bgfx::destroy(u_vt_settings_1); in ~VirtualTexture() 889 bgfx::destroy(u_vt_settings_2); in ~VirtualTexture() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/common/nanovg/ |
H A D | nanovg_bgfx.h | 18 bgfx::FrameBufferHandle handle; 20 bgfx::ViewId viewId; 24 NVGcontext* nvgCreate(int32_t _edgeaa, bgfx::ViewId _viewId, bx::AllocatorI* _allocator); 27 NVGcontext* nvgCreate(int32_t _edgeaa, bgfx::ViewId _viewId); 33 void nvgSetViewId(NVGcontext* _ctx, bgfx::ViewId _viewId); 59 …ffer(NVGcontext* _ctx, int32_t _width, int32_t _height, int32_t _imageFlags, bgfx::ViewId _viewId); 71 void nvgluSetViewFramebuffer(bgfx::ViewId _viewId, NVGLUframebuffer* _framebuffer);
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/common/nanovg/ |
H A D | nanovg_bgfx.h | 18 bgfx::FrameBufferHandle handle; 20 bgfx::ViewId viewId; 24 NVGcontext* nvgCreate(int32_t _edgeaa, bgfx::ViewId _viewId, bx::AllocatorI* _allocator); 27 NVGcontext* nvgCreate(int32_t _edgeaa, bgfx::ViewId _viewId); 33 void nvgSetViewId(NVGcontext* _ctx, bgfx::ViewId _viewId); 59 …ffer(NVGcontext* _ctx, int32_t _width, int32_t _height, int32_t _imageFlags, bgfx::ViewId _viewId); 71 void nvgluSetViewFramebuffer(bgfx::ViewId _viewId, NVGLUframebuffer* _framebuffer);
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/common/ps/ |
H A D | particle_system.cpp | 42 .add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float) in init() 43 .add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true) in init() 44 .add(bgfx::Attrib::TexCoord0, 4, bgfx::AttribType::Float) in init() 48 static bgfx::VertexLayout ms_layout; 461 s_texColor = bgfx::createUniform("s_texColor", bgfx::UniformType::Sampler); in init() 467 , bgfx::TextureFormat::BGRA8 in init() 470 bgfx::RendererType::Enum type = bgfx::getRendererType(); in init() 481 bgfx::destroy(m_texture); in shutdown() 482 bgfx::destroy(s_texColor); in shutdown() 497 bgfx::updateTexture2D( in createSprite() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/common/ps/ |
H A D | particle_system.cpp | 42 .add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float) in init() 43 .add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true) in init() 44 .add(bgfx::Attrib::TexCoord0, 4, bgfx::AttribType::Float) in init() 48 static bgfx::VertexLayout ms_layout; 461 s_texColor = bgfx::createUniform("s_texColor", bgfx::UniformType::Sampler); in init() 467 , bgfx::TextureFormat::BGRA8 in init() 470 bgfx::RendererType::Enum type = bgfx::getRendererType(); in init() 481 bgfx::destroy(m_texture); in shutdown() 482 bgfx::destroy(s_texColor); in shutdown() 497 bgfx::updateTexture2D( in createSprite() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/tools/geometryc/ |
H A D | geometryc.cpp | 181 bgfx::vertexUnpack(&v0.m_x, bgfx::Attrib::Position, _layout, _vertices, i0); in calcTangents() 233 bgfx::vertexUnpack(nxyzw, bgfx::Attrib::Normal, _layout, _vertices, ii); in calcTangents() 288 using namespace bgfx; in write() 798 layout.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); in main() 802 layout.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true); in main() 807 layout.add(bgfx::Attrib::Color1, 4, bgfx::AttribType::Uint8, true); in main() 816 layout.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Float); in main() 820 layout.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Half); in main() 833 layout.add(bgfx::Attrib::Normal, 3, bgfx::AttribType::Float); in main() 836 layout.add(bgfx::Attrib::Tangent, 4, bgfx::AttribType::Float); in main() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/tools/geometryc/ |
H A D | geometryc.cpp | 181 bgfx::vertexUnpack(&v0.m_x, bgfx::Attrib::Position, _layout, _vertices, i0); in calcTangents() 233 bgfx::vertexUnpack(nxyzw, bgfx::Attrib::Normal, _layout, _vertices, ii); in calcTangents() 288 using namespace bgfx; in write() 798 layout.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float); in main() 802 layout.add(bgfx::Attrib::Color0, 4, bgfx::AttribType::Uint8, true); in main() 807 layout.add(bgfx::Attrib::Color1, 4, bgfx::AttribType::Uint8, true); in main() 816 layout.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Float); in main() 820 layout.add(bgfx::Attrib::TexCoord0, 2, bgfx::AttribType::Half); in main() 833 layout.add(bgfx::Attrib::Normal, 3, bgfx::AttribType::Float); in main() 836 layout.add(bgfx::Attrib::Tangent, 4, bgfx::AttribType::Float); in main() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/28-wireframe/ |
H A D | wireframe.cpp | 243 u_params = bgfx::createUniform("u_params", bgfx::UniformType::Vec4, NumVec4); in init() 253 bgfx::destroy(u_params); in destroy() 291 bgfx::Init init; in init() 297 bgfx::init(init); in init() 300 bgfx::setDebug(m_debug); in init() 303 bgfx::setViewClear(0 in init() 339 bgfx::destroy(m_wfProgram); in shutdown() 345 bgfx::shutdown(); in shutdown() 423 bgfx::touch(0); in update() 433 bgfx::setViewRect(0, 0, 0, bgfx::BackbufferRatio::Equal); in update() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/28-wireframe/ |
H A D | wireframe.cpp | 243 u_params = bgfx::createUniform("u_params", bgfx::UniformType::Vec4, NumVec4); in init() 253 bgfx::destroy(u_params); in destroy() 291 bgfx::Init init; in init() 297 bgfx::init(init); in init() 300 bgfx::setDebug(m_debug); in init() 303 bgfx::setViewClear(0 in init() 339 bgfx::destroy(m_wfProgram); in shutdown() 345 bgfx::shutdown(); in shutdown() 423 bgfx::touch(0); in update() 433 bgfx::setViewRect(0, 0, 0, bgfx::BackbufferRatio::Equal); in update() [all …]
|
/dports/emulators/mess/mame-mame0226/src/osd/modules/render/bgfx/ |
H A D | target.h | 30 …bgfx_target(std::string name, bgfx::TextureFormat::Enum format, uint16_t width, uint16_t height, u… 37 bgfx::FrameBufferHandle target(); 38 bgfx::TextureFormat::Enum format() const { return m_format; } in format() 50 virtual bgfx::TextureHandle texture() const override; 55 bgfx::TextureFormat::Enum m_format; 58 bgfx::FrameBufferHandle* m_targets; 59 bgfx::TextureHandle* m_textures;
|
H A D | uniformreader.cpp | 14 { "int", bgfx::UniformType::Sampler }, 15 { "vec4", bgfx::UniformType::Vec4 }, 16 { "mat3", bgfx::UniformType::Mat3 }, 17 { "mat4", bgfx::UniformType::Mat4 } 28 …bgfx::UniformType::Enum type = bgfx::UniformType::Enum(get_enum_from_value(value, "type", bgfx::Un… in read_from_value()
|
H A D | uniform.h | 21 bgfx_uniform(std::string name, bgfx::UniformType::Enum type); 28 bgfx::UniformType::Enum type() const { return m_type; } in type() 29 bgfx::UniformHandle handle() const { return m_handle; } in handle() 38 static size_t get_size_for_type(bgfx::UniformType::Enum type); 41 bgfx::UniformHandle m_handle; 43 bgfx::UniformType::Enum m_type;
|
H A D | effect.cpp | 15 bgfx_effect::bgfx_effect(uint64_t state, bgfx::ShaderHandle vertex_shader, bgfx::ShaderHandle fragm… in bgfx_effect() 18 m_program_handle = bgfx::createProgram(vertex_shader, fragment_shader, false); in bgfx_effect() 39 bgfx::destroy(m_program_handle); in ~bgfx_effect() 48 bgfx::setState(m_state | blend); in submit() 49 bgfx::submit(view, m_program_handle); in submit()
|
H A D | chainentry.cpp | 83 bgfx::TransientVertexBuffer buffer; in submit() 85 bgfx::setVertexBuffer(0, &buffer); in submit() 255 bgfx::FrameBufferHandle handle = BGFX_INVALID_HANDLE; in setup_view() 270 bgfx::setViewFrameBuffer(view, handle); in setup_view() 271 bgfx::setViewRect(view, 0, 0, width, height); in setup_view() 273 const bgfx::Caps* caps = bgfx::getCaps(); in setup_view() 280 bgfx::setViewTransform(view, nullptr, projMat); in setup_view() 290 bgfx::allocTransientVertexBuffer(buffer, 6, ScreenVertex::ms_decl); in put_screen_buffer() 304 bgfx::RendererType::Enum renderer_type = bgfx::getRendererType(); in put_screen_buffer() 305 if (renderer_type == bgfx::RendererType::OpenGL || renderer_type == bgfx::RendererType::OpenGLES) in put_screen_buffer() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/examples/11-fontsdf/ |
H A D | fontsdf.cpp | 54 bgfx::Init init; in init() 60 bgfx::init(init); in init() 63 bgfx::setDebug(m_debug); in init() 66 bgfx::setViewClear(0 in init() 129 bgfx::shutdown(); in shutdown() 190 bgfx::setViewRect(0, 0, 0, uint16_t(m_width), uint16_t(m_height) ); in update() 194 bgfx::touch(0); in update() 205 const bgfx::Caps* caps = bgfx::getCaps(); in update() 209 bgfx::setViewTransform(0, view, ortho); in update() 237 bgfx::setTransform(tmpMat3); in update() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/examples/11-fontsdf/ |
H A D | fontsdf.cpp | 54 bgfx::Init init; in init() 60 bgfx::init(init); in init() 63 bgfx::setDebug(m_debug); in init() 66 bgfx::setViewClear(0 in init() 129 bgfx::shutdown(); in shutdown() 190 bgfx::setViewRect(0, 0, 0, uint16_t(m_width), uint16_t(m_height) ); in update() 194 bgfx::touch(0); in update() 205 const bgfx::Caps* caps = bgfx::getCaps(); in update() 209 bgfx::setViewTransform(0, view, ortho); in update() 237 bgfx::setTransform(tmpMat3); in update() [all …]
|
/dports/emulators/mess/mame-mame0226/3rdparty/bgfx/tools/shaderc/ |
H A D | shaderc_hlsl.cpp | 25 namespace bgfx { namespace hlsl namespace 162 bgfx::Attrib::Enum m_attr; 169 { bgfx::Attrib::Position, "POSITION", 0 }, 170 { bgfx::Attrib::Normal, "NORMAL", 0 }, 171 { bgfx::Attrib::Tangent, "TANGENT", 0 }, 172 { bgfx::Attrib::Bitangent, "BITANGENT", 0 }, 173 { bgfx::Attrib::Color0, "COLOR", 0 }, 174 { bgfx::Attrib::Color1, "COLOR", 1 }, 427 if (ris.m_attr != bgfx::Attrib::Count) in getReflectionDataD3D11() 656 uint16_t attrs[bgfx::Attrib::Count]; in compile() [all …]
|
/dports/emulators/mame/mame-mame0226/3rdparty/bgfx/tools/shaderc/ |
H A D | shaderc_hlsl.cpp | 25 namespace bgfx { namespace hlsl namespace 162 bgfx::Attrib::Enum m_attr; 169 { bgfx::Attrib::Position, "POSITION", 0 }, 170 { bgfx::Attrib::Normal, "NORMAL", 0 }, 171 { bgfx::Attrib::Tangent, "TANGENT", 0 }, 172 { bgfx::Attrib::Bitangent, "BITANGENT", 0 }, 173 { bgfx::Attrib::Color0, "COLOR", 0 }, 174 { bgfx::Attrib::Color1, "COLOR", 1 }, 427 if (ris.m_attr != bgfx::Attrib::Count) in getReflectionDataD3D11() 656 uint16_t attrs[bgfx::Attrib::Count]; in compile() [all …]
|