content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <!-- Generated by Workiva -->
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001355758</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001597313</issuerCik>
        <issuerName>Viewray Inc.</issuerName>
        <secFileNumber>001-37725</secFileNumber>
        <issuerAddress>
          <com:street1>815 E Middlefield Rd</com:street1>
          <com:city>Mountain View</com:city>
          <com:stateOrCountry>CA</com:stateOrCountry>
          <com:zipCode>94043</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>855-286-8875</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Caley Castelein</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Board Member</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>J.P. Morgan Securities LLC</name>
          <address>
            <com:street1>390 Madison Avenue</com:street1>
            <com:street2>6th Floor</com:street2>
            <com:city>New York</com:city>
            <com:stateOrCountry>NY</com:stateOrCountry>
            <com:zipCode>10017</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>1545600</noOfUnitsSold>
        <aggregateMarketValue>116693</aggregateMarketValue>
        <noOfUnitsOutstanding>183402038</noOfUnitsOutstanding>
        <approxSaleDate>07/19/2023</approxSaleDate>
        <securitiesExchangeName>Nasdaq</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/10/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Open Market Purchase</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Open Market Purchase</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>1065000</amountOfSecuritiesAcquired>
        <paymentDate>05/10/2022</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>05/11/2022</acquiredDate>
        <natureOfAcquisitionTransaction>Open Market Purchase</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Open Market Purchase</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>350000</amountOfSecuritiesAcquired>
        <paymentDate>05/11/2022</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/23/2017</acquiredDate>
        <natureOfAcquisitionTransaction>Private Investment direct from Issuer</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>130600</amountOfSecuritiesAcquired>
        <paymentDate>10/23/2017</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <remarks>The shares filed today will be sold by KVP Capital , Caley Castelein  as Portfolio Manager</remarks>
      <noticeSignature>
        <noticeDate>07/19/2023</noticeDate>
        <signature>/s/ J.P. Morgan Securities LLC as agent and attorney-in-fact for Caley Castelein</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4068}]
text: 144
  0001355758
  XXXXXXXX
  LIVE
  0001597313
  Viewray Inc.
  001-37725
  815 E Middlefield Rd
  Mountain View
  CA
  94043
  855-286-8875
  Caley Castelein
  Board Member
  Common
  J.P. Morgan Securities LLC
  390 Madison Avenue
  6th Floor
  New York
  NY
  10017
  1545600
  116693
  183402038
  07/19/2023
  Nasdaq
  Common
  05/10/2022
  Open Market Purchase
  Open Market Purchase
  N
  1065000
  05/10/2022
  Cash
  Common
  05/11/2022
  Open Market Purchase
  Open Market Purchase
  N
  350000
  05/11/2022
  Cash
  Common
  10/23/2017
  Private Investment direct from Issuer
  Issuer
  N
  130600
  10/23/2017
  Cash
  Y
  The shares filed today will be sold by KVP Capital , Caley Castelein  as Portfolio Manager
  07/19/2023
  /s/ J.P. Morgan Securities LLC as agent and attorney-in-fact for Caley Castelein