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

Error C2679: Binary '<<' Operator Issue when DEBUG_COMMAND_STREAM is true #7966

Open
ghost opened this issue Jul 8, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jul 8, 2024

⚠️ Issues not using this template will be systematically closed.

Describe the bug
When setting DEBUG_COMMAND_STREAM to true, the source code fails to compile due to binary << operator errors.

To Reproduce
Steps to reproduce the behavior:

  1. Set #define DEBUG_COMMAND_STREAM true in the source code.
  2. Start the build process.
  3. Observe the compilation errors related to the binary << operator.

Expected behavior
The source code should compile successfully without errors when DEBUG_COMMAND_STREAM is set to true.

Screenshots
Not applicable.

Logs

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	C2679	binary '<<': no operator found which takes a right-hand operand of type 'const FIRST' (or there is no acceptable conversion)
        with
        [
            FIRST=filament::backend::CompilerPriorityQueue
        ]	backend	D:\projects\filament\filament\backend\src\CommandStream.cpp	47		
Error	C2679	binary '<<': no operator found which takes a right-hand operand of type 'const FIRST' (or there is no acceptable conversion)
        with
        [
            FIRST=filament::backend::ShaderStage
        ]	backend	D:\projects\filament\filament\backend\src\CommandStream.cpp	47		

Desktop (please complete the following information):

  • OS: Windows 11
  • GPU: NVIDIA RTX 3050 Laptop
  • Backend: OpenGL

Smartphone (please complete the following information):
Not applicable.

Additional context
The errors occur specifically when DEBUG_COMMAND_STREAM is defined as true. There are no suitable operator overloads for the binary << operation with the types CompilerPriorityQueue and ShaderStage.

@pixelflinger pixelflinger self-assigned this Jul 8, 2024
@pixelflinger pixelflinger added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant