Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/clang-format-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ jobs:
pull-requests: write
steps:
- name: Fetch LLVM sources
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout through merge base
uses: rmacklin/fetch-through-merge-base@bfe4d03a86f9afa52bc1a70e9814fc92a07f7b75 # v0.3.0
with:
base_ref: ${{ github.event.pull_request.base.ref }}
head_ref: ${{ github.event.pull_request.head.sha }}
deepen_length: 500

- name: Get changed files
id: changed-files
Expand Down
4 changes: 2 additions & 2 deletions tools/clang/unittests/DxrFallback/ShaderTesterImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void ShaderTesterImpl::initPipeline() {
std::vector<char> computeShaderBuffer;
ComPtr<ID3DBlob> computeShaderBlob;
if (m_blob) {
bytecode = CD3DX12_SHADER_BYTECODE(m_blob.Get());
bytecode = CD3DX12_SHADER_BYTECODE(m_blob.Get());
} else if (m_filename.find(L".cso") != std::wstring::npos) {
ReadFileToBuffer(m_filename, computeShaderBuffer);
bytecode = CD3DX12_SHADER_BYTECODE(computeShaderBuffer.data(),
Expand Down Expand Up @@ -547,4 +547,4 @@ void ShaderTesterImpl::printLog(int *log) {
for (int i = 0; i < count; ++i)
std::cout << pos[i] << " ";
std::cout << "\n";
}
}
Loading