Skip to content

Move bgfx shader construction into ShaderCompiler class - #418

Merged
bghgary merged 3 commits into
BabylonJS:masterfrom
bghgary:shader-compiler-refactor
Sep 24, 2020
Merged

Move bgfx shader construction into ShaderCompiler class#418
bghgary merged 3 commits into
BabylonJS:masterfrom
bghgary:shader-compiler-refactor

Conversation

@bghgary

@bghgary bghgary commented Sep 23, 2020

Copy link
Copy Markdown
Contributor

This is the first step towards fixing #300. This change only move codes around and does not change functionality.

Tested on Win32, Android, and macOS.

@bghgary
bghgary requested review from CedricGuillemet and syntheticmagus and removed request for syntheticmagus September 23, 2020 23:36
const auto vertexSource = info[0].As<Napi::String>().Utf8Value();
const auto fragmentSource = info[1].As<Napi::String>().Utf8Value();
const std::string vertexSource{info[0].As<Napi::String>().Utf8Value()};
const std::string fragmentSource = info[1].As<Napi::String>().Utf8Value();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Initializer list instead of assignment for this one too?

@bghgary
bghgary merged commit 2146ad8 into BabylonJS:master Sep 24, 2020
@bghgary
bghgary deleted the shader-compiler-refactor branch November 2, 2021 22:17
CedricGuillemet added a commit to CedricGuillemet/BabylonNative that referenced this pull request Sep 2, 2026
080f466590 Added bx::hasUniqueObjectRepresentation type trait. (BabylonJS#420)
671a001d3e tinystl: reset() keeps the bucket table; clear() still shrinks to 9. (BabylonJS#419)
9f874936e2 Added ability to move file into trash. (BabylonJS#418)
9e3fadf6f1 Fixed floatFlip, SIMD variable-shift masks and %g precision, and added tests. (BabylonJS#417)
26ff6d907d MinGW: Fix sal. (BabylonJS#416)
0a09590ac8 Added positional arguments to CommandLine. (BabylonJS#415)
822be40688 Scanner: Class::Identifier must not start with a digit. (BabylonJS#414)
43bfe29402 Fixed DLL search order hijacking in dlopen. (BabylonJS#413)
0b001f5f36 MSVC: Added ARM64 target. (BabylonJS#412)
056ea3486c Scanner: Cleanup. (BabylonJS#411)
9916e720fc Added scanner. (BabylonJS#410)
cd6720ce9a platform.h: detect MSVC ARM64 as 64-bit and raise 32-bit Windows minimum (BabylonJS#409)
5a2b876258 fromString: Parse hex float literals. (BabylonJS#408)
a7257985fa Added bx::isEqual for bx::StringView. (BabylonJS#407)
c98e98cde1 Fixed amalgamated build. (BabylonJS#406)
ed183eb246 Allow files with 10k+ lines to align nicely. (BabylonJS#405)

git-subtree-dir: Dependencies/bx
git-subtree-split: 080f466590c161664f2a3c5d21e05bd31cc9c8c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants