Skip to content

Commit

Permalink
Remove static compute shader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jun 6, 2021
1 parent ccd49d3 commit e08d40a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ set(Random_BuildTests OFF CACHE INTERNAL "")
add_subdirectory("${DEPS_DIR}/random" EXCLUDE_FROM_ALL)

#SDL2
if(NOT LINUX OR NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
set(VIDEO_OPENGL OFF CACHE INTERNAL "")
set(VIDEO_OPENGLES OFF CACHE INTERNAL "")
endif()
add_subdirectory("${DEPS_DIR}/SDL2" EXCLUDE_FROM_ALL)

set(PHYSFS_BUILD_TEST OFF CACHE INTERNAL "")
Expand Down
1 change: 0 additions & 1 deletion shaders/compile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ declare_shader("guishader" "${CMAKE_CURRENT_LIST_DIR}/gui.vsh" "${CMAKE_CURRENT_

# mesh skinning compute shader
declare_shader("skincompute" "${CMAKE_CURRENT_LIST_DIR}/skinning_cs.glsl" "" "")
declare_shader("skinstaticcompute" "${CMAKE_CURRENT_LIST_DIR}/skinning_static_cs.glsl" "" "")
3 changes: 0 additions & 3 deletions src/RenderEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,6 @@ void RenderEngine::Init()
App::Resources->FileContentsAt("shaders/skincompute/compute.bin", shaderdata);
const bgfx::Memory* mem = bgfx::copy(&shaderdata[0], shaderdata.size());
skinningShaderHandle = bgfx::createProgram(bgfx::createShader(mem),true); //auto destroys shader when program is destroyed

App::Resources->FileContentsAt("shaders/skinstaticcompute/compute.bin", shaderdata);
const bgfx::Memory* mem2 = bgfx::copy(&shaderdata[0], shaderdata.size());
}

//create compute shader buffers
Expand Down

0 comments on commit e08d40a

Please sign in to comment.