Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. namespace UnityEngine.Rendering.RadeonRays
  2. {
  3. internal class Common
  4. {
  5. public static uint CeilDivide(uint val, uint div)
  6. {
  7. return (val + div - 1) / div;
  8. }
  9. public static void EnableKeyword(CommandBuffer cmd, ComputeShader shader, string keyword, bool enable)
  10. {
  11. if (enable)
  12. {
  13. cmd.EnableKeyword(shader, new LocalKeyword(shader, keyword));
  14. }
  15. else
  16. {
  17. cmd.DisableKeyword(shader, new LocalKeyword(shader, keyword));
  18. }
  19. }
  20. }
  21. }