Skip to content

Commit

Permalink
Try to fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattparks committed Jul 23, 2022
1 parent d62d892 commit 6c71e6f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 21 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: lukka/[email protected]
- name: Download Vulkan
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.3.216.0/windows/VulkanSDK-1.3.216.0-Installer.exe" -OutFile vulkan-sdk.exe
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.2.189.0/windows/VulkanSDK-1.2.189.0-Installer.exe" -OutFile vulkan-sdk.exe
$installer = Start-Process -FilePath vulkan-sdk.exe -Wait -PassThru -ArgumentList @("/S");
$installer.WaitForExit();
- name: Download OpenAL
Expand All @@ -31,8 +30,8 @@ jobs:
Expand-Archive -Path openal-soft.zip -DestinationPath C:\\
- name: Build
env:
VULKAN_SDK: "C:\\VulkanSDK\\1.3.216.0"
OPENALDIR: "C:\\openal-soft-1.22.0-bin"
VULKAN_SDK: "C:\\VulkanSDK\\1.2.189.0"
OPENALDIR: "C:\\openal-soft-1.22.2-bin"
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
Expand Down Expand Up @@ -81,7 +80,7 @@ jobs:
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Download Vulkan
run: |
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.3.216.0/windows/VulkanSDK-1.3.216.0-Installer.exe" -OutFile vulkan-sdk.exe
Invoke-WebRequest -Uri "https://sdk.lunarg.com/sdk/download/1.2.189.0/windows/VulkanSDK-1.2.189.0-Installer.exe" -OutFile vulkan-sdk.exe
$installer = Start-Process -FilePath vulkan-sdk.exe -Wait -PassThru -ArgumentList @("/S");
$installer.WaitForExit();
- name: Download OpenAL
Expand All @@ -90,8 +89,8 @@ jobs:
Expand-Archive -Path openal-soft.zip -DestinationPath C:\\
- name: Build
env:
VULKAN_SDK: "C:\\VulkanSDK\\1.3.216.0"
OPENALDIR: "C:\\openal-soft-1.22.0-bin"
VULKAN_SDK: "C:\\VulkanSDK\\1.2.189.0"
OPENALDIR: "C:\\openal-soft-1.22.2-bin"
shell: cmd
run: |
cmake --version
Expand Down
4 changes: 3 additions & 1 deletion Engine/Graphics/Graphics/Pipelines/Pipeline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class ACID_GRAPHICS_EXPORT Pipeline {

virtual ~Pipeline() = default;

virtual void BindPipeline(const CommandBuffer &commandBuffer) const = 0;
void BindPipeline(const CommandBuffer &commandBuffer) const {
vkCmdBindPipeline(commandBuffer, GetPipelineBindPoint(), GetPipeline());
}

virtual const Shader *GetShader() const = 0;
virtual bool IsPushDescriptors() const = 0;
Expand Down
4 changes: 0 additions & 4 deletions Engine/Graphics/Graphics/Pipelines/PipelineCompute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ void PipelineCompute::CmdRender(const CommandBuffer &commandBuffer, const Vector
vkCmdDispatch(commandBuffer, groupCountX, groupCountY, 1);
}

void PipelineCompute::BindPipeline(const CommandBuffer &commandBuffer) const {
vkCmdBindPipeline(commandBuffer, GetPipelineBindPoint(), GetPipeline());
}

void PipelineCompute::CreateShaderProgram() {
std::stringstream defineBlock;
for (const auto &[defineName, defineValue] : defines)
Expand Down
1 change: 0 additions & 1 deletion Engine/Graphics/Graphics/Pipelines/PipelineCompute.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class ACID_GRAPHICS_EXPORT PipelineCompute : public Pipeline {
~PipelineCompute();

void CmdRender(const CommandBuffer &commandBuffer, const Vector2ui &extent) const;
void BindPipeline(const CommandBuffer &commandBuffer) const override;

const std::filesystem::path &GetShaderStage() const { return shaderStage; }
const std::vector<Shader::Define> &GetDefines() const { return defines; }
Expand Down
4 changes: 0 additions & 4 deletions Engine/Graphics/Graphics/Pipelines/PipelineGraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ PipelineGraphics::~PipelineGraphics() {
vkDestroyDescriptorSetLayout(*logicalDevice, descriptorSetLayout, nullptr);
}

void PipelineGraphics::BindPipeline(const CommandBuffer &commandBuffer) const {
vkCmdBindPipeline(commandBuffer, GetPipelineBindPoint(), GetPipeline());
}

const ImageDepth *PipelineGraphics::GetDepthStencil(const std::optional<uint32_t> &stage) const {
return Graphics::Get()->GetRenderStage(stage ? *stage : this->stage.first)->GetDepthStencil();
}
Expand Down
2 changes: 0 additions & 2 deletions Engine/Graphics/Graphics/Pipelines/PipelineGraphics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class ACID_GRAPHICS_EXPORT PipelineGraphics : public Pipeline {
VkCullModeFlags cullMode = VK_CULL_MODE_BACK_BIT, VkFrontFace frontFace = VK_FRONT_FACE_CLOCKWISE, bool pushDescriptors = false);
~PipelineGraphics();

void BindPipeline(const CommandBuffer &commandBuffer) const override;

/**
* Gets the depth stencil used in a stage.
* @param stage The stage to get values from, if not provided the pipelines stage will be used.
Expand Down
4 changes: 2 additions & 2 deletions External/volk/volk.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
extern "C" {
#endif

struct VolkDeviceTable;
struct ACID_CONTEXT_EXPORT VolkDeviceTable;

/**
* Initialize library by loading Vulkan loader; call this function before creating the Vulkan instance.
Expand Down Expand Up @@ -129,7 +129,7 @@ ACID_CONTEXT_EXPORT void volkLoadDeviceTable(struct VolkDeviceTable* table, VkDe
/**
* Device-specific function pointer table
*/
struct VolkDeviceTable
struct ACID_CONTEXT_EXPORT VolkDeviceTable
{
/* VOLK_GENERATE_DEVICE_TABLE */
#if defined(VK_VERSION_1_0)
Expand Down

0 comments on commit 6c71e6f

Please sign in to comment.