Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#194 define Preprocessor #262

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
e0e714c
#194 define preprocessor
himaanisrivatsava Jan 5, 2025
508425b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
f4c8ec1
#194 define preprocessor
himaanisrivatsava Jan 5, 2025
c7352c5
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
61aff97
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
b5b55a3
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
06c0797
Merge branch 'main' into preprocessor
himaanisrivatsava Jan 5, 2025
fa8e638
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
4a726e9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
a9e1657
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
9414a1e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
64a4d12
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
7464515
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
c218488
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
d81c378
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
555b23e
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
89015e8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
a9c8db0
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
59b2d89
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
4b8a770
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
c842395
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
4331fc8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
9f195fb
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
ef44bbd
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
107f040
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
42b334f
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
ef58756
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
5c6adb0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
962c7ca
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
455629a
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
7ed60e3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
90f443c
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
a3f29c8
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
fb59300
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
bbdf765
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
3957917
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
d380521
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
b197339
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
2808ec6
#194 define preprocessor .... #'commit30?
himaanisrivatsava Jan 5, 2025
ef91086
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
1997294
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
1832d69
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 5, 2025
08fea6f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 5, 2025
e88e79d
Update test_preprocessor.py
himaanisrivatsava Jan 5, 2025
f30648c
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 6, 2025
2dac541
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 6, 2025
d576ecb
Delete test_preprocessor.py
himaanisrivatsava Jan 13, 2025
0696956
Create test_preprocessor.py
himaanisrivatsava Jan 13, 2025
55f8af3
Update test_preprocessor.py
himaanisrivatsava Jan 13, 2025
6121a87
Update test_preprocessor.py
himaanisrivatsava Jan 13, 2025
603f452
Update test_preprocessor.py
himaanisrivatsava Jan 13, 2025
39f1eb3
Update test_preprocessor.py
himaanisrivatsava Jan 13, 2025
eda2117
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 13, 2025
d1c788f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 13, 2025
add50e2
trial #2
himaanisrivatsava Jan 13, 2025
8554778
Merge branch 'preprocessor' of https://github.com/himaanisrivatsava/c…
himaanisrivatsava Jan 13, 2025
dad62ed
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 13, 2025
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
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 5, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4a726e94180c1168eb4e5c677e2dd297cb289053
5 changes: 3 additions & 2 deletions tests/test_backend/test_directx/test_preprocessor.py
Original file line number Diff line number Diff line change
@@ -3,10 +3,12 @@
from DirectxParser import HLSLParser
from DirectxCrossGLCodeGen import HLSLToCrossGLConverter


@pytest.fixture
def converter():
return HLSLToCrossGLConverter()


def test_include_directive(converter):
shader_code = '#include "common.hlsl"\nfloat4 main() : SV_Target { return 0; }'
expected_output = (
@@ -17,8 +19,7 @@ def test_include_directive(converter):
parser = HLSLParser(tokens)
ast = parser.parse()
output = converter.convert(ast)

# Check if the included file path is part of the output
assert "// Included file: common.hlsl" in output
# Additional assertions can be added here to verify the correctness of the output

Loading