소스 검색

doc: fix code display on Github (#4775)

Nathan Gauër 2 년 전
부모
커밋
0ff2aa5fd7
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      docs/SPIR-V.rst

+ 2 - 0
docs/SPIR-V.rst

@@ -872,6 +872,7 @@ SPIR-V, we introduce ``[[vk::image_format("FORMAT")]]`` attribute for texture ty
 For example,
 
 .. code:: hlsl
+
   [[vk::image_format("rgba8")]]
   RWBuffer<float4> Buf;
 
@@ -1755,6 +1756,7 @@ variable with the struct type.
 For example, the binding numbers for the following resources and cbuffers
 
 .. code:: hlsl
+
   cbuffer buf0 : register(b0) {
     float4 non_resource0;
   };