Working with ogre next eris. The window base window creating has no problems. This is my base code:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "OgreRoot.h"
#include "OgreWindow.h"
#include "OgreCamera.h"
#include "OgreHlmsPbs.h"
#include "OgreHlmsUnlit.h"
#include "OgreArchiveManager.h"
#include "Compositor/OgreCompositorManager2.h"
#include "OgreHlmsManager.h"
#include "OgreTextureGpuManager.h"
#include "OgreResourceGroupManager.h"
#include "OgreMeshManager.h"
#include "OgreMeshManager2.h"
#include "OgreItem.h"
#include "OgreHlmsPbsDatablock.h"
#include <OgreAbiUtils.h>
// Великий и ебучий HLMS
void setupHlms(Ogre::Root* root) {
Ogre::String dataFolder = "C:/Users/DimoNULL/Desktop/onsdk/Media/";
Ogre::HlmsManager* hlmsManager = root->getHlmsManager();
Ogre::ArchiveManager& am = *Ogre::ArchiveManager::getSingletonPtr();
Ogre::RenderSystem* rs = root->getRenderSystem();
Ogre::String shaderSyntax = "GLSL";
auto loadArch = [&](Ogre::String path) -> Ogre::Archive* {
return am.load(path, "FileSystem", true);
};
try {
Ogre::ArchiveVec commonLibraries;
commonLibraries.push_back(loadArch(dataFolder + "Hlms/Common/Any"));
commonLibraries.push_back(loadArch(dataFolder + "Hlms/Common/" + shaderSyntax));
Ogre::ArchiveVec unlitLibraries = commonLibraries;
unlitLibraries.push_back(loadArch(dataFolder + "Hlms/Unlit/Any"));
Ogre::HlmsUnlit* hlmsUnlit = new Ogre::HlmsUnlit(loadArch(dataFolder + "Hlms/Unlit/" + shaderSyntax), &unlitLibraries);
hlmsManager->registerHlms(hlmsUnlit);
Ogre::ArchiveVec pbsLibraries = commonLibraries;
pbsLibraries.push_back(loadArch(dataFolder + "Hlms/Pbs/Any"));
Ogre::HlmsPbs* hlmsPbs = new Ogre::HlmsPbs(loadArch(dataFolder + "Hlms/Pbs/" + shaderSyntax), &pbsLibraries);
hlmsManager->registerHlms(hlmsPbs);
hlmsPbs->setDebugOutputPath(true, true, "C:/Users/DimoNULL/Desktop/onsdk/DebugSh");
hlmsUnlit->setDebugOutputPath(true, true, "C:/Users/DimoNULL/Desktop/onsdk/DebugSh");
hlmsUnlit->_changeRenderSystem(rs);
hlmsPbs->_changeRenderSystem(rs);
Ogre::HlmsManager* hlmsManager = root->getHlmsManager();
}
catch (Ogre::Exception& e) {
MessageBoxA(NULL, e.getFullDescription().c_str(), "Ogre HLMS Error", MB_OK | MB_ICONERROR);
throw;
}
}
int main() {
Ogre::AbiCookie cookie = Ogre::generateAbiCookie();
Ogre::String pluginsPath = "C:/Users/DimoNULL/source/repos/3DEngineTryNHuiZnaetSkoka/x64/Release/plugins.cfg";
Ogre::Root* root = new Ogre::Root(&cookie, pluginsPath, "", "Ogre.log", "MyErisApp");
//Рендер система vulkan
Ogre::RenderSystem* rs = root->getRenderSystemByName("Vulkan Rendering Subsystem");
if (!rs) {
MessageBoxA(NULL, "RenderSystem found!", "Error", MB_OK);
return -1;
}
root->setRenderSystem(rs);
root->initialise(false);
Ogre::NameValuePairList params;
params["gamma"] = "true";
Ogre::Window* window = root->createRenderWindow("Ogre-Next 3.0 Eris Window", 1280, 720, false, ¶ms);
setupHlms(root);
Ogre::HlmsManager* hlmsManager = root->getHlmsManager();
if (!hlmsManager->getHlms(Ogre::HLMS_PBS) || !hlmsManager->getHlms(Ogre::HLMS_UNLIT)) {
MessageBoxA(NULL, "HLMS handlers were not registered properly!", "Error", MB_OK);
return -1;
}
// Настройка ресурсов
Ogre::ResourceGroupManager& rgm = Ogre::ResourceGroupManager::getSingleton();
rgm.addResourceLocation("C:/Users/DimoNULL/Desktop/onsdk/Media/models/", "FileSystem", "General");
rgm.initialiseAllResourceGroups(true);
Ogre::SceneManager* sceneMgr = root->createSceneManager(Ogre::ST_GENERIC, 1, "MainSM");
Ogre::Camera* camera = sceneMgr->createCamera("MainCam");
camera->setPosition(Ogre::Vector3(0, 50, 100));
camera->lookAt(Ogre::Vector3(0, 0, 0));
camera->setNearClipDistance(0.1f);
// Workspace
Ogre::CompositorManager2* compMgr = root->getCompositorManager2();
compMgr->createBasicWorkspaceDef("DemoWorkspace", Ogre::ColourValue(0.2f, 0.4f, 0.6f));
compMgr->addWorkspace(sceneMgr, window->getTexture(), camera, "DemoWorkspace", true);
try {
//Ogre::Item* item = sceneMgr->createItem("CornellBox.mesh", "General", Ogre::SCENE_DYNAMIC);
//item->setDatablock(datablock);
//Ogre::SceneNode* node = sceneMgr->getRootSceneNode(Ogre::SCENE_DYNAMIC)->createChildSceneNode(Ogre::SCENE_DYNAMIC);
//node->attachObject(item);
}
catch (...) {
}
Ogre::Light* light = sceneMgr->createLight();
Ogre::SceneNode* lightNode = sceneMgr->getRootSceneNode()->createChildSceneNode();
lightNode->attachObject(light);
light->setType(Ogre::Light::LT_DIRECTIONAL);
lightNode->setDirection(Ogre::Vector3(-1, -1, -1).normalisedCopy());
// win msg loop
MSG msg;
bool running = true;
while (running) {
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
if (msg.message == WM_QUIT) running = false;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
//running = false;
if (window->isClosed()) break;
if (!root->renderOneFrame()) break;
}
delete root;
return 0;
}
But if i uncommenting try construction with item creating, window instantly closing, and programm have this log:
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Mesh2
Registering ResourceManager for type OldSkeleton
MovableObjectFactory for type 'ParticleSystem' registered.
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.18.0
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,psb,cut,xbm,xpm,gif,hdr,g3,sgi,rgb,rgba,bw,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti,x3f,webp,jxr,wdp,hdp
OITD codec registering
Registering ResourceManager for type HighLevelGpuProgram
MovableObjectFactory for type 'Decal' registered.
MovableObjectFactory for type 'InternalCubemapProbe' registered.
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Item' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'ParticleSystem2' registered.
MovableObjectFactory for type 'Rectangle2Dv2' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject2' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
MovableObjectFactory for type 'WireAabb' registered.
Loading library .\RenderSystem_Vulkan
Installing plugin: Vulkan RenderSystem
[Vulkan] Initializing VkInstance
Found instance extension: VK_KHR_device_group_creation
Found instance extension: VK_KHR_external_fence_capabilities
Found instance extension: VK_KHR_external_memory_capabilities
Found instance extension: VK_KHR_external_semaphore_capabilities
Found instance extension: VK_KHR_get_physical_device_properties2
Found instance extension: VK_KHR_get_surface_capabilities2
Found instance extension: VK_KHR_surface
Found instance extension: VK_KHR_surface_protected_capabilities
Found instance extension: VK_KHR_win32_surface
Found instance extension: VK_EXT_debug_report
Found instance extension: VK_EXT_debug_utils
Found instance extension: VK_EXT_surface_maintenance1
Found instance extension: VK_EXT_swapchain_colorspace
Found instance extension: VK_NV_external_memory_capabilities
Found instance extension: VK_KHR_portability_enumeration
Found instance extension: VK_LUNARG_direct_driver_loading
Found instance layer: VK_LAYER_NV_optimus
Found instance layer: VK_LAYER_VALVE_steam_overlay
Found instance layer: VK_LAYER_VALVE_steam_fossilize
Requesting Instance Extension: VK_KHR_get_physical_device_properties2
Requesting Instance Extension: VK_KHR_win32_surface
Requesting Instance Extension: VK_KHR_surface
[Vulkan] Found 1 devices
[Vulkan] Found devices:
NVIDIA GeForce GTX 1660 SUPER #0
Plugin successfully installed
*-*-* OGRE Initialising
*-*-* Version 4.0.0unstable (F)
CPU Identifier & Features
-------------------------
* CPU ID: GenuineIntel: Intel(R) Core(TM) i5-14400F
* Logical cores: 16
* SSE: yes
* SSE2: yes
* SSE3: yes
* MMX: yes
* MMXEXT: yes
* 3DNOW: no
* 3DNOWEXT: no
* CMOV: yes
* TSC: yes
* FPU: yes
* PRO: yes
* HT: no
-------------------------
[Vulkan] Found 1 devices
[Vulkan] Selecting device 0
Found device extension: VK_KHR_16bit_storage
Found device extension: VK_KHR_8bit_storage
Found device extension: VK_KHR_acceleration_structure
Found device extension: VK_KHR_bind_memory2
Found device extension: VK_KHR_buffer_device_address
Found device extension: VK_KHR_calibrated_timestamps
Found device extension: VK_KHR_copy_commands2
Found device extension: VK_KHR_create_renderpass2
Found device extension: VK_KHR_dedicated_allocation
Found device extension: VK_KHR_deferred_host_operations
Found device extension: VK_KHR_depth_stencil_resolve
Found device extension: VK_KHR_descriptor_update_template
Found device extension: VK_KHR_device_group
Found device extension: VK_KHR_draw_indirect_count
Found device extension: VK_KHR_driver_properties
Found device extension: VK_KHR_dynamic_rendering
Found device extension: VK_KHR_dynamic_rendering_local_read
Found device extension: VK_KHR_external_fence
Found device extension: VK_KHR_external_fence_win32
Found device extension: VK_KHR_external_memory
Found device extension: VK_KHR_external_memory_win32
Found device extension: VK_KHR_external_semaphore
Found device extension: VK_KHR_external_semaphore_win32
Found device extension: VK_KHR_format_feature_flags2
Found device extension: VK_KHR_fragment_shader_barycentric
Found device extension: VK_KHR_fragment_shading_rate
Found device extension: VK_KHR_get_memory_requirements2
Found device extension: VK_KHR_image_format_list
Found device extension: VK_KHR_imageless_framebuffer
Found device extension: VK_KHR_index_type_uint8
Found device extension: VK_KHR_line_rasterization
Found device extension: VK_KHR_load_store_op_none
Found device extension: VK_KHR_maintenance1
Found device extension: VK_KHR_maintenance2
Found device extension: VK_KHR_maintenance3
Found device extension: VK_KHR_maintenance4
Found device extension: VK_KHR_maintenance5
Found device extension: VK_KHR_maintenance6
Found device extension: VK_KHR_map_memory2
Found device extension: VK_KHR_multiview
Found device extension: VK_KHR_pipeline_executable_properties
Found device extension: VK_KHR_pipeline_library
Found device extension: VK_KHR_present_id
Found device extension: VK_KHR_present_wait
Found device extension: VK_KHR_push_descriptor
Found device extension: VK_KHR_ray_tracing_maintenance1
Found device extension: VK_KHR_ray_tracing_pipeline
Found device extension: VK_KHR_relaxed_block_layout
Found device extension: VK_KHR_sampler_mirror_clamp_to_edge
Found device extension: VK_KHR_sampler_ycbcr_conversion
Found device extension: VK_KHR_separate_depth_stencil_layouts
Found device extension: VK_KHR_shader_atomic_int64
Found device extension: VK_KHR_shader_clock
Found device extension: VK_KHR_shader_draw_parameters
Found device extension: VK_KHR_shader_expect_assume
Found device extension: VK_KHR_shader_float16_int8
Found device extension: VK_KHR_shader_float_controls
Found device extension: VK_KHR_shader_float_controls2
Found device extension: VK_KHR_shader_integer_dot_product
Found device extension: VK_KHR_shader_maximal_reconvergence
Found device extension: VK_KHR_shader_non_semantic_info
Found device extension: VK_KHR_shader_quad_control
Found device extension: VK_KHR_shader_subgroup_extended_types
Found device extension: VK_KHR_shader_subgroup_rotate
Found device extension: VK_KHR_shader_subgroup_uniform_control_flow
Found device extension: VK_KHR_shader_terminate_invocation
Found device extension: VK_KHR_spirv_1_4
Found device extension: VK_KHR_storage_buffer_storage_class
Found device extension: VK_KHR_swapchain
Found device extension: VK_KHR_swapchain_mutable_format
Found device extension: VK_KHR_synchronization2
Found device extension: VK_KHR_timeline_semaphore
Found device extension: VK_KHR_uniform_buffer_standard_layout
Found device extension: VK_KHR_variable_pointers
Found device extension: VK_KHR_vertex_attribute_divisor
Found device extension: VK_KHR_video_decode_h264
Found device extension: VK_KHR_video_decode_h265
Found device extension: VK_KHR_video_decode_queue
Found device extension: VK_KHR_video_encode_h264
Found device extension: VK_KHR_video_encode_h265
Found device extension: VK_KHR_video_encode_queue
Found device extension: VK_KHR_video_maintenance1
Found device extension: VK_KHR_video_queue
Found device extension: VK_KHR_vulkan_memory_model
Found device extension: VK_KHR_win32_keyed_mutex
Found device extension: VK_KHR_workgroup_memory_explicit_layout
Found device extension: VK_KHR_zero_initialize_workgroup_memory
Found device extension: VK_EXT_4444_formats
Found device extension: VK_EXT_attachment_feedback_loop_dynamic_state
Found device extension: VK_EXT_attachment_feedback_loop_layout
Found device extension: VK_EXT_blend_operation_advanced
Found device extension: VK_EXT_border_color_swizzle
Found device extension: VK_EXT_buffer_device_address
Found device extension: VK_EXT_calibrated_timestamps
Found device extension: VK_EXT_color_write_enable
Found device extension: VK_EXT_conditional_rendering
Found device extension: VK_EXT_conservative_rasterization
Found device extension: VK_EXT_custom_border_color
Found device extension: VK_EXT_depth_bias_control
Found device extension: VK_EXT_depth_clamp_zero_one
Found device extension: VK_EXT_depth_clip_control
Found device extension: VK_EXT_depth_clip_enable
Found device extension: VK_EXT_depth_range_unrestricted
Found device extension: VK_EXT_descriptor_buffer
Found device extension: VK_EXT_descriptor_indexing
Found device extension: VK_EXT_discard_rectangles
Found device extension: VK_EXT_dynamic_rendering_unused_attachments
Found device extension: VK_EXT_extended_dynamic_state
Found device extension: VK_EXT_extended_dynamic_state2
Found device extension: VK_EXT_extended_dynamic_state3
Found device extension: VK_EXT_external_memory_host
Found device extension: VK_EXT_fragment_shader_interlock
Found device extension: VK_EXT_full_screen_exclusive
Found device extension: VK_EXT_graphics_pipeline_library
Found device extension: VK_EXT_hdr_metadata
Found device extension: VK_EXT_host_image_copy
Found device extension: VK_EXT_host_query_reset
Found device extension: VK_EXT_image_2d_view_of_3d
Found device extension: VK_EXT_image_robustness
Found device extension: VK_EXT_image_sliced_view_of_3d
Found device extension: VK_EXT_image_view_min_lod
Found device extension: VK_EXT_index_type_uint8
Found device extension: VK_EXT_inline_uniform_block
Found device extension: VK_EXT_line_rasterization
Found device extension: VK_EXT_load_store_op_none
Found device extension: VK_EXT_memory_budget
Found device extension: VK_EXT_memory_priority
Found device extension: VK_EXT_mesh_shader
Found device extension: VK_EXT_multi_draw
Found device extension: VK_EXT_mutable_descriptor_type
Found device extension: VK_EXT_nested_command_buffer
Found device extension: VK_EXT_non_seamless_cube_map
Found device extension: VK_EXT_pageable_device_local_memory
Found device extension: VK_EXT_pci_bus_info
Found device extension: VK_EXT_pipeline_creation_cache_control
Found device extension: VK_EXT_pipeline_creation_feedback
Found device extension: VK_EXT_pipeline_library_group_handles
Found device extension: VK_EXT_pipeline_robustness
Found device extension: VK_EXT_post_depth_coverage
Found device extension: VK_EXT_primitive_topology_list_restart
Found device extension: VK_EXT_primitives_generated_query
Found device extension: VK_EXT_private_data
Found device extension: VK_EXT_provoking_vertex
Found device extension: VK_EXT_queue_family_foreign
Found device extension: VK_EXT_robustness2
Found device extension: VK_EXT_sample_locations
Found device extension: VK_EXT_sampler_filter_minmax
Found device extension: VK_EXT_scalar_block_layout
Found device extension: VK_EXT_separate_stencil_usage
Found device extension: VK_EXT_shader_atomic_float
Found device extension: VK_EXT_shader_demote_to_helper_invocation
Found device extension: VK_EXT_shader_image_atomic_int64
Found device extension: VK_EXT_shader_module_identifier
Found device extension: VK_EXT_shader_object
Found device extension: VK_EXT_shader_subgroup_ballot
Found device extension: VK_EXT_shader_subgroup_vote
Found device extension: VK_EXT_shader_viewport_index_layer
Found device extension: VK_EXT_subgroup_size_control
Found device extension: VK_EXT_swapchain_maintenance1
Found device extension: VK_EXT_texel_buffer_alignment
Found device extension: VK_EXT_tooling_info
Found device extension: VK_EXT_transform_feedback
Found device extension: VK_EXT_vertex_attribute_divisor
Found device extension: VK_EXT_vertex_input_dynamic_state
Found device extension: VK_EXT_ycbcr_2plane_444_formats
Found device extension: VK_EXT_ycbcr_image_arrays
Found device extension: VK_NV_clip_space_w_scaling
Found device extension: VK_NV_compute_shader_derivatives
Found device extension: VK_NV_copy_memory_indirect
Found device extension: VK_NV_corner_sampled_image
Found device extension: VK_NV_coverage_reduction_mode
Found device extension: VK_NV_cuda_kernel_launch
Found device extension: VK_NV_dedicated_allocation
Found device extension: VK_NV_dedicated_allocation_image_aliasing
Found device extension: VK_NV_descriptor_pool_overallocation
Found device extension: VK_NV_device_diagnostic_checkpoints
Found device extension: VK_NV_device_diagnostics_config
Found device extension: VK_NV_device_generated_commands
Found device extension: VK_NV_device_generated_commands_compute
Found device extension: VK_NV_external_memory
Found device extension: VK_NV_external_memory_win32
Found device extension: VK_NV_fill_rectangle
Found device extension: VK_NV_fragment_coverage_to_color
Found device extension: VK_NV_fragment_shader_barycentric
Found device extension: VK_NV_fragment_shading_rate_enums
Found device extension: VK_NV_framebuffer_mixed_samples
Found device extension: VK_NV_geometry_shader_passthrough
Found device extension: VK_NV_inherited_viewport_scissor
Found device extension: VK_NV_linear_color_attachment
Found device extension: VK_NV_low_latency
Found device extension: VK_NV_low_latency2
Found device extension: VK_NV_memory_decompression
Found device extension: VK_NV_mesh_shader
Found device extension: VK_NV_raw_access_chains
Found device extension: VK_NV_ray_tracing
Found device extension: VK_NV_ray_tracing_invocation_reorder
Found device extension: VK_NV_representative_fragment_test
Found device extension: VK_NV_sample_mask_override_coverage
Found device extension: VK_NV_scissor_exclusive
Found device extension: VK_NV_shader_atomic_float16_vector
Found device extension: VK_NV_shader_image_footprint
Found device extension: VK_NV_shader_sm_builtins
Found device extension: VK_NV_shader_subgroup_partitioned
Found device extension: VK_NV_shading_rate_image
Found device extension: VK_NV_viewport_array2
Found device extension: VK_NV_viewport_swizzle
Found device extension: VK_NV_win32_keyed_mutex
Found device extension: VK_NVX_binary_import
Found device extension: VK_NVX_image_view_handle
Found device extension: VK_NVX_multiview_per_view_attributes
Found device extension: VK_AMD_buffer_marker
Requesting Extension: VK_KHR_16bit_storage
Requesting Extension: VK_KHR_maintenance2
Requesting Extension: VK_KHR_shader_float16_int8
Requesting Extension: VK_KHR_storage_buffer_storage_class
Requesting Extension: VK_EXT_shader_subgroup_vote
Requesting Extension: VK_EXT_shader_viewport_index_layer
Requesting Extension: VK_KHR_swapchain
[Vulkan] API Version: 1.3.280 (0x403118)
[Vulkan] Driver Version (raw): 0x8c178000
[Vulkan] Vendor ID: 0x10de
[Vulkan] Device ID: 0x21c4
Registering ResourceManager for type GpuProgram
RenderSystem capabilities
-------------------------
RenderSystem Name: Vulkan Rendering Subsystem
GPU Vendor: nvidia
Device Name: NVIDIA GeForce GTX 1660 SUPER
Driver Version: 560.94.0.0
* Fixed function pipeline: no
* Hardware generation of mipmaps: yes
* Texture blending: yes
* Anisotropic texture filtering: yes
* Dot product texture operation: yes
* Cube mapping: yes
* Hardware stencil buffer: yes
- Stencil depth: 8
- Two sided stencil support: yes
- Wrap stencil values: yes
* Hardware vertex / index buffers: yes
* 32-bit index buffers: no
* Vertex programs: no
* Number of floating-point constants for vertex programs: 256
* Number of integer constants for vertex programs: 256
* Number of boolean constants for vertex programs: 256
* Fragment programs: no
* Number of floating-point constants for fragment programs: 256
* Number of integer constants for fragment programs: 256
* Number of boolean constants for fragment programs: 256
* Geometry programs: no
* Number of floating-point constants for geometry programs: 256
* Number of integer constants for geometry programs: 256
* Number of boolean constants for geometry programs: 256
* Tessellation Hull programs: no
* Number of floating-point constants for tessellation hull programs: 256
* Number of integer constants for tessellation hull programs: 256
* Number of boolean constants for tessellation hull programs: 256
* Tessellation Domain programs: no
* Number of floating-point constants for tessellation domain programs: 256
* Number of integer constants for tessellation domain programs: 256
* Number of boolean constants for tessellation domain programs: 256
* Compute programs: yes
* Number of floating-point constants for compute programs: 256
* Number of integer constants for compute programs: 256
* Number of boolean constants for compute programs: 256
* Supported Shader Profiles: glsl glslvk hlsl hlslvk
* Texture Compression: yes
- DXT: yes
- VTC: no
- PVRTC: no
- ATC: no
- ETC1: no
- ETC2: no
- BC4/BC5: yes
- BC6H/BC7: yes
- ASTC: no
* Hardware Occlusion Query: no
* User clip planes: yes
* VET_UBYTE4 vertex element type: yes
* Infinite far plane projection: yes
* Hardware render-to-texture: yes
* Floating point textures: yes
* Non-power-of-two textures: yes
* 1d textures: yes
* Volume textures: yes
* Max Texture resolution (2D) 16384
* Max Texture resolution (3D) 4096
* Max Texture resolution (Cubemaps) 16384
* Multiple Render Targets: 1
- With different bit depths: no
* Point Sprites: yes
* Extended point parameters: yes
* Max Point Size: 256
* Vertex texture fetch: no
* Number of world matrices: 0
* Number of texture units: 32
* Stencil buffer depth: 8
* Number of vertex blend matrices: 0
* Render to Vertex Buffer : no
* Hardware Atomic Counters: no
* Shader 16-bit floating point (half): no
* Compute max threads per threadgroup per axis: 1024, 1024, 64
* Compute max threads per threadgroup total: 1024
* Using Reverse Z: yes
Supported memory types for general buffer usage: 59
Supported memory types for reading: 59
VkDevice will use coherent memory buffers: true
VkDevice will use non-coherent memory buffers: false
VkDevice will prefer coherent memory buffers: true
VkDevice will use coherent memory for reading: true
VkDevice read memory is coherent: true
Created VulkanWin32Window 'Ogre-Next 3.0 Eris Window' : 1297x760, 32bpp
Trying presentMode = IMMEDIATE_KHR
Chosen presentMode = IMMEDIATE_KHR
surfaceCaps.currentTransform = 1
DefaultWorkQueue('Root') initialising on thread main.
_hlmsMacroblockCreated
_hlmsBlendblockCreated
Particle Renderer Type 'billboard' registered
_hlmsSamplerblockCreated
_hlmsSamplerblockCreated
_hlmsSamplerblockCreated
_hlmsSamplerblockCreated
Added resource location 'C:/Users/DimoNULL/Desktop/onsdk/Media/models/' of type 'FileSystem' to resource group 'General'
Parsing scripts for resource group Autodetect
Finished parsing scripts for resource group Autodetect
Creating resources for group Autodetect
All done
Parsing scripts for resource group General
Parsing script CornellBox.material.json
_hlmsMacroblockCreated
Finished parsing scripts for resource group General
Creating resources for group General
All done
Parsing scripts for resource group Internal
Finished parsing scripts for resource group Internal
Creating resources for group Internal
All done
Mesh: Loading CornellBox.mesh.
Vulkan GLSL compiler error in 100000000VertexShader_vs:
ERROR: 0:262: '' : syntax error, unexpected RIGHT_BRACE
ERROR: 1 compilation errors. No code generated.
DEBUG LOG:
## ROOT LAYOUT BEGIN
{
"0" :
{
"const_buffers" : [0, 3],
"readonly_buffers" : [0, 1]
}
}
## ROOT LAYOUT END
#extension GL_EXT_samplerless_texture_functions : require
#define vulkan_layout layout
#define vulkan( x ) x
#define vk_comma ,
#define vkSampler1D sampler1D
#define vkSampler2D sampler2D
#define vkSampler2DArray sampler2DArray
#define vkSampler3D sampler3D
#define vkSamplerCube samplerCube
#define ogre_B0 set = 0, binding = 0
#define ogre_B1 set = 0, binding = 1
#define ogre_B2 set = 0, binding = 2
#define ogre_R0 set = 0, binding = 3
#define OGRE_POSITION location = 0
#define OGRE_BLENDWEIGHT location = 3
#define OGRE_BLENDINDICES location = 4
#define OGRE_BLENDWEIGHT2 location = 13
#define OGRE_BLENDINDICES2 location = 14
#define OGRE_NORMAL location = 1
#define OGRE_DIFFUSE location = 5
#define OGRE_SPECULAR location = 6
#define OGRE_TEXCOORD0 location = 7
#define OGRE_TEXCOORD1 location = 8
#define OGRE_TEXCOORD2 location = 9
#define OGRE_TEXCOORD3 location = 10
#define OGRE_TEXCOORD4 location = 11
#define OGRE_TEXCOORD5 location = 12
#define OGRE_TEXCOORD6 location = 13
#define OGRE_TEXCOORD7 location = 14
#define OGRE_BINORMAL location = 4294967295
#define OGRE_TANGENT location = 2
#define OGRE_DRAWID location = 15u
High-level program 100000000VertexShader_vs encountered an error during loading and is thus not supported.
OGRE EXCEPTION(3:RenderingAPIException): Vertex Program 100000000VertexShader_vs failed to compile. See compile log above for details. in VulkanProgram::compile at C:\Projects\Ogre\Ogre\ogre-next\RenderSystems\Vulkan\src\OgreVulkanProgram.cpp (line 754)
Vulkan GLSL compiler error in 100000000VertexShader_vs:
ERROR: 0:262: '' : syntax error, unexpected RIGHT_BRACE
ERROR: 1 compilation errors. No code generated.
DEBUG LOG:
## ROOT LAYOUT BEGIN
{
"0" :
{
"const_buffers" : [0, 3],
"readonly_buffers" : [0, 1]
}
}
## ROOT LAYOUT END
#extension GL_EXT_samplerless_texture_functions : require
#define vulkan_layout layout
#define vulkan( x ) x
#define vk_comma ,
#define vkSampler1D sampler1D
#define vkSampler2D sampler2D
#define vkSampler2DArray sampler2DArray
#define vkSampler3D sampler3D
#define vkSamplerCube samplerCube
#define ogre_B0 set = 0, binding = 0
#define ogre_B1 set = 0, binding = 1
#define ogre_B2 set = 0, binding = 2
#define ogre_R0 set = 0, binding = 3
#define OGRE_POSITION location = 0
#define OGRE_BLENDWEIGHT location = 3
#define OGRE_BLENDINDICES location = 4
#define OGRE_BLENDWEIGHT2 location = 13
#define OGRE_BLENDINDICES2 location = 14
#define OGRE_NORMAL location = 1
#define OGRE_DIFFUSE location = 5
#define OGRE_SPECULAR location = 6
#define OGRE_TEXCOORD0 location = 7
#define OGRE_TEXCOORD1 location = 8
#define OGRE_TEXCOORD2 location = 9
#define OGRE_TEXCOORD3 location = 10
#define OGRE_TEXCOORD4 location = 11
#define OGRE_TEXCOORD5 location = 12
#define OGRE_TEXCOORD6 location = 13
#define OGRE_TEXCOORD7 location = 14
#define OGRE_BINORMAL location = 4294967295
#define OGRE_TANGENT location = 2
#define OGRE_DRAWID location = 15u
C:\Users\DimoNULL\source\repos\3DEngineTryNHuiZnaetSkoka\x64\Release\3DEngineTryNHuiZnaetSkoka.exe (процесс 4960) завершил работу с кодом -1073740791 (0xc0000409).
Нажмите любую клавишу, чтобы закрыть это окно:
You can see, that the problem in 100000000VertexShader_vs. If you read it, you can see that the file is broken in 245 line. Here is cut momet: midf4 OGRE_SampleF
Working with ogre next eris. The window base window creating has no problems. This is my base code:
But if i uncommenting try construction with item creating, window instantly closing, and programm have this log:
You can see, that the problem in 100000000VertexShader_vs. If you read it, you can see that the file is broken in 245 line. Here is cut momet: midf4 OGRE_SampleF