mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-01 22:55:23 +00:00
Updated spirv-tools.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
int main() {
|
||||
const std::string source =
|
||||
" OpCapability Linkage "
|
||||
" OpCapability Shader "
|
||||
" OpMemoryModel Logical GLSL450 "
|
||||
" OpSource GLSL 450 "
|
||||
@@ -36,8 +37,8 @@ int main() {
|
||||
" %spec = OpSpecConstant %int 0 "
|
||||
"%const = OpConstant %int 42";
|
||||
|
||||
spvtools::SpirvTools core(SPV_ENV_VULKAN_1_0);
|
||||
spvtools::Optimizer opt(SPV_ENV_VULKAN_1_0);
|
||||
spvtools::SpirvTools core(SPV_ENV_UNIVERSAL_1_3);
|
||||
spvtools::Optimizer opt(SPV_ENV_UNIVERSAL_1_3);
|
||||
|
||||
auto print_msg_to_stderr = [](spv_message_level_t, const char*,
|
||||
const spv_position_t&, const char* m) {
|
||||
|
||||
Reference in New Issue
Block a user