spacemacs/layers/+lang/gpu
Eivind Fonn 08561d8631 core: implement :depends for package declarations
This replaces the older pattern
:toggle (configuration-layer/package-usedp ..)

This implementation ensures that :disabled-for honors dependent packages, i.e.
if package a depends on package b, which is owned by layer c, and layer c is
disabled for layer d, then neither package a nor b will be configured for layer
d. Previously, this was only true for package a, but not b.

This commit also fixes:

- configuration-layer/describe-package now shows which post-init and pre-init
  functions are disabled, if any
- Does not recreate all layer objects unconditionally when calling
  configuration-layer/discover-layers. Previously, this led to all layers being
  recreated after e.g. `SPC h SPC`, without any of the dotfile information.
  Since this information is now necessary for
  configuration-layer/describe-package, it’s important that we don’t clear the
  indexed layers when invoking this function.
2017-06-22 11:53:05 +02:00
..
img Merge gpu and shaders layers into gpu layer 2017-04-09 18:14:59 -04:00
packages.el core: implement :depends for package declarations 2017-06-22 11:53:05 +02:00
README.org update docs to the new toc-org format 2017-05-22 18:35:37 +03:00

GPU layer

/TakeV/spacemacs/media/commit/ff333c3c3eb031587c19067ba41290c5be1fd513/layers/+lang/gpu/img/opencl.png /TakeV/spacemacs/media/commit/ff333c3c3eb031587c19067ba41290c5be1fd513/layers/+lang/gpu/img/cuda.png /TakeV/spacemacs/media/commit/ff333c3c3eb031587c19067ba41290c5be1fd513/layers/+lang/gpu/img/shaders.png

Description

This layer provides support for GPU related languages like shading and computing languages. This includes files ending in:

  • .cl (OpenCL)
  • .cu (CUDA)
  • .cuh (CUDA)
  • .fsh (Shaders)
  • .vsh (Shaders)
  • .glsl (Shaders)
  • .vert (Shaders)
  • .frag (Shaders)
  • .geom (Shaders)

Also this layer provides completion for .vert, .tesc, .tese, .geom, .frag and .comp shaders via company-glsl when glslangValidator can be found on your system and auto-completion layer is enabled. Note that completion is rather simple.

Install

To use this configuration layer, add it to your ~.spacemacs. You will need to add gpu to the existing dotspacemacs-configuration-layers list in this file.