Skip to content

Commit

Permalink
[vulkan] fixed a validation error that would shoe up during release b…
Browse files Browse the repository at this point in the history
…uilds when clearing textures
  • Loading branch information
PanosK92 committed Jan 17, 2025
1 parent e337dce commit 4300c39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 8 additions & 6 deletions code_of_conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ Welcome to the **Spartan Engine Community**, a space dedicated to growth, collab
## **Core Principles**

### **Free Speech and Respect**

We believe in the power of dialogue and the exchange of ideas. Disagreeing with someone doesn’t mean you dislike or hate them. Constructive debates are welcome and encouraged, as they are essential for growth.

### **Kindness and Logic**

Engage with others in a way that is kind and logical. A good argument doesn’t need insults; it stands on its own merit.

### **Self-Preservation of the Community**

While free speech is vital, behaviors that threaten the survival of the community via degrading the experience for other members (e.g., hostile conduct, personal attacks) will not be tolerated.

---
Expand All @@ -28,7 +31,7 @@ While free speech is vital, behaviors that threaten the survival of the communit

## **Unacceptable Behavior**

To preserve the community’s integrity, the following behaviors are not allowed:
To ensure the survival of the community, the following behaviors are not allowed:

- Lying, spreading false information or misrepresenting facts.
- Personal attacks, insults, or hostility (e.g., saying “F*** you” or worse).
Expand All @@ -40,22 +43,21 @@ To preserve the community’s integrity, the following behaviors are not allowed

We prioritize dialogue and open communication before taking action. If someone’s behavior becomes problematic:

1. **Direct Discussion**: They will be addressed honestly to resolve the issue.
2. **Final Option – Ban**: If dialogue fails and the behavior continues to threaten the community’s survival via degrading the experience for other members, a ban may be issued as a last resort.
1. **Discussion**: They will be addressed directly and honestly to resolve the issue.
2. **Ban**: If dialogue fails and the behavior continues to threaten the community’s survival via degrading the experience for other members, a ban will be issued to ensure self-preservation.

---

## **Reporting Issues**

If you encounter behavior that violates this Code of Conduct:
- Contact Panos (server admin).


- Contact Panos, publicly or privately, via any medium.

---

## **Final Note**

The Spartan Engine Community is built on the idea that we can all grow together. By adhering to this Code of Conduct, you’re contributing to an environment where ideas can flourish, connections can deepen, and individuals can evolve.

Let’s build something great together!
Let’shave fun and build great things!
6 changes: 6 additions & 0 deletions runtime/RHI/Vulkan/Vulkan_CommandList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ namespace spartan
used_stages |= pso.shaders[RHI_Shader_Type::Pixel] ? VK_PIPELINE_STAGE_2_FRAGMENT_SHADER_BIT : 0;
used_stages |= pso.shaders[RHI_Shader_Type::Compute] ? VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT : 0;

// a call to ClearTexture() will enter this path with any shaders, so go wide
if (used_stages == 0)
{
used_stages = VK_PIPELINE_STAGE_2_ALL_COMMANDS_BIT;
}

return make_tuple(
used_stages,
VK_ACCESS_2_SHADER_READ_BIT
Expand Down

0 comments on commit 4300c39

Please sign in to comment.